mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
Makes text speed slider consistent with the rest of the UI (#208)
This commit is contained in:
parent
bb3227a7c2
commit
576842ac74
@ -395,8 +395,8 @@ namespace SohImGui {
|
|||||||
ImGui::Text("Gameplay");
|
ImGui::Text("Gameplay");
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
ImGui::Text("Text Speed", Game::Settings.enhancements.text_speed);
|
ImGui::Text("Text Speed: %dx", Game::Settings.enhancements.text_speed);
|
||||||
if (ImGui::SliderInt("##TEXTSPEED", &Game::Settings.enhancements.text_speed, 1, 5)) {
|
if (ImGui::SliderInt("##TEXTSPEED", &Game::Settings.enhancements.text_speed, 1, 5, "")) {
|
||||||
CVar_SetS32("gTextSpeed", Game::Settings.enhancements.text_speed);
|
CVar_SetS32("gTextSpeed", Game::Settings.enhancements.text_speed);
|
||||||
needs_save = true;
|
needs_save = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user