Skip to content

Commit

Permalink
when things work its good
Browse files Browse the repository at this point in the history
  • Loading branch information
carpotoxin committed Oct 1, 2024
1 parent 86ebb48 commit d69891d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions code/modules/client/preferences.dm
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ GLOBAL_LIST_EMPTY(preferences_datums)

return TRUE
/// DOPPLER SHIFT ADDITION BEGIN
if("update_preview")
preview_pref = params["updated_preview"]
character_preview_view.update_body()
return TRUE

if ("set_tricolor_preference")
var/requested_preference_key = params["preference"]
var/index_key = params["value"]
Expand Down
6 changes: 3 additions & 3 deletions tgui/packages/tgui/interfaces/PreferencesMenu/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,13 @@ export const MainPage = (props: { openSpecies: () => void }) => {
/>
</Stack.Item>

<Stack.Item grow>
<Stack.Item grow maxHeight="300px">
<CharacterPreview
height="100%"
id={data.character_preview_view}
/>
</Stack.Item>

{/* DOPPLER ADDITION START */}
<Stack.Item position="relative">
<Dropdown
width="100%"
Expand All @@ -598,7 +598,7 @@ export const MainPage = (props: { openSpecies: () => void }) => {
}
/>
</Stack.Item>

{/* DOPPLER ADDITION END */}
<Stack.Item position="relative">
<NameInput
name={data.character_preferences.names[data.name_to_use]}
Expand Down
4 changes: 2 additions & 2 deletions tgui/packages/tgui/interfaces/PreferencesMenu/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ export type PreferencesMenuData = {
character_preview_view: string;
character_profiles: (string | null)[];

preview_options: string[]; // NOVA EDIT ADDITION
preview_selection: string; // NOVA EDIT ADDITION
preview_options: string[]; // DOPPLER EDIT ADDITION
preview_selection: string; // DOPPLER EDIT ADDITION

character_preferences: {
clothing: Record<string, string>;
Expand Down

0 comments on commit d69891d

Please sign in to comment.