mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Unify and streamline connecting to Resource changes
This commit is contained in:
parent
2c55214068
commit
de4a3fa151
98 changed files with 341 additions and 434 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue