Difference between revisions of "Legacy:LoadWindowStyle"

From Spherical
Jump to: navigation, search
m (Apollolux moved page LoadWindowStyle to API:LoadWindowStyle: API)
(Reformat for new convention)
 
Line 1: Line 1:
 
[[Category:Functions]]
 
[[Category:Functions]]
  
Creates a new [[WindowStyle]] object by loading the specified windowstyle file (.rws).
+
Creates a new [[API:WindowStyle|WindowStyle]] object by loading the specified windowstyle file (.rws).
  
 
==Usage==
 
==Usage==
  
;[[WindowStyle]] LoadWindowStyle(filename);
+
{{Usage|returns=WindowStyle|func=LoadWindowStyle|params=filename}}
  
* filename The rws file to load.  
+
* '''filename''' String. The rws file to load.  
  
 
==Notes==
 
==Notes==
Line 27: Line 27:
 
==See also==
 
==See also==
  
* [[WindowStyle]] object
+
* [[API:WindowStyle|WindowStyle]] object
* [[WindowStyle.drawWindow]](x, y, width, height)
+
* [[API:WindowStyle/drawWindow|WindowStyle.drawWindow]](x, y, width, height)

Latest revision as of 19:28, 20 May 2013


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