mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 17:29:30 +02:00
Add settings
Lazy Reloads: Flags every page refresh as a required reload, even if nothing changed
This commit is contained in:
parent
c39ecd7181
commit
c1873cdb56
@ -121,6 +121,7 @@ export default class BattleScene extends SceneBase {
|
|||||||
public enableMoveInfo: boolean = true;
|
public enableMoveInfo: boolean = true;
|
||||||
public enableRetries: boolean = false;
|
public enableRetries: boolean = false;
|
||||||
public damageDisplay: string = "Off";
|
public damageDisplay: string = "Off";
|
||||||
|
public lazyReloads: boolean = false;
|
||||||
/**
|
/**
|
||||||
* Determines the condition for a notification should be shown for Candy Upgrades
|
* Determines the condition for a notification should be shown for Candy Upgrades
|
||||||
* - 0 = 'Off'
|
* - 0 = 'Off'
|
||||||
|
@ -99,7 +99,8 @@ export const SettingKeys = {
|
|||||||
SE_Volume: "SE_VOLUME",
|
SE_Volume: "SE_VOLUME",
|
||||||
Music_Preference: "MUSIC_PREFERENCE",
|
Music_Preference: "MUSIC_PREFERENCE",
|
||||||
Show_BGM_Bar: "SHOW_BGM_BAR",
|
Show_BGM_Bar: "SHOW_BGM_BAR",
|
||||||
Damage_Display: "DAMAGE_DISPLAY"
|
Damage_Display: "DAMAGE_DISPLAY",
|
||||||
|
LazyReloads: "FLAG_EVERY_RESET_AS_RELOAD"
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -146,6 +147,35 @@ export const Setting: Array<Setting> = [
|
|||||||
default: 3,
|
default: 3,
|
||||||
type: SettingType.GENERAL
|
type: SettingType.GENERAL
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: SettingKeys.Damage_Display,
|
||||||
|
label: "Damage Display",
|
||||||
|
options: [{
|
||||||
|
label: "Off",
|
||||||
|
value: "Off"
|
||||||
|
}, {
|
||||||
|
label: "Value",
|
||||||
|
value: "Value"
|
||||||
|
}, {
|
||||||
|
label: "Percent",
|
||||||
|
value: "Percent"
|
||||||
|
}],
|
||||||
|
default: 0,
|
||||||
|
type: SettingType.GENERAL,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: SettingKeys.LazyReloads,
|
||||||
|
label: "Lazy Reloads",
|
||||||
|
options: [{
|
||||||
|
label: "Off",
|
||||||
|
value: "Off"
|
||||||
|
}, {
|
||||||
|
label: "On",
|
||||||
|
value: "On"
|
||||||
|
}],
|
||||||
|
default: 0,
|
||||||
|
type: SettingType.GENERAL,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: SettingKeys.HP_Bar_Speed,
|
key: SettingKeys.HP_Bar_Speed,
|
||||||
label: i18next.t("settings:hpBarSpeed"),
|
label: i18next.t("settings:hpBarSpeed"),
|
||||||
@ -244,22 +274,6 @@ export const Setting: Array<Setting> = [
|
|||||||
default: 0,
|
default: 0,
|
||||||
type: SettingType.GENERAL
|
type: SettingType.GENERAL
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: SettingKeys.Damage_Display,
|
|
||||||
label: "Damage Display",
|
|
||||||
options: [{
|
|
||||||
label: "Off",
|
|
||||||
value: "Off"
|
|
||||||
}, {
|
|
||||||
label: "Value",
|
|
||||||
value: "Value"
|
|
||||||
}, {
|
|
||||||
label: "Percent",
|
|
||||||
value: "Percent"
|
|
||||||
}],
|
|
||||||
default: 0,
|
|
||||||
type: SettingType.GENERAL,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: SettingKeys.Tutorials,
|
key: SettingKeys.Tutorials,
|
||||||
label: i18next.t("settings:tutorials"),
|
label: i18next.t("settings:tutorials"),
|
||||||
@ -624,6 +638,8 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
|
|||||||
break;
|
break;
|
||||||
case SettingKeys.Damage_Display:
|
case SettingKeys.Damage_Display:
|
||||||
scene.damageDisplay = Setting[index].options[value].value
|
scene.damageDisplay = Setting[index].options[value].value
|
||||||
|
case SettingKeys.LazyReloads:
|
||||||
|
scene.lazyReloads = Setting[index].options[value].value == "On"
|
||||||
case SettingKeys.Skip_Seen_Dialogues:
|
case SettingKeys.Skip_Seen_Dialogues:
|
||||||
scene.skipSeenDialogues = Setting[index].options[value].value === "On";
|
scene.skipSeenDialogues = Setting[index].options[value].value === "On";
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user