- Create UI header with menu structures - Implement screen clearing and title display - Add message printing functionality - Foundation for menu-driven interface
27 lines
No EOL
827 B
C
27 lines
No EOL
827 B
C
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <switch.h>
|
|
#include "ui_basic.h"
|
|
|
|
void initUI() {
|
|
printf("\x1b[2J"); // Clear screen
|
|
printf("\x1b[1;1H"); // Move cursor to top-left
|
|
printf("═══════════════════════════════════════\n");
|
|
printf(" BOTW Completer v0.3\n");
|
|
printf("═══════════════════════════════════════\n");
|
|
printf("\n");
|
|
}
|
|
|
|
void printMessage(const char* message, ...) {
|
|
va_list args;
|
|
va_start(args, message);
|
|
vprintf(message, args);
|
|
va_end(args);
|
|
}
|
|
|
|
bool handleButtonPress(u64 button) {
|
|
if (button & HidNpadButton_Plus) {
|
|
return true; // Exit requested
|
|
}
|
|
return false; // Continue running
|
|
} |