Merge pull request #58980 from timothyqiu/tilemap-overlay

This commit is contained in:
Rémi Verschelde 2022-03-10 14:04:57 +01:00 committed by GitHub
commit 6e19f10dd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);