1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-14 02:16:10 +00:00

rearrange menu, add headers

This commit is contained in:
jugeeya 2020-08-18 11:35:28 -07:00
parent 4cc66547c0
commit 0618cdd939
3 changed files with 48 additions and 39 deletions

View file

@ -16,8 +16,9 @@ Built releases can be found [here](https://github.com/jugeeya/UltimateTrainingMo
# Features
The features in this modpack are configured through the Tesla menu, which can be accessed at any time with by pressing `L+X+DPad Left`. This button configuration is fully configurable in the file `/config/tesla/config.ini`.
[<img src="https://i.imgur.com/ZjbGRwy.jpg">](https://i.imgur.com/ZjbGRwy.jpg)
[<img src="https://pbs.twimg.com/media/EZCN6c_UEAEViHA?format=jpg&name=large">](https://pbs.twimg.com/media/EZCN6c_UEAEViHA?format=jpg&name=large)
[<img src="https://i.imgur.com/HRKvIb3.jpg">](https://i.imgur.com/HRKvIb3.jpg)
[<img src="https://i.imgur.com/eSrtDyj.png">](https://i.imgur.com/eSrtDyj.png)
[<img src="https://i.imgur.com/7Cd6utU.jpg>](https://i.imgur.com/7Cd6utU.jpg)
#### Save States
At any time in Training Mode, you can press `Grab + Down Taunt` to save the state of training mode. This will save the position, state, and damage of each fighter, which can then be reverted to at any time with `Grab + Up Taunt`. Use this instead of the built-in training mode reset!

View file

@ -363,32 +363,7 @@ tsl::elm::Element* GuiMain::createUI()
{
svcCloseHandle(debug);
ClickableListItem* frameAdvantageItem = new ClickableListItem("Frame Advantage",
frame_advantage_items,
nullptr,
"frameAdvantage",
0,
"Frame Advantage",
frame_advantage_help);
frameAdvantageItem->setClickListener([](std::vector<std::string> values,
int* curValue,
std::string extdata,
int index,
std::string title,
std::string help) { tsl::changeTo<GuiFrameAdvantage>(); });
frameAdvantageItem->setHelpListener(
[](std::string title, std::string help) { tsl::changeTo<GuiHelp>(title, help); });
list->addItem(frameAdvantageItem);
ValueListItem* hitboxItem =
new ValueListItem("Hitbox Visualization", on_off, &menu.HITBOX_VIS, "hitbox", hitbox_help);
list->addItem(hitboxItem);
valueListItems.push_back(hitboxItem);
ValueListItem* shieldItem =
new ValueListItem("Shield Options", shield_items, &menu.SHIELD_STATE, "shield", shield_help);
list->addItem(shieldItem);
valueListItems.push_back(shieldItem);
list->addItem(new tsl::elm::CategoryHeader("Mash", true));
list->addItem(createBitFlagOption(&menu.MASH_STATE, "Mash Toggles", mash_help));
@ -399,30 +374,59 @@ tsl::elm::Element* GuiMain::createUI()
list->addItem(mashNeutralItem);
valueListItems.push_back(mashNeutralItem);
list->addItem(createBitFlagOption(&menu.LEDGE_STATE, "Ledge Options", ledge_help));
list->addItem(createBitFlagOption(&menu.TECH_STATE, "Tech Options", tech_help));
list->addItem(createBitFlagOption(&menu.DEFENSIVE_STATE, "Defensive Options", defensive_help));
list->addItem(new tsl::elm::CategoryHeader("Left Stick", true));
list->addItem(createBitFlagOption(&menu.DI_STATE, "Set DI", di_help));
list->addItem(createBitFlagOption(&menu.SDI_STATE, "Set SDI", ""));
list->addItem(createBitFlagOption(&menu.LEFT_STICK, "Airdodge Direction", left_stick_help));
list->addItem(createBitFlagOption(&menu.LEFT_STICK, "Left Stick", left_stick_help));
list->addItem(new tsl::elm::CategoryHeader("Shield", true));
ValueListItem* shieldItem =
new ValueListItem("Shield Options", shield_items, &menu.SHIELD_STATE, "shield", shield_help);
list->addItem(shieldItem);
valueListItems.push_back(shieldItem);
ClickableListItem* frameAdvantageItem = new ClickableListItem("Frame Advantage",
frame_advantage_items,
nullptr,
"frameAdvantage",
0,
"Frame Advantage",
frame_advantage_help);
frameAdvantageItem->setClickListener([](std::vector<std::string> values,
int* curValue,
std::string extdata,
int index,
std::string title,
std::string help) { tsl::changeTo<GuiFrameAdvantage>(); });
frameAdvantageItem->setHelpListener(
[](std::string title, std::string help) { tsl::changeTo<GuiHelp>(title, help); });
list->addItem(frameAdvantageItem);
list->addItem(createBitFlagOption(&menu.OOS_OFFSET, "OOS Offset", oos_help));
list->addItem(createBitFlagOption(&menu.REACTION_TIME, "Reaction Time", reaction_time_help));
list->addItem(new tsl::elm::CategoryHeader("Chase", true));
list->addItem(createBitFlagOption(&menu.LEDGE_STATE, "Ledge Options", ledge_help));
list->addItem(createBitFlagOption(&menu.TECH_STATE, "Tech Options", tech_help));
list->addItem(createBitFlagOption(&menu.DEFENSIVE_STATE, "Defensive Options", defensive_help));
list->addItem(new tsl::elm::CategoryHeader("Aerials", true));
list->addItem(createBitFlagOption(&menu.FAST_FALL, "Fast Fall", ""));
list->addItem(createBitFlagOption(&menu.FAST_FALL_DELAY, "Fast Fall Delay", "In Frames"));
list->addItem(createBitFlagOption(&menu.FALLING_AERIALS, "Falling Aerials", ""));
list->addItem(createBitFlagOption(&menu.FULL_HOP, "Full Hop", ""));
list->addItem(new tsl::elm::CategoryHeader("Miscellaneous", true));
ValueListItem* hitboxItem =
new ValueListItem("Hitbox Visualization", on_off, &menu.HITBOX_VIS, "hitbox", hitbox_help);
list->addItem(hitboxItem);
valueListItems.push_back(hitboxItem);
ClickableListItem* saveStateItem = new ClickableListItem(
"Save States", save_state_items, nullptr, "saveStates", 0, "Save States", save_states_help);
saveStateItem->setClickListener([](std::vector<std::string> values,

4
full_build.sh Normal file
View file

@ -0,0 +1,4 @@
# assumes you've set ip with `cargo skyline set-ip [x.x.x.x]`
cargo skyline build --release && cargo skyline install
cd TrainingModpackOverlay && make && cd - && cargo skyline cp TrainingModpackOverlay/ovlTrainingModpack.ovl sd:/switch/.overlays