2013-10-12 20:38:34 +02:00
|
|
|
#ifndef __GUI_H__
|
|
|
|
#define __GUI_H__
|
|
|
|
|
2013-10-18 03:25:17 +02:00
|
|
|
#include <grrlib.h>
|
|
|
|
|
2013-10-12 20:38:34 +02:00
|
|
|
#define HEX_WHITE 0xFFFFFFFF
|
|
|
|
#define HEX_BLACK 0x00000000
|
|
|
|
|
2013-10-18 03:25:17 +02:00
|
|
|
#define CopyBuf() GRRLIB_Screen2Texture(0, 0, tex_ScreenBuf, GX_FALSE)
|
|
|
|
#define DrawBuf() GRRLIB_DrawImg(0, 0, tex_ScreenBuf, 0, 1, 1, HEX_WHITE)
|
|
|
|
#define CheckTime(X,Y) (ticks_to_millisecs(diff_ticks((X), gettick())) > (Y))
|
|
|
|
|
|
|
|
extern GRRLIB_ttfFont *myFont;
|
|
|
|
extern GRRLIB_texImg *tex_background_png;
|
|
|
|
extern GRRLIB_texImg *tex_Checkicon_png;
|
|
|
|
extern GRRLIB_texImg *tex_Deleteicon_png;
|
|
|
|
extern GRRLIB_texImg *tex_Refreshicon_png;
|
|
|
|
extern GRRLIB_texImg *tex_WiiButtonA_png;
|
|
|
|
extern GRRLIB_texImg *tex_WiiButtonHome_png;
|
|
|
|
extern GRRLIB_texImg *tex_WiiButtonMinus_png;
|
|
|
|
extern GRRLIB_texImg *tex_WiiButtonPlus_png;
|
|
|
|
extern GRRLIB_texImg *tex_WiiDpadLeft_png;
|
|
|
|
extern GRRLIB_texImg *tex_WiiDpadRight_png;
|
|
|
|
extern GRRLIB_texImg *tex_loadingbargrey_png;
|
|
|
|
extern GRRLIB_texImg *tex_loadingbarblue_png;
|
|
|
|
extern GRRLIB_texImg *tex_window_png;
|
|
|
|
extern GRRLIB_texImg *tex_Cogs_png[5];
|
|
|
|
extern GRRLIB_texImg *tex_ScreenBuf;
|
|
|
|
|
2013-10-12 20:38:34 +02:00
|
|
|
int initGUI(void);
|
2013-10-18 03:25:17 +02:00
|
|
|
void deinitGUI(void);
|
2013-10-12 20:38:34 +02:00
|
|
|
int printError(const char* msg);
|
|
|
|
int printSuccess(const char* msg);
|
|
|
|
int printLoading(const char* msg);
|
|
|
|
int printSelectIOS(const char* msg, const char* ios);
|
|
|
|
int printLoadingBar(const char* msg, const f32 percent);
|
|
|
|
int printEndSuccess(const char* msg);
|
|
|
|
int printEndError(const char* msg);
|
|
|
|
int printReport(char report[200][100], int firstLine, bool completeReport);
|
|
|
|
int printUploadSuccess(const char* msg);
|
|
|
|
int printUploadError(const char* msg);
|
|
|
|
|
|
|
|
#endif
|