Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephemeralis committed Sep 19, 2024
1 parent 39b2e1e commit d0fc720
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AntagsPage } from './AntagsPage';
import { PreferencesMenuData } from './data';
import { JobsPage } from './JobsPage';
import { LoadoutPage } from './loadout/index';
import { LorePage } from "./LorePage";
import { LorePage } from './LorePage';
import { MainPage } from './MainPage';
import { PageButton } from './PageButton';
import { QuirksPage } from './QuirksPage';
Expand Down Expand Up @@ -130,15 +130,15 @@ export const CharacterPreferenceWindow = (props) => {
}
<Stack.Item grow>
<PageButton
currentPage={currentPage}
page={Page.Lore}
setPage={setCurrentPage}
currentPage={currentPage}
page={Page.Lore}
setPage={setCurrentPage}
>
Lore
</PageButton>
{
// DOPPLER EDIT END
}
{
// DOPPLER EDIT END
}
</Stack.Item>
<Stack.Item grow>
<PageButton
Expand Down
36 changes: 18 additions & 18 deletions tgui/packages/tgui/interfaces/PreferencesMenu/LorePage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useBackend } from "../../backend";
import { Box } from "../../components/Box";
import { LabeledList } from "../../components/LabeledList";
import { Section } from "../../components/Section";
import { Stack } from "../../components/Stack";
import { PreferencesMenuData } from "./data";
import { PreferenceSingle } from "./SinglePreference";
import { useBackend } from '../../backend';
import { Box } from '../../components/Box';
import { LabeledList } from '../../components/LabeledList';
import { Section } from '../../components/Section';
import { Stack } from '../../components/Stack';
import { PreferencesMenuData } from './data';
import { PreferenceSingle } from './SinglePreference';

