| 41 | } |
| 42 | |
| 43 | void NativeAcceptDialog::_process(float delta) { |
| 44 | if (!message || !message->ready(0)) { |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | pfd::button button = message->result(); |
| 49 | if (button == pfd::button::ok || button == pfd::button::yes) { |
| 50 | emit_signal("confirmed"); |
| 51 | } else { |
| 52 | emit_signal("canceled"); |
| 53 | } |
| 54 | |
| 55 | hide(); |
| 56 | } |
| 57 | |
| 58 | void NativeAcceptDialog::_exit_tree() { |
| 59 | hide(); |
nothing calls this directly
no outgoing calls
no test coverage detected