UMenu
Class UMenuGoldLookAndFeel

source: e:\games\UnrealTournament\UMenu\Classes\UMenuGoldLookAndFeel.uc
Core.Object
   |
   +--UWindow.UWindowBase
      |
      +--UWindow.UWindowLookAndFeel
         |
         +--UMenu.UMenuGoldLookAndFeel
Direct Known Subclasses:None

class UMenuGoldLookAndFeel
extends UWindow.UWindowLookAndFeel


Variables
 Region CloseBoxDown
 int CloseBoxOffsetX
 int CloseBoxOffsetY
 Region CloseBoxUp
 Region FrameSB
 Region FrameSBL
 Region FrameSBR
 Region SBBackground
 Region SBDownDisabled
 Region SBDownDown
 Region SBDownUp
 Region SBLeftDisabled
 Region SBLeftDown
 Region SBLeftUp
 Region SBRightDisabled
 Region SBRightDown
 Region SBRightUp
 Region SBUpDisabled
 Region SBUpDown
 Region SBUpUp


Function Summary
 void Button_DrawSmallButton(UWindowSmallButton B, Canvas C)
 void Checkbox_SetupSizes(UWindowCheckbox W, Canvas C)
 void ComboList_DrawBackground(UWindowComboList W, Canvas C)
 void ComboList_DrawItem(UWindowComboList Combo, Canvas C, float X, float Y, float W, float H, string Text, bool bSelected)
 void Combo_Draw(UWindowComboControl W, Canvas C)
 void Combo_GetButtonBitmaps(UWindowComboButton W)
 void Combo_SetupLeftButton(UWindowComboLeftButton W)
 void Combo_SetupRightButton(UWindowComboRightButton W)
 void Combo_SetupSizes(UWindowComboControl W, Canvas C)
     
/* Combo Drawing Functions */
 void ControlFrame_Draw(UWindowControlFrame W, Canvas C)
 void ControlFrame_SetupSizes(UWindowControlFrame W, Canvas C)
 void DrawClientArea(UWindowClientWindow W, Canvas C)
     
/* Client Area Drawing Functions */
 void Editbox_Draw(UWindowEditControl W, Canvas C)
 void Editbox_SetupSizes(UWindowEditControl W, Canvas C)
 void FW_DrawWindowFrame(UWindowFramedWindow W, Canvas C)
     
/* Framed Window Drawing Functions */
 Region FW_GetClientArea(UWindowFramedWindow W)
 FrameHitTest FW_HitTest(UWindowFramedWindow W, float X, float Y)
 void FW_SetupFrameButtons(UWindowFramedWindow W, Canvas C)
 void Menu_DrawMenuBar(UWindowMenuBar W, Canvas C)
 void Menu_DrawMenuBarItem(UWindowMenuBar B, UWindowMenuBarItem I, float X, float Y, float W, float H, Canvas C)
 void Menu_DrawPulldownMenuBackground(UWindowPulldownMenu W, Canvas C)
 void Menu_DrawPulldownMenuItem(UWindowPulldownMenu M, UWindowPulldownMenuItem Item, Canvas C, float X, float Y, float W, float H, bool bSelected)
 
simulated
PlayMenuSound(UWindowWindow W, MenuSound S)
 void SB_HDraw(UWindowHScrollBar W, Canvas C)
 void SB_SetupDownButton(UWindowSBDownButton W)
 void SB_SetupLeftButton(UWindowSBLeftButton W)
 void SB_SetupRightButton(UWindowSBRightButton W)
 void SB_SetupUpButton(UWindowSBUpButton W)
 void SB_VDraw(UWindowVScrollBar W, Canvas C)
 void Tab_DrawTab(UWindowTabControlTabArea Tab, Canvas C, bool bActiveTab, bool bLeftmostTab, float X, float Y, float W, float H, string Text, bool bShowText)
 void Tab_DrawTabPageArea(UWindowPageControl W, Canvas C, UWindowPageWindow P)
 void Tab_GetTabSize(UWindowTabControlTabArea Tab, Canvas C, string Text, out float, out float)
 void Tab_SetTabPageSize(UWindowPageControl W, UWindowPageWindow P)
 void Tab_SetupLeftButton(UWindowTabControlLeftButton W)
 void Tab_SetupRightButton(UWindowTabControlRightButton W)



Source Code


