- Joined
- Jun 1, 2009
- Messages
- 125
Hi!
1. Is it possible to hide a dialog button for a specific player? GUI certainly can't do it, but perhaps it's possible with the Jass magic?
2. If not - is it possible to show each player his own dialog (all in the same time), using the same dialog buttons for everyone?
Thanks for help!
Upd: trying multiple dialogs with one button variable. 6 buttons for 8 players. Gonna use this formula to set a button number:
(N-1)x6 gonna be a "player index".
To get a button variant from the different dialogs I'm gonna use:
1. Is it possible to hide a dialog button for a specific player? GUI certainly can't do it, but perhaps it's possible with the Jass magic?
2. If not - is it possible to show each player his own dialog (all in the same time), using the same dialog buttons for everyone?
Thanks for help!
Upd: trying multiple dialogs with one button variable. 6 buttons for 8 players. Gonna use this formula to set a button number:
-
Set VariableSet BUTTON[(((N - 1) x 6) + V)] = (Last created dialog Button)
(N-1)x6 gonna be a "player index".
To get a button variant from the different dialogs I'm gonna use:
-
Events
-
Dialog - A dialog button is clicked for Dialog_Settings[1]
-
Dialog - A dialog button is clicked for Dialog_Settings[2]
-
Dialog - A dialog button is clicked for Dialog_Settings[3]
-
Dialog - A dialog button is clicked for Dialog_Settings[4]
-
Dialog - A dialog button is clicked for Dialog_Settings[5]
-
Dialog - A dialog button is clicked for Dialog_Settings[6]
-
Dialog - A dialog button is clicked for Dialog_Settings[7]
-
Dialog - A dialog button is clicked for Dialog_Settings[8]
-
-
Conditions
-
Actions
-
For each (Integer M) from 0 to 48, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to BUTTON[M]
-
-
Then - Actions
-
Set VariableSet N = (Player number of (Triggering player))
-
Set VariableSet V = (M - ((N - 1) x 6))
-
Set VariableSet MODE = (MODE + (Real(V)))
-
Set VariableSet Votes_Count = (Votes_Count + 1)
-
Dialog - Hide Dialog_Settings[N] for (Triggering player)
-
-------- Stop Loop --------
-
Custom script: exitwhen true
-
-
Else - Actions
-
-
-
Last edited: