diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index f10d3ef..f5a13d3 100644 Binary files a/Localization/INT/ServerExt.int and b/Localization/INT/ServerExt.int differ 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