Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/lua/Tools.lua @ 6718

Last change on this file since 6718 was 6718, checked in by rgrieder, 15 years ago

Moved BasicGUI.lua to GUISheet.lua and derived MenuSheet.lua as well as HUDSheet.lua from it.
Also, to make a new GUI sheet, use either createHUDSheet or createMenuSheet.
Also removed bShowCursor from the showGUI function. This is now always a value directed by the GUI sheet.

  • Property svn:eol-style set to native
File size: 463 bytes
Line 
1function handleDefArg(argument, defaultValue)
2    if argument == nil then
3        return defaultValue
4    else
5        return argument
6    end
7end
8
9function table.findIndex(table, value)
10    for i, v in ipairs(table) do
11        if v == value then
12            return i
13        end
14    end
15    return 0
16end
17
18-- Short forms for TriBool
19TriBool =
20{
21    True     = orxonox.TriBool.True,
22    False    = orxonox.TriBool.False,
23    Dontcare = orxonox.TriBool.Dontcarex
24}
Note: See TracBrowser for help on using the repository browser.