HUD Elements Lib

hamstar

Terrarian
HUD Elements Lib
v5.0.0.1


This is a library mod for mods to define HUD-space UI elements that are able to be repositioned freely (alt+click to drag). Elements smartly avoid overlapping each other and vanilla HUD elements (if desired).

Note: This mod will not do anything without another mod to make use of it (hence, a library mod). Here's the API, for reference.


Source code available.



Installation

Requires tModLoader. Copy the above .tmod file to your 'Documents/My Games/Terraria/ModLoader/Mods' folder to play.



 
Last edited:
v5.0.0.1
  • (See github commits history.)
v3.2.0
  • Fixed pos+dim of UIElement-based HUDElement
  • Fixed countdown timer logic errors
  • Fixed timer position, render, and align issues
  • Fixed missing timer controls
  • Added enabler to TimerHUD
  • Added TimerHUD sample element
  • Updated messages to respect 'is read' state
  • Added Messages message about usage
  • Tweaked libs naming
  • Added API activation via. Mod.Call
  • Added API binding AddWidgetVisibilityHook(...)
  • Added hotbar adjustments for non-inventory mode
v3.0.1
  • Prevented "bind edit mode" message when binding made
  • Fixed issue with premature mouse interface capturing
  • Added more vanilla HUD boxes
v3.0.0
  • Hide existing HUD when edit mode active
  • Added reset buttons
  • Added HUDElementsLibAPI.IsEditModeActive()
  • Changed 'alt' key press to a custom key binding
  • Removed inventory-only restriction while editing
  • Added hover text alert to key binding
  • Added titles to elements in overlays
  • Implemented AutoAnchors
  • Fixed displacement box for collision-disabled elems
  • Improved box colors
  • Added config
  • Fixed the inventory chest box position and dimensions
  • Assorted refactoring
  • Fixed mouse interface failing to capture when HUD element interacting
  • Fixed most UI scaling issues (due to Update not being in Draw); WIP
v2.1.1
  • Implemented element control hover text override
v2.1.0
  • Altered HUDElement.FindDisplacedPosition to accept `mover` param
  • Fixed displacement failure
  • Adjusted element control sizes
v2.0.0
  • First public release.
 

Attachments

  • HUDElementsLib v2.0.0.zip
    54.7 KB · Views: 178
  • HUDElementsLib v2.1.0.zip
    54.4 KB · Views: 143
  • HUDElementsLib v2.1.1.zip
    56.1 KB · Views: 149
  • HUDElementsLib v3.0.0.zip
    69.1 KB · Views: 149
  • HUDElementsLib v3.0.1.zip
    72.7 KB · Views: 143
  • HUDElementsLib v3.2.0.zip
    89.5 KB · Views: 243
Last edited:
Hi, I know this is an old post, but I was wondering if by any chance there was a way to get an updated version of this mod compatible with tmodloader 1.4.4? I'm not a modder at all and tModPorter wasn't enough to make it 1.4 compatible, so here I am asking hoping that someone has an answer <3
 
Back
Top Bottom