1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 10:27:45 +00:00

refactored the parameter (saver/setting) system

This commit is contained in:
Zeno Rogue
2024-05-26 20:22:29 +02:00
parent a80a73458a
commit 1c74774bfa
15 changed files with 657 additions and 778 deletions

View File

@@ -45,7 +45,7 @@ namespace hr {
namespace ads_game {
void change_default_key(int key, int val) {
char* t = scfg_ads.keyaction;
int* t = scfg_ads.keyaction;
t[key] = val;
}
@@ -213,7 +213,7 @@ auto shot_hooks =
+ addHook(hooks_configfile, 100, [] {
param_f(ads_how_much_invincibility, "ads_invinc")
-> editable(0, TAU, TAU/4, "AdS invincibility time", "How long does the period of invincibility after crashing last, in absolute units.", 'i');
param_f(ds_how_much_invincibility, "ads_invinc")
param_f(ds_how_much_invincibility, "ds_invinc")
-> editable(0, TAU, TAU/4, "dS invincibility time", "How long does the period of invincibility after crashing last, in absolute units.", 'i');
param_b(auto_angle, "ads_auto_angle")
-> editable("automatically rotate the projection", 'a');
@@ -287,7 +287,7 @@ auto shot_hooks =
param_i(spacetime_qty, "ads_spacetime_qty")
-> editable(0, 100, 5, "step quantity in the spacetime display", "", 'q');
addsaver(ghost_color, "color:ghost");
param_color(ghost_color, "color:ghost", true);
rsrc_config();
});