Changeset 8687 for code/branches/unity_build/data/gui/scripts/MenuSheet.lua
- Timestamp:
- May 30, 2011, 6:45:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/data/gui/scripts/MenuSheet.lua
r7689 r8687 11 11 -- Parameters: 12 12 -- Except for _name, you can provide nil. Then the default value will be used. 13 -- For _tShowCusor and _tUseKeyboard you can specify TriBool.Dontcareif the value doesn't matter at all. Then the value of the underlaying sheet will be used.13 -- For _tShowCusor and _tUseKeyboard you can specify tribool(dontcare) if the value doesn't matter at all. Then the value of the underlaying sheet will be used. 14 14 function P.new(_name, _bHidePrevious, _tShowCursor, _tUseKeyboard, _bBlockJoyStick) 15 15 local newSheet = GUISheet.new(_name) 16 16 newSheet.bHidePrevious = handleDefArg(_bHidePrevious, true) 17 newSheet.tShowCursor = handleDefArg(_tShowCusor, TriBool.True)18 newSheet.tUseKeyboard = handleDefArg(_tUseKeyboard, TriBool.True)17 newSheet.tShowCursor = handleDefArg(_tShowCusor, tribool(true)) 18 newSheet.tUseKeyboard = handleDefArg(_tUseKeyboard, tribool(true)) 19 19 newSheet.bBlockJoyStick = handleDefArg(_bBlockJoyStick, false) 20 20
Note: See TracChangeset
for help on using the changeset viewer.