Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 13, 2011, 1:49:05 AM (13 years ago)
Author:
landauf
Message:

two fixes for cegui 0.7

sometimes there's an exception while closing orxonox, but that's a bug in cegui: http://www.cegui.org.uk/mantis/view.php?id=423

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/data/gui/scripts/NotificationLayer.lua

    r8637 r8703  
    6262    end
    6363
     64    notification = string.gsub(notification, "%[", "\\%[") -- escape '[' which is used to format text since cegui 0.7
     65
    6466    local item = winMgr:createWindow("MenuWidgets/StaticText", "orxonox/NotificationLayer/Root/Queue/" .. queueName .. "/" .. queue.last)
    6567    item:setText(notification)
     
    250252    --local item = tolua.cast(item, "CEGUI::ListboxTextItem")
    251253    local fontMgr = CEGUI.FontManager:getSingleton()
    252     if fontMgr:isFontPresent("BlueHighway-" .. queue.fontSize) then
     254    if (fontMgr["isFontPresent"] and fontMgr:isFontPresent("BlueHighway-" .. queue.fontSize)) or -- cegui 0.6
     255        (fontMgr["isDefined"] and fontMgr:isDefined("BlueHighway-" .. queue.fontSize)) then -- cegui 0.7
    253256        item:setFont("BlueHighway-" .. queue.fontSize)
    254257    else
Note: See TracChangeset for help on using the changeset viewer.