ADD: Item Tracker V2

This commit is contained in:
PurpleHato 2022-08-09 17:54:28 +02:00
parent 6db0d94e92
commit fa393bff48
2 changed files with 861 additions and 305 deletions

View File

@ -1752,6 +1752,14 @@ namespace SohImGui {
needs_save = true; needs_save = true;
customWindows["Item Tracker"].enabled = CVar_GetS32("gItemTrackerEnabled", 0); customWindows["Item Tracker"].enabled = CVar_GetS32("gItemTrackerEnabled", 0);
} }
InsertPadding();
if (ImGui::Button(GetWindowButtonText("Item Tracker Settings", CVar_GetS32("gItemTrackerSettingsEnabled", 0)).c_str(), buttonSize))
{
bool currentValue = CVar_GetS32("gItemTrackerSettingsEnabled", 0);
CVar_SetS32("gItemTrackerSettingsEnabled", !currentValue);
needs_save = true;
customWindows["Item Tracker Settings"].enabled = CVar_GetS32("gItemTrackerSettingsEnabled", 0);
}
ImGui::PopStyleVar(3); ImGui::PopStyleVar(3);
ImGui::PopStyleColor(1); ImGui::PopStyleColor(1);

File diff suppressed because it is too large Load Diff