pan_setpos(PANEL*, var type, var num, VECTOR* xy)
Changes the xy position
of a panel element.
pan_getpos(PANEL*, var type, var num, VECTOR* xy) A8.22
Sets the vector to the xy position of a panel element.
Parameters:
PANEL* |
Panel pointer. |
type |
Element type:
1 = digits
3 = button, toggle
4 = slider
5 = window
6 = needle
|
num |
Number of the element, starting with 1. |
xy |
Vector containing the element's new x and y values |
Remarks:
The changed element is not saved by game_save.
Example:
pan_setpos(_dbg_pan,1,1,vector(20,30,0));
See also:
pos_x, pos_y
► latest
version online