From 90918ff5ab2c7b3ae93e5acf49d86f7264eb710a Mon Sep 17 00:00:00 2001 From: bosak Date: Sun, 1 Apr 2018 19:22:51 +0300 Subject: add tint for under, progress and over and tint group --- scene/gui/texture_progress.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'scene/gui/texture_progress.h') diff --git a/scene/gui/texture_progress.h b/scene/gui/texture_progress.h index a63563964..34158b5db 100644 --- a/scene/gui/texture_progress.h +++ b/scene/gui/texture_progress.h @@ -82,8 +82,14 @@ public: void set_nine_patch_stretch(bool p_stretch); bool get_nine_patch_stretch() const; - void set_tint(const Color &p_tint); - Color get_tint() const; + void set_tint_under(const Color &p_tint); + Color get_tint_under() const; + + void set_tint_progress(const Color &p_tint); + Color get_tint_progress() const; + + void set_tint_over(const Color &p_tint); + Color get_tint_over() const; Size2 get_minimum_size() const; @@ -96,11 +102,11 @@ private: Point2 rad_center_off; bool nine_patch_stretch; int stretch_margin[4]; - Color tint; + Color tint_under, tint_progress, tint_over; Point2 unit_val_to_uv(float val); Point2 get_relative_center(); - void draw_nine_patch_stretched(const Ref &p_texture, FillMode p_mode, double p_ratio, const Color &p_modulate = Color(1, 1, 1)); + void draw_nine_patch_stretched(const Ref &p_texture, FillMode p_mode, double p_ratio, const Color &p_modulate); }; VARIANT_ENUM_CAST(TextureProgress::FillMode); -- cgit v1.2.3-70-g09d2