usbloadergx/source/prompts/GameWindow.hpp
dimok321 72d8c9dc2e *Created an automatic resource list generation script which is executed when files are added/removed
*Created an own class for the homebrew prompt
*Created scrollbar class which is now used on every browser
*Created a checkbox browser list class
*Changed the category prompts to the new list mode
*Improved B-Button scrolling
*Fixed horizontal text scrolling
*Fixed possible crash on long text display
*Many internal gui changes and navigation changes
*Fixed booting games by argument (headless id) (Issue 1930)
*Fixed SD Reload button to really reload the SD after it was ejected (Issue 1923)
*Added booting with arguements from meta.xml for homebrews (Issue 1926)
*Added some arguments acception from meta.xml to our app. "-ios=xxx" and "-usbport=x" or "--ios=xxx" and "--usbport=x" can be used. -usbport is for Hermes cIOS to decide which usb port to use on startup. The ios is the boot IOS on startup, it always overrides the compiled boot IOS into the application.
2011-06-14 17:53:19 +00:00

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);
~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