magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.88k stars 772 forks source link

Add button to temporary hide all game dialogs #12670

Closed JayDi85 closed 1 month ago

JayDi85 commented 2 months ago

Problem: many choose dialogs use a modal state, so users can't close/hide it or click on another button until making a choice. It's a problem cause users want to see a battlefield, chatting or card researching before making a choice.

MTGA solve it as special eye button to show battlefield without any dialogs.

XMage can use same feature, but it can be hard to implement (xmage/swing uses shared layer for all modal dialogs). So must be researched (is it possible or not).

TODO:

JayDi85 commented 1 month ago

Alternative solution: disable modal mode at all (e.g. use callbacks instead blocking UI — any windows and dialogs can be switches at any time).

It works fine but introduce a buggy (important fox xmage) and a limited UX logic with max dialogs depth (non important to xmage — there are 1-2 max dialog chain like “main -> connect dialog -> search flag dialog”).

Bonus features:

TODO:

JayDi85 commented 1 month ago

Not actual anymore with non-blocking UI in last release #12825