This commit steals a bunch of code from goon to make fancy nanoUI
windows behave more consistently and more pretty-ly. Hopefully, this
time around, it won't be a broken mess, like version 1 was.
The Gulpfile for Nano has been rewritten from scratch and as many old
piece of shit libraries dumped as possible. This edition comes with
actual minified files, oh my!
Shit I tested and if this breaks so help me:
- Safe functions perfectly
- Security records are searchable
- syndicateMode on everything works perfectly and uses svg art by me
(it's shit, replace when possible)
- Cargo console works 10/10 excellently
- Scrolling is still shit but it was more or less like it was when I
started, so if you say "you broke it" one more fuckin time why I
oughta!!
- PDA and NTOS both work flawlessly (in all the Apps I could test)
This commit changes how NanoUI's live data updating system works.
Previously, data for the template was directly gathered in the
ui_interact proc. Now, it is seperated into the proc `ui_data`.
To players, this does absolutely nothing.
To coders, this opens up the potential for a much more complicated and
fancy graphical updating system in the future, because the data is
available on-demand without ever having to call
nanomanager.try_update_ui.
Does the following:
- Adds 'chromeless' mode (NanoUI defaults to using this)
- Window borders disappear, replaced by in-browser elements for
minimize/close/move/resize.
- You *must* move/resize slowly when using this mode, or it can have
unexpected results, as the JavaScript cannot keep up as well as the
native windows movement.
- StatusGroups are now transparent: This looks nice. That's about it.
- Body background switched to a .svg format for the NanoUI Logo.
- Coder things:
- Nano's JavaScript now has a new class, NanoWindow
- NanoWindow handles all of the chromeless work. It'll be used to
replace portions of NanoStateManager later.
This moves the order of files to be reliant on the gulp-order plugin,
instead of based off of filename alone; As a result, renamed all of the
current JavaScript back to it's proper name, because the numbers in front
were really bothering me.
The reload.bat file will copy the assets folder to your BYOND cache, for
debugging purposes.
New plugins:
- gulp-order
- Allows ordering of file streams via file name. Used for concatenated
JavaScript.
Unifies spacing from tabs/spaces to spaces.
Fixes obvious issues like missing semicolons.
Replaces the spam of alert() invocations with a new function,
reportError().