2008-08-06 03:09:59 +02:00
|
|
|
/****************************************************************************
|
2008-09-12 07:28:40 +02:00
|
|
|
* Snes9x 1.51 Nintendo Wii/Gamecube Port
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
2008-08-14 00:44:59 +02:00
|
|
|
* softdev July 2006
|
|
|
|
* crunchy2 June 2007
|
2008-09-23 06:13:33 +02:00
|
|
|
* Michniewski 2008
|
2008-08-14 00:44:59 +02:00
|
|
|
* Tantric August 2008
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
2008-08-14 00:44:59 +02:00
|
|
|
* menudraw.h
|
|
|
|
*
|
|
|
|
* Menu drawing routines
|
|
|
|
*
|
|
|
|
* Uses libfreetype 2.2.1 compiled for GC with TTF support only.
|
|
|
|
* TTF only reduces the library by some 900k bytes!
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
|
|
|
* **WARNING***
|
|
|
|
*
|
|
|
|
* ONLY USE GUARANTEED PATENT FREE FONTS.
|
2008-09-12 07:28:40 +02:00
|
|
|
***************************************************************************/
|
2008-08-14 00:44:59 +02:00
|
|
|
#ifndef _NGCMENUDRAW_
|
|
|
|
#define _NGCMENUDRAW_
|
|
|
|
|
2009-01-25 08:09:37 +01:00
|
|
|
#include <gccore.h>
|
2008-08-14 00:44:59 +02:00
|
|
|
#include "filesel.h"
|
|
|
|
|
|
|
|
#define PAGESIZE 17 // max item listing on a screen
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
int FT_Init ();
|
|
|
|
void setfontsize (int pixelsize);
|
2008-08-07 05:25:02 +02:00
|
|
|
void setfontcolour (u8 r, u8 g, u8 b);
|
|
|
|
void unpackbackdrop ();
|
|
|
|
void Credits ();
|
|
|
|
void RomInfo ();
|
2008-08-06 03:09:59 +02:00
|
|
|
void WaitButtonA ();
|
2008-12-18 19:36:30 +01:00
|
|
|
int RunMenu (char items[][50], int maxitems, const char *title, int fontsize = 20, int x = -1);
|
|
|
|
void DrawMenu (char items[][50], const char *title, int maxitems, int selected, int fontsize = 20, int x = -1);
|
2008-08-14 00:44:59 +02:00
|
|
|
void ShowCheats (char items[][50], char itemvalues[][50], int maxitems, int offset, int selection);
|
2008-12-30 01:08:17 +01:00
|
|
|
void ShowFiles (BROWSERENTRY * browserList, int maxfiles, int offset, int selection);
|
2008-08-14 00:44:59 +02:00
|
|
|
|
2008-12-18 19:36:30 +01:00
|
|
|
void WaitPrompt (const char *msg);
|
|
|
|
int WaitPromptChoice (const char *msg, const char* bmsg, const char* amsg);
|
|
|
|
void ShowAction (const char *msg);
|
|
|
|
void ShowProgress (const char *msg, int done, int total);
|
2008-08-06 03:09:59 +02:00
|
|
|
void DrawPolygon (int vertices, int *varray, u8 r, u8 g, u8 b);
|
|
|
|
void DrawLineFast( int startx, int endx, int y, u8 r, u8 g, u8 b );
|
|
|
|
|
|
|
|
#endif
|