From 5ee8838ef3263c2aa10dd87fdffab561d36e42ff Mon Sep 17 00:00:00 2001 From: luboslenco Date: Wed, 7 Jun 2023 14:13:10 +0200 Subject: [PATCH] Implement get started buttons --- base/Sources/arm/ui/BoxProjects.hx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/base/Sources/arm/ui/BoxProjects.hx b/base/Sources/arm/ui/BoxProjects.hx index 06534199..a0d05cab 100644 --- a/base/Sources/arm/ui/BoxProjects.hx +++ b/base/Sources/arm/ui/BoxProjects.hx @@ -4,6 +4,7 @@ import zui.Zui; import zui.Id; import arm.io.ImportArm; import arm.sys.Path; +import arm.sys.File; @:access(zui.Zui) class BoxProjects { @@ -230,9 +231,15 @@ class BoxProjects { static function getStartedTab(ui: Zui) { if (ui.tab(htab, tr("Get Started"), true)) { - ui.button("How To"); - ui.button("Manual"); - ui.button("What's new"); + if (ui.button(tr("Manual"))) { + File.loadUrl(Manifest.url + "/manual"); + } + if (ui.button(tr("How To"))) { + File.loadUrl(Manifest.url + "/howto"); + } + if (ui.button(tr("What's New"))) { + File.loadUrl(Manifest.url + "/notes"); + } } }