added more configs and fixed windows compile bug
This commit is contained in:
parent
3442f3b03f
commit
fe0016a272
3 changed files with 4 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ namespace Configs {
|
|||
g_linkOpts = loadStringListConfig(gameCfgPath / "Links.yaml");
|
||||
g_areas = loadStringListConfig(gameCfgPath / "Areas.yaml");
|
||||
g_dropIdOpts = loadValueDisplayConfig<long>(gameCfgPath / "DropIds.yaml");
|
||||
g_teams = loadValueDisplayConfig<long>(gameCfgPath / "Teams.yaml");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ namespace Configs {
|
|||
inline std::vector<std::string> g_linkOpts;
|
||||
inline std::vector<std::string> g_areas;
|
||||
inline std::vector<ValueDisplayOptions<long>> g_dropIdOpts;
|
||||
inline std::vector<ValueDisplayOptions<long>> g_teams;
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -188,8 +188,8 @@ void ImGuiDrawElem(Element *elem, std::string Id = "") {
|
|||
|
||||
if (levelObject) {
|
||||
//ImGuiDrawTeamSelect(levelObject,Id);
|
||||
ImGuiDrawSelection("Team##" + Id, levelObject->Team, Teams::AllOptions.begin(), Teams::AllOptions.end(),
|
||||
Teams::TeamToText);
|
||||
Configs::g_imguiDrawOpts("Team##" + Id, Configs::g_teams, levelObject->Team);
|
||||
|
||||
Configs::g_imguiDrawOpts("Drop##" + Id, Configs::g_dropIdOpts, levelObject->DropId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue