1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Added VideoWidget to hide implementation details

This commit is contained in:
Ivan Savenko
2024-05-02 22:14:50 +03:00
parent d27b854cb1
commit d08c7b7b8f
20 changed files with 228 additions and 285 deletions

View File

@@ -28,7 +28,7 @@ class CAnimation;
class CButton;
class CFilledTexture;
class CLabel;
class VideoWidget;
// TODO: Find new location for these enums
enum class ESelectionScreen : ui8 {
@@ -48,6 +48,7 @@ class CMenuScreen : public CWindowObject
std::shared_ptr<CTabbedInt> tabs;
std::shared_ptr<CPicture> background;
std::shared_ptr<VideoWidget> videoPlayer;
std::vector<std::shared_ptr<CPicture>> images;
std::shared_ptr<CIntObject> createTab(size_t index);
@@ -57,9 +58,7 @@ public:
CMenuScreen(const JsonNode & configNode);
void show(Canvas & to) override;
void activate() override;
void deactivate() override;
void switchToTab(size_t index);
void switchToTab(std::string name);