mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
Renamed & unified OBJECT_CONSTRUCTION macro set
This commit is contained in:
@ -25,7 +25,7 @@ RadialMenuItem::RadialMenuItem(const std::string & imageName, const std::string
|
||||
: callback(callback)
|
||||
, hoverText(hoverText)
|
||||
{
|
||||
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
|
||||
OBJECT_CONSTRUCTION;
|
||||
|
||||
inactiveImage = std::make_shared<CPicture>(ImagePath::builtin(alternativeLayout ? "radialMenu/itemInactiveAlt" : "radialMenu/itemInactive"), Point(0, 0));
|
||||
selectedImage = std::make_shared<CPicture>(ImagePath::builtin(alternativeLayout ? "radialMenu/itemEmptyAlt" : "radialMenu/itemEmpty"), Point(0, 0));
|
||||
@ -45,7 +45,7 @@ void RadialMenuItem::setSelected(bool selected)
|
||||
RadialMenu::RadialMenu(const Point & positionToCenter, const std::vector<RadialMenuConfig> & menuConfig, bool alternativeLayout):
|
||||
centerPosition(positionToCenter), alternativeLayout(alternativeLayout)
|
||||
{
|
||||
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
|
||||
OBJECT_CONSTRUCTION;
|
||||
pos += positionToCenter;
|
||||
|
||||
Point itemSize = alternativeLayout ? Point(80, 70) : Point(70, 80);
|
||||
|
Reference in New Issue
Block a user