[MIRROR] Bumps auxlua to 1.2.1 (+ several other ui fixes and qol tweaks) [MDB IGNORE] (#15786)

This commit is contained in:
SkyratBot
2022-08-27 00:48:00 +02:00
committed by GitHub
parent 56cae4f719
commit 8790837555
7 changed files with 189 additions and 96 deletions
+3 -5
View File
@@ -1,13 +1,10 @@
/datum/lua_editor
var/datum/lua_state/current_state
/// Code imported from the user's system
var/imported_code
/// Arguments for a function call or coroutine resume
var/list/arguments = list()
/// If set, the global table will not be shown in the lua editor
/// If not set, the global table will not be shown in the lua editor
var/show_global_table = FALSE
/// The log page we are currently on
@@ -125,7 +122,8 @@
if("runCode")
var/code = params["code"]
var/result = current_state.load_script(code)
current_state.log_result(result)
var/index_with_result = current_state.log_result(result)
message_admins("[key_name(usr)] executed [length(code)] bytes of lua code. [ADMIN_LUAVIEW_CHUNK(current_state, index_with_result)]")
return TRUE
if("moveArgUp")
var/list/path = params["path"]