Commit Graph

54 Commits

Author SHA1 Message Date
Remie Richards d909c1e82d Merge pull request #13348 from neersighted/spooky_nanoui
Allow ghosts to use any NanoUI interface.
2015-12-02 14:15:33 +00:00
Jordie 8425b5c4cf Merge pull request #13346 from neersighted/nano_tweaks
Tweak some NanoUI stuff
2015-12-02 15:54:02 +11:00
Razharas b864503724 Merge pull request #13336 from neersighted/chem_nanoui_fixes
Remove calls to a private NanoUI proc from Chemistry-Machinery
2015-12-02 00:40:52 +03:00
Bjorn Neergaard 3428e0e734 Fix NanoUI display issues
Apparently newer version of IE choke on this, and we target newer
versions anyway...
2015-12-01 00:22:50 -05:00
Bjorn Neergaard 6f098e8298 Allow ghosts to use any NanoUI interface. 2015-11-30 23:34:59 -05:00
Bjorn Neergaard b4bcaa3930 Tweak some NanoUI stuff
Sanitize config_data
Log open UIs
2015-11-30 22:21:26 -05:00
Bjorn Neergaard 339369bc63 Remove calls to a private NanoUI proc from Chemistry-Machinery
Also mark procs as private (because they should have been private the whole time).

Get off my lawn!
2015-11-30 14:40:10 -06:00
Razharas 78c95ab035 Merge pull request #13317 from neersighted/airlock_electronics
NanoUI Airlock Electronics
2015-11-30 20:43:33 +03:00
Bjorn Neergaard df02a33f3d Remove redundant NanoUI checks 2015-11-29 17:49:29 -05:00
Bjorn Neergaard 8ba095a931 Fix a typo 2015-11-29 16:56:22 -05:00
Bjorn Neergaard f214e547cb NanoUI Airlock Electronics
Also reworks a lot of the AE code.
2015-11-29 11:32:56 -06:00
Bjorn Neergaard adbed52515 Tighten type signatures 2015-11-28 20:57:06 -06:00
Bjorn Neergaard a97f22c2bb TK allows you to use NanoUI at a distance ❄️
❄️
2015-11-28 20:43:41 -06:00
Bjorn Neergaard 26a9a7a32f Change NanoUI brainloss checks
Coderbus bitched... ❤️
2015-11-28 20:04:01 -06:00
Bjorn Neergaard d400927522 Fix some NanoUI checks
Canisters require physical access and nothing else.
NanoUI checks Brain Damage by default.
2015-11-28 19:58:34 -06:00
Bjorn Neergaard 959b96b16d Fix up NanoUI states; add snowflake for Drones
Drones are simple_animals?! Why?!

This should let drones use all the things. They have to be nearby,
though.
2015-11-28 12:27:42 -05:00
Bjorn Neergaard 6005d54d40 Update NanoUI to use the asset_cache system
Also move a bunch of folders around.
2015-11-28 00:56:30 -05:00
Bjorn Neergaard 2feedfa009 Update Cryo, NanoUI states, add new contains() helper 2015-11-27 21:21:52 -05:00
Bjorn Neergaard 83a2d64b25 Update NanoUI Javascript libraries, SMES UI 2015-11-27 01:13:30 -05:00
Bjorn Neergaard 6a6262d6b2 Finish refactor/retooling of NanoUI core
Also:
* Fix NanoUI on IE11+
* Add missing files (oops!)
2015-11-26 22:17:53 -05:00
Bjorn Neergaard 94e114fee7 Correct several oversights 2015-11-26 07:11:32 -05:00
Bjorn Neergaard 588a170c8d Fix NanoUI debug verb 2015-11-26 07:11:32 -05:00
Bjorn Neergaard 1a44e3d851 Refactor NanoUI API
Also update NanoUI-using code to the new API.
2015-11-26 07:11:31 -05:00
Bjorn Neergaard 5e9c0adc3b Add NanoUI debug verb
A quick tool that helps me reload templates.
Also refactor NanoUI resource code a bit.
2015-11-26 07:11:29 -05:00
Bjorn Neergaard a1bae60b25 Remove Bay's minimap-generating code.
We have our own in the crew computer we will use.
2015-11-26 07:11:28 -05:00
Bjorn Neergaard 56e359efb8 Refactor JSON
* Move into seperate module
* Use aboslute pathing
2015-11-26 07:11:28 -05:00
Bjorn Neergaard 4e5edf396a Update NanoUI
* Update NanoUI to the latest version, ported from Baystation12
* Update the Air Alarm UI
* Make changes to subsystems and some machines to make the new NanoUI
work
2015-11-26 07:11:27 -05:00
MrStonedOne ca4f4201e7 Asset Cache improvements!
Adds crew monitor to the asset cache system
Adds paper to the asset cache system

