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:
clusterfack
2015-07-07 17:45:35 -05:00
parent 436e36750b
commit 9417d5149b
13 changed files with 999 additions and 29 deletions

View 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

View File

@@ -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)