mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-03 20:34:04 +00:00
config:: changed hooks_config to correct hooks_configfile
This commit is contained in:
parent
2f47babf7c
commit
41628cbd1a
@ -2101,7 +2101,7 @@ EX void show3D() {
|
|||||||
dialog::display();
|
dialog::display();
|
||||||
}
|
}
|
||||||
|
|
||||||
EX int config3 = addHook(hooks_config, 100, [] {
|
EX int config3 = addHook(hooks_configfile, 100, [] {
|
||||||
param_f(vid.eye, "eyelevel", 0)
|
param_f(vid.eye, "eyelevel", 0)
|
||||||
->editable(-5, 5, .1, "eye level", "", 'E')
|
->editable(-5, 5, .1, "eye level", "", 'E')
|
||||||
->set_extra([] {
|
->set_extra([] {
|
||||||
|
@ -698,7 +698,7 @@ EX namespace history {
|
|||||||
history::path_for_lineanimation.clear();
|
history::path_for_lineanimation.clear();
|
||||||
history::saved_ends = 0;
|
history::saved_ends = 0;
|
||||||
history::includeHistory = false;
|
history::includeHistory = false;
|
||||||
}) + addHook(hooks_config, 0, [] {
|
}) + addHook(hooks_configfile, 0, [] {
|
||||||
|
|
||||||
addsaver(autobandhistory, "include history"); // check!
|
addsaver(autobandhistory, "include history"); // check!
|
||||||
param_f(lvspeed, "lvspeed", "lineview speed");
|
param_f(lvspeed, "lvspeed", "lineview speed");
|
||||||
|
@ -1047,7 +1047,7 @@ EX namespace models {
|
|||||||
add_all(vid.rug_config, "rug_", "rug-");
|
add_all(vid.rug_config, "rug_", "rug-");
|
||||||
}
|
}
|
||||||
|
|
||||||
auto hookArg = addHook(hooks_args, 100, readArgs) + addHook(hooks_config, 100, add_model_config);
|
auto hookArg = addHook(hooks_args, 100, readArgs) + addHook(hooks_configfile, 100, add_model_config);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -862,7 +862,7 @@ auto hook =
|
|||||||
rti_id.clear();
|
rti_id.clear();
|
||||||
for(auto &ch: current_history) ch.clear();
|
for(auto &ch: current_history) ch.clear();
|
||||||
})
|
})
|
||||||
+ addHook(hooks_config, 100, [] {
|
+ addHook(hooks_configfile, 100, [] {
|
||||||
addsaver(racing::race_advance, "race_advance");
|
addsaver(racing::race_advance, "race_advance");
|
||||||
addsaver(racing::race_angle, "race_angle");
|
addsaver(racing::race_angle, "race_angle");
|
||||||
addsaver(racing::ghosts_to_show, "race_ghosts_to_show");
|
addsaver(racing::ghosts_to_show, "race_ghosts_to_show");
|
||||||
|
@ -233,7 +233,7 @@ int read_args() {
|
|||||||
|
|
||||||
auto ah = addHook(hooks_args, 0, read_args);
|
auto ah = addHook(hooks_args, 0, read_args);
|
||||||
#endif
|
#endif
|
||||||
auto ah2 = addHook(hooks_config, 100, [] {
|
auto ah2 = addHook(hooks_configfile, 100, [] {
|
||||||
addsaver(shot::shotx, "shotx");
|
addsaver(shot::shotx, "shotx");
|
||||||
addsaver(shot::shoty, "shoty");
|
addsaver(shot::shoty, "shoty");
|
||||||
addsaverenum(shot::format, "shotsvg");
|
addsaverenum(shot::format, "shotsvg");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user