Properly change volume

This commit is contained in:
2024-01-29 12:50:36 +01:00
parent 6e848cf239
commit ed1815eddc
6 changed files with 30 additions and 1 deletions

View File

@@ -202,7 +202,9 @@ void uiSettingsCheckbox(const char *txt, bool *check) {
uiBaseCheckbox(txt, getFont(), 1.0f, check);
}
void uiSettingsSlider(const char *txt, f32 *value) {
uiBaseSlider(txt, getFont(), 1.0f, value, 0, 10);
f32 val = *value * 10.0f;
uiBaseSlider(txt, getFont(), 1.0f, &val, 0, 10);
*value = val / 10.0f;
}
void uiGameResCount(i32 amount, i32 capacity, Rectangle icon, Texture2D texture) {