custom map support

This commit is contained in:
Milxnor
2023-06-17 22:33:44 -04:00
parent b944b40b36
commit 5f51e034b0
4 changed files with 50 additions and 20 deletions

View File

@@ -61,6 +61,8 @@
#define LOADOUT_PLAYERTAB 4
#define FUN_PLAYERTAB 5
extern inline bool bUseCustomMap = false;
extern inline std::string CustomMapName = "";
extern inline int AmountToSubtractIndex = 1;
extern inline int SecondsUntilTravel = 5;
extern inline bool bSwitchedInitialLevel = false;
@@ -1291,8 +1293,17 @@ static inline void PregameUI()
}
if (!bSwitchedInitialLevel)
{
ImGui::Checkbox("Use Custom Map", &bUseCustomMap);
if (bUseCustomMap)
{
// ImGui::InputText("Custom Map", &CustomMapName);
}
ImGui::SliderInt("Seconds until load into map", &SecondsUntilTravel, 1, 100);
}
if (!Globals::bCreative)
ImGui::InputText("Playlist", &PlaylistName);
}