From 544194053a54870320d860f1cf333f45723758b9 Mon Sep 17 00:00:00 2001 From: Pawel Kowal Date: Sat, 5 Nov 2016 18:20:59 +0100 Subject: [PATCH] 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 .../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 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 0000000000000000000000000000000000000000..67f80e8760f28629ed51ba871edc4ec39fdd15d1 GIT binary patch literal 541 zcmV+&0^qaW|RF9-j-M4O;AP0y54 zH$sRjDP`dMK4BQ*d0v;Z3gE7)s_Q6c=< z4%dMujYgwZ{iW8w=RmF1YW27|ZgS?$9XJ9!<-mMCf7}(gt*+VLr1#@Mt?df8uhws8 zd)K%(ci;%HnF9q7SZnW%F`ogfwE#%j%-M7sI#)s=#2vtLxy-G#_tsk0>oovD5VZK0 zetL31N_kzD<)w4(BFnPh0a_D=;U5c|vbuLSoKB~ibM73t1s2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4d+lKZ9@l>RHE(#AFciI4D?U=3vTV9}dxOp+Mi%9DOiK!0JFVZo9DN z#P;b;{8M$9@BNl75D-l6S*YXv_AciQ>*swdC;eHu>Q&O(rSE@lJ!a-PiP>SDYWJcI z4390=Ejlh?&LDNr`w~Z5*6p&gyjf|_ZqH|Zwd>!Ugh|Ek5|ckHVpnXDaO%hxzc7Wl z;{D=jF^B6k7|ah(Tc + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index b4d32eb5c2c..42f1dab791a 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();