mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Largely ported from the work done at Baystation in https://github.com/Baystation12/Baystation12/pull/17460 and later commits. - Shuttles no longer require a separate area for each location they jump to. Instead destinations are indicated by landmark objects, which are not necessarily exclusive to that shuttle. This means that more than one shuttle could use the same docking port (not at the same time of course). - Enhanced shuttle control computers to use nanoui if they didn't. - Organizes shuttle datum code a bit better so there is less re-inventing the wheel in subtypes. - Allows the possibility of shuttles (or destinations) that start on late-loaded maps. - Deprecate the "extra" shuttle areas that are no longer needed and update shuttle areas in unit tests This all required a bit of infrastructure improvements. - ChangeArea proc, for changing the area of a turf. - Fixed lighting overlays actually being able to be destroyed. - Added a few utility macros and procs. - Added "turf translation" procs which are like move_contents_to but more flexible.
85 lines
2.8 KiB
Cheetah
85 lines
2.8 KiB
Cheetah
<h3>Shuttle Status</h3>
|
|
<div class="item" style="padding-top: 10px">
|
|
<div class="item">
|
|
{{:data.shuttle_status}}
|
|
</div>
|
|
{{if data.can_cloak}}
|
|
<div class="item">
|
|
{{:data.legit ? "ATC Inhibitor" : "Cloaking Field"}} is {{:data.cloaked ? "enabled" : "disabled"}}. {{:helper.link('Toggle', 'arrowreturn-1-s', {'toggle_cloaked' : '1'}) }}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<div class="item" style="padding-top: 10px">
|
|
<div class="item">
|
|
<div class="itemLabel">
|
|
Bluespace Drive:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{if data.shuttle_state == "idle"}}
|
|
<span class="idle">IDLE</span>
|
|
{{else data.shuttle_state == "warmup"}}
|
|
<span style="font-weight: bold;color: #336699">SPINNING UP</span>
|
|
{{else data.shuttle_state == "in_transit"}}
|
|
<span style="font-weight: bold;color: #336699">ENGAGED</span>
|
|
{{else}}
|
|
<span class="bad">ERROR</span>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{if data.has_docking}}
|
|
<div class="item" style="padding-top: 10px">
|
|
<div class="item">
|
|
<div class="itemLabel">
|
|
Docking Status:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{if data.docking_status == "docked"}}
|
|
<span class="good">DOCKED</span>
|
|
{{else data.docking_status == "docking"}}
|
|
{{if !data.docking_override}}
|
|
<span class="average">DOCKING</span>
|
|
{{else}}
|
|
<span class="average">DOCKING-MANUAL</span>
|
|
{{/if}}
|
|
{{else data.docking_status == "undocking"}}
|
|
{{if !data.docking_override}}
|
|
<span class="average">UNDOCKING</span>
|
|
{{else}}
|
|
<span class="average">UNDOCKING-MANUAL</span>
|
|
{{/if}}
|
|
{{else data.docking_status == "undocked"}}
|
|
<span class="idle">UNDOCKED</span>
|
|
{{else}}
|
|
<span class="bad">ERROR</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="itemLabel">
|
|
Docking Codes:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:helper.link(data.docking_codes ? data.docking_codes : 'Not set', null, {'set_codes' : '1'}, null , null)}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
<div class="item" style="padding-top: 10px">
|
|
<div class="itemLabel">
|
|
Current Destination:
|
|
</div>
|
|
<span class="average">{{:data.destination_name}}</span>
|
|
<div class="item">
|
|
{{:helper.link('Choose Destination', 'arrowreturn-1-s', {'pick' : '1'}, data.can_pick ? null : 'disabled' , null)}}
|
|
</div>
|
|
</div>
|
|
<h3>Shuttle Control</h3>
|
|
<div class="item" style="padding-top: 10px">
|
|
<div class="item">
|
|
<div class="itemContent" style="padding-top: 2px; width: 100%">
|
|
{{:helper.link('Launch Shuttle', 'arrowthickstop-1-e', {'move' : '1'}, data.can_launch ? null : 'disabled' , null)}}
|
|
{{:helper.link('Cancel Launch', 'cancel', {'cancel' : '1'}, data.can_cancel ? null : 'disabled' , null)}}
|
|
{{:helper.link('Force Launch', 'alert', {'force' : '1'}, data.can_force ? null : 'disabled' , data.can_force ? 'redButton' : null)}}
|
|
</div>
|
|
</div>
|
|
</div>
|