mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
4f99dec7c2
Scrolling will now occur if the input is held (not just keyboards anymore!). Initial XML gamelist support. If a file named gamelist.xml is present in the directory ES is run from, it will be parsed and the detailed GuiGameList will be used. Games are matched by absolute path, and a name, description, and image path can be read. PugiXML is used for parsing XML files - its license can be found in src/pugiXML/pugiXML_license.txt. SDL_image is used for loading screenshots with the detailed GuiGameList. Almost all invalid bash characters should be escaped in ROM paths now - including !$^&*()[]<>?;'"\.
23 lines
356 B
C++
23 lines
356 B
C++
#ifndef _GUIIMAGE_H_
|
|
#define _GUIIMAGE_H_
|
|
|
|
#include "../GuiComponent.h"
|
|
#include <SDL/SDL.h>
|
|
#include <string>
|
|
|
|
class GuiImage : public GuiComponent
|
|
{
|
|
public:
|
|
GuiImage(int offsetX = 0, int offsetY = 0, std::string path = "");
|
|
~GuiImage();
|
|
|
|
void setImage(std::string path);
|
|
|
|
void onRender();
|
|
private:
|
|
SDL_Surface* mSurface;
|
|
SDL_Rect mRect;
|
|
};
|
|
|
|
#endif
|