From 0f2b0b79bdcff887084910265056450f20ad3fb4 Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Wed, 26 Nov 2014 23:32:16 +1300 Subject: [PATCH 1/6] Initial rig ui pass - Narrowed UI window, we shouldn't need it this wide once I'm done - Started converting html template to divs for easier formatting --- code/modules/clothing/spacesuits/rig/rig.dm | 2 +- nano/templates/hardsuit.tmpl | 202 ++++++++++---------- 2 files changed, 103 insertions(+), 101 deletions(-) diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index 7fdffb00f29..2f6196f5586 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -442,7 +442,7 @@ ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open) if (!ui) - ui = new(user, src, ui_key, ((src.loc != user) ? ai_interface_path : interface_path), interface_title, 750, 550) + ui = new(user, src, ui_key, ((src.loc != user) ? ai_interface_path : interface_path), interface_title, 500, 600) ui.set_initial_data(data) ui.open() ui.set_auto_update(1) diff --git a/nano/templates/hardsuit.tmpl b/nano/templates/hardsuit.tmpl index db07636eb70..e416afaaead 100644 --- a/nano/templates/hardsuit.tmpl +++ b/nano/templates/hardsuit.tmpl @@ -9,127 +9,129 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{if data.aicontrol && data.ai != 1}} -- 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: - - {{if data.aioverride}} - ENABLED - {{else}} - DISABLED - {{/if}} - - {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_ai_control' : 1}, null)}} -
- Suit status: - - {{if data.sealing == 1}} - SEALING - {{else}} - {{if data.seals == 1}} - OPEN + + +
+
+
+ AI control: +
+
+ {{if data.aioverride}} + ENABLED {{else}} - SEALED + DISABLED {{/if}} - {{/if}} -
- {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_seals' : 1}, null)}} -
- Cover status: - - {{if data.emagged || !data.securitycheck}} - ERROR - MAINTENANCE LOCK CONTROL OFFLINE - {{else}} - {{if data.coverlock}} - LOCKED + +
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_ai_control' : 1}, null)}} +
+ +
+
+ Suit status: +
+
+ {{if data.sealing == 1}} + SEALING {{else}} - UNLOCKED + {{if data.seals == 1}} + OPEN + {{else}} + SEALED + {{/if}} {{/if}} - {{/if}} -
- {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_suit_lock' : 1}, null)}} -
+ +
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_seals' : 1}, null)}} +
+ +
+
+ Cover status: +
+
+ {{if data.emagged || !data.securitycheck}} + ERROR - MAINTENANCE LOCK CONTROL OFFLINE + {{else}} + {{if data.coverlock}} + LOCKED + {{else}} + UNLOCKED + {{/if}} + {{/if}} +
+
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_suit_lock' : 1}, null)}} +
+
+ +

Hardware

Suit pieces

- - - - - - - - - - - - - - - - - - - - - -
- Helmet: - - {{:data.helmet}}
-
+
+
+
+ Helmet: +
+
+ {{:data.helmet}} +
+
{{if data.sealing != 1}} {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'helmet'}, null)}}
{{/if}} -
- Gauntlets: - - {{:data.gauntlets}}
-
+ + +
+
+ Gauntlets: +
+
+ {{:data.gauntlets}} +
+
{{if data.sealing != 1}} {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'gauntlets'}, null)}}
{{/if}} -
- Boots: - - {{:data.boots}}
-
+ + +
+
+ Boots: +
+
+ {{:data.boots}} +
+
{{if data.sealing != 1}} {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'boots'}, null)}}
{{/if}} -
- Chestpiece: - - {{:data.chest}}
-
+ + +
+
+ Chestpiece: +
+
+ {{:data.chest}} +
+
{{if data.sealing != 1}} {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'chest'}, null)}}
{{/if}} -
+ + +

System modules

{{if data.seals == 1 || data.sealing == 1}} From 9e48b9706812dba525d0a2e05fbef15b9c8785a1 Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Sun, 30 Nov 2014 23:16:58 +1300 Subject: [PATCH 2/6] Capitalization function - adds a NanoUI helper function which the first character in a string --- nano/js/nano_base_helpers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nano/js/nano_base_helpers.js b/nano/js/nano_base_helpers.js index c9a190679a5..d5a019e2f85 100644 --- a/nano/js/nano_base_helpers.js +++ b/nano/js/nano_base_helpers.js @@ -83,6 +83,10 @@ NanoBaseHelpers = function () parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); return parts.join("."); }, + // Capitalize the first letter of a string. From http://stackoverflow.com/questions/1026069/capitalize-the-first-letter-of-string-in-javascript + capitalizeFirstLetter: function(string) { + return string.charAt(0).toUpperCase() + string.slice(1); + }, // Display a bar. Used to show health, capacity, etc. displayBar: function(value, rangeMin, rangeMax, styleClass, showText) { From acab8eb1cc0fbd360536bd592e981c9ab3e99cde Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Sun, 30 Nov 2014 23:18:39 +1300 Subject: [PATCH 3/6] Second rig UI pass - Converted remaining code to class controlled divs - Added prototype modules layout --- nano/templates/hardsuit.tmpl | 169 +++++++++++++++++++---------------- 1 file changed, 91 insertions(+), 78 deletions(-) diff --git a/nano/templates/hardsuit.tmpl b/nano/templates/hardsuit.tmpl index e416afaaead..bdcffae21da 100644 --- a/nano/templates/hardsuit.tmpl +++ b/nano/templates/hardsuit.tmpl @@ -3,6 +3,23 @@ Title: Integrated Hardsuit Controller Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm --> + + {{if data.interfacelock || data.malf > 0}} -- HARDSUIT INTERFACE OFFLINE -- {{else}} @@ -10,7 +27,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm -- HARDSUIT CONTROL OVERRIDDEN BY AI -- {{else}}
-
+
Power supply
@@ -19,7 +36,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
-
+
AI control:
@@ -34,7 +51,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_ai_control' : 1}, null)}}
-
+
Suit status:
@@ -53,7 +70,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_seals' : 1}, null)}}
-
+
Cover status:
@@ -79,101 +96,106 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm

