46
46
Spectate = defclass (Spectate , widgets .Window )
47
47
Spectate .ATTRS {
48
48
frame_title = ' Spectate' ,
49
- frame = {l = 5 , t = 5 , w = 36 , h = 41 },
49
+ frame = {l = 5 , t = 5 , w = 36 , h = 42 },
50
50
}
51
51
52
52
local function create_toggle_button (frame , cfg_elem , hotkey , label , cfg_elem_key )
@@ -199,36 +199,37 @@ function Spectate:init()
199
199
create_toggle_button ({t = 11 }, ' include-wildlife' , ' CUSTOM_ALT_W' , rpad (' Include wildlife' , lWidth )),
200
200
create_toggle_button ({t = 12 }, ' prefer-conflict' , ' CUSTOM_ALT_B' , rpad (' Prefer conflict' , lWidth )),
201
201
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 )),
202
203
widgets .Divider {
203
- frame = {t = 15 , h = 1 },
204
+ frame = {t = 16 , h = 1 },
204
205
frame_style = gui .FRAME_THIN ,
205
206
frame_style_l = false ,
206
207
frame_style_r = false ,
207
208
},
208
209
widgets .Label {
209
- frame = {t = 17 , l = 0 },
210
+ frame = {t = 18 , l = 0 },
210
211
text = " Tooltips:"
211
212
},
212
213
ToggleLabel {
213
- frame = {t = 17 , l = 12 },
214
+ frame = {t = 18 , l = 12 },
214
215
initial_option = overlay .isOverlayEnabled (OVERLAY_NAME ),
215
216
on_change = function (val ) dfhack .run_command (' overlay' , val and ' enable' or ' disable' , OVERLAY_NAME ) end ,
216
217
key = ' CUSTOM_ALT_O' ,
217
218
label = " Overlay " ,
218
219
},
219
220
widgets .Label {
220
- frame = {t = 19 , l = colFollow },
221
+ frame = {t = 20 , l = colFollow },
221
222
text = ' Follow' ,
222
223
},
223
224
widgets .Label {
224
- frame = {t = 19 , l = colHover },
225
+ frame = {t = 20 , l = colHover },
225
226
text = ' Hover' ,
226
227
},
227
- create_row ({t = 21 }, ' Enabled' , ' E' , ' ' , colFollow , colHover ),
228
+ create_row ({t = 22 }, ' Enabled' , ' E' , ' ' , colFollow , colHover ),
228
229
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): ' ),
230
231
widgets .CycleHotkeyLabel {
231
- frame = {t = 24 },
232
+ frame = {t = 25 },
232
233
key = ' CUSTOM_C' ,
233
234
label = " Hold to show:" ,
234
235
options = {
@@ -241,11 +242,11 @@ function Spectate:init()
241
242
on_change = function (new , _ ) dfhack .run_command (' spectate' , ' set' , ' tooltip-follow-hold-to-show' , new ) end
242
243
},
243
244
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 ),
249
250
}
250
251
end
251
252
0 commit comments