You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[Scene] Add SceneStringNames::text/value_changed
This commit is contained in:
@@ -244,20 +244,20 @@ OpenXRActionSetEditor::OpenXRActionSetEditor(Ref<OpenXRActionMap> p_action_map,
|
||||
action_set_name = memnew(LineEdit);
|
||||
action_set_name->set_text(action_set->get_name());
|
||||
action_set_name->set_custom_minimum_size(Size2(150.0, 0.0));
|
||||
action_set_name->connect("text_changed", callable_mp(this, &OpenXRActionSetEditor::_on_action_set_name_changed));
|
||||
action_set_name->connect(SceneStringName(text_changed), callable_mp(this, &OpenXRActionSetEditor::_on_action_set_name_changed));
|
||||
action_set_hb->add_child(action_set_name);
|
||||
|
||||
action_set_localized_name = memnew(LineEdit);
|
||||
action_set_localized_name->set_text(action_set->get_localized_name());
|
||||
action_set_localized_name->set_custom_minimum_size(Size2(150.0, 0.0));
|
||||
action_set_localized_name->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
action_set_localized_name->connect("text_changed", callable_mp(this, &OpenXRActionSetEditor::_on_action_set_localized_name_changed));
|
||||
action_set_localized_name->connect(SceneStringName(text_changed), callable_mp(this, &OpenXRActionSetEditor::_on_action_set_localized_name_changed));
|
||||
action_set_hb->add_child(action_set_localized_name);
|
||||
|
||||
action_set_priority = memnew(TextEdit);
|
||||
action_set_priority->set_text(itos(action_set->get_priority()));
|
||||
action_set_priority->set_custom_minimum_size(Size2(50.0, 0.0));
|
||||
action_set_priority->connect("text_changed", callable_mp(this, &OpenXRActionSetEditor::_on_action_set_priority_changed));
|
||||
action_set_priority->connect(SceneStringName(text_changed), callable_mp(this, &OpenXRActionSetEditor::_on_action_set_priority_changed));
|
||||
action_set_hb->add_child(action_set_priority);
|
||||
|
||||
add_action = memnew(Button);
|
||||
|
||||
Reference in New Issue
Block a user