View Single Post
Unread 06-27-11, 03:13 AM   #6
Verttex
Super Monkey
 
Verttex's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 297
Originally Posted by Nibelheim View Post
Code:
/run local nr = "1366x768"; if GetCVar("gxresolution") == nr then nr = "1440x900" else nr = "1366x768" end; SetCVar("gxresolution", nr); RestartGx();

Could also throw in Maximize modes. Toggle between 1366 windowed and 1440 fullscreen:
Code:
/run local nr, nw = "1366x768"; if GetCVar("gxresolution") == nr then nr = "1440x900"; nw = 0; else nr = "1366x768"; nw = 1; end; SetCVar("gxresolution", nr); SetCVar("gxWindow", nw); RestartGx();
Nice job, looks good from here.
Verttex is offline   Reply With Quote