make tui bigger but within 80x24

This commit is contained in:
Nick Chan committed 2023-02-05 02:42:12 +08:00
1 parent c2a452d3b1
commit 5f5210b08d
5 files changed
+36 -12

No files matched your search

+5 -4
View File
@@ -15,10 +15,10 @@
tui_screen_t tui_screen_main() {
int ret = MAIN_SCREEN;
bool can_start = false;
newtCenteredWindow(60, 16, "palera1n version 2.0.0");
newtComponent optionsButton = newtCompactButton(30, 14, "Options");
newtComponent startButton = newtCompactButton(41, 14, "Start");
newtComponent exitButton = newtCompactButton(50, 14, "Exit");
newtCenteredWindow(WIDTH, HEIGHT, "palera1n version 2.0.0");
newtComponent optionsButton = newtCompactButton(46, 17, "Options");
newtComponent startButton = newtCompactButton(57, 17, "Start");
newtComponent exitButton = newtCompactButton(66, 17, "Exit");
newtComponent welcome = newtLabel(1, 0, "Welcome to palera1n!");
newtComponent form = newtForm(NULL, NULL, 0);
newtFormAddComponents(form, optionsButton, startButton, exitButton, welcome, NULL);
@@ -35,5 +35,6 @@ tui_screen_t tui_screen_main() {
} else if (buttonPressed == exitButton) {
ret = EXIT_SCREEN;
}
newtFormDestroy(form);
return ret;
}