Changeset 8729 for code/trunk/data/gui/scripts/MenuSheet.lua
- Timestamp:
- Jul 4, 2011, 2:47:44 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/data/gui/scripts/MenuSheet.lua
r7689 r8729 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.