function
any (client-side)
Available since version: 0.0.1
Note
Use this function only when you want to convert y position or height on the screen.
Note
Virtual screen coordinates are similar to percentage values, where 0 is 0% and 8192 is 100%.
This function will convert pixels to virtuals on screen Y dimension and return it as a result. Virtuals are special type of unit used by the game to position UI elements independent from game resolution.
Declaration
int any(int pixels)
Parameters
int
pixels: the pixels to convert.
Returns int
the virtuals after conversion.