Skip to content

Commit e0eea95

Browse files
committed
only offer the spectate mode toggle in fort mode
1 parent 108e5e9 commit e0eea95

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gui/spectate.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ function Spectate:init()
188188
on_change=function(val) dfhack.run_command(val and 'enable' or 'disable', 'spectate') end,
189189
key='CUSTOM_ALT_E',
190190
label='Spectate mode ',
191+
enabled=dfhack.world.isFortressMode,
191192
},
192193
create_numeric_edit_field({t=4}, 'follow-seconds', 'CUSTOM_ALT_F', 'Switch target (sec): '),
193194
create_toggle_button({t=6}, 'auto-unpause', 'CUSTOM_ALT_U', rpad('Auto unpause', lWidth)),

0 commit comments

Comments
 (0)