Pt translations, uicombobox, options

This commit is contained in:
Henrique Santiago
2013-02-01 14:31:24 -02:00
parent 6cd71ea02e
commit db73bbdea2
3 changed files with 16 additions and 3 deletions

View File

@@ -116,6 +116,16 @@ function UIComboBox:onStyleApply(styleName, styleNode)
self:addOption(option)
end
end
if styleNode.data then
for k,data in pairs(styleNode.data) do
local option = self.options[k]
if option then
option.data = data
end
end
end
for name,value in pairs(styleNode) do
if name == 'mouse-scroll' then
self.mouseScroll = value