@@ -56,7 +56,7 @@ TrackStopOverlay = defclass(TrackStopOverlay, overlay.OverlayWidget)
56
56
TrackStopOverlay .ATTRS {
57
57
default_pos = {x =- 73 , y = 29 },
58
58
default_enabled = true ,
59
- viewscreens = ' dwarfmode/ViewSheets/BUILDING/Trap' ,
59
+ viewscreens = ' dwarfmode/ViewSheets/BUILDING/Trap/TrackStop ' ,
60
60
frame = {w = 25 , h = 4 },
61
61
frame_style = gui .MEDIUM_FRAME ,
62
62
frame_background = gui .CLEAR_PEN ,
@@ -120,10 +120,6 @@ function TrackStopOverlay:setDumpDirection(direction)
120
120
end
121
121
122
122
function TrackStopOverlay :render (dc )
123
- if not self :shouldRender () then
124
- return
125
- end
126
-
127
123
local building = dfhack .gui .getSelectedBuilding ()
128
124
local friction = building .friction
129
125
local friction_cycle = self .subviews .friction
@@ -135,18 +131,6 @@ function TrackStopOverlay:render(dc)
135
131
TrackStopOverlay .super .render (self , dc )
136
132
end
137
133
138
- function TrackStopOverlay :shouldRender ()
139
- local building = dfhack .gui .getSelectedBuilding ()
140
- return building and building .trap_type == df .trap_type .TrackStop
141
- end
142
-
143
- function TrackStopOverlay :onInput (keys )
144
- if not self :shouldRender () then
145
- return
146
- end
147
- TrackStopOverlay .super .onInput (self , keys )
148
- end
149
-
150
134
function TrackStopOverlay :init ()
151
135
self :addviews {
152
136
widgets .CycleHotkeyLabel {
0 commit comments