From 15891573374210323ae37293a63f53aaa6d44af5 Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Tue, 15 Mar 2016 14:32:28 -0300 Subject: Tilemap Editor: Fix some last issues of PR-4006 --- tools/editor/plugins/tile_map_editor_plugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/editor/plugins/tile_map_editor_plugin.cpp b/tools/editor/plugins/tile_map_editor_plugin.cpp index ea46458cdf..30ec6c086c 100644 --- a/tools/editor/plugins/tile_map_editor_plugin.cpp +++ b/tools/editor/plugins/tile_map_editor_plugin.cpp @@ -1307,6 +1307,8 @@ TileMapEditor::TileMapEditor(EditorNode *p_editor) { // Add menu items toolbar = memnew( HBoxContainer ); + toolbar->set_h_size_flags(SIZE_EXPAND_FILL); + toolbar->set_alignment(BoxContainer::ALIGN_END); CanvasItemEditor::get_singleton()->add_control_to_menu_panel(toolbar); options = memnew( MenuButton ); @@ -1320,9 +1322,8 @@ TileMapEditor::TileMapEditor(EditorNode *p_editor) { p->add_separator(); p->add_item("Pick Tile", OPTION_PICK_TILE, KEY_CONTROL); p->add_separator(); - p->add_item("Select", OPTION_SELECT, KEY_MASK_SHIFT+KEY_B); + p->add_item("Select", OPTION_SELECT, KEY_MASK_CMD+KEY_B); p->add_item("Duplicate Selection", OPTION_DUPLICATE, KEY_MASK_CMD+KEY_D); - p->add_separator(); p->add_item("Erase Selection", OPTION_ERASE_SELECTION, KEY_DELETE); p->connect("item_pressed", this, "_menu_option"); -- cgit v1.2.3