From c5703405c5d13a051a0b6c69a5091e73f2eb4de3 Mon Sep 17 00:00:00 2001 From: Prune Juice Date: Sun, 14 Jul 2024 22:32:01 -0500 Subject: [PATCH] Change a few thing. Yeah. A few things are changed. --- src/editor/tilebox.cpp | 4 ++-- src/supertux/debug.cpp | 2 +- src/supertux/debug.hpp | 2 +- src/supertux/menu/debug_menu.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/editor/tilebox.cpp b/src/editor/tilebox.cpp index 77518d01d98..fc63e1ba612 100644 --- a/src/editor/tilebox.cpp +++ b/src/editor/tilebox.cpp @@ -17,12 +17,12 @@ #include "editor/tilebox.hpp" -#include "supertux/debug.hpp" #include "editor/editor.hpp" #include "editor/object_info.hpp" #include "editor/tile_selection.hpp" #include "editor/tip.hpp" #include "supertux/colorscheme.hpp" +#include "supertux/debug.hpp" #include "supertux/gameconfig.hpp" #include "supertux/game_object_factory.hpp" #include "supertux/globals.hpp" @@ -109,7 +109,7 @@ EditorTilebox::draw_tilegroup(DrawingContext& context) auto position = get_tile_coords(pos, false); m_editor.get_tileset()->get(tile_ID).draw(context.color(), position, LAYER_GUI - 9); - if (g_config->developer_mode && (m_active_tilegroup->developers_group || g_debug.show_tile_ids_in_editor) && tile_ID != 0) + if (g_config->developer_mode && (m_active_tilegroup->developers_group || g_debug.show_toolbox_tile_ids) && tile_ID != 0) { // Display tile ID on top of tile: context.color().draw_text(Resources::console_font, std::to_string(tile_ID), diff --git a/src/supertux/debug.cpp b/src/supertux/debug.cpp index 0005c5db92f..14f41dc11c0 100644 --- a/src/supertux/debug.cpp +++ b/src/supertux/debug.cpp @@ -25,7 +25,7 @@ Debug::Debug() : show_collision_rects(false), show_worldmap_path(false), draw_redundant_frames(false), - show_tile_ids_in_editor(false), + show_toolbox_tile_ids(false), m_use_bitmap_fonts(false), m_game_speed_multiplier(1.0f) { diff --git a/src/supertux/debug.hpp b/src/supertux/debug.hpp index 75a0f173944..8d49f8a8893 100644 --- a/src/supertux/debug.hpp +++ b/src/supertux/debug.hpp @@ -39,7 +39,7 @@ class Debug // vaguely measure the impact of code changes which should increase the FPS bool draw_redundant_frames; - bool show_tile_ids_in_editor; + bool show_toolbox_tile_ids; private: /** Use old bitmap fonts instead of TTF */ diff --git a/src/supertux/menu/debug_menu.cpp b/src/supertux/menu/debug_menu.cpp index 8f34148295d..1461c19bb13 100644 --- a/src/supertux/menu/debug_menu.cpp +++ b/src/supertux/menu/debug_menu.cpp @@ -71,7 +71,7 @@ DebugMenu::DebugMenu() : add_toggle(-1, _("Use Bitmap Fonts"), []{ return g_debug.get_use_bitmap_fonts(); }, [](bool value){ g_debug.set_use_bitmap_fonts(value); }); - add_toggle(-1, _("Show Tile Ids In Editor"), &g_debug.show_tile_ids_in_editor); + add_toggle(-1, _("Show Tile IDs in Editor Toolbox"), &g_debug.show_toolbox_tile_ids); add_entry(_("Dump Texture Cache"), []{ TextureManager::current()->debug_print(get_logging_instance()); }); add_hl();