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:
34
client/mainmenu/CStatisticScreen.cpp
Normal file
34
client/mainmenu/CStatisticScreen.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user