mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
Merge pull request #7376 from SamHPurp/Enables-station-specific-nanoui-map
Adds functionality for separate minimaps
This commit is contained in:
@@ -178,6 +178,7 @@ nanoui is used to open and update nano browser uis
|
||||
var/name = "[src_object]"
|
||||
var/list/config_data = list(
|
||||
"title" = title,
|
||||
"map" = MAP_NAME,
|
||||
"srcObject" = list("name" = name),
|
||||
"stateKey" = state_key,
|
||||
"status" = status,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 556 KiB After Width: | Height: | Size: 556 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 577 KiB |
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div id='uiMapContainer' unselectable="on">
|
||||
<div id='uiMap' unselectable="on">
|
||||
<img id="uiMapImage" src="nanomap_z{{:config.mapZLevel}}.png" width="256" height="256" unselectable="on" />
|
||||
<img id="uiMapImage" src="{{:config.map}}_nanomap_z{{:config.mapZLevel}}.png" width="256" height="256" unselectable="on" />
|
||||
<div id='uiMapContent' unselectable="on">
|
||||
<!-- Add a template with the key "mapContent" to have it rendered here (on the map) -->
|
||||
<!-- Having a "mapContent" template enables the map functionality -->
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</div>
|
||||
<div id='uiMapContainer' unselectable="on">
|
||||
<div id='uiMap' unselectable="on">
|
||||
<img id="uiMapImage" src="nanomap_z{{:config.mapZLevel}}.png" width="256" height="256" unselectable="on" />
|
||||
<img id="uiMapImage" src="{{:config.map}}_nanomap_z{{:config.mapZLevel}}.png" width="256" height="256" unselectable="on" />
|
||||
<div id='uiMapContent' unselectable="on">
|
||||
<!-- Add a template with the key "mapContent" to have it rendered here (on the map) -->
|
||||
<!-- Having a "mapContent" template enables the map functionality -->
|
||||
|
||||
@@ -85,7 +85,7 @@ NanoBaseCallbacks = function ()
|
||||
});
|
||||
});
|
||||
|
||||
$('#uiMapImage').attr('src', 'nanomap_z' + updateData['config']['mapZLevel'] + '.png');
|
||||
$('#uiMapImage').attr('src',updateData['config']['map'] + '_nanomap_z' + updateData['config']['mapZLevel'] + '.png');
|
||||
|
||||
return updateData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user