mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-12-29 10:56:01 +00:00
small touchups
This commit is contained in:
parent
0cf58455b2
commit
1ac266683a
6 changed files with 14 additions and 15 deletions
|
@ -7,7 +7,7 @@ class JCPage : public brls::AppletFrame
|
||||||
private:
|
private:
|
||||||
brls::List* list;
|
brls::List* list;
|
||||||
brls::Label* label;
|
brls::Label* label;
|
||||||
std::vector<brls::ListItem*> items;
|
brls::ListItem* listItem;
|
||||||
brls::ListItem* restore;
|
brls::ListItem* restore;
|
||||||
brls::ListItem* backup;
|
brls::ListItem* backup;
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ class PCPage : public brls::AppletFrame
|
||||||
private:
|
private:
|
||||||
brls::List* list;
|
brls::List* list;
|
||||||
brls::Label* label;
|
brls::Label* label;
|
||||||
std::vector<brls::ListItem*> items;
|
brls::ListItem* listItem;
|
||||||
brls::ListItem* restore;
|
brls::ListItem* restore;
|
||||||
brls::ListItem* backup;
|
brls::ListItem* backup;
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
"ams_update": {
|
"ams_update": {
|
||||||
"reboot_rcm": "Die switch wird nun zu einem Speziellem Payload rebooten um den Installationsprozess ab zu schließen.",
|
"reboot_rcm": "Die switch wird nun zu einem Speziellem Payload rebooten um den Installationsprozess ab zu schließen.",
|
||||||
"install_hekate": "Möchtest du auch Hekate herunterladen?\nFalls nein, wird die Switch nun zu einem Speziellem Payload rebooten um den Installationsprozess ab zu schließen.",
|
"install_hekate": "Möchtest du auch Hekate herunterladen?\nFalls nein, wird die Switch nun zu einem Speziellem Payload rebooten um den Installationsprozess ab zu schließen.",
|
||||||
"delete_contents": "möchtest du den existierenden '/atmosphere/contents/' Ordner löschen? Dies wird Crashes vorbeugen, falls ein Sysmodul die neueste Atmosph\u00e8re version nicht unterstützt. Bedenke dass dies all deine Sysmodule, Mods und Cheats löscht!",
|
"delete_contents": "Möchtest du den existierenden '/atmosphere/contents/' Ordner löschen? Dies wird Crashes vorbeugen, falls ein Sysmodul die neueste Atmosph\u00e8re version nicht unterstützt. Bedenke dass dies all deine Sysmodule, Mods und Cheats löscht!",
|
||||||
"delete_sysmodules_flags": "Möchtest du den Autostart von allen Sysmodules verhindern? Dies wird Crashes vorbeugen, falls ein Sysmodul die neueste Atmosph\u00e8re version nicht unterstützt.",
|
"delete_sysmodules_flags": "Möchtest du den Autostart von allen Sysmodules verhindern? Dies wird Crashes vorbeugen, falls ein Sysmodul die neueste Atmosph\u00e8re version nicht unterstützt.",
|
||||||
"current_ams": "\ue016 Momentane Atmosphère version: "
|
"current_ams": "\ue016 Momentane Atmosphère version: "
|
||||||
},
|
},
|
||||||
|
|
|
@ -86,7 +86,8 @@
|
||||||
"desc": "You can change the internal color of your Pro Controller. Make sure it's set to Player 1.",
|
"desc": "You can change the internal color of your Pro Controller. Make sure it's set to Player 1.",
|
||||||
"label": "Pro Controller color swapper",
|
"label": "Pro Controller color swapper",
|
||||||
"backing_up": "Backing up the color profile",
|
"backing_up": "Backing up the color profile",
|
||||||
"all_done": "All done! You may need to turn your controller on and off for the change to take effect"
|
"all_done": "All done! You may need to turn your controller on and off for the change to take effect.",
|
||||||
|
"changing": "Changing color. Make sure the Pro-Con is set to player 1."
|
||||||
},
|
},
|
||||||
"main": {
|
"main": {
|
||||||
"getting": "Getting ",
|
"getting": "Getting ",
|
||||||
|
|
|
@ -35,16 +35,15 @@ JCPage::JCPage() : AppletFrame(true, true)
|
||||||
auto profiles = getProfiles(COLOR_PROFILES_PATH);
|
auto profiles = getProfiles(COLOR_PROFILES_PATH);
|
||||||
std::vector<std::string> names = std::get<0>(profiles);
|
std::vector<std::string> names = std::get<0>(profiles);
|
||||||
int nbProfiles = names.size();
|
int nbProfiles = names.size();
|
||||||
items.reserve(nbProfiles);
|
|
||||||
for (int i = nbProfiles - 1; i >= 0; i--){
|
for (int i = nbProfiles - 1; i >= 0; i--){
|
||||||
std::string name = std::get<0>(profiles)[i];
|
std::string name = std::get<0>(profiles)[i];
|
||||||
std::vector<int> value = std::get<1>(profiles)[i];
|
std::vector<int> value = std::get<1>(profiles)[i];
|
||||||
items[i] = new brls::ListItem(names[i]);
|
listItem = new brls::ListItem(names[i]);
|
||||||
items[i]->getClickEvent()->subscribe([&, value](brls::View* view) {
|
listItem->getClickEvent()->subscribe([&, value](brls::View* view) {
|
||||||
brls::StagedAppletFrame* stagedFrame = new brls::StagedAppletFrame();
|
brls::StagedAppletFrame* stagedFrame = new brls::StagedAppletFrame();
|
||||||
stagedFrame->setTitle("joy_con/title"_i18n);
|
stagedFrame->setTitle("menus/joy_con/label"_i18n);
|
||||||
stagedFrame->addStage(
|
stagedFrame->addStage(
|
||||||
new WorkerPage(stagedFrame, "menus/jc_changing"_i18n,
|
new WorkerPage(stagedFrame, "menus/joy_con/changing"_i18n,
|
||||||
[value](){changeJCColor(value);})
|
[value](){changeJCColor(value);})
|
||||||
);
|
);
|
||||||
stagedFrame->addStage(
|
stagedFrame->addStage(
|
||||||
|
@ -52,7 +51,7 @@ JCPage::JCPage() : AppletFrame(true, true)
|
||||||
);
|
);
|
||||||
brls::Application::pushView(stagedFrame);
|
brls::Application::pushView(stagedFrame);
|
||||||
});
|
});
|
||||||
list->addView(items[i]);
|
list->addView(listItem);
|
||||||
}
|
}
|
||||||
this->setContentView(list);
|
this->setContentView(list);
|
||||||
}
|
}
|
|
@ -34,16 +34,15 @@ PCPage::PCPage() : AppletFrame(true, true)
|
||||||
auto profiles = pc::getProfiles(PC_COLOR_PATH);
|
auto profiles = pc::getProfiles(PC_COLOR_PATH);
|
||||||
std::vector<std::string> names = std::get<0>(profiles);
|
std::vector<std::string> names = std::get<0>(profiles);
|
||||||
int nbProfiles = names.size();
|
int nbProfiles = names.size();
|
||||||
items.reserve(nbProfiles);
|
|
||||||
for (int i = nbProfiles - 1; i >= 0; i--){
|
for (int i = nbProfiles - 1; i >= 0; i--){
|
||||||
std::string name = std::get<0>(profiles)[i];
|
std::string name = std::get<0>(profiles)[i];
|
||||||
std::vector<int> value = std::get<1>(profiles)[i];
|
std::vector<int> value = std::get<1>(profiles)[i];
|
||||||
items[i] = new brls::ListItem(names[i]);
|
listItem = new brls::ListItem(names[i]);
|
||||||
items[i]->getClickEvent()->subscribe([&, value](brls::View* view) {
|
listItem->getClickEvent()->subscribe([&, value](brls::View* view) {
|
||||||
brls::StagedAppletFrame* stagedFrame = new brls::StagedAppletFrame();
|
brls::StagedAppletFrame* stagedFrame = new brls::StagedAppletFrame();
|
||||||
stagedFrame->setTitle("menus/pro_con/label"_i18n);
|
stagedFrame->setTitle("menus/pro_con/label"_i18n);
|
||||||
stagedFrame->addStage(
|
stagedFrame->addStage(
|
||||||
new WorkerPage(stagedFrame, "menus/jc_changing"_i18n,
|
new WorkerPage(stagedFrame, "menus/pro_con/changing"_i18n,
|
||||||
[value](){pc::changePCColor(value);})
|
[value](){pc::changePCColor(value);})
|
||||||
);
|
);
|
||||||
stagedFrame->addStage(
|
stagedFrame->addStage(
|
||||||
|
@ -51,7 +50,7 @@ PCPage::PCPage() : AppletFrame(true, true)
|
||||||
);
|
);
|
||||||
brls::Application::pushView(stagedFrame);
|
brls::Application::pushView(stagedFrame);
|
||||||
});
|
});
|
||||||
list->addView(items[i]);
|
list->addView(listItem);
|
||||||
}
|
}
|
||||||
this->setContentView(list);
|
this->setContentView(list);
|
||||||
}
|
}
|
Loading…
Reference in a new issue