flow improvements
This commit is contained in:
@@ -51,6 +51,20 @@ namespace ui {
|
||||
void SetProgress(double val) {
|
||||
progressBar->SetProgress(val);
|
||||
}
|
||||
|
||||
void SetProgressVisible(bool visible) {
|
||||
progressBar->SetVisible(visible);
|
||||
if (visible) {
|
||||
this->SetHeight(OvlH);
|
||||
this->SetY(OvlY);
|
||||
hintText->SetY(195);
|
||||
} else {
|
||||
static constexpr int SmallH = 160;
|
||||
this->SetHeight(SmallH);
|
||||
this->SetY((720 - SmallH) / 2);
|
||||
hintText->SetY(120);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user