mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
* Initial tgui-next commit * Improve dev server, slight changes to layout. * Add more components, fix dragging, finalize scrubber list * Complete an air alarm interface. * Multiple improvements based on feedback - LabeledList now has a "buttons" prop, where you can put buttons. - Improved Box and Flex components - Whole UI is now dimmable if non-interactive - Basic documentation of components (Box and Flex so far). - Icon and Box now accept a "color" prop. - Routing improved in "Layout" component, you can now specify whether an interface is scrollable. * Less harsh dimming * Redux, Toasts - Fixed inconsistent backend updates with Redux. - Added Toasts which are currently unused, but are functional. * acclimator + ai airlock ui * Add a progress bar component, implement resizing * Fix a zero in title bar * Add a linter to keep shit tidy, fix danger level mapping, add some more docs * better ai door interact ui * final ai airlock interface * Fix issues with code, enforce hard 120 line length cap, automerge binaries * Implement hot module reloading * Fix progress bar, add color support * Fix ProgressBar baseline alignment issues * Remove unwanted padding on the bottom of the LabeledList. * Component improvements - Fix baseline issues with Button and ProgressBar components - Box how inherits props from Box - Atomic colors and Button colors are now auto-generated, all range of colors supported * Chem Dispenser UI, animated numbers, more style fixes * Add an IE8 polyfill * Intermediate state of fixing IE8 * Lots of shimming and general misery * Fully working old TGUI chainloader for IE8, more pipeline improvements * Support title-less Sections * Delete Yarn, use Lerna for workspace management * Improve maths and animated numbers * Fix loss of focus for scrollable content, activate buttons with keyboard * Attempt to bust the cache, grab focus on keyboard presses too * Fix hot module replacement by manually pulling replaced modules. * backend logging un-nuke line endings changes without insane line endings * helper procs + href support * slight optimization * compiles * Redux, Hotkeys, Kitchen Sink (for UI testing), Tabs component * Push logs to backend, small kitchen sink changes, tab fixes * Update component reference in README * Small fixes * Next bunch of IE8 fixes, PureComponent optimization for Inferno * Delete old tgui html * Log the event of loading the old tgui * Enable tgui logging on server by default * Final solution * Extract routes into a separate file, fix ChemDispenser bug - Chem dispenser was needlessly disabling transfer amount buttons * Disable baseline alignment for vertical tabs * Fix tabs and box units - Tab content was not taking full page width - Box can now accepts strings as units, which will be treated as raw style values. * Fix tgui on Terry * Fix sending all logs with an "error" flag * Some macro UI component changes and improvements - Refer to README.md diff to see what's new * Tooltip component * Add support for themes, nanotrasen logo is back * Clockwork theme hotfix * Slight adjustment to logo positioning * Actually proper solution for logo positioning * Fix color maps * tgui-next thermomachine interface * tgui-next canister interface * Add icon_class_name proc to asset cache * Lots of stuff backported from actioninja's repo * Cleanup oopsies * Cargo UI adjustments * Nuke lodash * Minor fixes and cleanup - Remove local Inferno package in favor of upstream Inferno - Fix "initial" prop on AnimatedNumber - Force fancy=0 for IE8 - Click-through dimmer * Add a bat file for dummies * podlauncher interface fix * Update README, assert code dominance * Clarify usage of event handlers in Inferno * Document LabeledList.Divider * Fukken grammar * fixes cellular emporium readapt button not working * fixes incorrect action on button in atmos control interface * remove unneeded data from airlock electronics ui * Set +x mode on bin/tgui * Fix filename cases - They were untracked by git on windows * Ignore package lock, make batch more robust - package-lock.json is very random and unreliable as fuck. Yarn was better. * Build tgui-next in travis * bruh - fixes tgui error reporting * logging cleanup + always log
37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
SUBSYSTEM_DEF(tgui)
|
|
name = "tgui"
|
|
wait = 9
|
|
flags = SS_NO_INIT
|
|
priority = FIRE_PRIORITY_TGUI
|
|
runlevels = RUNLEVEL_LOBBY | RUNLEVELS_DEFAULT
|
|
|
|
var/list/currentrun = list()
|
|
var/list/open_uis = list() // A list of open UIs, grouped by src_object and ui_key.
|
|
var/list/processing_uis = list() // A list of processing UIs, ungrouped.
|
|
var/basehtml // The HTML base used for all UIs.
|
|
|
|
/datum/controller/subsystem/tgui/PreInit()
|
|
basehtml = file2text('tgui-next/packages/tgui/public/tgui-main.html')
|
|
|
|
/datum/controller/subsystem/tgui/Shutdown()
|
|
close_all_uis()
|
|
|
|
/datum/controller/subsystem/tgui/stat_entry()
|
|
..("P:[processing_uis.len]")
|
|
|
|
/datum/controller/subsystem/tgui/fire(resumed = 0)
|
|
if (!resumed)
|
|
src.currentrun = processing_uis.Copy()
|
|
//cache for sanic speed (lists are references anyways)
|
|
var/list/currentrun = src.currentrun
|
|
|
|
while(currentrun.len)
|
|
var/datum/tgui/ui = currentrun[currentrun.len]
|
|
currentrun.len--
|
|
if(ui && ui.user && ui.src_object)
|
|
ui.process()
|
|
else
|
|
processing_uis.Remove(ui)
|
|
if (MC_TICK_CHECK)
|
|
return
|