Changeset 8703 for code/branches/presentation/data
- Timestamp:
- Jun 13, 2011, 1:49:05 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/data/gui/scripts/NotificationLayer.lua
r8637 r8703 62 62 end 63 63 64 notification = string.gsub(notification, "%[", "\\%[") -- escape '[' which is used to format text since cegui 0.7 65 64 66 local item = winMgr:createWindow("MenuWidgets/StaticText", "orxonox/NotificationLayer/Root/Queue/" .. queueName .. "/" .. queue.last) 65 67 item:setText(notification) … … 250 252 --local item = tolua.cast(item, "CEGUI::ListboxTextItem") 251 253 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 253 256 item:setFont("BlueHighway-" .. queue.fontSize) 254 257 else
Note: See TracChangeset
for help on using the changeset viewer.