From b7d340cee4975fa911b1426f4eb1670e31df373c Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Tue, 2 Dec 2014 22:22:11 +1300 Subject: [PATCH] Rig UI cleanup - Cleaned up html to use classes as much as possible - Removed and renamed a few classes - General code cleanup --- nano/templates/hardsuit.tmpl | 117 +++++++++++++++++++---------------- 1 file changed, 63 insertions(+), 54 deletions(-) diff --git a/nano/templates/hardsuit.tmpl b/nano/templates/hardsuit.tmpl index 235512a7a32..a8d3e59ac72 100644 --- a/nano/templates/hardsuit.tmpl +++ b/nano/templates/hardsuit.tmpl @@ -5,18 +5,11 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{if data.interfacelock || data.malf > 0}} - -- HARDSUIT INTERFACE OFFLINE -- +
-- HARDSUIT INTERFACE OFFLINE --
{{else}} {{if data.aicontrol && data.ai != 1}} - -- HARDSUIT CONTROL OVERRIDDEN BY AI -- +
-- HARDSUIT CONTROL OVERRIDDEN BY AI --
{{else}}
-
-
- Power supply +
+
+ Power supply
{{:helper.displayBar(data.chargestatus, 0, 50, (data.chargestatus >= 35) ? 'good' : (data.chargestatus >= 15) ? 'average' : 'bad')}} {{:data.charge}}/{{:data.maxcharge}}
-
-
-
- AI control: +
+
+ AI control:
{{if data.aioverride}} - ENABLED +
ENABLED
{{else}} - DISABLED +
DISABLED
{{/if}}
@@ -64,17 +73,17 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
-
- Suit status: +
+ Suit status:
{{if data.sealing == 1}} - SEALING +
SEALING
{{else}} {{if data.seals == 1}} - OPEN +
OPEN
{{else}} - SEALED +
SEALED
{{/if}} {{/if}}
@@ -83,17 +92,17 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
-
- Cover status: +
+ Cover status:
{{if data.emagged || !data.securitycheck}} - ERROR - MAINTENANCE LOCK CONTROL OFFLINE +
ERROR - MAINTENANCE LOCK CONTROL OFFLINE
{{else}} {{if data.coverlock}} - LOCKED +
LOCKED
{{else}} - UNLOCKED +
UNLOCKED
{{/if}} {{/if}}
@@ -109,21 +118,21 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
-
- Helmet: +
+ Helmet:
{{:helper.capitalizeFirstLetter(data.helmet)}}
{{if data.sealing != 1}}
- {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'helmet'}, null)}} + {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'helmet'}, null)}}
{{/if}}
-
- Gauntlets: +
+ Gauntlets:
{{:helper.capitalizeFirstLetter(data.gauntlets)}} @@ -135,8 +144,8 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{/if}}
-
- Boots: +
+ Boots:
{{:helper.capitalizeFirstLetter(data.boots)}} @@ -148,8 +157,8 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{/if}}
-
- Chestpiece: +
+ Chestpiece:
{{:helper.capitalizeFirstLetter(data.chest)}} @@ -166,39 +175,39 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{if data.seals == 1 || data.sealing == 1}}

HARDSUIT SYSTEMS OFFLINE

{{else}} -

Selected primary system: +

Selected primary system: {{if data.primarysystem}} {{:helper.capitalizeFirstLetter(data.primarysystem)}} {{else}} None {{/if}} -

+ {{if data.modules}}
{{for data.modules}}
-
+
{{:helper.capitalizeFirstLetter(value.name)}}
{{if value.damage > 0}}
{{if value.damage == 1}} - (damaged) + (
damaged
) {{else}} - (destroyed) + (
destroyed
) {{/if}}
{{/if}}
-
- Engage: {{:value.engagecost}}
- Activate: {{:value.activecost}}
+
+ Engage: {{:value.engagecost}} + Activate: {{:value.activecost}} Passive: {{:value.passivecost}}
-
+
{{:value.desc}}
-
+
{{if value.can_use == 1}}
{{:helper.link(value.engagestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'engage'}, null)}} @@ -207,7 +216,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{if value.can_select == 1}}
{{if value.name == data.primarysystem}} -
SELECTED
+
SELECTED
{{else}} {{:helper.link('Select', 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'select'}, null)}} {{/if}} @@ -227,8 +236,8 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
{{if value.charges}} -
Stored charges
- Selected: {{:helper.capitalizeFirstLetter(value.chargetype)}} +
Stored charges
+
Selected:
{{:helper.capitalizeFirstLetter(value.chargetype)}} {{for value.charges :itemValue:itemIndex}}
{{:helper.link(helper.capitalizeFirstLetter(itemValue.caption), null, {'interact_module' : value.index, 'module_mode' : 'select_charge_type', 'charge_type' : itemValue.index}, null)}}