From 81a39a6f7f1e8cba7b302aa61f7160ea376bef0f Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Tue, 3 Oct 2023 19:08:41 +0530 Subject: [PATCH] more mkt and ver up --- src/gui/MainMenuGui.hx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/gui/MainMenuGui.hx b/src/gui/MainMenuGui.hx index fcf7d02b..3d6c5eeb 100644 --- a/src/gui/MainMenuGui.hx +++ b/src/gui/MainMenuGui.hx @@ -80,7 +80,6 @@ class MainMenuGui extends GuiImage { }; homebase.addChild(exitButton); - #if js var kofi = new GuiButton(loadButtonImages("data/ui/kofi1")); kofi.horizSizing = Left; kofi.vertSizing = Top; @@ -95,6 +94,20 @@ class MainMenuGui extends GuiImage { #end } this.addChild(kofi); - #end + + var github = new GuiButton(loadButtonImages("data/ui/github")); + github.horizSizing = Left; + github.vertSizing = Top; + github.position = new Vector(522, 380); + github.extent = new Vector(94, 38); + github.pressedAction = (sender) -> { + #if sys + hxd.System.openURL("https://github.com/RandomityGuy/MBHaxe"); + #end + #if js + js.Browser.window.open("https://github.com/RandomityGuy/MBHaxe"); + #end + } + this.addChild(github); } }