You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
renamed _input_event for GUI events to _gui_input, so it's more differentiated than generalized _input
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include "object_type_db.h"
|
||||
#include "os/keyboard.h"
|
||||
|
||||
void EditorNameDialog::_line_input_event(const InputEvent& p_event) {
|
||||
void EditorNameDialog::_line_gui_input(const InputEvent& p_event) {
|
||||
|
||||
if (p_event.type == InputEvent::KEY) {
|
||||
|
||||
@@ -72,7 +72,7 @@ void EditorNameDialog::ok_pressed() {
|
||||
|
||||
void EditorNameDialog::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_line_input_event",&EditorNameDialog::_line_input_event);
|
||||
ClassDB::bind_method("_line_gui_input",&EditorNameDialog::_line_gui_input);
|
||||
|
||||
ADD_SIGNAL(MethodInfo("name_confirmed",PropertyInfo( Variant::STRING,"name")));
|
||||
}
|
||||
@@ -85,5 +85,5 @@ EditorNameDialog::EditorNameDialog()
|
||||
name->set_margin(MARGIN_TOP,5);
|
||||
name->set_anchor_and_margin(MARGIN_LEFT,ANCHOR_BEGIN,5);
|
||||
name->set_anchor_and_margin(MARGIN_RIGHT,ANCHOR_END,5);
|
||||
name->connect("input_event", this, "_line_input_event");
|
||||
name->connect("gui_input", this, "_line_gui_input");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user