You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Initial editor accessibility.
This commit is contained in:
@@ -196,12 +196,14 @@ EditorPropertyRootMotion::EditorPropertyRootMotion() {
|
||||
HBoxContainer *hbc = memnew(HBoxContainer);
|
||||
add_child(hbc);
|
||||
assign = memnew(Button);
|
||||
assign->set_accessibility_name(TTRC("Assign"));
|
||||
assign->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
assign->set_clip_text(true);
|
||||
assign->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyRootMotion::_node_assign));
|
||||
hbc->add_child(assign);
|
||||
|
||||
clear = memnew(Button);
|
||||
clear->set_accessibility_name(TTRC("Clear"));
|
||||
clear->connect(SceneStringName(pressed), callable_mp(this, &EditorPropertyRootMotion::_node_clear));
|
||||
hbc->add_child(clear);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user