mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
BSA UI size fix & TGUI input list (#24500)
* BSA UI fix & TGUI input list * Rebuild
This commit is contained in:
@@ -376,8 +376,10 @@
|
||||
var/list/options = gps_locators
|
||||
if(area_aim)
|
||||
options += target_all_areas ? SSmapping.ghostteleportlocs : SSmapping.teleportlocs
|
||||
var/V = input(user,"Select target", "Select target",null) in options|null
|
||||
target = options[V]
|
||||
var/choose = tgui_input_list(user, "Select target", "Target", options)
|
||||
if(!choose)
|
||||
return
|
||||
target = options[choose]
|
||||
|
||||
/obj/machinery/computer/bsa_control/proc/get_target_name()
|
||||
if(isarea(target))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useBackend } from '../backend';
|
||||
import { Button, LabeledList, Section, Box, ProgressBar } from '../components';
|
||||
import { Button, LabeledList, Section, Stack } from '../components';
|
||||
import { Window } from '../layouts';
|
||||
|
||||
export const BlueSpaceArtilleryControl = (props, context) => {
|
||||
@@ -25,44 +25,48 @@ export const BlueSpaceArtilleryControl = (props, context) => {
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Window width={400} height={125}>
|
||||
<Window width={400} height={150}>
|
||||
<Window.Content>
|
||||
<Section fill>
|
||||
<LabeledList>
|
||||
{data.notice && (
|
||||
<LabeledList.Item label="Alert" color="red">
|
||||
{data.notice}
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
{alertStatus}
|
||||
<LabeledList.Item label="Target">
|
||||
<Button
|
||||
icon="crosshairs"
|
||||
content={data.target ? data.target : 'None'}
|
||||
onClick={() => act('recalibrate')}
|
||||
/>
|
||||
</LabeledList.Item>
|
||||
{data.ready === 1 && !!data.target && (
|
||||
<LabeledList.Item label="Firing">
|
||||
<Button
|
||||
icon="skull"
|
||||
content="FIRE!"
|
||||
color="red"
|
||||
onClick={() => act('fire')}
|
||||
/>
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
{!data.connected && (
|
||||
<LabeledList.Item label="Maintenance">
|
||||
<Button
|
||||
icon="wrench"
|
||||
content="Complete Deployment"
|
||||
onClick={() => act('build')}
|
||||
/>
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
</LabeledList>
|
||||
</Section>
|
||||
<Stack fill vertical>
|
||||
<Stack.Item grow>
|
||||
<Section fill scrollable>
|
||||
<LabeledList>
|
||||
{data.notice && (
|
||||
<LabeledList.Item label="Alert" color="red">
|
||||
{data.notice}
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
{alertStatus}
|
||||
<LabeledList.Item label="Target">
|
||||
<Button
|
||||
icon="crosshairs"
|
||||
content={data.target ? data.target : 'None'}
|
||||
onClick={() => act('recalibrate')}
|
||||
/>
|
||||
</LabeledList.Item>
|
||||
{data.ready === 1 && !!data.target && (
|
||||
<LabeledList.Item label="Firing">
|
||||
<Button
|
||||
icon="skull"
|
||||
content="FIRE!"
|
||||
color="red"
|
||||
onClick={() => act('fire')}
|
||||
/>
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
{!data.connected && (
|
||||
<LabeledList.Item label="Maintenance">
|
||||
<Button
|
||||
icon="wrench"
|
||||
content="Complete Deployment"
|
||||
onClick={() => act('build')}
|
||||
/>
|
||||
</LabeledList.Item>
|
||||
)}
|
||||
</LabeledList>
|
||||
</Section>
|
||||
</Stack.Item>
|
||||
</Stack>
|
||||
</Window.Content>
|
||||
</Window>
|
||||
);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user