Changeset 11795 for code/branches/cegui0.8_ogre1.9/data/gui
- Timestamp:
- Feb 21, 2018, 12:03:52 AM (7 years ago)
- Location:
- code/branches/cegui0.8_ogre1.9
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cegui0.8_ogre1.9
- Property svn:mergeinfo changed
/code/branches/cegui0.8 (added) merged: 11110,11118,11121,11124 /code/branches/ogre1.9 (added) merged: 11125-11132,11211,11453-11454
- Property svn:mergeinfo changed
-
code/branches/cegui0.8_ogre1.9/data/gui/configs/CEGUIConfig.xsd
r8079 r11795 1 1 <?xml version="1.0"?> 2 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> 3 4 3 <xsd:element name="CEGUIConfig" type="CEGUIConfigType"/> 5 4 6 <xsd:simpleType name="LogLevel"> 5 <xsd:complexType name="CEGUIConfigType"> 6 <xsd:sequence> 7 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 8 <xsd:element name="Logging" type="loggingType" /> 9 <xsd:element name="AutoLoad" type="autoLoadType" /> 10 <xsd:element name="ResourceDirectory" type="resourceDirectoryType" /> 11 <xsd:element name="DefaultResourceGroup" type="defaultResourceGroupType" /> 12 <xsd:element name="Scripting" type="scriptingType" /> 13 <xsd:element name="DefaultXMLParser" type="defaultObjectType" /> 14 <xsd:element name="DefaultImageCodec" type="defaultObjectType" /> 15 <xsd:element name="DefaultFont" type="defaultObjectType" /> 16 <xsd:element name="DefaultMouseCursor" type="defaultMouseCursorType" /> 17 <xsd:element name="DefaultTooltip" type="defaultObjectType" /> 18 <xsd:element name="DefaultGUISheet" type="defaultObjectType" /> 19 </xsd:choice> 20 </xsd:sequence> 21 </xsd:complexType> 22 23 <xsd:complexType name="loggingType"> 24 <xsd:simpleContent> 25 <xsd:extension base="xsd:string"> 26 <xsd:attribute name="filename" type="xsd:string" use="optional" default="CEGUI.log" /> 27 <xsd:attribute name="level" type="logLevel" use="optional" default="Standard" /> 28 </xsd:extension> 29 </xsd:simpleContent> 30 </xsd:complexType> 31 32 <xsd:complexType name="autoLoadType"> 33 <xsd:simpleContent> 34 <xsd:extension base="xsd:string"> 35 <xsd:attribute name="type" type="resourceType" use="required" /> 36 <xsd:attribute name="group" type="xsd:string" use="optional" default="" /> 37 <xsd:attribute name="pattern" type="xsd:string" use="optional" default="*" /> 38 </xsd:extension> 39 </xsd:simpleContent> 40 </xsd:complexType> 41 42 <xsd:complexType name="resourceDirectoryType"> 43 <xsd:simpleContent> 44 <xsd:extension base="xsd:string"> 45 <xsd:attribute name="group" type="xsd:string" use="required" /> 46 <xsd:attribute name="directory" type="xsd:string" use="required" /> 47 </xsd:extension> 48 </xsd:simpleContent> 49 </xsd:complexType> 50 51 <xsd:complexType name="defaultResourceGroupType"> 52 <xsd:simpleContent> 53 <xsd:extension base="xsd:string"> 54 <xsd:attribute name="type" type="resourceType" use="optional" default="Default" /> 55 <xsd:attribute name="group" type="xsd:string" use="required" /> 56 </xsd:extension> 57 </xsd:simpleContent> 58 </xsd:complexType> 59 60 <xsd:complexType name="scriptingType"> 61 <xsd:simpleContent> 62 <xsd:extension base="xsd:string"> 63 <xsd:attribute name="initScript" type="xsd:string" use="optional" default="" /> 64 <xsd:attribute name="terminateScript" type="xsd:string" use="optional" default="" /> 65 </xsd:extension> 66 </xsd:simpleContent> 67 </xsd:complexType> 68 69 <xsd:complexType name="defaultObjectType"> 70 <xsd:simpleContent> 71 <xsd:extension base="xsd:string"> 72 <xsd:attribute name="name" type="xsd:string" use="required" /> 73 </xsd:extension> 74 </xsd:simpleContent> 75 </xsd:complexType> 76 77 <xsd:complexType name="defaultMouseCursorType"> 78 <xsd:simpleContent> 79 <xsd:extension base="xsd:string"> 80 <xsd:attribute name="imageset" type="xsd:string" use="required" /> 81 <xsd:attribute name="image" type="xsd:string" use="required" /> 82 </xsd:extension> 83 </xsd:simpleContent> 84 </xsd:complexType> 85 86 <xsd:simpleType name="logLevel"> 7 87 <xsd:restriction base="xsd:string"> 8 88 <xsd:enumeration value="Errors"/> … … 13 93 </xsd:simpleType> 14 94 15 <xsd:complexType name="CEGUIConfigType"> 16 <xsd:attribute name="Logfile" type="xsd:string" use="optional" default=""/> 17 <xsd:attribute name="Scheme" type="xsd:string" use="optional" default=""/> 18 <xsd:attribute name="DefaultFont" type="xsd:string" use="optional" default=""/> 19 <xsd:attribute name="Layout" type="xsd:string" use="optional" default=""/> 20 <xsd:attribute name="InitScript" type="xsd:string" use="optional" default=""/> 21 <xsd:attribute name="TerminateScript" type="xsd:string" use="optional" default=""/> 22 <xsd:attribute name="DefaultResourceGroup" type="xsd:string" use="optional" default="" /> 23 <xsd:attribute name="LoggingLevel" type="LogLevel" use="optional" default="Standard" /> 24 </xsd:complexType> 95 <xsd:simpleType name="resourceType"> 96 <xsd:restriction base="xsd:string"> 97 <xsd:enumeration value="Imageset"/> 98 <xsd:enumeration value="Font"/> 99 <xsd:enumeration value="Scheme"/> 100 <xsd:enumeration value="LookNFeel"/> 101 <xsd:enumeration value="Layout"/> 102 <xsd:enumeration value="Script"/> 103 <xsd:enumeration value="XMLSchema"/> 104 <xsd:enumeration value="Default"/> 105 </xsd:restriction> 106 </xsd:simpleType> 25 107 26 108 </xsd:schema> 27 28 -
code/branches/cegui0.8_ogre1.9/data/gui/layouts/ChatBox-inputonly.layout
r11793 r11795 1 1 <?xml version='1.0' encoding='utf-8'?> 2 2 <GUILayout version="4"> 3 <Window name=" Root" type="DefaultWindow">3 <Window name="ChatBox-inputonly" type="DefaultWindow"> 4 4 <Property name="InheritsAlpha" value="False" /> 5 5 <Property name="MaxSize" value="{{1,0},{1,0}}" /> -
code/branches/cegui0.8_ogre1.9/data/gui/layouts/ChatBox.layout
r11793 r11795 1 1 <?xml version='1.0' encoding='utf-8'?> 2 2 <GUILayout version="4"> 3 <Window name=" Root" type="DefaultWindow">3 <Window name="ChatBox" type="DefaultWindow"> 4 4 <Property name="InheritsAlpha" value="False" /> 5 5 <Property name="MaxSize" value="{{1,0},{1,0}}" /> 6 6 <Property name="Area" value="{{0,0},{0,0},{1,0},{1,0}}" /> 7 <Window name=" ChatBox" type="MenuWidgets/FrameWindow">7 <Window name="frame" type="MenuWidgets/FrameWindow"> 8 8 <Property name="Text" value="Chat" /> 9 9 <Property name="InheritsAlpha" value="False" /> -
code/branches/cegui0.8_ogre1.9/data/gui/layouts/GUILayout.xsd
r9348 r11795 2 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> 3 3 4 <xsd:element name="GUILayout" type="GUILayoutType"/> 4 <xsd:element name="GUILayout" type="GUILayoutType"/> 5 6 <xsd:complexType name="GUILayoutType"> 7 <xsd:sequence> 8 <xsd:element name="Window" type="WindowType" /> 9 </xsd:sequence> 10 <xsd:attribute name="version" type="xsd:nonNegativeInteger" use="optional" default="0" /> 11 </xsd:complexType> 12 13 <xsd:complexType name="WindowType"> 14 <xsd:sequence> 15 <xsd:element name="LayoutImport" type="LayoutImportType" minOccurs="0" maxOccurs="unbounded" /> 16 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 17 <xsd:element name="Event" type="EventType" minOccurs="0" maxOccurs="unbounded" /> 18 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 19 <xsd:element name="Window" type="WindowType" /> 20 <xsd:element name="AutoWindow" type="AutoWindowType" /> 21 </xsd:choice> 22 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 23 <xsd:element name="UserString" type="UserStringType" minOccurs="0" maxOccurs="unbounded" /> 24 </xsd:sequence> 25 <xsd:attribute name="type" type="xsd:string" use="required"/> 26 <xsd:attribute name="name" type="xsd:string" use="optional" default="" /> 27 </xsd:complexType> 5 28 6 <xsd:complexType name="GUILayoutType"> 7 <xsd:sequence> 8 <xsd:element name="Window" type="WindowType" /> 9 </xsd:sequence> 10 <xsd:attribute name="Parent" type="xsd:string" use="optional" default=""/> 11 </xsd:complexType> 29 <xsd:complexType name="AutoWindowType"> 30 <xsd:sequence> 31 <xsd:element name="LayoutImport" type="LayoutImportType" minOccurs="0" maxOccurs="unbounded" /> 32 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 33 <xsd:element name="Event" type="EventType" minOccurs="0" maxOccurs="unbounded" /> 34 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 35 <xsd:element name="Window" type="WindowType" /> 36 <xsd:element name="AutoWindow" type="AutoWindowType" /> 37 </xsd:choice> 38 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 39 </xsd:sequence> 40 <xsd:attribute name="namePath" type="xsd:string" use="required"/> 41 </xsd:complexType> 12 42 13 <xsd:complexType name="WindowType"> 14 <xsd:sequence> 15 <xsd:element name="LayoutImport" type="LayoutImportType" minOccurs="0" maxOccurs="unbounded" /> 16 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 17 <xsd:element name="Event" type="EventType" minOccurs="0" maxOccurs="unbounded" /> 18 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 19 <xsd:element name="Window" type="WindowType" /> 20 <xsd:element name="AutoWindow" type="AutoWindowType" /> 21 </xsd:choice> 22 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 23 </xsd:sequence> 24 <xsd:attribute name="Type" type="xsd:string" use="required"/> 25 <xsd:attribute name="Name" type="xsd:string" use="optional" default="" /> 26 </xsd:complexType> 43 <xsd:complexType name="PropertyType"> 44 <xsd:simpleContent> 45 <xsd:extension base="xsd:string"> 46 <xsd:attribute name="name" type="xsd:string" use="required"/> 47 <xsd:attribute name="value" type="xsd:string" use="optional"/> 48 </xsd:extension> 49 </xsd:simpleContent> 50 </xsd:complexType> 51 52 <xsd:complexType name="UserStringType"> 53 <xsd:simpleContent> 54 <xsd:extension base="xsd:string"> 55 <xsd:attribute name="name" type="xsd:string" use="required"/> 56 <xsd:attribute name="value" type="xsd:string" use="optional"/> 57 </xsd:extension> 58 </xsd:simpleContent> 59 </xsd:complexType> 60 61 <xsd:complexType name="LayoutImportType"> 62 <xsd:attribute name="filename" type="xsd:string" use="required"/> 63 <xsd:attribute name="resourceGroup" type="xsd:string" use="optional" default="" /> 64 </xsd:complexType> 27 65 28 <xsd:complexType name="AutoWindowType"> 29 <xsd:sequence> 30 <xsd:element name="LayoutImport" type="LayoutImportType" minOccurs="0" maxOccurs="unbounded" /> 31 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 32 <xsd:element name="Event" type="EventType" minOccurs="0" maxOccurs="unbounded" /> 33 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 34 <xsd:element name="Window" type="WindowType" /> 35 <xsd:element name="AutoWindow" type="AutoWindowType" /> 36 </xsd:choice> 37 <xsd:element name="Property" type="PropertyType" minOccurs="0" maxOccurs="unbounded" /> 38 </xsd:sequence> 39 <xsd:attribute name="NameSuffix" type="xsd:string" use="required"/> 40 </xsd:complexType> 41 42 <xsd:complexType name="PropertyType"> 43 <xsd:simpleContent> 44 <xsd:extension base="xsd:string"> 45 <xsd:attribute name="Name" type="xsd:string" use="required"/> 46 <xsd:attribute name="Value" type="xsd:string" use="optional"/> 47 </xsd:extension> 48 </xsd:simpleContent> 49 </xsd:complexType> 50 51 <xsd:complexType name="LayoutImportType"> 52 <xsd:attribute name="Filename" type="xsd:string" use="required"/> 53 <xsd:attribute name="Prefix" type="xsd:string" use="optional" default="" /> 54 <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" /> 55 </xsd:complexType> 56 57 <xsd:complexType name="EventType"> 58 <xsd:attribute name="Name" type="xsd:string" use="required"/> 59 <xsd:attribute name="Function" type="xsd:string" use="required"/> 60 </xsd:complexType> 66 <xsd:complexType name="EventType"> 67 <xsd:attribute name="name" type="xsd:string" use="required"/> 68 <xsd:attribute name="function" type="xsd:string" use="required"/> 69 </xsd:complexType> 61 70 62 71 </xsd:schema> -
code/branches/cegui0.8_ogre1.9/data/gui/schemes/GUIScheme.xsd
r8079 r11795 1 1 <?xml version="1.0" ?> 2 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> 3 4 3 <xsd:element name="GUIScheme" type="SchemeType" /> 4 <xsd:complexType name="SchemeType"> 5 5 <xsd:choice minOccurs="0" maxOccurs="unbounded"> 6 6 <xsd:element name="Imageset" type="NamedDataType" /> 7 7 <xsd:element name="ImagesetFromImage" type="NamedDataType" /> 8 8 <xsd:element name="Font" type="NamedDataType" /> 9 9 <xsd:element name="LookNFeel" type="FileDataType" /> 10 11 12 10 <xsd:element name="WindowSet" type="WindowSetType" /> 11 <xsd:element name="WindowRendererSet" type="WindowRendererSetType" /> 12 <xsd:element name="WindowAlias" type="WindowAliasType" /> 13 13 <xsd:element name="FalagardMapping" type="FalagardMapType" /> 14 </xsd:choice> 15 <xsd:attribute name="Name" type="xsd:string" use="required" /> 14 </xsd:choice> 15 <xsd:attribute name="name" type="xsd:string" use="required" /> 16 <xsd:attribute name="version" type="xsd:nonNegativeInteger" use="optional" default="0" /> 17 </xsd:complexType> 18 <xsd:complexType name="WindowSetType"> 19 <xsd:sequence> 20 <xsd:element name="WindowFactory" type="WindowFactoryType" minOccurs="0" maxOccurs="unbounded" /> 21 </xsd:sequence> 22 <xsd:attribute name="filename" type="xsd:string" use="required" /> 23 </xsd:complexType> 24 <xsd:complexType name="WindowRendererSetType"> 25 <xsd:sequence> 26 <xsd:element name="WindowRendererFactory" type="WindowRendererFactoryType" minOccurs="0" maxOccurs="unbounded" /> 27 </xsd:sequence> 28 <xsd:attribute name="filename" type="xsd:string" use="required" /> 29 </xsd:complexType> 30 <xsd:complexType name="FileDataType"> 31 <xsd:attribute name="filename" type="xsd:string" use="required" /> 32 <xsd:attribute name="resourceGroup" type="xsd:string" use="optional" default="" /> 16 33 </xsd:complexType> 17 <xsd:complexType name="WindowSetType"> 18 <xsd:sequence> 19 <xsd:element name="WindowFactory" type="WindowFactoryType" minOccurs="0" maxOccurs="unbounded" /> 20 </xsd:sequence> 21 <xsd:attribute name="Filename" type="xsd:string" use="required" /> 22 </xsd:complexType> 23 <xsd:complexType name="WindowRendererSetType"> 24 <xsd:sequence> 25 <xsd:element name="WindowRendererFactory" type="WindowRendererFactoryType" minOccurs="0" maxOccurs="unbounded" /> 26 </xsd:sequence> 27 <xsd:attribute name="Filename" type="xsd:string" use="required" /> 28 </xsd:complexType> 29 <xsd:complexType name="FileDataType"> 30 <xsd:attribute name="Filename" type="xsd:string" use="required" /> 31 <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" /> 32 </xsd:complexType> 33 <xsd:complexType name="NamedDataType"> 34 <xsd:attribute name="Name" type="xsd:string" use="required" /> 35 <xsd:attribute name="Filename" type="xsd:string" use="required" /> 36 <xsd:attribute name="ResourceGroup" type="xsd:string" use="optional" default="" /> 37 </xsd:complexType> 38 <xsd:complexType name="WindowFactoryType"> 39 <xsd:attribute name="Name" type="xsd:string" use="required" /> 40 </xsd:complexType> 41 <xsd:complexType name="WindowRendererFactoryType"> 42 <xsd:attribute name="Name" type="xsd:string" use="required" /> 43 </xsd:complexType> 44 <xsd:complexType name="WindowAliasType"> 45 <xsd:attribute name="Alias" type="xsd:string" use="required" /> 46 <xsd:attribute name="Target" type="xsd:string" use="required" /> 47 </xsd:complexType> 34 <xsd:complexType name="NamedDataType"> 35 <xsd:attribute name="name" type="xsd:string" use="optional" default="" /> 36 <xsd:attribute name="filename" type="xsd:string" use="required" /> 37 <xsd:attribute name="resourceGroup" type="xsd:string" use="optional" default="" /> 38 </xsd:complexType> 39 <xsd:complexType name="WindowFactoryType"> 40 <xsd:attribute name="name" type="xsd:string" use="required" /> 41 </xsd:complexType> 42 <xsd:complexType name="WindowRendererFactoryType"> 43 <xsd:attribute name="name" type="xsd:string" use="required" /> 44 </xsd:complexType> 45 <xsd:complexType name="WindowAliasType"> 46 <xsd:attribute name="alias" type="xsd:string" use="required" /> 47 <xsd:attribute name="target" type="xsd:string" use="required" /> 48 </xsd:complexType> 48 49 <xsd:complexType name="FalagardMapType"> 49 <xsd:attribute name="WindowType" type="xsd:string" use="required" /> 50 <xsd:attribute name="TargetType" type="xsd:string" use="required" /> 51 <xsd:attribute name="Renderer" type="xsd:string" use="required" /> 52 <xsd:attribute name="LookNFeel" type="xsd:string" use="required" /> 50 <xsd:attribute name="windowType" type="xsd:string" use="required" /> 51 <xsd:attribute name="targetType" type="xsd:string" use="required" /> 52 <xsd:attribute name="renderer" type="xsd:string" use="required" /> 53 <xsd:attribute name="lookNFeel" type="xsd:string" use="required" /> 54 <xsd:attribute name="renderEffect" type="xsd:string" use="optional" default="" /> 53 55 </xsd:complexType> 54 56 </xsd:schema> -
code/branches/cegui0.8_ogre1.9/data/gui/scripts/AudioMenu.lua
r9348 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/DockingDialog.lua
r8706 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/GUISheet.lua
r8862 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/GameplayMenu.lua
r8858 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/GraphicsMenu.lua
r9051 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/HostMenu.lua
r8079 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/InitialiseGUI.lua
r8351 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/MainMenu.lua
r11356 r11795 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/HighscoreButton"),24 ["button"] = P.window:getChild("HighscoreButton"), 25 25 ["callback"] = P.MultiplayerButton_clicked 26 26 }) 27 27 28 28 P:setButton(5, 1, { 29 ["button"] = winMgr:getWindow("orxonox/SettingsButton"),29 ["button"] = P.window:getChild("SettingsButton"), 30 30 ["callback"] = P.SettingsButton_clicked 31 31 }) 32 32 33 33 P:setButton(6, 1, { 34 ["button"] = winMgr:getWindow("orxonox/CreditsButton"),34 ["button"] = P.window:getChild("CreditsButton"), 35 35 ["callback"] = P.CreditsButton_clicked 36 36 }) 37 37 38 38 P:setButton(7, 1, { 39 ["button"] = winMgr:getWindow("orxonox/ExitButton"),39 ["button"] = P.window:getChild("ExitButton"), 40 40 ["callback"] = P.ExitButton_clicked 41 41 }) -
code/branches/cegui0.8_ogre1.9/data/gui/scripts/MultiplayerMenu.lua
r10622 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/PickupInventory.lua
r11710 r11795 115 115 116 116 local image = winMgr:createWindow("MenuWidgets/StaticImage", name .. "/Image") 117 image:setProperty("Image", " set:PickupInventory image:" .. representation:getInventoryRepresentation())117 image:setProperty("Image", "PickupInventory/" .. representation:getInventoryRepresentation()) 118 118 image:setProperty("BackgroundEnabled", "set:False") 119 119 image:setProperty("FrameEnabled", "set:True") … … 215 215 216 216 local image = winMgr:createWindow("MenuWidgets/StaticImage", name .. "/Image") 217 image:setProperty("Image", " set:PickupInventory image:" .. representation:getInventoryRepresentation())217 image:setProperty("Image", "PickupInventory/" .. representation:getInventoryRepresentation()) 218 218 image:setProperty("BackgroundEnabled", "set:False") 219 219 image:setProperty("FrameEnabled", "set:True") -
code/branches/cegui0.8_ogre1.9/data/gui/scripts/QuestGUI.lua
r8891 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/SheetManager.lua
r11052 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/ShipSelectionMenu.lua
r9348 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/SingleplayerMenu.lua
r11359 r11795 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/cegui0.8_ogre1.9/data/gui/scripts/UndockingDialog.lua
r9943 r11795 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.