ColorEquipment

版本 v1.0.0·更新於 2023-03-29

Add color to the map screen and teammate HUD based on available resource amounts

模組介紹 作者原文

Preview

Features

  • Add color to the map screen and teammate HUD based on available resource amounts
  • Colors and resource thresholds are fully customizable
  • Add missing details such as "sentrygun DEPLOYED" on the teammate HUD

Example: Map screen

Compatability

ColorGradingHUDInfo

This plugin was conceived as an extension of CGHI and as such has some overlap in features. There is code in place to ensure some compatability with the current version of CGHI (0.0.4).

Features:

  • Use ColorEquipment with the CGHI teammate HUD as an override (optional)
  • All other CGHI Features remain functional as normal

Extra Synergy:

  • Allows ColorEquipment teammate HUD to use CGHI dynamic teammate HUD scaling (optional)

Configuration HowTo

Color values are HTML color codes in the format #RRGGBB (no alpha).

Color thresholds are floating point values between 0.0 and 1.0, representing 0% and 100% respectively.

The color scaler follows these three rules:

  • If the resource amount is greater than the Low threshold; use the game default color.
  • If the resource amount is lower than the Low threshold but greater than the Critical threshold; use the Low color.
  • If the resource amount is lower than the Critical threshold; blend the color between the Low color and the Critical color.

Example: Two color scaling across the entire range (green -> red)

Normally any resource amount that is above the Low threshold will not result in a change of color. In order to always have a color the Low threshold should be set to 1.

We only want to use two colors, so also set the Critical threshold to 1. Now when the value is at 100% we effectively use the Low color, when the value is 0% we use the Critical color.

Set all thresholds to 1; this will allow us to scale directly from the Low color to the Critically low color.

[Thresholds]

Resource Low = 1

Resource Critical = 1

Health Low = 1

Health Critical = 1

Set the Low to the desired color when a resource is at 100%.

Set the Critical to the desired color when a resource is at 0%.

[Colors]

Low = #00FF00

Critical = #FF0000

The color will now blend between the two values, as shown in this figure:

Contact

Discord: Talcazzar#4931

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_GTFO

檔案與校驗

檔案名稱
ColorEquipment-1.0.0.zip
檔案大小
84.0 KiB