NicerSceneNames
This is a utility mod for mod developers. It does not add any features for players on its own. See the README for more details.
模組介紹 作者原文
Nicer Scene Names
This is a utility mod for mod developers. It does not add any features for players on its own.
I was told that SceneHelper.CurrentScene() no longer has nice to work with names for most scenes. This mod should make that a little easier. In your code, replace SceneHelper.CurrentScene() with SceneNamer.CurrentScene(), and it should work the same as before, for the most part; it should use the same names as before for most scenes. The following scene names are supported:
- "Intro" (the entire startup animation)
- "Main Menu"
- "Bootstrap" (the tutorial level and the boot up sequence from a new save/0-1 full intro)
- "Level #-#" (replace the #'s with the numbers/letters of the level name)
- "Intermission1" (Act 1 ending cutscene)
- "Intermission2" (Act 2 ending cutscene)
- "Cybergrind" (may be different from with SceneHelper)
- "Sandbox" (may be different from with SceneHelper)
- "Museum" (may be different from with SceneHelper)
There are also the following helper methods for determining scenes:
- IsGameplayScene()
- IsGameplaySceneIncludingBootstrap()
- IsPrimeSanctum()
- IsEncore()
- IsSecretLevel()
- IsIntermission()
These methods each have two versions: one with a scene parameter and one with a name string parameter and optional bool parameter for if it's already a nice name (defaults to false). IsGameplayScene returns false for Bootstrap, but IsGameplaySceneIncludingBootstrap() returns true instead.
Other than that, if you want to get the name of a scene that isn't the currently loaded one, you can use GetNiceSceneName(). There is a version with a scene parameter and one with a name string parameter.
Changelog
v1.0.2
- Properly updated the version number
v1.0.1
- Fixed typo in Main Menu scene name (was unintentionally Main Manu)
v1.0.0
- Initial release
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: