Laserlicht 1 年之前
父节点
当前提交
da86a49ea1
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 2
      client/mainmenu/CStatisticScreen.cpp
  2. 3 1
      client/mainmenu/CStatisticScreen.h

+ 2 - 2
client/mainmenu/CStatisticScreen.cpp

@@ -25,8 +25,8 @@
 #include "../../lib/gameState/GameStatistics.h"
 #include "../../lib/texts/CGeneralTextHandler.h"
 
-CStatisticScreen::CStatisticScreen(StatisticDataSet statistic)
-	: CWindowObject(BORDERED)
+CStatisticScreen::CStatisticScreen(StatisticDataSet stat)
+	: CWindowObject(BORDERED), statistic(stat)
 {
 	OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
 	pos = center(Rect(0, 0, 800, 600));

+ 3 - 1
client/mainmenu/CStatisticScreen.h

@@ -18,6 +18,8 @@ class CStatisticScreen : public CWindowObject
 	std::shared_ptr<FilledTexturePlayerColored> filledBackground;
 
 	std::vector<std::shared_ptr<CIntObject>> layout;
+
+	StatisticDataSet statistic;
 public:
-	CStatisticScreen(StatisticDataSet statistic);
+	CStatisticScreen(StatisticDataSet stat);
 };