1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Rework drawing objects and fix drawing locked objects

This commit is contained in:
Opuszek
2025-10-15 23:55:08 +02:00
parent e81d5bc973
commit 040362a111
3 changed files with 39 additions and 52 deletions

View File

@@ -111,8 +111,8 @@ public:
std::set<int3> addObject(const CGObjectInstance * object);
/// draws all objects on current tile (higher-level logic, unlike other draw*** methods)
void drawObjects(QPainter & painter, int x, int y, int z, QPointF offset, const std::set<const CGObjectInstance *> & locked);
void drawObjectAt(QPainter & painter, const CGObjectInstance * object, int x, int y, QPointF offset);
void drawObjects(QPainter & painter, const QRectF & section, int z, std::set<const CGObjectInstance *> & locked);
void drawObjectAt(QPainter & painter, const CGObjectInstance * object, int x, int y, QPointF offset, bool locked = false);
void drawMinimapTile(QPainter & painter, int x, int y, int z);