mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Introduce 4 new functions:
- g_map.beginGhostMode(float opacity) - g_map.endGhostMode() - UIMap::movePixels(int x, int y) - MapView::move(int x, int y)
This commit is contained in:
@@ -365,6 +365,16 @@ void Map::setZoneColor(tileflags_t zone, const Color& color)
|
||||
m_zoneColors[zone] = color;
|
||||
}
|
||||
|
||||
void Map::beginGhostMode(float opacity)
|
||||
{
|
||||
g_painter->setOpacity(opacity);
|
||||
}
|
||||
|
||||
void Map::endGhostMode()
|
||||
{
|
||||
g_painter->resetOpacity();
|
||||
}
|
||||
|
||||
void Map::addCreature(const CreaturePtr& creature)
|
||||
{
|
||||
m_knownCreatures[creature->getId()] = creature;
|
||||
|
||||
Reference in New Issue
Block a user