Fix visual script icons

This pull request fixes an issue where the visual script icons weren't representative of their data.
This commit is contained in:
Nick Huelin 2021-07-20 15:31:36 -04:00 committed by Nick H
parent 3478690c0f
commit e50ab50169
3 changed files with 15 additions and 3 deletions

View file

@ -137,6 +137,7 @@ void PropertySelector::_update_search() {
search_options->get_theme_icon(SNAME("Basis"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("Transform3D"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("Color"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("StringName"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("NodePath"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("RID"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("MiniObject"), SNAME("EditorIcons")),
@ -146,7 +147,9 @@ void PropertySelector::_update_search() {
search_options->get_theme_icon(SNAME("Array"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedByteArray"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedInt32Array"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedInt64Array"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedFloat32Array"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedFloat64Array"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedStringArray"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedVector2Array"), SNAME("EditorIcons")),
search_options->get_theme_icon(SNAME("PackedVector3Array"), SNAME("EditorIcons")),

View file

@ -629,6 +629,7 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
Control::get_theme_icon(SNAME("Basis"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("Transform3D"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("Color"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("StringName"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("NodePath"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("RID"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("MiniObject"), SNAME("EditorIcons")),
@ -638,7 +639,9 @@ void VisualScriptEditor::_update_graph(int p_only_id) {
Control::get_theme_icon(SNAME("Array"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedByteArray"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedInt32Array"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedInt64Array"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedFloat32Array"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedFloat64Array"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedStringArray"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedVector2Array"), SNAME("EditorIcons")),
Control::get_theme_icon(SNAME("PackedVector3Array"), SNAME("EditorIcons")),

View file

@ -104,8 +104,11 @@ void VisualScriptPropertySelector::_update_search() {
vbc->get_theme_icon(SNAME("float"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("String"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Vector2"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Vector2i"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Rect2"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Rect2i"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Vector3"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Vector3i"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Transform2D"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Plane"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Quaternion"), SNAME("EditorIcons")),
@ -113,15 +116,18 @@ void VisualScriptPropertySelector::_update_search() {
vbc->get_theme_icon(SNAME("Basis"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Transform3D"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Color"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Path"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("StringName"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("NodePath"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("RID"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Object"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("MiniObject"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Callable"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Signal"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Dictionary"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("Array"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedByteArray"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedInt32Array"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedFloat32Array"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedInt64Array"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedFloat32Array"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedFloat64Array"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedStringArray"), SNAME("EditorIcons")),
vbc->get_theme_icon(SNAME("PackedVector2Array"), SNAME("EditorIcons")),