Changes to Combobox

This commit is contained in:
Henrique Santiago 2012-08-05 12:54:23 -03:00
parent 26c196cdb0
commit 14085a525b
3 changed files with 7 additions and 6 deletions

View File

@ -55,6 +55,7 @@ function Locales.init()
addEvent( function()
localeComboBox = g_ui.createWidget('ComboBox', rootWidget:recursiveGetChildById('rightButtonsPanel'))
localeComboBox:setFixedSize(true)
for key,value in pairs(installedLocales) do
localeComboBox:addOption(value.languageName, value.name)
end

View File

@ -41,6 +41,7 @@ function Skins.init()
addEvent( function()
skinComboBox = g_ui.createWidget('ComboBox', rootWidget:recursiveGetChildById('rightButtonsPanel'))
skinComboBox:setFixedSize(true)
for key,value in pairs(installedSkins) do
skinComboBox:addOption(value.name)
end

View File

@ -1,8 +1,8 @@
ComboBoxPopupMenuButton < UIButton
height: 18
height: 20
font: verdana-11px-antialised
text-align: left
text-offset: 2 0
text-offset: 4 0
color: #aaaaaa
background-color: alpha
@ -23,14 +23,13 @@ ComboBoxPopupMenuSeparator < UIWidget
ComboBoxPopupMenu < UIPopupMenu
image-source: /images/combobox_square.png
image-clip: 0 60 89 20
image-border: 1
image-border-top: 0
padding: 1
image-border-left: 1
image-border-right: 1
ComboBox < UIComboBox
font: verdana-11px-antialised
color: #aaaaaa
size: 86 20
size: 89 20
text-offset: 3 0
text-align: left
image-source: /images/combobox_square.png