You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add EditorStringNames singleton
This commit is contained in:
@@ -156,7 +156,7 @@ void EditorPropertyFontMetaOverride::_notification(int p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
if (button_add) {
|
||||
button_add->set_icon(get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
button_add->set_icon(get_editor_theme_icon(SNAME("Add")));
|
||||
}
|
||||
} break;
|
||||
}
|
||||
@@ -302,7 +302,7 @@ void EditorPropertyFontMetaOverride::update_property() {
|
||||
hbox->add_child(prop);
|
||||
prop->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
Button *remove = memnew(Button);
|
||||
remove->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
remove->set_icon(get_editor_theme_icon(SNAME("Remove")));
|
||||
hbox->add_child(remove);
|
||||
remove->connect("pressed", callable_mp(this, &EditorPropertyFontMetaOverride::_remove).bind(remove, name));
|
||||
|
||||
@@ -552,7 +552,7 @@ void EditorPropertyOTFeatures::_notification(int p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
if (button_add) {
|
||||
button_add->set_icon(get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
button_add->set_icon(get_editor_theme_icon(SNAME("Add")));
|
||||
}
|
||||
} break;
|
||||
}
|
||||
@@ -789,7 +789,7 @@ void EditorPropertyOTFeatures::update_property() {
|
||||
hbox->add_child(prop);
|
||||
prop->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
Button *remove = memnew(Button);
|
||||
remove->set_icon(get_theme_icon(SNAME("Remove"), SNAME("EditorIcons")));
|
||||
remove->set_icon(get_editor_theme_icon(SNAME("Remove")));
|
||||
hbox->add_child(remove);
|
||||
remove->connect("pressed", callable_mp(this, &EditorPropertyOTFeatures::_remove).bind(remove, name_tag));
|
||||
|
||||
@@ -798,7 +798,7 @@ void EditorPropertyOTFeatures::update_property() {
|
||||
}
|
||||
|
||||
button_add = EditorInspector::create_inspector_action_button(TTR("Add Feature"));
|
||||
button_add->set_icon(get_theme_icon(SNAME("Add"), SNAME("EditorIcons")));
|
||||
button_add->set_icon(get_editor_theme_icon(SNAME("Add")));
|
||||
button_add->connect("pressed", callable_mp(this, &EditorPropertyOTFeatures::_add_menu));
|
||||
property_vbox->add_child(button_add);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user