Hide tilemap menu when no tilemap is selected
This commit is contained in:
parent
81dde2687f
commit
e4a9233a83
1 changed files with 3 additions and 2 deletions
|
@ -49,6 +49,8 @@ void TileMapEditor::_notification(int p_what) {
|
|||
rotate_180->set_icon(get_icon("Rotate180", "EditorIcons"));
|
||||
rotate_270->set_icon(get_icon("Rotate270", "EditorIcons"));
|
||||
|
||||
search_box->add_icon_override("right_icon", get_icon("Search", "EditorIcons"));
|
||||
|
||||
} break;
|
||||
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
|
||||
|
||||
|
@ -1487,6 +1489,7 @@ TileMapEditor::TileMapEditor(EditorNode *p_editor) {
|
|||
toolbar = memnew(HBoxContainer);
|
||||
toolbar->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
toolbar->set_alignment(BoxContainer::ALIGN_END);
|
||||
toolbar->hide();
|
||||
CanvasItemEditor::get_singleton()->add_control_to_menu_panel(toolbar);
|
||||
|
||||
// Tile position
|
||||
|
@ -1512,8 +1515,6 @@ TileMapEditor::TileMapEditor(EditorNode *p_editor) {
|
|||
|
||||
toolbar->add_child(options);
|
||||
|
||||
toolbar->add_child(memnew(VSeparator));
|
||||
|
||||
transp = memnew(ToolButton);
|
||||
transp->set_toggle_mode(true);
|
||||
transp->set_tooltip(TTR("Transpose") + " (" + ED_GET_SHORTCUT("tile_map_editor/transpose")->get_as_text() + ")");
|
||||
|
|
Loading…
Reference in a new issue