mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-04 09:42:40 +02:00
8ea0ecaec1
- added compatibility method to Canvas to allow SDL_Surface access - added drawBorder method to Canvas to replace CSDL_Ext method - added drawColor method to Canvas to replace CSDL_Ext method - minor changes to Tavern and Trade windows to adapt to new API
41 lines
961 B
C++
41 lines
961 B
C++
/*
|
|
* CPuzzleWindow.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include "CWindowObject.h"
|
|
#include "../../lib/int3.h"
|
|
|
|
class CLabel;
|
|
class CButton;
|
|
class CResDataBar;
|
|
class PuzzleMapView;
|
|
|
|
/// Puzzle screen which gets uncovered when you visit obilisks
|
|
class CPuzzleWindow : public CWindowObject
|
|
{
|
|
private:
|
|
int3 grailPos;
|
|
std::shared_ptr<PuzzleMapView> mapView;
|
|
std::shared_ptr<CPicture> logo;
|
|
std::shared_ptr<CLabel> title;
|
|
std::shared_ptr<CButton> quitb;
|
|
std::shared_ptr<CResDataBar> resDataBar;
|
|
|
|
std::vector<std::shared_ptr<CPicture>> piecesToRemove;
|
|
std::vector<std::shared_ptr<CPicture>> visiblePieces;
|
|
ui8 currentAlpha;
|
|
|
|
public:
|
|
void showAll(Canvas & to) override;
|
|
void show(Canvas & to) override;
|
|
|
|
CPuzzleWindow(const int3 & grailPos, double discoveredRatio);
|
|
};
|