hud.conf.example 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --##Better HUD example config file##
  2. ------------------------------------
  3. -- This example moves the statbars in the down left and down right corners. By Echoes91
  4. -- NOTICE --
  5. -- if damage is disabled no statbar is shown at all
  6. -- Make sure that the statbars are shown correct on other screen resolutions aswell
  7. HUD_SB_SIZE = {x = 16, y = 16} -- statbar icon size in pixel before (!) scaling
  8. local offset = 0
  9. local width = 16*10
  10. local woff = width/2
  11. local yoff = -100
  12. --
  13. -- health bar
  14. --
  15. HUD_HEALTH_POS = {x = 0.5, y = 1} -- min 0, max 1
  16. HUD_HEALTH_OFFSET = {x = -width + -20, y = -100} -- offset in pixel
  17. --
  18. -- hunger bar
  19. --
  20. HUD_HUNGER_POS = {x = 0.5, y = 1} -- min 0, max 1
  21. HUD_HUNGER_OFFSET = {x = -width + -20, y = -132} -- offset in pixel
  22. --
  23. -- breath bar
  24. --
  25. HUD_AIR_POS = {x = 0.5, y = 1} -- min 0, max 1
  26. HUD_AIR_OFFSET = {x = -width + -20, y = -116} -- offset in pixel
  27. --
  28. -- armor bar
  29. --
  30. HUD_ARMOR_POS = {x = 0, y = 1} -- min 0, max 1
  31. HUD_ARMOR_OFFSET = {x = 10, y = -60} -- offset in pixel