Added a way to send files to the client slowly without clogging up the queue. (This isn't technically "safe", but the client would only have issues if they didn't have that file already (rare), and only if they used a window that needed that asset (currently only nanoui windows) within the first 15 to 90 seconds of connecting (depending on ping))

Makes NanoUI use this slow send system to blindly send it's asset files. (Once bay's nanoui is ported, i'll improve this so that nanoui fully implements asset cache checking)

Makes asset cache use this system to send all registered asset files, so that ui windows don't have to wait for them if the client's been connected a while.
2015-11-25 02:11:04 -08:00
Firecage 4688c2c969 Fixes proc arguments 2015-07-15 23:52:35 +02:00
phil235 3f57259c69 Merge pull request #9466 from Fayrik/TheNanoing
The Nanoing (Episode 2: The Fix Wars)
2015-06-22 14:24:20 +02:00
Fayrik 58301912e2 This was way too much work, so this had better work now. 2015-06-21 20:04:16 +01:00
kingofkosmos c8d79e7034 Removed unnecessary spaces in these situations:
"span class = '" changed to "span class='"
"'> " changed to "'>"
2015-06-14 12:13:19 +03:00
Fayrik 474bf2667c Almost like magic, it works. CODE MAGIC. 2015-05-12 22:23:25 +01:00
Fayrik 0ba314552a The initial tweaks are in place, ran out of time to finish it though. 2015-05-11 18:54:31 +01:00
Fayrik 80ff5d45d0 Air alarm template still needs a tweak, but it's functional now. 2015-04-25 05:22:00 +01:00
Iamgoofball c06ad7e6b8 moved process() to datum. made /datum/reagents/ process instead of the containers. 2015-04-07 17:13:59 -07:00
oranges 9b7d23776c Auto load required nanoui files on client login
This is still an inprogress so please do not merge
2015-02-25 12:25:21 +13:00
carnie a029a49392 SubSystem rewrite
Misc:

+Fixes unreported issue with initializing lighting on a specific zlevel

+Fixes two similar issues with moveElement and moveRange. Where fromIndex or toIndex could be adjusted incorrectly in certain conditions. Potentially causing bad-sorts, or out of bound errors.

+Rewrites listclearnulls(list/L) to no longer iterate through L.len elements for every null in the list (plus 1). i.e. went from L.len*(number_of_nulls+1) list-element reads (best-case), to L.len list-element reads (worst-case)

+New proc/getElementByVar(list/L, varname, value) which finds the first datum in a list, with a variable named varname, which equals value. You can also feed it atoms instead of lists due to the way the in operator functions.

+Fixes an unreported issue with Yota's list2text rewrite. Under certain conditions, the first element would not be converted into a string. Causing type-mismatch runtimes.

+New global map_ready variable. This is not fully implemented yet, but will be used to avoid duplicate calls to initialize() for map objects.

+All turfs now maintain references to all lights currently illuminating them. This will mean higher memory use unfortunately, due to the huge number of turfs. However, it will speed up updateAffectingLights significantly. I've used list husbandry to reduce baseline memory usage, so it shouldn't be any worse than some past atmos modifications memory-wise.

-Removed 'quadratic lighting', can add this back at some point. Sorry.

+modified the way lum() works slightly, to allow turfs to have overridden delta-lumen. i.e. space cannot be illuminated more than its default ambiance. This allowed removal of some iffy special-snowflake lighting areas implemented by somebody else.

+Lighting images in the dmi can now use arbitrary naming schemes. It is reliant on order now. This allows the dmi to be replaced by simply dropping in a new dmi.

