Skip to content

Commit

Permalink
Attempts to satisfy tgui linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Profakos committed Jan 25, 2025
1 parent 1fc9abc commit 1070477
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useBackend } from 'tgui/backend';
import { Box, Button, Section, Stack } from 'tgui-core/components';

import { useBackend } from 'tgui/backend';
import { PreferencesMenuData } from '../types';

export const KnownLanguage = (props) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { PageButton } from '../components/PageButton';
import { PreferencesMenuData } from '../types';
import { AntagsPage } from './AntagsPage';
import { JobsPage } from './JobsPage';
import { LanguagePage } from './LanguagePage';
import { LoadoutPage } from './loadout';
import { MainPage } from './MainPage';
import { QuirksPage } from './QuirksPage';
import { SpeciesPage } from './SpeciesPage';
import { LanguagePage } from './LanguagePage'; //Orbstation addition

enum Page {
Antags,
Expand All @@ -20,7 +20,7 @@ enum Page {
Species,
Quirks,
Loadout,
Languages, //ORBSTATION ADDITION
Languages,
}

type ProfileProps = {
Expand Down
15 changes: 7 additions & 8 deletions tgui/packages/tgui/interfaces/PreferencesMenu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum Food {
Breakfast = 'BREAKFAST',
Bugs = 'BUGS',
Cloth = 'CLOTH',
Cucumber = 'CUCUMBER',
Dairy = 'DAIRY',
Fried = 'FRIED',
Fruit = 'FRUIT',
Expand Down Expand Up @@ -98,8 +99,6 @@ export type QuirkInfo = {
points_enabled: boolean;
};

// ORBSTATION ADDITIONS START

export type Language = {
description: string;
name: string;
Expand Down Expand Up @@ -187,13 +186,13 @@ export type PreferencesMenuData = {
antag_days_left?: Record<string, number>;
selected_antags: string[];

biggest_head: Record<string, JobPriority>; ///ORBSTATION addition
department_counts: Record<string, number>; ///ORBSTATION addition
department_high: Record<string, number>; ///ORBSTATION addition
biggest_head: Record<string, JobPriority>;
department_counts: Record<string, number>;
department_high: Record<string, number>;

selected_languages: Language[]; ///ORBSTATION addition
unselected_languages: Language[]; ///ORBSTATION addition
total_language_points: number; ///ORBSTATION addition
selected_languages: Language[];
unselected_languages: Language[];
total_language_points: number;

active_slot: number;
name_to_use: string;
Expand Down

0 comments on commit 1070477

Please sign in to comment.