You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Rename internal Button icon to button_icon to match exposed methods
This commit is contained in:
@@ -845,9 +845,9 @@ void TextureRegionEditor::_notification(int p_what) {
|
||||
texture_preview->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("TextureRegionPreviewBG"), EditorStringName(EditorStyles)));
|
||||
texture_overlay->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("TextureRegionPreviewFG"), EditorStringName(EditorStyles)));
|
||||
|
||||
zoom_out->set_icon(get_editor_theme_icon(SNAME("ZoomLess")));
|
||||
zoom_reset->set_icon(get_editor_theme_icon(SNAME("ZoomReset")));
|
||||
zoom_in->set_icon(get_editor_theme_icon(SNAME("ZoomMore")));
|
||||
zoom_out->set_button_icon(get_editor_theme_icon(SNAME("ZoomLess")));
|
||||
zoom_reset->set_button_icon(get_editor_theme_icon(SNAME("ZoomReset")));
|
||||
zoom_in->set_button_icon(get_editor_theme_icon(SNAME("ZoomMore")));
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||
@@ -1270,7 +1270,7 @@ bool EditorInspectorPluginTextureRegion::parse_property(Object *p_object, const
|
||||
if ((p_type == Variant::RECT2 || p_type == Variant::RECT2I)) {
|
||||
if (((Object::cast_to<Sprite2D>(p_object) || Object::cast_to<Sprite3D>(p_object) || Object::cast_to<NinePatchRect>(p_object) || Object::cast_to<StyleBoxTexture>(p_object)) && p_path == "region_rect") || (Object::cast_to<AtlasTexture>(p_object) && p_path == "region")) {
|
||||
Button *button = EditorInspector::create_inspector_action_button(TTR("Edit Region"));
|
||||
button->set_icon(texture_region_editor->get_editor_theme_icon(SNAME("RegionEdit")));
|
||||
button->set_button_icon(texture_region_editor->get_editor_theme_icon(SNAME("RegionEdit")));
|
||||
button->connect(SceneStringName(pressed), callable_mp(this, &EditorInspectorPluginTextureRegion::_region_edit).bind(p_object));
|
||||
add_property_editor(p_path, button, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user