Fixes/improves the Lua UI Slightly (#85447)

## About The Pull Request

A couple of fixes/updates watermelon asked for. Of particular note is
the ability to suppress logging runtimes that the state was involved in
causing.

## Why It's Good For The Game

There were a few formatting issues caused by converting the UI to React
Typescript. As for suppressing runtime logging, sometimes the runtimes
being logged aren't important to the lua code being run, so it would
make sense to toggle whether such runtimes should be saved to a state's
log.

## Changelog

🆑
admin: The layout of the lua editor has been tweaked slightly.
admin: In the lua editor, you can now toggle whether to log runtimes the
viewed state is involved in.
/🆑
This commit is contained in:
Y0SH1M4S73R
2024-08-01 14:45:37 +00:00
committed by GitHub
parent 296db2a418
commit 20361ace13
5 changed files with 99 additions and 80 deletions
@@ -24,6 +24,9 @@ GLOBAL_PROTECT(lua_state_stack)
/// Whether the timer.lua script has been included into this lua context state.
var/timer_enabled = FALSE
/// Whether to supress logging BYOND runtimes for this state.
var/supress_runtimes = FALSE
/// Callbacks that need to be ran on next tick
var/list/functions_to_execute = list()