1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

possiblity to set custom sizes with last button

This commit is contained in:
Laserlicht
2025-11-13 02:14:42 +01:00
parent d0273ae0ab
commit 9eae52574b
4 changed files with 96 additions and 10 deletions

View File

@@ -27,6 +27,8 @@ class CLabel;
class CLabelGroup;
class CSlider;
class CPicture;
class CTextInput;
class TransparentFilledRectangle;
class RandomMapTab : public InterfaceObjectConfigurable
{
@@ -81,3 +83,15 @@ class TeamAlignments: public CWindowObject
public:
TeamAlignments(RandomMapTab & randomMapTab);
};
class SetSizeWindow: public CWindowObject
{
std::shared_ptr<FilledTexturePlayerColored> background;
std::vector<std::shared_ptr<CLabel>> titles;
std::shared_ptr<CButton> buttonOk;
std::vector<std::shared_ptr<CTextInput>> numInputs;
std::vector<std::shared_ptr<TransparentFilledRectangle>> rectangles;
public:
SetSizeWindow(int3 initSize, std::function<void(int3)> cb);
};