Changeset 7354 for code/branches/notifications/data
- Timestamp:
- Sep 5, 2010, 12:42:54 PM (14 years ago)
- Location:
- code/branches/notifications/data
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/notifications/data/gui/scripts/NotificationLayer.lua
r7351 r7354 6 6 P.nameList = {} 7 7 P.visible = nil 8 P.editMode = false 9 P.editList = {} 8 10 9 11 function P.createQueue(name, size) 10 12 local root = winMgr:getWindow("orxonox/NotificationLayer/Root") 11 13 local queue = winMgr:createWindow("MenuWidgets/Listbox", "orxonox/NotificationLayer/Root/Queue/" .. name) 12 queue:setProperty("BackgroundColor", " 66FFFFFF")14 queue:setProperty("BackgroundColor", "00FFFFFF") 13 15 root:addChildWindow(queue) 14 16 … … 123 125 end 124 126 127 function P.enterEditMode() 128 P.editMode = true 129 130 local root = winMgr:getWindow("orxonox/NotificationLayer/Root") 131 --Replace all queues with FrameWindows 132 for k,v in pairs(P.queueList) do 133 if v ~= nil then 134 root:removeChildWindow(v) 135 local frame = winMgr:createWindow("MenuWidgets/FrameWindow", "orxonox/NotificationLayer/Root/EditMode/" .. P.nameList(k)) 136 frame:setArea(v:getArea()) 137 P.editList[k] = frame 138 end 139 end 140 end 141 142 function P.leaveEditMode() 143 P.editMode = false 144 145 local root = winMgr:getWindow("orxonox/NotificationLayer/Root") 146 --Replace all queues with FrameWindows 147 for k,v in pairs(P.queueList) do 148 if v ~= nil then 149 root:addChildWindow(v) 150 v:setArea(P.editList[k]:getArea()) 151 winMgr:destroyWindow(P.editList[k]) 152 P.editList[k] = nil 153 end 154 end 155 end 156 157 function P.onHide() 158 if P.editMode then 159 P.leaveEditMode() 160 end 161 end 162 125 163 function P.nameToQueueHelper(name) 126 164 local queue = nil -
code/branches/notifications/data/levels/Fight in our Back.oxw
r7163 r7354 7 7 include("templates/spaceship_Transporter.oxt") 8 8 ?> 9 10 <NotificationQueue11 name = "notification"12 position = "0.40, 0.05"13 font = "VeraMono"14 textsize = 0.02015 length = 316 width = 5017 />18 9 19 10 <!--*****************************************************************************************************************************************************************************************--> -
code/branches/notifications/data/levels/Quest_PirateAttack.oxw
r7163 r7354 19 19 dofile("includes/CuboidSpaceStation.lua") 20 20 ?> 21 22 <NotificationQueue23 name = "notification"24 position = "0.40, 0.05"25 font = "VeraMono"26 textsize = 0.02027 length = 328 width = 5029 />30 31 32 21 33 22 <Level -
code/branches/notifications/data/levels/old/princessaeryn.oxw
r6417 r7354 8 8 dofile("includes/CuboidSpaceStation.lua") 9 9 ?> 10 11 <NotificationQueue12 name = "notification"13 position = "1.0, 1.0"14 targets = "questsystem"15 />16 10 17 11 <Level -
code/branches/notifications/data/levels/old/questsystem.oxw
r6417 r7354 4 4 include("templates/spaceship_assff.oxt") 5 5 ?> 6 7 <NotificationQueue8 name = "notification"9 position = "1.0, 1.0"10 targets = "all"11 />12 6 13 7 <Level -
code/branches/notifications/data/levels/princessaeryn.oxw
r7163 r7354 14 14 description = "The Tale of Princess Aeryn" 15 15 > 16 17 <NotificationQueue18 name = "notification"19 position = "0.55, 0.05"20 font = "VeraMono"21 textsize = 0.02022 length = 323 width = 5024 />25 16 26 17 <templates> -
code/branches/notifications/data/levels/tutorial.oxw
r7319 r7354 13 13 <Template link=lodtemplate_default /> 14 14 </templates> 15 16 <NotificationQueue17 name = "notification"18 position = "0.05, 0.05"19 font = "VeraMono"20 textsize = 0.02021 length = 322 width = 5023 />24 15 25 16 <Scene
Note: See TracChangeset
for help on using the changeset viewer.