You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Rename minimum_size_changed() method
This commit is contained in:
@@ -289,19 +289,19 @@ void TextureButton::_bind_methods() {
|
||||
void TextureButton::set_normal_texture(const Ref<Texture2D> &p_normal) {
|
||||
normal = p_normal;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
update_minimum_size();
|
||||
}
|
||||
|
||||
void TextureButton::set_pressed_texture(const Ref<Texture2D> &p_pressed) {
|
||||
pressed = p_pressed;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
update_minimum_size();
|
||||
}
|
||||
|
||||
void TextureButton::set_hover_texture(const Ref<Texture2D> &p_hover) {
|
||||
hover = p_hover;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
update_minimum_size();
|
||||
}
|
||||
|
||||
void TextureButton::set_disabled_texture(const Ref<Texture2D> &p_disabled) {
|
||||
@@ -312,7 +312,7 @@ void TextureButton::set_disabled_texture(const Ref<Texture2D> &p_disabled) {
|
||||
void TextureButton::set_click_mask(const Ref<BitMap> &p_click_mask) {
|
||||
click_mask = p_click_mask;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
update_minimum_size();
|
||||
}
|
||||
|
||||
Ref<Texture2D> TextureButton::get_normal_texture() const {
|
||||
@@ -349,7 +349,7 @@ bool TextureButton::get_expand() const {
|
||||
|
||||
void TextureButton::set_expand(bool p_expand) {
|
||||
expand = p_expand;
|
||||
minimum_size_changed();
|
||||
update_minimum_size();
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user