Changing the order of NextCursor

Started by TheJBurger, Sat 18/09/2004 19:59:47

Previous topic - Next topic

TheJBurger

Ok...

So I want to know if it's possible to change the order of "SetNextCursorMode" ( I think it's called that).

In the default Global script right click is SetNextCursorMode. So the default cycle for the cursors when you right click is 0, 1, 2, 3 ,4 ,5 etc.

I want to know if there's any way you can change the order of the cursors because I want something like,
0, 1, 2, 3, 5, 4.

Thanks in advance.

BorisZ

You have to use conditions for that: if cursor is 1 - set it to 2, if it is 2 - set it to 3 etc.
I don't want to write you complete script because it is better for you to learn it yourself. Check the manual for if, else and else if statements.

Skio

Well, a work around would be to disable mode 4 utterly and then create a new mode after 5, with the same function. Of course you will have to adjust the interactions properly (use cursormode 6 instead of 4).


Another way would be the following: in on_mouse_click, type:

if (button==RIGHT) {
Ã, if Ã, (GetCursorMode()==3) SetCursorMode(5);
Ã, else if (GetCursorMode()==5) SetCursorMode(4);
Ã, else NextCursorMode();
Ã, }
Î'νδρων Επιφανων Πασα Î"η ΤαφοÏ,

TheJBurger

Thanks for the help.  :)

I was actually aware about GetCursorMode() and SetCursorMode() but I wanted to know if there was any other way to solve my problem.

SMF spam blocked by CleanTalk