From c01c7629b627d46376c2167c9084a79fc692697f Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 12 Aug 2020 14:55:02 +0300 Subject: [PATCH] feat: ResetPerk localization --- Localization/INT/ServerExt.int | Bin 34306 -> 35294 bytes ServerExt/Classes/UI_ResetWarning.uc | 24 ++++++++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index ad95a1d53c1bbae2b6ce4b3300f99d71c28708bd..261208c8a678ba9b17259ede84a58f4d4bd2cde5 100644 GIT binary patch delta 590 zcmYjOOG^S_6g?PijBpVoLBW`tf(RiZ2rL47xUmO9wFns>*^p_DpP7`5ShR9?|3mBk zNxPQ)gnmQkeq$!XnYs6#`#AT`U>Nz9$VcQ&h9+7l;0zVC2!nID@KJ|HRB?q_M3JXw zP$Qow9%-ks%*;L3<&Y%~u?=UUi$h*3FSW0nzAnV9^&gd)K|ou-YV z#0E=}>F>m{RB+A6Xr=_c&3Kj(2VF+n{QBCRF!Gs>Ck>;H)vanh?op%PqU{oGT5Hlg znv<{oV$i@n>wL?2tg9n|XC(2213szI)8mFU+a;XnvtN}pdYcN$^e%A1w@Y6=z0d=p zb60FuiFTV@cuj{>t>(ZAtTJ`7Xq8@vso}_?WydR$3l~gb-3rZMpHh32ow1AOaLiLV zC~-u0oUPJSU>SE-gwAuZVc1-^@$5YfZfLdWcS!2jCA1*C-Yv5e@)B&#m+h#({N2(2 F{002yb&CK1 delta 9 QcmcaNnW?FVX#-Om02Jo~yZ`_I diff --git a/ServerExt/Classes/UI_ResetWarning.uc b/ServerExt/Classes/UI_ResetWarning.uc index 32df906..bc82128 100644 --- a/ServerExt/Classes/UI_ResetWarning.uc +++ b/ServerExt/Classes/UI_ResetWarning.uc @@ -1,18 +1,35 @@ Class UI_ResetWarning extends KFGUI_FloatingWindow; var KFGUI_TextField InfoLabel; +var KFGUI_Button YesButton, NoButton; var class PerkToReset; var bool bIsPrestige; +var localized string TitleText; +var localized string YesButtonText; +var localized string YesButtonToolTip; +var localized string NoButtonText; +var localized string NobuttonToolTip; +var localized string InfoText; + function InitMenu() { InfoLabel = KFGUI_TextField(FindComponentID('Info')); + YesButton = KFGUI_Button(FindComponentID('Yes')); + NoButton = KFGUI_Button(FindComponentID('No')); + + YesButton.ButtonText=YesButtonText; + YesButton.Tooltip=YesButtonToolTip; + NoButton.ButtonText=NoButtonText; + NoButton.Tooltip=NobuttonToolTip; + InfoLabel.SetText(InfoText); + Super.InitMenu(); } function SetupTo( Ext_PerkBase P ) { PerkToReset = P.Class; - WindowTitle = "WARNING: Reset "$P.PerkName; // TODO: localize + WindowTitle = TitleText$" "$P.PerkName; } function ButtonClicked( KFGUI_Button Sender ) { @@ -45,12 +62,9 @@ defaultproperties YPosition=0.12 XSize=0.98 YSize=0.775 - Text="#{FF0000}WARNING:#{DEF} If you reset your perk to initial status, you can not undo this operation!|#{FF0000}All your gained XP and level (including prestige level) will be reset to 0.#{DEF}|Do NOT cry to an admin later if this was a mistake!||Are you sure you want to do this?" End Object Begin Object Class=KFGUI_Button Name=YesButten ID="Yes" - ButtonText="YES" - Tooltip="Reset the perk (you can not undo this action!)" XPosition=0.2 YPosition=0.9 XSize=0.29 @@ -61,8 +75,6 @@ defaultproperties End Object Begin Object Class=KFGUI_Button Name=NoButten ID="No" - ButtonText="ABORT" - Tooltip="Abort without doing anything" XPosition=0.5 YPosition=0.9 XSize=0.29