Suit pieces

-
+
Helmet:
- {{:data.helmet}} -
-
- {{if data.sealing != 1}} - {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'helmet'}, null)}}
- {{/if}} + {{:helper.capitalizeFirstLetter(data.helmet)}}
+ {{if data.sealing != 1}} +
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'helmet'}, null)}} +
+ {{/if}}
-
+
Gauntlets:
- {{:data.gauntlets}} -
-
- {{if data.sealing != 1}} - {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'gauntlets'}, null)}}
- {{/if}} + {{:helper.capitalizeFirstLetter(data.gauntlets)}}
+ {{if data.sealing != 1}} +
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'gauntlets'}, null)}} +
+ {{/if}}
-
+
Boots:
- {{:data.boots}} -
-
- {{if data.sealing != 1}} - {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'boots'}, null)}}
- {{/if}} + {{:helper.capitalizeFirstLetter(data.boots)}}
+ {{if data.sealing != 1}} +
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'boots'}, null)}} +
+ {{/if}}
-
+
Chestpiece:
- {{:data.chest}} -
-
- {{if data.sealing != 1}} - {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'chest'}, null)}}
- {{/if}} + {{:helper.capitalizeFirstLetter(data.chest)}}
+ {{if data.sealing != 1}} +
+ {{:helper.link('Toggle', 'circle-arrow-s', {'toggle_piece' : 'chest'}, null)}} +
+ {{/if}}

System modules

{{if data.seals == 1 || data.sealing == 1}} -

HARDSUIT SYSTEMS OFFLINE.

+

HARDSUIT SYSTEMS OFFLINE

{{else}} + + + +

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

{{if data.modules}} - +
{{for data.modules}} -
- - - - - - - {{if value.charges}} - - - - - {{/if}} - - - + {{/if}} + + + {{/for}} -
-
- {{:value.name}} - {{if value.damage > 0}} - {{if value.damage == 1}} - (damaged) - {{else}} - (destroyed) - {{/if}} +
+
+
{{:helper.capitalizeFirstLetter(value.name)}}
+ {{if value.damage > 0}} + {{if value.damage == 1}} + (damaged) + {{else}} + (destroyed) {{/if}} - [E: {{:value.engagecost}} | A: {{:value.activecost}} | P: {{:value.passivecost}}] + {{/if}} +
+
+ Engage: {{:value.engagecost}}
+ Activate: {{:value.activecost}}
+ Passive: {{:value.passivecost}}
+
+
+ {{:value.desc}} +
-
-
{{:value.desc}}
-
+
{{if value.can_use == 1}} -
+
{{:helper.link(value.engagestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'engage'}, null)}}
{{/if}} {{if value.can_select == 1}} -
+
{{if value.name == data.primarysystem}}
SELECTED
{{else}} @@ -182,7 +204,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
{{/if}} {{if value.can_toggle == 1}} -
+
{{if value.is_active == 1}} {{:helper.link(value.deactivatestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'deactivate'}, null)}} {{else}} @@ -191,30 +213,21 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
{{/if}}
-
-
- Stored charges
-
- Selected: {{:value.chargetype}} -
-
+
+ {{if value.charges}} +
Stored charges
+ Selected: {{:helper.capitalizeFirstLetter(value.chargetype)}} {{for value.charges :itemValue:itemIndex}} - {{:helper.link(itemValue.caption, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'select_charge_type', 'charge_type' : itemValue.index}, null)}}
+
+ {{:helper.link(helper.capitalizeFirstLetter(itemValue.caption), null, {'interact_module' : value.index, 'module_mode' : 'select_charge_type', 'charge_type' : itemValue.index}, null)}} +
{{/for}} -
-

