PvPMiniScoreboard.as

Summary
PvPMiniScoreboard.as
Variables
m_TimerPanel
m_TokenPanel
m_FlagPanel
SIDE_SCORE
SIDE_FLAGS
PLAYER_CAPTURED_FLAG
PLAYER_RETURNED_FLAG
PANEL_STATE_NORMAL
PANEL_STATE_DOMINATION
m_PanelState
EL_DORADO_ID
SHAMBALA_ID
STONEHENGE_ID
m_TokenSize
m_MaxFlags
m_PlayerMaxFlags
m_UpdateTimer
m_DominationTimedomination, who got all flags
m_DominationTimeStarted
m_DominationTimerId
m_DominationTimeRefreshSpeed
m_DominationSide
m_TokenLinkage
m_TokenName
m_UseDropFlags
m_DisabledAlpha
m_UnfocusedAlpha
m_TDB_Overtime
m_TDB_Timeleft
m_TDB_TimeToStart
m_FilterArray
m_Sides
m_Character
m_PlantFlagEnabled
m_MissionTierInfoDValuethe d value for the missiontierinfo
m_PVPMiniScoreDValue
m_PvPNotifierDValue
m_EditModeMask
Functions
onLoad
GetNamecreate the glow filter we’ll use later
OnUnloadthe method called by SFClipLoader
UpdateVisibility
OnUpdateTimerstart the countdowm
SlotStatChangedListens to StatChanges on the character and passing on the stat to update in necessary
UpdateFlagsUpdates the flags a character holds
GetMaxNumFlagscalculates and returns the max number of flags
UpdateTokensUpdates the flag tokens by resizing the bacground of the tokens, lay them out and highlight the dominant faction
SetPanelStateDominationUpdates the TokenPanel and TimerPanel, adding the leading team’s color and, text and a timer
OnDominationTimerUpdate
InitLayoutCalled to clear teh graphics scores and flags when initializing and hiding sets up the stage corresponding to the type of minigame
SlotPlantFlagRemove player flags
SlotScoreChangedCalled when the PvPMinigame.SignalPvPMinigameScoreChanged signal is emitted.
SlotMatchRemoved
SlotMatchStarted
SlotMatchEnded
SlotMinigameStartsInXSeconds
SlotMatchWantsToStart
SlotSetGUIEditMode
SlotEditMaskPressed
SlotEditMaskReleased
LayoutEditModeMask

Variables

m_TimerPanel

var m_TimerPanel: MovieClip

m_TokenPanel

var m_TokenPanel: MovieClip

m_FlagPanel

var m_FlagPanel: MovieClip

SIDE_SCORE

var SIDE_SCORE: Number

SIDE_FLAGS

var SIDE_FLAGS: Number

PLAYER_CAPTURED_FLAG

var PLAYER_CAPTURED_FLAG: Number

PLAYER_RETURNED_FLAG

var PLAYER_RETURNED_FLAG: Number

PANEL_STATE_NORMAL

var PANEL_STATE_NORMAL: Number

PANEL_STATE_DOMINATION

var PANEL_STATE_DOMINATION: Number

m_PanelState

var m_PanelState: Number

EL_DORADO_ID

var EL_DORADO_ID: Number

SHAMBALA_ID

var SHAMBALA_ID: Number

STONEHENGE_ID

var STONEHENGE_ID: Number

m_TokenSize

var m_TokenSize: Number

m_MaxFlags

var m_MaxFlags: Number

m_PlayerMaxFlags

var m_PlayerMaxFlags: Number

m_UpdateTimer

var m_UpdateTimer: Number

m_DominationTime

var m_DominationTime: Number

domination, who got all flags

m_DominationTimeStarted

var m_DominationTimeStarted: Number

m_DominationTimerId

var m_DominationTimerId: Number

m_DominationTimeRefreshSpeed

var m_DominationTimeRefreshSpeed: Number

m_DominationSide

var m_DominationSide: Number

m_TokenLinkage

var m_TokenLinkage: String

m_TokenName

var m_TokenName: String

m_UseDropFlags

var m_UseDropFlags: Boolean

m_DisabledAlpha

var m_DisabledAlpha: Number

m_UnfocusedAlpha

var m_UnfocusedAlpha: Number

m_TDB_Overtime

var m_TDB_Overtime: String

m_TDB_Timeleft

var m_TDB_Timeleft: String

m_TDB_TimeToStart

var m_TDB_TimeToStart: String

m_FilterArray

var m_FilterArray: Array

m_Sides

var m_Sides: Object

m_Character

var m_Character: Character

m_PlantFlagEnabled

var m_PlantFlagEnabled: Boolean

m_MissionTierInfoDValue

var m_MissionTierInfoDValue: DistributedValue

the d value for the missiontierinfo

m_PVPMiniScoreDValue

var m_PVPMiniScoreDValue: DistributedValue

m_PvPNotifierDValue

var m_PvPNotifierDValue: DistributedValue

m_EditModeMask

var m_EditModeMask: MovieClip

Functions

onLoad

function onLoad()

GetName

function GetName() : String

create the glow filter we’ll use later

OnUnload

