From cd8be645a356d52ce71d4d030812c452612b19c6 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 13 Feb 2024 13:47:41 -0300 Subject: [PATCH] Hide Quit button on web --- src/Main.hx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Main.hx b/src/Main.hx index 5ac9b89..c97c7de 100644 --- a/src/Main.hx +++ b/src/Main.hx @@ -16,9 +16,13 @@ class Main extends hxd.App { root.btnContinueGame.onClick = function() { root.btnContinueGame.dom.addClass("highlight"); } - // root.btnQuit.onClick = function() { - // Sys.exit(0); - // } + #if hl + root.btnQuit.onClick = function() { + Sys.exit(0); + } + #else + root.btnQuit.remove(); + #end style = new h2d.domkit.Style(); style.load(hxd.Res.style);