From 51c601d2e3e864364552656dba04d0c9cfc382f3 Mon Sep 17 00:00:00 2001 From: dankan1890 Date: Fri, 3 Jan 2020 22:49:22 +0100 Subject: [PATCH] [Mono]: the C# script icon is now visible in the editor. --- editor/script_create_dialog.cpp | 2 +- modules/mono/icons/{icon_c_#.svg => icon_c_sharp_script.svg} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename modules/mono/icons/{icon_c_#.svg => icon_c_sharp_script.svg} (100%) diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index 4c36e15eb4c..e1f9ed497cc 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -46,7 +46,7 @@ void ScriptCreateDialog::_notification(int p_what) { case NOTIFICATION_THEME_CHANGED: case NOTIFICATION_ENTER_TREE: { for (int i = 0; i < ScriptServer::get_language_count(); i++) { - String lang = ScriptServer::get_language(i)->get_name(); + String lang = ScriptServer::get_language(i)->get_type(); Ref lang_icon = get_icon(lang, "EditorIcons"); if (lang_icon.is_valid()) { language_menu->set_item_icon(i, lang_icon); diff --git a/modules/mono/icons/icon_c_#.svg b/modules/mono/icons/icon_c_sharp_script.svg similarity index 100% rename from modules/mono/icons/icon_c_#.svg rename to modules/mono/icons/icon_c_sharp_script.svg