mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 10:21:55 +01:00
72d8c9dc2e
*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.
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
#ifndef GUI_OPTIONBROWSER_H_
|
|
#define GUI_OPTIONBROWSER_H_
|
|
|
|
#include "gui.h"
|
|
#include "gui_scrollbar.hpp"
|
|
#include <vector>
|
|
|
|
//!Display a list of menu options
|
|
class GuiOptionBrowser: public GuiElement, public sigslot::has_slots<>
|
|
{
|
|
public:
|
|
GuiOptionBrowser(int w, int h, OptionList * l, const char * background);
|
|
~GuiOptionBrowser();
|
|
int FindMenuItem(int c, int d);
|
|
int GetClickedOption();
|
|
int GetSelectedOption();
|
|
void SetClickable(bool enable);
|
|
void SetOffset(int optionnumber);
|
|
void ResetState();
|
|
void SetFocus(int f);
|
|
void Draw();
|
|
void Update(GuiTrigger * t);
|
|
protected:
|
|
void onListChange(int SelItem, int SelInd);
|
|
void UpdateListEntries();
|
|
int selectedItem;
|
|
int listOffset;
|
|
int coL2;
|
|
bool scrollbaron;
|
|
bool listChanged;
|
|
|
|
OptionList * options;
|
|
int optionIndex[PAGESIZE];
|
|
GuiButton * optionBtn[PAGESIZE];
|
|
GuiText * optionTxt[PAGESIZE];
|
|
GuiText * optionVal[PAGESIZE];
|
|
GuiText * optionValOver[PAGESIZE];
|
|
GuiImage * optionBg[PAGESIZE];
|
|
|
|
GuiImage * bgOptionsImg;
|
|
|
|
GuiImageData * bgOptions;
|
|
GuiImageData * bgOptionsEntry;
|
|
|
|
GuiTrigger * trigA;
|
|
GuiScrollbar scrollBar;
|
|
};
|
|
|
|
#endif
|