mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-03-09 05:16:16 +00:00
jni thing
This commit is contained in:
parent
67c206e339
commit
897f55f034
3 changed files with 5 additions and 5 deletions
|
|
@ -230,6 +230,8 @@ class Settings {
|
|||
@:hlNative static function get_storage_path():hl.Bytes {
|
||||
return null;
|
||||
}
|
||||
|
||||
@:hlNative public static function open_url(url:String):Void {}
|
||||
#end
|
||||
|
||||
public static function applySettings() {
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ class MainMenuGui extends GuiImage {
|
|||
kofi.extent = new Vector(143, 36);
|
||||
kofi.pressedAction = (sender) -> {
|
||||
#if sys
|
||||
hxd.System.openURL("https://ko-fi.com/H2H5FRTTL");
|
||||
Settings.open_url("https://ko-fi.com/H2H5FRTTL");
|
||||
#end
|
||||
#if js
|
||||
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
||||
|
|
@ -164,7 +164,7 @@ class MainMenuGui extends GuiImage {
|
|||
github.extent = new Vector(94, 38);
|
||||
github.pressedAction = (sender) -> {
|
||||
#if sys
|
||||
hxd.System.openURL("https://github.com/RandomityGuy/MBHaxe");
|
||||
Settings.open_url("https://github.com/RandomityGuy/MBHaxe");
|
||||
#end
|
||||
#if js
|
||||
js.Browser.window.open("https://github.com/RandomityGuy/MBHaxe");
|
||||
|
|
|
|||
|
|
@ -1047,7 +1047,6 @@ class PlayMissionGui extends GuiImage {
|
|||
|
||||
setCategoryFunc(currentGame, currentCategoryStatic, false);
|
||||
|
||||
#if js
|
||||
var kofi = new GuiButton(loadButtonImages("data/ui/kofi1"));
|
||||
kofi.horizSizing = Left;
|
||||
kofi.vertSizing = Top;
|
||||
|
|
@ -1055,14 +1054,13 @@ class PlayMissionGui extends GuiImage {
|
|||
kofi.extent = new Vector(143, 36);
|
||||
kofi.pressedAction = (sender) -> {
|
||||
#if sys
|
||||
hxd.System.openURL("https://ko-fi.com/H2H5FRTTL");
|
||||
Settings.open_url("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