Changeset 7343 for code/branches/notifications/data
- Timestamp:
- Sep 3, 2010, 11:30:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/data/gui/scripts/NotificationLayer.lua
r7342 r7343 9 9 local root = winMgr:getWindow("orxonox/NotificationLayer/Root") 10 10 local queue = winMgr:createWindow("MenuWidgets/Listbox", "orxonox/NotificationLayer/Root/Queue/" .. name) 11 queue:setProperty("Alpha", 0.3) 12 queue:setProperty("InheritsAlpha", "setFalse") 11 13 root:addChildWindow(queue) 12 14 … … 34 36 winMgr:destroyWindow(queue) 35 37 end 36 end37 38 function P.changePosition(name, xPos, yPos)39 local queue = P.nameToQueueHelper(name)40 if queue == nil then41 cout(0, "Queue is nil!")42 return43 end44 queue:setPosition(CEGUI.UVector2(CEGUI.UDim(tonumber(xPos), 0), CEGUI.UDim(tonumber(yPos), 0)))45 38 end 46 39 … … 90 83 end 91 84 85 function P.changePosition(name, xPos, yPos) 86 local queue = P.nameToQueueHelper(name) 87 if queue == nil then 88 cout(0, "Queue is nil!") 89 return 90 end 91 queue:setPosition(CEGUI.UVector2(CEGUI.UDim(tonumber(xPos), 0), CEGUI.UDim(tonumber(yPos), 0))) 92 queue:setWidth(CEGUI.UDim(1.0, -xPos)) 93 end 94 95 function P.changeSize(name, size) 96 local queue = P.nameToQueueHelper(name) 97 if queue == nil then 98 cout(0, "Queue is nil!") 99 return 100 end 101 queue:setHeight(CEGUI.UDim(0, P.queueHeightHelper(queue, size))) 102 end 103 92 104 function P.nameToQueueHelper(name) 93 105 local queue = nil
Note: See TracChangeset
for help on using the changeset viewer.