diff options
| author | bosak | 2018-04-01 19:22:51 +0300 |
|---|---|---|
| committer | bosak | 2018-04-01 19:22:51 +0300 |
| commit | 90918ff5ab2c7b3ae93e5acf49d86f7264eb710a (patch) | |
| tree | 5859132f4712e7ce0128af2e31e24a974ac09a2e /scene/gui/texture_progress.h | |
| parent | 1fa69c24a0ef58e66030b3aac9aa35374a3110b2 (diff) | |
| download | godot-90918ff5ab2c7b3ae93e5acf49d86f7264eb710a.tar.gz godot-90918ff5ab2c7b3ae93e5acf49d86f7264eb710a.tar.zst godot-90918ff5ab2c7b3ae93e5acf49d86f7264eb710a.zip | |
Diffstat (limited to 'scene/gui/texture_progress.h')
| -rw-r--r-- | scene/gui/texture_progress.h | 14 |
1 files changed, 10 insertions, 4 deletions
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<Texture> &p_texture, FillMode p_mode, double p_ratio, const Color &p_modulate = Color(1, 1, 1)); + void draw_nine_patch_stretched(const Ref<Texture> &p_texture, FillMode p_mode, double p_ratio, const Color &p_modulate); }; VARIANT_ENUM_CAST(TextureProgress::FillMode); |
