mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Rename AcceptDialog get_ok() to get_ok_button()
Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
This commit is contained in:
parent
a511a26ad8
commit
8509c8c8fc
51 changed files with 231 additions and 231 deletions
|
|
@ -338,7 +338,7 @@ void ScriptEditorQuickOpen::_update_search() {
|
|||
}
|
||||
}
|
||||
|
||||
get_ok()->set_disabled(root->get_children() == nullptr);
|
||||
get_ok_button()->set_disabled(root->get_children() == nullptr);
|
||||
}
|
||||
|
||||
void ScriptEditorQuickOpen::_confirmed() {
|
||||
|
|
@ -382,8 +382,8 @@ ScriptEditorQuickOpen::ScriptEditorQuickOpen() {
|
|||
search_box->connect("gui_input", callable_mp(this, &ScriptEditorQuickOpen::_sbox_input));
|
||||
search_options = memnew(Tree);
|
||||
vbc->add_margin_child(TTR("Matches:"), search_options, true);
|
||||
get_ok()->set_text(TTR("Open"));
|
||||
get_ok()->set_disabled(true);
|
||||
get_ok_button()->set_text(TTR("Open"));
|
||||
get_ok_button()->set_disabled(true);
|
||||
register_text_enter(search_box);
|
||||
set_hide_on_ok(false);
|
||||
search_options->connect("item_activated", callable_mp(this, &ScriptEditorQuickOpen::_confirmed));
|
||||
|
|
@ -3482,7 +3482,7 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
|||
tab_container->connect("tab_changed", callable_mp(this, &ScriptEditor::_tab_changed));
|
||||
|
||||
erase_tab_confirm = memnew(ConfirmationDialog);
|
||||
erase_tab_confirm->get_ok()->set_text(TTR("Save"));
|
||||
erase_tab_confirm->get_ok_button()->set_text(TTR("Save"));
|
||||
erase_tab_confirm->add_button(TTR("Discard"), DisplayServer::get_singleton()->get_swap_cancel_ok(), "discard");
|
||||
erase_tab_confirm->connect("confirmed", callable_mp(this, &ScriptEditor::_close_current_tab));
|
||||
erase_tab_confirm->connect("custom_action", callable_mp(this, &ScriptEditor::_close_discard_current_tab));
|
||||
|
|
@ -3515,7 +3515,7 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
|
|||
disk_changed_list->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
disk_changed->connect("confirmed", callable_mp(this, &ScriptEditor::_reload_scripts));
|
||||
disk_changed->get_ok()->set_text(TTR("Reload"));
|
||||
disk_changed->get_ok_button()->set_text(TTR("Reload"));
|
||||
|
||||
disk_changed->add_button(TTR("Resave"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave");
|
||||
disk_changed->connect("custom_action", callable_mp(this, &ScriptEditor::_resave_scripts));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue