Skip to content

Commit

Permalink
Change a few thing. Yeah. A few things are changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerandari13 committed Jul 15, 2024
1 parent f7b02bf commit c570340
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/editor/tilebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion src/supertux/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/supertux/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/supertux/menu/debug_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c570340

Please sign in to comment.