Some small fixes.
This commit is contained in:
parent
52f81c53f9
commit
1281b04a6a
|
@ -128,7 +128,7 @@ function UITable:addRow(data, ref, height)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local row = g_ui.createWidget(self.rowBaseStyle, self.dataSpace)
|
local row = g_ui.createWidget(self.rowBaseStyle)
|
||||||
if ref then row.ref = ref end
|
if ref then row.ref = ref end
|
||||||
if height then row:setHeight(height) end
|
if height then row:setHeight(height) end
|
||||||
|
|
||||||
|
@ -152,6 +152,8 @@ function UITable:addRow(data, ref, height)
|
||||||
row.onFocusChange = function(row, focused)
|
row.onFocusChange = function(row, focused)
|
||||||
if focused then self:selectRow(row) end
|
if focused then self:selectRow(row) end
|
||||||
end
|
end
|
||||||
|
self.dataSpace:addChild(row)
|
||||||
|
|
||||||
table.insert(self.rows, row)
|
table.insert(self.rows, row)
|
||||||
return row
|
return row
|
||||||
end
|
end
|
||||||
|
|
|
@ -740,7 +740,6 @@ function Market.clearSelectedItem()
|
||||||
clearOffers()
|
clearOffers()
|
||||||
radioItemSet:selectWidget(nil)
|
radioItemSet:selectWidget(nil)
|
||||||
nameLabel:setText('No item selected.')
|
nameLabel:setText('No item selected.')
|
||||||
|
|
||||||
selectedItem:setItem(nil)
|
selectedItem:setItem(nil)
|
||||||
|
|
||||||
detailsTable:clearData()
|
detailsTable:clearData()
|
||||||
|
|
|
@ -150,7 +150,7 @@ function destroy()
|
||||||
currentColorBox = nil
|
currentColorBox = nil
|
||||||
currentClotheButtonBox = nil
|
currentClotheButtonBox = nil
|
||||||
colorBoxes = {}
|
colorBoxes = {}
|
||||||
addons = nil
|
addons = {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue