MovieClip |
com.Components.StatBar |
the statbar components will extend any MovieClip tha statbar references two items,
| com. | the statbar components will extend any MovieClip tha statbar references two items, |
| Variables | |
| m_Dynel | |
| m_GroupElement | |
| m_Current | |
| i_StatText | |
| i_Bar | |
| m_Max | |
| m_CurrentFrame | |
| m_TargetFrame | |
| m_NameXOrgPos | |
| m_ShowStatText | |
| m_ShowStatTextAsPercent | |
| m_CurrentStatID | |
| m_MaxStatID | |
| m_FadeWhenInactive | |
| m_FadeTimer | |
| m_Fading | |
| m_AlwaysVisible | |
| m_FrameCount | |
| m_FrameResetHack | |
| m_CurrentFrameHack | |
| m_CurrentFrameHackMax | |
| Functions | |
| StatBar | |
| Init | |
| SetFadeWhenInactive | |
| SetDynel | |
| SetGroupElement | |
| SlotCharacterEntered | |
| SlotCharacterExited | |
| ClearBar | |
| SlotStatChanged | listens to a change in stats. |
| SetMax | Retrieves the maxhealt and creates a factor by dividing it with the number of frames in the active statbar, if max health is 0 remove the healthbar, othervise set the max health text |
| UpdateStatText | |
| SetCurrent | Updates the stat text and bar |
| Update | |
| onEnterFrame | |
| UpdateStatBar | |
| Hide | |
| Show | |
| SetShowText | |
| OnFadeTimer |
var m_Dynel: Dynel
var m_GroupElement: GroupElement
var m_Current: Number
var i_StatText: TextField
var i_Bar: MovieClip
var m_Max: Number
var m_CurrentFrame: Number
var m_TargetFrame: Number
var m_NameXOrgPos: Number
var m_ShowStatText: Boolean
var m_ShowStatTextAsPercent: Boolean
var m_CurrentStatID: Number
var m_MaxStatID: Number
var m_FadeWhenInactive: Boolean
var m_FadeTimer: Number
var m_Fading: Boolean
var m_AlwaysVisible: Boolean
var m_FrameCount: Number
var m_FrameResetHack: Number
var m_CurrentFrameHack: Number
var m_CurrentFrameHackMax: Number
public function StatBar()
public function Init( CurrentStatID: Number, MaxStatID: Number, AlwaysVisible: Boolean )
public function SetFadeWhenInactive( fade: Boolean )
public function SetDynel( dynel: Dynel )
public function SetGroupElement( groupElement: GroupElement )
function SlotCharacterEntered()
function SlotCharacterExited()
private function ClearBar( )
listens to a change in stats.
private function SlotStatChanged( stat: Number, value: Number )
Retrieves the maxhealt and creates a factor by dividing it with the number of frames in the active statbar, if max health is 0 remove the healthbar, othervise set the max health text
private function SetMax( maxStat: Number ) : Void
private function UpdateStatText()
Updates the stat text and bar
private function SetCurrent( stat: Number ) : Void
public function Update()
private function onEnterFrame()
private function UpdateStatBar()
public function Hide()
public function Show()
public function SetShowText( show: Boolean )
private function OnFadeTimer()