2021-06-14 17:15:22 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//
|
|
|
|
// EmulationStation Desktop Edition
|
|
|
|
// GuiLaunchScreen.h
|
|
|
|
//
|
|
|
|
// Screen shown when launching a game.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef ES_APP_GUIS_GUI_LAUNCH_SCREEN_H
|
|
|
|
#define ES_APP_GUIS_GUI_LAUNCH_SCREEN_H
|
|
|
|
|
2021-07-07 18:03:42 +00:00
|
|
|
#include "GuiComponent.h"
|
|
|
|
#include "Window.h"
|
2021-06-14 17:15:22 +00:00
|
|
|
#include "components/ComponentGrid.h"
|
|
|
|
#include "components/ImageComponent.h"
|
|
|
|
#include "components/NinePatchComponent.h"
|
|
|
|
#include "components/TextComponent.h"
|
|
|
|
|
|
|
|
class FileData;
|
|
|
|
|
|
|
|
class GuiLaunchScreen : public Window::GuiLaunchScreen, GuiComponent
|
|
|
|
{
|
|
|
|
public:
|
2022-01-04 20:21:26 +00:00
|
|
|
GuiLaunchScreen();
|
2021-06-14 17:15:22 +00:00
|
|
|
virtual ~GuiLaunchScreen();
|
|
|
|
|
2022-01-18 16:40:47 +00:00
|
|
|
void displayLaunchScreen(FileData* game) override;
|
|
|
|
void closeLaunchScreen() override;
|
2021-06-14 17:15:22 +00:00
|
|
|
|
|
|
|
void onSizeChanged() override;
|
|
|
|
|
2022-01-18 16:40:47 +00:00
|
|
|
void update(int deltaTime) override;
|
|
|
|
void render(const glm::mat4& parentTrans) override;
|
2021-06-14 17:15:22 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
NinePatchComponent mBackground;
|
2021-09-18 07:53:26 +00:00
|
|
|
ComponentGrid* mGrid;
|
2021-06-14 17:15:22 +00:00
|
|
|
|
|
|
|
std::shared_ptr<TextComponent> mTitle;
|
|
|
|
std::shared_ptr<TextComponent> mGameName;
|
|
|
|
std::shared_ptr<TextComponent> mSystemName;
|
|
|
|
|
|
|
|
ImageComponent* mMarquee;
|
|
|
|
std::string mImagePath;
|
|
|
|
|
|
|
|
float mScaleUp;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ES_APP_GUIS_GUI_LAUNCH_SCREEN_H
|