diff --git a/content/chunk0/gameessentialbase.entity.patch.json b/content/chunk0/gameessentialbase.entity.patch.json index bd2cd4c..911dc7d 100644 --- a/content/chunk0/gameessentialbase.entity.patch.json +++ b/content/chunk0/gameessentialbase.entity.patch.json @@ -73,7 +73,7 @@ "value": { "resource": "[assembly:/ui/controls/HealthBar.swf].pc_swf", "flag": "5F" } }, "m_sClassName": { "type": "ZString", "value": "healthbar.HealthBar" }, - "m_vPositionOffset": { "type": "SVector3", "value": { "x": 14, "y": 829, "z": 0 } }, + "m_vPositionOffset": { "type": "SVector3", "value": { "x": 15, "y": 829, "z": 0 } }, "m_eAlignmentType": { "type": "ZUIControlLayoutLegacyAspect.EAlignmentType", "value": "E_ALIGNMENT_TYPE_BottomLeft" @@ -95,7 +95,9 @@ "LowHealthColour": { "type": "ZString", "value": "#FA0000" }, "MediumHealthColour": { "type": "ZString", "value": "#FFFF00" }, "FullHealthColour": { "type": "ZString", "value": "#00BA00" }, - "InfectedColour": { "type": "ZString", "value": "#FFFF00" } + "InfectedColour": { "type": "ZString", "value": "#FFFF00" }, + "Height": { "type": "float32", "value": 1 }, + "Width": { "type": "float32", "value": 1 } } } ] diff --git a/content/chunk0/scaleform/001D0947392E2DD6.GFXF b/content/chunk0/scaleform/001D0947392E2DD6.GFXF index 993ee13..15df9e0 100644 Binary files a/content/chunk0/scaleform/001D0947392E2DD6.GFXF and b/content/chunk0/scaleform/001D0947392E2DD6.GFXF differ diff --git a/content/chunk0/scaleform/003F45DD25EEE393.UICB b/content/chunk0/scaleform/003F45DD25EEE393.UICB index d3da7a6..bc17870 100644 Binary files a/content/chunk0/scaleform/003F45DD25EEE393.UICB and b/content/chunk0/scaleform/003F45DD25EEE393.UICB differ diff --git a/source/bin/HealthBar.swf b/source/bin/HealthBar.swf index ca360a3..e476506 100644 Binary files a/source/bin/HealthBar.swf and b/source/bin/HealthBar.swf differ diff --git a/source/lib/HealthBar.swc b/source/lib/HealthBar.swc index 1e47f36..8447f16 100644 Binary files a/source/lib/HealthBar.swc and b/source/lib/HealthBar.swc differ diff --git a/source/src/healthbar/HealthBar.as b/source/src/healthbar/HealthBar.as index c4573db..447f17f 100644 --- a/source/src/healthbar/HealthBar.as +++ b/source/src/healthbar/HealthBar.as @@ -10,6 +10,7 @@ import scaleform.gfx.Extensions; public class HealthBar extends BaseControl { private var m_healthBarView:HealthBarView = new HealthBarView(); + private var m_debugTextView:DebugTextView = new DebugTextView(); private var m_currentHealth:Number; private var m_isInfected:Boolean = false; private var m_lowHealthColour:uint; @@ -19,8 +20,10 @@ public class HealthBar extends BaseControl { private var m_DebugMode:Boolean; public function HealthBar() { + m_debugTextView.DebugText.visible = false; Extensions.setEdgeAAMode(m_healthBarView, Extensions.EDGEAA_OFF) addChild(m_healthBarView); + addChild(m_debugTextView); } public function SetHealth(health:Number):void { @@ -161,6 +164,14 @@ public class HealthBar extends BaseControl { } } + public function set Height(number:Number):void { + m_healthBarView.scaleY = number; + } + + public function set Width(number:Number):void { + m_healthBarView.scaleX = number; + } + private function UpdateDebugText(e:Event):void { var debugInfo:String = ""; debugInfo += "Current Health: " + Math.round(m_currentHealth) + "\n";