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

UT2004RPG.RPGStatsMenu

Extends
GUIPage
Modifiers
DependsOn ( RPGStatsInv )

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPage
            |   
            +-- UT2004RPG.RPGStatsMenu

Variables Summary
GUIListBoxAbilities
moEditBoxAdrenalineMaxBox
moEditBoxAmmoMaxBox
intAmtControlsOffset
moEditBoxAttackBox
intButtonControlsOffset
stringCantBuyText
stringCostText
stringCurrentLevelText
moEditBoxDefenseBox
moEditBoxHealthBonusBox
stringMaxText
intNumButtonControls
moEditBoxPointsAvailableBox
intStatDisplayControlsOffset
RPGStatsInvStatsInv
moEditBoxWeaponSpeedBox
Inherited Variables from XInterface.GUIPage
Background, BackgroundColor, BackgroundRStyle, bAllowedAsLast, bCaptureInput, bCheckResolution, bDisconnectOnOpen, bPauseIfPossible, bPersistent, bRenderWorld, bRequire640x480, bRestorable, CloseSound, InactiveFadeColor, OpenSound, ParentPage, Timers
Inherited Variables from XInterface.GUIMultiComponent
AnimationCount, bAlwaysAutomate, bDrawFocusedLast, bOldStyleMenus, Components, Controls, FocusedControl, PropagateVisibility

Functions Summary
functionbool BuyAbility (GUIComponent Sender)
functionbool CloseClick (GUIComponent Sender)
function DisablePlusButtons ()
function EnablePlusButtons ()
function InitComponent (GUIController MyController, GUIComponent MyOwner)
function InitFor (RPGStatsInv Inv)
functionbool LevelsClick (GUIComponent Sender)
function MyOnClose (optional bool bCanceled)
functionbool ResetClick (GUIComponent Sender)
functionbool ShowAbilityDesc (GUIComponent Sender)
functionbool StatPlusClick (GUIComponent Sender)
functionbool UpdateAbilityButtons (GUIComponent Sender)
Inherited Functions from XInterface.GUIPage
AllowOpen, ChangeHint, CheckResolution, Closed, Free, GetDataString, GetRestoreParams, HandleObject, HandleParameters, InitComponent, IsOpen, NotifyLevelChange, PlayCloseSound, PlayOpenSound, SetDataString, SetFocus
Inherited Functions from XInterface.GUIMultiComponent
AddComponent, AppendComponent, BeginAnimation, CanAcceptFocus, CenterMouse, CheckDuplicateTabOrder, CheckInvalidTabOrder, Closed, DebugTabOrder, DisableMe, EnableMe, EndAnimation, FindComponentIndex, FocusFirst, FocusLast, Free, InitComponent, InitializeControls, InsertComponent, InternalOnShow, LevelChanged, LoseFocus, NextControl, Opened, PrevControl, RemapComponents, RemoveComponent, SetFocus, SetFocusInstead, SetVisibility


Variables Detail

Abilities Source code

var GUIListBox Abilities;

AdrenalineMaxBox Source code

var moEditBox AdrenalineMaxBox;

AmmoMaxBox Source code

var moEditBox AmmoMaxBox;

AmtControlsOffset Source code

var int AmtControlsOffset;

AttackBox Source code

var moEditBox AttackBox;

ButtonControlsOffset Source code

var int ButtonControlsOffset;

CantBuyText Source code

var localized string CantBuyText;

CostText Source code

var localized string CostText;

CurrentLevelText Source code

var localized string CurrentLevelText;

DefenseBox Source code

var moEditBox DefenseBox;

HealthBonusBox Source code

var moEditBox HealthBonusBox;

MaxText Source code

var localized string MaxText;

NumButtonControls Source code

var int NumButtonControls;

PointsAvailableBox Source code

var moEditBox PointsAvailableBox;

StatDisplayControlsOffset Source code

var int StatDisplayControlsOffset;

StatsInv Source code

var RPGStatsInv StatsInv;

WeaponSpeedBox Source code

var moEditBox WeaponSpeedBox;


Functions Detail

BuyAbility Source code

function bool BuyAbility ( GUIComponent Sender )

CloseClick Source code

function bool CloseClick ( GUIComponent Sender )

DisablePlusButtons Source code

function DisablePlusButtons ( )

EnablePlusButtons Source code

