Skip to content

Commit

Permalink
UI Healthbar behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Oct 14, 2024
1 parent ab93233 commit c12c25c
Show file tree
Hide file tree
Showing 35 changed files with 589 additions and 147 deletions.
3 changes: 2 additions & 1 deletion data/Prefabs/Bat.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@
<Property type="String" name="m_name" flags="NotVisible" value="New WeaponBehaviour"/>
<Property type="Uint32" name="m_uid" flags="" value="684624813"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value="Opened"/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="Float" name="m_damage" flags="HasRange" value="40"/>
</Object>
<Object class="AttachToNodeComponent">
<Property type="String" name="m_name" flags="NotVisible" value="New AttachToNodeComponent"/>
Expand Down
56 changes: 13 additions & 43 deletions data/Prefabs/GJ.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -258,57 +258,27 @@
</Object>
</Property>
<Property type="ObjectPtrVector" name="m_children" flags="NotVisible">
<Object class="GameObject">
<Property type="String" name="m_name" value="UI"/>
<Property type="Uint32" name="m_uid" flags="" value="3226805358"/>
<Object class="PrefabGameObject">
<Property type="String" name="m_name" value="HealthBar"/>
<Property type="Uint32" name="m_uid" flags="" value="0"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value="Prefab"/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="Float4" name="m_color" flags="Color" x="1" y="1" z="1" w="1"/>
<Property type="Float4x4" name="m_local" flags="Flatten" Ix="1" Iy="0" Iz="0" Iw="0" Jx="0" Jy="1" Jz="0" Jw="0" Kx="0" Ky="0" Kz="1" Kw="0" Tx="0" Ty="0" Tz="0" Tw="1"/>
<Property type="EnumFlagsU64" name="m_tags" flags="Bitfield" value=""/>
<Property type="ObjectPtrVector" name="m_components">
<Object class="UICanvasComponent">
<Property type="String" name="m_name" flags="NotVisible" value="New UICanvasComponent"/>
<Property type="Uint32" name="m_uid" flags="" value="2230856323"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value="Opened"/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="EnumU8" name="m_horizontal" value="Center"/>
<Property type="EnumU8" name="m_vertical" value="Center"/>
<Property type="EnumFlagsU32" name="m_UIFlags" flags="Bitfield" value=""/>
<Property type="Uint2" name="m_size" x="128" y="16"/>
<Property type="Bool" name="m_useOffset" flags="NotVisible" value="true"/>
<Property type="Float3" name="m_offset" flags="Optional" x="0" y="0" z="2"/>
<Property type="Bool" name="m_useColor" flags="NotVisible" value="false"/>
<Property type="Float4" name="m_color" flags="" x="1" y="1" z="1" w="1"/>
<Property type="EnumU8" name="m_canvas.m_viewportTarget" flags="ReadOnly" value="Game"/>
<Property type="Uint8" name="m_canvas.m_viewportIndex" flags="ReadOnly" value="0"/>
<Property type="Bool" name="m_canvas.m_useViewMask" flags="NotVisible" value="true"/>
<Property type="EnumFlagsU32" name="m_canvas.m_viewMask" flags="" value="View_0|View_1|View_2|View_3|View_4|View_5|View_6|View_7|View_8|View_9|View_10|View_11|View_12|View_13|View_14|View_15"/>
<Property type="Uint2" name="m_canvas.m_resolution" x="1280" y="720"/>
<Property type="EnumU8" name="m_canvas.m_canvasType" value="CanvasType_3D"/>
</Object>
<Object class="UITextComponent">
<Property type="String" name="m_name" flags="NotVisible" value="New UITextComponent"/>
<Property type="Uint32" name="m_uid" flags="" value="160113916"/>
<Property type="ObjectPtrVector" name="m_components"/>
<Property type="ObjectPtrVector" name="m_children" flags="NotVisible"/>
<Property type="Resource" name="m_prefabResource" flags="Resource">
<Object class="PrefabResource">
<Property type="String" name="m_name" flags="NotVisible" value=""/>
<Property type="Uint32" name="m_uid" flags="" value="0"/>
<Property type="Uint32" name="m_originalUID" flags="" value="0"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value="Opened"/>
<Property type="EnumFlagsU32" name="m_flags" flags="Bitfield" value="Enabled"/>
<Property type="EnumU8" name="m_horizontal" value="Center"/>
<Property type="EnumU8" name="m_vertical" value="Center"/>
<Property type="EnumFlagsU32" name="m_UIFlags" flags="Bitfield" value="AutoResize"/>
<Property type="Uint2" name="m_size" x="16" y="16"/>
<Property type="Bool" name="m_useOffset" flags="NotVisible" value="false"/>
<Property type="Float3" name="m_offset" flags="Optional" x="0" y="0" z="0"/>
<Property type="Bool" name="m_useColor" flags="NotVisible" value="false"/>
<Property type="Float4" name="m_color" flags="" x="1" y="1" z="1" w="1"/>
<Property type="EnumU8" name="m_font" value="UbuntuMono"/>
<Property type="EnumU8" name="m_style" value="Regular"/>
<Property type="String" name="m_text" value="100 HP"/>
<Property type="EnumFlagsU32" name="m_objectFlags" flags="" value=""/>
<Property type="String" name="m_resourcePath" flags="NotVisible" value="data/Prefabs/HealthBar.prefab"/>
</Object>
</Property>
<Property type="ObjectPtrVector" name="m_children" flags="NotVisible"/>
<Property type="ObjectPtrVector" name="m_dynamicProperties"/>
</Object>
<Object class="GameObject">
<Property type="String" name="m_name" value="GJ_RightHand"/>
Expand Down
Loading

0 comments on commit c12c25c

Please sign in to comment.