Core.Object | +--UWindow.UWindowBase | +--UWindow.UWindowWindow | +--UWindow.UWindowFramedWindow | +--UMenu.UMenuMapListWindow
UWindowSmallCloseButton
CloseButton
void
Created()
Paint(Canvas C, float X, float Y)
Resized()
00001 class UMenuMapListWindow expands UWindowFramedWindow; 00002 00003 var UWindowSmallCloseButton CloseButton; 00004 00005 function Created() 00006 { 00007 bStatusBar = False; 00008 bSizable = True; 00009 00010 Super.Created(); 00011 00012 WinWidth = Min(400, Root.WinWidth - 50); 00013 WinHeight = Min(210, Root.WinHeight - 50); 00014 00015 WinLeft = Root.WinWidth/2 - WinWidth/2; 00016 WinTop = Root.WinHeight/2 - WinHeight/2; 00017 00018 CloseButton = UWindowSmallCloseButton(CreateWindow(class'UWindowSmallCloseButton', WinWidth-56, WinHeight-24, 48, 16)); 00019 00020 MinWinWidth = 200; 00021 } 00022 00023 function Resized() 00024 { 00025 Super.Resized(); 00026 ClientArea.SetSize(ClientArea.WinWidth, ClientArea.WinHeight-24); 00027 CloseButton.WinLeft = ClientArea.WinLeft+ClientArea.WinWidth-52; 00028 CloseButton.WinTop = ClientArea.WinTop+ClientArea.WinHeight+4; 00029 } 00030 00031 function Paint(Canvas C, float X, float Y) 00032 { 00033 local Texture T; 00034 00035 T = GetLookAndFeelTexture(); 00036 DrawUpBevel( C, ClientArea.WinLeft, ClientArea.WinTop + ClientArea.WinHeight, ClientArea.WinWidth, 24, T); 00037 00038 Super.Paint(C, X, Y); 00039 } 00040 00041 defaultproperties 00042 { 00043 ClientClass=Class'UMenu.UMenuMapListCW' 00044 WindowTitle="Map List" 00045 }