diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-16 09:13:41 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-05-16 09:13:41 -0300 |
commit | dfd1331690fab7e634e2e18fd7269bab8f759b3a (patch) | |
tree | 03c485b382ab5d281a1f5d534df8ac4a499e8df3 /scene/gui/range.h | |
parent | 031a4453684c75e2b5082aa39b8256f88faf3158 (diff) | |
download | redot-engine-dfd1331690fab7e634e2e18fd7269bab8f759b3a.tar.gz |
Allow editing of some unbound properties when hinted (or no range hinted)
Diffstat (limited to 'scene/gui/range.h')
-rw-r--r-- | scene/gui/range.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/gui/range.h b/scene/gui/range.h index de9383afd8..125f559248 100644 --- a/scene/gui/range.h +++ b/scene/gui/range.h @@ -43,6 +43,8 @@ class Range : public Control { double val, min, max; double step, page; bool exp_ratio; + bool allow_greater; + bool allow_lesser; Set<Range *> owners; void emit_value_changed(); void emit_changed(const char *p_what = ""); @@ -86,6 +88,12 @@ public: void set_exp_ratio(bool p_enable); bool is_ratio_exp() const; + void set_allow_greater(bool p_allow); + bool is_greater_allowed() const; + + void set_allow_lesser(bool p_allow); + bool is_lesser_allowed() const; + void share(Range *p_range); void unshare(); |