Properly change volume
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user