mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-13 23:15:09 +01:00
a66a30a771
*added support to control screen pointer with gc pad or classic controller. you are always able to control as long as the corresponding wii control does not point to the screen (e.g. wiimote 1 not pointing to screen -> gcpad/classic controller 1 can control pointer 1). a speed factor is added to the gui option. need feedback about a proper default value, currently 15% (only tested gc pad on dolphin-emu) *fix reinit of cheatcount on download of new file *moved installation window to be on top of main window *added game installation cancel *added nand extract cancel *added back extract of save feature for a real nand channels *added auto position of progress window messages in vertical direction depending of how many are used at the same time
41 lines
882 B
C++
41 lines
882 B
C++
#ifndef GUI_FILEBROWSER_H_
|
|
#define GUI_FILEBROWSER_H_
|
|
|
|
#include "gui.h"
|
|
#include "gui_scrollbar.hpp"
|
|
|
|
//!Display a list of files
|
|
class GuiFileBrowser: public GuiElement, public sigslot::has_slots<>
|
|
{
|
|
public:
|
|
GuiFileBrowser(int w, int h);
|
|
virtual ~GuiFileBrowser();
|
|
void DisableTriggerUpdate(bool set);
|
|
void ResetState();
|
|
void Draw();
|
|
void UpdateList();
|
|
void Update(GuiTrigger * t);
|
|
GuiButton * fileList[PAGESIZE];
|
|
protected:
|
|
void onListChange(int SelItem, int SelInd);
|
|
int selectedItem;
|
|
bool triggerdisabled;
|
|
|
|
GuiText * fileListText[PAGESIZE];
|
|
GuiText * fileListTextOver[PAGESIZE];
|
|
GuiImage * fileListBg[PAGESIZE];
|
|
GuiImage * fileListFolder[PAGESIZE];
|
|
|
|
GuiImage * bgFileSelectionImg;
|
|
|
|
GuiImageData * bgFileSelection;
|
|
GuiImageData * bgFileSelectionEntry;
|
|
GuiImageData * fileFolder;
|
|
|
|
GuiTrigger * trigA;
|
|
GuiScrollbar scrollBar;
|
|
};
|
|
|
|
|
|
#endif
|