Rate:
diff --git a/nano/templates/chem_master.tmpl b/nano/templates/chem_master.tmpl
index f163447dbfd..1b8315154ab 100644
--- a/nano/templates/chem_master.tmpl
+++ b/nano/templates/chem_master.tmpl
@@ -1,205 +1,116 @@
/obj/machinery/chem_master/attackby(var/obj/item/weapon/B as obj, var/mob/user as mob)
+ Interface for chem master
+ See: code/modules/reagents/Chemistry-Machinery.dm
+-->
+{{if data.tab == 'home'}}
+
+
{{:helper.link(data.pillBottle ? 'Eject Pill Bottle' : 'No pill bottle inserted', 'eject', {'ejectp' : 1}, data.pillBottle ? null : 'linkOff')}}
- if(beaker)
- var/datum/reagents/R = beaker:reagents
- if (href_list["analyze"])
- var/dat = ""
- if(!condi)
- if(href_list["name"] == "Blood")
- var/datum/reagent/blood/G
- for(var/datum/reagent/F in R.reagent_list)
- if(F.name == href_list["name"])
- G = F
- break
- var/A = G.name
- var/B = G.data["blood_type"]
- var/C = G.data["blood_DNA"]
- dat += "
Chemmaster 3000Chemical infos:
Name:
[A]
Description:
Blood Type: [B]
DNA: [C]
(Back)"
- else
- dat += "
Chemmaster 3000Chemical infos:
Name:
[href_list["name"]]
Description:
[href_list["desc"]]
(Back)"
- else
- dat += "
Condimaster 3000Condiment infos:
Name:
[href_list["name"]]
Description:
[href_list["desc"]]
(Back)"
- usr << browse(dat, "window=chem_master;size=575x400")
- return
+ {{if data.pillBottle}}
+
{{:data.pillBottle.total}} / {{:data.pillBottle.max}}
+ {{/if}}
+
+
{{:helper.link(data.beaker ? 'Eject Beaker and Clear Buffer' : 'Please insert beaker', 'eject', {'eject' : 1}, data.beaker ? null : 'linkOff')}}
+
+ {{if data.beaker}}
+ {{if data.beaker.total_volume}}
+ Add to buffer:
+ {{for data.beaker.reagent_list}}
+
+
{{:value.name}}
+
{{:value.volume}} Units
+
+
+ {{:helper.link('Analyze', 'signal-diag', {'tab_select' : 'analyze', 'desc' : value.description, 'name' : value.name})}}
+ {{:helper.link('1', 'plus', {'add' : value.id, 'amount' : 1})}}
+ {{:helper.link('5', 'plus', {'add' : value.id, 'amount' : 5})}}
+ {{:helper.link('10', 'plus', {'add' : value.id, 'amount' : 10})}}
+ {{:helper.link('30', 'plus', {'add' : value.id, 'amount' : 30})}}
+ {{:helper.link('60', 'plus', {'add' : value.id, 'amount' : 60})}}
+ {{:helper.link('All', 'plus', {'add' : value.id, 'amount' : value.volume})}}
+ {{:helper.link('Custom', 'plus', {'addcustom' : value.id})}}
+
+ {{/for}}
+ {{else}}
+ Beaker is empty.
+ {{/if}}
+
+
+
Transfer to
+ {{:helper.link(!data.mode ? 'disposal' : 'beaker', null, {'toggle' : 1})}}
+
+ {{if data.reagents}}
+ {{if data.reagents.total_volume}}
+ {{for data.reagents.reagent_list}}
+
+
{{:value.name}}
+
{{:value.volume}} Units
+
+
+ {{:helper.link('Analyze', 'signal-diag', {'tab_select' : 'analyze', 'desc' : value.description, 'name' : value.name})}}
+ {{:helper.link('1', 'minus', {'remove' : value.id, 'amount' : 1})}}
+ {{:helper.link('5', 'minus', {'remove' : value.id, 'amount' : 5})}}
+ {{:helper.link('10', 'minus', {'remove' : value.id, 'amount' : 10})}}
+ {{:helper.link('30', 'minus', {'remove' : value.id, 'amount' : 30})}}
+ {{:helper.link('60', 'minus', {'remove' : value.id, 'amount' : 60})}}
+ {{:helper.link('All', 'minus', {'remove' : value.id, 'amount' : value.volume})}}
+ {{:helper.link('Custom', 'minus', {'removecustom' : value.id})}}
+
+ {{/for}}
+ {{/if}}
+ {{else}}
+ Empty
+ {{/if}}
+ {{if !data.condi}}
+
+
+ {{:helper.link('Create pill (60 units max)', null, {'createpill' : 1})}}
+ {{:helper.link('Create multiple pills', null, {'createpill_multiple' : 1})}}
+ {{:helper.link('Create bottle (60 units max)', null, {'createbottle' : 1})}}
+
+
+ {{:helper.link('', 'pill pill' + data.pillSprite, {'tab_select' : 'pill'}, null, 'link32')}}
+ {{:helper.link('', 'pill bottle' + data.bottleSprite, {'tab_select' : 'bottle'}, null, 'link32')}}
+
+ {{/if}}
+ {{/if}}
- else if (href_list["add"])
+{{else data.tab == 'analyze'}}
+ {{if !data.condi}}
+
Chemical Info:
+ {{else}}
+
Condiment Info:
+ {{/if}}
+
+
Name:
+
{{:data.analyzeData.name}}
+
+ {{if data.analyzeData.name == 'Blood'}}
+
+
Blood Type:
+
{{:data.analyzeData.blood_type}}
+
+
+
DNA:
+
{{:data.analyzeData.blood_DNA}}
+
+ {{else}}
+
+
Description:
+
{{:data.analyzeData.desc}}
+
+ {{/if}}
+ {{:helper.link('Back', 'arrowreturn-1-w', {'tab_select' : 'home'})}}
- if(href_list["amount"])
- var/id = href_list["add"]
- var/amount = Clamp((text2num(href_list["amount"])), 0, 200)
- R.trans_id_to(src, id, amount)
-
- else if (href_list["addcustom"])
-
- var/id = href_list["addcustom"]
- useramount = input("Select the amount to transfer.", 30, useramount) as num
- useramount = Clamp(useramount, 0, 200)
- src.Topic(null, list("amount" = "[useramount]", "add" = "[id]"))
-
- else if (href_list["remove"])
-
- if(href_list["amount"])
- var/id = href_list["remove"]
- var/amount = Clamp((text2num(href_list["amount"])), 0, 200)
- if(mode)
- reagents.trans_id_to(beaker, id, amount)
- else
- reagents.remove_reagent(id, amount)
-
-
- else if (href_list["removecustom"])
-
- var/id = href_list["removecustom"]
- useramount = input("Select the amount to transfer.", 30, useramount) as num
- useramount = Clamp(useramount, 0, 200)
- src.Topic(null, list("amount" = "[useramount]", "remove" = "[id]"))
-
- else if (href_list["toggle"])
- mode = !mode
-
- else if (href_list["main"])
- attack_hand(usr)
- return
- else if (href_list["eject"])
- if(beaker)
- beaker:loc = src.loc
- beaker = null
- reagents.clear_reagents()
- icon_state = "mixer0"
- else if (href_list["createpill"] || href_list["createpill_multiple"])
- var/count = 1
-
- if(reagents.total_volume/count < 1) //Sanity checking.
- return
-
- if (href_list["createpill_multiple"])
- count = input("Select the number of pills to make.", "Max [max_pill_count]", pillamount) as num
- count = Clamp(count, 1, max_pill_count)
-
- if(reagents.total_volume/count < 1) //Sanity checking.
- return
-
- var/amount_per_pill = reagents.total_volume/count
- if (amount_per_pill > 60) amount_per_pill = 60
-
- var/name = sanitizeSafe(input(usr,"Name:","Name your pill!","[reagents.get_master_reagent_name()] ([amount_per_pill] units)"), MAX_NAME_LEN)
-
- if(reagents.total_volume/count < 1) //Sanity checking.
- return
- while (count--)
- var/obj/item/weapon/reagent_containers/pill/P = new/obj/item/weapon/reagent_containers/pill(src.loc)
- if(!name) name = reagents.get_master_reagent_name()
- P.name = "[name] pill"
- P.pixel_x = rand(-7, 7) //random position
- P.pixel_y = rand(-7, 7)
- P.icon_state = "pill"+pillsprite
- reagents.trans_to_obj(P,amount_per_pill)
- if(src.loaded_pill_bottle)
- if(loaded_pill_bottle.contents.len < loaded_pill_bottle.storage_slots)
- P.loc = loaded_pill_bottle
- src.updateUsrDialog()
-
- else if (href_list["createbottle"])
- if(!condi)
- var/name = sanitizeSafe(input(usr,"Name:","Name your bottle!",reagents.get_master_reagent_name()), MAX_NAME_LEN)
- var/obj/item/weapon/reagent_containers/glass/bottle/P = new/obj/item/weapon/reagent_containers/glass/bottle(src.loc)
- if(!name) name = reagents.get_master_reagent_name()
- P.name = "[name] bottle"
- P.pixel_x = rand(-7, 7) //random position
- P.pixel_y = rand(-7, 7)
- P.icon_state = bottlesprite
- reagents.trans_to_obj(P,60)
- P.update_icon()
- else
- var/obj/item/weapon/reagent_containers/food/condiment/P = new/obj/item/weapon/reagent_containers/food/condiment(src.loc)
- reagents.trans_to_obj(P,50)
- else if(href_list["change_pill"])
- #define MAX_PILL_SPRITE 20 //max icon state of the pill sprites
- var/dat = "
"
- for(var/i = 1 to MAX_PILL_SPRITE)
- dat += " |
"
- dat += "
"
- usr << browse(dat, "window=chem_master")
- return
- else if(href_list["change_bottle"])
- var/dat = "
"
- for(var/sprite in BOTTLE_SPRITES)
- dat += " |
"
- dat += "
"
- usr << browse(dat, "window=chem_master")
- return
- else if(href_list["pill_sprite"])
- pillsprite = href_list["pill_sprite"]
- else if(href_list["bottle_sprite"])
- bottlesprite = href_list["bottle_sprite"]
-
- src.updateUsrDialog()
- return
-
-
-{{:helper.link(data.beaker ? 'Eject Beaker and Clear Buffer' : 'Please insert beaker', 'eject', {'eject' : 1}), data.beaker ? null : 'linkOff'}}
-{{:helper.link(data.pillBottle ? 'Eject Pill Bottle' : 'Please insert beaker', 'eject', {'ejectp' : 1}), data.pillBottle ? null : 'linkOff'}}
-{{:data.pillBottleTotal}} / {{:data.pillBottleMax}}
-
-{{if data.beakerReagent}}
- Add to buffer:
- {{for data.beakerReagent}}
- {{:value.name}} , {{:value.volume}} Units -
- {{:helper.link('Analyze', 'signal-diag', {'analyze' : 1, 'desc' : value.description, 'name' : value.name})}}
- {{:helper.link('1', 'plus', {'add' : value.id, 'amount' : 1})}}
- {{:helper.link('5', 'plus', {'add' : value.id, 'amount' : 5})}}
- {{:helper.link('10', 'plus', {'add' : value.id, 'amount' : 10})}}
- {{:helper.link('30', 'plus', {'add' : value.id, 'amount' : 30})}}
- {{:helper.link('60', 'plus', {'add' : value.id, 'amount' : 60})}}
- {{:helper.link('All', 'plus', {'add' : value.id, 'amount' : value.volume})}}
- {{:helper.link('Custom', 'plus', {'addcustom' : value.id})}}
-
-if(!beaker) data.beaker
-if(src.loaded_pill_bottle) data.pillBottle
-[[loaded_pill_bottle.contents.len]/[loaded_pill_bottle.storage_slots]\] data.pillBottleTotal data.pillBottleMax
-
-var/datum/reagents/R = beaker:reagents
-if(!R.total_volume)
- dat += "Beaker is empty."
- else
- dat += "Add to buffer:
"
- for(var/datum/reagent/G in R.reagent_list)
- dat += "[G.name] , [G.volume] Units - "
- dat += "
(Analyze) "
- dat += "
(1) "
- dat += "
(5) "
- dat += "
(10) "
- dat += "
(30) "
- dat += "
(60) "
- dat += "
(All) "
- dat += "
(Custom)"
-
- dat += "
Transfer to
[(!mode ? "disposal" : "beaker")]:"
- if(reagents.total_volume)
- for(var/datum/reagent/N in reagents.reagent_list)
- dat += "[N.name] , [N.volume] Units - "
- dat += "
(Analyze) "
- dat += "
(1) "
- dat += "
(5) "
- dat += "
(10) "
- dat += "
(30) "
- dat += "
(60) "
- dat += "
(All) "
- dat += "
(Custom)"
- else
- dat += "Empty
"
- if(!condi)
- dat += "
Create pill (60 units max)
"
- dat += "
Create multiple pills"
- dat += "
Create bottle (60 units max)
"
- else
- dat += "
Create bottle (50 units max)"
- if(!condi)
- user << browse("
Chemmaster 3000Chemmaster menu:
[dat]", "window=chem_master;size=575x400")
- else
- user << browse("
Condimaster 3000Condimaster menu:
[dat]", "window=chem_master;size=575x400")
- onclose(user, "chem_master")
- return
\ No newline at end of file
+{{else data.tab == 'pill'}}
+ {{for data.pillSpritesAmount}}
+ {{:helper.link('', 'pill pill' + value, {'pill_sprite' : value}, null, data.pillSprite == value ? 'linkOn link32' : 'link32')}}
+ {{/for}}
+
{{:helper.link('Return', 'arrowreturn-1-w', {'tab_select' : 'home'})}}
+
+{{else data.tab == 'bottle'}}
+ {{for data.bottleSpritesAmount}}
+ {{:helper.link('', 'pill bottle' + value, {'bottle_sprite' : value}, null, data.bottleSprite == value ? 'linkOn link32' : 'link32')}}
+ {{/for}}
+
{{:helper.link('Return', 'arrowreturn-1-w', {'tab_select' : 'home'})}}
+{{/if}}
\ No newline at end of file
diff --git a/nano/templates/cloning.tmpl b/nano/templates/cloning.tmpl
index d1ea7df3adb..a6e0a2544c5 100644
--- a/nano/templates/cloning.tmpl
+++ b/nano/templates/cloning.tmpl
@@ -77,7 +77,7 @@
{{:helper.link('Delete Record', 'trash', {'del_rec' : 1}, null, 'redButton')}}
Name: {{:data.activeRecord.real_name}}
-
+ -->
{{:helper.link('Load from disk', 'transfer-e-w', {'disk' : 'load'}, data.disk ? null : 'linkOff')}}
diff --git a/nano/templates/fax.tmpl b/nano/templates/fax.tmpl
index 5af31d6adc3..4745a7aeb39 100644
--- a/nano/templates/fax.tmpl
+++ b/nano/templates/fax.tmpl
@@ -3,30 +3,53 @@
See: code/modules/paperwork/faxmachine.dm
-->
-Confirm Identity: {{:helper.link(data.scanName, 'check', {'scan' : 1})}}
+
+
+ Confirm Identity:
+
+ {{:helper.link(data.scanName ? data.scanName : 'Insert Card', 'check', {'scan' : 1})}}
+ {{if data.authenticated}}
+ {{:helper.link('Log Out', 'eject', {'logout' : 1}, null, 'redButton')}}
+ {{else}}
+ {{:helper.link('Log In', 'person', {'auth' : 1}, data.scanName ? null : 'linkOff')}}
+ {{/if}}
+
{{if data.authenticated}}
- {{:helper.link('Log Out', 'eject', {'logout' : 1}, null, 'linkDanger')}}
+
-
Logged in to: {{:data.bossName}} Quantum Entanglement Network
+
+
+
+ Logged in to:
+
+
+ {{:data.bossName}} Quantum Entanglement Network
+
+
{{if data.copyItem}}
- {{:helper.link('Remove Item', 'eject', {'remove' : 1})}}
{{if data.cooldown}}
-
Transmitter arrays realigning. Please stand by.
+
Transmitter arrays realigning. Please stand by.
{{else}}
- {{:helper.link('Send', 'signal-diag', {'send' : 1})}}
-
Currently sending: {{:data.copyItemName}}
-
Sending to: {{:helper.link(data.destination, 'tag', {'dept' : 1})}}
+
+
Currently sending:
+
{{:data.copyItemName}}
+
+
+
Sending to:
+ {{:helper.link(data.destination, 'tag', {'dept' : 1})}}
+
+
{{:helper.link('Send', 'signal-diag', {'send' : 1})}}
{{/if}}
{{else}}
- Please insert paper to send via secure connection.
+
Please insert paper to send via secure connection.
{{if data.cooldown}}
-
Transmitter arrays realigning. Please stand by.
+
Transmitter arrays realigning. Please stand by.
{{/if}}
{{/if}}
{{else}}
- {{:helper.link('Log In', 'person', {'auth' : 1})}}
- Proper authentication is required to use this device.
- {{if data.copyItem}}
- {{:helper.link('Remove Item', 'eject', {'remove' : 1})}}
- {{/if}}
-{{/if}}
\ No newline at end of file
+
Proper authentication is required to use this device.
+{{/if}}
+{{if data.copyItem}}
+
{{:helper.link('Remove Item', 'eject', {'remove' : 1})}}
+{{/if}}
+
diff --git a/nano/templates/holodeck.tmpl b/nano/templates/holodeck.tmpl
index 6c813944ddb..71d4ad56056 100644
--- a/nano/templates/holodeck.tmpl
+++ b/nano/templates/holodeck.tmpl
@@ -3,31 +3,34 @@
See: code/modules/holodeck/HolodeckControl.dm
-->
-Current Loaded Programs:
+
Current Loaded Programs:
{{for data.supportedPrograms}}
- {{:helper.link(value.name, data.currentProgram == value.program ? 'check' : 'clear', {'program' : value.program}, data.currentProgram == value.program ? 'linkOn' : null)}}
+
{{:helper.link(value.name, data.currentProgram == value.program ? 'check' : 'close', {'program' : value.program}, null, data.currentProgram == value.program ? 'linkOn' : null)}}
{{/for}}
-Please ensure that only holographic weapons are used in the holodeck if a combat simulation has been loaded.
+
Please ensure that only holographic weapons are used in the holodeck if a combat simulation has been loaded.
{{if data.isSilicon}}
{{if data.safetyDisabled}}
{{if data.emagged}}
-
ERROR: Cannot re-enable Safety Protocols.
+
ERROR: Cannot re-enable Safety Protocols.
{{else}}
- {{:helper.link('Re-Enable Safety Protocols?', 'help', {'AIoverride' : 1}, null, 'linkOn')}}
+
{{:helper.link('Re-Enable Safety Protocols?', 'help', {'AIoverride' : 1}, null, 'linkOn')}}
{{/if}}
{{else}}
- {{:helper.link('Re-Enable Safety Protocols?', 'help', {'AIoverride' : 1}, null, 'linkDanger')}}
+
{{:helper.link('Re-Enable Safety Protocols?', 'help', {'AIoverride' : 1}, null, 'redButton')}}
{{/if}}
{{/if}}
{{if data.safetyDisabled}}
{{for data.restrictedPrograms}}
- {{:helper.link('Begin ' + value.name, data.currentProgram == value.program ? 'check' : 'clear', {'program' : value.program}, data.currentProgram == value.program ? 'linkOn' : null)}}
- Ensure the holodeck is empty before testing.
+
{{:helper.link('Begin ' + value.name, data.currentProgram == value.program ? 'check' : 'close', {'program' : value.program}, null, data.currentProgram == value.program ? 'linkOn' : null)}}
{{/for}}
- Safety Protocols are
DISABLED
+
Ensure the holodeck is empty before testing.
+
Safety Protocols are DISABLED
{{else}}
- Safety Protocols are
ENABLED
+
Safety Protocols are ENABLED
{{/if}}
-{{:helper.link(data.gravity ? 'On ' : 'Off', data.gravity ? 'check' : 'clear', {'gravity' : 1}, null, data.gravity ? 'linkOn' : linkDanger')}}
\ No newline at end of file
+
+
Gravity:
+ {{:helper.link(data.gravity ? 'On ' : 'Off', data.gravity ? 'check' : 'close', {'gravity' : 1}, null, data.gravity ? 'linkOn' : 'redButton')}}
+
\ No newline at end of file
diff --git a/nano/templates/laptop_vendor.tmpl b/nano/templates/laptop_vendor.tmpl
index 6854619b19d..e0de4f7272f 100644
--- a/nano/templates/laptop_vendor.tmpl
+++ b/nano/templates/laptop_vendor.tmpl
@@ -5,11 +5,9 @@
{{if data.mode == 0}}
-
- Please choose your laptop customization options.
- Your comptuer will automatically be loaded with any programs you can use after the transaction is complete.
- Some programs will require additional components to be installed!
-
+
Please choose your laptop customization options.
+ Your comptuer will automatically be loaded with any programs you can use after the transaction is complete.
+
Some programs will require additional components to be installed!
diff --git a/nano/templates/operating.tmpl b/nano/templates/operating.tmpl
index 3772639915d..c53bd94c651 100644
--- a/nano/templates/operating.tmpl
+++ b/nano/templates/operating.tmpl
@@ -6,67 +6,39 @@
{{if data.table}}
Patient Information:
{{if data.victim}}
-
-
- Name:
+
+
Name:
+
{{:data.victim.real_name}}
+
+
Age:
+
{{:data.victim.age}}
+
+
Blood Type:
+
{{:data.victim.b_type}}
- {{:data.victim.real_name}}
-
-
-
- Age:
+
+
+
Health:
+
{{:data.victim.health}}
+
+
Brute Damage:
+
{{:data.victim.brute}}
+
+
Toxins Damage:
+
{{:data.victim.tox}}
+
+
Fire Damage:
+
{{:data.victim.burn}}
+
+
Suffocation Damage:
+
{{:data.victim.oxy}}
+
+
Patient Status:
+
{{:data.victim.stat}}
+
+
Heartbeat Rate:
+
{{:data.victim.pulse}}
- {{:data.victim.age}}
-
-
-
- Blood Type:
-
- {{:data.victim.b_type}}
-
-
-
-
- Health:
-
- {{:data.victim.health}}
-
-
-
- Brute Damage:
-
- {{:data.victim.brute}}
-
-
-
- Toxins Damage:
-
- {{:data.victim.tox}}
-
-
-
- Fire Damage:
-
- {{:data.victim.burn}}
-
-
-
- Suffocation Damage:
-
- {{:data.victim.oxy}}
-
-
-
- Patient Status:
-
- {{:data.victim.stat}}
-
-
-
- Heartbeat Rate:
-
- {{:data.victim.pulse}}
-
{{else}}
No Patient Detected
{{/if}}
diff --git a/nano/templates/photocopier.tmpl b/nano/templates/photocopier.tmpl
index 9d1bcf79187..9c9910e969b 100644
--- a/nano/templates/photocopier.tmpl
+++ b/nano/templates/photocopier.tmpl
@@ -10,7 +10,7 @@
{{:helper.link('Copy', 'copy', {'copy' : 1})}}
-
+
Printing:
@@ -23,7 +23,7 @@
-
Current toner level:
+
Current toner level:
{{:data.toner}}u
{{else}}