Changes to Combobox
This commit is contained in:
parent
26c196cdb0
commit
14085a525b
|
@ -55,6 +55,7 @@ function Locales.init()
|
||||||
|
|
||||||
addEvent( function()
|
addEvent( function()
|
||||||
localeComboBox = g_ui.createWidget('ComboBox', rootWidget:recursiveGetChildById('rightButtonsPanel'))
|
localeComboBox = g_ui.createWidget('ComboBox', rootWidget:recursiveGetChildById('rightButtonsPanel'))
|
||||||
|
localeComboBox:setFixedSize(true)
|
||||||
for key,value in pairs(installedLocales) do
|
for key,value in pairs(installedLocales) do
|
||||||
localeComboBox:addOption(value.languageName, value.name)
|
localeComboBox:addOption(value.languageName, value.name)
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,6 +41,7 @@ function Skins.init()
|
||||||
|
|
||||||
addEvent( function()
|
addEvent( function()
|
||||||
skinComboBox = g_ui.createWidget('ComboBox', rootWidget:recursiveGetChildById('rightButtonsPanel'))
|
skinComboBox = g_ui.createWidget('ComboBox', rootWidget:recursiveGetChildById('rightButtonsPanel'))
|
||||||
|
skinComboBox:setFixedSize(true)
|
||||||
for key,value in pairs(installedSkins) do
|
for key,value in pairs(installedSkins) do
|
||||||
skinComboBox:addOption(value.name)
|
skinComboBox:addOption(value.name)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
ComboBoxPopupMenuButton < UIButton
|
ComboBoxPopupMenuButton < UIButton
|
||||||
height: 18
|
height: 20
|
||||||
font: verdana-11px-antialised
|
font: verdana-11px-antialised
|
||||||
text-align: left
|
text-align: left
|
||||||
text-offset: 2 0
|
text-offset: 4 0
|
||||||
color: #aaaaaa
|
color: #aaaaaa
|
||||||
background-color: alpha
|
background-color: alpha
|
||||||
|
|
||||||
|
@ -23,14 +23,13 @@ ComboBoxPopupMenuSeparator < UIWidget
|
||||||
ComboBoxPopupMenu < UIPopupMenu
|
ComboBoxPopupMenu < UIPopupMenu
|
||||||
image-source: /images/combobox_square.png
|
image-source: /images/combobox_square.png
|
||||||
image-clip: 0 60 89 20
|
image-clip: 0 60 89 20
|
||||||
image-border: 1
|
image-border-left: 1
|
||||||
image-border-top: 0
|
image-border-right: 1
|
||||||
padding: 1
|
|
||||||
|
|
||||||
ComboBox < UIComboBox
|
ComboBox < UIComboBox
|
||||||
font: verdana-11px-antialised
|
font: verdana-11px-antialised
|
||||||
color: #aaaaaa
|
color: #aaaaaa
|
||||||
size: 86 20
|
size: 89 20
|
||||||
text-offset: 3 0
|
text-offset: 3 0
|
||||||
text-align: left
|
text-align: left
|
||||||
image-source: /images/combobox_square.png
|
image-source: /images/combobox_square.png
|
||||||
|
|
Loading…
Reference in New Issue