Skip to content

Commit

Permalink
Submenu size hints added to included examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychogenic committed Mar 31, 2018
1 parent 35edd1e commit 7cac62d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/Basic/setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ bool SetupSerialUI() {
}
SUI::Menu * submen1 = topMenu->subMenu(
SUI_STR("Manage"),
SUI_STR("Manage the counter"));
SUI_STR("Manage the counter"),
2);
if (! submen1 ) {
DIE_HORRIBLY(CouldntCreateMenuErr);
}
Expand Down
10 changes: 5 additions & 5 deletions examples/Sanctuary/setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,27 +159,28 @@ bool SetupSerialUI() {
// create all our sub-menus
SUI::Menu * submen1 = topMenu->subMenu(
SUI_STR("Tigers"),
SUI_STR("Rarrr"));
SUI_STR("Rarrr"),
2);
if (! submen1 ) {
DIE_HORRIBLY(CouldntCreateMenuErr);
}

SUI::Menu * submen2 = topMenu->subMenu(
SUI_STR("Monkeys"));
SUI_STR("Monkeys"), NULL, 2);
if (! submen2 ) {
DIE_HORRIBLY(CouldntCreateMenuErr);
}

SUI::Menu * submen3 = topMenu->subMenu(
SUI_STR("Fishes"),
SUI_STR("Fishies"));
SUI_STR("Fishies"), 3);
if (! submen3 ) {
DIE_HORRIBLY(CouldntCreateMenuErr);
}

SUI::Menu * submen4 = topMenu->subMenu(
SUI_STR("Reptiles"),
SUI_STR("Lizards and such..."));
SUI_STR("Lizards and such..."), 4);
if (! submen4 ) {
DIE_HORRIBLY(CouldntCreateMenuErr);
}
Expand Down Expand Up @@ -315,4 +316,3 @@ bool SetupSerialUI() {

}


0 comments on commit 7cac62d

Please sign in to comment.