verup and add redirection to mbp for customs

This commit is contained in:
RandomityGuy 2023-10-03 19:27:25 +05:30
parent 4fdb6f88e9
commit c520ebe7ea
2 changed files with 17 additions and 3 deletions

View file

@ -27,7 +27,7 @@ class MainMenuGui extends GuiImage {
versionText.vertSizing = Top;
versionText.position = new Vector(289, 450);
versionText.extent = new Vector(62, 18);
versionText.text.text = "1.1.10";
versionText.text.text = "1.1.11";
versionText.text.textColor = 0;
this.addChild(versionText);

View file

@ -1,5 +1,6 @@
package gui;
import src.MarbleGame;
import src.Replay;
import haxe.ds.Option;
import hxd.Key;
@ -98,9 +99,23 @@ class PlayMissionGui extends GuiImage {
tabCustom.position = new Vector(589, 91);
tabCustom.extent = new Vector(52, 198);
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;
currentCategory = "custom";
setCategoryFunc("custom");
#end
}
localContainer.addChild(tabCustom);
@ -404,8 +419,7 @@ class PlayMissionGui extends GuiImage {
}
currentCategoryStatic = currentCategory;
if (currentCategory != "custom")
setSelectedFunc(cast Math.min(currentList.length - 1,
Settings.progression[["beginner", "intermediate", "advanced"].indexOf(currentCategory)]));
setSelectedFunc(cast Math.min(currentList.length - 1, Settings.progression[["beginner", "intermediate", "advanced"].indexOf(currentCategory)]));
else
setSelectedFunc(currentList.length - 1);
if (doRender)