I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:UT2K4SP_HighScores (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIMultiComponent >> GUIPage >> UT2K4GUIPage >> UT2K4SP_HighScores
Package: 
GUI2K4

Single Player highscore list

Written by Michiel Hendriks (c) 2003, Epic Games, Inc. All Rights Reserved

Properties[edit]

bFinished[edit]

Type: bool

finished scrolling the list

btnExport[edit]

Type: GUIButton

Modifiers: automated


Default value: GUIButton'SPMbtnExport'

ClickToExit[edit]

Type: string

Modifiers: localized


Default value: "C L I C K T O E X I T"

ColumnHeaders[edit]

Type: string

Array size: 4

Modifiers: localized


Default value, index 0: "name"

Default value, index 1: "balance"

Default value, index 2: "matches"

Default value, index 3: "wins"

curY[edit]

Type: float

used for drawing

HilighEntry[edit]

Type: int

hilight this entry, pass an int value on HandleParameters to set it

HS[edit]

Type: SPHighScore

highscore data file

imgBackground[edit]

Type: GUIImage

Modifiers: automated


Default value: GUIImage'SPMimgBackground'

imgDraw[edit]

Type: GUIImage

Modifiers: automated


Default value: GUIImage'SPMimgDraw'

incY[edit]

Type: float

used for drawing

lineHeight[edit]

Type: float

used for drawing

MainFont[edit]

Type: GUIFont


nfov[edit]

Type: int


Default value: 15

PlayerList[edit]

Type: array<xUtil.PlayerRecord>


sbScores[edit]

Type: GUIVertScrollBar

Modifiers: automated


Default value: GUIVertScrollBar'SPMsbScores'

SpinnyDude[edit]

Type: SpinnyWeap

MUST be set to null when you leave the window

SpinnyDudeOffset[edit]

Type: Object.Vector


Default value:

Member Value
X 273.0
Y 0.0
Z -11.0

startoffset[edit]

Type: int

start drawing from this entry

TinyFont[edit]

Type: GUIFont


Default values[edit]

Property Value
OnKeyEvent WindowOnKeyEvent
WinHeight 1.0
WinTop 0.0

Subobjects[edit]

SPMbtnExport[edit]

Class: XInterface.GUIButton

Property Value
bVisible False
Caption "SAVE TO FILE"
FontScale FNS_Small
OnClick OnExportClick
RenderWeight 0.2
WinHeight 0.0040
WinLeft 0.4
WinTop 0.95
WinWidth 0.2

SPMimgBackground[edit]

Class: XInterface.GUIImage

Property Value
bAcceptsInput True
bNeverFocus True
bVisible True
Image Material'2K4Menus.Controls.background_anim'
ImageColor
Member Value
A 255
B 255
G 255
R 255
ImageRenderStyle MSTY_Normal
ImageStyle ISTY_Scaled
OnClick OnImgClick
OnKeyEvent WindowOnKeyEvent
RenderWeight 0.0010
WinHeight 1.0
WinLeft 0.0
WinTop 0.0
WinWidth 1.0

SPMimgDraw[edit]

Class: XInterface.GUIImage

Property Value
bAcceptsInput True
bNeverFocus True
bVisible True
OnClick OnImgClick
OnDraw InternalOnDraw
OnKeyEvent WindowOnKeyEvent
RenderWeight 0.0020
WinHeight 1.0
WinLeft 0.0
WinTop 0.0
WinWidth 1.0

SPMsbScores[edit]

Class: XInterface.GUIVertScrollBar

Property Value
bVisible False
PositionChanged OnScrollPosChanged
RenderWeight 1.0
WinHeight 1.0
WinLeft 0.9625
WinTop 0.0
WinWidth 0.0375

Functions[edit]

Events[edit]

Free[edit]

event Free ()

Overrides: GUIPage.Free


HandleParameters[edit]

event HandleParameters (string Param1, string Param2)

Overrides: GUIPage.HandleParameters


InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: GUIPage.InitComponent


Opened[edit]

event Opened (GUIComponent Sender)

Overrides: GUIMultiComponent.Opened


Timer[edit]

event Timer ()

Overrides: GUIComponent.Timer


Other instance functions[edit]

ExportToFile[edit]

function ExportToFile ()


InternalOnDraw[edit]

function bool InternalOnDraw (Canvas Canvas)


OnDrawScores[edit]

function OnDrawScores (Canvas Canvas)


OnExportClick[edit]

function bool OnExportClick (GUIComponent Sender)


OnImgClick[edit]

function bool OnImgClick (GUIComponent Sender)


OnScrollPosChanged[edit]

function OnScrollPosChanged (int NewPos)


UpdateSpinnyDude[edit]

function UpdateSpinnyDude ()


WindowOnKeyEvent[edit]

function bool WindowOnKeyEvent (out byte Key, out byte State, float delta)