Added Chests of Agony (#1885)

This commit is contained in:
Dakota Brown
2022-11-06 14:07:58 -07:00
committed by GitHub
parent 11497c393d
commit 328ff0e8c4
4 changed files with 27 additions and 10 deletions
+4 -1
View File
@@ -227,7 +227,8 @@ namespace UIWidgets {
}
}
void EnhancementCombobox(const char* name, const char* ComboArray[], size_t arraySize, uint8_t FirstTimeValue) {
bool EnhancementCombobox(const char* name, const char* ComboArray[], size_t arraySize, uint8_t FirstTimeValue) {
bool changed = false;
if (FirstTimeValue <= 0) {
FirstTimeValue = 0;
}
@@ -240,12 +241,14 @@ namespace UIWidgets {
if (ImGui::Selectable(ComboArray[i], i == selected)) {
CVar_SetS32(name, i);
selected = i;
changed = true;
SohImGui::RequestCvarSaveOnNextTick();
}
}
}
ImGui::EndCombo();
}
return changed;
}
void PaddedText(const char* text, bool padTop, bool padBottom) {