[MIRROR] Lua UI improvements [MDB IGNORE] (#15561)

* Lua UI improvements (#68887)

Atomized from #68816, with a little addition. Fixes some dumb formatting issues with the lua editor, adds a "jump to bottom" button when viewing the state log, and paginates the state logs.

* Lua UI improvements

Co-authored-by: Y0SH1M4S73R <legoboyo@earthlink.net>
This commit is contained in:
SkyratBot
2022-08-12 14:27:00 -04:00
committed by GitHub
co-authored by Y0SH1M4S73R
parent a5f9f74b4c
commit c13c4b0056
8 changed files with 361 additions and 199 deletions
+2 -4
View File
@@ -2017,8 +2017,6 @@
if(log_index <= state_to_view.log.len)
var/list/log_entry = state_to_view.log[log_index]
if(log_entry["chunk"])
LAZYINITLIST(editor.tgui_shared_states)
editor.tgui_shared_states["viewedChunk"] = json_encode(log_entry["chunk"])
editor.tgui_shared_states["modal"] = json_encode("viewChunk")
editor.force_view_chunk = log_entry["chunk"]
editor.force_modal = "viewChunk"
editor.ui_interact(usr)
editor.tgui_shared_states = null