You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Rename internal Button icon to button_icon to match exposed methods
This commit is contained in:
@@ -169,13 +169,13 @@ void EditorPropertyRootMotion::update_property() {
|
||||
NodePath p = get_edited_property_value();
|
||||
assign->set_tooltip_text(p);
|
||||
if (p == NodePath()) {
|
||||
assign->set_icon(Ref<Texture2D>());
|
||||
assign->set_button_icon(Ref<Texture2D>());
|
||||
assign->set_text(TTR("Assign..."));
|
||||
assign->set_flat(false);
|
||||
return;
|
||||
}
|
||||
|
||||
assign->set_icon(Ref<Texture2D>());
|
||||
assign->set_button_icon(Ref<Texture2D>());
|
||||
assign->set_text(p);
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ void EditorPropertyRootMotion::_notification(int p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
Ref<Texture2D> t = get_editor_theme_icon(SNAME("Clear"));
|
||||
clear->set_icon(t);
|
||||
clear->set_button_icon(t);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user