From 484e18997810df4aac4ae1c630a434294d10aaae 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 | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/gui/MainMenuGui.hx b/src/gui/MainMenuGui.hx index 3b40cdbc..8dff8351 100644 --- a/src/gui/MainMenuGui.hx +++ b/src/gui/MainMenuGui.hx @@ -178,11 +178,10 @@ class MainMenuGui extends GuiImage { versionText.vertSizing = Bottom; versionText.position = new Vector(502, 61); versionText.extent = new Vector(97, 72); - versionText.text.text = "
1.5.3
"; + versionText.text.text = "1.5.4
"; versionText.text.filter = new DropShadow(1.414, 0.785, 0x3333337F, 1, 0, 0.7, 1, true); this.addChild(versionText); - #if js var kofi = new GuiButton(loadButtonImages("data/ui/kofi1")); kofi.horizSizing = Left; kofi.vertSizing = Top; @@ -197,6 +196,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); } }