From d4338bed12b0b98edb6b559dd7b976f663d7a5df Mon Sep 17 00:00:00 2001 From: davipatury Date: Sat, 18 Feb 2017 22:18:01 -0200 Subject: [PATCH] Some changes! --- code/modules/shuttle/shuttle.dm | 5 +-- nano/templates/shuttle_console.tmpl | 47 +++++++++++++++++------------ 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/code/modules/shuttle/shuttle.dm b/code/modules/shuttle/shuttle.dm index 72f83153687..6f019350217 100644 --- a/code/modules/shuttle/shuttle.dm +++ b/code/modules/shuttle/shuttle.dm @@ -174,7 +174,7 @@ */ /obj/docking_port/stationary/transit - name = "In Transit" + name = "In transit" turf_type = /turf/space/transit lock_shuttle_doors = 1 @@ -183,7 +183,7 @@ if(!..()) return 0 - name = "In Transit" //This looks weird, but- it means that the on-map instances can be named something actually usable to search for, but still appear correctly in terminals. + name = "In transit" //This looks weird, but- it means that the on-map instances can be named something actually usable to search for, but still appear correctly in terminals. shuttle_master.transit += src return 1 @@ -702,6 +702,7 @@ if(!M.check_dock(S)) continue docking_ports[++docking_ports.len] = list("name" = S.name, "id" = S.id) + data["docking_ports_len"] = docking_ports.len data["admin_controlled"] = admin_controlled data["docking_request"] = docking_request diff --git a/nano/templates/shuttle_console.tmpl b/nano/templates/shuttle_console.tmpl index 2b16495d522..d16f39a8b20 100644 --- a/nano/templates/shuttle_console.tmpl +++ b/nano/templates/shuttle_console.tmpl @@ -3,26 +3,35 @@ Title: Shuttle Console Used In File(s): /code/modules/shuttle/shuttle.dm --> -
-
Status: {{:data.status ? data.status : '*Missing*'}}
- {{if data.shuttle}} - {{for data.docking_ports}} -
-
{{:helper.link('Send to ' + value.name, 'sign-out', {'move' : value.id})}}
-
- {{empty}} -

Shuttle Locked

- {{if data.admin_controlled}} -
Authorized personnel only
-
-
{{:helper.link('Request Authorization', 'share-square-o', {'request' : 1})}}
+
+
Location:
+
{{:data.status ? data.status : '*Missing*'}}
+
+{{if data.shuttle}} + {{if data.docking_ports_len}} +
+
+ {{for data.docking_ports}} +
{{:helper.link('Send to ' + value.name, 'sign-out', {'move' : value.id})}}
+ {{/for}} +
+ {{else}} +
+
Status:
+
Shuttle locked + {{if data.admin_controlled}} + , authorized personnel only +
+
+
{{:helper.link('Request authorization', 'share-square-o', {'request' : 1})}}
+ {{else}}
- {{/if}} - {{/for}} - {{if data.docking_request}} -
-
{{:helper.link('Request docking at NSS Cyberiad', 'share-square-o', {'request' : 1})}}
+
{{/if}} {{/if}} -
\ No newline at end of file + + {{if data.docking_request}} +
{{:helper.link('Request docking at NSS Cyberiad', 'share-square-o', {'request' : 1})}}
+ {{/if}} +{{/if}} \ No newline at end of file