Changeset 11211 for code/branches/ogre1.9/data/gui/scripts
- Timestamp:
- Jul 5, 2016, 11:46:10 PM (8 years ago)
- Location:
- code/branches/ogre1.9
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ogre1.9
- Property svn:mergeinfo changed
/code/branches/cegui0.8 (added) merged: 11110,11118,11121,11124
- Property svn:mergeinfo changed
-
code/branches/ogre1.9/data/gui/scripts/AudioMenu.lua
r9348 r11211 37 37 for k,v in pairs(themeList) do 38 38 item = CEGUI.createListboxTextItem(v) 39 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")39 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 40 40 CEGUI.toListbox(listboxwindow):addItem(item) 41 41 end -
code/branches/ogre1.9/data/gui/scripts/DockingDialog.lua
r8706 r11211 42 42 for k in pairs(P.docks) do 43 43 local item = CEGUI.createListboxTextItem("Dock " .. k) 44 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")44 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 45 45 listbox:addItem(item) 46 46 if k == 1 then -
code/branches/ogre1.9/data/gui/scripts/GUISheet.lua
r8862 r11211 66 66 function P:load() 67 67 -- Load the layout that describes the sheet 68 self.window = winMgr:load WindowLayout(self.name .. ".layout")68 self.window = winMgr:loadLayoutFromFile(self.name .. ".layout") 69 69 if self.window == nil then 70 70 error("Could not load layout file for GUI sheet '"..self.name.."'") -
code/branches/ogre1.9/data/gui/scripts/GameplayMenu.lua
r8858 r11211 11 11 for k,v in pairs(themeList) do 12 12 item = CEGUI.createListboxTextItem(v) 13 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")13 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 14 14 CEGUI.toCombobox(dropdown):addItem(item) 15 15 end -
code/branches/ogre1.9/data/gui/scripts/GraphicsMenu.lua
r9051 r11211 39 39 for k,v in pairs(P.resolutionList) do 40 40 local item = CEGUI.createListboxTextItem(v) 41 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")41 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 42 42 resolutionCombobox:addItem(item) 43 43 end … … 49 49 for k,v in pairs(P.schemeList) do 50 50 local item = CEGUI.createListboxTextItem(v) 51 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")51 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 52 52 themeCombobox:addItem(item) 53 53 end … … 59 59 for k,v in pairs(P.fsaaList) do 60 60 local item = CEGUI.createListboxTextItem(v) 61 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")61 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 62 62 fsaaCombobox:addItem(item) 63 63 end … … 69 69 for k,v in pairs(P.particleLodList) do 70 70 local item = CEGUI.createListboxTextItem(v) 71 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")71 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 72 72 particleLodCombobox:addItem(item) 73 73 end -
code/branches/ogre1.9/data/gui/scripts/HostMenu.lua
r8079 r11211 73 73 for k,v in pairs(P.levelList) do 74 74 local item = CEGUI.createListboxTextItem(v:getName()) 75 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")75 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 76 76 listbox:addItem(item) 77 77 if v:getXMLFilename() == preselect then -
code/branches/ogre1.9/data/gui/scripts/InitialiseGUI.lua
r8351 r11211 8 8 -- Load all required skins 9 9 --schemeMgr:create("TaharezGreenLook.scheme") 10 schemeMgr:create (scheme .. "Look.scheme")10 schemeMgr:createFromFile(scheme .. "Look.scheme") 11 11 --schemeMgr:create("TaharezLook.scheme") 12 12 --schemeMgr:create("WindowsLook.scheme") … … 21 21 --schemeMgr:create("TaharezGreenHUDWidgets.scheme") 22 22 --hudImageSet = "TaharezGreenLook" 23 schemeMgr:create (scheme .. "MenuWidgets.scheme")23 schemeMgr:createFromFile(scheme .. "MenuWidgets.scheme") 24 24 menuImageSet = scheme .. "Look" 25 schemeMgr:create (scheme .. "HUDWidgets.scheme")25 schemeMgr:createFromFile(scheme .. "HUDWidgets.scheme") 26 26 hudImageSet = scheme .. "Look" 27 27 28 28 -- Just a remaining test hack 29 schemeMgr:create ("OrxonoxGUIScheme.scheme")29 schemeMgr:createFromFile("OrxonoxGUIScheme.scheme") 30 30 31 local system = CEGUI.System:getSingleton() 32 system: setDefaultMouseCursor(menuImageSet, "MouseArrow")31 local system = CEGUI.System:getSingleton():getDefaultGUIContext() 32 system:getMouseCursor():setDefaultImage(menuImageSet .. "/MouseArrow") 33 33 system:setDefaultFont("BlueHighway-12") 34 system:setDefaultTooltip ("MenuWidgets/Tooltip")34 system:setDefaultTooltipType("MenuWidgets/Tooltip") 35 35 36 36 -- Convenience function and additional tools -
code/branches/ogre1.9/data/gui/scripts/MainMenu.lua
r8079 r11211 7 7 --buttons are arranged in a 6x1 Matrix (list) 8 8 P:setButton(1, 1, { 9 ["button"] = winMgr:getWindow("orxonox/QuickGameTestButton"),9 ["button"] = P.window:getChild("QuickGameTestButton"), 10 10 ["callback"] = P.QuickGameTestButton_clicked 11 11 }) 12 12 13 13 P:setButton(2, 1, { 14 ["button"] = winMgr:getWindow("orxonox/SingleplayerButton"),14 ["button"] = P.window:getChild("SingleplayerButton"), 15 15 ["callback"] = P.SingleplayerButton_clicked 16 16 }) 17 17 18 18 P:setButton(3, 1, { 19 ["button"] = winMgr:getWindow("orxonox/MultiplayerButton"),19 ["button"] = P.window:getChild("MultiplayerButton"), 20 20 ["callback"] = P.MultiplayerButton_clicked 21 21 }) 22 22 23 23 P:setButton(4, 1, { 24 ["button"] = winMgr:getWindow("orxonox/SettingsButton"),24 ["button"] = P.window:getChild("SettingsButton"), 25 25 ["callback"] = P.SettingsButton_clicked 26 26 }) 27 27 28 28 P:setButton(5, 1, { 29 ["button"] = winMgr:getWindow("orxonox/CreditsButton"),29 ["button"] = P.window:getChild("CreditsButton"), 30 30 ["callback"] = P.CreditsButton_clicked 31 31 }) 32 32 33 33 P:setButton(6, 1, { 34 ["button"] = winMgr:getWindow("orxonox/ExitButton"),34 ["button"] = P.window:getChild("ExitButton"), 35 35 ["callback"] = P.ExitButton_clicked 36 36 }) -
code/branches/ogre1.9/data/gui/scripts/MultiplayerMenu.lua
r10622 r11211 115 115 item:setID(index) 116 116 index = index + 1 117 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")117 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 118 118 CEGUI.toListbox(listbox):addItem(item) 119 119 end … … 152 152 item:setID(index) 153 153 index = index + 1 154 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")154 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 155 155 CEGUI.toListbox(listbox):addItem(item) 156 156 end -
code/branches/ogre1.9/data/gui/scripts/PickupInventory.lua
r9348 r11211 117 117 118 118 local image = winMgr:createWindow("MenuWidgets/StaticImage", name .. "/Image") 119 image:setProperty("Image", " set:PickupInventory image:" .. representation:getInventoryRepresentation())119 image:setProperty("Image", "PickupInventory/" .. representation:getInventoryRepresentation()) 120 120 image:setProperty("BackgroundEnabled", "set:False") 121 121 image:setProperty("FrameEnabled", "set:True") … … 218 218 219 219 local image = winMgr:createWindow("MenuWidgets/StaticImage", name .. "/Image") 220 image:setProperty("Image", " set:PickupInventory image:" .. representation:getInventoryRepresentation())220 image:setProperty("Image", "PickupInventory/" .. representation:getInventoryRepresentation()) 221 221 image:setProperty("BackgroundEnabled", "set:False") 222 222 image:setProperty("FrameEnabled", "set:True") -
code/branches/ogre1.9/data/gui/scripts/QuestGUI.lua
r8891 r11211 104 104 if P.showActive == quest:isActive(P.player) then 105 105 local item = CEGUI.createListboxTextItem(P.questManager:getDescription(quest):getTitle()) 106 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")106 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 107 107 list:addItem(item) 108 108 table.insert(P.quests, quest) … … 141 141 local quest = P.questManager:getSubQuest(quest, P.player, i) 142 142 local item = CEGUI.createListboxTextItem(P.questManager:getDescription(quest):getTitle()) 143 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")143 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 144 144 list:addItem(item) 145 145 table.insert(P.subquests, quest) -
code/branches/ogre1.9/data/gui/scripts/SheetManager.lua
r11052 r11211 1 1 -- SheetManager.lua 2 2 3 local cursor = CEGUI.MouseCursor:getSingleton() 3 local cursor = CEGUI.System:getSingleton():getDefaultGUIContext():getMouseCursor() 4 --local cursor = CEGUI.MouseCursor:getSingleton() 4 5 local loadedSheets = {} 5 6 local activeMenuSheets = {size = 0, topSheetTuple = nil} … … 107 108 108 109 -- Add sheet to the root window 109 menuSheetsRoot:addChild Window(menuSheet.window)110 menuSheetsRoot:addChild(menuSheet.window) 110 111 111 112 -- If sheet is the MainMenu … … 177 178 178 179 -- Remove sheet with its tuple from the table 179 menuSheetsRoot:removeChild Window(sheetTuple.sheet.window)180 menuSheetsRoot:removeChild(sheetTuple.sheet.window) 180 181 table.remove(activeMenuSheets, table.findIndex(activeMenuSheets, sheetTuple)) 181 182 activeMenuSheets[name] = nil -
code/branches/ogre1.9/data/gui/scripts/ShipSelectionMenu.lua
r9348 r11211 34 34 --if tag == nil or v:hasStartingShip(tag) then 35 35 local item = CEGUI.createListboxTextItem(v) 36 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")36 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 37 37 listbox:addItem(item) 38 38 table.insert(tabIndexes, k) … … 88 88 --local imageName = selectedlevel:getScreenshot() 89 89 -- set the screenshot and the description for the selected level 90 --levelImage:setProperty("Image", "set:"..levelXMLFilename..imageName.." image:full_image")90 --levelImage:setProperty("Image", levelXMLFilename..imageName.."/full_image") 91 91 --levelDescription:setText(level:getDescription()) 92 92 -- only enable config button for "gametype" levels -
code/branches/ogre1.9/data/gui/scripts/SingleplayerMenu.lua
r10258 r11211 87 87 if tag == nil or v:hasTag(tag) then 88 88 local item = CEGUI.createListboxTextItem(v:getName()) 89 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")89 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 90 90 listbox:addItem(item) 91 91 table.insert(tabIndexes, k) … … 130 130 local imageName = level:getScreenshot() 131 131 -- set the screenshot and the description for the selected level 132 levelImage:setProperty("Image", "set:"..levelXMLFilename..imageName.." image:full_image")132 levelImage:setProperty("Image", levelXMLFilename..imageName.."/full_image") 133 133 levelDescription:setText(level:getDescription()) 134 134 -- only enable config button for "gametype" levels -
code/branches/ogre1.9/data/gui/scripts/UndockingDialog.lua
r9943 r11211 42 42 for k in pairs(P.docks) do 43 43 local item = CEGUI.createListboxTextItem("Dock " .. k) 44 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")44 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 45 45 listbox:addItem(item) 46 46 if k == 1 then
Note: See TracChangeset
for help on using the changeset viewer.