Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/HUDSheet.lua @ 6887

Last change on this file since 6887 was 6746, checked in by rgrieder, 15 years ago

Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.

Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.

File size: 394 bytes
RevLine 
[6718]1-- HUDSheet.lua
2
3local P = {} -- Local alias, always use it in this file
4HUDSheet = P -- Global name
5setmetatable(P, require("GUISheet")) -- Inherit from GUISheet
6P.__index = P -- Provide class character
7
8-- Use this function to construct a new HUDSheet
9function P.new(name)
10    local newSheet = GUISheet.new(name)
11    setmetatable(newSheet, P)
12    return newSheet
13end
14
15return P
Note: See TracBrowser for help on using the repository browser.