Legacy:LoadWindowStyle

From Spherical
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Creates a new WindowStyle object by loading the specified windowstyle file (.rws).

Usage

WindowStyle LoadWindowStyle(filename);


  • filename String. The rws file to load.

Notes

The rws file should be in the windowstyles subdirectory of your game directory. Example: Sphere/games/mygame/windowstyles/mywindow.rws

Examples

Load a windowstyle and immediately view it on the screen:

var ws = LoadWindowStyle("style.rws");
ws.drawWindow(10, 10, 300, 100);  //Position (10, 10) with a width and height of 300x100.

See also