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 |
//============================================================================= // UWindowMenuBarItem - An Unreal menu bar item //============================================================================= class UWindowMenuBarItem extends UWindowList config; var string Caption; var UWindowMenuBar Owner; var UWindowPulldownMenu Menu; var float ItemLeft; var float ItemWidth; var bool bHelp; var byte HotKey; function SetHelp(bool b) { bHelp = b; } function SetCaption(string C) { local string Junk, Junk2; Caption = C; HotKey = Owner.ParseAmpersand(C, Junk, Junk2, False); } function UWindowPulldownMenu CreateMenu(Class<UWindowPulldownMenu> MenuClass) { Menu = UWindowPulldownMenu(Owner.ParentWindow.CreateWindow(MenuClass, 0, 0, 100, 100)); Menu.HideWindow(); Menu.Owner = Self; return Menu; } function DeSelect() { Owner.LookAndFeel.PlayMenuSound(Owner, MS_MenuCloseUp); Menu.DeSelect(); Menu.HideWindow(); } function Select() { Owner.LookAndFeel.PlayMenuSound(Owner, MS_MenuPullDown); Menu.ShowWindow(); Menu.WinLeft = ItemLeft + Owner.WinLeft; Menu.WinTop = 14; Menu.WinWidth = 100; Menu.WinHeight = 100; } function CloseUp() { Owner.CloseUp(); } function UWindowMenuBar GetMenuBar() { return Owner.GetMenuBar(); } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |