mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Large refactoring of button classes:
- renamed CAdventureMapButton to more expectable CButton - merged CButtonBase into CButton - created more generic class for clickable elements - created more generic class for selectable elements - renamed CHighlightableButton to CToggleButton - renamed CHighlightableButtonsGrous to CToggleGroup - minimized differences between API of all these classes - removed all but one contructors in buttons, with same parameters across all classes
This commit is contained in:
@@ -14,7 +14,7 @@ class CComponent;
|
||||
class CSelectableComponent;
|
||||
class CGGarrison;
|
||||
class CTextBox;
|
||||
class CAdventureMapButton;
|
||||
class CButton;
|
||||
class CSlider;
|
||||
|
||||
/*
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
typedef std::vector<CComponent*> TCompsInfo;
|
||||
QueryID ID; //for identification
|
||||
CTextBox *text;
|
||||
std::vector<CAdventureMapButton *> buttons;
|
||||
std::vector<CButton *> buttons;
|
||||
std::vector<CComponent*> components;
|
||||
CSlider *slider;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user