From 544194053a54870320d860f1cf333f45723758b9 Mon Sep 17 00:00:00 2001 From: Pawel Kowal Date: Sat, 5 Nov 2016 18:20:59 +0100 Subject: Fix #7016, add script create icon --- tools/editor/icons/2x/icon_script_create.png | Bin 0 -> 541 bytes tools/editor/icons/icon_script_create.png | Bin 0 -> 341 bytes tools/editor/icons/source/icon_script_create.svg | 96 +++++++++++++++++++++++ tools/editor/scene_tree_dock.cpp | 4 +- 4 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 tools/editor/icons/2x/icon_script_create.png create mode 100644 tools/editor/icons/icon_script_create.png create mode 100644 tools/editor/icons/source/icon_script_create.svg (limited to 'tools') diff --git a/tools/editor/icons/2x/icon_script_create.png b/tools/editor/icons/2x/icon_script_create.png new file mode 100644 index 0000000000..67f80e8760 Binary files /dev/null and b/tools/editor/icons/2x/icon_script_create.png differ diff --git a/tools/editor/icons/icon_script_create.png b/tools/editor/icons/icon_script_create.png new file mode 100644 index 0000000000..f5d8b0cfd6 Binary files /dev/null and b/tools/editor/icons/icon_script_create.png differ diff --git a/tools/editor/icons/source/icon_script_create.svg b/tools/editor/icons/source/icon_script_create.svg new file mode 100644 index 0000000000..c3f69c4601 --- /dev/null +++ b/tools/editor/icons/source/icon_script_create.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index b4d32eb5c2..42f1dab791 100644 --- a/tools/editor/scene_tree_dock.cpp +++ b/tools/editor/scene_tree_dock.cpp @@ -722,7 +722,7 @@ void SceneTreeDock::_notification(int p_what) { } button_add->set_icon(get_icon("Add","EditorIcons")); button_instance->set_icon(get_icon("Instance","EditorIcons")); - button_create_script->set_icon(get_icon("Script","EditorIcons")); + button_create_script->set_icon(get_icon("ScriptCreate","EditorIcons")); button_load_script->set_icon(get_icon("Script", "EditorIcons")); button_clear_script->set_icon(get_icon("Remove", "EditorIcons")); @@ -1848,7 +1848,7 @@ void SceneTreeDock::_tree_rmb(const Vector2& p_menu_pos) { //menu->add_icon_item(get_icon("Groups","EditorIcons"),TTR("Edit Groups"),TOOL_GROUP); //menu->add_icon_item(get_icon("Connect","EditorIcons"),TTR("Edit Connections"),TOOL_CONNECT); menu->add_separator(); - menu->add_icon_shortcut(get_icon("Script", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/add_script"), TOOL_CREATE_SCRIPT); + menu->add_icon_shortcut(get_icon("ScriptCreate", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/add_script"), TOOL_CREATE_SCRIPT); menu->add_icon_shortcut(get_icon("Script", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/load_script"), TOOL_LOAD_SCRIPT); menu->add_icon_shortcut(get_icon("Remove", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/clear_script"), TOOL_CLEAR_SCRIPT); menu->add_separator(); -- cgit v1.2.3