aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/statbars.lua
AgeCommit message (Collapse)Author
2022-07-02Fix error when `item` isn't provided to core.hud_replace_builtin (#12484)rubenwardy
2022-01-31Fix builtin statbar backgroundsLars Mueller
see #12000
2021-02-11Replace 'minetest.' with 'core.' in builtinrubenwardy
2020-05-11Add support for statbar “off state” icons (#9462)Wuzzy
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
2020-04-28Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)ANAND
PLAYER_MAX_BREATH_DEFAULT was earlier set to 11, so that 10 bubbles are shown before the breath bar disappears. Now, PLAYER_MAX_BREATH_DEFAULT is set to 10, and the breath_bar scaling code in builtin has been tweaked to show all 10 bubbles before hiding the breath_bar
2019-08-06Add luacheck to check builtin (#7895)rubenwardy
2019-08-01Group "immortal" also protects players from damageWuzzy
Document new meaning of immortal=1 for players Disable breathing if player is immortal Hide builtin statbars if player immortal (delayed) Co-authored-by: ClobberXD <ClobberXD@gmail.com>
2019-02-12Statbars: Reduce initial update intervalSmallJoker
Centralize HUD updating in update_builtin_statbars. Fixes race condition in 'on joinplayer' that causes stat bar bugs. Correctly scales stat bars to custom max values set by mods.
2017-09-15Customizeable max breath for players (#6411)SmallJoker
* Customizeable maximal breath for players
2017-08-23Respect object property hp_max field for players (#6287)SmallJoker
* Respect object property hp_max field for players This allows modders to configure the maximal HP per player * Statbars: Downscale bar to full 20 HP when exceeding this value Add default max HP for players and breath constants to builtin Document the constants * Rename PLAYER_MAX_HP -> PLAYER_MAX_HP_DEFAULT
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-02-18Statbars.lua: Cache enable_damage settingtenplus1
2015-02-08Hud: Modify Y-positioning of health/breath starbars to prevent overlapping ↵kwolekr
with Hotbar
2014-05-11Fix old client showing duplicated health bar on new serversapier
Fix client not showing hearts and bubbles on connecting to old server Fix server not remembering hud flags correctly
2014-05-10Fix healthbar not beeing hidden on disabled damagesapier
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja