[MIRROR] [READY] RND TECHWEBS + DEPARTMENTAL LATHES (#4014)
* [READY] RND TECHWEBS + DEPARTMENTAL LATHES * resetting all the maps because we can worry about them later. * Regexing * I'm fucked * Fixes * . * maps * bleh * ree * fixes
This commit is contained in:
committed by
kevinz000
parent
b5600cb91c
commit
cc0b768c72
@@ -0,0 +1,47 @@
|
||||
<link rel='ractive' href='./rdconsole/rdheader.ract'>
|
||||
<link rel='ractive' href='./rdconsole/techweb.ract'>
|
||||
<link rel='ractive' href='./rdconsole/nodeview.ract'>
|
||||
<link rel='ractive' href='./rdconsole/designview.ract'>
|
||||
<link rel='ractive' href='./rdconsole/diskopstech.ract'>
|
||||
<link rel='ractive' href='./rdconsole/diskopsdesign.ract'>
|
||||
<link rel='ractive' href='./rdconsole/destruct.ract'>
|
||||
<link rel='ractive' href='./rdconsole/protolathe.ract'>
|
||||
<link rel='ractive' href='./rdconsole/circuit.ract'>
|
||||
<link rel='ractive' href='./rdconsole/settings.ract'>
|
||||
<rdheader/>
|
||||
{{#if data.locked}}
|
||||
<ui-display title='CONSOLE LOCKED'>
|
||||
<ui-button action='Unlock'>Unlock</ui-button>
|
||||
</ui-display>
|
||||
{{/if}}
|
||||
{{#if !data.locked}}
|
||||
<ui-tabs tabs='{{data.tabs}}'>
|
||||
<tab name='Technology'>
|
||||
<techweb/>
|
||||
</tab>
|
||||
<tab name='View Node'>
|
||||
<nodeview/>
|
||||
</tab>
|
||||
<tab name='View Design'>
|
||||
<designview/>
|
||||
</tab>
|
||||
<tab name='Disk Operations - Design'>
|
||||
<diskopsdesign/>
|
||||
</tab>
|
||||
<tab name='Disk Operations - Technology'>
|
||||
<diskopstech/>
|
||||
</tab>
|
||||
<tab name='Deconstructive Analyzer'>
|
||||
<destruct/>
|
||||
</tab>
|
||||
<tab name='Protolathe'>
|
||||
<protolathe/>
|
||||
</tab>
|
||||
<tab name='Circuit Imprinter'>
|
||||
<circuit/>
|
||||
</tab>
|
||||
<tab name='Settings'>
|
||||
<settings/>
|
||||
</tab>
|
||||
</ui-tabs>
|
||||
{{/if}}
|
||||
@@ -0,0 +1,57 @@
|
||||
{{#if data.circuit_linked}}
|
||||
{{#if data.circuitbusy}}
|
||||
<ui-display title='Circuit Imprinter Busy!'></ui-display>
|
||||
{{else}}
|
||||
<ui-display>
|
||||
<ui-section>Search Available Designs:
|
||||
<input value={{textsearch}} placeholder="Type Here" class="text"/>
|
||||
<ui-button action='textSearch' params='{"latheType" : "circuit", "inputText" : {{textsearch}}}'>Search</ui-button>
|
||||
</ui-section>
|
||||
<ui-section>Materials: {{data.circuitmats}} / {{data.circuitmaxmats}}</ui-section>
|
||||
<ui-section>Reagents: {{data.circuitchems}} / {{data.circuitmaxchems}}</ui-section>
|
||||
<ui-display>
|
||||
|
||||
<ui-tabs tabs='{{data.lathe_tabs}}'>
|
||||
<tab name='Category List'>
|
||||
{{#each data.circuitcats}}
|
||||
<ui-button action='switchcat' state='{{data.circuitcat == "{{name}}"? "selected" : null}}' params='{"type" : "circuit", "cat" : "{{name}}"}'>{{name}}</ui-button>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Selected Category'>
|
||||
{{#each data.circuitdes}}
|
||||
<ui-section>{{name}}{{matstring}}
|
||||
<ui-button action='print' state='{{canprint > 1? null : "disabled"}}' params='{"latheType" : "circuit", "id" : "{{id}}"}'>Print</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Search Results'>
|
||||
{{#each data.circuitmatch}}
|
||||
<ui-section>{{name}}{{matstring}}
|
||||
<ui-button action='print' state='{{canprint > 1? null : "disabled"}}' params='{"latheType" : "circuit", "id" : "{{id}}"}'>Print</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Materials'>
|
||||
{{#each data.circuitmat_list}}
|
||||
<ui-section>{{name}} : {{amount}} cm3 -
|
||||
{{#if sheets > 0}}
|
||||
<input value={{number}} placeholder='1-{{sheets}}' class="number"/>
|
||||
<ui-button action='releasemats' params='{"latheType" : "circuit", "mat_id" : {{mat_id}}, "sheets" : {{number}}}'>Release</ui-button>
|
||||
{{/if}}
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Chemicals'>
|
||||
{{#each data.circuitchem_list}}
|
||||
<ui-section>{{name}} : {{amount}} -
|
||||
<ui-button action='purgechem' params='{"latheType" : "circuit", "name" : {{name}}, "id" : {{reagentid}}}'>Purge</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
|
||||
</tab>
|
||||
</ui-tabs>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<ui-display title='No Linked Circuit Imprinter'></ui-display>
|
||||
{{/if}}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
{{#if data.design_selected}}
|
||||
<ui-display title='{{data.sdesign_name}}'>
|
||||
<ui-section title='Description'>{{data.sdesign_desc}}</ui-section>
|
||||
</ui-display>
|
||||
<ui-display title='Lathe Types'>
|
||||
{{#if (data.sdesign_buildtype & 1)}}
|
||||
<ui-section title='Circuit Imprinter'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 2)}}
|
||||
<ui-section title='Protolathe'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 4)}}
|
||||
<ui-section title='Autolathe'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 8)}}
|
||||
<ui-section title='Crafting Fabricator'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 16)}}
|
||||
<ui-section title='Exosuit Fabricator'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 32)}}
|
||||
<ui-section title='Biogenerator'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 64)}}
|
||||
<ui-section title='Limb Grower'></ui-section>
|
||||
{{/if}}
|
||||
{{#if (data.sdesign_buildtype & 128)}}
|
||||
<ui-section title='Ore Smelter'></ui-section>
|
||||
{{/if}}
|
||||
</ui-display>
|
||||
<ui-display title='Materials'>
|
||||
{{#each data.sdesign_materials}}
|
||||
<ui-section title='{{matname}}'>{{matamt}} cm^3</ui-section>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
{{/if}}
|
||||
{{#if !data.design_selected}}
|
||||
<ui-display title='No Design Selected.'></ui-display>
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
{{#if data.destroy_linked}}
|
||||
{{#if data.destroybusy}}
|
||||
<ui-display title='Destructive Analyzer Busy!'></ui-display>
|
||||
{{else}}
|
||||
{{#if !data.destroy_loaded}}
|
||||
<ui-display title='Destructive Analyzer Unloaded'></ui-display>
|
||||
{{else}}
|
||||
<ui-display title='Loaded Item'>
|
||||
<ui-section title='Name'>{{data.destroy_name}}</ui-section>
|
||||
</ui-display>
|
||||
<ui-display title='Boost Nodes'>
|
||||
{{#each data.boost_paths}}
|
||||
<ui-section title='{{name}} | {{value}}'>
|
||||
<ui-button state='{{allow? null : "disabled"}}' action='deconstruct' params='{"id":{{id}}}'>Deconstruct and Boost</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
<ui-button action='eject_da'>Eject Item</ui-button>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<ui-display title='No Linked Destructive Analyzer'></ui-display>
|
||||
{{/if}}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
{{#if !data.ddisk}}
|
||||
<ui-display title='No Design Disk Loaded'></ui-display>
|
||||
{{else}}
|
||||
{{#if data.ddisk_update}}
|
||||
<ui-display title='Design Disk Updating'></ui-display>
|
||||
{{else}}
|
||||
{{#if !data.ddisk_upload}}
|
||||
<ui-display title='Design Disk'>
|
||||
<ui-section title='Disk Space'>Disk Capacity: {{data.ddisk_size}} blueprints.</ui-section>
|
||||
<ui-section title='Disk IO'><ui-button action='ddisk_upall'>Upload all designs</ui-button></ui-section>
|
||||
<ui-section title='Clear Disk'><ui-button action='clear_designdisk' style='danger'>WIPE ALL DATA</ui-button></ui-section>
|
||||
<ui-section title='Eject Disk'><ui-button action='eject_designdisk'>Eject Disk</ui-button></ui-section>
|
||||
</ui-display>
|
||||
<ui-display title='Disk Contents'>
|
||||
{{#each data.ddisk_designs}}
|
||||
<ui-section title='Number'>#{{pos}}:
|
||||
{{#if id == "null"}}
|
||||
<ui-button action='upload_empty_ddisk_slot' params='{"slot": "{{pos}}"}'>Upload to Empty Slot</ui-button>
|
||||
{{else}}
|
||||
<ui-button action='select_design' params='{"id": "{{id}}"}' state='{{data.sdesign_id == id ? "selected" : null}}'>{{name}}</ui-button>
|
||||
<ui-button action='ddisk_erasepos' style='danger' params='{"id": "{{id}}"}' state='{{id == "null"? "disabled" : null}}'>Delete Slot</ui-button>
|
||||
{{/if}}
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
{{else}}
|
||||
<ui-display title='Upload Design to Disk'><ui-section>Available Designs:</ui-section></ui-display>
|
||||
{{#each data.ddisk_possible_designs}}
|
||||
<ui-section><ui-button action='ddisk_uploaddesign' params='{"id": "{{id}}"}'>{{name}}</ui-button></ui-section>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
{{#if !data.tdisk}}
|
||||
<ui-display title='No Technology Disk Loaded'></ui-display>
|
||||
{{else}}
|
||||
{{#if data.tdisk_update}}
|
||||
<ui-display title='Technology Disk Updating'></ui-display>
|
||||
{{else}}
|
||||
<ui-display title='Technology Disk'>
|
||||
<ui-section title='Disk IO'><ui-button action='tdisk_down'>Download Research to Disk</ui-button><ui-button action='tdisk_up'>Upload Research from Disk</ui-button>
|
||||
<ui-section title='Clear Disk'><ui-button action='clear_techdisk' style='danger'>WIPE ALL DATA</ui-button></ui-section>
|
||||
<ui-section title='Eject Disk'><ui-button action='eject_techdisk'>Eject Disk</ui-button></ui-section>
|
||||
</ui-display>
|
||||
<ui-display title='Disk Contents'>
|
||||
{{#each data.tdisk_nodes}}
|
||||
<ui-button action='select_node' params='{"id": "{{id}}"}' state='{{data.snode_id == id ? "selected" : null}}'>{{display_name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -0,0 +1,26 @@
|
||||
{{#if data.node_selected}}
|
||||
<ui-display title='{{data.snode_name}}'>
|
||||
<ui-section title='Description'>Description: {{data.snode_desc}}</ui-section>
|
||||
<ui-section title='Point Cost'>Point Cost: {{data.snode_cost}}</ui-section>
|
||||
<ui-section title='Export Price'>Export Price: {{data.snode_export}}</ui-section>
|
||||
<ui-button action='research_node' params='{"id"="{{id}}"}' state='{{data.snode_researched? "disabled" : null}}'>{{data.snode_researched? "Researched" : "Research Node"}}</ui-button>
|
||||
</ui-display>
|
||||
<ui-display title='Prerequisites'>
|
||||
{{#each data.node_prereqs}}
|
||||
<ui-button action='select_node' params='{"id": "{{id}}"}' state='{{data.snode_id == id ? "selected" : null}}'>{{display_name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
<ui-display title='Unlocks'>
|
||||
{{#each data.node_unlocks}}
|
||||
<ui-button action='select_node' params='{"id": "{{id}}"}' state='{{data.snode_id == id ? "selected" : null}}'>{{display_name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
<ui-display title='Designs'>
|
||||
{{#each data.node_designs}}
|
||||
<ui-button action='select_design' params='{"id": "{{id}}"}' state='{{data.sdesign_id == id ? "selected" : null}}'>{{name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
{{/if}}
|
||||
{{#if !data.node_selected}}
|
||||
<ui-display title='No Node Selected.'></ui-display>
|
||||
{{/if}}
|
||||
@@ -0,0 +1,62 @@
|
||||
{{#if data.protolathe_linked}}
|
||||
{{#if data.protobusy}}
|
||||
<ui-display title='Protolathe Busy!'></ui-display>
|
||||
{{else}}
|
||||
<ui-display>
|
||||
<ui-section>Search Available Designs:
|
||||
<input value={{textsearch}} placeholder="Type Here" class="text"/>
|
||||
<ui-button action='textSearch' params='{"latheType" : "proto", "inputText" : {{textsearch}}}'>Search</ui-button>
|
||||
</ui-section>
|
||||
<ui-section>Materials: {{data.protomats}} / {{data.protomaxmats}}</ui-section>
|
||||
<ui-section>Reagents: {{data.protochems}} / {{data.protomaxchems}}</ui-section>
|
||||
<ui-display>
|
||||
|
||||
<ui-tabs tabs='{{data.lathe_tabs}}'>
|
||||
<tab name='Category List'>
|
||||
{{#each data.protocats}}
|
||||
<ui-button action='switchcat' state='{{data.protocat == name? "selected" : null}}' params='{"type" : "proto", "cat" : "{{name}}"}'>{{name}}</ui-button>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Selected Category'>
|
||||
{{#each data.protodes}}
|
||||
<ui-section>{{name}}{{matstring}}
|
||||
{{#if canprint > 1}}
|
||||
<input value={{number}} placeholder='1-{{canprint > 10? 10 : canprint}}' class="number"/>
|
||||
{{/if}}
|
||||
<ui-button action='print' state='{{canprint > 1? null : "disabled"}}' params='{"latheType" : "proto", "id" : "{{id}}", "amount" : "{{number}}"}'>Print</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Search Results'>
|
||||
{{#each data.protomatch}}
|
||||
<ui-section>{{name}}{{matstring}}
|
||||
{{#if canprint > 1}}
|
||||
<input value={{number}} placeholder='1-{{canprint > 10? 10 : canprint}}' class="number"/>
|
||||
{{/if}}
|
||||
<ui-button action='print' state='{{canprint > 1? null : "disabled"}}' params='{"latheType" : "proto", "id" : "{{id}}", "amount" : "{{number}}"}'>Print</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Materials'>
|
||||
{{#each data.protomat_list}}
|
||||
<ui-section>{{name}} : {{amount}} cm3 -
|
||||
{{#if sheets > 0}}
|
||||
<input value={{number}} placeholder='1-{{sheets}}' class="number"/>
|
||||
<ui-button action='releasemats' params='{"latheType" : "proto", "mat_id" : {{mat_id}}, "sheets" : {{number}}}'>Release</ui-button>
|
||||
{{/if}}
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
</tab>
|
||||
<tab name='Chemicals'>
|
||||
{{#each data.protochem_list}}
|
||||
<ui-section>{{name}} : {{amount}} -
|
||||
<ui-button action='purgechem' params='{"latheType" : "proto", "name" : {{name}}, "id" : {{reagentid}}}'>Purge</ui-button>
|
||||
</ui-section>
|
||||
{{/each}}
|
||||
|
||||
</tab>
|
||||
</ui-tabs>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<ui-display title='No Linked Protolathe'></ui-display>
|
||||
{{/if}}
|
||||
@@ -0,0 +1,7 @@
|
||||
<ui-display>
|
||||
<span class='memoedit'>NanoTrasen R&D Console</span><br/>
|
||||
Available Points: <ui-section title='Research Points'>{{data.research_points_stored}}</ui-section>
|
||||
<ui-section title='Page Selection - {{page}}'><input value={{pageselect}} placeholder='1' class="number"/>
|
||||
Select Page: <ui-button action='page' params='{"num" : "{{pageselect}}"}'> [Go] </ui-button>
|
||||
</ui-section>
|
||||
</ui-display>
|
||||
@@ -0,0 +1,6 @@
|
||||
<span class='bad'>Settings</span><br/><br/>
|
||||
<ui-button action='Resync'>RESYNC MACHINERY</ui-button><br/>
|
||||
<ui-button action='Lock'>LOCK</ui-button>
|
||||
<ui-button action='disconnect' params='{"type" : "destroy"}' state = '{{data.destroy_linked? null : "disabled"}}'>Disconnect Destructive Analyzer</ui-button>
|
||||
<ui-button action='disconnect' params='{"type" : "lathe"}' state = '{{data.protolathe_linked? null : "disabled"}}'>Disconnect Protolathe</ui-button>
|
||||
<ui-button action='disconnect' params='{"type" : "imprinter"}' state = '{{data.circuit_linked? null : "disabled"}}'>Disconnect Circuit Imprinter</ui-button>
|
||||
@@ -0,0 +1,15 @@
|
||||
<ui-display title='Available for Research'>
|
||||
{{#each data.techweb_avail}}
|
||||
<ui-button action='select_node' params='{"id": "{{id}}"}' state='{{data.snode_id == id ? "selected" : null}}'>{{display_name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
<ui-display title='Locked Nodes'>
|
||||
{{#each data.techweb_locked}}
|
||||
<ui-button action='select_node' params='{"id": "{{id}}"}' state='{{data.snode_id == id ? "selected" : null}}'>{{display_name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
<ui-display title='Researched Nodes'>
|
||||
{{#each data.techweb_researched}}
|
||||
<ui-button action='select_node' params='{"id": "{{id}}"}' state='{{data.snode_id == id ? "selected" : null}}'>{{display_name}}</ui-button>
|
||||
{{/each}}
|
||||
</ui-display>
|
||||
Reference in New Issue
Block a user