display_get_gui_width

Returns the width of the GUI.

Syntax:

display_get_gui_width();


Returns: Real


Description

With this function you can get the width (in pixels) of the GUI as used in the Draw Gui Event.


Example:

ads_move(display_get_gui_width() - ads_get_display_width(0), 0, 0);

The above code will set an advert to display at the top right-hand of the display.


Back: Windows And Views
Next: display_get_gui_height
© Copyright YoYo Games Ltd. 2018 All Rights Reserved