Makes text speed slider consistent with the rest of the UI (#208)

This commit is contained in:
Ada 2022-04-24 16:03:25 +01:00 committed by GitHub
parent bb3227a7c2
commit 576842ac74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,8 +395,8 @@ namespace SohImGui {
ImGui::Text("Gameplay");
ImGui::Separator();
ImGui::Text("Text Speed", Game::Settings.enhancements.text_speed);
if (ImGui::SliderInt("##TEXTSPEED", &Game::Settings.enhancements.text_speed, 1, 5)) {
ImGui::Text("Text Speed: %dx", Game::Settings.enhancements.text_speed);
if (ImGui::SliderInt("##TEXTSPEED", &Game::Settings.enhancements.text_speed, 1, 5, "")) {
CVar_SetS32("gTextSpeed", Game::Settings.enhancements.text_speed);
needs_save = true;
}