mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-23 14:56:11 +00:00
Save State Slots: Add enabler toggle, switch to Shield+Left/Right (#505)
* Switch to Shield+Left/Right * Add option in menu
This commit is contained in:
parent
89569c7154
commit
58a18de2b9
2 changed files with 19 additions and 4 deletions
|
@ -119,11 +119,11 @@ fn save_all_btn_config_from_defaults() {
|
||||||
press: vec!["UPTAUNT".to_string()],
|
press: vec!["UPTAUNT".to_string()],
|
||||||
},
|
},
|
||||||
previous_save_state_slot: BtnList {
|
previous_save_state_slot: BtnList {
|
||||||
hold: vec!["GRAB".to_string()],
|
hold: vec!["SHIELD".to_string()],
|
||||||
press: vec!["LEFTTAUNT".to_string()],
|
press: vec!["LEFTTAUNT".to_string()],
|
||||||
},
|
},
|
||||||
next_save_state_slot: BtnList {
|
next_save_state_slot: BtnList {
|
||||||
hold: vec!["GRAB".to_string()],
|
hold: vec!["SHIELD".to_string()],
|
||||||
press: vec!["RIGHTTAUNT".to_string()],
|
press: vec!["RIGHTTAUNT".to_string()],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -270,10 +270,10 @@ hold=["GRAB",]
|
||||||
press=["UPTAUNT",]
|
press=["UPTAUNT",]
|
||||||
|
|
||||||
[button_config.previous_save_state_slot]
|
[button_config.previous_save_state_slot]
|
||||||
hold=["GRAB",]
|
hold=["SHIELD",]
|
||||||
press=["LEFTTAUNT",]
|
press=["LEFTTAUNT",]
|
||||||
|
|
||||||
[button_config.next_save_state_slot]
|
[button_config.next_save_state_slot]
|
||||||
hold=["GRAB",]
|
hold=["SHIELD",]
|
||||||
press=["RIGHTTAUNT",]
|
press=["RIGHTTAUNT",]
|
||||||
"#;
|
"#;
|
||||||
|
|
|
@ -48,6 +48,7 @@ pub struct TrainingModpackMenu {
|
||||||
pub save_damage_limits_player: DamagePercent,
|
pub save_damage_limits_player: DamagePercent,
|
||||||
pub save_state_autoload: OnOff,
|
pub save_state_autoload: OnOff,
|
||||||
pub save_state_enable: OnOff,
|
pub save_state_enable: OnOff,
|
||||||
|
pub save_state_slot_enable: OnOff,
|
||||||
pub save_state_mirroring: SaveStateMirroring,
|
pub save_state_mirroring: SaveStateMirroring,
|
||||||
pub sdi_state: Direction,
|
pub sdi_state: Direction,
|
||||||
pub sdi_strength: SdiFrequency,
|
pub sdi_strength: SdiFrequency,
|
||||||
|
@ -123,6 +124,7 @@ pub static DEFAULTS_MENU: TrainingModpackMenu = TrainingModpackMenu {
|
||||||
save_damage_limits_player: DamagePercent::default(),
|
save_damage_limits_player: DamagePercent::default(),
|
||||||
save_state_autoload: OnOff::Off,
|
save_state_autoload: OnOff::Off,
|
||||||
save_state_enable: OnOff::On,
|
save_state_enable: OnOff::On,
|
||||||
|
save_state_slot_enable: OnOff::On,
|
||||||
save_state_mirroring: SaveStateMirroring::None,
|
save_state_mirroring: SaveStateMirroring::None,
|
||||||
sdi_state: Direction::empty(),
|
sdi_state: Direction::empty(),
|
||||||
sdi_strength: SdiFrequency::None,
|
sdi_strength: SdiFrequency::None,
|
||||||
|
@ -527,6 +529,19 @@ pub unsafe fn ui_menu(menu: TrainingModpackMenu) -> UiMenu<'static> {
|
||||||
true,
|
true,
|
||||||
&(menu.save_state_enable as u32),
|
&(menu.save_state_enable as u32),
|
||||||
);
|
);
|
||||||
|
save_state_tab.add_submenu_with_toggles::<OnOff>(
|
||||||
|
|
||||||
|
"Enable Slots",
|
||||||
|
|
||||||
|
"save_state_slot_enable",
|
||||||
|
|
||||||
|
"Save State Slots: Enable save state slots. Switch to a different slot with Shield+Left or Right Taunt.",
|
||||||
|
|
||||||
|
true,
|
||||||
|
|
||||||
|
&(menu.save_state_enable as u32),
|
||||||
|
|
||||||
|
);
|
||||||
save_state_tab.add_submenu_with_toggles::<CharacterItem>(
|
save_state_tab.add_submenu_with_toggles::<CharacterItem>(
|
||||||
"Character Item",
|
"Character Item",
|
||||||
"character_item",
|
"character_item",
|
||||||
|
|
Loading…
Add table
Reference in a new issue