About this mod
Use a hotkey to toggle the High Contrast Gameplay setting in Accessibility Options.
- Requirements
- Permissions and credits
The script binds 2 hotkeys.
- toggleKey (default: End) - Turns the setting on or off each time it's pressed.
- delayKey (default: PageDown) - Turns the setting on for a period of time (default 5 seconds) then back off. Before the timer runs out, you can press:
- delayKey again - Restarts the shutoff timer
- toggleKey once - Disables the shutoff timer so the setting stays on
- toggleKey twice - Turns the setting off
Install
Extract the contents of the archive to <game folder>\Phoenix\Binaries\Win64\Mods (this folder should already be created by UE4SS)
If you want to customize the keys or the delay period, edit HighContrastHotkey\Scripts\main.lua
Example, change the delayKey to / and toggleKey to ?
-- Toggle switch key for manual on/off
toggleKey = Key.OEM_TWO
-- Uncomment one line below to choose a modifier key
-- toggleModifier = { } -- no modifier
-- toggleModifier = { ModifierKey.ALT }
toggleModifier = { ModifierKey.SHIFT }
-- toggleModifier = { ModifierKey.CONTROL }
-- Timed activation key, turns the option on for a set period and then back off
delayKey = Key.OEM_TWO
-- Uncomment one line below to choose a modifier key
delayModifier = { }
-- delayModifier = { ModifierKey.ALT }
-- delayModifier = { ModifierKey.SHIFT }
-- delayModifier = { ModifierKey.CONTROL }
Restart the game after making changes to the script. It should print "HighContrastHotkey ready" to the console during startup.