1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

extended statistic: Window

This commit is contained in:
Laserlicht
2024-08-11 22:44:16 +02:00
parent f42f1de347
commit 299ee35c48
7 changed files with 70 additions and 5 deletions

View File

@@ -0,0 +1,34 @@
/*
* CStatisticScreen.cpp, 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
*
*/
#include "StdInc.h"
#include "CStatisticScreen.h"
#include "../gui/CGuiHandler.h"
#include "../gui/WindowHandler.h"
#include "../widgets/Images.h"
#include "../../lib/gameState/GameStatistics.h"
CStatisticScreen::CStatisticScreen(StatisticDataSet statistic)
: CWindowObject(BORDERED)
{
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
pos = center(Rect(0, 0, 800, 600));
filledBackground = std::make_shared<FilledTexturePlayerColored>(ImagePath::builtin("DiBoxBck"), Rect(0, 0, pos.w, pos.h));
addUsedEvents(LCLICK);
}
void CStatisticScreen::clickPressed(const Point & cursorPosition)
{
close();
}