Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2011, 5:31:27 PM (13 years ago)
Author:
landauf
Message:

added new graphics menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/usability/data/gui/scripts/SheetManager.lua

    r8013 r8018  
    88local mainMenuLoaded = false
    99orxonox.GUIManager:subscribeEventHelper(menuSheetsRoot, "KeyDown", "keyPressed")
     10orxonox.GUIManager:subscribeEventHelper(menuSheetsRoot, "Sized", "windowResized")
    1011
    1112-----------------------
     
    255256end
    256257
     258function windowResized(e)
     259    local sheet = activeMenuSheets[activeMenuSheets.size]
     260    if sheet then
     261        sheet.sheet:windowResized()
     262    end
     263end
     264
    257265function setBackgroundImage(imageSet, imageName)
    258266    guiMgr:setBackgroundImage(imageSet, imageName)
Note: See TracChangeset for help on using the changeset viewer.