Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9049 for code/trunk


Ignore:
Timestamp:
Mar 21, 2012, 6:36:31 PM (13 years ago)
Author:
dafrick
Message:

Fixing problem due to CEGUI version conflict.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/SingleplayerMenu.lua

    r9016 r9049  
    5151            local imageName = level:getScreenshot()
    5252            if imageName ~= "" then
    53                 CEGUI.ImagesetManager:getSingleton():createImagesetFromImageFile(levelXMLFilename..imageName, imageName)
     53                if guiMgr:usingOldCEGUI() then
     54                    CEGUI.ImagesetManager:getSingleton():createImagesetFromImageFile(levelXMLFilename..imageName, imageName)
     55                else
     56                    CEGUI.ImagesetManager:getSingleton():createFromImageFile(levelXMLFilename..imageName, imageName)
     57                end
    5458            else
    55                 CEGUI.ImagesetManager:getSingleton():createImagesetFromImageFile(levelXMLFilename..imageName, "noscreenshot.png")
     59                if guiMgr:usingOldCEGUI() then
     60                    CEGUI.ImagesetManager:getSingleton():createImagesetFromImageFile(levelXMLFilename..imageName, "noscreenshot.png")
     61                else
     62                    CEGUI.ImagesetManager:getSingleton():createFromImageFile(levelXMLFilename..imageName, "noscreenshot.png")
     63                end
    5664            end
    5765            table.insert(P.levelList, level)
Note: See TracChangeset for help on using the changeset viewer.