Commit Graph

13 Commits

Author SHA1 Message Date
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
Mark Aherne (Faerdan)
1a12fe4507 Nano now handles Topic for the src_object, allowing it to only allow interactions with UIs that have a "STATUS_INTERACTIVE" status/visibility.
Small tweaks to the Cryo topic.
2013-08-26 23:34:38 +01:00
Mark Aherne (Faerdan)
4f31591fd3 Nano UI Framework updates.
* Nano UIs now "work" with AI and Cyborgs.
* Visibility updates (now uses line of sight).
* Added displayBar() template helper for displaying progress/health bars.
* Added new health bars to Nano UI Cryo.
* Added Eject Occupant to Nano UI Cryo.
2013-08-26 21:36:47 +01:00
Mark Aherne (Faerdan)
05da330271 Fixed issue with Nano UI windows taking seconds to load.
Removed user << browse_rsc() entries as they caused the delay. New assets (stylesheets, scripts, templates and images) have to be added to the client's send_resources proc or they will not exist on the client.
2013-08-21 01:49:45 +02:00
Mark Aherne (Faerdan)
57fa79a89d Nano UI Framework
------------------------------------------------------------
nanoui - For creating and updating browser UIs
manomanager - For managing nanouis
Includes the "D:\Development\SS13-TG\code\game\machinery\cryo.dm" rebuilt using Nano.
Templates are stored in /nano/templates

This code is in development, it's also not commented yet.
2013-08-19 21:23:53 +01:00