From d9e789f30adf176ca34e129270e7c4ffd263d7c3 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sat, 21 Dec 2024 16:42:54 +0100 Subject: [PATCH] Allowing user to toggle commandCursorReset on and off. --- src/system/settings/settings.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/system/settings/settings.ts b/src/system/settings/settings.ts index 64ddfdae5cf..d91a6fda2f0 100644 --- a/src/system/settings/settings.ts +++ b/src/system/settings/settings.ts @@ -157,6 +157,7 @@ export const SettingKeys = { Move_Animations: "MOVE_ANIMATIONS", Show_Stats_on_Level_Up: "SHOW_LEVEL_UP_STATS", Shop_Cursor_Target: "SHOP_CURSOR_TARGET", + Command_Cursor_Reset: "COMMAND_CURSOR_RESET", Candy_Upgrade_Notification: "CANDY_UPGRADE_NOTIFICATION", Candy_Upgrade_Display: "CANDY_UPGRADE_DISPLAY", Move_Info: "MOVE_INFO", @@ -681,6 +682,13 @@ export const Setting: Array = [ default: 0, type: SettingType.DISPLAY }, + { + key: SettingKeys.Command_Cursor_Reset, + label: i18next.t("settings:commandCursorReset"), + options: OFF_ON, + default: 1, + type: SettingType.DISPLAY + }, { key: SettingKeys.Shop_Overlay_Opacity, label: i18next.t("settings:shopOverlayOpacity"), @@ -827,6 +835,9 @@ export function setSetting(scene: BattleScene, setting: string, value: integer): const selectedValue = shopCursorTargetIndexMap[value]; scene.shopCursorTarget = selectedValue; break; + case SettingKeys.Command_Cursor_Reset: + scene.commandCursorReset = Setting[index].options[value].value === "On"; + break; case SettingKeys.EXP_Gains_Speed: scene.expGainsSpeed = value; break;