2009-05-03 20:53:31 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* libwiigui Template
|
|
|
|
* Tantric 2009
|
|
|
|
*
|
|
|
|
* menu.h
|
|
|
|
* Menu flow routines - handles all menu logic
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _MENU_H_
|
|
|
|
#define _MENU_H_
|
|
|
|
|
2009-06-13 02:24:36 +02:00
|
|
|
#include <ogcsys.h>
|
2010-11-06 16:30:14 +01:00
|
|
|
#include "libwiigui/gui.h"
|
2010-09-19 22:25:12 +02:00
|
|
|
#include "settings/CSettings.h"
|
2009-06-05 00:13:39 +02:00
|
|
|
#include "main.h"
|
2009-05-03 20:53:31 +02:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
void InitGUIThreads(void);
|
|
|
|
void ExitGUIThreads(void);
|
2009-06-01 17:50:18 +02:00
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
int MainMenu(int menuitem);
|
2009-07-30 07:41:12 +02:00
|
|
|
|
2010-09-19 01:16:05 +02:00
|
|
|
enum
|
|
|
|
{
|
2009-07-30 07:41:12 +02:00
|
|
|
MENU_EXIT = -1,
|
|
|
|
MENU_NONE,
|
|
|
|
MENU_SETTINGS,
|
|
|
|
MENU_DISCLIST,
|
|
|
|
MENU_INSTALL,
|
|
|
|
MENU_GAME_SETTINGS,
|
|
|
|
MENU_HOMEBREWBROWSE,
|
2009-10-21 21:32:46 +02:00
|
|
|
BOOTHOMEBREW,
|
2011-02-05 15:46:06 +01:00
|
|
|
MENU_THEMEDOWNLOADER,
|
|
|
|
MENU_THEMEMENU,
|
2009-05-03 20:53:31 +02:00
|
|
|
};
|
2010-11-06 16:30:14 +01:00
|
|
|
|
|
|
|
void ResumeGui();
|
|
|
|
void HaltGui();
|
|
|
|
|
|
|
|
extern GuiImageData *pointer[4];
|
|
|
|
extern GuiImageData *background;
|
|
|
|
extern GuiImage *bgImg;
|
|
|
|
extern GuiWindow *mainWindow;
|
|
|
|
extern GuiText *GameRegionTxt;
|
|
|
|
extern GuiText *GameIDTxt;
|
|
|
|
extern GuiImageData *cover;
|
|
|
|
extern GuiImage *coverImg;
|
|
|
|
extern FreeTypeGX *fontSystem;
|
|
|
|
|
2009-05-03 20:53:31 +02:00
|
|
|
#endif
|