mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +01:00
74181ae5bc
*Change in nand title search (fixed bug which can find wrong nand title and set it as return to) *Fixed bug when a wiimote leaves the game list choice and returns to it without going over another game that game was not clickable (Issue 1918) *Changed search bar to clear text on [X] button click. search bar is now closed by pressing B
42 lines
854 B
C++
42 lines
854 B
C++
#ifndef GUI_SEARCHBAR_H_
|
|
#define GUI_SEARCHBAR_H_
|
|
#include "gui.h"
|
|
|
|
class cSearchButton;
|
|
|
|
class GuiSearchBar: public GuiWindow
|
|
{
|
|
public:
|
|
GuiSearchBar(const wchar_t *SearchChars);
|
|
~GuiSearchBar();
|
|
void Draw();
|
|
void Update(GuiTrigger * t);
|
|
wchar_t GetClicked();
|
|
private:
|
|
u16 inSide;
|
|
|
|
GuiText text;
|
|
|
|
GuiImageData* imgBacspaceBtn;
|
|
GuiImage* BacspaceBtnImg;
|
|
GuiImage* BacspaceBtnImg_Over;
|
|
GuiButton* BacspaceBtn;
|
|
|
|
GuiImageData* imgClearBtn;
|
|
GuiImage* ClearBtnImg;
|
|
GuiImage* ClearBtnImg_Over;
|
|
GuiButton* ClearBtn;
|
|
|
|
GuiButton* CloseBtn;
|
|
|
|
cSearchButton **buttons;
|
|
int cnt;
|
|
GuiImageData keyImageData;
|
|
GuiImageData keyOverImageData;
|
|
GuiTrigger trig;
|
|
GuiTrigger trigB;
|
|
|
|
};
|
|
|
|
#endif
|