mirror of
https://github.com/godotengine/godot.git
synced 2024-12-13 06:34:17 +00:00
TextureButton Update min size on any texture change
(cherry picked from commit 6c3c269f24
)
This commit is contained in:
parent
606331fdcb
commit
ce763fe402
@ -293,10 +293,12 @@ void TextureButton::set_normal_texture(const Ref<Texture> &p_normal) {
|
||||
void TextureButton::set_pressed_texture(const Ref<Texture> &p_pressed) {
|
||||
pressed = p_pressed;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
}
|
||||
void TextureButton::set_hover_texture(const Ref<Texture> &p_hover) {
|
||||
hover = p_hover;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
}
|
||||
void TextureButton::set_disabled_texture(const Ref<Texture> &p_disabled) {
|
||||
disabled = p_disabled;
|
||||
@ -305,6 +307,7 @@ void TextureButton::set_disabled_texture(const Ref<Texture> &p_disabled) {
|
||||
void TextureButton::set_click_mask(const Ref<BitMap> &p_click_mask) {
|
||||
click_mask = p_click_mask;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
}
|
||||
|
||||
Ref<Texture> TextureButton::get_normal_texture() const {
|
||||
|
Loading…
Reference in New Issue
Block a user