Skip to content

Commit d71e1e0

Browse files
ClobberXDSmallJoker
authored andcommittedApr 27, 2019
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>
1 parent d0f0cea commit d71e1e0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎src/client/gameui.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_
9797
std::ostringstream os(std::ios_base::binary);
9898
os << std::fixed
9999
<< PROJECT_NAME_C " " << g_version_hash
100-
<< ", FPS: " << fps
100+
<< " | FPS: " << fps
101101
<< std::setprecision(0)
102-
<< ", drawtime: " << drawtime_avg << "ms"
102+
<< " | drawtime: " << drawtime_avg << "ms"
103103
<< std::setprecision(1)
104-
<< ", dtime jitter: "
104+
<< " | dtime jitter: "
105105
<< (stats.dtime_jitter.max_fraction * 100.0) << "%"
106106
<< std::setprecision(1)
107-
<< ", view range: "
107+
<< " | view range: "
108108
<< (draw_control->range_all ? "All" : itos(draw_control->wanted_range))
109109
<< std::setprecision(3)
110-
<< ", RTT: " << client->getRTT() << "s";
110+
<< " | RTT: " << client->getRTT() << "s";
111111
setStaticText(m_guitext, utf8_to_wide(os.str()).c_str());
112112

113113
m_guitext->setRelativePosition(core::rect<s32>(5, 5, screensize.X,
@@ -126,10 +126,10 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_
126126
<< "pos: (" << (player_position.X / BS)
127127
<< ", " << (player_position.Y / BS)
128128
<< ", " << (player_position.Z / BS)
129-
<< "), yaw: " << (wrapDegrees_0_360(cam.camera_yaw)) << "° "
129+
<< ") | yaw: " << (wrapDegrees_0_360(cam.camera_yaw)) << "° "
130130
<< yawToDirectionString(cam.camera_yaw)
131-
<< ", pitch: " << (-wrapDegrees_180(cam.camera_pitch)) << "°"
132-
<< ", seed: " << ((u64)client->getMapSeed());
131+
<< " | pitch: " << (-wrapDegrees_180(cam.camera_pitch)) << "°"
132+
<< " | seed: " << ((u64)client->getMapSeed());
133133

134134
if (pointed_old.type == POINTEDTHING_NODE) {
135135
ClientMap &map = client->getEnv().getClientMap();

0 commit comments

Comments
 (0)
Please sign in to comment.