Fork rename

This commit is contained in:
Erwin Ried 2020-05-12 16:12:16 +02:00
parent f1ca56b875
commit 7058c872f3
4 changed files with 326 additions and 994 deletions

View File

@ -72,10 +72,11 @@ private:
int32_t delay;
} 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] = {
// 012345678901234567890123456789
{ 60, "PortaPack Mayhem", 0 },
{ 60, "PortaPack|HAVOC", 0 },
{ 4 * 8, "Version " VERSION_STRING, 16 },
{ 11 * 8, "Gurus J. Boone", 0 },
{ 18 * 8, "M. Ossmann", 16 },
{ 11 * 8, "HAVOC Furrtek", 16 },

File diff suppressed because it is too large Load Diff

View File

@ -513,7 +513,6 @@ void BMPView::focus() {
BMPView::BMPView(NavigationView& nav) {
add_children({
&text_info,
&button_done
});
@ -523,7 +522,7 @@ BMPView::BMPView(NavigationView& nav) {
}
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 ****************************************************/

View File

@ -54,6 +54,8 @@ enum modal_t {
ABORT
};
//#define VERSION_STRING "v1.0.0"; // TODO: Move somewhere else
class NavigationView : public View {
public:
std::function<void(const View&)> on_view_changed { };
@ -109,7 +111,7 @@ public:
void set_title(const std::string new_value);
private:
static constexpr auto default_title = "PortaPack|Havoc";
static constexpr auto default_title = "MAYHEM v1.0.0"; // TODO: Move the version somewhere
NavigationView& nav_;