FIX: atmos tank control console behavior with h2 and h2o (#32238)

* fix h2 and h2o are not correctly displayed in ATC console

* fix h2o scrub is not available to toogle in ATC console

* build tgui bundle

* fix misstype

* update tgui bundle
This commit is contained in:
SanguisExtremis
2026-08-01 06:14:04 +00:00
committed by GitHub
parent 71a31c147c
commit 8010b5ff4e
4 changed files with 5 additions and 5 deletions
@@ -675,7 +675,7 @@ GLOBAL_LIST_EMPTY(gas_sensors)
scrubber.scrub_N2 = !scrubber.scrub_N2
if("o2_scrub")
scrubber.scrub_O2 = !scrubber.scrub_O2
if("scrub_h2")
if("h2_scrub")
scrubber.scrub_H2 = !scrubber.scrub_H2
if("h2o_scrub")
scrubber.scrub_H2O = !scrubber.scrub_H2O
+2 -2
View File
@@ -175,7 +175,7 @@ const GASES = [
'color': 'pink',
},
{
'id': 'water_vapor',
'id': 'h2o',
'name': 'Water Vapor',
'label': 'H₂O',
'color': 'grey',
@@ -229,7 +229,7 @@ const GASES = [
'color': 'olive',
},
{
'id': 'hydrogen',
'id': 'h2',
'name': 'Hydrogen',
'label': 'H₂',
'color': '#997379',
@@ -27,7 +27,7 @@ export const AtmosTankControl = (props) => {
''
)}
{['o2', 'n2', 'plasma', 'co2', 'n2o', 'h2'].map((g) =>
{['o2', 'n2', 'plasma', 'co2', 'n2o', 'h2', 'h2o'].map((g) =>
Object.keys(sensors_list[s]).indexOf(g) > -1 ? (
<LabeledList.Item key={getGasLabel(g)} label={getGasLabel(g)}>
<ProgressBar color={getGasColor(g)} value={sensors_list[s][g]} minValue={0} maxValue={100}>
File diff suppressed because one or more lines are too long