Page 1 of 1

Remove close icon on multipleChoiceDialog

Posted: 09 February 2021, 03:57
by Yanhoch
Hello,

I'm currently using this.multipleChoiceDialog() to create a dialog window to selected a target player for a game action.

This selection is mandatory and I would like to remove the "X" at the upper-right corner of this dialog.

I don't see how to use the hideCloseIcon() method on this since I'm not creating the dialog from scratch.

Any idea how to get rid of the close button?

Unless someone has a better idea on how to select a user (out of 9 possible players) for a target action ?

Thank you !

Re: Remove close icon on multipleChoiceDialog

Posted: 09 February 2021, 09:07
by Tisaac
Yanhoch wrote: 09 February 2021, 03:57 Hello,

I'm currently using this.multipleChoiceDialog() to create a dialog window to selected a target player for a game action.

This selection is mandatory and I would like to remove the "X" at the upper-right corner of this dialog.

I don't see how to use the hideCloseIcon() method on this since I'm not creating the dialog from scratch.

Any idea how to get rid of the close button?

Unless someone has a better idea on how to select a user (out of 9 possible players) for a target action ?

Thank you !
Make the player panel clickable + add action button

Re: Remove close icon on multipleChoiceDialog

Posted: 09 February 2021, 14:44
by Victoria_La
You can always directly manipulate dom (i.e. remove elements) but I would strongly advice again.
If you think such dialog does not sute you need its probably wrong choice.
For example this interaction it better suited for "state prompt", i.e. standard prompt on top.
It can also flow properly with game, you give them choice on top bar, they click it - you send it to server (to change active player I presume)
You don't have to change the state to change that prompt see wiki docs on few ways to do that.

Re: Remove close icon on multipleChoiceDialog

Posted: 11 February 2021, 05:00
by Yanhoch
Hi,

Thank you for the answers...

Actually, all my players need to give one of their cards to another player, so I really (I think) need to use the multi-player state.

Since the game can have 3 to 8 players, I don't think putting the list if users in the state prompt is a good move here: it will surly wrap and be very ugly with small screen and long player names. Unless there is something trick that i don't know?

If I make the player panel clickable and adding action button into it, I have the feeling it won't be obvious for the player that the selection should happen through there... Can anyone give me a game that use this method so I can watch how I can make it obvious and fluid?

Thank you !

Re: Remove close icon on multipleChoiceDialog

Posted: 11 February 2021, 11:40
by RicardoRix
The trend at the moment seems to be to pulsate/flash the border of the items that are possible choices.

You could have simple action text, 'Select the player board you want to....'

If you have a confirm button, then when they click this you can then come up with an appropriate error message, not pretty but functional.

I've just done this in my game, but I do not do anything special and no-one has complained yet.
The younger generation just know and/or click things until it works, the older generation will just sit there and moan either way that they don't know what they're doing.

Re: Remove close icon on multipleChoiceDialog

Posted: 12 February 2021, 04:16
by Yanhoch
Thanks... I guess I'll go for something similar...