Posts: 340
Threads: 189
Joined: Apr 2014
Reputation:
0
I want to let the players to choose where the clock textdraw to be ..
How can i do something like that ? .. to get mouse position
Posts: 340
Threads: 189
Joined: Apr 2014
Reputation:
0
UP :
- Any ideas ? for example i want an drag'n drop effect.. ?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
Drag and drop is not possible but to get the mouse position should be possible with SelectTextDraw (something like Kaliber suggested), so you can move it without drag like in the very old programms
1. Select the textdraw you want to move with SelectTextDraw
2. If a textdraw got selected in OnPlayerClickTextDraw create / show the textdraw grid for the mouse position
3. If clicked at new position, destroy old textdraw and create it again at the new position