Allowing user to toggle commandCursorReset on and off.

This commit is contained in:
Wlowscha 2024-12-21 16:42:54 +01:00
parent b8bc8c43fa
commit d9e789f30a
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
1 changed files with 11 additions and 0 deletions

View File

@ -157,6 +157,7 @@ export const SettingKeys = {
Move_Animations: "MOVE_ANIMATIONS", Move_Animations: "MOVE_ANIMATIONS",
Show_Stats_on_Level_Up: "SHOW_LEVEL_UP_STATS", Show_Stats_on_Level_Up: "SHOW_LEVEL_UP_STATS",
Shop_Cursor_Target: "SHOP_CURSOR_TARGET", Shop_Cursor_Target: "SHOP_CURSOR_TARGET",
Command_Cursor_Reset: "COMMAND_CURSOR_RESET",
Candy_Upgrade_Notification: "CANDY_UPGRADE_NOTIFICATION", Candy_Upgrade_Notification: "CANDY_UPGRADE_NOTIFICATION",
Candy_Upgrade_Display: "CANDY_UPGRADE_DISPLAY", Candy_Upgrade_Display: "CANDY_UPGRADE_DISPLAY",
Move_Info: "MOVE_INFO", Move_Info: "MOVE_INFO",
@ -681,6 +682,13 @@ export const Setting: Array<Setting> = [
default: 0, default: 0,
type: SettingType.DISPLAY 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, key: SettingKeys.Shop_Overlay_Opacity,
label: i18next.t("settings:shopOverlayOpacity"), label: i18next.t("settings:shopOverlayOpacity"),
@ -827,6 +835,9 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
const selectedValue = shopCursorTargetIndexMap[value]; const selectedValue = shopCursorTargetIndexMap[value];
scene.shopCursorTarget = selectedValue; scene.shopCursorTarget = selectedValue;
break; break;
case SettingKeys.Command_Cursor_Reset:
scene.commandCursorReset = Setting[index].options[value].value === "On";
break;
case SettingKeys.EXP_Gains_Speed: case SettingKeys.EXP_Gains_Speed:
scene.expGainsSpeed = value; scene.expGainsSpeed = value;
break; break;