Initialize class variables with default values in scene/ [2/2]

This commit is contained in:
Rafał Mikrut
2021-02-09 18:24:36 +01:00
parent df9c98e107
commit 7961a1dea3
171 changed files with 1007 additions and 1889 deletions

View File

@ -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;