Check the switch
Just as checkbox, we can check the status switches using the following functions.
ui_get_checked (control);
Return: Boolean
Argument control is the handle of ui_switch_create(...);
function to be checked.
var full = ui_get_checked (fullscreen);
window_set_fullscreen(full);
The above line of code is used to set the window fullscreen or do not conform to the switching status fullscreen.