Page 1 of 1

card view from prompts

PostPosted: 20 Jan 2017, 00:55
by pfps
I made changes to the prompt code to show more information about the spell
or ability that caused a prompt. I also made changes to the gui interface
and the desktop gui to record this spell or ability (view) and to show its
card (view) when the mouse is over the prompt pane. This required more
changes to the code than I would have liked because the spell or ability has
to be dragged from the player code through the input code all the way to the
view code. I had to add new methods fairly high up in the class hierarchy
- for IGuiGame - showPromptMessage(playerView, message, sav)
- for InputBase - showMessage(message, sav)

Re: card view from prompts

PostPosted: 20 Jan 2017, 04:57
by Agetian
This is a very interesting and very nice feature to have! Thanks, I'll test it soon! :)

- Agetian

Re: card view from prompts

PostPosted: 20 Jan 2017, 17:35
by Xitax
pfps wrote:I made changes to the prompt code...
This is a very welcome addition to be sure. Not knowing the source of the prompt or what it's asking for is an all to frequent annoyance.

Re: card view from prompts

PostPosted: 20 Jan 2017, 20:19
by pfps
Thanks.

I'm not completely happy with the information showing up in the prompts, but at least all the relevant information should now show up.

Re: card view from prompts

PostPosted: 21 Jan 2017, 17:23
by pfps
Some triggered abilities on some cards don't have a description, e.g., for Boros Garrison. This isn't ideal, but I guess is a flaw in the card description and shouldn't be papered over in the code. (Besides which, it's not very clear what should be shown - the stack description could be used, but it is not very clear - the trigger description would be nice to show but I don't know how to get ahold of that when the triggered ability is asking for input.)

Re: card view from prompts

PostPosted: 25 Jan 2017, 02:17
by pfps
Both the desktop and the mobile interface can show the card "responsible" for a prompt, if there is one. In the desktop interface this is via clicking on the prompt. In the mobile interface this is via a long press or a swipe.