Core.Object | +--GUI.XIIIMenuData
bool
bIngameMenuLoaded
bMainMenuLoaded
void
LoadIngameMenu()
LoadMainMenu()
UnLoadMainMenu()
00001 // XBOX ONLY 00002 class XIIIMenuData extends object; 00003 00004 struct stClasseGUIPage { 00005 var class<GUIPage> ClassObj; 00006 }; 00007 00008 var Array<stClasseGUIPage> XIIIMenuStack; // Holds all pages of XIII 00009 var Array<string> XIIIMenuStackStrings; // Holds all pages names of XIII 00010 var Array<stClasseGUIPage> XIIIIngameMenuStack; // Holds all ingame pages of XIII 00011 var Array<string> XIIIIngameMenuStackStrings; // Holds all ingame pages names of XIII 00012 var bool bMainMenuLoaded; 00013 var bool bIngameMenuLoaded; 00014 00015 function LoadMainMenu() 00016 { 00017 local int i; 00018 local class<GUIPage> NewMenuClass; 00019 00020 XIIIMenuStack.Length = XIIIMenuStackStrings.Length; 00021 for(i=0; i<XIIIMenuStack.Length; i++ ) 00022 { 00023 XIIIMenuStack[i].ClassObj = class<GUIPage>(DynamicLoadObject(XIIIMenuStackStrings[i],class'class')); 00024 if (XIIIMenuStack[i].ClassObj == none) 00025 { 00026 log("Unable to get menu class"@XIIIMenuStackStrings[i]); 00027 } 00028 } 00029 bMainMenuLoaded = true; 00030 } 00031 00032 function LoadIngameMenu() 00033 { 00034 local int i; 00035 local class<GUIPage> NewMenuClass; 00036 00037 XIIIInGameMenuStack.Length = XIIIInGameMenuStackStrings.Length; 00038 for(i=0; i<XIIIIngameMenuStack.Length; i++ ) 00039 { 00040 XIIIIngameMenuStack[i].ClassObj = class<GUIPage>(DynamicLoadObject(XIIIIngameMenuStackStrings[i],class'class')); 00041 if (XIIIIngameMenuStack[i].ClassObj == none) 00042 { 00043 log("Unable to get menu class"@XIIIIngameMenuStackStrings[i]); 00044 } 00045 } 00046 bIngameMenuLoaded = true; 00047 } 00048 00049 function UnLoadMainMenu() 00050 { 00051 local int i; 00052 if (bMainMenuLoaded) 00053 { 00054 for(i=0; i<XIIIMenuStack.Length; i++ ) 00055 { // reset to remove from memory thanks to garbage collector 00056 XIIIMenuStack[i].ClassObj = none; 00057 } 00058 bMainMenuLoaded = false; 00059 XIIIMenuStack.Length = 0; 00060 } 00061 /* never done, ingame menu always stays in memory 00062 if (bIngameMenuLoaded) 00063 { 00064 for(i=0; i<XIIIMenuStack.Length; i++ ) 00065 { // reset to remove from memory thanks to garbage collector 00066 XIIIIngameMenuStack[i].ClassObj = none; 00067 } 00068 bIngameMenuLoaded = false; 00069 } 00070 */ 00071 } 00072 00073 00074 00075 defaultproperties 00076 { 00077 XIIIMenuStackStrings(0)="XIDInterf.XIIIMenu" 00078 XIIIMenuStackStrings(1)="XIDInterf.XIIIMenuLoadGameWindow" 00079 XIIIMenuStackStrings(2)="XIDInterf.XIIIMenuDifficultyWindow" 00080 XIIIMenuStackStrings(3)="XIDInterf.XIIIMenuOptions" 00081 XIIIMenuStackStrings(4)="XIDInterf.XIIIMenuVideoClientWindow" 00082 XIIIMenuStackStrings(5)="XIDInterf.XIIIMenuAudioClientWindow" 00083 XIIIMenuStackStrings(6)="XIDInterf.XIIIMenuInputPC" 00084 XIIIMenuStackStrings(7)="XIDInterf.XIIIMenuInputLookClient" 00085 XIIIMenuStackStrings(8)="XIDInterf.XIIIMenuInputMoveClient" 00086 XIIIMenuStackStrings(9)="XIDInterf.XIIIMenuInputShootClient" 00087 XIIIMenuStackStrings(10)="XIDInterf.XIIIMenuInputOtherClient" 00088 XIIIMenuStackStrings(11)="XIDInterf.XIIIMenuSplitSetupClient" 00089 XIIIMenuStackStrings(12)="XIDInterf.XIIIMenuProfileClient" 00090 XIIIMenuStackStrings(13)="XIDInterf.XIIIMenuAdvancedControlsWindow" 00091 XIIIMenuStackStrings(14)="XIDInterf.XIIIMenuBotsSetupClient" 00092 XIIIMenuStackStrings(15)="XIDInterf.XIIIMenuContinue" 00093 XIIIMenuStackStrings(16)="XIDInterf.XIIIMenuMultiplayer" 00094 XIIIMenuStackStrings(17)="XIDInterf.XIIIMenuMultiProfile" 00095 XIIIMenuStackStrings(18)="XIDInterf.XIIIMenuMultiGS" 00096 XIIIMenuStackStrings(19)="XIDInterf.XIIIMenuMultiLANHost" 00097 XIIIMenuStackStrings(20)="XIDInterf.XIIIMenuMultiLANJoin" 00098 XIIIMenuStackStrings(21)="XIDInterf.XIIIMenuSelectProfile" 00099 XIIIMenuStackStrings(22)="XIDInterf.XIIIMenuCreateProfile" 00100 XIIIMenuStackStrings(23)="XIDInterf.XIIIMenuYesNoWindow" 00101 XIIIMenuStackStrings(24)="XIDInterf.XIIIMsgBox" 00102 XIIIMenuStackStrings(25)="XIDInterf.XIIIMenuChooseMap" 00103 XIIIMenuStackStrings(26)="XIDInterf.XIIIMenuBotChallengeSetupClient" 00104 XIIIMenuStackStrings(27)="XIDInterf.XIIIMenuMultiGSAccountFirstTime" 00105 XIIIMenuStackStrings(28)="XIDInterf.XIIIMenuMultiGSAccountSignIn" 00106 XIIIMenuStackStrings(29)="XIDInterf.XIIIMenuMultiGSAccountPassword" 00107 XIIIMenuStackStrings(30)="XIDInterf.XIIIMenuMultiGSLicenceAgreement" 00108 XIIIMenuStackStrings(31)="XIDInterf.XIIIMenuMultiGSFindServers" 00109 XIIIMenuStackStrings(32)="XIDInterf.XIIIMenuMultiGSCreateGame" 00110 XIIIMenuStackStrings(33)="XIDInterf.XIIIMenuMultiGSGameDetail" 00111 XIIIMenuStackStrings(34)="XIDInterf.XIIIMenuMultiGSFilter" 00112 XIIIMenuStackStrings(35)="XIDInterf.XIIIMenuMultiGSAccountCreation" 00113 XIIIMenuStackStrings(36)="XIDInterf.XIIIMenuMultiGSAccountConfirmCreation" 00114 XIIIMenuStackStrings(37)="XIDInterf.XIIIMenuMultiGSExistingAccount" 00115 XIIIMenuStackStrings(38)="XIDInterf.XIIIMenuMultiGSJoinMsgBox" 00116 XIIIMenuStackStrings(39)="XIDInterf.XIIIMenuMultiGSConnectingUbiComMsgBox" 00117 XIIIMenuStackStrings(40)="XIDInterf.XIIIMenuDocument" 00118 XIIIMenuStackStrings(41)="XIDInterf.XIIIMenuSkill" 00119 XIIIMenuStackStrings(42)="XIDInterf.XIIIMenuStory" 00120 XIIIMenuStackStrings(43)="XIDInterf.XIIIMenuConspiracy" 00121 XIIIMenuStackStrings(44)="XIDInterf.XIIIMenuDoc1" 00122 XIIIMenuStackStrings(45)="XIDInterf.XIIIMenuDoc2" 00123 XIIIMenuStackStrings(46)="XIDInterf.XIIIMenuDoc3" 00124 XIIIMenuStackStrings(47)="XIDInterf.XIIIMenuDoc4" 00125 XIIIMenuStackStrings(48)="XIDInterf.XIIIMenuDoc5" 00126 XIIIMenuStackStrings(49)="XIDInterf.XIIIMenuDoc6" 00127 XIIIMenuStackStrings(50)="XIDInterf.XIIIMenuDoc7" 00128 XIIIMenuStackStrings(51)="XIDInterf.XIIIMenuDoc8" 00129 XIIIMenuStackStrings(52)="XIDInterf.XIIIMenuMultiGSAccountCreationRunningMsgBox" 00130 XIIIMenuStackStrings(53)="XIDInterf.XIIIMenuMultiGSAccountModify" 00131 XIIIMenuStackStrings(54)="XIDInterf.XIIIMenuMultiGSAccountModifyRunningMsgBox" 00132 XIIIMenuStackStrings(55)="XIDInterf.XIIIMenuDoc9" 00133 XIIIMenuStackStrings(56)="XIDInterf.XIIIMenuDoc10" 00134 XIIIMenuStackStrings(57)="XIDInterf.XIIIMenuDoc11" 00135 XIIIMenuStackStrings(58)="XIDInterf.XIIIMenuDoc12" 00136 XIIIMenuStackStrings(59)="XIDInterf.XIIIMenuStory2" 00137 XIIIMenuStackStrings(60)="XIDInterf.XIIIMenuStory3" 00138 XIIIMenuStackStrings(61)="XIDInterf.XIIIMenuStory4" 00139 XIIIMenuStackStrings(62)="XIDInterf.XIIIMenuMultiGSCheckExistingAccountMsgBox" 00140 XIIIMenuStackStrings(63)="XIDInterf.XIIIMenuStory5" 00141 XIIIMenuStackStrings(64)="XIDInterf.XIIIMenuStory6" 00142 XIIIMenuStackStrings(65)="XIDInterf.XIIIMenuStory7" 00143 XIIIMenuStackStrings(66)="XIDInterf.XIIIMenuStory8" 00144 XIIIMenuStackStrings(67)="XIDInterf.XIIIMenuMultiGSRegisterServerMsgBox" 00145 XIIIMenuStackStrings(68)="XIDInterf.XIIIMenuEnterPasswordWindow" 00146 XIIIMenuStackStrings(69)="XIDInterf.XIIIMsgBoxQuitGame" 00147 XIIIMenuStackStrings(70)="XIDInterf.XIIIWindowMainMenu" 00148 XIIIMenuStackStrings(71)="XIDInterf.XIIIMenuMultiGSGetServerInfoMsgBox" 00149 XIIIMenuStackStrings(72)="XIDInterf.XIIIMenuMultiGSConnectionLostMsgBox" 00150 XIIIMenuStackStrings(73)="XIDInterf.XIIIMenuInputShootAdvance" 00151 XIIIIngameMenuStackStrings(0)="XIDInterf.XIIIMenuInGame" 00152 XIIIIngameMenuStackStrings(1)="XIDInterf.XIIIMenuInGameMulti" 00153 XIIIIngameMenuStackStrings(2)="XIDInterf.XIIIMenuSave" 00154 XIIIIngameMenuStackStrings(3)="XIDInterf.XIIIMenuInputPC" 00155 XIIIIngameMenuStackStrings(4)="XIDInterf.XIIIMenuInputLookClient" 00156 XIIIIngameMenuStackStrings(5)="XIDInterf.XIIIMenuInputMoveClient" 00157 XIIIIngameMenuStackStrings(6)="XIDInterf.XIIIMenuInputShootClient" 00158 XIIIIngameMenuStackStrings(7)="XIDInterf.XIIIMenuInputOtherClient" 00159 XIIIIngameMenuStackStrings(8)="XIDInterf.XIIIMenuCompetencesIngame" 00160 XIIIIngameMenuStackStrings(9)="XIDInterf.XIIIMenuItemsIngame" 00161 XIIIIngameMenuStackStrings(10)="XIDInterf.XIIIMultiControlsWindow" 00162 XIIIIngameMenuStackStrings(11)="XIDInterf.XIIIMenuInGameControlsWindow" 00163 XIIIIngameMenuStackStrings(12)="XIDInterf.XIIIMenuProfileClient" 00164 XIIIIngameMenuStackStrings(13)="XIDInterf.XIIIMultiViewConfigWindow" 00165 XIIIIngameMenuStackStrings(14)="XIDInterf.XIIIMenuInGameMultiKick" 00166 XIIIIngameMenuStackStrings(15)="XIDInterf.XIIIMenuBriefingWindow" 00167 XIIIIngameMenuStackStrings(16)="XIDInterf.XIIIMenuYesNoWindow" 00168 XIIIIngameMenuStackStrings(17)="XIDInterf.XIIIMsgBox" 00169 XIIIIngameMenuStackStrings(18)="XIDInterf.XIIIMsgBoxInGame" 00170 XIIIIngameMenuStackStrings(19)="XIDInterf.XIIIMenuInputShootAdvance" 00171 XIIIIngameMenuStackStrings(20)="XIDInterf.XIIIMenuInGameSabotage" 00172 }