mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-10 09:45:43 +00:00
122 lines
3.5 KiB
TypeScript
122 lines
3.5 KiB
TypeScript
import { InterfaceStoredSettingsProps } from '@/hooks/Mapper/mapRootProvider';
|
|
import { AvailableThemes, MiniMapPlacement, PingsPlacement } from '@/hooks/Mapper/mapRootProvider/types.ts';
|
|
import { SettingsListItem, UserSettingsRemoteProps } from './types.ts';
|
|
|
|
export const DEFAULT_REMOTE_SETTINGS = {
|
|
[UserSettingsRemoteProps.link_signature_on_splash]: false,
|
|
[UserSettingsRemoteProps.select_on_spash]: false,
|
|
[UserSettingsRemoteProps.delete_connection_with_sigs]: false,
|
|
};
|
|
|
|
export const UserSettingsRemoteList = [
|
|
UserSettingsRemoteProps.link_signature_on_splash,
|
|
UserSettingsRemoteProps.select_on_spash,
|
|
UserSettingsRemoteProps.delete_connection_with_sigs,
|
|
];
|
|
|
|
// export const COMMON_CHECKBOXES_PROPS: SettingsListItem[] = [
|
|
// // {
|
|
// // prop: InterfaceStoredSettingsProps.isShowMinimap,
|
|
// // label: 'Show Minimap',
|
|
// // type: 'checkbox',
|
|
// // },
|
|
// ];
|
|
|
|
export const SYSTEMS_CHECKBOXES_PROPS: SettingsListItem[] = [
|
|
{
|
|
prop: InterfaceStoredSettingsProps.isShowKSpace,
|
|
label: 'Highlight Low/High-security systems',
|
|
type: 'checkbox',
|
|
},
|
|
{
|
|
prop: UserSettingsRemoteProps.select_on_spash,
|
|
label: 'Auto-select splashed',
|
|
type: 'checkbox',
|
|
},
|
|
];
|
|
|
|
export const SIGNATURES_CHECKBOXES_PROPS: SettingsListItem[] = [
|
|
{
|
|
prop: UserSettingsRemoteProps.link_signature_on_splash,
|
|
label: 'Link signature on splash',
|
|
type: 'checkbox',
|
|
},
|
|
{
|
|
prop: InterfaceStoredSettingsProps.isShowUnsplashedSignatures,
|
|
label: 'Show unsplashed signatures',
|
|
type: 'checkbox',
|
|
},
|
|
];
|
|
|
|
export const CONNECTIONS_CHECKBOXES_PROPS: SettingsListItem[] = [
|
|
{
|
|
prop: UserSettingsRemoteProps.delete_connection_with_sigs,
|
|
label: 'Delete connections with linked signatures',
|
|
type: 'checkbox',
|
|
},
|
|
{
|
|
prop: InterfaceStoredSettingsProps.isThickConnections,
|
|
label: 'Thicker connections',
|
|
type: 'checkbox',
|
|
},
|
|
];
|
|
|
|
export const UI_CHECKBOXES_PROPS: SettingsListItem[] = [
|
|
{
|
|
prop: InterfaceStoredSettingsProps.isShowMenu,
|
|
label: 'Enable compact map menu bar',
|
|
type: 'checkbox',
|
|
},
|
|
{
|
|
prop: InterfaceStoredSettingsProps.isShowBackgroundPattern,
|
|
label: 'Show background pattern',
|
|
type: 'checkbox',
|
|
},
|
|
{
|
|
prop: InterfaceStoredSettingsProps.isSoftBackground,
|
|
label: 'Enable soft background',
|
|
type: 'checkbox',
|
|
},
|
|
];
|
|
|
|
export const THEME_OPTIONS = [
|
|
{ label: 'Default', value: AvailableThemes.default },
|
|
{ label: 'Pathfinder', value: AvailableThemes.pathfinder },
|
|
];
|
|
|
|
export const THEME_SETTING: SettingsListItem = {
|
|
prop: 'theme',
|
|
label: 'Theme',
|
|
type: 'dropdown',
|
|
options: THEME_OPTIONS,
|
|
};
|
|
|
|
export const MINI_MAP_PLACEMENT_OPTIONS = [
|
|
{ label: 'Right Bottom', value: MiniMapPlacement.rightBottom },
|
|
{ label: 'Right Top', value: MiniMapPlacement.rightTop },
|
|
{ label: 'Left Top', value: MiniMapPlacement.leftTop },
|
|
{ label: 'Left Bottom', value: MiniMapPlacement.leftBottom },
|
|
{ label: 'Hide', value: MiniMapPlacement.hide },
|
|
];
|
|
|
|
export const MINI_MAP_PLACEMENT: SettingsListItem = {
|
|
prop: 'minimapPlacement',
|
|
label: 'Minimap Placement',
|
|
type: 'dropdown',
|
|
options: MINI_MAP_PLACEMENT_OPTIONS,
|
|
};
|
|
|
|
export const PINGS_PLACEMENT_OPTIONS = [
|
|
{ label: 'Right Top', value: PingsPlacement.rightTop },
|
|
{ label: 'Left Top', value: PingsPlacement.leftTop },
|
|
{ label: 'Left Bottom', value: PingsPlacement.leftBottom },
|
|
{ label: 'Right Bottom', value: PingsPlacement.rightBottom },
|
|
];
|
|
|
|
export const PINGS_PLACEMENT: SettingsListItem = {
|
|
prop: 'pingsPlacement',
|
|
label: 'Pings Placement',
|
|
type: 'dropdown',
|
|
options: PINGS_PLACEMENT_OPTIONS,
|
|
};
|