mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
HTML UI Interfaces
# Version 1.0 THEY DON'T LAG LIKE NANOUI Only crew monitoring computer exists Doesn't display coordinate data that I've seen Takes a few seconds to populate with information as well None of the improvements/bugfixes have been applied yet
This commit is contained in:
46
code/controllers/Processes/htmlui.dm
Normal file
46
code/controllers/Processes/htmlui.dm
Normal file
@@ -0,0 +1,46 @@
|
||||
/datum/controller/process/html
|
||||
schedule_interval = 20
|
||||
var/list/update = list()
|
||||
|
||||
/datum/controller/process/html/setup()
|
||||
name = "html"
|
||||
|
||||
/datum/controller/process/html/doWork()
|
||||
if (update.len)
|
||||
var/list/L = list()
|
||||
var/key
|
||||
|
||||
for (var/datum/procqueue_item/item in update)
|
||||
key = "[item.ref]_[item.procname]"
|
||||
|
||||
if (item.args)
|
||||
key += "("
|
||||
var/first = 1
|
||||
for (var/a in item.args)
|
||||
if (!first) key += ","
|
||||
key += "[a]"
|
||||
first = 0
|
||||
key += ")"
|
||||
|
||||
if (!(key in L))
|
||||
if (item.args) call(item.ref, item.procname)(arglist(item.args))
|
||||
else call(item.ref, item.procname)()
|
||||
|
||||
L.Add(key)
|
||||
|
||||
update.Cut()
|
||||
|
||||
/datum/controller/process/html/proc/queue(ref, procname, ...)
|
||||
var/datum/procqueue_item/item = new/datum/procqueue_item
|
||||
item.ref = ref
|
||||
item.procname = procname
|
||||
|
||||
if (args.len > 2)
|
||||
item.args = args.Copy(3)
|
||||
|
||||
src.update.Insert(1, item)
|
||||
|
||||
/datum/procqueue_item
|
||||
var/ref
|
||||
var/procname
|
||||
var/list/args
|
||||
@@ -158,6 +158,10 @@ datum/controller/game_controller/proc/setup_objects()
|
||||
var/obj/machinery/atmospherics/unary/vent_scrubber/T = U
|
||||
T.broadcast_status()
|
||||
|
||||
world << "<span class='danger'>Generating ingame minimaps.</span>"
|
||||
sleep(-1)
|
||||
crewmonitor.generateMiniMaps() // start generating minimaps (this is a background process)
|
||||
|
||||
world << "<span class='danger'>Initializations complete.</span>"
|
||||
sleep(-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user