mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Atmos Computer NanoUI
This commit is contained in:
@@ -282,7 +282,10 @@
|
||||
/client/proc/send_resources()
|
||||
// preload_vox()
|
||||
getFiles(
|
||||
'nano/js/libraries.min.js',
|
||||
//'nano/js/libraries.min.js',
|
||||
'nano/js/libraries/1-jquery.js',
|
||||
'nano/js/libraries/2-jsviews.js',
|
||||
'nano/js/libraries/3-jquery.timers.js',
|
||||
'nano/js/nano_update.js',
|
||||
'nano/js/nano_config.js',
|
||||
'nano/js/nano_base_helpers.js',
|
||||
@@ -294,6 +297,7 @@
|
||||
'nano/templates/dna_modifier.tmpl',
|
||||
'nano/templates/geoscanner.tmpl',
|
||||
'nano/templates/air_alarm.tmpl',
|
||||
'nano/templates/atmos_control.tmpl',
|
||||
'nano/images/uiBackground.png',
|
||||
'nano/images/uiIcons16.png',
|
||||
'nano/images/uiIcons24.png',
|
||||
|
||||
@@ -18,6 +18,8 @@ nanoui is used to open and update nano browser uis
|
||||
var/atom/movable/src_object
|
||||
// the title of this ui
|
||||
var/title
|
||||
// /vg/ - Whether to write debug information to nano/debug.html
|
||||
var/writeDebug=TRUE
|
||||
// the key of this ui, this is to allow multiple (different) uis for each src_object
|
||||
var/ui_key
|
||||
// window_id is used as the window name/identifier for browse and onclose
|
||||
@@ -91,7 +93,10 @@ nanoui is used to open and update nano browser uis
|
||||
* @return nothing
|
||||
*/
|
||||
/datum/nanoui/proc/add_common_assets()
|
||||
add_script("libraries.min.js") // The jQuery library
|
||||
//add_script("libraries.min.js") // The jQuery library
|
||||
add_script("1-jquery.js")
|
||||
add_script("2-jsviews.js")
|
||||
add_script("3-jquery.timers.js")
|
||||
add_script("nano_update.js") // The NanoUpdate JS, this is used to receive updates and apply them.
|
||||
add_script("nano_config.js") // The NanoUpdate JS, this is used to receive updates and apply them.
|
||||
add_script("nano_base_helpers.js") // The NanoBaseHelpers JS, this is used to set up template helpers which are common to all templates
|
||||
@@ -349,9 +354,10 @@ nanoui is used to open and update nano browser uis
|
||||
window_size = "size=[width]x[height];"
|
||||
update_status(0)
|
||||
var/html=get_html()
|
||||
var/f = file("nano/debug.html")
|
||||
fdel(f)
|
||||
f << html
|
||||
if(src.writeDebug)
|
||||
var/f = file("nano/debug.html")
|
||||
fdel(f)
|
||||
f << html
|
||||
user << browse(html, "window=[window_id];[window_size][window_options]")
|
||||
winset(user, "mapwindow.map", "focus=true") // Return keyboard focus to map.
|
||||
on_close_winset()
|
||||
|
||||
Reference in New Issue
Block a user