2023-07-20 20:17:09 -06:00
|
|
|
local _ENV = mkmodule('plugins.dig')
|
|
|
|
|
|
|
|
local overlay = require('plugins.overlay')
|
|
|
|
local pathable = require('plugins.pathable')
|
|
|
|
|
|
|
|
WarmDampOverlay = defclass(WarmDampOverlay, overlay.OverlayWidget)
|
|
|
|
WarmDampOverlay.ATTRS{
|
2023-12-30 22:24:11 -07:00
|
|
|
desc='Makes warm and damp tiles visible when in ASCII mode.',
|
2023-07-20 20:17:09 -06:00
|
|
|
viewscreens={
|
|
|
|
'dwarfmode/Designate/DIG_DIG',
|
|
|
|
'dwarfmode/Designate/DIG_REMOVE_STAIRS_RAMPS',
|
|
|
|
'dwarfmode/Designate/DIG_STAIR_UP',
|
|
|
|
'dwarfmode/Designate/DIG_STAIR_UPDOWN',
|
|
|
|
'dwarfmode/Designate/DIG_STAIR_DOWN',
|
|
|
|
'dwarfmode/Designate/DIG_RAMP',
|
|
|
|
'dwarfmode/Designate/DIG_CHANNEL',
|
|
|
|
'dwarfmode/Designate/DIG_FROM_MARKER',
|
|
|
|
'dwarfmode/Designate/DIG_TO_MARKER',
|
|
|
|
},
|
|
|
|
default_enabled=true,
|
|
|
|
overlay_only=true,
|
|
|
|
}
|
|
|
|
|
2023-09-10 06:29:55 -06:00
|
|
|
function WarmDampOverlay:onRenderFrame()
|
2023-07-20 20:17:09 -06:00
|
|
|
pathable.paintScreenWarmDamp()
|
|
|
|
end
|
|
|
|
|
2023-09-10 06:29:55 -06:00
|
|
|
CarveOverlay = defclass(CarveOverlay, overlay.OverlayWidget)
|
|
|
|
CarveOverlay.ATTRS{
|
2023-12-30 22:24:11 -07:00
|
|
|
desc='Makes existing carving designations visible when in ASCII mode.',
|
2023-09-10 06:29:55 -06:00
|
|
|
viewscreens={
|
|
|
|
'dwarfmode/Designate/SMOOTH',
|
|
|
|
'dwarfmode/Designate/ENGRAVE',
|
|
|
|
'dwarfmode/Designate/TRACK',
|
|
|
|
'dwarfmode/Designate/FORTIFY',
|
|
|
|
'dwarfmode/Designate/ERASE',
|
|
|
|
},
|
|
|
|
default_enabled=true,
|
|
|
|
overlay_only=true,
|
|
|
|
}
|
|
|
|
|
|
|
|
function CarveOverlay:onRenderFrame()
|
|
|
|
pathable.paintScreenCarve()
|
|
|
|
end
|
|
|
|
|
|
|
|
OVERLAY_WIDGETS = {
|
|
|
|
asciiwarmdamp=WarmDampOverlay,
|
|
|
|
asciicarve=CarveOverlay,
|
|
|
|
}
|
2023-07-20 20:17:09 -06:00
|
|
|
|
|
|
|
return _ENV
|