- Timestamp:
- Apr 1, 2010, 1:52:24 PM (15 years ago)
- Location:
- code/branches/gamestates2/data
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/data/gui/scripts/InitialiseGUI.lua
r6662 r6671 72 72 cursor:show() 73 73 end 74 end75 76 local function find(table, value)77 for i, v in ipairs(table) do78 if v == value then79 return i80 end81 end82 return nil83 74 end 84 75 … … 194 185 -- Remove sheet with its tuple from the table 195 186 root:removeChildWindow(sheetTuple.menuSheet.window) 196 table.remove(activeMenuSheets, find(activeMenuSheets, sheetTuple))187 table.remove(activeMenuSheets, table.findIndex(activeMenuSheets, sheetTuple)) 197 188 activeMenuSheets[name] = nil 198 189 activeMenuSheets.size = activeMenuSheets.size - 1
Note: See TracChangeset
for help on using the changeset viewer.