In my current map project I have an action bar (similar to the standard one in WoW with 12 bars that you can fill with abilities/potions) and I was thinking it would be cool to be able to right click on a slot and have a menu (like a drop-down) open up to pick which ability goes in the slot.
Is it possible to detect a right click on a dialog button?
can you right click on them standard? as in can you interact with them via right click?
If you can then yes. ( just use a condition to check whether key press was left or mouse click)
If not I'm not sure whether you can tell if the click was on the dialog button or not
I tried everything I could think of with triggers to see if this works but I guess it doesn't. I could try and make this super confusing where the ability bar is just an inventory. That way you would just have to right click to drag the items (abilities) around and left click to use them.
Would it be a bad idea if I just made it so the menu opened on left click. So you would have to use the hotkeys (0-9, -, =) instead of being able to left click to use the abilities?
just make it so ctrl or alt left click opens the dropdown
What event/conditions would I use for this? I'm not sure how to do control/alt+click. Also, if I'm not mistaken, I don't believe mouse clicks register when in a dialog.
Have a switch turn on when a player presses down the left control button and off when he releases the button ("presses button up.") Then in your "dialog item was clicked" trigger, check if said switch is ON. If yes, show your option thingy. Else whatever happens with a normal left click.
In my current map project I have an action bar (similar to the standard one in WoW with 12 bars that you can fill with abilities/potions) and I was thinking it would be cool to be able to right click on a slot and have a menu (like a drop-down) open up to pick which ability goes in the slot.
Is it possible to detect a right click on a dialog button?
@PHSexperience: Go
can you right click on them standard? as in can you interact with them via right click?
If you can then yes. ( just use a condition to check whether key press was left or mouse click) If not I'm not sure whether you can tell if the click was on the dialog button or not
I tried everything I could think of with triggers to see if this works but I guess it doesn't. I could try and make this super confusing where the ability bar is just an inventory. That way you would just have to right click to drag the items (abilities) around and left click to use them.
Would it be a bad idea if I just made it so the menu opened on left click. So you would have to use the hotkeys (0-9, -, =) instead of being able to left click to use the abilities?
@PHSexperience: Go
just make it so ctrl or alt left click opens the dropdown
What event/conditions would I use for this? I'm not sure how to do control/alt+click. Also, if I'm not mistaken, I don't believe mouse clicks register when in a dialog.
@PHSexperience: Go
Just tested it. Mouse clicks do not register on dialog items. They do, however, register on images.
Have a switch turn on when a player presses down the left control button and off when he releases the button ("presses button up.") Then in your "dialog item was clicked" trigger, check if said switch is ON. If yes, show your option thingy. Else whatever happens with a normal left click.
@BasharTeg: Go
Oooo. Great idea. Booleans will be my friend in this. Thanks for the feedback everyone!