aboutsummaryrefslogtreecommitdiff
path: root/src/hud.h
Commit message (Expand)AuthorAge
* Readd basic_debug as a HUD flag (#12020)Lars Müller2022-03-05
* Add bold, italic and monospace font styling for HUD text elements (#11478)sfan52021-07-27
* Minimap as HUD element with API controlPierre-Yves Rollo2020-10-04
* Add compass HUD element (#9312)EvidenceB2020-08-29
* Modernize include guards and add missing ones (#9898)Awkor2020-05-23
* Add support for statbar “off state” icons (#9462)Wuzzy2020-05-11
* Improve waypoints and add image variant (#9480)Lars Müller2020-04-11
* Add z-index management to HUDPierre-Yves Rollo2019-12-06
* Raise hotbar limit to 32 slots, add associated keybinding options (#7916)Vanessa Dannenberg2018-12-02
* [CSM] Add basic HUD manipulation. (#6067)red-0012018-01-20
* Minimap: Add new HUD flag for minimap radar modeparamat2017-08-20
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Irrlicht cleanup: cleanup various object to use RenderingEngine (#6088)Loïc Blot2017-07-02
* hud.h: add missing false default state on use_hotbar_selected_imageLoïc Blot2017-06-19
* Cpp11 initializers 2 (#5999)Loïc Blot2017-06-17
* Add option to use neither node highlighting nor outliningezhh2017-05-15
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-09
* Halo: Highlight selected faceRealBadAngel2016-11-12
* Fix inventory hud scalingrubenwardy2016-04-12
* Hud: Cache hud_scaling, fix minor style issueskwolekr2016-04-10
* Hud: Fix offset being ignored by inventory barrubenwardy2016-04-10
* Use single box for halo meshRealBadAngel2016-02-11
* Cleanup selection mesh code, add shaders for halo and selection boxesRealBadAngel2016-02-08
* small drawItemStack cleanupest312016-02-08
* Use meshes to display inventory itemsRealBadAngel2016-02-07
* Hide minimap if it has been disabled by serverest312015-09-01
* minimap: Add ability to disable from serverkwolekr2015-08-13
* Make hud use fontengine toosapier2014-11-30
* Fix heart + bubble bar size on different texture packssapier2014-05-07
* Bugfix: make waypoints respect camera offsetRealBadAngel2014-05-05
* Add support for dpi based HUD scalingsapier2014-04-27
* New HUD element - waypoint.RealBadAngel2014-01-26
* Use player:set_hotbar_image() instead of hardcoded hotbar.pngPilzAdam2013-09-05
* Add support for using textures in hotbarBlockMen2013-08-25
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Add drowningPilzAdam2013-06-19
* Add ObjectRef.hud_set_hotbar_itemcount and add TOCLIENT_HUD_SET_PARAMKahrl2013-05-26
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
* Minor hud.cpp cleanupkwolekr2013-04-25
* Generalize hud_builtin_enable into hud_set_flagskwolekr2013-04-25
* Added support to disable built-in HUD elementsDiego Martínez2013-04-24
* Added offset support for HUD itemsDiego Martínez2013-04-23
* Added support for alignment in HUD itemsDiego Martínez2013-04-23
* Add direction parameter to statbars in HUD APIkwolekr2013-04-20
* Split HUD code off to hud.cpp, make into a class, extensive Lua HUD modificationkwolekr2013-04-18
n class="hl num">1); // Bottom back c.emplace_back(0,-1,-1); // Bottom front c.emplace_back(-1, 1, 0); // Top left c.emplace_back(1, 1, 0); // Top right c.emplace_back(0, 1, 1); // Top back c.emplace_back(0, 1,-1); // Top front // 18 c.emplace_back(-1, 1, 1); // Top back-left c.emplace_back(1, 1, 1); // Top back-right c.emplace_back(-1, 1,-1); // Top front-left c.emplace_back(1, 1,-1); // Top front-right c.emplace_back(-1,-1, 1); // Bottom back-left c.emplace_back(1,-1, 1); // Bottom back-right c.emplace_back(-1,-1,-1); // Bottom front-left c.emplace_back(1,-1,-1); // Bottom front-right // 26 return c; } // Take blocks in all sides, starting from y=0 and going +-y for (s16 y = 0; y <= d - 1; y++) { // Left and right side, including borders for (s16 z =- d; z <= d; z++) { c.emplace_back(d, y, z); c.emplace_back(-d, y, z); if (y != 0) { c.emplace_back(d, -y, z); c.emplace_back(-d, -y, z); } } // Back and front side, excluding borders for (s16 x = -d + 1; x <= d - 1; x++) { c.emplace_back(x, y, d); c.emplace_back(x, y, -d); if (y != 0) { c.emplace_back(x, -y, d); c.emplace_back(x, -y, -d); } } } // Take the bottom and top face with borders // -d < x < d, y = +-d, -d < z < d for (s16 x = -d; x <= d; x++) for (s16 z = -d; z <= d; z++) { c.emplace_back(x, -d, z); c.emplace_back(x, d, z); } return c; }