Commit Graph

92 Commits

Author SHA1 Message Date
Bjorn Neergaard d542163e66 Fix NanoUI and \improper for real 2015-12-28 00:18:43 -06:00
Bjorn Neergaard 65a2c50908 Properly encode NanoUI JSON...
This is right, not the last fix. The '+' in BYOND scientific notation was becoming a space.
2015-12-27 15:49:38 -06:00
Bjorn Neergaard 32c7cbc78a topic_state -> nano_state 2015-12-27 11:04:25 -06:00
Bjorn Neergaard 75f26e18ac Shrink NanoUI by removing library; tidy up code 2015-12-27 09:25:39 -06:00
Bjorn Neergaard 0cb8d73e93 Fix NanoUI runtimes when data is null; touch up code 2015-12-26 11:00:50 -06:00
Bjorn Neergaard ffc6abb223 Clean up NanoUI code style 2015-12-26 09:57:34 -06:00
Bjorn Neergaard 7d5487c169 Tweak ghost NanoUI interaction code; touchup frontend
Resolves #14044
2015-12-26 01:21:58 -06:00
Bjorn Neergaard 1e951d9fcf Rework NanoUI frontend to be lighter; fix drag/resize jitter 2015-12-26 01:21:57 -06:00
Bjorn Neergaard 7132c5bd8d Cache NanoUI HTML 2015-12-26 01:21:57 -06:00
Bjorn Neergaard 2b5ea04485 Compile HTML as another asset; improve loading spinner 2015-12-26 01:21:56 -06:00
Bjorn Neergaard d42a111d93 Drop Javascript library to get even smaller 2015-12-26 01:21:56 -06:00
Kyle Spier-Swenson 38453eb7e5 Removes distance check from ai nano ui interaction checks
This is either all or nothing, 

Right now ais can always use it if its in view of a camera, even if it's not in their view range. 

Everything but new nano ui acts this way.

Having some things act this way and some not just doesn't make sense.
2015-12-22 07:55:37 -08:00
Bjorn Neergaard 332cc5af71 Re-organize NanoUI procs 2015-12-17 10:18:00 -06:00
Bjorn Neergaard 1284f0596c Fix NanoUIs when the title includes a single quote 2015-12-17 10:17:59 -06:00
Bjorn Neergaard 487942a09c Reduce NanoUI size by hosting fonts externally
Also resize Cryo to be more compact
2015-12-17 10:15:13 -06:00
Bjorn Neergaard b00f19e8ee Compile NanoUI into two files 2015-12-17 10:15:11 -06:00
Bjorn Neergaard 15681a727e Combine NanoUI CSS into one file. 2015-12-17 10:12:07 -06:00
oranges 134a76cc8f Line ending apocalypse 2015-12-17 14:12:37 +13:00
Bjorn Neergaard da4842dddf Make NanoUI resistant to Topic spoofs
Move Topic() into a NanoUI-specific ui_act proc
Update to @YotaXP's latest JSON code.
Return focus to the mapwindow if a key is pressed in a NanoUI.
2015-12-15 22:37:52 -06:00
Bjorn Neergaard 070a081db8 Improve focus code; fix SVG
Replace the NT SVG with a better version
Always try to give focus back to the mapwindow

Also make links more obvious
2015-12-15 19:41:56 -06:00
Bjorn Neergaard 9a3b9f8166 Add a loading spinner to NanoUI...
This is kinda dirty because we use external resources; however, the
point is that if assets are not loaded, we need to show a spinner.
2015-12-15 15:00:44 -06:00
YotaXP 2869b1cf61 Re-write JSON writer to output valid JSON
How the old one worked, I don't know...
We don't have a reader yet, but we don't use a reader sooo...
2015-12-15 14:41:34 -06:00
Bjorn Neergaard 88ed7623fc Re-organize nanoui.dm 2015-12-15 14:26:19 -06:00
Bjorn Neergaard 57a1f6c695 Enable NanoUI to go chromeless
Add a new 'Fancy NanoUI' preference to enable chromeless mode
2015-12-15 13:13:12 -06:00
Bjorn Neergaard 47b727a23e Rework how NanoUI handles Topic()
Also, add the ability to winset and the like, all from Javascript
2015-12-15 13:12:35 -06:00
Bjorn Neergaard 5678dfcbd1 Prefix everything with 'nanoui' to avoid conflicts 2015-12-15 13:12:33 -06:00
Bjorn Neergaard c3442475fa Modularize CSS and JS; SVG
Purge NanoUI assets as we now have a gorgeous Nanotrasen SVG logo
Thanks to @YotaXP for helping me with cleaning up the logo
2015-12-15 13:11:56 -06:00
Bjorn Neergaard f089428e63 Coffeescript; Bower; Gulp; asset_cache
We now write frontend code in Coffeescript, alongside our LESS.
PostCSS adds hacks to make CSS work on old versions of IE.
Bower is used to manage dependencies.
Gulp is used to build the code.

Images are dropped in favor of SVG or CSS effects.

NanoUI is now a 'simple' asset in the asset_cache
2015-12-15 13:09:51 -06:00
Bjorn Neergaard 979e71ea26 Restructure NanoUI frontend; use build tools
Yes, you now need Node.js... I'm sorry, but this makes
it so much easier to write NanoUI.

We now precompile all the things...
2015-12-15 13:09:04 -06:00
Bjorn Neergaard 8fdfa08e58 Port NanoUI styles to LESS 2015-12-15 13:08:27 -06:00
Bjorn Neergaard a0c54eba97 Begin rewrite of NanoUI frontend.
* Remove jQuery in favor of polyfills.
* Make NanoUI work with IE8-IE11
* Upstream doT
* Change NanoUI template syntax
* Event driven code
2015-12-15 13:07:11 -06:00
Shadowlight213 3c35ac809e Hopefully finally fixes the nanoui issue. 2015-12-06 23:24:01 -08:00
Bjorn Neergaard a004c0048e Fix AI NanoUI checks
view() is broken...
2015-12-03 15:53:27 -06:00
Razharas 928c23e4d4 Merge pull request #13390 from neersighted/nano_subsys_tweak
Tweak NanoUI Subsystem code
2015-12-03 23:10:07 +03:00
Jordie 428ad00bb4 Merge pull request #13395 from neersighted/nano_touchup
Fix NanoUI for admin ghosts.
2015-12-03 14:24:43 +11:00
Bjorn Neergaard 864caa9d62 Hotfix for Cryo (JSON problems) and render issues (Internet Explorer)
Blame MSO
2015-12-02 19:48:16 -05:00
Bjorn Neergaard 1d60873949 Fix NanoUI for admin ghosts.
Also, rename the base state file.
2015-12-02 12:53:36 -06:00
Bjorn Neergaard 5a4089432c Tweak NanoUI Subsystem code 2015-12-02 09:15:21 -06:00
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