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:
Ahmed Samy
2013-08-30 01:54:36 +00:00
parent 3db8f54aa9
commit 56d6ef6642
7 changed files with 37 additions and 0 deletions

View File

@@ -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;