Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2010, 5:03:27 PM (14 years ago)
Author:
rgrieder
Message:

Simplified BasicGUI construction. Just give the name of the GUI as argument. The rest will be deduced.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestate/data/gui/scripts/GraphicsMenu.lua

    r6417 r6459  
    22
    33BasicGUI = require("BasicGUI")
    4 local P = BasicGUI:new() --inherit everything from the gui package
     4local P = BasicGUI:new("GraphicsMenu")
    55if _REQUIREDNAME == nil then
    66    GraphicsMenu = P
     
    88    _G[_REQUIREDNAME] = P
    99end
    10 
    11 P.filename = "GraphicsMenu"
    12 P.layoutString = "GraphicsMenu.layout"
    1310
    1411function P:init()
Note: See TracChangeset for help on using the changeset viewer.