usbloadergx/source/prompts/GameWindow.hpp
dimok789 1d598eed90 *change font character texture to I4 which uses half as much memory (less cache memory)
*fix crash on missing <app> tag on meta.xml files
*removed pngu which is not needed, changed screenshot function to use libgd instead
*fix gui freeze after uninstall
*fix resorting of game list after uninstall
*fix bug in aif decoding (fixes some banner sounds)
*fix bug in wav decoding (fixes some banner sounds)
*added new option to force titles from disc header
*changed if "Titles from WiiTDB" is not enabled they will be loaded from directory names if possible (on force from disc that is not tried).
*some language files update
2012-02-29 19:52:36 +00:00

85 lines
1.9 KiB
C++

#ifndef GAMEWINDOW_HPP_
#define GAMEWINDOW_HPP_
#include "GUI/gui.h"
#include "GUI/gui_diskcover.h"
#include "menu/GameBrowseMenu.hpp"
#include "usbloader/disc.h"
#define FAVORITE_STARS 5
class GameWindow : public GuiWindow
{
public:
GameWindow(int GameSelected, struct discHdr *dvd);
virtual ~GameWindow();
int Run();
int GetSelectedGame() { return gameSelected; };
void SetGameBrowseMenu(GameBrowseMenu *m) { browserMenu = m; };
static void BootGame(struct discHdr *header);
protected:
int MainLoop();
void LoadGameSound(const struct discHdr * header);
void LoadDiscImage(const u8 * id);
void SetWindowEffect(int direction, int in_out);
void ChangeGame(int EffectDirection);
void Hide();
void Show();
bool reducedVol;
bool hidden;
int returnVal;
int gameSelected;
GameBrowseMenu *browserMenu;
struct discHdr *dvdheader;
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