|
@@ -53,6 +53,22 @@ public:
|
|
|
BONUS
|
|
|
};
|
|
|
|
|
|
+ class HandicapWindow : public CWindowObject
|
|
|
+ {
|
|
|
+ std::shared_ptr<FilledTexturePlayerColored> backgroundTexture;
|
|
|
+
|
|
|
+ std::vector<std::shared_ptr<CLabel>> labels;
|
|
|
+ std::vector<std::shared_ptr<CAnimImage>> anim;
|
|
|
+ std::vector<std::shared_ptr<TransparentFilledRectangle>> textinputbackgrounds;
|
|
|
+ std::map<PlayerColor, std::map<EGameResID, std::shared_ptr<CTextInput>>> textinputs;
|
|
|
+ std::vector<std::shared_ptr<CButton>> buttons;
|
|
|
+
|
|
|
+ bool receiveEvent(const Point & position, int eventType) const override;
|
|
|
+ void clickReleased(const Point & cursorPosition) override;
|
|
|
+ public:
|
|
|
+ HandicapWindow();
|
|
|
+ };
|
|
|
+
|
|
|
private:
|
|
|
|
|
|
struct CPlayerSettingsHelper
|
|
@@ -161,22 +177,6 @@ private:
|
|
|
SelectionWindow(const PlayerColor & color, SelType _type, int sliderPos = 0);
|
|
|
};
|
|
|
|
|
|
- class HandicapWindow : public CWindowObject
|
|
|
- {
|
|
|
- std::shared_ptr<FilledTexturePlayerColored> backgroundTexture;
|
|
|
-
|
|
|
- std::vector<std::shared_ptr<CLabel>> labels;
|
|
|
- std::vector<std::shared_ptr<CAnimImage>> anim;
|
|
|
- std::vector<std::shared_ptr<TransparentFilledRectangle>> textinputbackgrounds;
|
|
|
- std::map<PlayerColor, std::map<EGameResID, std::shared_ptr<CTextInput>>> textinputs;
|
|
|
- std::vector<std::shared_ptr<CButton>> buttons;
|
|
|
-
|
|
|
- bool receiveEvent(const Point & position, int eventType) const override;
|
|
|
- void clickReleased(const Point & cursorPosition) override;
|
|
|
- public:
|
|
|
- HandicapWindow();
|
|
|
- };
|
|
|
-
|
|
|
/// Image with current town/hero/bonus
|
|
|
struct SelectedBox : public Scrollable, public CPlayerSettingsHelper
|
|
|
{
|