Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 |
class UMenuHelpMenu extends UWindowPulldownMenu; var UWindowPulldownMenuItem Context, EpicURL, LegendURL, InfogramesURL, SupportURL, About; var localized string ContextName; var localized string ContextHelp; var localized string EpicGamesURLName; var localized string EpicGamesURLHelp; var localized string LegendURLName; var localized string LegendURLHelp; var localized string InfogramesURLName; var localized string InfogramesURLHelp; var localized string SupportURLName; var localized string SupportURLHelp; var localized string AboutName; var localized string AboutHelp; function Created() { Super.Created(); Context = AddMenuItem(ContextName, None); AddMenuItem("-", None); SupportURL = AddMenuItem(SupportURLName, None); AddMenuItem("-", None); EpicURL = AddMenuItem(EpicGamesURLName, None); LegendURL = AddMenuItem(LegendURLName, None); InfogramesURL = AddMenuItem(InfogramesURLName, None); About = AddMenuItem(AboutName, None); } function ExecuteItem(UWindowPulldownMenuItem I) { local UMenuMenuBar MenuBar; MenuBar = UMenuMenuBar(GetMenuBar()); switch(I) { case Context: Context.bChecked = !Context.bChecked; MenuBar.ShowHelp = !MenuBar.ShowHelp; if (Context.bChecked) { if(UMenuRootWindow(Root) != None) if(UMenuRootWindow(Root).StatusBar != None) UMenuRootWindow(Root).StatusBar.ShowWindow(); } else { if(UMenuRootWindow(Root) != None) if(UMenuRootWindow(Root).StatusBar != None) UMenuRootWindow(Root).StatusBar.HideWindow(); } MenuBar.SaveConfig(); break; case EpicURL: GetPlayerOwner().ConsoleCommand("start http://www.epicgames.com/"); break; case LegendURL: GetPlayerOwner().ConsoleCommand("start http://www.legendent.com/"); break; case InfogramesURL: GetPlayerOwner().ConsoleCommand("start http://www.us.infogrames.com/"); break; case SupportURL: GetPlayerOwner().ConsoleCommand("start http://www.ina-support.com/"); break; case About: GetPlayerOwner().ConsoleCommand("set ini:Engine.Engine.ViewportManager TextureDetail High"); GetPlayerOwner().ClientTravel( "UGCredits.unr", TRAVEL_Absolute, False ); Root.Console.CloseUWindow(); break; } Super.ExecuteItem(I); } function Select(UWindowPulldownMenuItem I) { switch(I) { case Context: UMenuMenuBar(GetMenuBar()).SetHelp(ContextHelp); break; case EpicURL: UMenuMenuBar(GetMenuBar()).SetHelp(EpicGamesURLHelp); break; case LegendURL: UMenuMenuBar(GetMenuBar()).SetHelp(LegendURLHelp); break; case InfogramesURL: UMenuMenuBar(GetMenuBar()).SetHelp(InfogramesURLHelp); break; case SupportURL: UMenuMenuBar(GetMenuBar()).SetHelp(SupportURLHelp); break; case About: UMenuMenuBar(GetMenuBar()).SetHelp(AboutHelp); break; } Super.Select(I); } defaultproperties { ContextName="&Context Help" ContextHelp="Enable and disable this context help area at the bottom of the screen." EpicGamesURLName="About &Epic Games" EpicGamesURLHelp="Click to open Epic Games webpage!" LegendURLName="About &Legend Entertainment" LegendURLHelp="Click to open Legend Entertainment Company webpage!" InfogramesURLName="About &Infogrames" InfogramesURLHelp="Click to open Infogrames webpage!" SupportURLName="Technical Support" SupportURLHelp="Click to open the Infogrames technical support web page." AboutName="&Unreal Gold Credits" AboutHelp="Display credits game credits for Unreal and Return to Na Pali." } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |