diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-14 16:16:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 16:16:10 +0100 |
commit | e7777519585fdca152bc035033a9b851b7680498 (patch) | |
tree | e571458dc3c690e880ba4125092de2b4bff93d13 /scene/gui/texture_button.h | |
parent | d71d78b7e7ae0a62097689d73275bbc7fe842af1 (diff) | |
parent | 9927b70efb829df050fa68f65d426f9a3f192eb9 (diff) |
Merge pull request #15855 from mrcdk/texture_button_mask_fixes
The TextureButton's bitmask takes into account the stretch mode selected
Diffstat (limited to 'scene/gui/texture_button.h')
-rw-r--r-- | scene/gui/texture_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/texture_button.h b/scene/gui/texture_button.h index 1cf4b66413..d42df390e8 100644 --- a/scene/gui/texture_button.h +++ b/scene/gui/texture_button.h @@ -58,6 +58,10 @@ private: bool expand; StretchMode stretch_mode; + Rect2 _texture_region; + Rect2 _position_rect; + bool _tile; + protected: virtual Size2 get_minimum_size() const; virtual bool has_point(const Point2 &p_point) const; |