fix customs url encode and custom list text color

This commit is contained in:
RandomityGuy 2024-06-09 00:00:20 +05:30
parent 2418c7e524
commit 0c7286cf62
2 changed files with 2 additions and 2 deletions

View file

@ -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<haxe.zip.Entry> = null;

View file

@ -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;