Added 944 to protocol support, minor market fix.
* Items board is now update correctly on entering market.
This commit is contained in:
parent
c4c29be272
commit
4793908657
|
@ -749,6 +749,7 @@ end
|
||||||
function Market.reset()
|
function Market.reset()
|
||||||
balanceLabel:setColor('#bbbbbb')
|
balanceLabel:setColor('#bbbbbb')
|
||||||
categoryList:setCurrentOption(getMarketCategoryName(MarketCategory.First))
|
categoryList:setCurrentOption(getMarketCategoryName(MarketCategory.First))
|
||||||
|
searchEdit:setText('')
|
||||||
clearFilters()
|
clearFilters()
|
||||||
Market.updateCurrentItems()
|
Market.updateCurrentItems()
|
||||||
end
|
end
|
||||||
|
@ -1071,6 +1072,8 @@ function Market.onMarketEnter(depotItems, offers, balance, vocation)
|
||||||
MarketProtocol.silent(true) -- disable protocol messages
|
MarketProtocol.silent(true) -- disable protocol messages
|
||||||
Market.refreshItemsWidget(spriteId)
|
Market.refreshItemsWidget(spriteId)
|
||||||
MarketProtocol.silent(false) -- enable protocol messages
|
MarketProtocol.silent(false) -- enable protocol messages
|
||||||
|
else
|
||||||
|
Market.refreshItemsWidget()
|
||||||
end
|
end
|
||||||
|
|
||||||
if table.empty(currentItems) then
|
if table.empty(currentItems) then
|
||||||
|
|
|
@ -49,7 +49,7 @@ end
|
||||||
function g_game.getSupportedProtocols()
|
function g_game.getSupportedProtocols()
|
||||||
return {
|
return {
|
||||||
810, 853, 854, 860, 861, 862, 870, 940,
|
810, 853, 854, 860, 861, 862, 870, 940,
|
||||||
953, 954, 960, 961
|
944, 953, 954, 960, 961
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue