Class UI_MidGameMenu extends KFGUI_FloatingWindow; var KFGUI_SwitchMenuBar PageSwitcher; var array< class > Pages; var KFGUI_Button AdminButton,SpectateButton,SkipTraderButton; var transient KFGUI_Button PrevButton; var transient int NumButtons,NumButtonRows; var transient bool bInitSpectate,bOldSpectate; var localized string MapVoteButtonText; var localized string MapVoteButtonToolTip; var localized string SettingsButtonText; var localized string SettingsButtonToolTip; var localized string SkipTraderButtonText; var localized string SkipTraderButtonToolTip; var localized string SpectateButtonText; var localized string SpectateButtonToolTip; var localized string CloseButtonText; var localized string CloseButtonToolTip; var localized string DisconnectButtonText; var localized string DisconnectButtonToolTip; var localized string ExitButtonText; var localized string ExitButtonToolTip; var localized string JoinButtonText; var localized string JoinButtonToolTip; function InitMenu() { local int i; local KFGUI_Button B; PageSwitcher = KFGUI_SwitchMenuBar(FindComponentID('Pager')); Super(KFGUI_Page).InitMenu(); AddMenuButton('Mapvote',MapVoteButtonText,MapVoteButtonToolTip); AddMenuButton('Settings',SettingsButtonText,SettingsButtonToolTip); SkipTraderButton = AddMenuButton('SkipTrader',SkipTraderButtonText,SkipTraderButtonToolTip); SpectateButton = AddMenuButton('Spectate',SpectateButtonText,SpectateButtonToolTip); AddMenuButton('Close',CloseButtonText,CloseButtonToolTip); AddMenuButton('Disconnect',DisconnectButtonText,DisconnectButtonToolTip); AddMenuButton('Exit',ExitButtonText,ExitButtonToolTip); for(i=0; i0 && PrevButton!=None) PrevButton.ExtravDir = 1; PrevButton = B; if(++NumButtons>8) { ++NumButtonRows; NumButtons = 0; } AddComponent(B); return B; } defaultproperties { WindowTitle="RPG" XPosition=0.1 YPosition=0.1 XSize=0.8 YSize=0.8 Pages.Add(Class'UIP_News') Pages.Add(Class'UIP_PerkSelection') Pages.Add(Class'UIP_Settings') Pages.Add(Class'UIP_PlayerSpecs') Pages.Add(Class'UIP_AdminMenu') Pages.Add(Class'UIP_About') Pages.Add(Class'UIP_MiniGame') Begin Object Class=KFGUI_SwitchMenuBar Name=MultiPager ID="Pager" XPosition=0.01 YPosition=0.08 XSize=0.98 YSize=0.775 BorderWidth=0.04 ButtonAxisSize=0.08 End Object Components.Add(MultiPager) }