aboutsummaryrefslogtreecommitdiff
path: root/src/client/gameui.cpp
AgeCommit message (Collapse)Author
2023-02-20Add chat HUD flag (#13189)Alex
2023-01-16Revisit F6 statistics formatting (#13126)SmallJoker
2022-11-28Wrap debug text on screen (#12978)Jude Melton-Houghton
2022-07-09Enforce limits of settings that could cause buggy behaviour (#12450)SmallJoker
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
2022-04-28Show unknown node in debug screen (#12230)Wuzzy
2022-01-30Get rid of `basic_debug` last minutesfan5
This isn't a revert but rather just disables the codepaths. also see #12011
2022-01-27Rework drawtime and related timekeeping code to use microsecondssfan5
2021-09-19Fix client-side performance of chat UI (#11612)DS
2021-08-23Fix 6th line of infotext being cut off in half (#11456)Wuzzy
2021-08-19Add fwgettext util functionrubenwardy
2021-06-24Require 'basic_debug' priv to view gameplay-relevant debug info, require ↵Wuzzy
'debug' priv to view wireframe (#9315) Fixes #7245.
2021-05-03refacto: RenderingEngine is now better hiddenLoic Blot
* No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped) * RenderingEngine::get_timer_time is now non static * RenderingEngine::draw_menu_scene is now non static * RenderingEngine::draw_scene is now non static * RenderingEngine::{initialize,finalize} are now non static * RenderingEngine::run is now non static * RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access
2020-10-29Show RTT in ms with 2 digits of precision (#10573)Oblomov
If your ping is in seconds, you probably have other problems.
2020-09-22Fix chat/infotext overlap if many chat lines (#10399)Wuzzy
Moves the infotext depending on the value of the recent_chat_messages value + 2 additional lines to account for the 2 debug mode lines + 1 additional line as "buffer" for better readability if chat is full.
2020-07-29Revert "Get rid of non-ascii characters in the debug display code (#8821)" ↵Lars Müller
(#9828) This reverts commit 4f9ccd89b347dad3db5ce63d3405a8d60c163af5.
2020-05-24Add chat_font_size setting (#9736)SmallJoker
Default font sizes are used when the setting value is 0 or below (clamped by Settings).
2020-05-06Get rid of non-ascii characters in the debug display code (#8821)Jozef Behran
2020-02-01StaticText: Reset background on EnrichedString change (#9340)SmallJoker
This also fixes the F6 profiler background color -> now controlled by EnrichedString
2020-01-22StaticText/EnrichedString: Styling support (#9187)SmallJoker
* StaticText/EnrichedString: Styling support * Fix tooltip fg/bgcolor * Fix default color for substr(), add unittests
2019-08-13Better F6 profiler (#8750)SmallJoker
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)
2019-08-10Merge pull request #8776 from osjc/FixGetNodeJozef Behran
Finish getNode cleanup
2019-08-07Hide chat when console is open (#8656)ANAND
2019-06-21Fix segfault on quitting with open node formspec (#8608)SmallJoker
2019-06-10Formspecs: Close on metadata removal (#8348)SmallJoker
Formspecs will now close as soon the formspec string in the node metadata turns invalid.
2019-04-27Improve readability of debug menu by using '|' (#8488)ANAND
* Improve readability of debug menu by using '|' * Restore whitespace to separate yaw and cardinal direction Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
2019-04-04Change sign of pitch angle in debug menu (#8438)ANAND
Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
2019-03-10Display pitch angle in debug menu (#8321)Ragulan R
2018-10-06F5 debug info: Use full words for NSEW directions for readability (#7461)Paramat
2018-05-29Fix GameUI flag value regression introduced by ↵Loic Blot
a78659ed0529226ad937f5e241ad72ba93702959 Added more strong unittests on that part to prevent future regression
2018-05-28Fix more GCC 8.1 warnings ↵Loïc Blot
  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)); ```
2018-02-10Node definition manager refactor (#7016)Dániel Juhász
* Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager
2018-01-05Don't recalculate statustext initial color everytime & review fixesLoic Blot
2018-01-05GameUI refactor (part 7/7): Finish to include profiler things to GameUILoic Blot
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
2018-01-05GameUI refactor (part 6/X): Move Game::guitext_profiler & ↵Loic Blot
showStatusTextSimple to GameUI class Other enhancements: * Move showStatusTextSimple to GameUI class & rename to showTranslatedStatusText
2018-01-05GameUI refactor (part 5/X): Move Game::guitext_chat to GameUI classLoic Blot
Other enhancements: * Move update_profiler_gui to Game class * Move updateChat to Game class
2018-01-05GameUI refactor (part 4/X): Move Game::guitext_status, Game::m_statustext, ↵Loic Blot
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
2018-01-05GameUI refactor (part 3/X): Move Game::guitext2, Game::guitext_info, ↵Loic Blot
Game::infotext to GameUI class Other enhancements: * Drop unused GameRunData::time_of_day * Little GameUI::update code path optimizations
2018-01-05GameUI refactor (part 2/X): Move Game::guitext to GameUI + enhancements on ↵Loic Blot
StaticText Other enhancements: * C++ friendlyness for addStaticText() -> move to static StaticText::add()
2018-01-05GameUI refactor (part 1/X): GameUI object creation + GameUIFlags move to GameUILoic Blot
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