From e76c0ac5db4b82009a14835f444074fab0a5a571 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 26 Jun 2020 07:17:32 +0300 Subject: [PATCH] main menu tab localization --- Localization/INT/ServerExt.int | Bin 29138 -> 30258 bytes ServerExt/Classes/ExtGUI_PerkSelectionPage.uc | 4 +-- ServerExt/Classes/KFGUI_Base.uc | 3 ++ ServerExt/Classes/KFGUI_SwitchMenuBar.uc | 9 ++++-- ServerExt/Classes/UI_MidGameMenu.uc | 27 +++++++----------- 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index f10d3efbd1885d01576c58fc79631788d0779c0a..f5a13d35a5c4e1a08360aa0a61815959028a9682 100644 GIT binary patch delta 1046 zcmaJ=F;2rk5S&mU1PxT_taKE704YU;5Fim06j33B9E==`*g))HQuz(YA3^+pFQlTU z(;9{=whU{A0*rX{TIw7K_W?xyM83F~cnFoXeP%_NS*uhMGc5U-cN^j6Q|z)Fw&e`~tTwOdp;&E`nq%0}j=a*Fl;owKC%Z zk(mg%Hi^0-Cf#uII=(KVI(ZHSEO{Kxl8emeZ&Nw@6}+UOBR+GhFFLnbioVe5GH#W( Iaa+&qKSfltasU7T delta 9 Qcmdn=hVjy4#toMW0UI_2NdN!< diff --git a/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc b/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc index ca7ab32..b789463 100644 --- a/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc +++ b/ServerExt/Classes/ExtGUI_PerkSelectionPage.uc @@ -10,7 +10,7 @@ function InitMenu() for( i=0; i PageButtons; // Remember to call InitMenu() on the newly created page after. -final function KFGUI_Base AddPage( class PageClass, string Caption, string Hint, optional out KFGUI_Button Button ) +final function KFGUI_Base AddPage( class PageClass, optional out KFGUI_Button Button ) { local KFGUI_Base P; + local KFGUI_Base C; local KFGUI_Button B; + C = new PageClass; + // Add page. P = new (Self) PageClass; P.Owner = Owner; @@ -22,8 +25,8 @@ final function KFGUI_Base AddPage( class PageClass, string Caption, // Add page switch button. B = new (Self) class'KFGUI_Button'; - B.ButtonText = Caption; - B.ToolTip = Hint; + B.ButtonText = C.Caption; + B.ToolTip = C.Hint; B.OnClickLeft = PageSwitched; B.OnClickRight = PageSwitched; B.IDValue = NumButtons; diff --git a/ServerExt/Classes/UI_MidGameMenu.uc b/ServerExt/Classes/UI_MidGameMenu.uc index 5fdbb45..574ead9 100644 --- a/ServerExt/Classes/UI_MidGameMenu.uc +++ b/ServerExt/Classes/UI_MidGameMenu.uc @@ -1,12 +1,7 @@ Class UI_MidGameMenu extends KFGUI_FloatingWindow; - -struct FPageInfo -{ - var class PageClass; - var string Caption,Hint; -}; + var KFGUI_SwitchMenuBar PageSwitcher; -var() array Pages; +var array< class > Pages; var KFGUI_Button AdminButton,SpectateButton; @@ -30,8 +25,8 @@ function InitMenu() for( i=0; i