mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Minimap, hotkeys and lot of other changes
* Begin working on a new layout system for UIMinimap and later UIMap, this new layout system allows to add widgets to the minimap * Add option to disable motd * Rework hotkey binding * Lots of fixes in hotkeys manager * Add fullmap view using Ctrl+Shift+M * Prevent some crashs in ThingType draw * Add function to load minimap from PNG files * Fixes in minimap saving * Fixes in Tile::isClickable * Add UIMapAnchorLayout, new layout for maps * Fix freezes in win32 when pressing alt key
This commit is contained in:
@@ -164,9 +164,17 @@ void ThingType::draw(const Point& dest, float scaleFactor, int layer, int xPatte
|
||||
if(m_null)
|
||||
return;
|
||||
|
||||
const TexturePtr& texture = getTexture(animationPhase); // texture might not exists, neither its rects.
|
||||
if(animationPhase >= m_animationPhases)
|
||||
return;
|
||||
|
||||
const TexturePtr& texture = getTexture(animationPhase); // texture might not exists, neither its rects.
|
||||
if(!texture)
|
||||
return;
|
||||
|
||||
uint frameIndex = getTextureIndex(layer, xPattern, yPattern, zPattern);
|
||||
if(frameIndex >= m_texturesFramesRects[animationPhase].size())
|
||||
return;
|
||||
|
||||
int frameIndex = getTextureIndex(layer, xPattern, yPattern, zPattern);
|
||||
Point textureOffset;
|
||||
Rect textureRect;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user