- Timestamp:
- Sep 3, 2010, 9:17:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/data/gui/scripts/SheetManager.lua
r7341 r7342 69 69 70 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 71 local counter = noInputSheetCounter() 75 72 -- Pause game control if this is the first menu to be displayed 76 73 -- HUGE HACK? … … 182 179 183 180 -- 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 181 local counter = noInputSheetCounter() 188 182 -- Resume control if the last (non-noInput) menu is hidden 189 183 if counter == 0 then … … 204 198 205 199 -- Count the number of sheets that don't need input till the first that does. 206 local counter = activeMenuSheets.size 207 while counter > 0 and activeMenuSheets[counter].bNoInput do 208 counter = counter - 1 209 end 200 local counter = noInputSheetCounter() 210 201 211 202 -- If the first sheet that needs input is the MainMenu. … … 224 215 end 225 216 217 function noInputSheetCounter() 218 -- Count the number of sheets that don't need input till the first that does. 219 local counter = activeMenuSheets.size 220 while counter > 0 and activeMenuSheets[counter].bNoInput do 221 counter = counter - 1 222 end 223 return counter 224 end 225 226 226 ---------------------- 227 227 --- Initialisation ---
Note: See TracChangeset
for help on using the changeset viewer.