Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 16, 2010, 2:50:16 PM (14 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/GUITools.lua

    r6417 r6746  
     1-- Returns a new menu sheet
     2-- See MenuSheet.new for details about the parameters
     3function createMenuSheet(name, bHidePrevious, tShowCursor, tUseKeyboard, bBlockJoyStick)
     4    local sheet = require("MenuSheet").new(name, bHidePrevious, tShowCursor, tUseKeyboard, bBlockJoyStick)
     5    _G[sheet.name] = sheet -- Global access required because of the event handlers
     6    return sheet
     7end
     8
     9-- Returns a new HUD sheet
     10function createHUDSheet(name)
     11    local sheet = require("HUDSheet").new(name)
     12    _G[sheet.name] = sheet -- Global access required because of the event handlers
     13    return sheet
     14end
     15
    116function openDecisionPopup( text, callbackPtr )
    2     showGUI("DecisionPopup", false, true)
     17    showMenuSheet("DecisionPopup", false, true)
    318    DecisionPopup.setCallback(callbackPtr)
    419    DecisionPopup.setText(text)
     
    621
    722function openInfoPopup(text, functionPtr, closeButton, arguments)
    8     showGUI("InfoPopup", false, true)
     23    showMenuSheet("InfoPopup", false, true)
    924    InfoPopup.execute(functionPtr, arguments)
    1025    InfoPopup.setText(text)
Note: See TracChangeset for help on using the changeset viewer.