update Help window

This commit is contained in:
Simon Gardling 2022-03-08 12:36:23 -05:00
parent 83d8e1cc88
commit d9dcdc5815

View File

@ -63,6 +63,9 @@ const HELP_EXPR: &str = "- sqrt(x): square root of x
- atan2, sinh, cosh, tanh, asinh, acosh, atanh - atan2, sinh, cosh, tanh, asinh, acosh, atanh
- floor, ceil, round, signum"; - floor, ceil, round, signum";
const HELP_VARS: &str = "- Euler's number is supported via 'E' (noted it being uppercase)
- PI is available through 'pi' or 'π'";
// Used in the "Panel" section of the Help window // Used in the "Panel" section of the Help window
const HELP_PANEL: &str = const HELP_PANEL: &str =
"- The 'Panel' button on the top bar toggles if the side bar should be shown or not. "- The 'Panel' button on the top bar toggles if the side bar should be shown or not.
@ -414,6 +417,10 @@ impl epi::App for MathApp {
ui.label(HELP_EXPR); ui.label(HELP_EXPR);
}); });
ui.collapsing("Supported Constants", |ui| {
ui.label(HELP_VARS);
});
ui.collapsing("Panel", |ui| { ui.collapsing("Panel", |ui| {
ui.label(HELP_PANEL); ui.label(HELP_PANEL);
}); });