| HealthBars.as | |
| Variables | |
| m_Slot | |
| m_DynelSlot | |
| m_CurrentHealth | |
| m_MaxHealth | |
| m_Target | |
| m_NameXOrgPos | |
| Functions | |
| Init | |
| SetSlot | |
| onDynelOnClient | |
| onSlotChanged | when a slot is changed. |
| onStatUpdated | listens to a change in stats. |
| SetMaxHealth | Retrieves the maxhealt and creates a factor by dividing it with the number of frames in the active healthbar, if max health is 0 remove the healthbar, othervise set the max health text |
| UpdatePercent | |
| UpdateHealth | Updates the health text and bar |
| SlotNewTeamLeader | |
| AddStar | |
| RemoveStar | |
| ResizeHandler |
function SetMaxHealth( p_maxhealth: Number ) : Void
Retrieves the maxhealt and creates a factor by dividing it with the number of frames in the active healthbar, if max health is 0 remove the healthbar, othervise set the max health text
| p_maxhealth | :String - the max health as a string |
void
var m_Slot: Number
var m_DynelSlot: DynelSlot
var m_CurrentHealth: Number
var m_MaxHealth: Number
var m_Target: Number
var m_NameXOrgPos: Number
function Init()
function SetSlot( p_Slot: Number )
function onDynelOnClient( p_OnClient: Boolean )
when a slot is changed.
function onSlotChanged( p_Slot: Number, p_Exists: Boolean )
listens to a change in stats.
function onStatUpdated( p_stat: Number, p_value: Number )
Retrieves the maxhealt and creates a factor by dividing it with the number of frames in the active healthbar, if max health is 0 remove the healthbar, othervise set the max health text
function SetMaxHealth( p_maxhealth: Number ) : Void
function UpdatePercent()
Updates the health text and bar
function UpdateHealth( p_health: Number, p_barrier: Number ) : Void
function SlotNewTeamLeader( id: com.Utils.ID32 )
function AddStar()
function RemoveStar()
function ResizeHandler() : Void