Slider: add set/is_editable

This commit is contained in:
Poommetee Ketson 2017-07-10 17:58:53 +07:00
parent 159b1fc65f
commit 0c66078bcb
6 changed files with 37 additions and 1 deletions

View file

@ -46,6 +46,7 @@ class Slider : public Range {
bool mouse_inside;
Orientation orientation;
float custom_step;
bool editable;
protected:
void _gui_input(Ref<InputEvent> p_event);
@ -65,6 +66,9 @@ public:
void set_ticks_on_borders(bool);
bool get_ticks_on_borders() const;
void set_editable(bool p_editable);
bool is_editable() const;
Slider(Orientation p_orientation = VERTICAL);
};