mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-09-20 18:31:59 +00:00
load_from on float also sets the current value
This commit is contained in:
@@ -313,7 +313,9 @@ void bool_setting::add_as_saver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void float_setting::load_from(const string& s) {
|
void float_setting::load_from(const string& s) {
|
||||||
|
*value = parseld(s);
|
||||||
anims::animate_parameter(*value, s, reaction);
|
anims::animate_parameter(*value, s, reaction);
|
||||||
|
if(reaction) reaction();
|
||||||
}
|
}
|
||||||
|
|
||||||
void non_editable() {
|
void non_editable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user