/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/preferences.dm

PREFS_BACKUP_PATHFile path to where we save backups of preference savefiles when updating them.
DEV_PREFS_PATHFile path to the dev preference json file, which is loaded by guests while localhosting.
TGUI_LAYOUT_GRIDForce grid layout, even if default is a list.
TGUI_LAYOUT_LISTForce list layout, even if default is a grid.
PREFERENCE_CHARACTERThis preference is character specific.
PREFERENCE_PLAYERThis preference is account specific.
PREFERENCE_TAB_CHARACTER_PREFERENCESOpen the character preference window
PREFERENCE_TAB_GAME_PREFERENCESOpen the game preferences window
PREFERENCE_TAB_KEYBINDINGSOpen the keybindings window
PREFERENCE_CATEGORY_FEATURESThese will be shown in the character sidebar, but at the bottom.
PREFERENCE_CATEGORY_CLOTHINGAny preferences that will show to the sides of the character in the setup menu.
PREFERENCE_CATEGORY_NON_CONTEXTUALPreferences that will be put into the 3rd list, and are not contextual.
PREFERENCE_CATEGORY_GAME_PREFERENCESWill be put under the game preferences window.
PREFERENCE_CATEGORY_SECONDARY_FEATURESThese will show in the list to the right of the character preview.
PREFERENCE_CATEGORY_SUPPLEMENTAL_FEATURESThese are preferences that are supplementary for main features, such as hair color being affixed to hair.
PREFERENCE_CATEGORY_MANUALLY_RENDEREDThese preferences will not be rendered on the preferences page, and are practically invisible unless specifically rendered. Used for quirks, currently.
PLAYTIME_HARDCORE_RANDOMThe time needed to unlock hardcore random mode in preferences
PLAYTIME_VETERANThe time needed to unlock the gamer cloak in preferences
SPRITE_ACCESSORY_NONEThe key used for sprite accessories that should never actually be applied to the player.
LOADOUT_FLAG_JOB_GREYSCALINGWhen equipped, applies a job specific palette to the item. Only applicable to GAGS items.
LOADOUT_FLAG_BLOCK_GREYSCALINGPrevents GAGS items from being player customizable.
LOADOUT_FLAG_GREYSCALING_ALLOWEDAllows the item to be greyscaled by the player, if it's a GAGS item. Automatically set if the item is innately recolorable.
LOADOUT_FLAG_ALLOW_NAMINGAllows the item to be renamed by the player.
LOADOUT_FLAG_ALLOW_RESKINAllows the item to be reskinned by the player. Only applicable to items with unique_reskin defined.
INFO_GREYSCALETracks GAGS color information
INFO_NAMEDUsed to set custom names
INFO_RESKINUsed for specific alt-reskins, like the pride pin
INFO_LAYERHandles which layer the item will be on, for accessories

Define Details

DEV_PREFS_PATH

File path to the dev preference json file, which is loaded by guests while localhosting.

INFO_GREYSCALE

Tracks GAGS color information

INFO_LAYER

Handles which layer the item will be on, for accessories

INFO_NAMED

Used to set custom names

INFO_RESKIN

Used for specific alt-reskins, like the pride pin

LOADOUT_FLAG_ALLOW_NAMING

Allows the item to be renamed by the player.

LOADOUT_FLAG_ALLOW_RESKIN

Allows the item to be reskinned by the player. Only applicable to items with unique_reskin defined.

LOADOUT_FLAG_BLOCK_GREYSCALING

Prevents GAGS items from being player customizable.

LOADOUT_FLAG_GREYSCALING_ALLOWED

Allows the item to be greyscaled by the player, if it's a GAGS item. Automatically set if the item is innately recolorable.

LOADOUT_FLAG_JOB_GREYSCALING

When equipped, applies a job specific palette to the item. Only applicable to GAGS items.

PLAYTIME_HARDCORE_RANDOM

The time needed to unlock hardcore random mode in preferences

PLAYTIME_VETERAN

The time needed to unlock the gamer cloak in preferences

PREFERENCE_CATEGORY_CLOTHING

Any preferences that will show to the sides of the character in the setup menu.

PREFERENCE_CATEGORY_FEATURES

These will be shown in the character sidebar, but at the bottom.

PREFERENCE_CATEGORY_GAME_PREFERENCES

Will be put under the game preferences window.

PREFERENCE_CATEGORY_MANUALLY_RENDERED

These preferences will not be rendered on the preferences page, and are practically invisible unless specifically rendered. Used for quirks, currently.

PREFERENCE_CATEGORY_NON_CONTEXTUAL

Preferences that will be put into the 3rd list, and are not contextual.

PREFERENCE_CATEGORY_SECONDARY_FEATURES

These will show in the list to the right of the character preview.

PREFERENCE_CATEGORY_SUPPLEMENTAL_FEATURES

These are preferences that are supplementary for main features, such as hair color being affixed to hair.

PREFERENCE_CHARACTER

This preference is character specific.

PREFERENCE_PLAYER

This preference is account specific.

PREFERENCE_TAB_CHARACTER_PREFERENCES

Open the character preference window

PREFERENCE_TAB_GAME_PREFERENCES

Open the game preferences window

PREFERENCE_TAB_KEYBINDINGS

Open the keybindings window

PREFS_BACKUP_PATH

File path to where we save backups of preference savefiles when updating them.

SPRITE_ACCESSORY_NONE

The key used for sprite accessories that should never actually be applied to the player.

TGUI_LAYOUT_GRID

Force grid layout, even if default is a list.

TGUI_LAYOUT_LIST

Force list layout, even if default is a grid.