Skip to content

Conversation

@NympheaR
Copy link
Contributor

No description provided.


PA_ADD_OPTION(LANGUAGE);
PA_ADD_OPTION(POKEMON);
PA_ADD_OPTION(RIGHT_SCROLLS);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you hide all these options when the selected mon doesn't need it?

You'll need to inherit from ConfigOption::Listener, then add an override for the function on_config_value_changed(). Depending on how that is called can

@NympheaR NympheaR changed the title Add Meltan Reset Add Meltan/Melmetal Reset Jan 20, 2026
}

StatsReset::on_config_value_changed(this);
POKEMON.add_listener(*this);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to detach listeners in the destructor or you'll dangle the pointer.

@Mysticial Mysticial merged commit 8983d4e into PokemonAutomation:main Jan 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants