mirror of
https://github.com/modmii/SysCheck-ModMii-Edition.git
synced 2024-11-16 13:19:22 +01:00
bd0c05ee6b
-Added support for the new vWii System Menu's -I've got the beginnings of animation going. I still need to work on making it smooth -Fixed the ridiculous bug (possibly intentional?) where the System Menu region is defined by setting.txt, not by what's installed. -Some minor optimizations TODO: -Make those cogs turn smoothly, and possibly touch up the gfx. -Do some SERIOUS code cleanup. Just go through that source with some bleach and scrub
44 lines
1.5 KiB
C
44 lines
1.5 KiB
C
#ifndef __GUI_H__
|
|
#define __GUI_H__
|
|
|
|
#include <grrlib.h>
|
|
|
|
#define HEX_WHITE 0xFFFFFFFF
|
|
#define HEX_BLACK 0x00000000
|
|
|
|
#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;
|
|
|
|
int initGUI(void);
|
|
void deinitGUI(void);
|
|
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);
|
|
void DrawCog(void);
|
|
|
|
#endif |