Demo implementation included.
//////////////////////// |
Update History:
- Version 0.4 (August 11th, 2012)
- Fixed bug where auto_show and _hidden were not being correctly determined based on timeout
- Moved and renamed demo icons so they're less likely to interfere with projects
- Version 0.3 (March 26th, 2012)
- Library now supports defining stat bar properties at compile-time by making a subtype of /bar_overlay (see mana_bar in updated demo)
- Library can now determine the number of icon_states for a stat bar if it is not provided
- Version 0.2 (November 12th, 2011)
- Added Show() and Hide() functions
- Added timeout, auto_show, and hide arguments to New()
- Renamed Update()'s force argument to force_update
- Added force_show and force_timeout arguments to Update()
- Updated demo to demonstrate new timeout feature
- Version 0.1 (June 5th, 2011)
- Library renamed from "Quick Overlay Stat Bars" to "Stat Bar Overlays"
(Suggested you Uninstall and then re-Download the library to prevent old files from lingering)- Naming conventions brought in line with BYOND's
This will require some quick changes, which you can do with Find/Replace (Ctrl+H)
- overlayBar -> bar_overlay
- update() -> Update() (Be careful! Use Find Next to first check that it's the Update() for a /bar_overlay)
- varStat -> var_stat (shouldn't be necessary unless you directly accessed a bar)
- varMax -> var_max (same are above)
- Stat bar overlay is now automatically removed when the /overlayBar is deleted
- Changed default layer to FLOAT_LAYER
- New property: state_prefix. Allows you to store multiple bar images in one icon file, by giving them a prefix (eg "health1","health2", ect)
- New optional parameter for Update(): force. Forces the bar to update, even if nothing has changed. Useful when rebuilding overlay lists. Defaults to 0.
- Added reference to library's code file.
- Version 0.0 (May 31st, 2011)
- Initial release
"This should be used as the new standard for overlay bars."
Thank you very much for this library.