Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document entrypoint for showing/hiding the Party Gauge #140

Merged
merged 10 commits into from
Feb 9, 2024

Conversation

lhearachel
Copy link
Collaborator

For clarity, the term "Party Gauge" refers to the following elements on the battle UI, which show at the start of the battle and whenever a trainer sends in a new Pokemon after a KO:

woDHyKx

This is all foundational; the Party Gauge itself is my next target, and none of this code actually deals with graphics, but this documentation sets up a sketch of how messages are transferred between the battle back-end and what's actually rendered on the DS itself.

The indirection flow is essentially:

  1. The battle back-end enqueues a message for publication to all interested parties. In PvE settings, this will just be the player's DS, but it includes all other connected players in Link-enabled battles.
  2. Connected players consume the message, which contains a command ID that maps to a particular processing routine.
  3. The processing routine directs control to an async task, which takes care of whatever needs to be displayed and waits for the result.

@lhearachel lhearachel merged commit 7dac66b into pret:main Feb 9, 2024
1 check passed
github-actions bot pushed a commit that referenced this pull request Feb 9, 2024
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.

1 participant