usbloadergx/source/prompts/GameWindow.hpp
dimok321 71d1790f7f *fixed two nasty bugs I added in R1082 preventing every game patch from working (block ios reload with d2x is the only one that still will not work yet. a change for this is upcomming)
*added back rev number to credits
*allow boot of loader when IOS222 or 245-250 is available on the system 
*fixed reload of game list after game rename
2011-05-31 17:16:24 +00:00

79 lines
2.0 KiB
C++

#ifndef GAMEWINDOW_HPP_
#define GAMEWINDOW_HPP_
#include "libwiigui/gui.h"
#include "libwiigui/gui_diskcover.h"
#include "menu/GameBrowseMenu.hpp"
#define FAVORITE_STARS 5
class GameWindow : public GuiWindow
{
public:
GameWindow(int GameSelected);
~GameWindow();
int Show();
int GetSelectedGame() { return gameSelected; };
void SetGameBrowseMenu(GameBrowseMenu *m) { browserMenu = m; };
protected:
int MainLoop();
void LoadGameSound(const u8 * id);
void LoadDiscImage(const u8 * id);
void SetWindowEffect(int direction, int in_out);
void ChangeGame(int EffectDirection);
bool reducedVol;
int returnVal;
int gameSelected;
GameBrowseMenu *browserMenu;
GuiTrigger * trigA;
GuiTrigger * trigB;
GuiTrigger * trigL;
GuiTrigger * trigR;
GuiTrigger * trigPlus;
GuiTrigger * trigMinus;
GuiImageData * diskImgData;
GuiImageData * diskImgData2;
GuiImageData * dialogBox;
GuiImageData * btnOutline;
GuiImageData * imgFavorite;
GuiImageData * imgNotFavorite;
GuiImageData * imgLeft;
GuiImageData * imgRight;
GuiDiskCover * diskImg;
GuiDiskCover * diskImg2;
GuiImage * dialogBoxImg;
GuiImage * backBtnImg;
GuiImage * settingsBtnImg;
GuiImage * btnLeftImg;
GuiImage * btnRightImg;
GuiImage * FavoriteBtnImg[FAVORITE_STARS];
GuiTooltip * nameBtnTT;
GuiText * sizeTxt;
GuiText * playcntTxt;
GuiText * nameTxt;
GuiText * backBtnTxt;
GuiText * settingsBtnTxt;
GuiText * detailsBtnTxt;
GuiText * detailsBtnOverTxt;
GuiButton * nameBtn;
GuiButton * gameBtn;
GuiButton * backBtn;
GuiButton * settingsBtn;
GuiButton * detailsBtn;
GuiButton * btnLeft;
GuiButton * btnRight;
GuiButton * FavoriteBtn[FAVORITE_STARS];
GuiSound * gameSound;
};
#endif