- Timestamp:
- Sep 3, 2010, 4:27:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/data/gui/scripts/SheetManager.lua
r7339 r7340 63 63 end 64 64 65 -- Set bNoInput to false if it hasn't been set. 65 66 if bNoInput == nil then 66 67 bNoInput = false 67 68 end 68 69 70 -- Count the number of sheets that don't need input till the first that does. 71 local counter = activeMenuSheets.size 72 while counter > 0 and activeMenuSheets[counter].bNoInput do 73 counter = counter - 1 74 end 69 75 -- Pause game control if this is the first menu to be displayed 70 76 -- HUGE HACK? 71 if activeMenuSheets.size== 0 then77 if bNoInput == false and counter == 0 then 72 78 orxonox.HumanController:pauseControl() 73 79 end … … 78 84 end 79 85 80 if bNoInput == false then86 if bNoInput == true then 81 87 menuSheet.tShowCursor = TriBool.Dontcare 82 88 end … … 175 181 end 176 182 177 -- Resume control if the last menu is hidden 178 if activeMenuSheets.size == 0 then 183 -- Count the number of sheets that don't need input till the first that does. 184 local counter = activeMenuSheets.size 185 while counter > 0 and activeMenuSheets[counter].bNoInput do 186 counter = counter - 1 187 end 188 -- Resume control if the last (non-noInput) menu is hidden 189 if counter == 0 then 179 190 orxonox.HumanController:resumeControl() 180 191 hideCursor()
Note: See TracChangeset
for help on using the changeset viewer.