function EnablePlusButtons ( )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner )

InitFor Source code

function InitFor ( RPGStatsInv Inv )

LevelsClick Source code

function bool LevelsClick ( GUIComponent Sender )

MyOnClose Source code

function MyOnClose ( optional bool bCanceled )

ResetClick Source code

function bool ResetClick ( GUIComponent Sender )

ShowAbilityDesc Source code

function bool ShowAbilityDesc ( GUIComponent Sender )

StatPlusClick Source code

function bool StatPlusClick ( GUIComponent Sender )

UpdateAbilityButtons Source code

function bool UpdateAbilityButtons ( GUIComponent Sender )


Defaultproperties

defaultproperties
{
     StatDisplayControlsOffset=2
     ButtonControlsOffset=9
     AmtControlsOffset=19
     NumButtonControls=6
     CurrentLevelText="Current Level:"
     MaxText="MAX"
     CostText="Cost:"
     CantBuyText="Can't Buy"
     bRenderWorld=True
     bAllowedAsLast=True
     OnClose=RPGStatsMenu.MyOnClose
     Begin Object Class=FloatingImage Name=FloatingFrameBackground
         Image=Texture'2K4Menus.NewControls.Display1'
         DropShadow=None
         ImageStyle=ISTY_Stretched
         ImageRenderStyle=MSTY_Normal
         WinTop=0.020000
         WinLeft=0.000000
         WinWidth=1.000000
         WinHeight=0.980000
         RenderWeight=0.000003
     End Object
     Controls(0)=FloatingImage'UT2004RPG.RPGStatsMenu.FloatingFrameBackground'

     Begin Object Class=GUIButton Name=CloseButton
         Caption="Close"
         WinTop=0.900000
         WinLeft=0.550000
         WinWidth=0.200000
         OnClick=RPGStatsMenu.CloseClick
         OnKeyEvent=CloseButton.InternalOnKeyEvent
     End Object
     Controls(1)=GUIButton'UT2004RPG.RPGStatsMenu.CloseButton'

     Begin Object Class=moEditBox Name=WeaponSpeedSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Weapon Speed Bonus (%)"
         OnCreateComponent=WeaponSpeedSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.117448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(2)=moEditBox'UT2004RPG.RPGStatsMenu.WeaponSpeedSelect'

     Begin Object Class=moEditBox Name=HealthBonusSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Health Bonus"
         OnCreateComponent=HealthBonusSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.197448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(3)=moEditBox'UT2004RPG.RPGStatsMenu.HealthBonusSelect'

     Begin Object Class=moEditBox Name=AdrenalineMaxSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Max Adrenaline"
         OnCreateComponent=AdrenalineMaxSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.277448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(4)=moEditBox'UT2004RPG.RPGStatsMenu.AdrenalineMaxSelect'

     Begin Object Class=moEditBox Name=AttackSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Damage Bonus (0.5%)"
         OnCreateComponent=AttackSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.357448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(5)=moEditBox'UT2004RPG.RPGStatsMenu.AttackSelect'

     Begin Object Class=moEditBox Name=DefenseSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Damage Reduction (0.5%)"
         OnCreateComponent=DefenseSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.437448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(6)=moEditBox'UT2004RPG.RPGStatsMenu.DefenseSelect'

     Begin Object Class=moEditBox Name=MaxAmmoSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Max Ammo Bonus (%)"
         OnCreateComponent=MaxAmmoSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.517448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(7)=moEditBox'UT2004RPG.RPGStatsMenu.MaxAmmoSelect'

     Begin Object Class=moEditBox Name=PointsAvailableSelect
         bReadOnly=True
         CaptionWidth=0.775000
         Caption="Stat Points Available"
         OnCreateComponent=PointsAvailableSelect.InternalOnCreateComponent
         IniOption="@INTERNAL"
         WinTop=0.597448
         WinLeft=0.250000
         WinWidth=0.362500
         WinHeight=0.040000
     End Object
     Controls(8)=moEditBox'UT2004RPG.RPGStatsMenu.PointsAvailableSelect'

     Begin Object Class=GUIButton Name=WeaponSpeedButton
         Caption="+"
         WinTop=0.127448
         WinLeft=0.737500
         WinWidth=0.040000
         OnClick=RPGStatsMenu.StatPlusClick
         OnKeyEvent=WeaponSpeedButton.InternalOnKeyEvent
     End Object
     Controls(9)=GUIButton'UT2004RPG.RPGStatsMenu.WeaponSpeedButton'

     Begin Object Class=GUIButton Name=HealthBonusButton
         Caption="+"
         WinTop=0.207448
         WinLeft=0.737500
         WinWidth=0.040000
         OnClick=RPGStatsMenu.StatPlusClick
         OnKeyEvent=HealthBonusButton.InternalOnKeyEvent
     End Object
     Controls(10)=GUIButton'UT2004RPG.RPGStatsMenu.HealthBonusButton'

     Begin Object Class=GUIButton Name=AdrenalineMaxButton
         Caption="+"
         WinTop=0.287448
         WinLeft=0.737500
         WinWidth=0.040000
         OnClick=RPGStatsMenu.StatPlusClick
         OnKeyEvent=AdrenalineMaxButton.InternalOnKeyEvent
     End Object
     Controls(11)=GUIButton'UT2004RPG.RPGStatsMenu.AdrenalineMaxButton'

     Begin Object Class=GUIButton Name=AttackButton
         Caption="+"
         WinTop=0.367448
         WinLeft=0.737500
         WinWidth=0.040000
         OnClick=RPGStatsMenu.StatPlusClick
         OnKeyEvent=AttackButton.InternalOnKeyEvent
     End Object
     Controls(12)=GUIButton'UT2004RPG.RPGStatsMenu.AttackButton'

     Begin Object Class=GUIButton Name=DefenseButton
         Caption="+"
         WinTop=0.447448
         WinLeft=0.737500
         WinWidth=0.040000
         OnClick=RPGStatsMenu.StatPlusClick
         OnKeyEvent=DefenseButton.InternalOnKeyEvent
     End Object
     Controls(13)=GUIButton'UT2004RPG.RPGStatsMenu.DefenseButton'

     Begin Object Class=GUIButton Name=AmmoMaxButton
         Caption="+"
         WinTop=0.527448
         WinLeft=0.737500
         WinWidth=0.040000
         OnClick=RPGStatsMenu.StatPlusClick
         OnKeyEvent=AmmoMaxButton.InternalOnKeyEvent
     End Object
     Controls(14)=GUIButton'UT2004RPG.RPGStatsMenu.AmmoMaxButton'

     Begin Object Class=GUIButton Name=LevelsButton
         Caption="See Player Levels"
         WinTop=0.900000
         WinLeft=0.225000
         WinWidth=0.250000
         OnClick=RPGStatsMenu.LevelsClick
         OnKeyEvent=LevelsButton.InternalOnKeyEvent
     End Object
     Controls(15)=GUIButton'UT2004RPG.RPGStatsMenu.LevelsButton'

     Begin Object Class=GUIListBox Name=AbilityList
         bVisibleWhenEmpty=True
         OnCreateComponent=AbilityList.InternalOnCreateComponent
         StyleName="AbilityList"
         Hint="These are the abilities you can purchase with stat points."
         WinTop=0.700000
         WinLeft=0.215000
         WinWidth=0.435000
         WinHeight=0.150000
         OnClick=RPGStatsMenu.UpdateAbilityButtons
     End Object
     Controls(16)=GUIListBox'UT2004RPG.RPGStatsMenu.AbilityList'

     Begin Object Class=GUIButton Name=AbilityDescButton
         Caption="Info"
         WinTop=0.700000
         WinLeft=0.675000
         WinWidth=0.100000
         OnClick=RPGStatsMenu.ShowAbilityDesc
         OnKeyEvent=AbilityDescButton.InternalOnKeyEvent
     End Object
     Controls(17)=GUIButton'UT2004RPG.RPGStatsMenu.AbilityDescButton'

     Begin Object Class=GUIButton Name=AbilityBuyButton
         Caption="Buy"
         WinTop=0.810000
         WinLeft=0.675000
         WinWidth=0.100000
         OnClick=RPGStatsMenu.BuyAbility
         OnKeyEvent=AbilityBuyButton.InternalOnKeyEvent
     End Object
     Controls(18)=GUIButton'UT2004RPG.RPGStatsMenu.AbilityBuyButton'

     Begin Object Class=GUINumericEdit Name=WeaponSpeedAmt
         Value="5"
         MinValue=1
         MaxValue=5
         WinTop=0.117448
         WinLeft=0.645000
         WinWidth=0.080000
         OnDeActivate=WeaponSpeedAmt.ValidateValue
     End Object
     Controls(19)=GUINumericEdit'UT2004RPG.RPGStatsMenu.WeaponSpeedAmt'

     Begin Object Class=GUINumericEdit Name=HealthBonusAmt
         Value="5"
         MinValue=1
         MaxValue=5
         WinTop=0.197448
         WinLeft=0.645000
         WinWidth=0.080000
         OnDeActivate=HealthBonusAmt.ValidateValue
     End Object
     Controls(20)=GUINumericEdit'UT2004RPG.RPGStatsMenu.HealthBonusAmt'

     Begin Object Class=GUINumericEdit Name=AdrenalineMaxAmt
         Value="5"
         MinValue=1
         MaxValue=5
         WinTop=0.277448
         WinLeft=0.645000
         WinWidth=0.080000
         OnDeActivate=AdrenalineMaxAmt.ValidateValue
     End Object
     Controls(21)=GUINumericEdit'UT2004RPG.RPGStatsMenu.AdrenalineMaxAmt'

     Begin Object Class=GUINumericEdit Name=AttackAmt
         Value="5"
         MinValue=1
         MaxValue=5
         WinTop=0.357448
         WinLeft=0.645000
         WinWidth=0.080000
         OnDeActivate=AttackAmt.ValidateValue
     End Object
     Controls(22)=GUINumericEdit'UT2004RPG.RPGStatsMenu.AttackAmt'

     Begin Object Class=GUINumericEdit Name=DefenseAmt
         Value="5"
         MinValue=1
         MaxValue=5
         WinTop=0.437448
         WinLeft=0.645000
         WinWidth=0.080000
         OnDeActivate=DefenseAmt.ValidateValue
     End Object
     Controls(23)=GUINumericEdit'UT2004RPG.RPGStatsMenu.DefenseAmt'

     Begin Object Class=GUINumericEdit Name=MaxAmmoAmt
         Value="5"
         MinValue=1
         MaxValue=5
         WinTop=0.517448
         WinLeft=0.645000
         WinWidth=0.080000
         OnDeActivate=MaxAmmoAmt.ValidateValue
     End Object
     Controls(24)=GUINumericEdit'UT2004RPG.RPGStatsMenu.MaxAmmoAmt'

     Begin Object Class=GUIButton Name=ResetButton
         Caption="Reset"
         FontScale=FNS_Small
         StyleName="ResetButton"
         WinTop=0.050000
         WinLeft=0.225000
         WinWidth=0.065000
         WinHeight=0.025000
         OnClick=RPGStatsMenu.ResetClick
         OnKeyEvent=ResetButton.InternalOnKeyEvent
     End Object
     Controls(25)=GUIButton'UT2004RPG.RPGStatsMenu.ResetButton'

     Begin Object Class=GUIHeader Name=TitleBar
         bUseTextHeight=True
         Caption="Stat Improvement"
         WinHeight=0.043750
         RenderWeight=0.100000
         bBoundToParent=True
         bScaleToParent=True
         bAcceptsInput=True
         bNeverFocus=False
         ScalingType=SCALE_X
     End Object
     Controls(26)=GUIHeader'UT2004RPG.RPGStatsMenu.TitleBar'

     Begin Object Class=GUILabel Name=LevelLabel
         Caption="Level:"
         TextAlign=TXTA_Center
         TextColor=(B=255,G=255,R=255)
         WinTop=0.047500
         WinHeight=0.025000
         bBoundToParent=True
         bScaleToParent=True
     End Object
     Controls(27)=GUILabel'UT2004RPG.RPGStatsMenu.LevelLabel'

     Begin Object Class=GUILabel Name=EXPLabel
         Caption="Experience:"
         TextAlign=TXTA_Center
         TextColor=(B=255,G=255,R=255)
         WinTop=0.072500
         WinHeight=0.025000
         bBoundToParent=True
         bScaleToParent=True
     End Object
     Controls(28)=GUILabel'UT2004RPG.RPGStatsMenu.EXPLabel'

     WinLeft=0.200000
     WinWidth=0.600000
     WinHeight=1.000000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Wed 7/2/2007 19:16:14.500 - Created with UnCodeX