function OnUnload()

the method called by SFClipLoader

UpdateVisibility

function UpdateVisibility()

OnUpdateTimer

function OnUpdateTimer()

start the countdowm

SlotStatChanged

function SlotStatChanged(stat: Number):Void

Listens to StatChanges on the character and passing on the stat to update in necessary

UpdateFlags

function UpdateFlags() : Void

Updates the flags a character holds

GetMaxNumFlags

function GetMaxNumFlags() : Number

calculates and returns the max number of flags

Returns

Number - the max number of flags

UpdateTokens

function UpdateTokens(side: Number)

Updates the flag tokens by resizing the bacground of the tokens, lay them out and highlight the dominant faction

Parameters

param side:Number - the side to update

SetPanelStateDomination

function SetPanelStateDomination(side: Number,
isDominating: Boolean)

Updates the TokenPanel and TimerPanel, adding the leading team’s color and, text and a timer

Parameters

param side:Number - The faction enum and index of m_Sides array
param isDominating:Boolean - Add or the remove the dominationframe

OnDominationTimerUpdate

function OnDominationTimerUpdate()

InitLayout

function InitLayout() : Void

Called to clear teh graphics scores and flags when initializing and hiding sets up the stage corresponding to the type of minigame

SlotPlantFlag

function SlotPlantFlag()

Remove player flags

SlotScoreChanged

function SlotScoreChanged()

Called when the PvPMinigame.SignalPvPMinigameScoreChanged signal is emitted.  Iterates the sides and gets their score, if a score has changed, write the new values

SlotMatchRemoved

function SlotMatchRemoved()

SlotMatchStarted

function SlotMatchStarted()

SlotMatchEnded

function SlotMatchEnded()

SlotMinigameStartsInXSeconds

function SlotMinigameStartsInXSeconds()

SlotMatchWantsToStart

function SlotMatchWantsToStart()

SlotSetGUIEditMode

function SlotSetGUIEditMode(edit: Boolean)

SlotEditMaskPressed

function SlotEditMaskPressed()

SlotEditMaskReleased

function SlotEditMaskReleased()

LayoutEditModeMask

function LayoutEditModeMask()
var m_TimerPanel: MovieClip
var m_TokenPanel: MovieClip
var m_FlagPanel: MovieClip
var SIDE_SCORE: Number
var SIDE_FLAGS: Number
var PLAYER_CAPTURED_FLAG: Number
var PLAYER_RETURNED_FLAG: Number
var PANEL_STATE_NORMAL: Number
var PANEL_STATE_DOMINATION: Number
var m_PanelState: Number
var EL_DORADO_ID: Number
var SHAMBALA_ID: Number
var STONEHENGE_ID: Number
var m_TokenSize: Number
var m_MaxFlags: Number
var m_PlayerMaxFlags: Number
var m_UpdateTimer: Number
var m_DominationTime: Number
domination, who got all flags
var m_DominationTimeStarted: Number
var m_DominationTimerId: Number
var m_DominationTimeRefreshSpeed: Number
var m_DominationSide: Number
var m_TokenLinkage: String
var m_TokenName: String
var m_UseDropFlags: Boolean
var m_DisabledAlpha: Number
var m_UnfocusedAlpha: Number
var m_TDB_Overtime: String
var m_TDB_Timeleft: String
var m_TDB_TimeToStart: String
var m_FilterArray: Array
var m_Sides: Object
var m_Character: Character
var m_PlantFlagEnabled: Boolean
var m_MissionTierInfoDValue: DistributedValue
the d value for the missiontierinfo
var m_PVPMiniScoreDValue: DistributedValue
var m_PvPNotifierDValue: DistributedValue
var m_EditModeMask: MovieClip
function onLoad()
function GetName() : String
create the glow filter we’ll use later
function OnUnload()
the method called by SFClipLoader
function UpdateVisibility()
function OnUpdateTimer()
start the countdowm
function SlotStatChanged(stat: Number):Void
Listens to StatChanges on the character and passing on the stat to update in necessary
function UpdateFlags() : Void
Updates the flags a character holds
function GetMaxNumFlags() : Number
calculates and returns the max number of flags
function UpdateTokens(side: Number)
Updates the flag tokens by resizing the bacground of the tokens, lay them out and highlight the dominant faction
function SetPanelStateDomination(side: Number,
isDominating: Boolean)
Updates the TokenPanel and TimerPanel, adding the leading team’s color and, text and a timer
function OnDominationTimerUpdate()
function InitLayout() : Void
Called to clear teh graphics scores and flags when initializing and hiding sets up the stage corresponding to the type of minigame
function SlotPlantFlag()
Remove player flags
function SlotScoreChanged()
Called when the PvPMinigame.SignalPvPMinigameScoreChanged signal is emitted.
function SlotMatchRemoved()
function SlotMatchStarted()
function SlotMatchEnded()
function SlotMinigameStartsInXSeconds()
function SlotMatchWantsToStart()
function SlotSetGUIEditMode(edit: Boolean)
function SlotEditMaskPressed()
function SlotEditMaskReleased()
function LayoutEditModeMask()
Close