Change the Reset All callback back to CosmeticsEditor_ResetAll, because it's already set up to not reset HUD position stuff. (#5385)

This commit is contained in:
Malkierian 2025-04-12 06:14:13 -07:00 committed by GitHub
parent f304de2eb1
commit 1416b2490a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2413,8 +2413,7 @@ void CosmeticsEditorWindow::DrawElement() {
}
ImGui::SameLine();
if (UIWidgets::Button("Reset All", UIWidgets::ButtonOptions().Size(ImVec2(250.0f, 0.0f)).Color(THEME_COLOR))) {
CVarClearBlock("gCosmetics");
ApplyOrResetCustomGfxPatches();
CosmeticsEditor_ResetAll();
}
if (UIWidgets::Button("Lock All", UIWidgets::ButtonOptions().Size(ImVec2(250.0f, 0.0f)).Color(THEME_COLOR))) {
for (auto& [id, cosmeticOption] : cosmeticOptions) {