Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2010, 2:51:39 PM (15 years ago)
Author:
rgrieder
Message:

Removed last remains of hard coded Taharez references:
Refer to the ImageSets with menuImageSet or hudImageSet from now on (in lua scripts).
(and hope that the image you're looking for is named like that in every look…)

Location:
code/branches/gamestate/data/gui/scripts
Files:
6 edited

Legend:

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

    r6459 r6571  
    4040    for k,v in pairs(themeList) do
    4141        item = CEGUI.createListboxTextItem(v)
    42         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     42        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    4343        CEGUI.toListbox(listboxwindow):addItem(item)
    4444    end
  • code/branches/gamestate/data/gui/scripts/GameplayMenu.lua

    r6459 r6571  
    1717    for k,v in pairs(themeList) do
    1818        item = CEGUI.createListboxTextItem(v)
    19         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     19        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    2020        CEGUI.toCombobox(dropdown):addItem(item)
    2121    end
  • code/branches/gamestate/data/gui/scripts/GraphicsMenu.lua

    r6459 r6571  
    5959    for k,v in pairs(resolutionList) do
    6060        item = CEGUI.createListboxTextItem(v)
    61         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     61        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    6262        CEGUI.toListbox(listboxwindow):addItem(item)
    6363    end
  • code/branches/gamestate/data/gui/scripts/InitialiseGUI.lua

    r6569 r6571  
    1717-- of the menus or the HUD independently
    1818schemeMgr:loadScheme("TaharezMenuWidgets.scheme")
     19menuImageSet = "TaharezLook"
    1920schemeMgr:loadScheme("TaharezHUDWidgets.scheme")
     21hudImageSet = "TaharezLook"
    2022
    2123-- Just a remaining test hack
    2224schemeMgr:loadScheme("OrxonoxGUIScheme.scheme")
    2325
    24 system:setDefaultMouseCursor("TaharezLook", "MouseArrow")
     26system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
    2527system:setDefaultFont("BlueHighway-12")
    2628system:setDefaultTooltip("MenuWidgets/Tooltip")
  • code/branches/gamestate/data/gui/scripts/MultiplayerMenu.lua

    r6459 r6571  
    2727    for k,v in pairs(levelList) do
    2828        item = CEGUI.createListboxTextItem(v)
    29         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     29        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    3030        CEGUI.toListbox(listbox):addItem(item)
    3131        if v .. ".oxw" == preselect then
  • code/branches/gamestate/data/gui/scripts/SingleplayerMenu.lua

    r6459 r6571  
    2727    for k,v in pairs(levelList) do
    2828        item = CEGUI.createListboxTextItem(v)
    29         item:setSelectionBrushImage("TaharezLook", "MultiListSelectionBrush")
     29        item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
    3030        CEGUI.toListbox(listbox):addItem(item)
    3131        if v .. ".oxw" == preselect then
Note: See TracChangeset for help on using the changeset viewer.