mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 23:48:28 +01:00
Nano Obssession: Chromeless window, Styles
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 commit is contained in:
@@ -186,7 +186,15 @@ nanoui is used to open and update nano browser uis
|
||||
"autoUpdateContent" = auto_update_content,
|
||||
"showMap" = show_map,
|
||||
"mapZLevel" = map_z_level,
|
||||
"user" = list("name" = user.name)
|
||||
"user" = list(
|
||||
"name" = user.name,
|
||||
"fancy" = user.client.prefs.nanoui_fancy
|
||||
),
|
||||
"window" = list(
|
||||
"width" = width,
|
||||
"height" = height,
|
||||
"ref" = window_id
|
||||
)
|
||||
)
|
||||
return config_data
|
||||
|
||||
@@ -334,7 +342,6 @@ nanoui is used to open and update nano browser uis
|
||||
/datum/nanoui/proc/get_html()
|
||||
|
||||
// before the UI opens, add the layout files based on the layout key
|
||||
add_stylesheet("layout_[layout_key].css")
|
||||
add_template("layout", "layout_[layout_key].tmpl")
|
||||
|
||||
var/head_content = ""
|
||||
|
||||
Reference in New Issue
Block a user