CooldownHelper

版本 v1.0.3·更新於 2024-12-28

Allows for displaying cooldowns on the HUD.

截圖 共 1 張

模組介紹 作者原文

Allows for displaying cooldowns on the HUD.

(Automatically adds Time Keeper's Secret's cooldown.)

Import line:

Cooldown = mods["Klehrik-CooldownHelper"].setup()

Functions

Cooldown.set(inst, id, duration, [icon], [color]) -> nil

Adds a cooldown to the instance.

Overrides the existing cooldown if the ID is already in use.

Parameters:

| Parameter | Type | Description |

| ------------- | -------- | --------------- |

| inst | CInstance or Instance object | The instance to set the cooldown for. |

| id | string | The identifier for the cooldown. |

| duration | number | The maximum time for the cooldown (in frames). |

| [icon] | sprite | _Player HUD:_ The icon to display on the cooldown visual.

Should be 8px x 8px. |

| [color] | color | _Player HUD:_ The color to use for the cooldown visual. |

Cooldown.get(inst, id) -> number, number, sprite, color

Returns information about a cooldown as unpacked values.

remaining time, maximum time, icon sprite, color

Parameters:

| Parameter | Type | Description |

| ------------- | -------- | --------------- |

| inst | CInstance or Instance object | The instance to get the cooldown from. |

| id | string | The identifier for the cooldown. |

Installation Instructions

Follow the instructions listed here.

Join the Return of Modding server for support.

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

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

不同模組的安裝位置差異較大,包內說明是最可靠的依據。 若模組依賴 ReturnOfModding 之類的載入器,請先按包內說明裝好。

前置依賴

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

ReturnOfModding-ReturnOfModdingRoRRModdingToolkit-RoRR_Modding_ToolkitMGReturns-ENVY

檔案與校驗

檔案名稱
CooldownHelper-1.0.3.zip
檔案大小
4.9 KiB
SHA-256
33463944dd27671a37cc5b602938b8ef8833cf832c9deb84b9c9e9a9bbdca7a0
入庫時間
2026-10-07 11:58