mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-10-02 03:35:09 +02:00
798ebc188d
*Corrected Screensaver appearance on startup after 30sec of unconnected WiiMote *Complete rewrite of theme downloader. (Downloading themes is not working currently because Deak Phreak changed something on wii.spiffy360.com. He said it's going to be changed back soon) *Added possibility to load theme images from a folder with the same name as the .them file. The "Image-Folder: Example\n" from the .them file is prioritized. *Updated some language files. (Translators please redownload the files from SVN. Many files had a lot of errors in them)
29 lines
855 B
C++
29 lines
855 B
C++
#ifndef _THEME_DOWNLOADER_H_
|
|
#define _THEME_DOWNLOADER_H_
|
|
|
|
#include "settings/menus/FlyingButtonsMenu.hpp"
|
|
#include "themes/Theme_List.h"
|
|
|
|
class ThemeDownloader : public FlyingButtonsMenu
|
|
{
|
|
public:
|
|
ThemeDownloader();
|
|
~ThemeDownloader();
|
|
static int Run();
|
|
protected:
|
|
void CreateSettingsMenu(int index) { MainButtonClicked(index); };
|
|
void MainButtonClicked(int button);
|
|
void AddMainButtons();
|
|
void SetupMainButtons();
|
|
void SetMainButton(int position, const char * ButtonText, GuiImageData * imageData, GuiImageData * imageOver);
|
|
GuiImageData * GetImageData(int theme);
|
|
int DownloadTheme(const char *url, const char *title);
|
|
|
|
Theme_List * ThemeList;
|
|
GuiText * urlTxt;
|
|
GuiImageData * ThemePreviews[4];
|
|
std::string ThemeListURL;
|
|
};
|
|
|
|
#endif
|