Cursor names [SOLVED]

Started by ., Tue 12/04/2005 15:29:21

Previous topic - Next topic

.

Where can i find cursor names? I mean if i have created other cursors where can i find the names for them if i want to like set cursor mode?
Please help me if its not in manual if it is in manual then call me a idiot.

DoorKnobHandle

I don't think it's in the manual, but it's so simple that I'll still call you an idiot.

Idiot. ;D

Go to the Cursor Pane in AGS and you'll see'em...

Easy, wasn't it?

.

No thats not what i meant i mean in scripting you know MODE_ USE etc...

Ash-n

That's in the manual too, but it's not as obvious as it maybe should be (it's hidden under ProcessClick). Modes 0-5 have names: MODE_WALK, MODE_LOOK, MODE_USE, MODE_TALK, MODE_USEINV, MODE_PICKUP respectivly.

The others (including any you may've made yourself) I think you just have to use the numbers for.

.

No numbers wont do i already tried it befor i posted :-\

Ashen

#5
Well now thats bizarre. As I understand it, the MODE_XXX thing is just like a built-in define, linked to the cursor mode number (In 2.7, it uses enums, which are pretty similar).

EDIT: Which means you could probably set your own #define, e.g.:
Code: ags

#define MODE_THUMP 8

to link cursor mode 8 to MODE_THUMP

What exactly is the problem? What have you tried, and what is/isn't it doing? 
I know what you're thinking ... Don't think that.

.

Yes that is it thank you very very much (this thread can now be closed)
The defining works.

Scummbuddy

mamarulez, please be more kind in the future.

and Kristjan, I'm glad you have your problem solved.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

DoorKnobHandle

oh come on, he said:

Quote
if it is in manual then call me a idiot.

I was just trying to be funny, I guess...

.

Yea its ok i get it it was a joke

Scummbuddy

and im sorry that i missed that part.

and now that were all best friends once again...  ;)
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk