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/MainMenu.lua

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