GUI.SkillHive.CharacterStats

StatPage
GUI.SkillHive.CharacterStats
Summary
GUI.SkillHive.CharacterStats
Variables
m_StatPageItemsobjects
m_LabelObject
m_StatPagesObject
m_CharacterStatsPane
m_ContentClip
m_StatPage
m_CurrentStatPageIndex
m_PanelTweenSpeed
m_StatPageItemHeightlayoup
Functions
CharacterStats
SetCharacterName
SetFactionName
CreatePaperDoll
CreateStatPageAttaches a dropdown to the m_StatPage MovieClip and draws the stats on it when requested
SlotCharacterLoaded
UpdateStatPageUpdates the content of the stat page when a new page is selected
OnDropdownSelectionupdates the statpage wnhen a new item is selected from the dropdown
SlotSkillUpdatedwhen an update to a skill is received checks if the stat is visible and writes to it, if not it stores the updated skill

Variables

m_StatPageItems

private var m_StatPageItems: Array

objects

m_LabelObject

private var m_LabelObject: Object

m_StatPagesObject

private var m_StatPagesObject: Object

m_CharacterStatsPane

private var m_CharacterStatsPane: MovieClip

m_ContentClip

private var m_ContentClip: MovieClip

m_StatPage

private var m_StatPage: MovieClip

m_CurrentStatPageIndex

private var m_CurrentStatPageIndex: Number

m_PanelTweenSpeed

private var m_PanelTweenSpeed: Number

m_StatPageItemHeight

private var m_StatPageItemHeight: Number

layoup

Functions

CharacterStats

public function CharacterStats(characterStatsPane: MovieClip)

SetCharacterName

public function SetCharacterName(name: String) : Void

SetFactionName

public function SetFactionName(playerFaction: Number):Void

CreatePaperDoll

private function CreatePaperDoll() : Void

CreateStatPage

private function CreateStatPage() : Void

Attaches a dropdown to the m_StatPage MovieClip and draws the stats on it when requested

SlotCharacterLoaded

public function SlotCharacterLoaded(url: String,
succeded: Boolean)

UpdateStatPage

private function UpdateStatPage(index: Number)

Updates the content of the stat page when a new page is selected

Parameters

index:Number - the index in the m_StatPageItems to load

OnDropdownSelection

private function OnDropdownSelection(event: Object)

updates the statpage wnhen a new item is selected from the dropdown

Parameters

event:Object - The Scaleform event object containing type and target

SlotSkillUpdated

private function SlotSkillUpdated(updatedSkill: Number)

when an update to a skill is received checks if the stat is visible and writes to it, if not it stores the updated skill

Parameters

updatedSkill:Number - the id of the skill to update
private var m_StatPageItems: Array
objects
private var m_LabelObject: Object
private var m_StatPagesObject: Object
private var m_CharacterStatsPane: MovieClip
private var m_ContentClip: MovieClip
private var m_StatPage: MovieClip
private var m_CurrentStatPageIndex: Number
private var m_PanelTweenSpeed: Number
private var m_StatPageItemHeight: Number
layoup
public function CharacterStats(characterStatsPane: MovieClip)
public function SetCharacterName(name: String) : Void
public function SetFactionName(playerFaction: Number):Void
private function CreatePaperDoll() : Void
private function CreateStatPage() : Void
Attaches a dropdown to the m_StatPage MovieClip and draws the stats on it when requested
public function SlotCharacterLoaded(url: String,
succeded: Boolean)
private function UpdateStatPage(index: Number)
Updates the content of the stat page when a new page is selected
private function OnDropdownSelection(event: Object)
updates the statpage wnhen a new item is selected from the dropdown
private function SlotSkillUpdated(updatedSkill: Number)
when an update to a skill is received checks if the stat is visible and writes to it, if not it stores the updated skill
Close