This commit is contained in:
OTCv8
2020-09-11 01:13:37 +02:00
parent cf931af49e
commit dfd69fd3b5
19 changed files with 308 additions and 79 deletions

View File

@@ -54,7 +54,9 @@ end
function setupSelector(widget, id, outfit, list)
widget:setId(id)
widget.title:setText(id:gsub("^%l", string.upper))
table.insert(list, 1, {0, "-"})
if id ~= "type" or #list == 0 then
table.insert(list, 1, {0, "-"})
end
local pos = 1
for i, o in pairs(list) do

View File

@@ -46,7 +46,7 @@ OutfitSelectorPanel < Panel
MainWindow
!text: tr('Select Outfit')
size: 540 330
size: 560 330
@onEnter: modules.game_outfit.accept()
@onEscape: modules.game_outfit.destroy()
@@ -162,7 +162,7 @@ MainWindow
layout:
type: horizontalBox
fit-children: true
spacing: 3
spacing: 8
Button
id: outfitOkButton