3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Display Screen Height & Width  (Read 68 times)

« on: June 12, 2014, 07:39:55 AM »
I ask a lot from the community, so I thought I should finally give back :P
Anyways, what this script does is, if compiled, will read the resolution the game is playing in, while in maximized mode only. If you are in minimized mode or using the script in the editor, it will simply return the resolution of your screen.
If you'd rather have the script instead of the 3DR, here you go:
Code: [Select]
void Main()
{
   int IDH = iDisplayHeight();
   int IDW = iDisplayWidth();
   if((IDH>1) && (IDW>2));
      {
         OUT_22 = IDW; //OUT_22 is the displayed value of a valueprint
         OUT_0 = IDH; //OUT_0 is the displayed value of a valueprint
      }
}
;D
« Last Edit: June 12, 2014, 07:41:36 AM by NickDH »
Pages: [1]