-Removed all subtypes of /area/shuttle. Shuttles now create duplicate 'rooms' of /area/shuttle. (More on this later). This will conflict with most maps. Guide on how to fix to follow.

+All verbs/tools relating to world.tick_lag were refactored to use world.fps. However old config text for setting tick_lag will still work (it converts the value to fps for you)

+MC stats improved using smoothing. They now have their own tab so they dont get in the way when you're playing as an admin.

-removed the push_mob_back stuff due to conflicting changes. Sorry Giacom.

_OK, NOW THE ACTUAL INTERESTING STUFF_

Following systems moved over to subsystem datums:
air_master
garbage_manager
lighting_controller
process_mobs (aka Life())
nanomanager
power
sun
pipenets
AFK kick loops
shuttle_controller (aka emergency shuttle/pods), supply_shuttle and other shuttles
voting
bots
radio
diseases
events
jobs
objects
ticker

Subsystems hooks and variables should be commented fairly in-depth. If anything isn't particularly clear, please make an issue.

Many system-specific global variables have been refactored into

All tickers which previously used world.timeofday now use world.time

some subsystems can iterate before round start. this resolves the issue with votes not working pregame
2014-12-31 13:25:41 +00:00
Firecage 129865d565 Giacom Fixes 2014-08-06 20:22:36 +02:00
Firecage 9732b3a254 Absolute paths for 3 nanoUI files
...

...
2014-08-06 19:02:30 +02:00
Mloc-Hibernia 8af8a43d6f Initial pass to convert LF to CRLF
Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
2014-03-24 08:53:40 +00:00
Mark Aherne (Faerdan) 53b2d2e928 NanoUI Update
* Refactored the code used in the ui_interact procs to be neater and easy to understand (also less code duplication). Updated all existing ui_interact procs to match.
* Rebuilt (and simplified) template rendering system, removed data-linking (the use of carets "^" in templates) and the need to send the full data structure every update (just send whatever you want now, it's fully dynamic). Updated all existing templates to match.
* Restructured HTML and JavaScript to increase compatibility with IE (this fixes "blank uis" for many users).
* Increased the number of error messages to help diagnose issues.
* Multiple performance improvements, especially when updating an open ui.
* Added the ability to update a ui for an individual user (nanomanager update_user_uis proc, used for things like realtime messages in Bay's PDA).
* Added a "Loading..." notice to the UI. If this stays then your JavaScript isn't enabled.
* Removed redundant wip apc.tmpl file.
* Added a link to the online docs in TemplatesGuide.txt.
2014-01-09 01:02:13 +00:00
YotaXP cb6896489f Fixes Issue #1867 2013-11-30 16:42:08 -05:00
YotaXP 139d045b0c Implements NanoUI for APCs, and make a couple other tweaks to the NanoUI framework.
AI can also toggle the APC lock for human access.
2013-11-09 22:02:06 -05:00
Mark Aherne (Faerdan) 83b419decb Added documentation for the ui_interact proc.
Moved the client nanoclose verb into nanoexternal.dm.

Removed debug comments.
2013-09-11 22:18:11 +01:00
Mark Aherne (Faerdan) 0915afda20 Minor fixes. 2013-09-11 21:24:06 +01:00
Mark Aherne (Faerdan) faf368af88 Documented Nano code. 2013-09-10 20:40:15 +01:00
Mark Aherne (Faerdan) a8f764099e Fixed client side UI failure caused by apostrophes in text.
Updated the Chem Dispenser UI with an Energy bar.

UIs attached to the Chem Dispenser will now update on recharge(), recharge now recharges 1 every 15 ticks instead of 2 every 30 (to make it feel more fluid).
2013-09-01 00:50:26 +01:00
Mark Aherne (Faerdan) b4e4da6c2d Fixed issue with links/buttons not working until first update. 2013-08-28 22:20:46 +01:00
Mark Aherne (Faerdan) aa0a9bd2e3 Added Nano UI Chemistry Dispenser.
Fixed UI update issue with non auto-updating UIs.

Misc tweaks for CSS and JS for UI styling.
2013-08-28 17:12:47 +01:00