From 0c7286cf6211da782793c917bf947c883a9219ed Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:00:20 +0530 Subject: [PATCH] fix customs url encode and custom list text color --- src/MPCustoms.hx | 2 +- src/gui/MultiplayerLevelSelectGui.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MPCustoms.hx b/src/MPCustoms.hx index 0ccf1407..ba4e6e68 100644 --- a/src/MPCustoms.hx +++ b/src/MPCustoms.hx @@ -37,7 +37,7 @@ class MPCustoms { public static function download(mission:MPCustomEntry, onFinish:() -> Void, onFail:() -> Void) { var lastSlashIdx = mission.path.lastIndexOf('/'); - var dlPath = "https://marbleblastultra.randomityguy.me/" + mission.path.substr(0, lastSlashIdx) + ".zip"; + var dlPath = "https://marbleblastultra.randomityguy.me/" + StringTools.urlEncode(mission.path.substr(0, lastSlashIdx)) + ".zip"; Http.get(dlPath, (zipData) -> { var reader = new Reader(new BytesInput(zipData)); var entries:Array = null; diff --git a/src/gui/MultiplayerLevelSelectGui.hx b/src/gui/MultiplayerLevelSelectGui.hx index f9959560..9a1a46bc 100644 --- a/src/gui/MultiplayerLevelSelectGui.hx +++ b/src/gui/MultiplayerLevelSelectGui.hx @@ -231,7 +231,7 @@ class MultiplayerLevelSelectGui extends GuiImage { customList = new GuiTextListCtrl(arial14, MPCustoms.missionList.map(mission -> { return mission.title; - })); + }), 0xFFFFFF); var custSelectedIdx = 0; customList.selectedColor = 0xF29515; customList.selectedFillColor = 0x858585;