Remove close icon on multipleChoiceDialog

Game development with Board Game Arena Studio
Post Reply
User avatar
Yanhoch
Posts: 5
Joined: 05 February 2018, 03:11

Remove close icon on multipleChoiceDialog

Post 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 !
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Remove close icon on multipleChoiceDialog

Post 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
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Remove close icon on multipleChoiceDialog

Post 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.
User avatar
Yanhoch
Posts: 5
Joined: 05 February 2018, 03:11

Re: Remove close icon on multipleChoiceDialog

Post 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 !
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: Remove close icon on multipleChoiceDialog

Post 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.
User avatar
Yanhoch
Posts: 5
Joined: 05 February 2018, 03:11

Re: Remove close icon on multipleChoiceDialog

Post by Yanhoch »

Thanks... I guess I'll go for something similar...
Post Reply

Return to “Developers”