diff --git a/code/game/dna/dna_modifier.dm b/code/game/dna/dna_modifier.dm
index a5cecd0d2a..45a6c52a25 100644
--- a/code/game/dna/dna_modifier.dm
+++ b/code/game/dna/dna_modifier.dm
@@ -363,6 +363,8 @@
data["selectedMenuKey"] = selected_menu_key
data["locked"] = src.connected.locked
data["hasOccupant"] = connected.occupant ? 1 : 0
+
+ data["isInjectorReady"] = injector_ready
data["hasDisk"] = disk ? 1 : 0
diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm
index f993e0816d..8b5400fa40 100644
--- a/code/modules/reagents/Chemistry-Machinery.dm
+++ b/code/modules/reagents/Chemistry-Machinery.dm
@@ -117,7 +117,7 @@
}
if (!ui)
// the ui does not exist, so we'll create a new one
- ui = new(user, src, ui_key, "chem_dispenser.tmpl", "Chem Dispenser 5000", 370, 605)
+ ui = new(user, src, ui_key, "chem_dispenser.tmpl", "Chem Dispenser 5000", 374, 640)
// When the UI is first opened this is the data it will use
ui.set_initial_data(data)
ui.open()
diff --git a/nano/css/shared.css b/nano/css/shared.css
index c9f4b2681b..76aac18f46 100644
--- a/nano/css/shared.css
+++ b/nano/css/shared.css
@@ -24,7 +24,7 @@ hr {
margin: 0 2px 2px 0;
cursor:default;
}
-.noIcon {
+.hasIcon {
padding: 0px 4px 4px 0px;
}
@@ -163,8 +163,8 @@ h4 {
font-size: 12px;
font-style: italic;
font-weight: bold;
- padding: 3px 0px 3px 0px;
- margin: 4px;
+ padding: 3px 4px 3px 4px;
+ margin: 4px 0 4px 0;
}
.notice.icon {
padding: 2px 4px 0 20px;
@@ -179,6 +179,12 @@ h4 {
div.notice {
clear: both;
}
+.itemGroup {
+ border: 1px solid #e9c183;
+ background: #2c2c2c;
+ padding: 4px;
+ clear: both;
+}
.item {
width: 100%;
margin: 4px 0 0 0;
diff --git a/nano/templates/dna_modifier.tmpl b/nano/templates/dna_modifier.tmpl
index 129a456d42..d4c7d36c82 100644
--- a/nano/templates/dna_modifier.tmpl
+++ b/nano/templates/dna_modifier.tmpl
@@ -101,113 +101,117 @@ Used In File(s): D:\Development\SS13-BS12\code\game\dna\dna_modifier.dm
-
- Load Data:
-
-
- {^{:~link('Subject U.I.', 'link', {'bufferOption' : 'saveUI', 'bufferId' : (#index + 1)}, !~root.hasOccupant ? 'disabled' : null)}}
- {^{:~link('Subject U.I. + U.E.', 'link', {'bufferOption' : 'saveUIAndUE', 'bufferId' : (#index + 1)}, !~root.hasOccupant ? 'disabled' : null)}}
- {^{:~link('Subject S.E.', 'link', {'bufferOption' : 'saveSE', 'bufferId' : (#index + 1)}, !~root.hasOccupant ? 'disabled' : null)}}
- {^{:~link('From Disk', 'disk', {'bufferOption' : 'loadDisk', 'bufferId' : (#index + 1)}, !~root.hasDisk || !~root.disk.data ? 'disabled' : null)}}
-
-
- {^{if data}}
+
- Label:
+ Load Data:
- {^{:~link(label, 'document-b', {'bufferOption' : 'changeLabel', 'bufferId' : (#parent.index + 1)})}}
+ {^{:~link('Subject U.I.', 'link', {'bufferOption' : 'saveUI', 'bufferId' : (#index + 1)}, !~root.hasOccupant ? 'disabled' : null)}}
+ {^{:~link('Subject U.I. + U.E.', 'link', {'bufferOption' : 'saveUIAndUE', 'bufferId' : (#index + 1)}, !~root.hasOccupant ? 'disabled' : null)}}
+ {^{:~link('Subject S.E.', 'link', {'bufferOption' : 'saveSE', 'bufferId' : (#index + 1)}, !~root.hasOccupant ? 'disabled' : null)}}
+ {^{:~link('From Disk', 'disk', {'bufferOption' : 'loadDisk', 'bufferId' : (#index + 1)}, !~root.hasDisk || !~root.disk.data ? 'disabled' : null)}}
+ {^{if data}}
+
+
+ Label:
+
+
+ {^{:~link(label, 'document-b', {'bufferOption' : 'changeLabel', 'bufferId' : (#parent.index + 1)})}}
+
+
+
+
+ Subject:
+
+
+ {^{:owner ? owner : 'Unknown'}}
+
+
+
+
+ Stored Data:
+
+
+ {^{:data == 'ui' ? 'Unique Identifiers' : 'Structural Enzymes'}}
+ {^{:ue ? ' + Unique Enzymes' : ''}}
+
+
+ {{else}}
+
+
+ This buffer is empty.
+
+
+ {{/if}}
- Subject:
+ Options:
- {^{:owner ? owner : 'Unknown'}}
+ {^{:~link('Clear', 'trash', {'bufferOption' : 'clear', 'bufferId' : (#index + 1)}, !data ? 'disabled' : null)}}
+ {^{:~link('Injector', ~root.isInjectorReady ? 'pencil' : 'clock', {'bufferOption' : 'createInjector', 'bufferId' : (#index + 1)}, !~root.isInjectorReady || !data ? 'disabled' : null)}}
+ {^{:~link('Block Injector', ~root.isInjectorReady ? 'pencil' : 'clock', {'bufferOption' : 'createInjector', 'bufferId' : (#index + 1), 'createBlockInjector' : 1}, !~root.isInjectorReady || !data ? 'disabled' : null)}}
+ {^{:~link('Transfer', 'radiation', {'bufferOption' : 'transfer', 'bufferId' : (#index + 1)}, !~root.hasOccupant || !data ? 'disabled' : null)}}
+ {^{:~link('Save To Disk', 'disk', {'bufferOption' : 'saveDisk', 'bufferId' : (#index + 1)}, !data || !~root.hasDisk ? 'disabled' : null)}}
-
-
- Stored Data:
-
-
- {^{:data == 'ui' ? 'Unique Identifiers' : 'Structural Enzymes'}}
- {^{:ue ? ' + Unique Enzymes' : ''}}
-
-
- {{else}}
-
-
- This buffer is empty.
-
-
- {{/if}}
-
-
- Options:
-
-
- {^{:~link('Clear', 'trash', {'bufferOption' : 'clear', 'bufferId' : (#index + 1)}, !data ? 'disabled' : null)}}
- {^{:~link('Injector', 'pencil', {'bufferOption' : 'createInjector', 'bufferId' : (#index + 1)}, !data ? 'disabled' : null)}}
- {^{:~link('Block Injector', 'pencil', {'bufferOption' : 'createInjector', 'bufferId' : (#index + 1), 'createBlockInjector' : 1}, !data ? 'disabled' : null)}}
- {^{:~link('Transfer', 'radiation', {'bufferOption' : 'transfer', 'bufferId' : (#index + 1)}, !~root.hasOccupant || !data ? 'disabled' : null)}}
- {^{:~link('Save To Disk', 'disk', {'bufferOption' : 'saveDisk', 'bufferId' : (#index + 1)}, !data || !~root.hasDisk ? 'disabled' : null)}}
-
{{/for}}
Data Disk
- {^{if hasDisk}}
- {^{if disk.data}}
-
-
- Label:
+
+ {^{if hasDisk}}
+ {^{if disk.data}}
+
+
+ Label:
+
+
+ {^{:disk.label ? disk.label : 'No Label'}}
+
-
- {^{:disk.label ? disk.label : 'No Label'}}
+
+
+ Subject:
+
+
+ {^{:disk.owner ? disk.owner : 'Unknown'}}
+
-
-
-
- Subject:
+
+
+ Stored Data:
+
+
+ {^{:disk.data == 'ui' ? 'Unique Identifiers' : 'Structural Enzymes'}}
+ {^{:disk.ue ? ' + Unique Enzymes' : ''}}
+
-
- {^{:disk.owner ? disk.owner : '
Unknown'}}
+ {{else}}
+
-
-
-
- Stored Data:
-
-
- {^{:disk.data == 'ui' ? 'Unique Identifiers' : 'Structural Enzymes'}}
- {^{:disk.ue ? ' + Unique Enzymes' : ''}}
-
-
+ {{/if}}
{{else}}
- Disk is blank.
+ No disk inserted.
{{/if}}
- {{else}}
-
-
No disk inserted.
+
+ Options:
+
+
+ {^{:~link('Wipe Disk', 'trash', {'bufferOption' : 'wipeDisk'}, !hasDisk || !disk.data ? 'disabled' : null)}}
+ {^{:~link('Eject Disk', 'eject', {'bufferOption' : 'ejectDisk'}, !hasDisk ? 'disabled' : null)}}
-
- {{/if}}
-
-
- Options:
-
-
- {^{:~link('Wipe Disk', 'trash', {'bufferOption' : 'wipeDisk'}, !hasDisk || !disk.data ? 'disabled' : null)}}
- {^{:~link('Eject Disk', 'eject', {'bufferOption' : 'ejectDisk'}, !hasDisk ? 'disabled' : null)}}
{{else selectedMenuKey == 'rejuvenators'}}