From 074115876c4fac19452616c6a948c5412b004dd6 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Tue, 1 Sep 2020 07:28:45 +0300 Subject: [PATCH] feat: PerkTraitList localization --- Localization/INT/ServerExt.int | Bin 45080 -> 45274 bytes ServerExt/Classes/UIR_PerkTraitList.uc | 28 +++++++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index 7614f7d69a70b4951eb5c67925351c3048be4dc0..8044df1342be66b35b5fdd4e8c9a9a4c4325d0b4 100644 GIT binary patch delta 180 zcmbR7fa%slrVSDs)Oi`W7(h6hA(X+BA&4QKA%G#3p@<=yAp}S!GGsE8F!(TJPCjTZ zTNeV9sQ~hA8I+J@6&Uh>>T-c{N??A6`N*na HVoD4EQnn(m delta 9 QcmcchkZHyPrVSDs02#3aumAu6 diff --git a/ServerExt/Classes/UIR_PerkTraitList.uc b/ServerExt/Classes/UIR_PerkTraitList.uc index a26723c..f8a6065 100644 --- a/ServerExt/Classes/UIR_PerkTraitList.uc +++ b/ServerExt/Classes/UIR_PerkTraitList.uc @@ -4,6 +4,30 @@ Class UIR_PerkTraitList extends KFGUI_ColumnList; var array ToolTip; var KFGUI_Tooltip ToolTipItem; +var localized string TraitNameText; +var localized string TraitLevelText; +var localized string TraitCostText; + +function InitMenu() +{ + local FColumnItem NameItem; + local FColumnItem LevelItem; + local FColumnItem CostItem; + + Super.InitMenu(); + + NameItem.Text=TraitNameText; + NameItem.Width=0.6; + LevelItem.Text=TraitLevelText; + LevelItem.Width=0.2; + CostItem.Text=TraitCostText; + CostItem.Width=0.2; + + Columns.AddItem(NameItem); + Columns.AddItem(LevelItem); + Columns.AddItem(CostItem); +} + function DrawMenu() { local int i,n,j; @@ -110,9 +134,5 @@ function NotifyMousePaused() defaultproperties { - // TODO: localize - Columns.Add((Text="Trait name",Width=0.6)) - Columns.Add((Text="Level",Width=0.2)) - Columns.Add((Text="Cost",Width=0.2)) bCanSortColumn=false } \ No newline at end of file