Changeset 8687 for code/branches/unity_build/data
- Timestamp:
- May 30, 2011, 6:45:06 PM (14 years ago)
- Location:
- code/branches/unity_build/data
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/data/gui/scripts/ChatBox-inputonly.lua
r7801 r8687 1 1 -- ChatBox-inputonly.lua 2 2 3 local P = createMenuSheet("ChatBox-inputonly", true, TriBool.True, TriBool.Dontcare, false)3 local P = createMenuSheet("ChatBox-inputonly", true, tribool(true), tribool(dontcare), false) 4 4 return P 5 5 -
code/branches/unity_build/data/gui/scripts/ChatBox.lua
r7801 r8687 1 1 -- ChatBox.lua 2 2 3 local P = createMenuSheet("ChatBox", true, TriBool.True, TriBool.Dontcare, false)3 local P = createMenuSheet("ChatBox", true, tribool(true), tribool(dontcare), false) 4 4 5 5 function P.ChatBoxCloseButton_clicked(e) -
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 -
code/branches/unity_build/data/gui/scripts/MiscConfigMenu.lua
r8079 r8687 1 1 -- MiscConfigMenu.lua 2 2 3 local P = createMenuSheet("MiscConfigMenu", true, TriBool.True, TriBool.True)3 local P = createMenuSheet("MiscConfigMenu", true, tribool(true), tribool(true)) 4 4 5 5 P.commandList = {} -
code/branches/unity_build/data/gui/scripts/NotificationLayer.lua
r8351 r8687 1 1 -- NotificationLayer.lua 2 2 3 local P = createMenuSheet("NotificationLayer", true, TriBool.True, TriBool.True)3 local P = createMenuSheet("NotificationLayer", true, tribool(true), tribool(true)) 4 4 5 5 P.queueList = {} -
code/branches/unity_build/data/gui/scripts/SheetManager.lua
r8079 r8687 81 81 82 82 if bNoInput == true then 83 menuSheet.tShowCursor = TriBool.Dontcare83 menuSheet.tShowCursor = tribool(dontcare) 84 84 end 85 85 … … 110 110 end 111 111 112 -- Only change cursor situation if menuSheet.tShowCursor ~= TriBool.Dontcare113 if menuSheet.tShowCursor == TriBool.Truethen112 -- Only change cursor situation if menuSheet.tShowCursor ~= tribool(dontcare) 113 if menuSheet.tShowCursor == tribool(true) then 114 114 showCursor() 115 elseif menuSheet.tShowCursor == TriBool.Falsethen115 elseif menuSheet.tShowCursor == tribool(false) then 116 116 hideCursor() 117 117 end … … 186 186 -- CURSOR SHOWING 187 187 local i = activeMenuSheets.size 188 -- Find top most sheet that doesn't have tShowCusor == TriBool.Dontcare189 while i > 0 and activeMenuSheets[i].sheet.tShowCursor == TriBool.Dontcaredo188 -- Find top most sheet that doesn't have tShowCusor == tribool(dontcare) 189 while i > 0 and activeMenuSheets[i].sheet.tShowCursor == tribool(dontcare) do 190 190 i = i - 1 191 191 end 192 if i > 0 and activeMenuSheets[i].sheet.tShowCursor == TriBool.Truethen192 if i > 0 and activeMenuSheets[i].sheet.tShowCursor == tribool(true) then 193 193 showCursor() 194 194 else … … 254 254 function windowResized(e) 255 255 for name, sheet in pairs(loadedSheets) do 256 if orxonox.GraphicsManager:getInstance():isFullScreen() or sheet.tShowCursor == TriBool.Falsethen257 inputMgr:setMouseExclusive(sheet.inputState, TriBool.True)256 if orxonox.GraphicsManager:getInstance():isFullScreen() or sheet.tShowCursor == tribool(false) then 257 inputMgr:setMouseExclusive(sheet.inputState, tribool(true)) 258 258 else 259 inputMgr:setMouseExclusive(sheet.inputState, TriBool.False)259 inputMgr:setMouseExclusive(sheet.inputState, tribool(false)) 260 260 end 261 261 end 262 262 local sheetTuple = activeMenuSheets[activeMenuSheets.size] 263 263 if sheetTuple then 264 if orxonox.GraphicsManager:getInstance():isFullScreen() and sheetTuple.sheet.tShowCursor ~= TriBool.Falsethen264 if orxonox.GraphicsManager:getInstance():isFullScreen() and sheetTuple.sheet.tShowCursor ~= tribool(false) then 265 265 showCursor() 266 266 else -
code/branches/unity_build/data/lua/Tools.lua
r6746 r8687 16 16 end 17 17 18 -- Short forms for TriBool 19 TriBool = 20 { 21 True = orxonox.TriBool.True, 22 False = orxonox.TriBool.False, 23 Dontcare = orxonox.TriBool.Dontcare 24 } 18 -- Shortcuts for tribool 19 tribool = orxonox.tribool 20 dontcare = orxonox.dontcare_keyword_t()
Note: See TracChangeset
for help on using the changeset viewer.