MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / show_accept

Method show_accept

editor/editor_node.cpp:5671–5680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5669}
5670
5671void EditorNode::show_accept(const String &p_text, const String &p_title) {
5672 current_menu_option = -1;
5673 if (accept) {
5674 _close_save_scene_progress();
5675 accept->set_ok_button_text(p_title);
5676 accept->set_text(p_text);
5677 accept->reset_size();
5678 EditorInterface::get_singleton()->popup_dialog_centered_clamped(accept, Size2i(), 0.0);
5679 }
5680}
5681
5682void EditorNode::show_save_accept(const String &p_text, const String &p_title) {
5683 current_menu_option = -1;

Callers 5

_export_scene_as_gltfMethod · 0.80
_import_selectedMethod · 0.80
_file_dialog_actionMethod · 0.80
_run_sceneMethod · 0.80

Calls 4

set_ok_button_textMethod · 0.80
set_textMethod · 0.45
reset_sizeMethod · 0.45

Tested by

no test coverage detected