From d519e2e7722b22ea3bc02b31cb92058ba5f754b3 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 1 Sep 2020 06:20:02 +0300 Subject: [PATCH] feat: PrestigeNote localization --- Localization/INT/ServerExt.int | Bin 40024 -> 40936 bytes ServerExt/Classes/UI_PrestigeNote.uc | 18 +++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index 0a4ffabcb23a7d19b3b028f6c6d3792f6692d84e..ef4833353df0602d7d34627bdf0a3e38e8853961 100644 GIT binary patch delta 381 zcmcbygXzV7rVSBuCbKjOhzBqfF{CmSGn6o7GNc1pehm3QcIssAS(^NQ4E_uu44w?m z46Y1T3<{GUPmP|utsyAXlOc~G4XDnCA(0^os3!-gDwUxEs4oC0QUs(88EhGpfM%iS z2bz?|pukWG)L9Co3s7yIeBM@cvO$O2wT~f@DKUvXQc=A3gj>&8$V(tY%+cJUfEdk0X09{)N zBq1i715I&dFaqLQ25q2gc^SBXF2v!p$@+D&;xLz|f_<3>Gzk<6MUxL&NXwT3{i6W3 b3FsPz3}ASGWI?Vg1^IJwW4-0%6P-c;qaRfW delta 9 QcmaE{pXtU9rVSBu02)IC-~a#s diff --git a/ServerExt/Classes/UI_PrestigeNote.uc b/ServerExt/Classes/UI_PrestigeNote.uc index 01a2c19..9d1af51 100644 --- a/ServerExt/Classes/UI_PrestigeNote.uc +++ b/ServerExt/Classes/UI_PrestigeNote.uc @@ -1,19 +1,27 @@ Class UI_PrestigeNote extends UI_ResetWarning; +var localized string WindowTitleText; +var localized string PrestigeButtonToolTip; +var localized string InfoLabelTextPart1; +var localized string InfoLabelTextPart2; + +function InitMenu() +{ + Super.InitMenu(); + YesButton.ToolTip=PrestigeButtonToolTip; +} + function SetupTo( Ext_PerkBase P ) { PerkToReset = P.Class; - // TODO: localize - WindowTitle = "NOTICE: Prestige "$P.PerkName; - InfoLabel.SetText("NOTICE: If you prestige your perk, you can not undo this operation!|All your gained XP and level will be reset to #{FF0000}0#{DEF}.|But this will also increase the amount of points by #{F7FE2E}+"$P.PrestigeSPIncrease$"#{DEF} you earn for every level up in the future.||Are you sure you want to do this?"); + WindowTitle = WindowTitleText$" "$P.PerkName; + InfoLabel.SetText(InfoLabelTextPart1$P.PrestigeSPIncrease$InfoLabelTextPart2); } defaultproperties { bIsPrestige=true - // TODO: localize Begin Object Name=YesButten - Tooltip="Prestige the perk (you can not undo this action!)" End Object } \ No newline at end of file