Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2010, 11:41:30 AM (14 years ago)
Author:
rgrieder
Message:

Eliminated all unnecessary global Lua variables and replaced them either with a local or a instance variable (P.myVar).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestates3/data/gui/scripts/GUITools.lua

    r6746 r6773  
    33function createMenuSheet(name, bHidePrevious, tShowCursor, tUseKeyboard, bBlockJoyStick)
    44    local sheet = require("MenuSheet").new(name, bHidePrevious, tShowCursor, tUseKeyboard, bBlockJoyStick)
     5    global(sheet.name)
    56    _G[sheet.name] = sheet -- Global access required because of the event handlers
    67    return sheet
Note: See TracChangeset for help on using the changeset viewer.