True HUD switching

by mavirick·v1.0·Updated 2019-01-08

添加用于切换启用的HUD元素的可分配操作。

About this mod Machine translation

Added assignable action for toggling enabled HUD elements.

This module adds an assignable action for toggling the visibility of all enabled HUD elements. It's based on skacikpl's HUD key switching, but uses only one key and supports specific HUD element switching - i.e. what the player has open in its Options > Video > HUD configuration.

Install:

Install using mod manager or unzip into your…\witcher 3 wild hunt\mods folder.

Open your ...\documents\witcher 3\input.settings file using any text editor and add a line under each relevant context tag * to bind the hudtogle action to the required key.

For example, if you want to bind Hudtogle to F3, you can add:

ik_f3=(action=hudtogle)

below each label.

*I've done [Ship], [Ship Passenger], [Combat], [Combat Replacer], [Diving], [Expedition], [Expedition Replacer], [Horse], [Horse Replacer], [Skydiving], [Swimming], [Throwhold]

NOTE: The HUD configuration is initialized after every load, so if certain elements are enabled/disabled, they will not toggle properly until savegame is reloaded.

Customize:

To prevent certain HUD elements from being turned off, modify the default value in initialize() to be 0 instead of -1.

For example, if I wanted to turn on the minimap and toggle everything else, I would modify line 102 of modhudtogle\content\scripts\game\player\playerinput.ws to have minimap2default=0 instead of -1. As long as the minimap is enabled in your HUD configuration, it will not be touched by the toggle function.

You can even modify this setting to switch between two custom HUD configurations:

For HUD 1, you want to turn on each element in the HUD configuration and leave it in its default state (or set it to 1).

For hud 2, you want to turn off every element in the hud configuration and set its default value to 1.

For elements that are always hidden, turn off each element in the HUD configuration and keep it in its default state (or set it to 0).

Install & use Install: follow the bundled instructions

  1. Unzip the archive from playbuff and read the bundled readme / instructions first.
  2. There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
  3. Place the files exactly as the readme says; mods with listed dependencies need those installed too.
  4. Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.

Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.

File & checksum

Filename
真正的HUD切换
File size
17.8 KiB