MCPcopy Create free account
hub / github.com/98teg/NativeDialogs / _bind_methods

Method _bind_methods

src/native_confirmation_dialog.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace godot;
4
5void NativeConfirmationDialog::_bind_methods() {
6 ClassDB::bind_method(D_METHOD("set_buttons_texts", "buttons_texts"), &NativeConfirmationDialog::set_buttons_texts);
7 ClassDB::bind_method(D_METHOD("get_buttons_texts"), &NativeConfirmationDialog::get_buttons_texts);
8 ADD_PROPERTY(PropertyInfo(Variant::INT, "buttons_texts", PROPERTY_HINT_ENUM, "OK Cancel,Yes No"), "set_buttons_texts", "get_buttons_texts");
9
10 BIND_ENUM_CONSTANT(BUTTONS_TEXTS_OK_CANCEL);
11 BIND_ENUM_CONSTANT(BUTTONS_TEXTS_YES_NO);
12}
13
14NativeConfirmationDialog::NativeConfirmationDialog() {
15 set_title("Please Confirm...");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected