non relevant changes
This commit is contained in:
parent
fa3b9fd125
commit
b50cb35734
|
@ -24,3 +24,4 @@ UIGame
|
|||
anchors.right: rightPanel.left
|
||||
anchors.top: parent.top
|
||||
anchors.bottom: bottomPanel.top
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ bool UIMap::onMousePress(const Point& mousePos, Fw::MouseButton button)
|
|||
Position tilePos = Position(1 + (int)tilePosF.x - Map::PLAYER_OFFSET_X, 1 + (int)tilePosF.y - Map::PLAYER_OFFSET_Y, 0) + g_map.getCentralPosition();
|
||||
|
||||
TilePtr tile = g_map.getTile(tilePos);
|
||||
if(tile)
|
||||
tile->useItem();
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@ public:
|
|||
|
||||
protected:
|
||||
virtual void onStyleApply(const OTMLNodePtr& styleNode);
|
||||
|
||||
virtual bool onMousePress(const Point& mousePos, Fw::MouseButton button);
|
||||
virtual void onGeometryUpdate(const Rect& oldRect, const Rect& newRect);
|
||||
|
||||
|
|
Loading…
Reference in New Issue