|
|
@ -162,6 +162,10 @@ local function is_slab()
|
|
|
|
return uibs.building_type == df.building_type.Slab
|
|
|
|
return uibs.building_type == df.building_type.Slab
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local function is_cage()
|
|
|
|
|
|
|
|
return uibs.building_type == df.building_type.Cage
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local function is_stairs()
|
|
|
|
local function is_stairs()
|
|
|
|
return is_construction()
|
|
|
|
return is_construction()
|
|
|
|
and uibs.building_subtype == df.construction_type.UpDownStair
|
|
|
|
and uibs.building_subtype == df.construction_type.UpDownStair
|
|
|
@ -477,6 +481,16 @@ function PlannerOverlay:init()
|
|
|
|
buildingplan.setSpecial(uibs.building_type, uibs.building_subtype, uibs.custom_type, 'engraved', val)
|
|
|
|
buildingplan.setSpecial(uibs.building_type, uibs.building_subtype, uibs.custom_type, 'engraved', val)
|
|
|
|
end,
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
widgets.ToggleHotkeyLabel {
|
|
|
|
|
|
|
|
view_id='empty',
|
|
|
|
|
|
|
|
frame={b=4, l=1, w=22},
|
|
|
|
|
|
|
|
key='CUSTOM_T',
|
|
|
|
|
|
|
|
label='Empty only:',
|
|
|
|
|
|
|
|
visible=is_cage,
|
|
|
|
|
|
|
|
on_change=function(val)
|
|
|
|
|
|
|
|
buildingplan.setSpecial(uibs.building_type, uibs.building_subtype, uibs.custom_type, 'empty', val)
|
|
|
|
|
|
|
|
end,
|
|
|
|
|
|
|
|
},
|
|
|
|
widgets.Label{
|
|
|
|
widgets.Label{
|
|
|
|
frame={b=4, l=23},
|
|
|
|
frame={b=4, l=23},
|
|
|
|
text_pen=COLOR_DARKGREY,
|
|
|
|
text_pen=COLOR_DARKGREY,
|
|
|
@ -847,6 +861,8 @@ function PlannerOverlay:onRenderFrame(dc, rect)
|
|
|
|
local buildingplan = require('plugins.buildingplan')
|
|
|
|
local buildingplan = require('plugins.buildingplan')
|
|
|
|
self.subviews.engraved:setOption(buildingplan.getSpecials(
|
|
|
|
self.subviews.engraved:setOption(buildingplan.getSpecials(
|
|
|
|
uibs.building_type, uibs.building_subtype, uibs.custom_type).engraved or false)
|
|
|
|
uibs.building_type, uibs.building_subtype, uibs.custom_type).engraved or false)
|
|
|
|
|
|
|
|
self.subviews.empty:setOption(buildingplan.getSpecials(
|
|
|
|
|
|
|
|
uibs.building_type, uibs.building_subtype, uibs.custom_type).empty or false)
|
|
|
|
self.subviews.choose:setOption(buildingplan.getChooseItems(
|
|
|
|
self.subviews.choose:setOption(buildingplan.getChooseItems(
|
|
|
|
uibs.building_type, uibs.building_subtype, uibs.custom_type))
|
|
|
|
uibs.building_type, uibs.building_subtype, uibs.custom_type))
|
|
|
|
self.subviews.safety:setOption(buildingplan.getHeatSafetyFilter(
|
|
|
|
self.subviews.safety:setOption(buildingplan.getHeatSafetyFilter(
|
|
|
|