I'm having problems with screen buttons. When I click one button it thinks I clicked all of them.
I copied the triggers as text.
Creation Trigger:
"
Events:
Game - Map initialization
Actions:
Dialog - Display button 1 of size (200, 60) with text "Show/Hide UI" at Top Right of screen with offset (30, 30) (run No Trigger when button is clicked)
Dialog - Display button 2 of size (200, 60) with text "Key Jamming" at Top Right of screen with offset (240, 30) (run No Trigger when button is clicked)
"
Button 1 Clicked Trigger:
"
Events:
Dialog - (Screen button 1) is Clicked by Player Any Player
Actions:
UI - Display "UI Show/Hide Clicked" for (All players) to Subtitle area
"
Button 2 Clicked Trigger:
"
Events:
Dialog - (Screen button 2) is Clicked by Player Any Player
Actions:
UI - Display "Key Jamming Clicked" for (All players) to Subtitle area
"
In game when I click either button it displays both "Key Jamming Clicked" and "UI Show/Hide Clicked", indicating that the events are the roots of the problem.
And I would have it run the "Clicked" triggers by setting the triggers while I create the buttons "(run No Trigger when button is clicked)" but if I do it that way I don't think it is possible to pass on the player number of the player that clicked the button seeing as how it won't run Action Definitions or Functions that can take parameters. So I'm trying it this way so that I can manipulate things only for the player that clicked the button.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Nevermind, I think I got it.
I was able to add in a condition that seems to be making it work for now.
I'm having problems with screen buttons. When I click one button it thinks I clicked all of them.
I copied the triggers as text.
Creation Trigger:
"
Events:
Game - Map initialization
Actions:
Dialog - Display button 1 of size (200, 60) with text "Show/Hide UI" at Top Right of screen with offset (30, 30) (run No Trigger when button is clicked)
Dialog - Display button 2 of size (200, 60) with text "Key Jamming" at Top Right of screen with offset (240, 30) (run No Trigger when button is clicked)
"
Button 1 Clicked Trigger:
"
Events:
Dialog - (Screen button 1) is Clicked by Player Any Player
Actions:
UI - Display "UI Show/Hide Clicked" for (All players) to Subtitle area
"
Button 2 Clicked Trigger:
"
Events:
Dialog - (Screen button 2) is Clicked by Player Any Player
Actions:
UI - Display "Key Jamming Clicked" for (All players) to Subtitle area
"
In game when I click either button it displays both "Key Jamming Clicked" and "UI Show/Hide Clicked", indicating that the events are the roots of the problem.
And I would have it run the "Clicked" triggers by setting the triggers while I create the buttons "(run No Trigger when button is clicked)" but if I do it that way I don't think it is possible to pass on the player number of the player that clicked the button seeing as how it won't run Action Definitions or Functions that can take parameters. So I'm trying it this way so that I can manipulate things only for the player that clicked the button.