Merge pull request #872 from EgzoT/EgzoT-trade_request_ui

Sending trade request using "UICreatureButton"
master
Henrique Santiago 7 年前 提交者 GitHub
當前提交 4e9e1555f4

@ -386,6 +386,11 @@ function onTradeWith(clickedWidget, mousePosition)
if tile then
g_game.requestTrade(selectedThing, tile:getTopCreature())
end
elseif clickedWidget:getClassName() == 'UICreatureButton' then
local creature = clickedWidget:getCreature()
if creature then
g_game.requestTrade(selectedThing, creature)
end
end
end

載入中…
取消
儲存