Adds custom lighting support to modular computers, and a flashlight to tablets

This commit is contained in:
CitadelStationBot
2017-06-21 15:43:05 -05:00
parent df64469de1
commit f36853ea75
7 changed files with 72 additions and 13 deletions
+5
View File
@@ -11,4 +11,9 @@
<td><ui-button state='{{running ? null : "disabled"}}' icon='close' action='PC_killprogram' params='{"name": "{{name}}"}'></ui-button>
{{/each}}
</table>
<br><br>
{{#if data.has_light}}
<ui-button action='PC_toggle_light' style='{{data.light_on ? "selected" : null}}'>Toggle Flashlight</ui-button><br>
<ui-button action='PC_light_color'>Change Flashlight Color <span style='border:1px solid #161616; background-color: {{data.comp_light_color}};'>&nbsp;&nbsp;&nbsp;</span></ui-button>
{{/if}}
</ui-display>