export const LorePage = () => {
const { act, data } = useBackend<PreferencesMenuData>();
Expand All @@ -14,15 +14,15 @@ export const LorePage = () => {
return (
<Box className="PreferencesMenu__Lore">
<Stack.Item
basis="50%"
grow
style={{
background: 'rgba(0, 0, 0, 0.5)',
padding: '4px',
}}
overflowX="hidden"
overflowY="auto"
maxHeight="auto"
basis="50%"
grow
style={{
background: 'rgba(0, 0, 0, 0.5)',
padding: '4px',
}}
overflowX="hidden"
overflowY="auto"
maxHeight="auto"
>
<LabeledList>
<Section title="Character Details">
Expand Down Expand Up @@ -64,7 +64,7 @@ export const LorePage = () => {
preferences={dopplerLorePreferences}
/>
</Section>
<Section title="Records">
<Section title="Records">
<PreferenceSingle
act={act}
pref_key="past_general_records"
Expand All @@ -85,7 +85,7 @@ export const LorePage = () => {
pref_key="exploitable_records"
preferences={dopplerLorePreferences}
/>
</Section>
</Section>
<Section title="Notes">
<PreferenceSingle
act={act}
Expand Down
24 changes: 12 additions & 12 deletions tgui/packages/tgui/interfaces/PreferencesMenu/SinglePreference.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { sendAct } from "../../backend";
import { LabeledList } from "../../components/LabeledList";
import { Stack } from "../../components/Stack";
import { sendAct } from '../../backend';
import { LabeledList } from '../../components/LabeledList';
import { Stack } from '../../components/Stack';
import features from './preferences/features';
import { FeatureValueInput } from "./preferences/features/base";
import { FeatureValueInput } from './preferences/features/base';

export const PreferenceSingle = (props: {
act: typeof sendAct;
Expand All @@ -22,17 +22,17 @@ export const PreferenceSingle = (props: {

return (
<LabeledList.Item
key={props.pref_key}
label={feature.name}
tooltip={feature.description}
verticalAlign="middle"
key={props.pref_key}
label={feature.name}
tooltip={feature.description}
verticalAlign="middle"
>
<Stack.Item grow>
<FeatureValueInput
act={props.act}
feature={feature}
featureId={props.pref_key}
value={value}
act={props.act}
feature={feature}
featureId={props.pref_key}
value={value}
/>
</Stack.Item>
</LabeledList.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Feature, FeatureNumberInput } from '../base';

export const age: Feature<number> = {
name: 'Age',
description: "The effective and actual age of your character expressed in years. If they haven't entered cryostasis for any meaningful length of time or are otherwise uncommonly long-lived, this number is their age in years since birth.",
description:
"The effective and actual age of your character expressed in years. If they haven't entered cryostasis for any meaningful length of time or are otherwise uncommonly long-lived, this number is their age in years since birth.",
component: FeatureNumberInput,
};
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { Feature, FeatureNumberInput, FeatureShortTextInput, FeatureTextInput } from '../base';
import {
Feature,
FeatureNumberInput,
FeatureShortTextInput,
FeatureTextInput,
} from '../base';

export const age_chronological: Feature<number> = {
name: 'Age (Chronological)',
description: "The actual, physical age of your character. Applicable mostly in instances of prolonged cryogenic stasis or for lifeforms that mature or metabolize at much slower rates compared to 'standard' sector races.",
description:
"The actual, physical age of your character. Applicable mostly in instances of prolonged cryogenic stasis or for lifeforms that mature or metabolize at much slower rates compared to 'standard' sector races.",
component: FeatureNumberInput,
};

Expand All @@ -21,49 +27,57 @@ export const flavor_extended_desc: Feature<string> = {
};

export const headshot_url: Feature<string> = {
name: "Headshot image (URL)",
description: "A https link to a hosted image of your character's headshot. Must be: no larger than 250x250px (you can use larger images, but they will be scaled down, and probably poorly above 500px), a jpg/png/jpeg file, and hosted on either Gyazo (i.gyazo.com), Byondhome (files.byondhome.com), Imgbox (images2.imgbox.com) or Catbox (files.catbox.moe). Transparent backgrounds are highly recommended (but only supported on .png files).",
name: 'Headshot image (URL)',
description:
"A https link to a hosted image of your character's headshot. Must be: no larger than 250x250px (you can use larger images, but they will be scaled down, and probably poorly above 500px), a jpg/png/jpeg file, and hosted on either Gyazo (i.gyazo.com), Byondhome (files.byondhome.com), Imgbox (images2.imgbox.com) or Catbox (files.catbox.moe). Transparent backgrounds are highly recommended (but only supported on .png files).",
component: FeatureShortTextInput,
};

export const custom_species_name: Feature<string> = {
name: "Species name",
description: "Appears when looked at. Leave blank to match a default coded race (such as Human).",
name: 'Species name',
description:
'Appears when looked at. Leave blank to match a default coded race (such as Human).',
component: FeatureShortTextInput,
};

export const custom_species_desc: Feature<string> = {
name: "Species description",
description: "Appears when examined further. An overview of your species, ideally limited to commonly-known facts such as general physical appearances, origin world/sector, and so on. This should not be excessively long - you're better off sharing that information via IC interactions (or records) instead of expecting people to read it off your examine.",
name: 'Species description',
description:
"Appears when examined further. An overview of your species, ideally limited to commonly-known facts such as general physical appearances, origin world/sector, and so on. This should not be excessively long - you're better off sharing that information via IC interactions (or records) instead of expecting people to read it off your examine.",
component: FeatureTextInput,
};

export const past_general_records: Feature<string> = {
name: "General records",
description: "A general overview of your character's employment history, both aboard and before the Nine Lives Promenade.",
name: 'General records',
description:
"A general overview of your character's employment history, both aboard and before the Nine Lives Promenade.",
component: FeatureTextInput,
};

export const past_medical_records: Feature<string> = {
name: "Medical records",
description: "An overview of your character's medical history, covering things like long-term conditions, prior surgeries, suggested medication, psychological evaluations, etc.",
name: 'Medical records',
description:
"An overview of your character's medical history, covering things like long-term conditions, prior surgeries, suggested medication, psychological evaluations, etc.",
component: FeatureTextInput,
};

export const past_security_records: Feature<string> = {
name: "Security records",
description: "An overview of your character's history with the law (or lack thereof). Can include things like previous offenses, cautionary information for other security personnel that need to interact with them, and more.",
name: 'Security records',
description:
"An overview of your character's history with the law (or lack thereof). Can include things like previous offenses, cautionary information for other security personnel that need to interact with them, and more.",
component: FeatureTextInput,
};

export const exploitable_records: Feature<string> = {
name: "Classified records",
description: "Known on other bases as 'exploitables', covers sensitive information about your character or their affiliations that may not be generally public knowledge, and could conceivably be used or exploited by hostile actors. Information listed here does not have to be intrinsically negative for your character, especially if they have a positive history with the darker side of the sector.",
name: 'Classified records',
description:
"Known on other bases as 'exploitables', covers sensitive information about your character or their affiliations that may not be generally public knowledge, and could conceivably be used or exploited by hostile actors. Information listed here does not have to be intrinsically negative for your character, especially if they have a positive history with the darker side of the sector.",
component: FeatureTextInput,
};

export const ooc_notes: Feature<string> = {
name: "OOC notes",
description: "Include anything you think people might need to know OOCly here, such as your boundaries, interaction preferences, any credits for material used to create your character, contact info, or more. Keep it short and sweet, though!",
name: 'OOC notes',
description:
'Include anything you think people might need to know OOCly here, such as your boundaries, interaction preferences, any credits for material used to create your character, contact info, or more. Keep it short and sweet, though!',
component: FeatureTextInput,
};

0 comments on commit d0fc720

Please sign in to comment.