usbloadergx/source/prompts/GameWindow.hpp
dimok321 d52b7e0ac3 *Fixed little bug which prevented loading games from sub folders on fat/ntfs/ext
*Added a "Details" button on the GameWindowPrompt which calls the game info window
*Added a cache titles setting. You can disable caching titles with that. Also when re-enabling this option the cache file is newly generated. This is there so it is possible to reset a false cached title without having to delete the "TitlesCache.bin"
*Added button 2 on zoom mode of 3D Boxes to rotate the box fast by 180°
*Increased speed for box rotating with WiiMote D-Pad
2011-02-12 09:50:35 +00:00

76 lines
1.9 KiB
C++

#ifndef GAMEWINDOW_HPP_
#define GAMEWINDOW_HPP_
#include "libwiigui/gui.h"
#include "libwiigui/gui_diskcover.h"
#define FAVORITE_STARS 5
class GameWindow : public GuiWindow
{
public:
GameWindow(int GameSelected);
~GameWindow();
int Show();
int GetSelectedGame() { return gameSelected; };
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;
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