Closed txj-xyz closed 2 years ago
Perhaps check the names of the bars for switching per style
if (
config.toggleSwitching &&
reference.icon.match(/(weapons\/(magic|melee|range)|slot-icons)/g) &&
bind.bar.toLowerCase() !== this.activeBar?.toLowerCase() &&
bind.bar.toLowerCase().includes(this.activeBar?.toLowerCase().split(' ')[0])
)
this.activeBar = bind.bar;
bind.bar.toLowerCase().includes(this.activeBar?.toLowerCase().split(' ')[0])
Sloppy but is possible doing something like this to stay on the same style itself, perhaps its time to introduce pre-configured bars to keep on the same style
I've added defaults to all new users that download to check against in the future, however checking is limited right now, seems as though the only smart way of staying on a style is if the style is included in the naming of the bars on both from / to sides.
I have Range DW / Range 2h and Melee DW / Melee 2h
with toggle switching only uses range DW