Added new stats to the skills module, fixed minor market error.

* Added Offline Training information.
* Added Regeneration Time information.
* Added Speed information.
* Added base stats/skills information (will show the players increase in a skill e.g. magic level 43 = 40 + 3 bonus from an item).
* Fixed the game feature constants in const.lua.
* Fixed a market error when logging out.
* Added removeTooltip function.
This commit is contained in:
BeniS
2012-08-19 13:19:43 +12:00
parent 8222e85abd
commit d237087718
10 changed files with 294 additions and 27 deletions

View File

@@ -467,7 +467,7 @@ local function onSelectSellOffer(table, selectedRow, previousSelectedRow)
if offer then
local price = offer:getPrice()
if price > information.balance then
balanceLabel:setColor('#b22222')
balanceLabel:setColor('#b22222') -- red
buyButton:setEnabled(false)
else
local slice = (information.balance / 2)
@@ -751,7 +751,9 @@ function Market.reset()
categoryList:setCurrentOption(getMarketCategoryName(MarketCategory.First))
searchEdit:setText('')
clearFilters()
Market.updateCurrentItems()
if information and not table.empty(information) then
Market.updateCurrentItems()
end
end
function Market.clearSelectedItem()