You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Use Core/Scene stringnames consistently
This commit is contained in:
@@ -2067,7 +2067,7 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
|
||||
edit_theme_item_vb->add_child(edit_theme_item_label);
|
||||
theme_item_name = memnew(LineEdit);
|
||||
edit_theme_item_vb->add_child(theme_item_name);
|
||||
theme_item_name->connect("gui_input", callable_mp(this, &ThemeItemEditorDialog::_edit_theme_item_gui_input));
|
||||
theme_item_name->connect(SceneStringName(gui_input), callable_mp(this, &ThemeItemEditorDialog::_edit_theme_item_gui_input));
|
||||
edit_theme_item_dialog->connect("confirmed", callable_mp(this, &ThemeItemEditorDialog::_confirm_edit_theme_item));
|
||||
|
||||
// Import Items tab.
|
||||
@@ -3150,8 +3150,8 @@ void ThemeTypeEditor::_font_item_changed(Ref<Font> p_value, String p_item_name)
|
||||
ur->add_undo_method(*edited_theme, "set_font", p_item_name, edited_type, Ref<Font>());
|
||||
}
|
||||
|
||||
ur->add_do_method(this, "call_deferred", "_update_type_items");
|
||||
ur->add_undo_method(this, "call_deferred", "_update_type_items");
|
||||
ur->add_do_method(this, CoreStringName(call_deferred), "_update_type_items");
|
||||
ur->add_undo_method(this, CoreStringName(call_deferred), "_update_type_items");
|
||||
|
||||
ur->commit_action();
|
||||
}
|
||||
@@ -3167,8 +3167,8 @@ void ThemeTypeEditor::_icon_item_changed(Ref<Texture2D> p_value, String p_item_n
|
||||
ur->add_undo_method(*edited_theme, "set_icon", p_item_name, edited_type, Ref<Texture2D>());
|
||||
}
|
||||
|
||||
ur->add_do_method(this, "call_deferred", "_update_type_items");
|
||||
ur->add_undo_method(this, "call_deferred", "_update_type_items");
|
||||
ur->add_do_method(this, CoreStringName(call_deferred), "_update_type_items");
|
||||
ur->add_undo_method(this, CoreStringName(call_deferred), "_update_type_items");
|
||||
|
||||
ur->commit_action();
|
||||
}
|
||||
@@ -3187,8 +3187,8 @@ void ThemeTypeEditor::_stylebox_item_changed(Ref<StyleBox> p_value, String p_ite
|
||||
ur->add_do_method(this, "_change_pinned_stylebox");
|
||||
ur->add_undo_method(this, "_change_pinned_stylebox");
|
||||
|
||||
ur->add_do_method(this, "call_deferred", "_update_type_items");
|
||||
ur->add_undo_method(this, "call_deferred", "_update_type_items");
|
||||
ur->add_do_method(this, CoreStringName(call_deferred), "_update_type_items");
|
||||
ur->add_undo_method(this, CoreStringName(call_deferred), "_update_type_items");
|
||||
|
||||
ur->commit_action();
|
||||
}
|
||||
@@ -3506,7 +3506,7 @@ ThemeTypeEditor::ThemeTypeEditor() {
|
||||
type_variation_hb->add_child(type_variation_edit);
|
||||
type_variation_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
type_variation_edit->connect("text_changed", callable_mp(this, &ThemeTypeEditor::_type_variation_changed));
|
||||
type_variation_edit->connect("focus_exited", callable_mp(this, &ThemeTypeEditor::_update_type_items));
|
||||
type_variation_edit->connect(SceneStringName(focus_exited), callable_mp(this, &ThemeTypeEditor::_update_type_items));
|
||||
type_variation_button = memnew(Button);
|
||||
type_variation_hb->add_child(type_variation_button);
|
||||
type_variation_button->set_tooltip_text(TTR("Select the variation base type from a list of available types."));
|
||||
|
||||
Reference in New Issue
Block a user