mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-17 13:43:21 +00:00
TGUI APCs TGUI vending machines Fix AI default_tgui_interaction TGUI Airlocks Station & Atmospheric Alert TGUI + Misc NTOS-TGUI Fixes TGUI Air Alarms & Central Atmospheric Control Airlock TGUI TG... got rid of UI for fire alarm. í´· TGUI Gas Heating/Cooling System TGUI Gas Pump & Passive Gate + Fixes TGUI Omni Atmospherics TGUI Pipe Dispensers & RPD TGUI IntelliCore & Vending Fix TGUI Handheld Tanks TGUI Portable Pump & Scrubber TGUI Tank Dispenser & Canisters TGUI Radios TGUI SMES & Air Alarm adjustment Tweak vending machine interfaces a tad TGUI Algae Farm TGUI general_air_control - Distro & Waste Console - Riot Control Console - Atmos Intake Console - Engine Cooling Console TGUI Heavy Scrubber Control (and body scanner fix) TGUI trinary devices & shutoff monitor TGUI Telecomms Log Browser TGUI Telecomms Machine Browser TGUI Spaceheater Internal Panel TGUI Gravity Generator TGUI Id Cards & Fix ID Card Images TGUI Id Card Redesign TGUI Turbolift TGUI Suit Cycler & Suit Storage Unit & Vending Fixes TGUI Power Monitor TGUI Signalers TGUI Employment Records TGUI Drone Console TGUI RIGSuits TGUI PA & PACMAN, and Margin Fix TGUI Solar Panels & Fix Power Monitor Adjust TGUI modules & their interaction with NTOS TGUI RCON TGUI Message Monitor Bump TGUI line limit to 120 (ParadiseSS13/Paradise#14002) TGUI Exonet & NTNet Relay TGUI Telecomms Multitool Menu TGUI Shield Capacitor & Shield Generator TGUI Supermatter-everything & Refactors
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
import { useBackend } from '../backend';
|
|
import { Button, Slider, Section, LabeledList } from '../components';
|
|
import { getGasLabel } from '../constants';
|
|
import { Window } from '../layouts';
|
|
import { PortableBasicInfo } from './common/PortableAtmos';
|
|
|
|
export const PortableScrubber = (props, context) => {
|
|
const { act, data } = useBackend(context);
|
|
|
|
const {
|
|
rate,
|
|
minrate,
|
|
maxrate,
|
|
} = data;
|
|
|
|
return (
|
|
<Window
|
|
width={320}
|
|
height={350}>
|
|
<Window.Content>
|
|
<PortableBasicInfo />
|
|
<Section title="Power Regulator">
|
|
<LabeledList>
|
|
<LabeledList.Item label="Volume Rate">
|
|
<Slider
|
|
mt="0.4em"
|
|
animated
|
|
minValue={minrate}
|
|
maxValue={maxrate}
|
|
value={rate}
|
|
unit="L/s"
|
|
onChange={(e, val) => act("volume_adj", { vol: val })} />
|
|
</LabeledList.Item>
|
|
</LabeledList>
|
|
</Section>
|
|
</Window.Content>
|
|
</Window>
|
|
);
|
|
};
|