2012-01-22 00:43:54 +00:00
|
|
|
#ifndef _MENU_XUI_H_
|
|
|
|
#define _MENU_XUI_H_
|
|
|
|
|
|
|
|
#include <xui.h>
|
|
|
|
#include <xuiapp.h>
|
|
|
|
|
|
|
|
class CSSNES : public CXuiModule
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
/* Override so that Cssnes can register classes */
|
|
|
|
virtual HRESULT RegisterXuiClasses();
|
|
|
|
/* Override so that Cssnes can unregister classes */
|
|
|
|
virtual HRESULT UnregisterXuiClasses();
|
|
|
|
};
|
|
|
|
|
2012-01-24 05:55:27 +00:00
|
|
|
class CSSNESMain: public CXuiSceneImpl
|
2012-01-22 00:43:54 +00:00
|
|
|
{
|
2012-01-23 23:02:02 +00:00
|
|
|
protected:
|
|
|
|
CXuiControl m_filebrowser;
|
2012-01-23 23:29:03 +00:00
|
|
|
CXuiControl m_settings;
|
2012-01-23 23:02:02 +00:00
|
|
|
CXuiControl m_quit;
|
2012-01-23 23:29:03 +00:00
|
|
|
CXuiTextElement m_title;
|
2012-01-24 05:11:01 +00:00
|
|
|
CXuiTextElement m_core;
|
2012-01-22 00:43:54 +00:00
|
|
|
public:
|
2012-01-23 23:02:02 +00:00
|
|
|
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
|
2012-01-23 23:29:03 +00:00
|
|
|
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
|
2012-01-23 23:02:02 +00:00
|
|
|
|
|
|
|
XUI_BEGIN_MSG_MAP()
|
|
|
|
XUI_ON_XM_INIT( OnInit)
|
|
|
|
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
|
|
|
|
XUI_END_MSG_MAP();
|
|
|
|
|
2012-01-24 05:55:27 +00:00
|
|
|
XUI_IMPLEMENT_CLASS(CSSNESMain, L"SSNESMain", XUI_CLASS_SCENE)
|
|
|
|
};
|
|
|
|
|
2012-02-04 19:33:51 +00:00
|
|
|
class CSSNESFileBrowser: public CXuiSceneImpl
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
CXuiList m_romlist;
|
2012-02-04 22:40:11 +00:00
|
|
|
CXuiTextElement m_rompathtitle;
|
2012-02-04 19:33:51 +00:00
|
|
|
public:
|
|
|
|
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
|
|
|
|
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
|
|
|
|
|
|
|
|
XUI_BEGIN_MSG_MAP()
|
|
|
|
XUI_ON_XM_INIT( OnInit)
|
|
|
|
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
|
|
|
|
XUI_END_MSG_MAP();
|
|
|
|
|
|
|
|
XUI_IMPLEMENT_CLASS(CSSNESFileBrowser, L"SSNESFileBrowser", XUI_CLASS_SCENE)
|
|
|
|
};
|
|
|
|
|
2012-01-24 05:55:27 +00:00
|
|
|
class CSSNESSettings: public CXuiSceneImpl
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
CXuiControl m_rewind;
|
2012-02-03 10:32:31 +00:00
|
|
|
CXuiCheckbox m_rewind_cb;
|
|
|
|
CXuiControl m_back;
|
2012-01-24 05:55:27 +00:00
|
|
|
public:
|
|
|
|
HRESULT OnInit( XUIMessageInit* pInitData, BOOL& bHandled );
|
|
|
|
HRESULT OnNotifyPress( HXUIOBJ hObjPressed, BOOL& bHandled );
|
|
|
|
|
|
|
|
XUI_BEGIN_MSG_MAP()
|
|
|
|
XUI_ON_XM_INIT( OnInit)
|
|
|
|
XUI_ON_XM_NOTIFY_PRESS( OnNotifyPress )
|
|
|
|
XUI_END_MSG_MAP();
|
|
|
|
|
2012-01-25 06:19:07 +00:00
|
|
|
XUI_IMPLEMENT_CLASS(CSSNESSettings, L"SSNESSettings", XUI_CLASS_TABSCENE)
|
2012-01-22 00:43:54 +00:00
|
|
|
};
|
|
|
|
|
2012-01-22 21:45:32 +00:00
|
|
|
int menu_init (void);
|
|
|
|
void menu_loop (void);
|
2012-01-22 20:47:34 +00:00
|
|
|
|
|
|
|
extern CSSNES app;
|
2012-01-22 00:43:54 +00:00
|
|
|
|
|
|
|
#endif
|