mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-26 20:51:38 +00:00
verup and add redirection to mbp for customs
This commit is contained in:
parent
4fdb6f88e9
commit
c520ebe7ea
2 changed files with 17 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ class MainMenuGui extends GuiImage {
|
||||||
versionText.vertSizing = Top;
|
versionText.vertSizing = Top;
|
||||||
versionText.position = new Vector(289, 450);
|
versionText.position = new Vector(289, 450);
|
||||||
versionText.extent = new Vector(62, 18);
|
versionText.extent = new Vector(62, 18);
|
||||||
versionText.text.text = "1.1.10";
|
versionText.text.text = "1.1.11";
|
||||||
versionText.text.textColor = 0;
|
versionText.text.textColor = 0;
|
||||||
this.addChild(versionText);
|
this.addChild(versionText);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package gui;
|
package gui;
|
||||||
|
|
||||||
|
import src.MarbleGame;
|
||||||
import src.Replay;
|
import src.Replay;
|
||||||
import haxe.ds.Option;
|
import haxe.ds.Option;
|
||||||
import hxd.Key;
|
import hxd.Key;
|
||||||
|
|
@ -98,9 +99,23 @@ class PlayMissionGui extends GuiImage {
|
||||||
tabCustom.position = new Vector(589, 91);
|
tabCustom.position = new Vector(589, 91);
|
||||||
tabCustom.extent = new Vector(52, 198);
|
tabCustom.extent = new Vector(52, 198);
|
||||||
tabCustom.pressedAction = (sender) -> {
|
tabCustom.pressedAction = (sender) -> {
|
||||||
|
#if (js || android || MACOS_BUNDLE)
|
||||||
|
var mbo = new MessageBoxYesNoDlg("The custom level browser is not available in this game.\n Please play Marble Blast Platinum to get access to 5000+ cummunity made customs of both Marble Blast Gold and Marble Blast Platinum. Visit download link?",
|
||||||
|
() -> {
|
||||||
|
#if sys
|
||||||
|
hxd.System.openURL("https://github.com/RandomityGuy/MBHaxe");
|
||||||
|
#end
|
||||||
|
#if js
|
||||||
|
js.Browser.window.open("https://github.com/RandomityGuy/MBHaxe");
|
||||||
|
#end
|
||||||
|
}, () -> {});
|
||||||
|
|
||||||
|
MarbleGame.canvas.pushDialog(mbo);
|
||||||
|
#else
|
||||||
currentList = MissionList.customMissions;
|
currentList = MissionList.customMissions;
|
||||||
currentCategory = "custom";
|
currentCategory = "custom";
|
||||||
setCategoryFunc("custom");
|
setCategoryFunc("custom");
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
localContainer.addChild(tabCustom);
|
localContainer.addChild(tabCustom);
|
||||||
|
|
||||||
|
|
@ -404,8 +419,7 @@ class PlayMissionGui extends GuiImage {
|
||||||
}
|
}
|
||||||
currentCategoryStatic = currentCategory;
|
currentCategoryStatic = currentCategory;
|
||||||
if (currentCategory != "custom")
|
if (currentCategory != "custom")
|
||||||
setSelectedFunc(cast Math.min(currentList.length - 1,
|
setSelectedFunc(cast Math.min(currentList.length - 1, Settings.progression[["beginner", "intermediate", "advanced"].indexOf(currentCategory)]));
|
||||||
Settings.progression[["beginner", "intermediate", "advanced"].indexOf(currentCategory)]));
|
|
||||||
else
|
else
|
||||||
setSelectedFunc(currentList.length - 1);
|
setSelectedFunc(currentList.length - 1);
|
||||||
if (doRender)
|
if (doRender)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue