Skip to content

Commit e5eefcd

Browse files
committed
Fix mod options menu title showing the mod title instead of the title defined when registering the mod
1 parent b6e636f commit e5eefcd

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Improve browser compatibility
1919
- Fix mod menu sometimes opening empty
2020
- Improve cc-instanceinator compatibility
21+
- Fix mod options menu title showing the mod title instead of the title defined when registering the mod
2122

2223
## [1.0.3] 2025-02-16
2324

src/gui/options/mod-options-menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ modmanager.gui.OptionsMenu = sc.BaseMenu.extend({
209209
const smb = sc.menu.guiReference.menuDisplay.hook.children
210210
.filter(h => h.gui instanceof sc.MainMenu.SubMenuBox)
211211
.last().gui as sc.MainMenu.SubMenuBox
212-
smb.text.setText(this.mod.name)
212+
smb.text.setText(modmanager.optionConfigs[this.mod.id].settings.title ?? this.mod.name)
213213
},
214214
resetOptionsToDefault() {
215215
const options = modmanager.options[this.mod.id]

0 commit comments

Comments
 (0)