Market fix, and a few other things:

* Added 'button' param to g_mouse.bindPress
* Added 'lower' param to table.contains
* UIComboBox:onOptionChange should signalcall?
* Changed the experience bar color
* Market buy/sell 'amount' window will now show the cost
  of the amount you are selecting
This commit is contained in:
BeniS
2013-02-13 05:14:16 +13:00
parent 8f9055f48b
commit cb42481edd
10 changed files with 65 additions and 52 deletions

View File

@@ -25,9 +25,12 @@ function g_mouse.bindPressMove(widget, callback)
end })
end
function g_mouse.bindPress(widget, callback)
function g_mouse.bindPress(widget, callback, button)
connect(widget, { onMousePress = function(widget, mousePos, mouseButton)
callback(mousePos, mouseButton)
return true
if not button or button == mouseButton then
callback(mousePos, mouseButton)
return true
end
return false
end })
end