Initialize class variables with default values in scene/ [2/2]
This commit is contained in:
@ -37,23 +37,23 @@ class Slider : public Range {
|
||||
GDCLASS(Slider, Range);
|
||||
|
||||
struct Grab {
|
||||
int pos;
|
||||
float uvalue;
|
||||
bool active;
|
||||
int pos = 0;
|
||||
float uvalue = 0.0;
|
||||
bool active = false;
|
||||
} grab;
|
||||
|
||||
int ticks;
|
||||
bool mouse_inside;
|
||||
int ticks = 0;
|
||||
bool mouse_inside = false;
|
||||
Orientation orientation;
|
||||
float custom_step;
|
||||
bool editable;
|
||||
bool scrollable;
|
||||
float custom_step = -1.0;
|
||||
bool editable = true;
|
||||
bool scrollable = true;
|
||||
|
||||
protected:
|
||||
void _gui_input(Ref<InputEvent> p_event);
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
bool ticks_on_borders;
|
||||
bool ticks_on_borders = false;
|
||||
|
||||
public:
|
||||
virtual Size2 get_minimum_size() const override;
|
||||
|
||||
Reference in New Issue
Block a user