mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 20:51:38 +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 {
|
@:hlNative static function get_storage_path():hl.Bytes {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@:hlNative public static function open_url(url:String):Void {}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
public static function applySettings() {
|
public static function applySettings() {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class MainMenuGui extends GuiImage {
|
||||||
siteButton.extent = new Vector(400, 30);
|
siteButton.extent = new Vector(400, 30);
|
||||||
siteButton.pressedAction = (sender) -> {
|
siteButton.pressedAction = (sender) -> {
|
||||||
#if sys
|
#if sys
|
||||||
hxd.System.openURL("https://marbleblast.com");
|
Settings.open_url("https://marbleblast.com");
|
||||||
#end
|
#end
|
||||||
#if js
|
#if js
|
||||||
js.Browser.window.open("https://marbleblast.com");
|
js.Browser.window.open("https://marbleblast.com");
|
||||||
|
|
@ -189,7 +189,7 @@ class MainMenuGui extends GuiImage {
|
||||||
kofi.extent = new Vector(143, 36);
|
kofi.extent = new Vector(143, 36);
|
||||||
kofi.pressedAction = (sender) -> {
|
kofi.pressedAction = (sender) -> {
|
||||||
#if sys
|
#if sys
|
||||||
hxd.System.openURL("https://ko-fi.com/H2H5FRTTL");
|
Settings.open_url("https://ko-fi.com/H2H5FRTTL");
|
||||||
#end
|
#end
|
||||||
#if js
|
#if js
|
||||||
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
||||||
|
|
@ -204,7 +204,7 @@ class MainMenuGui extends GuiImage {
|
||||||
github.extent = new Vector(94, 38);
|
github.extent = new Vector(94, 38);
|
||||||
github.pressedAction = (sender) -> {
|
github.pressedAction = (sender) -> {
|
||||||
#if sys
|
#if sys
|
||||||
hxd.System.openURL("https://github.com/RandomityGuy/MBHaxe");
|
Settings.open_url("https://github.com/RandomityGuy/MBHaxe");
|
||||||
#end
|
#end
|
||||||
#if js
|
#if js
|
||||||
js.Browser.window.open("https://github.com/RandomityGuy/MBHaxe");
|
js.Browser.window.open("https://github.com/RandomityGuy/MBHaxe");
|
||||||
|
|
|
||||||
|
|
@ -1085,7 +1085,6 @@ class PlayMissionGui extends GuiImage {
|
||||||
|
|
||||||
setCategoryFunc(currentGame, currentCategoryStatic, null, false);
|
setCategoryFunc(currentGame, currentCategoryStatic, null, false);
|
||||||
|
|
||||||
#if js
|
|
||||||
var kofi = new GuiButton(loadButtonImages("data/ui/kofi1"));
|
var kofi = new GuiButton(loadButtonImages("data/ui/kofi1"));
|
||||||
kofi.horizSizing = Left;
|
kofi.horizSizing = Left;
|
||||||
kofi.vertSizing = Top;
|
kofi.vertSizing = Top;
|
||||||
|
|
@ -1093,14 +1092,13 @@ class PlayMissionGui extends GuiImage {
|
||||||
kofi.extent = new Vector(143, 36);
|
kofi.extent = new Vector(143, 36);
|
||||||
kofi.pressedAction = (sender) -> {
|
kofi.pressedAction = (sender) -> {
|
||||||
#if sys
|
#if sys
|
||||||
hxd.System.openURL("https://ko-fi.com/H2H5FRTTL");
|
Settings.open_url("https://ko-fi.com/H2H5FRTTL");
|
||||||
#end
|
#end
|
||||||
#if js
|
#if js
|
||||||
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
js.Browser.window.open("https://ko-fi.com/H2H5FRTTL");
|
||||||
#end
|
#end
|
||||||
}
|
}
|
||||||
this.addChild(kofi);
|
this.addChild(kofi);
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function render(scene2d:Scene) {
|
public override function render(scene2d:Scene) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue