Ask Pos

Signature

void askpos(int windowId, int initialPosition, int cancelPosition); //id:0x0013

Description

Used before functions like A Ask 1FF to set the cursor position on the next opened window.

Arguments

Window Identifier

The window the dialogue will be displayed in.

There are a total of 8 windows (0 -> 7) that can be used to simultaneously display several dialogues, shapes (textures), etc. at the same time.

If a value of -1 is passed, it will be changed to 0.

If the window is already used before calling this function, nothing will change.

Initial Position

The position of the cursor when the window is opened.

Cancel Position

The position of the cursor when the player presses the cancel button.

If the value is higher than the max number of item choices in a dialogue, pressing the cancel button will set the cursor to the last item choice.

If the value is negative, pressing the cancel button will not change the position of the cursor at all.

Last updated