Skip to content

Commit

Permalink
Fix text color of TileMap editor info overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Mar 10, 2022
1 parent fd082ec commit 86bcac5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/tile_map_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,7 @@ TileMapEditor::TileMapEditor(EditorNode *p_editor) {
tile_info->set_modulate(Color(1, 1, 1, 0.8));
tile_info->set_mouse_filter(MOUSE_FILTER_IGNORE);
tile_info->add_font_override("font", EditorNode::get_singleton()->get_gui_base()->get_font("main", "EditorFonts"));
tile_info->add_color_override("font_color", Color(1, 1, 1, 0.8)); // Overlay has a fixed dark background.
// The tile info is only displayed after a tile has been hovered.
tile_info->hide();
CanvasItemEditor::get_singleton()->add_control_to_info_overlay(tile_info);
Expand Down

0 comments on commit 86bcac5

Please sign in to comment.