forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nearsighted quirk lets you pick the look of the glasses you spawn with (
tgstation#62145) expansion: Nearsighter quirk now lets you pick the look of your prescription glasses from the character preference menu imageadd: Added thin prescription glasses
- Loading branch information
Showing
8 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
///Lists related to quirk selection | ||
|
||
///Types of glasses that can be selected at character selection with the Nearsighted quirk | ||
GLOBAL_LIST_INIT(nearsighted_glasses, list("Regular","Thin","Circle","Hipster")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/datum/preference/choiced/glasses | ||
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES | ||
savefile_key = "glasses" | ||
savefile_identifier = PREFERENCE_CHARACTER | ||
|
||
/datum/preference/choiced/glasses/init_possible_values() | ||
return GLOB.nearsighted_glasses | ||
|
||
/datum/preference/choiced/glasses/is_accessible(datum/preferences/preferences) | ||
if (!..(preferences)) | ||
return FALSE | ||
|
||
return "Nearsighted" in preferences.all_quirks | ||
|
||
/datum/preference/choiced/glasses/apply_to_human(mob/living/carbon/human/target, value) | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...es/tgui/interfaces/PreferencesMenu/preferences/features/character_preferences/glasses.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { FeatureChoiced, FeatureDropdownInput } from "../base"; | ||
|
||
export const glasses: FeatureChoiced = { | ||
name: "Glasses", | ||
component: FeatureDropdownInput, | ||
}; |