ID:159807
 
ok, i'd like to make a skillbar for my game, assigning every skill to a number and then using them pressing the number, well... i have no problems (ok i haven't try it yet, but i have the codes in my head) with all the macros, verbs and everything, but i'd like to DRAG my skills to the bar

my idea is using a grid to the skillbar (we're not the best friends with client.screen xD)

so i'd like someone to explain me exactly how to use the MouseDrag and MouseDrop, at the moment, i was trying (never used mousedrop before...) and i can actully drag the item, and maybe put it on a pereset space on the grid, but there's a way to set the mousedrop so the obj will be dropped in the column-row the mouse is pointing to? i was thinking on create 10 grids (1 to 9 and 0) and use them sepparately but i wanna know if there's a better way



english isn't my main language so if i say something stupid sorry xD and im trying to learn, not to copy-paste a code without even knowing how it works so dont worry about that :P
The DM reference is pretty good at explaining exactly how to use something.
If you've checked it at all, and read it thoroughly about mouse control, you should see that the mouse procs have parameters that can be used to tell you what grid cell the mouse is at.
In response to Kaiochao
mhh i guess you mean over_control but i dont know the syntax it gotta have, im not used to interfaces (i haven't coded since before 4.0 xD)

In response to Frolik
You could easily test it out. Just output over_control and it will tell you.
In response to Kaiochao
i tried

usr << output(src,over_control)
but it just drop the obj in the column 1, row 1...
i also tried
winset(usr,over_control,??)
but i dont know what should be in the third arg, to call the place the mouse is in...

and sorry if i look stupid, it happens to me all the time, when someone doesn't know something i know, it looks stupid but i just cant figure out, sorry...
In response to Frolik
You should read through this article. It explains most of what skins can do.
In response to Kaiochao
I read it (in past, im not sure if there's a past for read XD remember english isn't my main)
otherwise i wouldn't even know what's a grid or how to use winset xD
and well i guess using current_cell should work but i still doens't knowing what param i gotta use to get what row column the mouse is over

and dont underestimate me i read (again, in past -.-) all i could before asking... but there's nothing about the column/row position of the mouse, i tried over control and over_loc, i could just set it so when u drag one it goes to 1,1 then u drag another it goes to 2,1, etc

but i guess im gonna use 10 grid with 1 column, 1 row each...
In response to Frolik
Read has two definitions. Past and Present. Read (pronounced Reed) and Read (pronounced Red).

Read (Reed) - verb. to observe and understand the text in a resource such as a book (present tense)

Read (Red) - verb. to HAVE observED and understOOD the text in a resource such as a book (past tense)
In response to Mizukouken Ketsu
Mizukouken Ketsu wrote:
Read has two definitions. Past and Present. Read (pronounced Reed) and Read (pronounced Red).

Read (Reed) - verb. to observe and understand the text in a resource such as a book (present tense)

Read (Red) - verb. to HAVE observED and understOOD the text in a resource such as a book (past tense)

mmhh i gues it's not relatedto the post but thanks for the english class anyway :P

and thanks Kaio too, i guess XD