mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Cleans up some tgui styling (#11416)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f7bbeb6239
commit
25a8a1f773
@@ -100,8 +100,8 @@ export const telemetryMiddleware = (store) => {
|
||||
}),
|
||||
);
|
||||
}
|
||||
// Save telemetry
|
||||
if (telemetryMutated) {
|
||||
// Save telemetry
|
||||
if (telemetryMutated) {
|
||||
logger.debug('saving telemetry to storage', telemetry);
|
||||
storage.set('telemetry', telemetry);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
Knob,
|
||||
LabeledControls,
|
||||
LabeledList,
|
||||
Section,
|
||||
RoundGauge,
|
||||
Section,
|
||||
Slider,
|
||||
} from 'tgui-core/components';
|
||||
import { toFixed } from 'tgui-core/math';
|
||||
@@ -81,11 +81,11 @@ export const GasTemperatureSystem = (props) => {
|
||||
value={reagentPower}
|
||||
ranges={{
|
||||
bad: [-3, 0.5],
|
||||
average: [0.5,1.5],
|
||||
good: [1.5,5],
|
||||
average: [0.5, 1.5],
|
||||
good: [1.5, 5],
|
||||
}}
|
||||
format={(value) => {
|
||||
return `${toFixed(value,1)} x`;
|
||||
return `${toFixed(value, 1)} x`;
|
||||
}}
|
||||
minValue={-3}
|
||||
maxValue={5}
|
||||
|
||||
@@ -70,7 +70,7 @@ export const SubtabEquipment = (props: {
|
||||
<Button onClick={() => act('set_ringtone')}>
|
||||
{ringtone || 'None'}
|
||||
</Button>
|
||||
<Button icon="volume-high" onClick={() => act('test_ringtone')}/>
|
||||
<Button icon="volume-high" onClick={() => act('test_ringtone')} />
|
||||
</LabeledList.Item>
|
||||
{/* <LabeledList.Item label="Spawn With Shoes">
|
||||
<Button onClick={() => act('toggle_shoes')}>
|
||||
|
||||
@@ -175,14 +175,14 @@ export type DistilledReactions = DistillComponent | DistillComponent[] | null;
|
||||
|
||||
export type DistillComponent =
|
||||
| (ReactionComponent &
|
||||
Partial<{
|
||||
temp_min: number;
|
||||
temp_max: number;
|
||||
xgm_min: number;
|
||||
xgm_max: number;
|
||||
require_xgm_gas: string;
|
||||
rejects_xgm_gas: string;
|
||||
}>)
|
||||
Partial<{
|
||||
temp_min: number;
|
||||
temp_max: number;
|
||||
xgm_min: number;
|
||||
xgm_max: number;
|
||||
require_xgm_gas: string;
|
||||
rejects_xgm_gas: string;
|
||||
}>)
|
||||
| null;
|
||||
|
||||
export type ReactionComponent = {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
Stack,
|
||||
Tooltip,
|
||||
} from 'tgui-core/components';
|
||||
import { BooleanLike } from 'tgui-core/react';
|
||||
import type { BooleanLike } from 'tgui-core/react';
|
||||
|
||||
type Data = {
|
||||
stun_time: number;
|
||||
@@ -43,7 +43,10 @@ export const ShadekinConfig = (props) => {
|
||||
const isSubtle =
|
||||
flicker_time < 5 || flicker_break_chance < 5 || flicker_distance < 5;
|
||||
|
||||
const windowHeight = (isSubtle ? 220 : 190) + (extended_kin ? 95 : 0) + (savefile_selected ? 0 : 90);
|
||||
const windowHeight =
|
||||
(isSubtle ? 220 : 190) +
|
||||
(extended_kin ? 95 : 0) +
|
||||
(savefile_selected ? 0 : 90);
|
||||
|
||||
return (
|
||||
<Window width={300} height={windowHeight} theme="abductor">
|
||||
@@ -56,7 +59,11 @@ export const ShadekinConfig = (props) => {
|
||||
)}
|
||||
{!savefile_selected && (
|
||||
<Stack.Item>
|
||||
<NoticeBox>WARNING: Your current selected savefile (in Character Setup) is not the same as your currently loaded savefile. Please select it to prevent savefile corruption.</NoticeBox>
|
||||
<NoticeBox>
|
||||
WARNING: Your current selected savefile (in Character Setup) is
|
||||
not the same as your currently loaded savefile. Please select it
|
||||
to prevent savefile corruption.
|
||||
</NoticeBox>
|
||||
</Stack.Item>
|
||||
)}
|
||||
<Stack.Item>
|
||||
|
||||
@@ -17,5 +17,5 @@
|
||||
"strictNullChecks": true,
|
||||
"target": "ESNext"
|
||||
},
|
||||
"include": ["./*.d.ts", "./packages", "vitest.config.mts"]
|
||||
"include": ["./*.d.ts", "./packages"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user