From d9dcdc5815ff079e662c23c8a27b11de7632c7b0 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Tue, 8 Mar 2022 12:36:23 -0500 Subject: [PATCH] update Help window --- src/egui_app.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/egui_app.rs b/src/egui_app.rs index e85bffc..92c27d0 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -63,6 +63,9 @@ const HELP_EXPR: &str = "- sqrt(x): square root of x - atan2, sinh, cosh, tanh, asinh, acosh, atanh - 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 const HELP_PANEL: &str = "- 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.collapsing("Supported Constants", |ui| { + ui.label(HELP_VARS); + }); + ui.collapsing("Panel", |ui| { ui.label(HELP_PANEL); });