1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Merge pull request #4425 from IvanSavenko/ui_cleanup

Remove old code from UI system
This commit is contained in:
Ivan Savenko
2024-08-12 17:16:03 +03:00
committed by GitHub
85 changed files with 314 additions and 379 deletions

View File

@ -53,7 +53,7 @@ BasicMapView::BasicMapView(const Point & offset, const Point & dimensions)
, tilesCache(new MapViewCache(model))
, controller(new MapViewController(model, tilesCache))
{
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
OBJECT_CONSTRUCTION;
pos += offset;
pos.w = dimensions.x;
pos.h = dimensions.y;
@ -105,7 +105,7 @@ void MapView::show(Canvas & to)
MapView::MapView(const Point & offset, const Point & dimensions)
: BasicMapView(offset, dimensions)
{
OBJ_CONSTRUCTION_CAPTURING_ALL_NO_DISPOSE;
OBJECT_CONSTRUCTION;
actions = std::make_shared<MapViewActions>(*this, model);
actions->setContext(controller->getContext());