Skip to content

Commit

Permalink
feat: added some basic customisability options (more will come in the…
Browse files Browse the repository at this point in the history
… future)
  • Loading branch information
Notexe committed Feb 24, 2024
1 parent 16ba6e4 commit de129ef
Show file tree
Hide file tree
Showing 19 changed files with 239 additions and 34 deletions.
Binary file added colour_schemes/colour_schemes.afphoto
Binary file not shown.
Binary file added colour_schemes/main/default_colours.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"MainColours": {
"LowHealthColour": "#FA0000",
"MediumHealthColour": "#FFFF00",
"FullHealthColour": "#00BA00",
"InfectedColour": "#FFFF00"
}
}
Binary file added colour_schemes/main/rgb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions colour_schemes/main/rgb/chunk0/00E4170B1BDDBEFA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"MainColours": {
"LowHealthColour": "#0000FF",
"MediumHealthColour": "#00FF00",
"FullHealthColour": "#FF0000",
"InfectedColour": "#FFFF00"
}
}
Binary file added colour_schemes/secondary/bright.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions colour_schemes/secondary/bright/chunk0/006D86C5584C7B9F.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"SecondaryColours": {
"HealthBarTextColour": "#000000",
"HealthBarTextBGColour": "#FAFAFA",
"HealthBarTextBorderColour": "#000000",
"HealthBarBGColour": "#FAFAFA",
"HealthBarBorderColour": "#000000"
}
}
Binary file added colour_schemes/secondary/default_colours.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"SecondaryColours": {
"HealthBarTextColour": "#FFFFFF",
"HealthBarTextBGColour": "#323232",
"HealthBarTextBorderColour": "#000000",
"HealthBarBGColour": "#323232",
"HealthBarBorderColour": "#000000"
}
}
48 changes: 38 additions & 10 deletions content/chunk0/gameessentialbase.entity.patch.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,10 @@
"m_fAlpha": { "type": "float32", "value": 100.0 },
"Debug": { "type": "uint32", "value": 100 },
"DebugMode": { "type": "bool", "value": false },
"HealthBarTextColour": { "type": "ZString", "value": "#FFFFFF" },
"HealthBarTextBGColour": { "type": "ZString", "value": "#323232" },
"HealthBarTextBorderColour": { "type": "ZString", "value": "#000000" },
"HealthBarBGColour": { "type": "ZString", "value": "#323232" },
"HealthBarBorderColour": { "type": "ZString", "value": "#000000" },
"LowHealthColour": { "type": "ZString", "value": "#FA0000" },
"MediumHealthColour": { "type": "ZString", "value": "#FFFF00" },
"FullHealthColour": { "type": "ZString", "value": "#00BA00" },
"InfectedColour": { "type": "ZString", "value": "#FFFF00" },
"Height": { "type": "float32", "value": 1 },
"Width": { "type": "float32", "value": 1 }
}
},
"events": { "RequestColours": { "GetData": ["cafea8f9b3707ba1", "cafe6e40d206cd7a"] } }
}
]
},
Expand Down Expand Up @@ -186,6 +178,42 @@
"properties": { "m_pTargetControl": { "type": "SEntityTemplateReference", "value": "cafef77f80f5f691" } }
}
]
},
{
"AddEntity": [
"cafea8f9b3707ba1",
{
"parent": "cafeba446945a84b",
"name": "DynamicObject_Main",
"factory": "[modules:/zdynamicobjectentity.class].pc_entitytype",
"blueprint": "[modules:/zdynamicobjectentity.class].pc_entityblueprint",
"properties": {
"m_pJSONResource": {
"type": "ZRuntimeResourceID",
"value": "[assembly:/ui/data/healthbar/colours_main.json].pc_json"
}
},
"events": { "Data": { "MainColours": ["cafef77f80f5f691"] } }
}
]
},
{
"AddEntity": [
"cafe6e40d206cd7a",
{
"parent": "cafeba446945a84b",
"name": "DynamicObject_Secondary",
"factory": "[modules:/zdynamicobjectentity.class].pc_entitytype",
"blueprint": "[modules:/zdynamicobjectentity.class].pc_entityblueprint",
"properties": {
"m_pJSONResource": {
"type": "ZRuntimeResourceID",
"value": "[assembly:/ui/data/healthbar/colours_secondary.json].pc_json"
}
},
"events": { "Data": { "SecondaryColours": ["cafef77f80f5f691"] } }
}
]
}
],
"patchVersion": 6
Expand Down
Binary file modified content/chunk0/scaleform/001D0947392E2DD6.GFXF
Binary file not shown.
Binary file modified content/chunk0/scaleform/003F45DD25EEE393.UICB
Binary file not shown.
39 changes: 39 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,45 @@
"description": "Adds a simple health bar to the left of the minimap.",
"authors": ["Notex"],
"contentFolders": ["content"],
"options": [
{
"name": "Default",
"tooltip": "Default colour scheme.",
"image": "colour_schemes\\main\\default_colours.png",
"type": "select",
"group": "Main",
"enabledByDefault": true,
"contentFolders": ["colour_schemes\\main\\default_colours"]
},
{
"name": "RGB",
"tooltip": "RGB colour scheme.",
"image": "colour_schemes\\main\\rgb.png",
"type": "select",
"group": "Main",
"enabledByDefault": false,
"contentFolders": ["colour_schemes\\main\\rgb"]
},
{
"name": "Default",
"tooltip": "Default colour scheme.",
"image": "colour_schemes\\secondary\\default_colours.png",
"type": "select",
"group": "Secondary",
"enabledByDefault": true,
"contentFolders": ["colour_schemes\\secondary\\default_colours"]
},
{
"name": "Bright",
"tooltip": "Bright colour scheme.",
"image": "colour_schemes\\secondary\\bright.png",
"type": "select",
"group": "Secondary",
"enabledByDefault": false,
"contentFolders": ["colour_schemes\\secondary\\bright"]
}
],
"dependencies": ["0078959F8D5E9291"],
"frameworkVersion": "2.33.7",
"updateCheck": "https://github.com/Notexe/h3-simple-health-bar/releases/latest/download/updates.json"
}
2 changes: 1 addition & 1 deletion source/animate/HealthBar/DOMDocument.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<DOMFontItem name="_Fonts/Neue Haas Grotesk Display Pro 65 Medium" itemID="65c8de86-00000139" linkageImportForRS="true" linkageExportInFirstFrame="false" linkageBaseClass="flash.text.Font" linkageClassName="$medium" font="NHaasGroteskDSPro-65Md" size="0" id="5" sourceLastImported="1707662982" embeddedCharacters=" !&quot;#$%&amp;&apos;()*+,-./0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžƒǼǽǾǿȘșȚțȷˆ˜ –—‘’‚“”„†‡•…‰′″‹›⁄€ℓ™Ω℮⅓⅔⅛⅜⅝⅞"/>
</fonts>
<symbols>
<Include href="DebugTextView.xml" itemID="65d6c03e-00000159" lastModified="1708572898"/>
<Include href="DebugTextView.xml" itemID="65d6c03e-00000159" lastModified="1708751410"/>
<Include href="HealthBarBG.xml" loadImmediate="false" itemID="65d42124-00000136" lastModified="1708572487"/>
<Include href="HealthBarBorder.xml" loadImmediate="false" itemID="65d4212b-0000013b" lastModified="1708572493"/>
<Include href="HealthBarInner.xml" loadImmediate="false" itemID="65d30858-000002a7" lastModified="1708573219"/>
Expand Down
6 changes: 3 additions & 3 deletions source/animate/HealthBar/LIBRARY/DebugTextView.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<DOMSymbolItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ns.adobe.com/xfl/2008/" name="DebugTextView" itemID="65d6c03e-00000159" linkageExportForAS="true" linkageClassName="DebugTextView" lastModified="1708572898">
<DOMSymbolItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ns.adobe.com/xfl/2008/" name="DebugTextView" itemID="65d6c03e-00000159" linkageExportForAS="true" linkageClassName="DebugTextView" lastModified="1708751410">
<timeline>
<DOMTimeline name="DebugTextView" layerDepthEnabled="true">
<layers>
<DOMLayer name="Layer_1" color="#00FFFF" current="true" isSelected="true">
<frames>
<DOMFrame index="0" keyMode="9728">
<elements>
<DOMDynamicText name="DebugText" fontRenderingMode="standard" width="396" height="196" isSelectable="false">
<DOMDynamicText name="DebugText" selected="true" fontRenderingMode="standard" width="396" height="496" isSelectable="false">
<matrix>
<Matrix tx="2" ty="2"/>
</matrix>
<textRuns>
<DOMTextRun>
<characters></characters>
<textAttrs>
<DOMTextAttrs alignment="center" aliasText="false" lineSpacing="2.55" lineHeight="14.3" bitmapSize="240" face="Neue Haas Grotesk Display Pro 65 Medium*" fillColor="#FFFFFF"/>
<DOMTextAttrs aliasText="false" lineSpacing="2.55" lineHeight="14.3" bitmapSize="240" face="Neue Haas Grotesk Display Pro 65 Medium*" fillColor="#FFFFFF"/>
</textAttrs>
</DOMTextRun>
</textRuns>
Expand Down
Binary file modified source/animate/HealthBar/bin/SymDepend.cache
Binary file not shown.
Binary file modified source/bin/HealthBar.swf
Binary file not shown.
Binary file modified source/lib/HealthBar.swc
Binary file not shown.
Loading

0 comments on commit de129ef

Please sign in to comment.