summaryrefslogtreecommitdiff
path: root/src/client/gameui.cpp
Commit message (Collapse)AuthorAge
* Get rid of non-ascii characters in the debug display code (#8821)Jozef Behran2020-05-06
|
* StaticText: Reset background on EnrichedString change (#9340)SmallJoker2020-02-01
| | | This also fixes the F6 profiler background color -> now controlled by EnrichedString
* StaticText/EnrichedString: Styling support (#9187)SmallJoker2020-01-22
| | | | | | | | * StaticText/EnrichedString: Styling support * Fix tooltip fg/bgcolor * Fix default color for substr(), add unittests
* Better F6 profiler (#8750)SmallJoker2019-08-13
| | | | | | | Update the profiler names to make more sense of what they actually represent Move the profiler code from header to its source file Use monospace font to align lines Format the statistics line to align better with surrounding values Refresh the profiler each 3 seconds (roughly)
* Merge pull request #8776 from osjc/FixGetNodeJozef Behran2019-08-10
| | | Finish getNode cleanup
* Hide chat when console is open (#8656)ANAND2019-08-07
|
* Fix segfault on quitting with open node formspec (#8608)SmallJoker2019-06-21
|
* Formspecs: Close on metadata removal (#8348)SmallJoker2019-06-10
| | | | Formspecs will now close as soon the formspec string in the node metadata turns invalid.
* Improve readability of debug menu by using '|' (#8488)ANAND2019-04-27
| | | | | | | | * Improve readability of debug menu by using '|' * Restore whitespace to separate yaw and cardinal direction Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
* Change sign of pitch angle in debug menu (#8438)ANAND2019-04-04
| | | | Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
* Display pitch angle in debug menu (#8321)Ragulan R2019-03-10
|
* F5 debug info: Use full words for NSEW directions for readability (#7461)Paramat2018-10-06
|
* Fix GameUI flag value regression introduced by ↵Loic Blot2018-05-29
| | | | | | a78659ed0529226ad937f5e241ad72ba93702959 Added more strong unittests on that part to prevent future regression
* Fix more GCC 8.1 warnings ↵Loïc Blot2018-05-28
| | | | | | | | | |   1   master  Fix 3 warnings reported by GCC 8.1 of the following type ```src/client/gameui.cpp:191:43: warning: « void* memset(void*, int, size_t) » effacement d'un objet du type non trivial « struct GameUI::Flags »; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_flags, 0, sizeof(GameUI::Flags)); ```
* Node definition manager refactor (#7016)Dániel Juhász2018-02-10
| | | | | | | | | * Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager
* Don't recalculate statustext initial color everytime & review fixesLoic Blot2018-01-05
|
* GameUI refactor (part 7/7): Finish to include profiler things to GameUILoic Blot2018-01-05
| | | | | | | | | Other changes: * Add GameUI clarification comment * Move force_fog_off & disable_camera_update flags from GameUI to Game, it's not UI related * Properly init GameUI::Flags * Move toggleChat toggleHud & toggleProfiler to GameUI * Add gameui.cpp to LINT whitelist
* GameUI refactor (part 6/X): Move Game::guitext_profiler & ↵Loic Blot2018-01-05
| | | | | | | showStatusTextSimple to GameUI class Other enhancements: * Move showStatusTextSimple to GameUI class & rename to showTranslatedStatusText
* GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI classLoic Blot2018-01-05
| | | | | | Other enhancements: * Move update_profiler_gui to Game class * Move updateChat to Game class
* GameUI refactor (part 4/X): Move Game::guitext_status, Game::m_statustext, ↵Loic Blot2018-01-05
| | | | | | | | GameRunData::statustext_time to GameUI class Other enhancements: * Simplify setStatusText to showStatusText, as it shows the label too (preventing almost every setStatusText to call setStatusTextTime(0) * Add unittests
* GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, ↵Loic Blot2018-01-05
| | | | | | | | Game::infotext to GameUI class Other enhancements: * Drop unused GameRunData::time_of_day * Little GameUI::update code path optimizations
* GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on ↵Loic Blot2018-01-05
| | | | | | | StaticText Other enhancements: * C++ friendlyness for addStaticText() -> move to static StaticText::add()
* GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUILoic Blot2018-01-05
Game class is too huge and has too specialization on various subjects, like UI, formspecs, client, renderer. Start to move UI related things to GameUI object and cleanup them Other improvements: * updateChat: more performance on error messages by remove string copies * Initialize all game class members in definition instead of constructor (with nullptr instead of NULL) * Drop unused Client::show{GameChat,GameHud,Profiler,GameFog} * Add GameUI unittests