GUI: rework auto-answers to use shared logic, rework day/night button
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description
Current problem: it’s almost the only one xmage’s GUI that hidden inside right click menu, so many players don’t know about that feature. Also touchscreens like mobile devices don’t have mouse (no right clicks, limited drag and drop).
Current support:
- feedback dialog with yes/no button — right click on button;
- trigger choose dialog — right click on trigger card;
- pick choice dialogs with search and other fields - unsupported (limited support, see replacement effects choose);
- ability choose dialog with transparent panel - unsupported;
- target choose dialog - unsupported.
Current examples:


Possible solution: use action button with additional drop down menu, so users can see another possible actions
Java swing library don’t have such controls so it must be implemented. Example implementation: https://stackoverflow.com/questions/63251187/how-to-create-a-combo-box-button
Style references:



Trigger choose dialog uses standard card panel (e.g. card render object), so it can have build-in action button, e.g. in the bottom of the card or in the corner (alternative to day/night button).
I think day/night UI can be improved and reworked to integrate all other actions like: switch card side, remember choice, report card bug, add/remove to favorite, etc.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.