You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Unify and streamline connecting to Resource changes
This commit is contained in:
@@ -140,7 +140,7 @@ TexturePreview::TexturePreview(Ref<Texture2D> p_texture, bool p_show_metadata) {
|
||||
metadata_label = memnew(Label);
|
||||
|
||||
_update_metadata_label_text();
|
||||
p_texture->connect("changed", callable_mp(this, &TexturePreview::_update_metadata_label_text));
|
||||
p_texture->connect_changed(callable_mp(this, &TexturePreview::_update_metadata_label_text));
|
||||
|
||||
// It's okay that these colors are static since the grid color is static too.
|
||||
metadata_label->add_theme_color_override("font_color", Color::named("white"));
|
||||
|
||||
Reference in New Issue
Block a user