00001	class UMenuGoldLookAndFeel extends UWindowLookAndFeel;
00002	
00003	#exec TEXTURE IMPORT NAME=GoldActiveFrame FILE=Textures\ActiveFrame.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00004	#exec TEXTURE IMPORT NAME=GoldInactiveFrame FILE=Textures\InactiveFrame.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00005	#exec TEXTURE IMPORT NAME=GoldActiveFrameS FILE=Textures\ActiveFrameS.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00006	#exec TEXTURE IMPORT NAME=GoldInactiveFrameS FILE=Textures\InactiveFrameS.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00007	
00008	#exec TEXTURE IMPORT NAME=Misc FILE=Textures\Misc.bmp GROUP="Icons" MIPS=OFF
00009	
00010	#exec TEXTURE IMPORT NAME=ChkChecked FILE=Textures\ChkChecked.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00011	#exec TEXTURE IMPORT NAME=ChkUnchecked FILE=Textures\ChkUnchecked.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00012	#exec TEXTURE IMPORT NAME=ChkCheckedDisabled FILE=Textures\ChkCheckedDisabled.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00013	#exec TEXTURE IMPORT NAME=ChkUncheckedDisabled FILE=Textures\ChkUncheckedDisabled.bmp GROUP="Icons" FLAGS=2 MIPS=OFF
00014	
00015	#exec TEXTURE IMPORT NAME=GoldButton FILE=Textures\SmallButton.pcx GROUP="Icons" MIPS=OFF
00016	
00017	#exec TEXTURE IMPORT NAME=BMenuArea FILE=Textures\MenuArea.bmp GROUP="Icons" MIPS=OFF
00018	#exec TEXTURE IMPORT NAME=BMenuTL FILE=Textures\MenuTL.bmp GROUP="Icons" MIPS=OFF
00019	#exec TEXTURE IMPORT NAME=BMenuT FILE=Textures\MenuT.bmp GROUP="Icons" MIPS=OFF
00020	#exec TEXTURE IMPORT NAME=BMenuTR FILE=Textures\MenuTR.bmp GROUP="Icons" MIPS=OFF
00021	#exec TEXTURE IMPORT NAME=BMenuL FILE=Textures\MenuL.bmp GROUP="Icons" MIPS=OFF
00022	#exec TEXTURE IMPORT NAME=BMenuR FILE=Textures\MenuR.bmp GROUP="Icons" MIPS=OFF
00023	#exec TEXTURE IMPORT NAME=BMenuBL FILE=Textures\MenuBL.bmp GROUP="Icons" MIPS=OFF
00024	#exec TEXTURE IMPORT NAME=BMenuB FILE=Textures\MenuB.bmp GROUP="Icons" MIPS=OFF
00025	#exec TEXTURE IMPORT NAME=BMenuBR FILE=Textures\MenuBR.bmp GROUP="Icons" MIPS=OFF
00026	#exec TEXTURE IMPORT NAME=BMenuHL FILE=Textures\MenuHL.bmp GROUP="Icons" MIPS=OFF
00027	#exec TEXTURE IMPORT NAME=BMenuHM FILE=Textures\MenuHM.bmp GROUP="Icons" MIPS=OFF
00028	#exec TEXTURE IMPORT NAME=BMenuHR FILE=Textures\MenuHR.bmp GROUP="Icons" MIPS=OFF
00029	#exec TEXTURE IMPORT NAME=MenuLine FILE=Textures\MenuLine.bmp GROUP="Icons" MIPS=OFF
00030	
00031	#exec TEXTURE IMPORT NAME=BarL FILE=Textures\BarL.bmp GROUP="Icons" MIPS=OFF
00032	#exec TEXTURE IMPORT NAME=BarTile FILE=Textures\BarTile.bmp GROUP="Icons" MIPS=OFF
00033	#exec TEXTURE IMPORT NAME=BarMax FILE=Textures\BarMax.bmp GROUP="Icons" MIPS=OFF
00034	#exec TEXTURE IMPORT NAME=BarWin FILE=Textures\BarWin.bmp GROUP="Icons" MIPS=OFF
00035	
00036	#exec TEXTURE IMPORT NAME=BarInL FILE=Textures\BarInL.bmp GROUP="Icons" MIPS=OFF
00037	#exec TEXTURE IMPORT NAME=BarInR FILE=Textures\BarInR.bmp GROUP="Icons" MIPS=OFF
00038	#exec TEXTURE IMPORT NAME=BarInM FILE=Textures\BarInM.bmp GROUP="Icons" MIPS=OFF
00039	
00040	#exec TEXTURE IMPORT NAME=BarOutL FILE=Textures\BarOutL.bmp GROUP="Icons" MIPS=OFF
00041	#exec TEXTURE IMPORT NAME=BarOutR FILE=Textures\BarOutR.bmp GROUP="Icons" MIPS=OFF
00042	#exec TEXTURE IMPORT NAME=BarOutM FILE=Textures\BarOutM.bmp GROUP="Icons" MIPS=OFF
00043	
00044	#exec AUDIO IMPORT FILE="Sounds\bigselect.wav" NAME=BigSelect
00045	#exec AUDIO IMPORT FILE="Sounds\littleselect.wav" NAME=LittleSelect
00046	#exec AUDIO IMPORT FILE="Sounds\windowopen.wav" NAME=WindowOpen
00047	#exec AUDIO IMPORT FILE="Sounds\windowclose.wav" NAME=WindowClose
00048	
00049	var() Region	SBUpUp;
00050	var() Region	SBUpDown;
00051	var() Region	SBUpDisabled;
00052	
00053	var() Region	SBDownUp;
00054	var() Region	SBDownDown;
00055	var() Region	SBDownDisabled;
00056	
00057	var() Region	SBLeftUp;
00058	var() Region	SBLeftDown;
00059	var() Region	SBLeftDisabled;
00060	
00061	var() Region	SBRightUp;
00062	var() Region	SBRightDown;
00063	var() Region	SBRightDisabled;
00064	
00065	var() Region	SBBackground;
00066	
00067	var() Region	FrameSBL;
00068	var() Region	FrameSB;
00069	var() Region	FrameSBR;
00070	
00071	var() Region	CloseBoxUp;
00072	var() Region	CloseBoxDown;
00073	var() int		CloseBoxOffsetX;
00074	var() int		CloseBoxOffsetY;
00075	
00076	
00077	const SIZEBORDER = 3;
00078	const BRSIZEBORDER = 15;
00079	
00080	/* Framed Window Drawing Functions */
00081	function FW_DrawWindowFrame(UWindowFramedWindow W, Canvas C)
00082	{
00083		local Texture T;
00084		local Region R, Temp;
00085	
00086		C.DrawColor.r = 255;
00087		C.DrawColor.g = 255;
00088		C.DrawColor.b = 255;
00089	
00090		T = W.GetLookAndFeelTexture();
00091	
00092		R = FrameTL;
00093		W.DrawStretchedTextureSegment( C, 0, 0, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00094	
00095		R = FrameT;
00096		W.DrawStretchedTextureSegment( C, FrameTL.W, 0, 
00097										W.WinWidth - FrameTL.W
00098										- FrameTR.W,
00099										R.H, R.X, R.Y, R.W, R.H, T );
00100	
00101		R = FrameTR;
00102		W.DrawStretchedTextureSegment( C, W.WinWidth - R.W, 0, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00103		
00104	
00105		if(W.bStatusBar)
00106			Temp = FrameSBL;
00107		else
00108			Temp = FrameBL;
00109		
00110		R = FrameL;
00111		W.DrawStretchedTextureSegment( C, 0, FrameTL.H,
00112										R.W,  
00113										W.WinHeight - FrameTL.H
00114										- Temp.H,
00115										R.X, R.Y, R.W, R.H, T );
00116	
00117		R = FrameR;
00118		W.DrawStretchedTextureSegment( C, W.WinWidth - R.W, FrameTL.H,
00119										R.W,  
00120										W.WinHeight - FrameTL.H
00121										- Temp.H,
00122										R.X, R.Y, R.W, R.H, T );
00123	
00124		if(W.bStatusBar)
00125			R = FrameSBL;
00126		else
00127			R = FrameBL;
00128		W.DrawStretchedTextureSegment( C, 0, W.WinHeight - R.H, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00129	
00130		if(W.bStatusBar)
00131		{
00132			R = FrameSB;
00133			W.DrawStretchedTextureSegment( C, FrameBL.W, W.WinHeight - R.H, 
00134											W.WinWidth - FrameSBL.W
00135											- FrameSBR.W,
00136											R.H, R.X, R.Y, R.W, R.H, T );
00137		}
00138		else
00139		{
00140			R = FrameB;
00141			W.DrawStretchedTextureSegment( C, FrameBL.W, W.WinHeight - R.H, 
00142											W.WinWidth - FrameBL.W
00143											- FrameBR.W,
00144											R.H, R.X, R.Y, R.W, R.H, T );
00145		}
00146	
00147		if(W.bStatusBar)
00148			R = FrameSBR;
00149		else
00150			R = FrameBR;
00151		W.DrawStretchedTextureSegment( C, W.WinWidth - R.W, W.WinHeight - R.H, R.W, R.H, R.X, R.Y, 
00152										R.W, R.H, T );
00153	
00154	
00155		if(W.ParentWindow.ActiveWindow == W)
00156		{
00157			C.DrawColor = FrameActiveTitleColor;
00158			C.Font = W.Root.Fonts[W.F_Bold];
00159		}
00160		else
00161		{
00162			C.DrawColor = FrameInactiveTitleColor;
00163			C.Font = W.Root.Fonts[W.F_Normal];
00164		}
00165	
00166	
00167		W.ClipTextWidth(C, FrameTitleX, FrameTitleY, 
00168						W.WindowTitle, W.WinWidth - 22);
00169	
00170		if(W.bStatusBar) 
00171		{
00172			C.Font = W.Root.Fonts[W.F_Normal];
00173			C.DrawColor.r = 0;
00174			C.DrawColor.g = 0;
00175			C.DrawColor.b = 0;
00176	
00177			W.ClipTextWidth(C, 6, W.WinHeight - 13, W.StatusBarText, W.WinWidth - 22);
00178	
00179			C.DrawColor.r = 255;
00180			C.DrawColor.g = 255;
00181			C.DrawColor.b = 255;
00182		}
00183	}
00184	
00185	function FW_SetupFrameButtons(UWindowFramedWindow W, Canvas C)
00186	{
00187		local Texture T;
00188	
00189		T = W.GetLookAndFeelTexture();
00190	
00191		W.CloseBox.WinLeft = W.WinWidth - CloseBoxOffsetX - CloseBoxUp.W;
00192		W.CloseBox.WinTop = CloseBoxOffsetY;
00193	
00194		W.CloseBox.SetSize(CloseBoxUp.W, CloseBoxUp.H);
00195		W.CloseBox.bUseRegion = True;
00196	
00197		W.CloseBox.UpTexture = T;
00198		W.CloseBox.DownTexture = T;
00199		W.CloseBox.OverTexture = T;
00200		W.CloseBox.DisabledTexture = T;
00201	
00202		W.CloseBox.UpRegion = CloseBoxUp;
00203		W.CloseBox.DownRegion = CloseBoxDown;
00204		W.CloseBox.OverRegion = CloseBoxUp;
00205		W.CloseBox.DisabledRegion = CloseBoxUp;
00206	}
00207	
00208	function Region FW_GetClientArea(UWindowFramedWindow W)
00209	{
00210		local Region R;
00211	
00212		R.X = FrameL.W;
00213		R.Y	= FrameT.H;
00214		R.W = W.WinWidth - (FrameL.W + FrameR.W);
00215		if(W.bStatusBar) 
00216			R.H = W.WinHeight - (FrameT.H + FrameSB.H);
00217		else
00218			R.H = W.WinHeight - (FrameT.H + FrameB.H);
00219	
00220		return R;
00221	}
00222	
00223	
00224	function FrameHitTest FW_HitTest(UWindowFramedWindow W, float X, float Y)
00225	{
00226		if((X >= 3) && (X <= W.WinWidth-3) && (Y >= 3) && (Y <= 14))
00227			return HT_TitleBar;
00228		if((X < BRSIZEBORDER && Y < SIZEBORDER) || (X < SIZEBORDER && Y < BRSIZEBORDER)) 
00229			return HT_NW;
00230		if((X > W.WinWidth - SIZEBORDER && Y < BRSIZEBORDER) || (X > W.WinWidth - BRSIZEBORDER && Y < SIZEBORDER))
00231			return HT_NE;
00232		if((X < BRSIZEBORDER && Y > W.WinHeight - SIZEBORDER)|| (X < SIZEBORDER && Y > W.WinHeight - BRSIZEBORDER)) 
00233			return HT_SW;
00234		if((X > W.WinWidth - BRSIZEBORDER) && (Y > W.WinHeight - BRSIZEBORDER))
00235			return HT_SE;
00236		if(Y < SIZEBORDER)
00237			return HT_N;
00238		if(Y > W.WinHeight - SIZEBORDER)
00239			return HT_S;
00240		if(X < SIZEBORDER)
00241			return HT_W;
00242		if(X > W.WinWidth - SIZEBORDER)	
00243			return HT_E;
00244	
00245		return HT_None;	
00246	}
00247	
00248	/* Client Area Drawing Functions */
00249	function DrawClientArea(UWindowClientWindow W, Canvas C)
00250	{
00251		W.DrawClippedTexture(C, 0, 0, Texture'BMenuTL');
00252		W.DrawStretchedTexture(C, 2, 0, W.WinWidth-4, 2, Texture'BMenuT');
00253		W.DrawClippedTexture(C, W.WinWidth-2, 0, Texture'BMenuTR');
00254	
00255		W.DrawClippedTexture(C, 0, W.WinHeight-2, Texture'BMenuBL');
00256		W.DrawStretchedTexture(C, 2, W.WinHeight-2, W.WinWidth-4, 2, Texture'BMenuB');
00257		W.DrawClippedTexture(C, W.WinWidth-2, W.WinHeight-2, Texture'BMenuBR');
00258	
00259		W.DrawStretchedTexture(C, 0, 2, 2, W.WinHeight-4, Texture'BMenuL');
00260		W.DrawStretchedTexture(C, W.WinWidth-2, 2, 2, W.WinHeight-4, Texture'BMenuR');
00261	
00262		W.DrawStretchedTexture(C, 2, 2, W.WinWidth-4, W.WinHeight-4, Texture'BMenuArea');
00263	}
00264	
00265	
00266	/* Combo Drawing Functions */
00267	
00268	function Combo_SetupSizes(UWindowComboControl W, Canvas C)
00269	{
00270		local float TW, TH;
00271	
00272		C.Font = W.Root.Fonts[W.Font];
00273		W.TextSize(C, W.Text, TW, TH);
00274		
00275		W.WinHeight = 12 + MiscBevelT[2].H + MiscBevelB[2].H;
00276		
00277		switch(W.Align)
00278		{
00279		case TA_Left:
00280			W.EditAreaDrawX = W.WinWidth - W.EditBoxWidth;
00281			W.TextX = 0;
00282			break;
00283		case TA_Right:
00284			W.EditAreaDrawX = 0;	
00285			W.TextX = W.WinWidth - TW;
00286			break;
00287		case TA_Center:
00288			W.EditAreaDrawX = (W.WinWidth - W.EditBoxWidth) / 2;
00289			W.TextX = (W.WinWidth - TW) / 2;
00290			break;
00291		}
00292	
00293		W.EditAreaDrawY = (W.WinHeight - 2) / 2;
00294		W.TextY = (W.WinHeight - TH) / 2;
00295	
00296		W.EditBox.WinLeft = W.EditAreaDrawX + MiscBevelL[2].W;
00297		W.EditBox.WinTop = MiscBevelT[2].H;
00298		W.Button.WinWidth = ComboBtnUp.W;
00299	
00300		if(W.bButtons)
00301		{
00302			W.EditBox.WinWidth = W.EditBoxWidth - MiscBevelL[2].W - MiscBevelR[2].W - ComboBtnUp.W - SBLeftUp.W - SBRightUp.W;
00303			W.EditBox.WinHeight = W.WinHeight - MiscBevelT[2].H - MiscBevelB[2].H;
00304			W.Button.WinLeft = W.WinWidth - ComboBtnUp.W - MiscBevelR[2].W - SBLeftUp.W - SBRightUp.W;
00305			W.Button.WinTop = W.EditBox.WinTop;
00306	
00307			W.LeftButton.WinLeft = W.WinWidth - MiscBevelR[2].W - SBLeftUp.W - SBRightUp.W;
00308			W.LeftButton.WinTop = W.EditBox.WinTop;
00309			W.RightButton.WinLeft = W.WinWidth - MiscBevelR[2].W - SBRightUp.W;
00310			W.RightButton.WinTop = W.EditBox.WinTop;
00311	
00312			W.LeftButton.WinWidth = SBLeftUp.W;
00313			W.LeftButton.WinHeight = SBLeftUp.H;
00314			W.RightButton.WinWidth = SBRightUp.W;
00315			W.RightButton.WinHeight = SBRightUp.H;
00316		}
00317		else
00318		{
00319			W.EditBox.WinWidth = W.EditBoxWidth - MiscBevelL[2].W - MiscBevelR[2].W - ComboBtnUp.W;
00320			W.EditBox.WinHeight = W.WinHeight - MiscBevelT[2].H - MiscBevelB[2].H;
00321			W.Button.WinLeft = W.WinWidth - ComboBtnUp.W - MiscBevelR[2].W;
00322			W.Button.WinTop = W.EditBox.WinTop;
00323		}
00324		W.Button.WinHeight = W.EditBox.WinHeight;
00325	}
00326	
00327	function Combo_Draw(UWindowComboControl W, Canvas C)
00328	{
00329		W.DrawMiscBevel(C, W.EditAreaDrawX, 0, W.EditBoxWidth, W.WinHeight, Misc, 2);
00330	
00331		if(W.Text != "")
00332		{
00333			C.DrawColor = W.TextColor;
00334			W.ClipText(C, W.TextX, W.TextY, W.Text);
00335			C.DrawColor.R = 255;
00336			C.DrawColor.G = 255;
00337			C.DrawColor.B = 255;
00338		}
00339	}
00340	
00341	function ComboList_DrawBackground(UWindowComboList W, Canvas C)
00342	{
00343		W.DrawClippedTexture(C, 0, 0, Texture'UMenu.BMenuTL');
00344		W.DrawStretchedTexture(C, 4, 0, W.WinWidth-8, 4, Texture'UMenu.BMenuT');
00345		W.DrawClippedTexture(C, W.WinWidth-4, 0, Texture'UMenu.BMenuTR');
00346	
00347		W.DrawClippedTexture(C, 0, W.WinHeight-4, Texture'UMenu.BMenuBL');
00348		W.DrawStretchedTexture(C, 4, W.WinHeight-4, W.WinWidth-8, 4, Texture'UMenu.BMenuB');
00349		W.DrawClippedTexture(C, W.WinWidth-4, W.WinHeight-4, Texture'UMenu.BMenuBR');
00350	
00351		W.DrawStretchedTexture(C, 0, 4, 4, W.WinHeight-8, Texture'UMenu.BMenuL');
00352		W.DrawStretchedTexture(C, W.WinWidth-4, 4, 4, W.WinHeight-8, Texture'UMenu.BMenuR');
00353	
00354		W.DrawStretchedTexture(C, 4, 4, W.WinWidth-8, W.WinHeight-8, Texture'UMenu.BMenuArea');
00355	}
00356	
00357	function ComboList_DrawItem(UWindowComboList Combo, Canvas C, float X, float Y, float W, float H, string Text, bool bSelected)
00358	{
00359		C.DrawColor.R = 255;
00360		C.DrawColor.G = 255;
00361		C.DrawColor.B = 255;
00362	
00363		if(bSelected)
00364		{
00365			Combo.DrawClippedTexture(C, X, Y, Texture'UMenu.BMenuHL');
00366			Combo.DrawStretchedTexture(C, X + 4, Y, W - 8, 16, Texture'UMenu.BMenuHM');
00367			Combo.DrawClippedTexture(C, X + W - 4, Y, Texture'UMenu.BMenuHR');
00368			C.DrawColor.R = 0;
00369			C.DrawColor.G = 0;
00370			C.DrawColor.B = 0;
00371		}
00372		else
00373		{
00374			C.DrawColor.R = 0;
00375			C.DrawColor.G = 0;
00376			C.DrawColor.B = 0;
00377		}
00378	
00379		Combo.ClipText(C, X + Combo.TextBorder + 2, Y + 3, Text);
00380	}
00381	
00382	function Checkbox_SetupSizes(UWindowCheckbox W, Canvas C)
00383	{
00384		local float TW, TH;
00385	
00386		W.TextSize(C, W.Text, TW, TH);
00387		W.WinHeight = Max(TH+1, 16);
00388		
00389		switch(W.Align)
00390		{
00391		case TA_Left:
00392			W.ImageX = W.WinWidth - 16;
00393			W.TextX = 0;
00394			break;
00395		case TA_Right:
00396			W.ImageX = 0;	
00397			W.TextX = W.WinWidth - TW;
00398			break;
00399		case TA_Center:
00400			W.ImageX = (W.WinWidth - 16) / 2;
00401			W.TextX = (W.WinWidth - TW) / 2;
00402			break;
00403		}
00404	
00405		W.ImageY = (W.WinHeight - 16) / 2;
00406		W.TextY = (W.WinHeight - TH) / 2;
00407	
00408		if(W.bChecked) 
00409		{
00410			W.UpTexture = Texture'ChkChecked';
00411			W.DownTexture = Texture'ChkChecked';
00412			W.OverTexture = Texture'ChkChecked';
00413			W.DisabledTexture = Texture'ChkCheckedDisabled';
00414		}
00415		else 
00416		{
00417			W.UpTexture = Texture'ChkUnchecked';
00418			W.DownTexture = Texture'ChkUnchecked';
00419			W.OverTexture = Texture'ChkUnchecked';
00420			W.DisabledTexture = Texture'ChkUncheckedDisabled';
00421		}
00422	}
00423	
00424	function Combo_GetButtonBitmaps(UWindowComboButton W)
00425	{
00426		local Texture T;
00427	
00428		T = W.GetLookAndFeelTexture();
00429		
00430		W.bUseRegion = True;
00431	
00432		W.UpTexture = T;
00433		W.DownTexture = T;
00434		W.OverTexture = T;
00435		W.DisabledTexture = T;
00436	
00437		W.UpRegion = ComboBtnUp;
00438		W.DownRegion = ComboBtnDown;
00439		W.OverRegion = ComboBtnUp;
00440		W.DisabledRegion = ComboBtnDisabled;
00441	}
00442	
00443	function Combo_SetupLeftButton(UWindowComboLeftButton W)
00444	{
00445		local Texture T;
00446	
00447		T = W.GetLookAndFeelTexture();
00448	
00449		W.bUseRegion = True;
00450	
00451		W.UpTexture = T;
00452		W.DownTexture = T;
00453		W.OverTexture = T;
00454		W.DisabledTexture = T;
00455	
00456		W.UpRegion = SBLeftUp;
00457		W.DownRegion = SBLeftDown;
00458		W.OverRegion = SBLeftUp;
00459		W.DisabledRegion = SBLeftDisabled;
00460	}
00461	
00462	function Combo_SetupRightButton(UWindowComboRightButton W)
00463	{
00464		local Texture T;
00465	
00466		T = W.GetLookAndFeelTexture();
00467	
00468		W.bUseRegion = True;
00469	
00470		W.UpTexture = T;
00471		W.DownTexture = T;
00472		W.OverTexture = T;
00473		W.DisabledTexture = T;
00474	
00475		W.UpRegion = SBRightUp;
00476		W.DownRegion = SBRightDown;
00477		W.OverRegion = SBRightUp;
00478		W.DisabledRegion = SBRightDisabled;
00479	}
00480	
00481	
00482	
00483	function Editbox_SetupSizes(UWindowEditControl W, Canvas C)
00484	{
00485		local float TW, TH;
00486		local int B;
00487	
00488		B = EditBoxBevel;
00489			
00490		C.Font = W.Root.Fonts[W.Font];
00491		W.TextSize(C, W.Text, TW, TH);
00492		
00493		W.WinHeight = 12 + MiscBevelT[B].H + MiscBevelB[B].H;
00494		
00495		switch(W.Align)
00496		{
00497		case TA_Left:
00498			W.EditAreaDrawX = W.WinWidth - W.EditBoxWidth;
00499			W.TextX = 0;
00500			break;
00501		case TA_Right:
00502			W.EditAreaDrawX = 0;	
00503			W.TextX = W.WinWidth - TW;
00504			break;
00505		case TA_Center:
00506			W.EditAreaDrawX = (W.WinWidth - W.EditBoxWidth) / 2;
00507			W.TextX = (W.WinWidth - TW) / 2;
00508			break;
00509		}
00510	
00511		W.EditAreaDrawY = (W.WinHeight - 2) / 2;
00512		W.TextY = (W.WinHeight - TH) / 2;
00513	
00514		W.EditBox.WinLeft = W.EditAreaDrawX + MiscBevelL[B].W;
00515		W.EditBox.WinTop = MiscBevelT[B].H;
00516		W.EditBox.WinWidth = W.EditBoxWidth - MiscBevelL[B].W - MiscBevelR[B].W;
00517		W.EditBox.WinHeight = W.WinHeight - MiscBevelT[B].H - MiscBevelB[B].H;
00518	}
00519	
00520	function Editbox_Draw(UWindowEditControl W, Canvas C)
00521	{
00522		W.DrawMiscBevel(C, W.EditAreaDrawX, 0, W.EditBoxWidth, W.WinHeight, Misc, EditBoxBevel);
00523	
00524		if(W.Text != "")
00525		{
00526			C.DrawColor = W.TextColor;
00527			W.ClipText(C, W.TextX, W.TextY, W.Text);
00528			C.DrawColor.R = 255;
00529			C.DrawColor.G = 255;
00530			C.DrawColor.B = 255;
00531		}
00532	}
00533	
00534	function ControlFrame_SetupSizes(UWindowControlFrame W, Canvas C)
00535	{
00536		local int B;
00537	
00538		B = EditBoxBevel;
00539			
00540		W.Framed.WinLeft = MiscBevelL[B].W;
00541		W.Framed.WinTop = MiscBevelT[B].H;
00542		W.Framed.SetSize(W.WinWidth - MiscBevelL[B].W - MiscBevelR[B].W, W.WinHeight - MiscBevelT[B].H - MiscBevelB[B].H);
00543	}
00544	
00545	function ControlFrame_Draw(UWindowControlFrame W, Canvas C)
00546	{
00547		C.DrawColor.R = 255;
00548		C.DrawColor.G = 255;
00549		C.DrawColor.B = 255;
00550		
00551		W.DrawStretchedTexture(C, 0, 0, W.WinWidth, W.WinHeight, Texture'WhiteTexture');
00552		W.DrawMiscBevel(C, 0, 0, W.WinWidth, W.WinHeight, Misc, EditBoxBevel);
00553	}
00554	
00555	function Tab_DrawTab(UWindowTabControlTabArea Tab, Canvas C, bool bActiveTab, bool bLeftmostTab, float X, float Y, float W, float H, string Text, bool bShowText)
00556	{
00557		local Region R;
00558		local Texture T;
00559		local float TW, TH;
00560	
00561		C.DrawColor.R = 255;
00562		C.DrawColor.G = 255;
00563		C.DrawColor.B = 255;
00564	
00565		T = Tab.GetLookAndFeelTexture();
00566		
00567		if(bActiveTab)
00568		{
00569			R = TabSelectedL;
00570			Tab.DrawStretchedTextureSegment( C, X, Y, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00571	
00572			R = TabSelectedM;
00573			Tab.DrawStretchedTextureSegment( C, X+TabSelectedL.W, Y, 
00574											W - TabSelectedL.W
00575											- TabSelectedR.W,
00576											R.H, R.X, R.Y, R.W, R.H, T );
00577	
00578			R = TabSelectedR;
00579			Tab.DrawStretchedTextureSegment( C, X + W - R.W, Y, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00580	
00581			C.Font = Tab.Root.Fonts[Tab.F_Bold];
00582			C.DrawColor.R = 0;
00583			C.DrawColor.G = 0;
00584			C.DrawColor.B = 0;
00585	
00586			if(bShowText)
00587			{
00588				Tab.TextSize(C, Text, TW, TH);
00589				Tab.ClipText(C, X + (W-TW)/2, Y + 3, Text, True);
00590			}
00591		}
00592		else
00593		{
00594			R = TabUnselectedL;
00595			Tab.DrawStretchedTextureSegment( C, X, Y, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00596	
00597			R = TabUnselectedM;
00598			Tab.DrawStretchedTextureSegment( C, X+TabUnselectedL.W, Y, 
00599											W - TabUnselectedL.W
00600											- TabUnselectedR.W,
00601											R.H, R.X, R.Y, R.W, R.H, T );
00602	
00603			R = TabUnselectedR;
00604			Tab.DrawStretchedTextureSegment( C, X + W - R.W, Y, R.W, R.H, R.X, R.Y, R.W, R.H, T );
00605	
00606			C.Font = Tab.Root.Fonts[Tab.F_Normal];
00607			C.DrawColor.R = 0;
00608			C.DrawColor.G = 0;
00609			C.DrawColor.B = 0;
00610	
00611			if(bShowText)
00612			{
00613				Tab.TextSize(C, Text, TW, TH);
00614				Tab.ClipText(C, X + (W-TW)/2, Y + 4, Text, True);
00615			}
00616		}
00617	}
00618	
00619	function SB_SetupUpButton(UWindowSBUpButton W)
00620	{
00621		local Texture T;
00622	
00623		T = W.GetLookAndFeelTexture();
00624	
00625		W.bUseRegion = True;
00626	
00627		W.UpTexture = T;
00628		W.DownTexture = T;
00629		W.OverTexture = T;
00630		W.DisabledTexture = T;
00631	
00632		W.UpRegion = SBUpUp;
00633		W.DownRegion = SBUpDown;
00634		W.OverRegion = SBUpUp;
00635		W.DisabledRegion = SBUpDisabled;
00636	}
00637	
00638	function SB_SetupDownButton(UWindowSBDownButton W)
00639	{
00640		local Texture T;
00641	
00642		T = W.GetLookAndFeelTexture();
00643	
00644		W.bUseRegion = True;
00645	
00646		W.UpTexture = T;
00647		W.DownTexture = T;
00648		W.OverTexture = T;
00649		W.DisabledTexture = T;
00650	
00651		W.UpRegion = SBDownUp;
00652		W.DownRegion = SBDownDown;
00653		W.OverRegion = SBDownUp;
00654		W.DisabledRegion = SBDownDisabled;
00655	}
00656	
00657	
00658	
00659	function SB_SetupLeftButton(UWindowSBLeftButton W)
00660	{
00661		local Texture T;
00662	
00663		T = W.GetLookAndFeelTexture();
00664	
00665		W.bUseRegion = True;
00666	
00667		W.UpTexture = T;
00668		W.DownTexture = T;
00669		W.OverTexture = T;
00670		W.DisabledTexture = T;
00671	
00672		W.UpRegion = SBLeftUp;
00673		W.DownRegion = SBLeftDown;
00674		W.OverRegion = SBLeftUp;
00675		W.DisabledRegion = SBLeftDisabled;
00676	}
00677	
00678	function SB_SetupRightButton(UWindowSBRightButton W)
00679	{
00680		local Texture T;
00681	
00682		T = W.GetLookAndFeelTexture();
00683	
00684		W.bUseRegion = True;
00685	
00686		W.UpTexture = T;
00687		W.DownTexture = T;
00688		W.OverTexture = T;
00689		W.DisabledTexture = T;
00690	
00691		W.UpRegion = SBRightUp;
00692		W.DownRegion = SBRightDown;
00693		W.OverRegion = SBRightUp;
00694		W.DisabledRegion = SBRightDisabled;
00695	}
00696	
00697	function SB_VDraw(UWindowVScrollbar W, Canvas C)
00698	{
00699		local Region R;
00700		local Texture T;
00701	
00702		T = W.GetLookAndFeelTexture();
00703	
00704		R = SBBackground;
00705		W.DrawStretchedTextureSegment( C, 0, 0, W.WinWidth, W.WinHeight, R.X, R.Y, R.W, R.H, T);
00706		
00707		if(!W.bDisabled)
00708		{
00709			W.DrawUpBevel( C, 0, W.ThumbStart, Size_ScrollbarWidth,	W.ThumbHeight, T);
00710		}
00711	}
00712	
00713	function SB_HDraw(UWindowHScrollbar W, Canvas C)
00714	{
00715		local Region R;
00716		local Texture T;
00717	
00718		T = W.GetLookAndFeelTexture();
00719	
00720		R = SBBackground;
00721		W.DrawStretchedTextureSegment( C, 0, 0, W.WinWidth, W.WinHeight, R.X, R.Y, R.W, R.H, T);
00722		
00723		if(!W.bDisabled) 
00724		{
00725			W.DrawUpBevel( C, W.ThumbStart, 0, W.ThumbWidth, Size_ScrollbarWidth, T);
00726		}
00727	}
00728	
00729	function Tab_SetupLeftButton(UWindowTabControlLeftButton W)
00730	{
00731		local Texture T;
00732	
00733		T = W.GetLookAndFeelTexture();
00734	
00735	
00736		W.WinWidth = Size_ScrollbarButtonHeight;
00737		W.WinHeight = Size_ScrollbarWidth;
00738		W.WinTop = Size_TabAreaHeight - W.WinHeight;
00739		W.WinLeft = W.ParentWindow.WinWidth - 2*W.WinWidth;
00740	
00741		W.bUseRegion = True;
00742	
00743		W.UpTexture = T;
00744		W.DownTexture = T;
00745		W.OverTexture = T;
00746		W.DisabledTexture = T;
00747	
00748		W.UpRegion = SBLeftUp;
00749		W.DownRegion = SBLeftDown;
00750		W.OverRegion = SBLeftUp;
00751		W.DisabledRegion = SBLeftDisabled;
00752	}
00753	
00754	function Tab_SetupRightButton(UWindowTabControlRightButton W)
00755	{
00756		local Texture T;
00757	
00758		T = W.GetLookAndFeelTexture();
00759	
00760		W.WinWidth = Size_ScrollbarButtonHeight;
00761		W.WinHeight = Size_ScrollbarWidth;
00762		W.WinTop = Size_TabAreaHeight - W.WinHeight;
00763		W.WinLeft = W.ParentWindow.WinWidth - W.WinWidth;
00764	
00765		W.bUseRegion = True;
00766	
00767		W.UpTexture = T;
00768		W.DownTexture = T;
00769		W.OverTexture = T;
00770		W.DisabledTexture = T;
00771	
00772		W.UpRegion = SBRightUp;
00773		W.DownRegion = SBRightDown;
00774		W.OverRegion = SBRightUp;
00775		W.DisabledRegion = SBRightDisabled;
00776	}
00777	
00778	function Tab_SetTabPageSize(UWindowPageControl W, UWindowPageWindow P)
00779	{
00780		P.WinLeft = 2;
00781		P.WinTop = W.TabArea.WinHeight-(TabSelectedM.H-TabUnselectedM.H) + 3;
00782		P.SetSize(W.WinWidth - 4, W.WinHeight-(W.TabArea.WinHeight-(TabSelectedM.H-TabUnselectedM.H)) - 6);
00783	}
00784	
00785	function Tab_DrawTabPageArea(UWindowPageControl W, Canvas C, UWindowPageWindow P)
00786	{
00787		W.DrawUpBevel( C, 0, W.TabArea.WinHeight-(TabSelectedM.H-TabUnselectedM.H), W.WinWidth, W.WinHeight-(W.TabArea.WinHeight-(TabSelectedM.H-TabUnselectedM.H)), W.GetLookAndFeelTexture());
00788	}
00789	
00790	function Tab_GetTabSize(UWindowTabControlTabArea Tab, Canvas C, string Text, out float W, out float H)
00791	{
00792		local float TW, TH;
00793	
00794		C.Font = Tab.Root.Fonts[Tab.F_Bold];
00795	
00796		Tab.TextSize( C, Text, TW, TH );
00797		W = TW + Size_TabSpacing;
00798		H = Size_TabAreaHeight;
00799	}
00800	
00801	function Menu_DrawMenuBar(UWindowMenuBar W, Canvas C)
00802	{
00803		W.DrawClippedTexture(C, 0, 0, Texture'UMenu.BarL');
00804		W.DrawStretchedTexture( C, 16, 0, W.WinWidth - 32, 16, Texture'UMenu.BarTile');
00805		W.DrawClippedTexture(C, W.WinWidth - 16, 0, Texture'UMenu.BarWin');
00806	}
00807	
00808	function Menu_DrawMenuBarItem(UWindowMenuBar B, UWindowMenuBarItem I, float X, float Y, float W, float H, Canvas C)
00809	{
00810		if(B.Selected == I)
00811		{
00812			B.DrawClippedTexture(C, X, 0, Texture'BarInL');
00813			B.DrawClippedTexture(C, X+W-1, 0, Texture'BarInR');
00814			B.DrawStretchedTexture(C, X+1, 0, W-2, 16, Texture'BarInM');
00815		}
00816		else
00817		if (B.Over == I)
00818		{
00819			B.DrawClippedTexture(C, X, 0, Texture'BarOutL');
00820			B.DrawClippedTexture(C, X+W-1, 0, Texture'BarOutR');
00821			B.DrawStretchedTexture(C, X+1, 0, W-2, 16, Texture'BarOutM');
00822		}
00823	
00824		C.Font = B.Root.Fonts[F_Normal];
00825		C.DrawColor.R = 0;
00826		C.DrawColor.G = 0;
00827		C.DrawColor.B = 0;
00828	
00829		B.ClipText(C, X + B.SPACING / 2, 3, I.Caption, True);
00830	}
00831	
00832	function Menu_DrawPulldownMenuBackground(UWindowPulldownMenu W, Canvas C)
00833	{
00834		W.DrawClippedTexture(C, 0, 0, Texture'UMenu.BMenuTL');
00835		W.DrawStretchedTexture(C, 4, 0, W.WinWidth-8, 4, Texture'UMenu.BMenuT');
00836		W.DrawClippedTexture(C, W.WinWidth-4, 0, Texture'UMenu.BMenuTR');
00837	
00838		W.DrawClippedTexture(C, 0, W.WinHeight-4, Texture'UMenu.BMenuBL');
00839		W.DrawStretchedTexture(C, 4, W.WinHeight-4, W.WinWidth-8, 4, Texture'UMenu.BMenuB');
00840		W.DrawClippedTexture(C, W.WinWidth-4, W.WinHeight-4, Texture'UMenu.BMenuBR');
00841	
00842		W.DrawStretchedTexture(C, 0, 4, 4, W.WinHeight-8, Texture'UMenu.BMenuL');
00843		W.DrawStretchedTexture(C, W.WinWidth-4, 4, 4, W.WinHeight-8, Texture'UMenu.BMenuR');
00844		W.DrawStretchedTexture(C, 4, 4, W.WinWidth-8, W.WinHeight-8, Texture'UMenu.BMenuArea');
00845	}
00846	
00847	function Menu_DrawPulldownMenuItem(UWindowPulldownMenu M, UWindowPulldownMenuItem Item, Canvas C, float X, float Y, float W, float H, bool bSelected)
00848	{
00849		C.DrawColor.R = 255;
00850		C.DrawColor.G = 255;
00851		C.DrawColor.B = 255;
00852	
00853		Item.ItemTop = Y + M.WinTop;
00854	
00855		if(Item.Caption == "-")
00856		{
00857			C.DrawColor.R = 255;
00858			C.DrawColor.G = 255;
00859			C.DrawColor.B = 255;
00860			M.DrawStretchedTexture(C, X, Y+5, W, 2, Texture'UMenu.MenuLine');
00861			return;
00862		}
00863	
00864		C.Font = M.Root.Fonts[F_Normal];
00865	
00866		if(bSelected)
00867		{
00868			M.DrawClippedTexture(C, X, Y, Texture'UMenu.BMenuHL');
00869			M.DrawStretchedTexture(C, X + 4, Y, W - 8, 16, Texture'UMenu.BMenuHM');
00870			M.DrawClippedTexture(C, X + W - 4, Y, Texture'UMenu.BMenuHR');
00871		}
00872	
00873		if(Item.bDisabled) 
00874		{
00875			// Black Shadow
00876			C.DrawColor.R = 96;
00877			C.DrawColor.G = 96;
00878			C.DrawColor.B = 96;
00879		}
00880		else
00881		{
00882			C.DrawColor.R = 0;
00883			C.DrawColor.G = 0;
00884			C.DrawColor.B = 0;
00885		}
00886	
00887		// DrawColor will render the tick black white or gray.
00888		if(Item.bChecked)
00889			M.DrawClippedTexture(C, X + 1, Y + 3, Texture'MenuTick');
00890	
00891		if(Item.SubMenu != None)
00892			M.DrawClippedTexture(C, X + W - 9, Y + 3, Texture'MenuSubArrow');
00893	
00894		M.ClipText(C, X + M.TextBorder + 2, Y + 3, Item.Caption, True);	
00895	}
00896	
00897	function Button_DrawSmallButton(UWindowSmallButton B, Canvas C)
00898	{
00899		local float Y;
00900	
00901		if(B.bDisabled)
00902			Y = 34;
00903		else
00904		if(B.bMouseDown)
00905			Y = 17;
00906		else
00907			Y = 0;
00908	
00909		B.DrawStretchedTextureSegment(C, 0, 0, 3, 16, 0, Y, 3, 16, Texture'GoldButton');
00910		B.DrawStretchedTextureSegment(C, B.WinWidth - 3, 0, 3, 16, 45, Y, 3, 16, Texture'GoldButton');
00911		B.DrawStretchedTextureSegment(C, 3, 0, B.WinWidth-6, 16, 3, Y, 42, 16, Texture'GoldButton');
00912	}
00913	
00914	simulated function PlayMenuSound(UWindowWindow W, MenuSound S)
00915	{
00916		switch(S)
00917		{
00918		case MS_MenuPullDown:
00919			W.GetPlayerOwner().PlaySound(sound'WindowOpen');
00920			break;
00921		case MS_MenuCloseUp:
00922			break;
00923		case MS_MenuItem:
00924			W.GetPlayerOwner().PlaySound(sound'LittleSelect');
00925			break;
00926		case MS_WindowOpen:
00927			W.GetPlayerOwner().PlaySound(sound'BigSelect');
00928			break;
00929		case MS_WindowClose:
00930			break;
00931		case MS_ChangeTab:
00932			W.GetPlayerOwner().PlaySound(sound'LittleSelect');
00933			break;
00934			
00935		}
00936	}
00937	
00938	defaultproperties
00939	{
00940	     SBUpUp=(X=20,Y=16,W=12,H=10)
00941	     SBUpDown=(X=32,Y=16,W=12,H=10)
00942	     SBUpDisabled=(X=44,Y=16,W=12,H=10)
00943	     SBDownUp=(X=20,Y=26,W=12,H=10)
00944	     SBDownDown=(X=32,Y=26,W=12,H=10)
00945	     SBDownDisabled=(X=44,Y=26,W=12,H=10)
00946	     SBLeftUp=(X=20,Y=48,W=10,H=12)
00947	     SBLeftDown=(X=30,Y=48,W=10,H=12)
00948	     SBLeftDisabled=(X=40,Y=48,W=10,H=12)
00949	     SBRightUp=(X=20,Y=36,W=10,H=12)
00950	     SBRightDown=(X=30,Y=36,W=10,H=12)
00951	     SBRightDisabled=(X=40,Y=36,W=10,H=12)
00952	     SBBackground=(X=4,Y=79,W=1,H=1)
00953	     FrameSBL=(Y=112,W=2,H=16)
00954	     FrameSB=(X=32,Y=112,W=1,H=16)
00955	     FrameSBR=(X=112,Y=112,W=16,H=16)
00956	     CloseBoxUp=(X=4,Y=32,W=11,H=11)
00957	     CloseBoxDown=(X=4,Y=43,W=11,H=11)
00958	     CloseBoxOffsetX=2
00959	     CloseBoxOffsetY=2
00960	     Active=Texture'UMenu.Icons.GoldActiveFrame'
00961	     Inactive=Texture'UMenu.Icons.GoldInactiveFrame'
00962	     ActiveS=Texture'UMenu.Icons.GoldActiveFrameS'
00963	     InactiveS=Texture'UMenu.Icons.GoldInactiveFrameS'
00964	     Misc=Texture'UWindow.Icons.Misc'
00965	     FrameTL=(W=2,H=16)
00966	     FrameT=(X=32,W=1,H=16)
00967	     FrameTR=(X=126,W=2,H=16)
00968	     FrameL=(Y=32,W=2,H=1)
00969	     FrameR=(X=126,Y=32,W=2,H=1)
00970	     FrameBL=(Y=125,W=2,H=3)
00971	     FrameB=(X=32,Y=125,W=1,H=3)
00972	     FrameBR=(X=126,Y=125,W=2,H=3)
00973	     FrameInactiveTitleColor=(R=255,G=255,B=255)
00974	     HeadingInActiveTitleColor=(R=255,G=255,B=255)
00975	     FrameTitleX=6
00976	     FrameTitleY=2
00977	     BevelUpTL=(X=4,Y=16,W=2,H=2)
00978	     BevelUpT=(X=10,Y=16,W=1,H=2)
00979	     BevelUpTR=(X=18,Y=16,W=2,H=2)
00980	     BevelUpL=(X=4,Y=20,W=2,H=1)
00981	     BevelUpR=(X=18,Y=20,W=2,H=1)
00982	     BevelUpBL=(X=4,Y=30,W=2,H=2)
00983	     BevelUpB=(X=10,Y=30,W=1,H=2)
00984	     BevelUpBR=(X=18,Y=30,W=2,H=2)
00985	     BevelUpArea=(X=8,Y=20,W=1,H=1)
00986	     MiscBevelTL(0)=(Y=17,W=3,H=3)
00987	     MiscBevelTL(1)=(W=3,H=3)
00988	     MiscBevelTL(2)=(Y=33,W=2,H=2)
00989	     MiscBevelT(0)=(X=3,Y=17,W=116,H=3)
00990	     MiscBevelT(1)=(X=3,W=116,H=3)
00991	     MiscBevelT(2)=(X=2,Y=33,W=1,H=2)
00992	     MiscBevelTR(0)=(X=119,Y=17,W=3,H=3)
00993	     MiscBevelTR(1)=(X=119,W=3,H=3)
00994	     MiscBevelTR(2)=(X=11,Y=33,W=2,H=2)
00995	     MiscBevelL(0)=(Y=20,W=3,H=10)
00996	     MiscBevelL(1)=(Y=3,W=3,H=10)
00997	     MiscBevelL(2)=(Y=36,W=2,H=1)
00998	     MiscBevelR(0)=(X=119,Y=20,W=3,H=10)
00999	     MiscBevelR(1)=(X=119,Y=3,W=3,H=10)
01000	     MiscBevelR(2)=(X=11,Y=36,W=2,H=1)
01001	     MiscBevelBL(0)=(Y=30,W=3,H=3)
01002	     MiscBevelBL(1)=(Y=14,W=3,H=3)
01003	     MiscBevelBL(2)=(Y=44,W=2,H=2)
01004	     MiscBevelB(0)=(X=3,Y=30,W=116,H=3)
01005	     MiscBevelB(1)=(X=3,Y=14,W=116,H=3)
01006	     MiscBevelB(2)=(X=2,Y=44,W=1,H=2)
01007	     MiscBevelBR(0)=(X=119,Y=30,W=3,H=3)
01008	     MiscBevelBR(1)=(X=119,Y=14,W=3,H=3)
01009	     MiscBevelBR(2)=(X=11,Y=44,W=2,H=2)
01010	     MiscBevelArea(0)=(X=3,Y=20,W=116,H=10)
01011	     MiscBevelArea(1)=(X=3,Y=3,W=116,H=10)
01012	     MiscBevelArea(2)=(X=2,Y=35,W=9,H=9)
01013	     ComboBtnUp=(X=20,Y=60,W=12,H=12)
01014	     ComboBtnDown=(X=32,Y=60,W=12,H=12)
01015	     ComboBtnDisabled=(X=44,Y=60,W=12,H=12)
01016	     ColumnHeadingHeight=13
01017	     HLine=(X=5,Y=78,W=1,H=2)
01018	     EditBoxBevel=2
01019	     TabSelectedL=(X=4,Y=80,W=3,H=17)
01020	     TabSelectedM=(X=7,Y=80,W=1,H=17)
01021	     TabSelectedR=(X=55,Y=80,W=2,H=17)
01022	     TabUnselectedL=(X=57,Y=80,W=3,H=15)
01023	     TabUnselectedM=(X=60,Y=80,W=1,H=15)
01024	     TabUnselectedR=(X=109,Y=80,W=2,H=15)
01025	     TabBackground=(X=4,Y=79,W=1,H=1)
01026	     Size_ScrollbarWidth=12.000000
01027	     Size_ScrollbarButtonHeight=10.000000
01028	     Size_MinScrollbarHeight=6.000000
01029	     Size_TabAreaHeight=15.000000
01030	     Size_TabAreaOverhangHeight=2.000000
01031	     Size_TabSpacing=20.000000
01032	     Size_TabXOffset=1.000000
01033	     Pulldown_ItemHeight=16.000000
01034	     Pulldown_VBorder=4.000000
01035	     Pulldown_HBorder=3.000000
01036	     Pulldown_TextBorder=9.000000
01037	}

End Source Code