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

[UI/UX] Spend all button for gacha #5136

Open
wants to merge 5 commits into
base: beta
Choose a base branch
from

Conversation

Davidy22
Copy link
Contributor

@Davidy22 Davidy22 commented Jan 17, 2025

What are the changes the user will see?

Add a new spend all button in the egg gacha so that when I want to buy max eggs I don't have to hold the z key down for two minutes on the voucher plus icon

Why am I making these changes?

Buying max egg inventory on the gacha currently is a bit boring. New button added changes the experience from a 2 minute youtube break with the z key held down to a single button press.

What are the changes from a developer perspective?

Some new lines in locale to translate because existing messages don't describe exactly accurately some of the new behavior, egg gacha UI shifted around a little to make room for the new option and removed a seemingly redundant instantiation of this.eggGachaOptionsContainer that isn't necessarily relevant to the content of the PR. Attempts to use highest denomination vouchers first. Maybe could be given a new icon. If the one redundant line I took out was important or we want to split that out I can take it out of this PR.

Screenshots/Videos

Screenshot From 2025-01-17 12-57-55
Screenshot From 2025-01-17 12-59-20

How to test the changes?

Click the new all button with vouchers added to inventory.

Checklist

  • I'm using beta as my base branch
  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • Have I tested the changes manually?
  • Are all unit tests still passing? (npm run test)
    • Have I created new automated tests (npm run create-test) or updated existing tests related to the PR's changes?
  • Have I provided screenshots/videos of the changes (if applicable)?
    • Have I made sure that any UI change works for both UI themes (default and legacy)?

Are there any localization additions or changes? If so:

@Davidy22 Davidy22 requested a review from a team as a code owner January 17, 2025 06:00
@Madmadness65 Madmadness65 added Enhancement New feature or request UI/UX User interface/-experience related labels Jan 18, 2025
src/ui/egg-gacha-ui-handler.ts Outdated Show resolved Hide resolved
src/ui/egg-gacha-ui-handler.ts Outdated Show resolved Hide resolved
public/locales Outdated Show resolved Hide resolved
@Davidy22
Copy link
Contributor Author

Got back home just in time to see locales get merged nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request UI/UX User interface/-experience related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants