aboutsummaryrefslogtreecommitdiff
path: root/src/hud.cpp
Commit message (Expand)AuthorAge
* Minimap as HUD element with API controlPierre-Yves Rollo2020-10-04
* Add compass HUD element (#9312)EvidenceB2020-08-29
* Fix precision not working in hud_change (#10186)Lars Müller2020-08-12
* 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
* Minimap: Fix radar restriction broken by 9649e47SmallJoker2019-02-23
* Fix last clang-tidy reported problems for performance-type-promotion-in-math-fnLoic Blot2018-04-03
* [CSM] Add basic HUD manipulation. (#6067)red-0012018-01-20
* Move files to subdirectories (#6599)Vitaliy2017-11-08
* Statbars: fix incorrect half-images in non-standard orientations (fixes #6198)Nathanaël Courant2017-08-27
* Add clientside translations.Ekdohibs2017-08-24
* Optimize headers (part 2) (#6272)Loïc Blot2017-08-18
* Modernize various files (part 2)Loic Blot2017-08-18
* Irrlicht cleanup: cleanup various object to use RenderingEngine (#6088)Loïc Blot2017-07-02
* Isolate irrlicht references and use a singleton (#6041)Loïc Blot2017-06-26
* hud.cpp: fix wrong indent in drawItemLoïc Blot2017-06-19
* Cpp11 initializers 2 (#5999)Loïc Blot2017-06-17
* Use thread_local instead from some static settings (#5955)Loïc Blot2017-06-11
* Do not shade inventory items with textures (#5869)Dániel Juhász2017-06-01
* Time: Change old `u32` timestamps to 64-bit (#5818)SmallJoker2017-05-26
* Add option to use neither node highlighting nor outliningezhh2017-05-15
* Clean up getTime helpersShadowNinja2017-04-28
* Soft node overlay (#5186)Dániel Juhász2017-04-21
* Hardware coloring for itemstacksDániel Juhász2017-04-08
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-09
* Halo: Highlight selected faceRealBadAngel2016-11-12
* Escape more strings: formspecs, item descriptions, infotexts...Ekdohibs2016-04-24
* Fix inventory hud scalingrubenwardy2016-04-12
* Fix hotbar placement on displays with low screen densityPilzAdam2016-04-11
* 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
* Change i++ to ++iDavid Jones2015-08-25
* Use UTF-8 instead of narrowest312015-07-08
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
* Clean scaling pre-filter for formspec/HUD.Aaron Suen2015-04-01
* Replace std::list to std::vector into tile.cpp (m_texture_trash) and move til...Loic Blot2015-03-05
* Hud: Modify Y-positioning of health/breath starbars to prevent overlapping wi...kwolekr2015-02-08
* Split gui_scaling to gui_scaling + hud_scaling as those elements need differe...sapier2015-01-09
* Fix MSVC buildSmallJoker2014-12-05
* Make hud use fontengine toosapier2014-11-30
* Add support for Android 2.3+sapier2014-06-29
* Support for scalable font and gui elementssapier2014-06-22
* Small cleanup of hud add/remove codesapier2014-05-31
* Add support for interlaced polarized 3d screenssapier2014-05-18
* Fix old client showing duplicated health bar on new serversapier2014-05-11
n> rect(0, 0, msg_w, msg_h); rect += v2s32(size.X/2-msg_w/2, size.Y/2-30/2 - msg_h/2); Environment->addStaticText(m_message_text.c_str(), rect, false, true, this, -1); } changeCtype(""); int bw = 140; { core::rect<s32> rect(0, 0, bw, 30); rect = rect + v2s32(size.X/2-bw/2, size.Y/2-30/2+5 + msg_h/2); gui::IGUIElement *e = Environment->addButton(rect, this, 257, wgettext("Proceed")); Environment->setFocus(e); } changeCtype("C"); } void GUIMessageMenu::drawMenu() { gui::IGUISkin* skin = Environment->getSkin(); if (!skin) return; video::IVideoDriver* driver = Environment->getVideoDriver(); video::SColor bgcolor(140,0,0,0); driver->draw2DRectangle(bgcolor, AbsoluteRect, &AbsoluteClippingRect); gui::IGUIElement::draw(); } bool GUIMessageMenu::OnEvent(const SEvent& event) { if(event.EventType==EET_KEY_INPUT_EVENT) { if(event.KeyInput.Key==KEY_ESCAPE && event.KeyInput.PressedDown) { m_status = true; quitMenu(); return true; } if(event.KeyInput.Key==KEY_RETURN && event.KeyInput.PressedDown) { m_status = true; quitMenu(); return true; } } if(event.EventType==EET_GUI_EVENT) { if(event.GUIEvent.EventType==gui::EGET_ELEMENT_FOCUS_LOST && isVisible()) { if(!canTakeFocus(event.GUIEvent.Element)) { dstream<<"GUIMessageMenu: Not allowing focus change." <<std::endl; // Returning true disables focus change return true; } } if(event.GUIEvent.EventType==gui::EGET_BUTTON_CLICKED) { switch(event.GUIEvent.Caller->getID()) { case 257: m_status = true; quitMenu(); return true; } } } return Parent ? Parent->OnEvent(event) : false; }