So, when going through EDIT MODE with a font that does not have a PRE_ON sound, I am noticing a discrepancy in the setting options for Style Settings.
When I rotate through all the options, in EDIT_STYLE_SETTINGS, going clockwise, it goes:
…
SWING OPTIONS
EMITTER SIZE
OFF OPTIONS
STYLE OPTIONS
STYLE OPTIONS 2 … etc
But rotating counter clockwise, i get the following in reverse order:
…
SWING OPTIONS
EMITTER SIZE
OFF OPTIONS
PREON SIZE
STYLE OPTIONS
STYLE OPTIONS 2 … etc
I think the relevant code is in Saber_fett263_buttons.h line 3991 - 4005 ish
case MENU_STYLE_SETTING_SUB:
for (int i = 0; i < (int)NELEM(int_arg_menu_); i++) {
arg_dial_ += direction;
if (direction > 0) {
// Detect preon.wav for setting preview (cannot be shown without so skip over)
if (!SFX_preon && (int_arg_menu_[arg_dial_] == PREON_OPTION_ARG || int_arg_menu_[arg_dial_] == PREON_SIZE_ARG)) arg_dial_ = 0;
if (arg_dial_ > (int)NELEM(int_arg_menu_) - 1) arg_dial_ = 0;
} else {
// Detect preon.wav for setting preview (cannot be shown without so skip over)
if (!SFX_preon && (int_arg_menu_[arg_dial_] == PREON_OPTION_ARG || int_arg_menu_[arg_dial_] == PREON_SIZE_ARG)) arg_dial_ = NELEM(int_arg_menu_) - 3;
if (arg_dial_ < 0) arg_dial_ = NELEM(int_arg_menu_) - 1;
}
set_num_ = int_arg_menu_[arg_dial_];
if (style_parser.UsesArgument(current_preset_.GetStyle(blade_num_), set_num_ + 2)) break;
}
On a related note about cylcing options, I have a feature request.
When cycling the available settings for each option, is it possible to make the options loop back around when they reach the end?
Let’s say we have 15 “Style Options” available in the style under STYLE_OPTION_ARG, when cycling through, it gets to OPTION 16, which is the same as OPTION 0, and 17 is the same as 2, etc…
Can it be made to know how many options there are, and cycle loop back to OPTION 0 when it reaches the end?
Similarly, Is it possible to make it cycle backwards too? ATM when you try to rotate backwards past 0 it says “MINIMUM SETTING”, if it knew the max count, it could loop back to OPTION 15 instead?
I have a style with 15-20 options in some of the settings. :3