mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-06 10:18:22 +00:00
Fork rename
This commit is contained in:
parent
f1ca56b875
commit
7058c872f3
@ -72,10 +72,11 @@ private:
|
|||||||
int32_t delay;
|
int32_t delay;
|
||||||
} credits_t;
|
} credits_t;
|
||||||
|
|
||||||
|
// TODO: Make this dinamically centered and parse \n as the delay value so it is easy to maintain
|
||||||
const credits_t credits[26] = {
|
const credits_t credits[26] = {
|
||||||
// 012345678901234567890123456789
|
// 012345678901234567890123456789
|
||||||
|
{ 60, "PortaPack Mayhem", 0 },
|
||||||
{ 60, "PortaPack|HAVOC", 0 },
|
{ 60, "PortaPack|HAVOC", 0 },
|
||||||
{ 4 * 8, "Version " VERSION_STRING, 16 },
|
|
||||||
{ 11 * 8, "Gurus J. Boone", 0 },
|
{ 11 * 8, "Gurus J. Boone", 0 },
|
||||||
{ 18 * 8, "M. Ossmann", 16 },
|
{ 18 * 8, "M. Ossmann", 16 },
|
||||||
{ 11 * 8, "HAVOC Furrtek", 16 },
|
{ 11 * 8, "HAVOC Furrtek", 16 },
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -513,7 +513,6 @@ void BMPView::focus() {
|
|||||||
|
|
||||||
BMPView::BMPView(NavigationView& nav) {
|
BMPView::BMPView(NavigationView& nav) {
|
||||||
add_children({
|
add_children({
|
||||||
&text_info,
|
|
||||||
&button_done
|
&button_done
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -523,7 +522,7 @@ BMPView::BMPView(NavigationView& nav) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void BMPView::paint(Painter&) {
|
void BMPView::paint(Painter&) {
|
||||||
portapack::display.drawBMP({(240 - 185) / 2, 0}, splash_bmp, false);
|
portapack::display.drawBMP({(240 - 230) / 2, (320 - 50) / 2 - 10}, splash_bmp, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NotImplementedView ****************************************************/
|
/* NotImplementedView ****************************************************/
|
||||||
|
@ -54,6 +54,8 @@ enum modal_t {
|
|||||||
ABORT
|
ABORT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//#define VERSION_STRING "v1.0.0"; // TODO: Move somewhere else
|
||||||
|
|
||||||
class NavigationView : public View {
|
class NavigationView : public View {
|
||||||
public:
|
public:
|
||||||
std::function<void(const View&)> on_view_changed { };
|
std::function<void(const View&)> on_view_changed { };
|
||||||
@ -109,7 +111,7 @@ public:
|
|||||||
void set_title(const std::string new_value);
|
void set_title(const std::string new_value);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr auto default_title = "PortaPack|Havoc";
|
static constexpr auto default_title = "MAYHEM v1.0.0"; // TODO: Move the version somewhere
|
||||||
|
|
||||||
NavigationView& nav_;
|
NavigationView& nav_;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user