Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

GUI2K4.UT2K4ArenaConfig


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
class UT2K4ArenaConfig extends BlackoutWindow;

var automated moComboBox	co_Weapon;
var automated GUIButton		b_OK;
var automated GUILabel		l_Title;

function InitComponent(GUIController MyController, GUIComponent MyOwner)
{
	local array<CacheManager.WeaponRecord> Recs;
	local int i;

	Super.InitComponent(MyController, MyOwner);

	class'CacheManager'.static.GetWeaponList(Recs);
	for (i = 0; i < Recs.Length; i++)
		co_Weapon.AddItem(Recs[i].FriendlyName, None, Recs[i].ClassName);

	co_Weapon.ReadOnly(True);
	i = co_Weapon.FindExtra(class'MutArena'.default.ArenaWeaponClassName);
	if (i != -1)
		co_Weapon.SetIndex(i);
}

function bool InternalOnClick(GUIComponent Sender)
{
	class'MutArena'.default.ArenaWeaponClassName = co_Weapon.GetExtra();
	class'MutArena'.static.StaticSaveConfig();

	Controller.CloseMenu(false);

	return true;
}

defaultproperties
{
	Begin Object Class=GUIButton Name=OkButton
		Caption="OK"
		WinWidth=0.200000
		WinHeight=0.040000
		WinLeft=0.400000
		WinTop=0.563333
		OnClick=InternalOnClick
		TabOrder=1
	End Object
    b_Ok=OKButton

	Begin Object class=GUILabel Name=DialogText
		Caption="Weapon Arena"
		TextAlign=TXTA_Center
		StyleName="TextLabel"
		FontScale=FNS_Large
		WinWidth=1.000000
		WinHeight=0.058750
		WinLeft=0.000000
		WinTop=0.391667
	End Object

	Begin Object class=moComboBox Name=WeaponSelect
		WinWidth=0.500782
		WinHeight=0.126563
		WinLeft=0.255078
		WinTop=0.442760
		bStandardized=false
		Caption="Choose the weapon to populate your Arena."
		LabelJustification=TXTA_Center
		ComponentJustification=TXTA_Center
		ComponentWidth=0.25
		bReadOnly=true
		bVerticalLayout=True
		TabOrder=0
	End Object


	l_Title=DialogText
//	l_Desc=DialogText2
	co_Weapon=WeaponSelect
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 5.9.2006 22:28:52.000 - Creation time: Do 14.8.2014 09:58:53.011 - Created with UnCodeX