mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
973d8b2005
*Converted every 4 spaces to a tab to make the source consistent on those
79 lines
1.7 KiB
C++
79 lines
1.7 KiB
C++
#ifndef GAMEWINDOW_HPP_
|
|
#define GAMEWINDOW_HPP_
|
|
|
|
#include "GUI/gui.h"
|
|
#include "GUI/gui_diskcover.h"
|
|
#include "menu/GameBrowseMenu.hpp"
|
|
|
|
#define FAVORITE_STARS 5
|
|
|
|
class GameWindow : public GuiWindow
|
|
{
|
|
public:
|
|
GameWindow(int GameSelected);
|
|
virtual ~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
|