From Spherical
Revision as of 19:28, 20 May 2013 by Apollolux (talk | contribs) (Reformat for new convention)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


WindowStyle LoadWindowStyle(filename);

  • filename String. The rws file to load.


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


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