user longer text for weapon label

develop
Myk Taylor 2023-04-07 02:17:22 -07:00
parent 54c62a7307
commit 36db68deed
No known key found for this signature in database
1 changed files with 4 additions and 4 deletions

@ -437,10 +437,10 @@ function PlannerOverlay:init()
}, },
widgets.CycleHotkeyLabel { -- TODO: this thing also needs a slider widgets.CycleHotkeyLabel { -- TODO: this thing also needs a slider
view_id='weapons', view_id='weapons',
frame={b=4, l=1, w=22}, frame={b=4, l=1, w=28},
key='CUSTOM_T', key='CUSTOM_T',
key_back='CUSTOM_SHIFT_T', key_back='CUSTOM_SHIFT_T',
label='# of weapons:', label='Number of weapons:',
visible=is_weapon_or_spike_trap, visible=is_weapon_or_spike_trap,
options={ options={
{label='(1)', value=1, pen=COLOR_YELLOW}, {label='(1)', value=1, pen=COLOR_YELLOW},
@ -508,9 +508,9 @@ function PlannerOverlay:init()
label='Choose items:', label='Choose items:',
label_below=true, label_below=true,
options={ options={
{label='with filters', value=0}, {label='With filters', value=0},
{ {
label=function() -- TODO: hide this option if last used mat does not exist yet label=function()
local automaterial = itemselection.get_automaterial_selection(uibs.building_type) local automaterial = itemselection.get_automaterial_selection(uibs.building_type)
return ('Last used (%s)'):format(automaterial or 'pick manually') return ('Last used (%s)'):format(automaterial or 'pick manually')
end, end,