+
{{else}} None. {{/if}} From 9fb58d8568ed5c78c2ffb7b5f0b7c21574d0d990 Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Tue, 2 Dec 2014 00:11:32 +1300 Subject: [PATCH 4/6] Third rig UI pass - Resized the initial ui window again - Rewrote the modules section to a horizontal layout --- code/modules/clothing/spacesuits/rig/rig.dm | 2 +- nano/templates/hardsuit.tmpl | 102 +++++++++++--------- 2 files changed, 58 insertions(+), 46 deletions(-) diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm index 2f6196f5586..0eec83e449e 100644 --- a/code/modules/clothing/spacesuits/rig/rig.dm +++ b/code/modules/clothing/spacesuits/rig/rig.dm @@ -442,7 +442,7 @@ ui = nanomanager.try_update_ui(user, src, ui_key, ui, data, force_open) if (!ui) - ui = new(user, src, ui_key, ((src.loc != user) ? ai_interface_path : interface_path), interface_title, 500, 600) + ui = new(user, src, ui_key, ((src.loc != user) ? ai_interface_path : interface_path), interface_title, 480, 550) ui.set_initial_data(data) ui.open() ui.set_auto_update(1) diff --git a/nano/templates/hardsuit.tmpl b/nano/templates/hardsuit.tmpl index bdcffae21da..235512a7a32 100644 --- a/nano/templates/hardsuit.tmpl +++ b/nano/templates/hardsuit.tmpl @@ -16,7 +16,18 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm margin: 0 auto; } .info { - display: none; + width: 100px; + } + .floatLeft { + float: left; + margin-left: 5px; + } + .paddedBorderBlue { + border: 1px solid #517087; + padding: 2px; + } + .displayBar { + width: 200px; } @@ -34,6 +45,7 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm
{{:helper.displayBar(data.chargestatus, 0, 50, (data.chargestatus >= 35) ? 'good' : (data.chargestatus >= 15) ? 'average' : 'bad')}} {{:data.charge}}/{{:data.maxcharge}}
+
@@ -154,10 +166,6 @@ 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: {{if data.primarysystem}} {{:helper.capitalizeFirstLetter(data.primarysystem)}} @@ -168,57 +176,61 @@ Used In File(s): /code/modules/clothing/spacesuits/rig/rig.dm {{if data.modules}}
{{for data.modules}} -
-
-
{{:helper.capitalizeFirstLetter(value.name)}}
- {{if value.damage > 0}} - {{if value.damage == 1}} - (damaged) - {{else}} - (destroyed) - {{/if}} - {{/if}} -
-
- 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)}} -
- {{/if}} - {{if value.can_select == 1}} -
- {{if value.name == data.primarysystem}} -
SELECTED
+
+
+
+
{{:helper.capitalizeFirstLetter(value.name)}}
+ {{if value.damage > 0}} +
+ {{if value.damage == 1}} + (damaged) {{else}} - {{:helper.link('Select', 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'select'}, null)}} + (destroyed) {{/if}}
{{/if}} - {{if value.can_toggle == 1}} -
- {{if value.is_active == 1}} - {{:helper.link(value.deactivatestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'deactivate'}, null)}} - {{else}} - {{:helper.link(value.activatestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'activate'}, null)}} +
+
+ 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)}} +
+ {{/if}} + {{if value.can_select == 1}} +
+ {{if value.name == data.primarysystem}} +
SELECTED
+ {{else}} + {{:helper.link('Select', 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'select'}, null)}} + {{/if}} +
+ {{/if}} + {{if value.can_toggle == 1}} +
+ {{if value.is_active == 1}} + {{:helper.link(value.deactivatestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'deactivate'}, null)}} + {{else}} + {{:helper.link(value.activatestring, 'circle-arrow-s', {'interact_module' : value.index, 'module_mode' : 'activate'}, null)}} + {{/if}} +
{{/if}}
- {{/if}} +
-
+
{{if value.charges}}
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)}}
{{/for}} From 3988b96459b29a35c5e9f4d266c7d981d28a5849 Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Tue, 2 Dec 2014 22:17:35 +1300 Subject: [PATCH 5/6] Rig activate message fix Electrowarfare and power sink modules weren't displaying the correct activate string message. Fixed both. --- code/modules/clothing/spacesuits/rig/modules/computer.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/spacesuits/rig/modules/computer.dm b/code/modules/clothing/spacesuits/rig/modules/computer.dm index 457ad2ecd7e..7b7e2374d4c 100644 --- a/code/modules/clothing/spacesuits/rig/modules/computer.dm +++ b/code/modules/clothing/spacesuits/rig/modules/computer.dm @@ -291,7 +291,7 @@ toggleable = 1 usable = 0 - engage_string = "Enable Countermeasures" + activate_string = "Enable Countermeasures" deactivate_string = "Disable Countermeasures" interface_name = "electrowarfare system" @@ -322,7 +322,7 @@ activates_on_touch = 1 disruptive = 0 - engage_string = "Enable Power Sink" + activate_string = "Enable Power Sink" deactivate_string = "Disable Power Sink" interface_name = "niling d-sink" From b7d340cee4975fa911b1426f4eb1670e31df373c Mon Sep 17 00:00:00 2001 From: Loganbacca Date: Tue, 2 Dec 2014 22:22:11 +1300 Subject: [PATCH 6/6] 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)}}