diff options
author | ANAND <ClobberXD@gmail.com> | 2019-04-27 16:15:44 +0530 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2019-04-27 12:45:44 +0200 |
commit | d71e1e09497a72f90c60ea6e651de629eb3a438b (patch) | |
tree | 93e42af812cf3c206351ba7cfdc1ec9ac7ac8ebf /src/client | |
parent | d0f0ceaf6672d737b071b7dbc37fa3f3e964125b (diff) | |
download | minetest-d71e1e09497a72f90c60ea6e651de629eb3a438b.tar.gz minetest-d71e1e09497a72f90c60ea6e651de629eb3a438b.tar.bz2 minetest-d71e1e09497a72f90c60ea6e651de629eb3a438b.zip |
Improve readability of debug menu by using '|' (#8488)
* Improve readability of debug menu by using '|'
* Restore whitespace to separate yaw and cardinal direction
Co-Authored-By: ClobberXD <ClobberXD@gmail.com>
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/gameui.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp index 59f1886cb..5533cd119 100644 --- a/src/client/gameui.cpp +++ b/src/client/gameui.cpp @@ -97,17 +97,17 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_ std::ostringstream os(std::ios_base::binary); os << std::fixed << PROJECT_NAME_C " " << g_version_hash - << ", FPS: " << fps + << " | FPS: " << fps << std::setprecision(0) - << ", drawtime: " << drawtime_avg << "ms" + << " | drawtime: " << drawtime_avg << "ms" << std::setprecision(1) - << ", dtime jitter: " + << " | dtime jitter: " << (stats.dtime_jitter.max_fraction * 100.0) << "%" << std::setprecision(1) - << ", view range: " + << " | view range: " << (draw_control->range_all ? "All" : itos(draw_control->wanted_range)) << std::setprecision(3) - << ", RTT: " << client->getRTT() << "s"; + << " | RTT: " << client->getRTT() << "s"; setStaticText(m_guitext, utf8_to_wide(os.str()).c_str()); m_guitext->setRelativePosition(core::rect<s32>(5, 5, screensize.X, @@ -126,10 +126,10 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_ << "pos: (" << (player_position.X / BS) << ", " << (player_position.Y / BS) << ", " << (player_position.Z / BS) - << "), yaw: " << (wrapDegrees_0_360(cam.camera_yaw)) << "° " + << ") | yaw: " << (wrapDegrees_0_360(cam.camera_yaw)) << "° " << yawToDirectionString(cam.camera_yaw) - << ", pitch: " << (-wrapDegrees_180(cam.camera_pitch)) << "°" - << ", seed: " << ((u64)client->getMapSeed()); + << " | pitch: " << (-wrapDegrees_180(cam.camera_pitch)) << "°" + << " | seed: " << ((u64)client->getMapSeed()); if (pointed_old.type == POINTEDTHING_NODE) { ClientMap &map = client->getEnv().getClientMap(); |