4646Spectate = defclass (Spectate , widgets .Window )
4747Spectate .ATTRS {
4848 frame_title = ' Spectate' ,
49- frame = {l = 5 , t = 5 , w = 36 , h = 41 },
49+ frame = {l = 5 , t = 5 , w = 36 , h = 42 },
5050}
5151
5252local function create_toggle_button (frame , cfg_elem , hotkey , label , cfg_elem_key )
@@ -199,36 +199,37 @@ function Spectate:init()
199199 create_toggle_button ({t = 11 }, ' include-wildlife' , ' CUSTOM_ALT_W' , rpad (' Include wildlife' , lWidth )),
200200 create_toggle_button ({t = 12 }, ' prefer-conflict' , ' CUSTOM_ALT_B' , rpad (' Prefer conflict' , lWidth )),
201201 create_toggle_button ({t = 13 }, ' prefer-new-arrivals' , ' CUSTOM_ALT_N' , rpad (' Prefer new arrivals' , lWidth )),
202+ create_toggle_button ({t = 14 }, ' prefer-nicknamed' , ' CUSTOM_ALT_I' , rpad (' Prefer nicknamed' , lWidth )),
202203 widgets .Divider {
203- frame = {t = 15 , h = 1 },
204+ frame = {t = 16 , h = 1 },
204205 frame_style = gui .FRAME_THIN ,
205206 frame_style_l = false ,
206207 frame_style_r = false ,
207208 },
208209 widgets .Label {
209- frame = {t = 17 , l = 0 },
210+ frame = {t = 18 , l = 0 },
210211 text = " Tooltips:"
211212 },
212213 ToggleLabel {
213- frame = {t = 17 , l = 12 },
214+ frame = {t = 18 , l = 12 },
214215 initial_option = overlay .isOverlayEnabled (OVERLAY_NAME ),
215216 on_change = function (val ) dfhack .run_command (' overlay' , val and ' enable' or ' disable' , OVERLAY_NAME ) end ,
216217 key = ' CUSTOM_ALT_O' ,
217218 label = " Overlay " ,
218219 },
219220 widgets .Label {
220- frame = {t = 19 , l = colFollow },
221+ frame = {t = 20 , l = colFollow },
221222 text = ' Follow' ,
222223 },
223224 widgets .Label {
224- frame = {t = 19 , l = colHover },
225+ frame = {t = 20 , l = colHover },
225226 text = ' Hover' ,
226227 },
227- create_row ({t = 21 }, ' Enabled' , ' E' , ' ' , colFollow , colHover ),
228+ create_row ({t = 22 }, ' Enabled' , ' E' , ' ' , colFollow , colHover ),
228229
229- create_numeric_edit_field ({t = 23 }, ' tooltip-follow-blink-milliseconds' , ' CUSTOM_B' , ' Blink period (ms): ' ),
230+ create_numeric_edit_field ({t = 24 }, ' tooltip-follow-blink-milliseconds' , ' CUSTOM_B' , ' Blink period (ms): ' ),
230231 widgets .CycleHotkeyLabel {
231- frame = {t = 24 },
232+ frame = {t = 25 },
232233 key = ' CUSTOM_C' ,
233234 label = " Hold to show:" ,
234235 options = {
@@ -241,11 +242,11 @@ function Spectate:init()
241242 on_change = function (new , _ ) dfhack .run_command (' spectate' , ' set' , ' tooltip-follow-hold-to-show' , new ) end
242243 },
243244
244- create_row ({t = 26 }, ' Job' , ' J' , ' job' , colFollow , colHover ),
245- create_row ({t = 27 }, ' Activity' , ' A' , ' activity' , colFollow , colHover ),
246- create_row ({t = 28 }, ' Name' , ' N' , ' name' , colFollow , colHover ),
247- create_row ({t = 29 }, ' Stress' , ' S' , ' stress' , colFollow , colHover ),
248- create_stress_list ({t = 30 }, colFollow , colHover ),
245+ create_row ({t = 27 }, ' Job' , ' J' , ' job' , colFollow , colHover ),
246+ create_row ({t = 28 }, ' Activity' , ' A' , ' activity' , colFollow , colHover ),
247+ create_row ({t = 29 }, ' Name' , ' N' , ' name' , colFollow , colHover ),
248+ create_row ({t = 30 }, ' Stress' , ' S' , ' stress' , colFollow , colHover ),
249+ create_stress_list ({t = 31 }, colFollow , colHover ),
249250 }
250251end
251252
0 commit comments