Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 5, 2016, 11:46:10 PM (8 years ago)
Author:
bknecht
Message:

Merging cegui0.8 branch into ogre1.9 branch

Location:
code/branches/ogre1.9
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ogre1.9

  • code/branches/ogre1.9/data/gui/scripts/AudioMenu.lua

    r9348 r11211  
    3737    for k,v in pairs(themeList) do
    3838        item = CEGUI.createListboxTextItem(v)
    39         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     39        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    4040        CEGUI.toListbox(listboxwindow):addItem(item)
    4141    end
  • code/branches/ogre1.9/data/gui/scripts/DockingDialog.lua

    r8706 r11211  
    4242    for k in pairs(P.docks) do
    4343        local item = CEGUI.createListboxTextItem("Dock " .. k)
    44         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     44        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    4545        listbox:addItem(item)
    4646        if k == 1 then
  • code/branches/ogre1.9/data/gui/scripts/GUISheet.lua

    r8862 r11211  
    6666function P:load()
    6767    -- Load the layout that describes the sheet
    68     self.window = winMgr:loadWindowLayout(self.name .. ".layout")
     68    self.window = winMgr:loadLayoutFromFile(self.name .. ".layout")
    6969    if self.window == nil then
    7070        error("Could not load layout file for GUI sheet '"..self.name.."'")
  • code/branches/ogre1.9/data/gui/scripts/GameplayMenu.lua

    r8858 r11211  
    1111    for k,v in pairs(themeList) do
    1212        item = CEGUI.createListboxTextItem(v)
    13         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     13        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    1414        CEGUI.toCombobox(dropdown):addItem(item)
    1515    end
  • code/branches/ogre1.9/data/gui/scripts/GraphicsMenu.lua

    r9051 r11211  
    3939    for k,v in pairs(P.resolutionList) do
    4040        local item = CEGUI.createListboxTextItem(v)
    41         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     41        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    4242        resolutionCombobox:addItem(item)
    4343    end
     
    4949    for k,v in pairs(P.schemeList) do
    5050        local item = CEGUI.createListboxTextItem(v)
    51         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     51        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    5252        themeCombobox:addItem(item)
    5353    end
     
    5959    for k,v in pairs(P.fsaaList) do
    6060        local item = CEGUI.createListboxTextItem(v)
    61         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     61        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    6262        fsaaCombobox:addItem(item)
    6363    end
     
    6969    for k,v in pairs(P.particleLodList) do
    7070        local item = CEGUI.createListboxTextItem(v)
    71         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     71        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    7272        particleLodCombobox:addItem(item)
    7373    end
  • code/branches/ogre1.9/data/gui/scripts/HostMenu.lua

    r8079 r11211  
    7373    for k,v in pairs(P.levelList) do
    7474        local item = CEGUI.createListboxTextItem(v:getName())
    75         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     75        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    7676        listbox:addItem(item)
    7777        if v:getXMLFilename() == preselect then
  • code/branches/ogre1.9/data/gui/scripts/InitialiseGUI.lua

    r8351 r11211  
    88-- Load all required skins
    99--schemeMgr:create("TaharezGreenLook.scheme")
    10 schemeMgr:create(scheme .. "Look.scheme")
     10schemeMgr:createFromFile(scheme .. "Look.scheme")
    1111--schemeMgr:create("TaharezLook.scheme")
    1212--schemeMgr:create("WindowsLook.scheme")
     
    2121--schemeMgr:create("TaharezGreenHUDWidgets.scheme")
    2222--hudImageSet = "TaharezGreenLook"
    23 schemeMgr:create(scheme .. "MenuWidgets.scheme")
     23schemeMgr:createFromFile(scheme .. "MenuWidgets.scheme")
    2424menuImageSet = scheme .. "Look"
    25 schemeMgr:create(scheme .. "HUDWidgets.scheme")
     25schemeMgr:createFromFile(scheme .. "HUDWidgets.scheme")
    2626hudImageSet = scheme .. "Look"
    2727
    2828-- Just a remaining test hack
    29 schemeMgr:create("OrxonoxGUIScheme.scheme")
     29schemeMgr:createFromFile("OrxonoxGUIScheme.scheme")
    3030
    31 local system = CEGUI.System:getSingleton()
    32 system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
     31local system = CEGUI.System:getSingleton():getDefaultGUIContext()
     32system:getMouseCursor():setDefaultImage(menuImageSet .. "/MouseArrow")
    3333system:setDefaultFont("BlueHighway-12")
    34 system:setDefaultTooltip("MenuWidgets/Tooltip")
     34system:setDefaultTooltipType("MenuWidgets/Tooltip")
    3535
    3636-- Convenience function and additional tools
  • code/branches/ogre1.9/data/gui/scripts/MainMenu.lua

    r8079 r11211  
    77    --buttons are arranged in a 6x1 Matrix (list)
    88    P:setButton(1, 1, {
    9             ["button"] = winMgr:getWindow("orxonox/QuickGameTestButton"),
     9            ["button"] = P.window:getChild("QuickGameTestButton"),
    1010            ["callback"]  = P.QuickGameTestButton_clicked
    1111    })
    1212
    1313    P:setButton(2, 1, {
    14             ["button"] = winMgr:getWindow("orxonox/SingleplayerButton"),
     14            ["button"] = P.window:getChild("SingleplayerButton"),
    1515            ["callback"]  = P.SingleplayerButton_clicked
    1616    })
    1717
    1818    P:setButton(3, 1, {
    19             ["button"] = winMgr:getWindow("orxonox/MultiplayerButton"),
     19            ["button"] = P.window:getChild("MultiplayerButton"),
    2020            ["callback"]  = P.MultiplayerButton_clicked
    2121    })
    2222
    2323    P:setButton(4, 1, {
    24             ["button"] = winMgr:getWindow("orxonox/SettingsButton"),
     24            ["button"] = P.window:getChild("SettingsButton"),
    2525            ["callback"]  = P.SettingsButton_clicked
    2626    })
    2727
    2828    P:setButton(5, 1, {
    29             ["button"] = winMgr:getWindow("orxonox/CreditsButton"),
     29            ["button"] = P.window:getChild("CreditsButton"),
    3030            ["callback"]  = P.CreditsButton_clicked
    3131    })
    3232
    3333    P:setButton(6, 1, {
    34             ["button"] = winMgr:getWindow("orxonox/ExitButton"),
     34            ["button"] = P.window:getChild("ExitButton"),
    3535            ["callback"]  = P.ExitButton_clicked
    3636    })
  • code/branches/ogre1.9/data/gui/scripts/MultiplayerMenu.lua

    r10622 r11211  
    115115            item:setID(index)
    116116            index = index + 1
    117             item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     117            item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    118118            CEGUI.toListbox(listbox):addItem(item)
    119119        end
     
    152152            item:setID(index)
    153153            index = index + 1
    154             item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     154            item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    155155            CEGUI.toListbox(listbox):addItem(item)
    156156        end
  • code/branches/ogre1.9/data/gui/scripts/PickupInventory.lua

    r9348 r11211  
    117117
    118118    local image = winMgr:createWindow("MenuWidgets/StaticImage", name .. "/Image")
    119     image:setProperty("Image", "set:PickupInventory image:" .. representation:getInventoryRepresentation())
     119    image:setProperty("Image", "PickupInventory/" .. representation:getInventoryRepresentation())
    120120    image:setProperty("BackgroundEnabled", "set:False")
    121121    image:setProperty("FrameEnabled", "set:True")
     
    218218   
    219219    local image = winMgr:createWindow("MenuWidgets/StaticImage", name .. "/Image")
    220     image:setProperty("Image", "set:PickupInventory image:" .. representation:getInventoryRepresentation())
     220    image:setProperty("Image", "PickupInventory/" .. representation:getInventoryRepresentation())
    221221    image:setProperty("BackgroundEnabled", "set:False")
    222222    image:setProperty("FrameEnabled", "set:True")
  • code/branches/ogre1.9/data/gui/scripts/QuestGUI.lua

    r8891 r11211  
    104104    if P.showActive == quest:isActive(P.player) then
    105105        local item = CEGUI.createListboxTextItem(P.questManager:getDescription(quest):getTitle())
    106         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     106        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    107107        list:addItem(item)
    108108        table.insert(P.quests, quest)
     
    141141            local quest = P.questManager:getSubQuest(quest, P.player, i)
    142142            local item = CEGUI.createListboxTextItem(P.questManager:getDescription(quest):getTitle())
    143             item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     143            item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    144144            list:addItem(item)
    145145            table.insert(P.subquests, quest)
  • code/branches/ogre1.9/data/gui/scripts/SheetManager.lua

    r11052 r11211  
    11-- SheetManager.lua
    22
    3 local cursor = CEGUI.MouseCursor:getSingleton()
     3local cursor = CEGUI.System:getSingleton():getDefaultGUIContext():getMouseCursor()
     4--local cursor = CEGUI.MouseCursor:getSingleton()
    45local loadedSheets = {}
    56local activeMenuSheets = {size = 0, topSheetTuple = nil}
     
    107108
    108109    -- Add sheet to the root window
    109     menuSheetsRoot:addChildWindow(menuSheet.window)
     110    menuSheetsRoot:addChild(menuSheet.window)
    110111
    111112    -- If sheet is the MainMenu
     
    177178
    178179    -- Remove sheet with its tuple from the table
    179     menuSheetsRoot:removeChildWindow(sheetTuple.sheet.window)
     180    menuSheetsRoot:removeChild(sheetTuple.sheet.window)
    180181    table.remove(activeMenuSheets, table.findIndex(activeMenuSheets, sheetTuple))
    181182    activeMenuSheets[name] = nil
  • code/branches/ogre1.9/data/gui/scripts/ShipSelectionMenu.lua

    r9348 r11211  
    3434        --if tag == nil or v:hasStartingShip(tag) then
    3535            local item = CEGUI.createListboxTextItem(v)
    36             item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     36            item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    3737            listbox:addItem(item)
    3838            table.insert(tabIndexes, k)
     
    8888        --local imageName = selectedlevel:getScreenshot()
    8989        -- 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")
    9191        --levelDescription:setText(level:getDescription())
    9292        -- only enable config button for "gametype" levels
  • code/branches/ogre1.9/data/gui/scripts/SingleplayerMenu.lua

    r10258 r11211  
    8787        if tag == nil or v:hasTag(tag) then
    8888            local item = CEGUI.createListboxTextItem(v:getName())
    89             item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     89            item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    9090            listbox:addItem(item)
    9191            table.insert(tabIndexes, k)
     
    130130        local imageName = level:getScreenshot()
    131131        -- 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")
    133133        levelDescription:setText(level:getDescription())
    134134        -- only enable config button for "gametype" levels
  • code/branches/ogre1.9/data/gui/scripts/UndockingDialog.lua

    r9943 r11211  
    4242    for k in pairs(P.docks) do
    4343        local item = CEGUI.createListboxTextItem("Dock " .. k)
    44         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     44        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    4545        listbox:addItem(item)
    4646        if k == 1 then
Note: See TracChangeset for help on using the changeset viewer.