diff --git a/editor/icons/2x/icon_script_create.png b/editor/icons/2x/icon_script_create.png new file mode 100644 index 00000000000..67f80e8760f Binary files /dev/null and b/editor/icons/2x/icon_script_create.png differ diff --git a/editor/icons/icon_script_create.png b/editor/icons/icon_script_create.png new file mode 100644 index 00000000000..f5d8b0cfd6f Binary files /dev/null and b/editor/icons/icon_script_create.png differ diff --git a/editor/icons/source/icon_script_create.svg b/editor/icons/source/icon_script_create.svg new file mode 100644 index 00000000000..c3f69c46017 --- /dev/null +++ b/editor/icons/source/icon_script_create.svg @@ -0,0 +1,96 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 34532fde764..48ae4d63310 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -709,7 +709,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")); filter_icon->set_texture(get_icon("Zoom", "EditorIcons")); @@ -1708,7 +1708,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_separator(); }