Allow ScrollBar params of a ScrollContainer to be modified in _ready()

Initializes the sizes of the ScrollContainer and its associated
ScrollBars in _ready() to allow scroll values to be set in GDScript
initially.
This commit is contained in:
Maganty Rushyendra
2020-12-29 10:51:38 +08:00
parent 6cebb8c117
commit b8610dbd31
2 changed files with 64 additions and 58 deletions

View File

@ -69,6 +69,7 @@ protected:
Size2 get_minimum_size() const override;
void _gui_input(const Ref<InputEvent> &p_gui_input);
void _update_dimensions();
void _notification(int p_what);
void _scroll_moved(float);