mirror of
https://github.com/OpenSolo/OpenSolo.git
synced 2025-04-29 22:24:32 +02:00
UI: Open Solo logo and version splash screen
This commit is contained in:
parent
75e3c4ed3e
commit
d3ba59ffde
Binary file not shown.
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 16 KiB |
@ -39,10 +39,7 @@ bool UiSplash::update()
|
||||
}
|
||||
}
|
||||
|
||||
if (versionDrawRequested) {
|
||||
drawVersion();
|
||||
versionDrawRequested = false;
|
||||
}
|
||||
drawVersion();
|
||||
|
||||
uint16_t w = scale(millis, 0U, BootEstimateMillis, 0U, Gfx::WIDTH);
|
||||
Gfx::fillRect(Gfx::Rect(0, Gfx::HEIGHT - ProgressBarH, w, ProgressBarH), UiColor::Green);
|
||||
@ -50,15 +47,6 @@ bool UiSplash::update()
|
||||
return false;
|
||||
}
|
||||
|
||||
void UiSplash::onAButtonEvent(Button *b, Button::Event e)
|
||||
{
|
||||
UNUSED(b);
|
||||
|
||||
if (e == Button::ClickRelease) {
|
||||
versionDrawRequested = true;
|
||||
}
|
||||
}
|
||||
|
||||
void UiSplash::drawVersion()
|
||||
{
|
||||
const Gfx::FontAsset & f = HelveticaNeueLTProRoman;
|
||||
|
@ -10,7 +10,6 @@ public:
|
||||
|
||||
void init();
|
||||
bool update();
|
||||
void onAButtonEvent(Button *b, Button::Event e);
|
||||
|
||||
private:
|
||||
static const unsigned MinSplashMillis = 6000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user