This commit is contained in:
2026-07-03 14:20:14 +09:00
parent 8f8a76e361
commit 6642e16481
3 changed files with 34 additions and 0 deletions
+14
View File
@@ -24,4 +24,18 @@ function main.toggle_editor(event)
game.tick_paused = false
end
function main.setting_change(event)
if event.setting_type ~= 'runtime-global' then
return
end
if event.setting ~= 'PHI-CT-EDITOR' then
return
end
for _, p in pairs(game.players) do
p.set_shortcut_available('phi-cl-toggle-editor', settings.global['PHI-CT-EDITOR'].value)
end
end
return main