mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
0f4eb6b209
*added saving of game browser position (on all modes) *several cleanups and small fixes *added a "Block Category Menu" setting *fixed bug with parental block and game settings (thanks NJ7 for finding it) *fixed "All" not being translated in category menu
79 lines
2.0 KiB
C++
79 lines
2.0 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
|