mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user