summaryrefslogtreecommitdiffstats
path: root/src/game/client
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 17:29:40 +0500
committeruntodesu <kirill@untode.su>2025-12-26 17:29:40 +0500
commit50c6db34574ce5c9d67e9a7c70a7cafb19ac2007 (patch)
tree730a59d1f08b8344df7653b98d884328449fc8d1 /src/game/client
parente73282ec5c8fd2b04cdae5c2641e7bc622ccce1f (diff)
downloadvoxelius-50c6db34574ce5c9d67e9a7c70a7cafb19ac2007.tar.bz2
voxelius-50c6db34574ce5c9d67e9a7c70a7cafb19ac2007.zip
Rework collision. Possibly fixes #19
Diffstat (limited to 'src/game/client')
-rw-r--r--src/game/client/gui/metrics.cc4
-rw-r--r--src/game/client/toggles.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/gui/metrics.cc b/src/game/client/gui/metrics.cc
index 51b1ffa..f39434a 100644
--- a/src/game/client/gui/metrics.cc
+++ b/src/game/client/gui/metrics.cc
@@ -48,9 +48,9 @@ void metrics::layout(void)
auto text_color = ImGui::GetColorU32(ImVec4(1.0f, 1.0f, 1.0f, 1.0f));
auto shadow_color = ImGui::GetColorU32(ImVec4(0.1f, 0.1f, 0.1f, 1.0f));
- auto font_size = 4.0f;
+ auto font_size = 8.0f * globals::gui_scale;
auto position = ImVec2(8.0f, 8.0f);
- auto y_step = 1.5f * globals::gui_scale * font_size;
+ auto y_step = 1.5f * font_size;
// Draw version
auto version_line = std::format("Voxelius {}", version::full);
diff --git a/src/game/client/toggles.cc b/src/game/client/toggles.cc
index 60b2f25..5381993 100644
--- a/src/game/client/toggles.cc
+++ b/src/game/client/toggles.cc
@@ -101,7 +101,7 @@ void toggles::init(void)
toggle_infos[TOGGLE_CHUNK_AABB].description = "chunk Borders";
toggle_infos[TOGGLE_CHUNK_AABB].glfw_keycode = GLFW_KEY_G;
- toggle_infos[TOGGLE_CHUNK_AABB].is_enabled = false;
+ toggle_infos[TOGGLE_CHUNK_AABB].is_enabled = true;
toggle_infos[TOGGLE_METRICS_UI].description = std::string_view();
toggle_infos[TOGGLE_METRICS_UI].glfw_keycode = GLFW_KEY_V;