TradePage Class

Inherits: BuildingPage

addItem
function addItem(combobox, text, resName)

checkDealValid
function checkDealValid

checkSpinnerValue
function checkSpinnerValue(spinner)

clearCombobox
function clearCombobox(combobox)

getRates
function getRates

init
function init(building)

onBuyComboChange
function onBuyComboChange

onBuyCountChange
function onBuyCountChange

onListHidden
function onListHidden(args)

onListShown
function onListShown(args)

onOkClick
function onOkClick

onSellComboChange
function onSellComboChange

onSellCountChange
function onSellCountChange

onSellListShown
function onSellListShown

recalcBuyCount
function recalcBuyCount

recalcSellCount
function recalcSellCount

refreshBuyList
function refreshBuyList

refreshInventory
function refreshInventory

refreshOkButton
function refreshOkButton

refreshSellList
function refreshSellList

setImage
function setImage(combobox, image)

setSpinnerValue
function setSpinnerValue(spinner, value)

update
function update(dt)

updateResName
function updateResName(combobox)