Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Mar 21, 2024
1 parent 93f5169 commit a88c7e7
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 106 deletions.
41 changes: 2 additions & 39 deletions tgui/packages/tgui/interfaces/APC.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { InterfaceLockNoticeBox } from './common/InterfaceLockNoticeBox';

export const APC = (props, context) => {
return (
<Window width={510} height={435}>
<Window width={520} height={435}>
<Window.Content>
<ApcContent />
</Window.Content>
Expand Down Expand Up @@ -76,44 +76,7 @@ const ApcContent = (props, context) => {
return (
<>
<InterfaceLockNoticeBox />
<Section title="Power Status">
<LabeledList>
<LabeledList.Item
label="Main Breaker"
color={externalPowerStatus.color}
buttons={
<Button
icon={data.isOperating ? 'power-off' : 'times'}
content={data.isOperating ? 'On' : 'Off'}
selected={data.isOperating && !locked}
color={data.isOperating ? '' : 'bad'}
disabled={locked}
onClick={() => act('breaker')}
/>
}
>
[ {externalPowerStatus.externalPowerText} ]
</LabeledList.Item>
<LabeledList.Item label="Power Cell">
<ProgressBar color="good" value={adjustedCellChange} />
</LabeledList.Item>
<LabeledList.Item
label="Charge Mode"
color={chargingStatus.color}
buttons={
<Button
icon={data.chargeMode ? 'sync' : 'times'}
content={data.chargeMode ? 'Auto' : 'Off'}
selected={data.chargeMode}
disabled={locked}
onClick={() => act('charge')}
/>
}
>
[ {chargingStatus.chargingText} ]
</LabeledList.Item>
</LabeledList>
</Section>
<Section title="Power Status" />
<Section title="Power Channels">
<LabeledList>
{channelArray.map((channel) => {
Expand Down
134 changes: 67 additions & 67 deletions tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit a88c7e7

Please sign in to comment.