View Single Post
Old 10-25-2013, 08:28 PM   #1
Roochie
A Ghoul
 
Join Date: Oct 2013
Posts: 10
Default How to access current video mode/screen resolution?

hi, im new here. I've been messing around with some ui and its been relatively easy (i've done a little xml before) however i need to learn how to access the current screen resolution or video mode, and how to check weather or not its in fullscreen. Also this may be a dumb question, but can you do simple math operations in xml? i cant remember. like if i was defining an int could i set it to 2*3?

My other question was simply how to change the font size of a button. or any font in the ui really.

EDIT: i just realized this probably isnt very clear. sorry im tired. basically, the reason i want to access the screen resolution and stuff is cause i want to attempt to set a window's size to a percentage of the screen resolution. thus, if you changed to a larger video mode, the window would change as well
Roochie is offline   Reply With Quote