mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
kofi button
This commit is contained in:
parent
5ef99a22ac
commit
334b3f20e2
6 changed files with 34 additions and 0 deletions
BIN
data/ui/kofi1_d.png
Normal file
BIN
data/ui/kofi1_d.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
BIN
data/ui/kofi1_h.png
Normal file
BIN
data/ui/kofi1_h.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
data/ui/kofi1_i.png
Normal file
BIN
data/ui/kofi1_i.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
BIN
data/ui/kofi1_n.png
Normal file
BIN
data/ui/kofi1_n.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
|
|
@ -181,5 +181,22 @@ class MainMenuGui extends GuiImage {
|
|||
versionText.text.text = "<p align=\"center\">1.4.0</p>";
|
||||
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;
|
||||
kofi.position = new Vector(473, 424);
|
||||
kofi.extent = new Vector(143, 36);
|
||||
kofi.pressedAction = (sender) -> {
|
||||
#if sys
|
||||
hxd.System.openURL("https://ko-fi.com/H2H5FRTTL");
|
||||
#end
|
||||
#if js
|
||||
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
||||
#end
|
||||
}
|
||||
this.addChild(kofi);
|
||||
#end
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1021,6 +1021,23 @@ class PlayMissionGui extends GuiImage {
|
|||
}
|
||||
|
||||
setCategoryFunc(currentGame, currentCategoryStatic, false);
|
||||
|
||||
#if js
|
||||
var kofi = new GuiButton(loadButtonImages("data/ui/kofi1"));
|
||||
kofi.horizSizing = Left;
|
||||
kofi.vertSizing = Top;
|
||||
kofi.position = new Vector(473, 424);
|
||||
kofi.extent = new Vector(143, 36);
|
||||
kofi.pressedAction = (sender) -> {
|
||||
#if sys
|
||||
hxd.System.openURL("https://ko-fi.com/H2H5FRTTL");
|
||||
#end
|
||||
#if js
|
||||
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
||||
#end
|
||||
}
|
||||
this.addChild(kofi);
|
||||
#end
|
||||
}
|
||||
|
||||
public override function render(scene2d:Scene) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue