I don't need to test my programs. I have an error-correcting modem.

UE2:UT2K4InvasionWaveConfig (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
Package: 
GUI2K4

Created on: 09/17/2003 Custom page to handle configuration of the Waves property in SkaarjPack.Invasion

This is an example of how to write a GUIPage to handle a PlayInfo struct.

Written by Ron Prestenback © 2003, Epic Games, Inc. All Rights Reserved TODO: Override l_Title ondraw in order to have custom background color

Properties[edit]

ActiveWave[edit]

Type: int

Wave currently being edited

AIHint[edit]

Type: string

Modifiers: localized


Default value: "Allow/Disallow this monster"

DiffHint[edit]

Type: string

Modifiers: localized


Default value: "How hard should this wave be."

DurationHint[edit]

Type: string

Modifiers: localized


Default value: "How long should this wave last."

i_Background[edit]

Type: GUIImage

Modifiers: automated


lb_Waves[edit]

Type: GUIMultiOptionListBox

Modifiers: automated


Default value: GUIMultiOptionListBox'WavesList'

li_waves[edit]

Type: GUIMultiOptionList


MaxInvaderHint[edit]

Type: string

Modifiers: localized


Default value: "What is the maximum number of monsters to spawn for this wave."

nu_Duration[edit]

Type: moNumericEdit


nu_MaxMonster[edit]

Type: moNumericEdit


nu_Wave[edit]

Type: moNumericEdit

Modifiers: automated


Default value: moNumericEdit'WaveNumber'

PropName[edit]

Type: string


PropValue[edit]

Type: string


sl_Diff[edit]

Type: moSlider


WaveCopy[edit]

Type: WaveInfo

Array size: 16


WaveMonsters[edit]

Type: WaveMonster

Array size: 16


Default value, index 0:

Member Value
Mask 1
MName "Pupae"

Default value, index 1:

Member Value
Mask 2
MName "Razor Fly"

Default value, index 10:

Member Value
Mask 1024
MName "Fire Skaarj"

Default value, index 11:

Member Value
Mask 2048
MName "Warlord"

Default value, index 12:

Member Value
Mask 4096
MName "Pupae"

Default value, index 13:

Member Value
Mask 8192
MName "Pupae"

Default value, index 14:

Member Value
Mask 16384
MName "Razor Fly"

Default value, index 15:

Member Value
Mask 32768
MName "Razor Fly"

Default value, index 16:

Member Value
Mask 4
MName "Manta"

Default value, index 17:

Member Value
Mask 8
MName "Krall"

Default value, index 18:

Member Value
Mask 16
MName "Elite Krall"

Default value, index 19:

Member Value
Mask 32
MName "Gasbag"

Default value, index 20:

Member Value
Mask 64
MName "Brute"

Default value, index 21:

Member Value
Mask 128
MName "Skaarj"

Default value, index 22:

Member Value
Mask 256
MName "Behemoth"

Default value, index 23:

Member Value
Mask 512
MName "Ice Skaarj"

Waves[edit]

Type: array<string>


WaveText[edit]

Type: string

Modifiers: localized


Default values[edit]

Property Value
bDrawFocusedLast False
DefaultLeft 0.05
DefaultWidth 0.9
WinLeft 0.05
WinWidth 0.9

Subobjects[edit]

WaveNumber[edit]

Class: XInterface.moNumericEdit

Property Value
bAutoSizeCaption True
bBoundToParent True
bScaleToParent True
Caption "Wave No."
CaptionWidth 0.1
ComponentJustification TXTA_Center
ComponentWidth 0.3
Hint "Select the wave you'd like to configure"
MaxValue 15
MinValue 0
OnChange InternalOnChange
RenderWeight 0.7
WinHeight 0.042857
WinLeft 0.407353
WinTop 0.09299
WinWidth 0.22

WavesList[edit]

Class: XInterface.GUIMultiOptionListBox

Property Value
bBoundToParent True
bScaleToParent True
bVisibleWhenEmpty True
NumColumns 3
OnChange InternalOnChange
TabOrder 1
WinHeight 0.698149
WinLeft 0.0075
WinTop 0.150608
WinWidth 0.98375

Structs[edit]

WaveInfo[edit]

int WaveMask 
byte WaveMaxMonsters 
byte WaveDuration 
float WaveDifficulty 

WaveMonster[edit]

string MName 
int Mask 

Functions[edit]

Events[edit]

Closed[edit]

event Closed (GUIComponent Sender, bool bCancelled)

Overrides: GUIPage.Closed


InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: LockedFloatingWindow.InitComponent


Other instance functions[edit]

AssembleWaveString[edit]

function AssembleWaveString ()


DisassembleWaveString[edit]

function DisassembleWaveString ()


GetDataString[edit]

function string GetDataString ()

Overrides: GUIPage.GetDataString


GetResult[edit]

function string GetResult ()


InitDifficulty[edit]

function InitDifficulty ()


InitDuration[edit]

function InitDuration ()


InitializeList[edit]

function InitializeList ()


InitMaxMonsters[edit]

function InitMaxMonsters ()


InitWaveControls[edit]

function InitWaveControls ()


InternalOnChange[edit]

function InternalOnChange (GUIComponent Sender)


SetOwner[edit]

function SetOwner (GUIComponent NewOwner)

Overrides: GUICustomPropertyPage.SetOwner


UpdateWaveValues[edit]

function UpdateWaveValues ()