mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
fix omni atmospherics tgui (#8161)
This commit is contained in:
@@ -131,8 +131,8 @@
|
||||
if(portData.len)
|
||||
data["ports"] = portData
|
||||
if(output)
|
||||
data["set_flow_rate"] = round(set_flow_rate*10) //because nanoui can't handle rounded decimals.
|
||||
data["last_flow_rate"] = round(last_flow_rate*10)
|
||||
data["set_flow_rate"] = round(set_flow_rate)
|
||||
data["last_flow_rate"] = round(last_flow_rate)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
@@ -158,8 +158,8 @@
|
||||
if(portData.len)
|
||||
data["ports"] = portData
|
||||
if(output)
|
||||
data["set_flow_rate"] = round(set_flow_rate*10) //because nanoui can't handle rounded decimals.
|
||||
data["last_flow_rate"] = round(last_flow_rate*10)
|
||||
data["set_flow_rate"] = round(set_flow_rate)
|
||||
data["last_flow_rate"] = round(last_flow_rate)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
@@ -111,11 +111,11 @@ export const OmniFilter = (props) => {
|
||||
{config ? (
|
||||
<Button
|
||||
icon="wrench"
|
||||
content={set_flow_rate / 10 + ' L/s'}
|
||||
content={set_flow_rate + ' L/s'}
|
||||
onClick={() => act('set_flow_rate')}
|
||||
/>
|
||||
) : (
|
||||
set_flow_rate / 10 + ' L/s'
|
||||
set_flow_rate + ' L/s'
|
||||
)}
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
|
||||
@@ -91,11 +91,11 @@ export const OmniMixer = (props) => {
|
||||
{config ? (
|
||||
<Button
|
||||
icon="wrench"
|
||||
content={set_flow_rate / 10 + ' L/s'}
|
||||
content={set_flow_rate + ' L/s'}
|
||||
onClick={() => act('set_flow_rate')}
|
||||
/>
|
||||
) : (
|
||||
set_flow_rate / 10 + ' L/s'
|
||||
set_flow_rate + ' L/s'
|
||||
)}
|
||||
</LabeledList.Item>
|
||||
</LabeledList>
|
||||
|
||||
Reference in New Issue
Block a user