mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-01-01 04:42:15 +00:00
jni stuff
This commit is contained in:
parent
3e9d8fa56c
commit
bb7b4350ef
3 changed files with 6 additions and 6 deletions
|
|
@ -223,6 +223,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() {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class MainMenuGui extends GuiImage {
|
|||
siteButton.extent = new Vector(400, 30);
|
||||
siteButton.pressedAction = (sender) -> {
|
||||
#if sys
|
||||
hxd.System.openURL("https://marbleblast.com");
|
||||
Settings.open_url("https://marbleblast.com");
|
||||
#end
|
||||
#if js
|
||||
js.Browser.window.open("https://marbleblast.com");
|
||||
|
|
@ -189,7 +189,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");
|
||||
|
|
@ -204,7 +204,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");
|
||||
|
|
|
|||
|
|
@ -1085,7 +1085,6 @@ class PlayMissionGui extends GuiImage {
|
|||
|
||||
setCategoryFunc(currentGame, currentCategoryStatic, null, false);
|
||||
|
||||
#if js
|
||||
var kofi = new GuiButton(loadButtonImages("data/ui/kofi1"));
|
||||
kofi.horizSizing = Left;
|
||||
kofi.vertSizing = Top;
|
||||
|
|
@ -1093,14 +1092,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