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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user