Newer
Older
uwuboot / include / arm9 / ui.h
@profi200 profi200 on 15 May 2017 1 KB Little adjustment in ui.h.
#pragma once

#include "arm9/console.h"
#include "hid.h"

#define uiPrintInfo(format, ...)    uiPrintCentered(format, 0, ##__VA_ARGS__)
#define uiPrintWarning(format, ...) uiPrintCentered(format, 33, ##__VA_ARGS__)
#define uiPrintError(format, ...)   uiPrintCentered(format, 31, ##__VA_ARGS__)


// PrintConsole for each screen
PrintConsole con_top, con_bottom;

void uiInit();
void uiDrawSplashScreen();
void uiClearConsoles();
void clearConsole(int which);
void uiSetVerbose(bool verb);
bool uiDialogYesNo(const char *text, const char *textYes, const char *textNo);
void uiPrintIfVerbose(const char *const format, ...);
void uiPrintCentered(const char *const format, unsigned int color, ...);
void uiPrintCenteredInLine(unsigned int y, const char *const format, ...);
void uiPrintTextAt(unsigned int x, unsigned int y, const char *const format, ...);
//void uiShowMessageWindow(format, args...);
void uiPrintProgressBar(unsigned int x, unsigned int y, unsigned int w,
                        unsigned int h, unsigned int cur, unsigned int max);