Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2016, 6:28:28 PM (9 years ago)
Author:
landauf
Message:

fixed some more errors: use 0.8-notation for images

Location:
code/branches/cegui0.8/data/gui/scripts
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8/data/gui/scripts/AudioMenu.lua

    r9348 r11124  
    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/cegui0.8/data/gui/scripts/DockingDialog.lua

    r8706 r11124  
    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/cegui0.8/data/gui/scripts/GameplayMenu.lua

    r8858 r11124  
    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/cegui0.8/data/gui/scripts/GraphicsMenu.lua

    r9051 r11124  
    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/cegui0.8/data/gui/scripts/HostMenu.lua

    r8079 r11124  
    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/cegui0.8/data/gui/scripts/MultiplayerMenu.lua

    r10622 r11124  
    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/cegui0.8/data/gui/scripts/PickupInventory.lua

    r9348 r11124  
    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/cegui0.8/data/gui/scripts/QuestGUI.lua

    r8891 r11124  
    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/cegui0.8/data/gui/scripts/ShipSelectionMenu.lua

    r9348 r11124  
    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/cegui0.8/data/gui/scripts/SingleplayerMenu.lua

    r10258 r11124  
    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/cegui0.8/data/gui/scripts/UndockingDialog.lua

    r9943 r11124  
    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.