aboutsummaryrefslogtreecommitdiff
path: root/src/hud.h
Commit message (Expand)AuthorAge
* 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
an class="hl opt">; } bool at_end() { return pos >= str.size(); } String what() { return str; } String next(const String &sep) { if (pos >= str.size()) return String(); size_t n; if (sep.empty() || (n = str.find(sep, pos)) == String::npos) { n = str.size(); } String ret = str.substr(pos, n - pos); pos = n + sep.size(); return ret; } // Returns substr up to the next occurence of sep that isn't escaped with esc ('\\') String next_esc(const String &sep, T esc=static_cast<T>('\\')) { if (pos >= str.size()) return String(); size_t n, old_p = pos; do { if (sep.empty() || (n = str.find(sep, pos)) == String::npos) { pos = n = str.size(); break; } pos = n + sep.length(); } while (n > 0 && str[n - 1] == esc); return str.substr(old_p, n - old_p); } void skip_over(const String &chars) { size_t p = str.find_first_not_of(chars, pos); if (p != String::npos) pos = p; } }; typedef BasicStrfnd<char> Strfnd; typedef BasicStrfnd<wchar_t> WStrfnd;