import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, Flex, LabeledList, Section, Table } from '../components'; import { Window } from '../layouts'; import { OvermapFlightData, OvermapPanControls } from './common/Overmap'; export const OvermapHelm = (props, context) => { return ( ); }; export const OvermapHelmContent = (props, context) => { return ( ); }; export const OvermapFlightDataWrap = (props, context) => { const { act, data } = useBackend(context); // While, yes, this is a strange choice to use fieldset over Section // just look at how pretty the legend is, sticking partially through the border ;///; return (
Flight Data
); }; const OvermapManualControl = (props, context) => { const { act, data } = useBackend(context); const { canburn, manual_control } = data; return (
Manual Control Direct Control
); }; const OvermapAutopilot = (props, context) => { const { act, data } = useBackend(context); const { dest, d_x, d_y, speedlimit, autopilot, autopilot_disabled } = data; if (autopilot_disabled) { return (
Autopilot AUTOPILOT DISABLED Warning: This vessel is equipped with a class I autopilot. Class I autopilots are unable to do anything but fly in a straight line directly towards the target, and may result in collisions. act('apilot_lock')} />
); } return (
Autopilot {(dest && ( )) || ( )}
); }; const OvermapNavComputer = (props, context) => { const { act, data } = useBackend(context); const { sector, s_x, s_y, sector_info, landed, locations } = data; return (
{sector} {s_x} : {s_y} {sector_info} {landed}
Name Coordinates Actions {locations.map((loc) => ( {loc.name} {loc.x} : {loc.y} ))}
); };