fceugx/source/ngc/menudraw.h

40 lines
1.3 KiB
C
Raw Normal View History

2008-09-02 03:57:21 +02:00
/****************************************************************************
* FCE Ultra 0.98.12
* Nintendo Wii/Gamecube Port
*
* Tantric September 2008
*
* menudraw.h
*
* Menu drawing routines
****************************************************************************/
#ifndef _MENUDRAW_H_
#define _MENUDRAW_H_
2009-01-25 08:09:11 +01:00
#include <gccore.h>
2008-09-02 03:57:21 +02:00
#include "filesel.h"
#define PAGESIZE 13 // max item listing on a screen
int FT_Init ();
void setfontsize (int pixelsize);
void setfontcolour (u8 r, u8 g, u8 b);
void DrawText (int x, int y, const char *text);
2008-09-02 03:57:21 +02:00
void Credits ();
void RomInfo ();
void WaitButtonA ();
int RunMenu (char items[][50], int maxitems, const char *title, int fontsize, int x);
void DrawMenu (char items[][50], const char *title, int maxitems, int selected, int fontsize, int x);
2008-09-02 03:57:21 +02:00
void ShowCheats (char items[][50], char itemvalues[][50], int maxitems, int offset, int selection);
void ShowFiles (BROWSERENTRY * browserList, int maxfiles, int offset, int selection);
2008-09-02 03:57:21 +02: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-09-02 03:57:21 +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);
2008-09-02 03:57:21 +02:00
#endif