diff --git a/editor/icons/SCsub b/editor/icons/SCsub index e28c229a38d..0e4a4796ece 100644 --- a/editor/icons/SCsub +++ b/editor/icons/SCsub @@ -49,6 +49,9 @@ def make_editor_icons_action(target, source, env): fname = str(f) icon_name = os.path.basename(fname)[5:-4].title().replace("_", "") + # some special cases + if icon_name in ['Int', 'Bool', 'Float']: + icon_name = icon_name.lower() if icon_name.endswith("MediumThumb"): # dont know a better way to handle this thumb_medium_indices.append(str(index)) if icon_name.endswith("BigThumb"): # dont know a better way to handle this diff --git a/editor/icons/icon_aabb.svg b/editor/icons/icon_a_a_b_b.svg similarity index 100% rename from editor/icons/icon_aabb.svg rename to editor/icons/icon_a_a_b_b.svg diff --git a/editor/icons/icon_nil.svg b/editor/icons/icon_nil.svg new file mode 100644 index 00000000000..b266161c2b3 --- /dev/null +++ b/editor/icons/icon_nil.svg @@ -0,0 +1,3 @@ + + + diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 0bb235436e4..b91042ec466 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -481,9 +481,9 @@ void VisualScriptEditor::_update_graph(int p_only_id) { Ref type_icons[Variant::VARIANT_MAX] = { Control::get_icon("Variant", "EditorIcons"), - Control::get_icon("Bool", "EditorIcons"), - Control::get_icon("Int", "EditorIcons"), - Control::get_icon("Float", "EditorIcons"), + Control::get_icon("bool", "EditorIcons"), + Control::get_icon("int", "EditorIcons"), + Control::get_icon("float", "EditorIcons"), Control::get_icon("String", "EditorIcons"), Control::get_icon("Vector2", "EditorIcons"), Control::get_icon("Rect2", "EditorIcons"), @@ -491,7 +491,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) { Control::get_icon("Transform2D", "EditorIcons"), Control::get_icon("Plane", "EditorIcons"), Control::get_icon("Quat", "EditorIcons"), - Control::get_icon("Aabb", "EditorIcons"), + Control::get_icon("AABB", "EditorIcons"), Control::get_icon("Basis", "EditorIcons"), Control::get_icon("Transform", "EditorIcons"), Control::get_icon("Color", "EditorIcons"), @@ -775,9 +775,9 @@ void VisualScriptEditor::_update_members() { Ref type_icons[Variant::VARIANT_MAX] = { Control::get_icon("Variant", "EditorIcons"), - Control::get_icon("Bool", "EditorIcons"), - Control::get_icon("Int", "EditorIcons"), - Control::get_icon("Float", "EditorIcons"), + Control::get_icon("bool", "EditorIcons"), + Control::get_icon("int", "EditorIcons"), + Control::get_icon("float", "EditorIcons"), Control::get_icon("String", "EditorIcons"), Control::get_icon("Vector2", "EditorIcons"), Control::get_icon("Rect2", "EditorIcons"), @@ -785,7 +785,7 @@ void VisualScriptEditor::_update_members() { Control::get_icon("Transform2D", "EditorIcons"), Control::get_icon("Plane", "EditorIcons"), Control::get_icon("Quat", "EditorIcons"), - Control::get_icon("Aabb", "EditorIcons"), + Control::get_icon("AABB", "EditorIcons"), Control::get_icon("Basis", "EditorIcons"), Control::get_icon("Transform", "EditorIcons"), Control::get_icon("Color", "EditorIcons"),