Hey all, I was wondering if anyone had any ideas on how to go about making a drag and drop system. Not how to trigger it, but more in it's functionality.
For example, my current drag and drop system, I have to "Control+Click" a dialog to start dragging it. Does anyone have any better suggestions?
perhaps somekind of release button after its on spellbar/itembar (so you can use items/spell by clicking too)
might be a bit complex, but overal functional and fast to use (ofc depends on what kinds of systems you are using too)
There isnt anyway to make it with right click from my knowledge, so the options are pretty limited.
edit* well workaround could be to use left click and calculate mouse position from screen and then check what dialog button is on that slot...maybe it could work too :D (let me know how it goes if you try it)
Well, I tried many things. I can't have them simply click to pick up and drop because they need to click to "level up" the ability.
I can't calculate mouse position over a dialog button type (or anything with a tooltip). All mouse events are not registered any longer if it's over a dialog button (excluding dialog button is clicked, as it's not an actual mouse event)
My last resort is to recreate a dialog system in where I'd do the following:
EVENT-dialogitemisusedwitheventtype"mouse entered"Action-setvariableontriggeringdialog(let'scallitgv_curDialogItem)Action-disabletriggeringdialog(thiswillmakeitnolongerabuttontype)Action-changedialogitemimageto"hover image of dialog item"
The above trigger is so that I can simulate a dialog button and be able to register mouse click events, such as right-click. Then, when a player clicks their mouse, I can appropriately make events/triggers for it. For example
EVENT-playerright-clicksCondition-gv_curDialogItem!=nodialogitemAction-changedialogitemimageto"normal image of dialog item"Action-Show"drag dialog with image of the used dialog item)
Hey all, I was wondering if anyone had any ideas on how to go about making a drag and drop system. Not how to trigger it, but more in it's functionality.
For example, my current drag and drop system, I have to "Control+Click" a dialog to start dragging it. Does anyone have any better suggestions?
just click to pick up and click to drop?
perhaps somekind of release button after its on spellbar/itembar (so you can use items/spell by clicking too)
might be a bit complex, but overal functional and fast to use (ofc depends on what kinds of systems you are using too)
There isnt anyway to make it with right click from my knowledge, so the options are pretty limited.
@zenx1: Go
Well, I tried many things. I can't have them simply click to pick up and drop because they need to click to "level up" the ability.
I can't calculate mouse position over a dialog button type (or anything with a tooltip). All mouse events are not registered any longer if it's over a dialog button (excluding dialog button is clicked, as it's not an actual mouse event)
My last resort is to recreate a dialog system in where I'd do the following:
The above trigger is so that I can simulate a dialog button and be able to register mouse click events, such as right-click. Then, when a player clicks their mouse, I can appropriately make events/triggers for it. For example