Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2010, 2:50:16 PM (15 years ago)
Author:
rgrieder
Message:

Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.

Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/gui/scripts/SettingsMenu.lua

    r6417 r6746  
    11-- SettingsMenu.lua
    22
    3 BasicGUI = require("BasicGUI")
    4 local P = BasicGUI:new() --inherit everything from the gui package
    5 if _REQUIREDNAME == nil then
    6     SettingsMenu = P
    7 else
    8     _G[_REQUIREDNAME] = P
    9 end
    10 
    11 P.filename = "SettingsMenu"
    12 P.layoutString = "SettingsMenu.layout"
     3local P = createMenuSheet("SettingsMenu")
    134
    145function P.SettingsGameplayButton_clicked(e)
    15     showGUI("GameplayMenu", true)
     6    showMenuSheet("GameplayMenu", true)
    167end
    178
    189function P.SettingsMultiplayerOptionsButton_clicked(e)
    19     showGUI("MultiplayerOptionsMenu", true)
     10    showMenuSheet("MultiplayerOptionsMenu", true)
    2011end
    2112
    2213function P.SettingsControlsButton_clicked(e)
    23     showGUI("ControlsMenu", true)
     14    showMenuSheet("ControlsMenu", true)
    2415end
    2516
    2617function P.SettingsGraphicsButton_clicked(e)
    27     showGUI("GraphicsMenu", true)
     18    showMenuSheet("GraphicsMenu", true)
    2819end
    2920
    3021function P.SettingsAudioButton_clicked(e)
    31     showGUI("AudioMenu", true)
     22    showMenuSheet("AudioMenu", true)
    3223end
    3324
    3425function P.SettingsResetSettingsButton_clicked(e)
    3526    -- reset settings
    36     debug("event: reset settings")
     27    logMessage(0, "event: reset settings")
    3728end
    3829
    3930function P.SettingsBackButton_clicked(e)
    40     hideGUI(P.filename)
     31    hideMenuSheet(P.name)
    4132end
    4233
Note: See TracChangeset for help on using the changeset viewer.