forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Paxilmaniac/face-mouse-on-combat-mode
Adds a preference for facing your mouse while in combat mode
- Loading branch information
Showing
6 changed files
with
24 additions
and
3 deletions.
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
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
4 changes: 4 additions & 0 deletions
4
modular_doppler/face_mouse_preferences/code/face_mouse_pref.dm
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 @@ | ||
/datum/preference/toggle/face_cursor_combat_mode | ||
category = PREFERENCE_CATEGORY_GAME_PREFERENCES | ||
savefile_key = "face_cursor_combat_mode" | ||
savefile_identifier = PREFERENCE_PLAYER |
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
9 changes: 9 additions & 0 deletions
9
...ui/interfaces/PreferencesMenu/preferences/features/game_preferences/face_mouse_combat.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,9 @@ | ||
import { CheckboxInput, FeatureToggle } from '../base'; | ||
|
||
export const face_cursor_combat_mode: FeatureToggle = { | ||
name: 'Face mouse in combat mode', | ||
category: 'GAMEPLAY', | ||
description: | ||
'If your character should face towards your cursor while in combat mode.', | ||
component: CheckboxInput, | ||
}; |