- Timestamp:
- Feb 21, 2018, 12:03:52 AM (7 years ago)
- Location:
- code/branches/cegui0.8_ogre1.9
- Files:
-
- 77 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/cmake/tools/FindCEGUI.cmake
r11117 r11795 39 39 40 40 # Find CEGUI headers 41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare TRUE)41 COMPARE_VERSION_STRINGS("${CEGUI_VERSION}" "0.8" _version_0_8_compare) 42 42 # Version 0.8 introduced a new directory and file naming convention 43 43 IF(_version_0_8_compare GREATER -1) -
code/branches/cegui0.8_ogre1.9/cmake/tools/FindOGRE.cmake
r8351 r11795 38 38 # Inspect OgrePrerquisites.h for the version number 39 39 DETERMINE_VERSION(OGRE ${OGRE_INCLUDE_DIR}/OgrePrerequisites.h) 40 COMPARE_VERSION_STRINGS("${OGRE_VERSION}" "1.9" _version_1_9_compare TRUE) 41 # Version 1.9 moved overlays into a separate component (which means we must find and link to another library) 42 IF(_version_1_9_compare GREATER -1) 43 FIND_LIBRARY(OGRE_OVERLAY_LIBRARY_OPTIMIZED 44 NAMES OgreOverlay 45 PATHS $ENV{OGRE_HOME} 46 PATH_SUFFIXES lib bin/Release bin/release Release release 47 ) 48 FIND_LIBRARY(OGRE_OVERLAY_LIBRARY_DEBUG 49 NAMES OgreOverlayd OgreOverlay_d OgreOverlayD OgreOverlay_D 50 PATHS $ENV{OGRE_HOME} 51 PATH_SUFFIXES lib bin/Debug bin/debug Debug debug 52 ) 53 SET(OGRE_REQUIRED_VARIABLES 54 OGRE_OVERLAY_LIBRARY_OPTIMIZED 55 ) 56 ENDIF() 40 57 41 58 # Handle the REQUIRED argument and set OGRE_FOUND … … 44 61 OGRE_LIBRARY_OPTIMIZED 45 62 OGRE_INCLUDE_DIR 63 ${OGRE_REQUIRED_VARIABLES} 46 64 ) 47 65 48 66 # Collect optimized and debug libraries 49 67 HANDLE_LIBRARY_TYPES(OGRE) 68 HANDLE_LIBRARY_TYPES(OGRE_OVERLAY) 50 69 51 70 MARK_AS_ADVANCED( … … 53 72 OGRE_LIBRARY_OPTIMIZED 54 73 OGRE_LIBRARY_DEBUG 74 OGRE_OVERLAY_LIBRARY_OPTIMIZED 75 OGRE_OVERLAY_LIBRARY_DEBUG 55 76 ) -
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 -
code/branches/cegui0.8_ogre1.9/data/levels/asteroidField.oxw
r9939 r11795 66 66 67 67 <!-- Planet close to spawn point --> 68 < Planet68 <MovableEntity 69 69 position="15000,0,0" 70 70 scale="5000" … … 74 74 mass="10000000" 75 75 pitch="0" 76 mesh="planets/muunilinst.mesh"77 atmosphere="atmosphere1"78 76 rotationaxis="1,0,0" 79 77 rotationrate="1.0" 80 atmospheresize="80.0f"81 imagesize="1024.0f"82 78 collisiondamage = 2 83 79 enablecollisiondamage = true 84 80 > 85 81 <attached> 86 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 82 <Planet 83 mesh="planets/muunilinst.mesh" 84 atmosphere="atmosphere1" 85 atmospheresize="80.0f" 86 imagesize="1024.0f" 87 > 88 <attached> 89 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 90 </attached> 91 </Planet> 87 92 </attached> 88 93 <collisionShapes> 89 94 <SphereCollisionShape radius="5000" position="0,0,0" /> 90 95 </collisionShapes> 91 </ Planet>96 </MovableEntity> 92 97 93 98 -
code/branches/cegui0.8_ogre1.9/data/levels/dockingToASpaceStation.oxw
r11104 r11795 153 153 ?> 154 154 155 < Planet155 <MovableEntity 156 156 position="15000,0,-1000" 157 157 scale="5000" … … 161 161 mass="10000000" 162 162 pitch="0" 163 mesh="planets/ganymede.mesh"164 atmosphere="atmosphere1"165 163 rotationaxis="1,0,0" 166 164 rotationrate="1.0" 167 atmospheresize="80.0f"168 imagesize="1024.0f"169 165 collisiondamage = 2 170 166 enablecollisiondamage = true 171 167 > 172 168 <attached> 173 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 169 <Planet 170 mesh="planets/ganymede.mesh" 171 atmosphere="atmosphere1" 172 atmospheresize="80.0f" 173 imagesize="1024.0f" 174 > 175 <attached> 176 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 177 </attached> 178 </Planet> 174 179 </attached> 175 180 <collisionShapes> 176 181 <SphereCollisionShape radius="5000" position="0,0,0" /> 177 182 </collisionShapes> 178 </ Planet>183 </MovableEntity> 179 184 180 185 </Scene> -
code/branches/cegui0.8_ogre1.9/data/levels/dynamicMatch.oxw
r9939 r11795 33 33 34 34 <!-- ------------------Planet needs gravity----------------- --> 35 <Planet position="0,0,0" scale=500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 36 <StaticEntity position="0,0,0" collisionType=static> 35 <MovableEntity position="0,0,0" scale=500 pitch=-90 rotationaxis="8,1,0" rotationrate="1"> 36 <attached> 37 <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f /> 38 </attached> 39 </MovableEntity> 40 <StaticEntity position="0,0,0" collisionType=static> 37 41 <collisionShapes> 38 42 <SphereCollisionShape radius="499" /> -
code/branches/cegui0.8_ogre1.9/data/levels/earth.oxw
r9016 r11795 56 56 57 57 <!-- This is a model of Earth: mass=EarthMass/1000 and radius=EarthRadius[km]*10 --> 58 < Planet58 <MovableEntity 59 59 position="0,0,0" 60 60 scale="63000" 61 pitch="0" 61 62 collisionType="dynamic" 62 63 linearDamping="0.8" 63 64 angularDamping="0" 64 65 mass="5.9e21" 65 pitch="0"66 mesh="planets/earth.mesh"67 atmosphere="atmosphere1"68 66 rotationaxis="0,1,0" 69 67 rotationrate="0.2" 70 atmospheresize="80.0f"71 imagesize="1024.0f"72 68 collisiondamage = 2 73 69 enablecollisiondamage = true 74 70 > 75 71 <attached> 76 <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> 72 <Planet 73 mesh="planets/earth.mesh" 74 atmosphere="atmosphere1" 75 atmospheresize="80.0f" 76 imagesize="1024.0f" 77 > 78 <attached> 79 <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> 80 </attached> 81 </Planet> 77 82 </attached> 78 83 <collisionShapes> 79 84 <SphereCollisionShape radius="63000" position="0,0,0" /> 80 85 </collisionShapes> 81 </ Planet>86 </MovableEntity> 82 87 83 88 <!-- This is a model of our Moon: mass=MoonMass/1000 and radius=MoonRadius[km]*10 and position=DistanceFromEarth[km]*10 --> 84 < Planet89 <MovableEntity 85 90 position="3625700,0,0" 86 91 scale="17370" 92 pitch="0" 87 93 collisionType="dynamic" 88 94 linearDamping="0.8" 89 95 angularDamping="0" 90 96 mass="7.36e19" 91 pitch="0"92 mesh="planets/moon.mesh"93 atmosphere="atmosphere1"94 97 rotationaxis="0,1,0" 95 98 rotationrate="0.2" 96 atmospheresize="80.0f"97 imagesize="1024.0f"98 99 collisiondamage = 2 99 100 enablecollisiondamage = true 100 101 > 101 102 <attached> 102 <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> 103 <Planet 104 mesh="planets/moon.mesh" 105 atmosphere="atmosphere1" 106 atmospheresize="80.0f" 107 imagesize="1024.0f" 108 > 109 <attached> 110 <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> 111 </attached> 112 </Planet> 103 113 </attached> 104 114 <collisionShapes> 105 115 <SphereCollisionShape radius="17370" position="0,0,0" /> 106 116 </collisionShapes> 107 </ Planet>117 </MovableEntity> 108 118 <PortalEndPoint position="3603330,100,0" id="2" distance="40" target="MobileEntity" design="PortalDefault"/> 109 119 -
code/branches/cegui0.8_ogre1.9/data/levels/expeditionSector.oxw
r11104 r11795 588 588 <!-- Planets --> 589 589 590 <Planet590 <MovableEntity 591 591 position="<?lua printC(cPlanet1) ?>" 592 592 scale="3000" … … 596 596 mass="5000000" 597 597 pitch="0" 598 mesh="planets/muunilinst.mesh"599 atmosphere="atmosphere1"600 598 rotationaxis="1,0,0" 601 599 rotationrate="1.0" 602 atmospheresize="80.0f"603 imagesize="1024.0f"604 600 collisiondamage=2 605 601 enablecollisiondamage=true 606 visible=true 607 active=ture 608 > 602 > 609 603 <attached> 610 <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> 611 </attached> 612 <collisionShapes> 613 <SphereCollisionShape radius="3000" position="0,0,0" /> 604 <Planet 605 mesh="planets/muunilinst.mesh" 606 atmosphere="atmosphere1" 607 atmospheresize="80.0f" 608 imagesize="1024.0f" 609 visible=true 610 active=ture 611 > 612 <attached> 613 <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> 614 </attached> 615 </Planet> 616 </attached> 617 <collisionShapes> 618 <SphereCollisionShape radius="3000" position="0,0,0" /> 614 619 </collisionShapes> 615 </ Planet>620 </MovableEntity> 616 621 617 622 <?lua … … 620 625 ?> 621 626 622 < Planet627 <MovableEntity 623 628 position="<?lua printC(cPlanet2) ?>" 624 629 scale="2000" … … 628 633 mass="5000000" 629 634 pitch="0" 630 mesh="planets/ganymede.mesh"631 atmosphere="atmosphere1"632 635 rotationaxis="1,0,0" 633 636 rotationrate="1.0" 634 atmospheresize="80.0f"635 imagesize="1024.0f"636 637 collisiondamage=2 637 638 enablecollisiondamage=true 638 visible=true 639 active=true 640 > 639 > 641 640 <attached> 642 <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> 643 </attached> 644 <collisionShapes> 645 <SphereCollisionShape radius="2000" position="0,0,0" /> 641 <Planet 642 mesh="planets/ganymede.mesh" 643 atmosphere="atmosphere1" 644 atmospheresize="80.0f" 645 imagesize="1024.0f" 646 visible=true 647 active=true 648 > 649 <attached> 650 <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> 651 </attached> 652 </Planet> 653 </attached> 654 <collisionShapes> 655 <SphereCollisionShape radius="2000" position="0,0,0" /> 646 656 </collisionShapes> 647 </ Planet>657 </MovableEntity> 648 658 649 659 <?lua … … 654 664 <!-- EnemyPlanet(s) --> 655 665 656 < Planet666 <MovableEntity 657 667 position="<?lua printC(cEnemyBasePlanet) ?>" 658 668 scale="5000" … … 662 672 mass="5000000" 663 673 pitch="0" 664 mesh="planets/jupiter.mesh"665 atmosphere="atmosphere1"666 674 rotationaxis="1,0,0" 667 675 rotationrate="1.0" 668 atmospheresize="80.0f"669 imagesize="1024.0f"670 676 collisiondamage=2 671 677 enablecollisiondamage=true 672 visible=false 673 active=false 674 > 678 > 675 679 <attached> 676 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-500" /> 677 </attached> 678 <collisionShapes> 679 <SphereCollisionShape radius="5000" position="0,0,0" /> 680 <Planet 681 mesh="planets/jupiter.mesh" 682 atmosphere="atmosphere1" 683 atmospheresize="80.0f" 684 imagesize="1024.0f" 685 visible=false 686 active=false 687 > 688 <attached> 689 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-500" /> 690 </attached> 691 </Planet> 692 </attached> 693 <collisionShapes> 694 <SphereCollisionShape radius="5000" position="0,0,0" /> 680 695 </collisionShapes> 681 </ Planet>696 </MovableEntity> 682 697 683 698 <?lua -
code/branches/cegui0.8_ogre1.9/data/levels/iiJohnVane_Area51UnderFire.oxw
r9992 r11795 2004 2004 2005 2005 <!-- PLANETS --> 2006 <Planet 2007 position="2000,-250,9000" 2008 scale=5000 2009 pitch=1 2006 <MovableEntity 2007 position="2000,-250,9000" 2008 scale=5000 2009 pitch=1 2010 rotationaxis="1,1,0" 2011 rotationrate="0.5" 2012 mass="10000000" 2013 angularDamping=0 2014 collisiondamage=2 2015 enablecollisiondamage=true 2016 collisionType="dynamic" 2017 > 2018 <attached> 2019 <Planet 2010 2020 mesh="iceplanet.mesh" 2011 2021 atmosphere="atmosphere1" 2012 rotationaxis="1,1,0"2013 rotationrate="0.5"2014 2022 atmospheresize=224.0f 2015 imagesize=1024.0f 2016 mass="10000000" 2017 angularDamping=0 2018 collisiondamage=2 2019 enablecollisiondamage=true 2020 collisionType="dynamic" /> 2023 imagesize=1024.0f /> 2024 </attached> 2025 </MovableEntity> 2021 2026 2022 2027 <!-- PICKUPS to make travelling faster --> -
code/branches/cegui0.8_ogre1.9/data/levels/iiiJohnVane_EscapeTheBastards.oxw
r11052 r11795 778 778 779 779 <!--Planet sun--> 780 <Planet position="15000,0,0" scale=1500 pitch=-90 mesh="planets/sol.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=0 imagesize=1024.0f /> 780 <MovableEntity position="15000,0,0" scale=1500 pitch=-90 rotationaxis="8,1,0" rotationrate="1"> 781 <attached> 782 <Planet mesh="planets/sol.mesh" atmosphere="atmosphere1" atmospheresize=0 imagesize=1024.0f /> 783 </attached> 784 </MovableEntity> 781 785 <StaticEntity position="2600,0,0" collisionType=static> 782 786 <collisionShapes> … … 790 794 791 795 <!--Planet with Ally--> 792 < Planet796 <MovableEntity 793 797 position="0,0,0" 794 798 scale="100" … … 798 802 mass="5000000" 799 803 pitch="0" 800 mesh="iceplanet.mesh"801 atmosphere="atmosphere1"802 804 rotationaxis="1,0,0" 803 805 rotationrate="1.0" 804 atmospheresize="80.0f"805 imagesize="1024.0f"806 806 > 807 807 <attached> 808 <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> 809 <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> 808 <Planet 809 mesh="iceplanet.mesh" 810 atmosphere="atmosphere1" 811 atmospheresize="80.0f" 812 imagesize="1024.0f" 813 > 814 <attached> 815 <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> 816 <ParticleEmitter position="0,0,0" source="Orxonox/fire3" /> 817 </attached> 818 </Planet> 810 819 </attached> 811 820 <collisionShapes> 812 821 <SphereCollisionShape radius="100" position="0,0,0" /> 813 822 </collisionShapes> 814 </ Planet>823 </MovableEntity> 815 824 <!-- Planet with Ally END--> 816 825 817 826 818 827 <!-- Homeplanet --> 819 < Planet828 <MovableEntity 820 829 position="-3000,12000,-10000" 821 830 scale="3000" … … 825 834 mass="5000000000000" 826 835 pitch="0" 827 mesh="planets/muunilinst.mesh"828 atmosphere="atmosphere1"829 836 rotationaxis="0,0,0" 830 837 rotationrate="0.0" 831 atmospheresize="80.0f"832 imagesize="1024.0f"833 838 > 834 839 <attached> 835 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" /> 840 <Planet 841 mesh="planets/muunilinst.mesh" 842 atmosphere="atmosphere1" 843 atmospheresize="80.0f" 844 imagesize="1024.0f" 845 > 846 <attached> 847 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-900" /> 848 </attached> 849 </Planet> 836 850 </attached> 837 851 <collisionShapes> 838 852 <SphereCollisionShape radius="3000" position="0,0,0" /> 839 853 </collisionShapes> 840 </ Planet>854 </MovableEntity> 841 855 <!-- Homeplanet END--> 842 856 843 857 <!-- Planet around the cave--> 844 858 845 <Planet position="-43500,-30000,31900" scale=5000 pitch=-90 mesh="planets/moon.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=0 imagesize=1024.0f /> 859 <MovableEntity position="-43500,-30000,31900" scale=5000 pitch=-90 rotationaxis="8,1,0" rotationrate="1"> 860 <attached> 861 <Planet mesh="planets/moon.mesh" atmosphere="atmosphere1" atmospheresize=0 imagesize=1024.0f /> 862 </attached> 863 </MovableEntity> 846 864 847 865 <!-- Planet around the cave END--> 848 866 849 867 <!-- Anotherplanet --> 850 < Planet868 <MovableEntity 851 869 position="-20000,6000,7000" 852 870 scale="3000" … … 856 874 mass="5000000000000" 857 875 pitch="0" 858 mesh="planets/ganymede.mesh"859 atmosphere="atmosphere1"860 876 rotationaxis="0,0,0" 861 877 rotationrate="0.0" 862 atmospheresize="80.0f"863 imagesize="1024.0f"864 878 > 879 <attached> 880 <Planet 881 mesh="planets/ganymede.mesh" 882 atmosphere="atmosphere1" 883 atmospheresize="80.0f" 884 imagesize="1024.0f" 885 /> 886 </attached> 865 887 <collisionShapes> 866 888 <SphereCollisionShape radius="3000" position="0,0,0" /> 867 889 </collisionShapes> 868 </ Planet>890 </MovableEntity> 869 891 <!-- LAAAGS :-( 870 892 -
code/branches/cegui0.8_ogre1.9/data/levels/kecks.oxw
r11052 r11795 423 423 424 424 <!--Heimatplanet--> 425 <MovableEntity 426 position="0,100000,0" 427 scale="10000" 428 collisionType="dynamic" 429 linearDamping="0.8" 430 angularDamping="0" 431 mass="5000000" 432 pitch="180" 433 yaw="0" 434 roll="0" 435 rotationaxis="0,0,1" 436 rotationrate="5.0" 437 collisiondamage = 1 438 enablecollisiondamage = true 439 > 440 <attached> 425 441 <Planet 426 position="0,100000,0"427 scale="10000"428 collisionType="dynamic"429 linearDamping="0.8"430 angularDamping="0"431 mass="5000000"432 pitch="180"433 yaw="0"434 roll="0"435 442 mesh="planets/earth.mesh" 436 443 atmosphere="atmosphere1" 437 rotationaxis="0,0,1"438 rotationrate="5.0"439 444 atmospheresize="80.0f" 440 445 imagesize="1024.0f" 441 collisiondamage = 1442 enablecollisiondamage = true443 446 > 444 447 <attached> 445 <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> 446 </attached> 447 <collisionShapes> 448 <SphereCollisionShape radius="10000" position="0,0,0" /> 449 </collisionShapes> 450 </Planet> 448 <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> 449 </attached> 450 </Planet> 451 </attached> 452 <collisionShapes> 453 <SphereCollisionShape radius="10000" position="0,0,0" /> 454 </collisionShapes> 455 </MovableEntity> 451 456 <!--ENDE Heimatplanet--> 452 457 -
code/branches/cegui0.8_ogre1.9/data/levels/levelTry.oxw
r11104 r11795 149 149 ?> 150 150 151 < Planet151 <MovableEntity 152 152 position="15000,0,-1000" 153 153 scale="5000" … … 157 157 mass="10000000" 158 158 pitch="0" 159 mesh="planets/ganymede.mesh"160 atmosphere="atmosphere1"161 159 rotationaxis="1,0,0" 162 160 rotationrate="1.0" 163 atmospheresize="80.0f"164 imagesize="1024.0f"165 161 collisiondamage = 2 166 162 enablecollisiondamage = true 167 163 > 168 164 <attached> 169 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 165 <Planet 166 mesh="planets/ganymede.mesh" 167 atmosphere="atmosphere1" 168 atmospheresize="80.0f" 169 imagesize="1024.0f" 170 > 171 <attached> 172 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 173 </attached> 174 </Planet> 170 175 </attached> 171 176 <collisionShapes> 172 177 <SphereCollisionShape radius="5000" position="0,0,0" /> 173 178 </collisionShapes> 174 </ Planet>179 </MovableEntity> 175 180 176 181 </Scene> -
code/branches/cegui0.8_ogre1.9/data/levels/missionOne.oxw
r11052 r11795 1205 1205 1206 1206 <!-- @Objects: planet && spaceboundaries --> 1207 < Planet1207 <MovableEntity 1208 1208 position="-44000,0,0" 1209 1209 scale="2500" … … 1213 1213 mass="10000000" 1214 1214 pitch="0" 1215 mesh="planets/muunilinst.mesh"1216 atmosphere="atmosphere1"1217 1215 rotationaxis="1,0,0" 1218 1216 rotationrate="1.0" 1219 atmospheresize="80.0f"1220 imagesize="1024.0f"1221 1217 collisiondamage = "2" 1222 1218 enablecollisiondamage = "false" 1223 1219 > 1224 <!--attached> 1225 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 1226 </attached--> <!-- Forcefield kills HYDROGEN FARMER--> 1220 <attached> 1221 <Planet 1222 mesh="planets/muunilinst.mesh" 1223 atmosphere="atmosphere1" 1224 atmospheresize="80.0f" 1225 imagesize="1024.0f" 1226 > 1227 <!--attached> 1228 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 1229 </attached--> <!-- Forcefield kills HYDROGEN FARMER--> 1230 </Planet> 1231 </attached> 1227 1232 <collisionShapes> 1228 1233 <SphereCollisionShape radius="2500" position="0,0,0" /> 1229 1234 </collisionShapes> 1230 </ Planet>1235 </MovableEntity> 1231 1236 1232 1237 -
code/branches/cegui0.8_ogre1.9/data/levels/planets.oxw
r9348 r11795 45 45 /> 46 46 47 < Planet47 <MovableEntity 48 48 position="0,0,0" 49 49 scale="1000" … … 53 53 mass="10000000" 54 54 pitch="0" 55 mesh="planets/muunilinst.mesh"56 atmosphere="atmosphere1"57 55 rotationaxis="1,0,0" 58 56 rotationrate="1.0" 59 atmospheresize="80.0f"60 imagesize="1024.0f"61 57 collisiondamage = 2 62 58 enablecollisiondamage = true 63 59 > 64 60 <attached> 65 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 61 <Planet 62 mesh="planets/muunilinst.mesh" 63 atmosphere="atmosphere1" 64 atmospheresize="80.0f" 65 imagesize="1024.0f" 66 > 67 <attached> 68 <ForceField position="0,0,0" mode="sphere" diameter="10000" velocity="-50" /> 69 </attached> 70 </Planet> 66 71 </attached> 67 72 <collisionShapes> 68 73 <SphereCollisionShape radius="1000" position="0,0,0" /> 69 74 </collisionShapes> 70 </ Planet>75 </MovableEntity> 71 76 72 < Planet77 <MovableEntity 73 78 position="10000,0,0" 74 79 scale="100" … … 78 83 mass="5000000" 79 84 pitch="0" 80 mesh="planets/muunilinst.mesh"81 atmosphere="atmosphere1"82 85 rotationaxis="1,0,0" 83 86 rotationrate="1.0" 84 atmospheresize="80.0f"85 imagesize="1024.0f"86 87 collisiondamage = 2 87 88 enablecollisiondamage = true 88 89 > 89 90 <attached> 90 <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> 91 <Planet 92 mesh="planets/muunilinst.mesh" 93 atmosphere="atmosphere1" 94 atmospheresize="80.0f" 95 imagesize="1024.0f" 96 > 97 <attached> 98 <ForceField position="0,0,0" mode="sphere" diameter="1000" velocity="-500" /> 99 </attached> 100 </Planet> 91 101 </attached> 92 102 <collisionShapes> 93 103 <SphereCollisionShape radius="100" position="0,0,0" /> 94 104 </collisionShapes> 95 </ Planet>105 </MovableEntity> 96 106 </Scene> 97 107 </Level> -
code/branches/cegui0.8_ogre1.9/data/levels/presentation09.oxw
r9348 r11795 57 57 <?lua end ?> 58 58 59 <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 59 <MovableEntity position="0,0,0" scale=10000 pitch=-90 rotationaxis="1,1,0" rotationrate="1"> 60 <attached> 61 <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f /> 62 </attached> 63 </MovableEntity> 60 64 61 65 </Scene> -
code/branches/cegui0.8_ogre1.9/data/levels/presentationFS11.oxw
r9939 r11795 111 111 112 112 <!-- EARTH --> 113 < Planet113 <MovableEntity 114 114 position="80500,0,0" 115 115 scale="63000" … … 120 120 pitch="-90" 121 121 yaw="50" 122 mesh="planets/earth.mesh"123 atmosphere="atmosphere1"124 122 rotationaxis="0,1,0" 125 123 rotationrate="0.2" 126 atmospheresize="80.0f"127 imagesize="1024.0f"128 124 collisiondamage = 2 129 125 enablecollisiondamage = true 130 126 > 131 127 <attached> 132 <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> 128 <Planet 129 mesh="planets/earth.mesh" 130 atmosphere="atmosphere1" 131 atmospheresize="80.0f" 132 imagesize="1024.0f" 133 > 134 <attached> 135 <ForceField position="0,0,0" mode="newtonianGravity" diameter="140000" massDiameter="126000" mass="5.9e21" /> 136 </attached> 137 </Planet> 133 138 </attached> 134 139 <collisionShapes> 135 140 <SphereCollisionShape radius="63000" position="0,0,0" /> 136 141 </collisionShapes> 137 </ Planet>142 </MovableEntity> 138 143 139 144 <!-- PARTICLE EFFECT --> … … 329 334 330 335 <!-- MOON --> 331 < Planet336 <MovableEntity 332 337 position="-80000,0,0" 333 338 scale="4000" … … 337 342 mass="7.36e19" 338 343 pitch="0" 339 mesh="planets/moon.mesh"340 atmosphere="atmosphere1"341 344 rotationaxis="0,1,0" 342 345 rotationrate="0.2" 343 atmospheresize="0.0f"344 imagesize="1024.0f"345 346 collisiondamage = 2 346 347 enablecollisiondamage = true 347 348 > 348 349 <attached> 349 <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> 350 <Planet 351 mesh="planets/moon.mesh" 352 atmosphere="atmosphere1" 353 atmospheresize="0.0f" 354 imagesize="1024.0f" 355 > 356 <attached> 357 <ForceField position="0,0,0" mode="newtonianGravity" diameter="40000" massDiameter="34740" mass="7.36e19" /> 358 </attached> 359 </Planet> 350 360 </attached> 351 361 <collisionShapes> 352 362 <SphereCollisionShape radius="4000" position="0,0,0" /> 353 363 </collisionShapes> 354 </ Planet>364 </MovableEntity> 355 365 356 366 <SimpleNotification message="Hydrogen farmer/space station by Hans" > -
code/branches/cegui0.8_ogre1.9/data/levels/presentationHS09.oxw
r9348 r11795 393 393 </MovableEntity> 394 394 <?lua end ?> 395 396 <!--397 <Planet position="1000,0,0" mass=900000 scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />398 -->399 395 400 396 </Scene> -
code/branches/cegui0.8_ogre1.9/data/levels/presentationHS12.oxw
r10624 r11795 353 353 ?> 354 354 355 < Planet355 <MovableEntity 356 356 position="15000,0,-1000" 357 357 scale="5000" … … 361 361 mass="10000000" 362 362 pitch="0" 363 mesh="planets/ganymede.mesh"364 atmosphere="atmosphere1"365 363 rotationaxis="1,0,0" 366 364 rotationrate="1.0" 367 atmospheresize="80.0f"368 imagesize="1024.0f"369 365 collisiondamage = 2 370 366 enablecollisiondamage = true 371 367 > 372 368 <attached> 373 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 369 <Planet 370 mesh="planets/ganymede.mesh" 371 atmosphere="atmosphere1" 372 atmospheresize="80.0f" 373 imagesize="1024.0f" 374 > 375 <attached> 376 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 377 </attached> 378 </Planet> 374 379 </attached> 375 380 <collisionShapes> 376 381 <SphereCollisionShape radius="5000" position="0,0,0" /> 377 382 </collisionShapes> 378 </ Planet>383 </MovableEntity> 379 384 380 385 <StaticEntity position="6750,-750,2000" yaw=0 pitch=0> -
code/branches/cegui0.8_ogre1.9/data/levels/shadertest.oxw
r11080 r11795 78 78 <!-- Planet close to spawn point --> 79 79 80 < Planet80 <MovableEntity 81 81 position="15000,0,-1000" 82 82 scale="5000" … … 86 86 mass="10000000" 87 87 pitch="0" 88 mesh="planets/muunilinst.mesh"89 atmosphere="atmosphere1"90 88 rotationaxis="1,0,0" 91 89 rotationrate="1.0" 92 atmospheresize="80.0f"93 imagesize="1024.0f"94 90 collisiondamage = 2 95 91 enablecollisiondamage = true 96 92 > 97 93 <attached> 98 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 94 <Planet 95 mesh="planets/muunilinst.mesh" 96 atmosphere="atmosphere1" 97 atmospheresize="80.0f" 98 imagesize="1024.0f" 99 > 100 <attached> 101 <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" /> 102 </attached> 103 </Planet> 99 104 </attached> 100 105 <collisionShapes> 101 106 <SphereCollisionShape radius="5000" position="0,0,0" /> 102 107 </collisionShapes> 103 </ Planet>108 </MovableEntity> 104 109 105 110 -
code/branches/cegui0.8_ogre1.9/data/levels/shuttleAttack.oxw
r11104 r11795 930 930 ?> 931 931 932 < Planet932 <MovableEntity 933 933 position="<?lua printC(cPlanet1) ?>" 934 934 scale="2000" … … 938 938 mass="5000000" 939 939 pitch="0" 940 mesh="planets/muunilinst.mesh"941 atmosphere="atmosphere1"942 940 rotationaxis="1,0,0" 943 941 rotationrate="1.0" 944 atmospheresize="80.0f"945 imagesize="1024.0f"946 942 collisiondamage = 2 947 943 enablecollisiondamage = true 948 944 > 949 945 <attached> 950 <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> 951 </attached> 952 <collisionShapes> 953 <SphereCollisionShape radius="2000" position="0,0,0" /> 946 <Planet 947 mesh="planets/muunilinst.mesh" 948 atmosphere="atmosphere1" 949 atmospheresize="80.0f" 950 imagesize="1024.0f" 951 > 952 <attached> 953 <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> 954 </attached> 955 </Planet> 956 </attached> 957 <collisionShapes> 958 <SphereCollisionShape radius="2000" position="0,0,0" /> 954 959 </collisionShapes> 955 </ Planet>960 </MovableEntity> 956 961 957 962 <?lua … … 960 965 ?> 961 966 962 < Planet967 <MovableEntity 963 968 position="<?lua printC(cPlanet2) ?>" 964 969 scale="3000" … … 968 973 mass="5000000" 969 974 pitch="0" 970 mesh="planets/planet3.mesh"971 atmosphere="atmosphere1"972 975 rotationaxis="1,0,0" 973 976 rotationrate="1.0" 974 atmospheresize="80.0f"975 imagesize="1024.0f"976 977 collisiondamage = 2 977 978 enablecollisiondamage = true 978 979 > 979 980 <attached> 980 <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> 981 </attached> 982 <collisionShapes> 983 <SphereCollisionShape radius="3000" position="0,0,0" /> 981 <Planet 982 mesh="planets/planet3.mesh" 983 atmosphere="atmosphere1" 984 atmospheresize="80.0f" 985 imagesize="1024.0f" 986 > 987 <attached> 988 <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> 989 </attached> 990 </Planet> 991 </attached> 992 <collisionShapes> 993 <SphereCollisionShape radius="3000" position="0,0,0" /> 984 994 </collisionShapes> 985 </ Planet>995 </MovableEntity> 986 996 987 997 <?lua -
code/branches/cegui0.8_ogre1.9/data/levels/shuttleRetaliation.oxw
r11104 r11795 880 880 <!-- Planets --> 881 881 882 <Planet882 <MovableEntity 883 883 position="<?lua printC(cPlanet1) ?>" 884 884 scale="3000" … … 888 888 mass="5000000" 889 889 pitch="0" 890 mesh="planets/muunilinst.mesh"891 atmosphere="atmosphere1"892 890 rotationaxis="1,0,0" 893 891 rotationrate="1.0" 894 atmospheresize="80.0f"895 imagesize="1024.0f"896 892 collisiondamage = 2 897 893 enablecollisiondamage = true 898 visible=true 899 active=true 900 > 894 > 901 895 <attached> 902 <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> 903 </attached> 904 <collisionShapes> 905 <SphereCollisionShape radius="3000" position="0,0,0" /> 896 <Planet 897 mesh="planets/muunilinst.mesh" 898 atmosphere="atmosphere1" 899 atmospheresize="80.0f" 900 imagesize="1024.0f" 901 visible=true 902 active=true 903 > 904 <attached> 905 <ForceField position="0,0,0" mode="sphere" diameter="6000" velocity="-500" /> 906 </attached> 907 </Planet> 908 </attached> 909 <collisionShapes> 910 <SphereCollisionShape radius="3000" position="0,0,0" /> 906 911 </collisionShapes> 907 </ Planet>912 </MovableEntity> 908 913 909 914 <?lua … … 912 917 ?> 913 918 914 < Planet919 <MovableEntity 915 920 position="<?lua printC(cPlanet2) ?>" 916 921 scale="2000" … … 920 925 mass="5000000" 921 926 pitch="0" 922 mesh="planets/ganymede.mesh"923 atmosphere="atmosphere1"924 927 rotationaxis="1,0,0" 925 928 rotationrate="1.0" 926 atmospheresize="80.0f"927 imagesize="1024.0f"928 929 collisiondamage = 2 929 930 enablecollisiondamage = true 930 visible=true 931 active=true 932 > 931 > 933 932 <attached> 934 <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> 935 </attached> 936 <collisionShapes> 937 <SphereCollisionShape radius="2000" position="0,0,0" /> 933 <Planet 934 mesh="planets/ganymede.mesh" 935 atmosphere="atmosphere1" 936 atmospheresize="80.0f" 937 imagesize="1024.0f" 938 visible=true 939 active=true 940 > 941 <attached> 942 <ForceField position="0,0,0" mode="sphere" diameter="4000" velocity="-500" /> 943 </attached> 944 </Planet> 945 </attached> 946 <collisionShapes> 947 <SphereCollisionShape radius="2000" position="0,0,0" /> 938 948 </collisionShapes> 939 </ Planet>949 </MovableEntity> 940 950 941 951 <?lua … … 946 956 <!-- EnemyPlanet --> 947 957 948 < Planet958 <MovableEntity 949 959 position="<?lua printC(cEnemyBasePlanet) ?>" 950 960 scale="5000" … … 954 964 mass="5000000" 955 965 pitch="0" 956 mesh="planets/jupiter.mesh"957 atmosphere="atmosphere1"958 966 rotationaxis="1,0,0" 959 967 rotationrate="1.0" 960 atmospheresize="80.0f"961 imagesize="1024.0f"962 968 collisiondamage = 2 963 969 enablecollisiondamage = true 964 visible=false965 active=false966 970 > 967 <attached> 971 <attached> 972 <Planet 973 mesh="planets/jupiter.mesh" 974 atmosphere="atmosphere1" 975 atmospheresize="80.0f" 976 imagesize="1024.0f" 977 visible=false 978 active=false 979 > 980 <attached> 968 981 <ForceField position="0,0,0" rotationaxis="0.1,1,0.1"mode="sphere" diameter="10000" velocity="-500" /> 969 </attached>970 <events>982 </attached> 983 <events> 971 984 <activity> 972 985 <Trigger name="enemyPlanetVisible" mode=and> … … 1005 1018 </Trigger> 1006 1019 </visibility> 1007 </events> 1008 <collisionShapes> 1009 <SphereCollisionShape position="0,0,0" radius=5000/> 1010 </collisionShapes> 1011 </Planet> 1020 </events> 1021 </Planet> 1022 </attached> 1023 <collisionShapes> 1024 <SphereCollisionShape position="0,0,0" radius=5000/> 1025 </collisionShapes> 1026 </MovableEntity> 1012 1027 1013 1028 <!-- Pawn that represents the planet during destruction --> -
code/branches/cegui0.8_ogre1.9/data/levels/testSwallow.oxw
r9348 r11795 56 56 ?> 57 57 <?lua end ?> 58 <Planet position="0,0,0" scale=10000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="1,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f /> 58 <MovableEntity position="0,0,0" scale=10000 pitch=-90 rotationaxis="1,1,0" rotationrate="1" > 59 <attached> 60 <Planet mesh="iceplanet.mesh" atmosphere="atmosphere1" atmospheresize=224.0f imagesize=1024.0f /> 61 </attached> 62 </MovableEntity> 59 63 60 64 </Scene> -
code/branches/cegui0.8_ogre1.9/src/libraries/core/CMakeLists.txt
r11712 r11795 95 95 LINK_LIBRARIES 96 96 ${OGRE_LIBRARY} 97 ${OGRE_OVERLAY_LIBRARY} 97 98 ${Boost_FILESYSTEM_LIBRARY} 98 99 ${Boost_SYSTEM_LIBRARY} # Filesystem dependency -
code/branches/cegui0.8_ogre1.9/src/libraries/core/GUIManager.cc
r11117 r11795 482 482 assert(guiSystem_); 483 483 this->protectedCeguiSystemCall(std::bind(&CEGUI::System::injectTimePulse, arg::_1, time.getDeltaTime())); 484 #if CEGUI_VERSION >= 0x000800 485 this->protectedCeguiContextCall(std::bind(&CEGUI::GUIContext::injectTimePulse, arg::_1, time.getDeltaTime())); 486 #endif 484 487 } 485 488 … … 664 667 this->setBackgroundImage(""); 665 668 else 666 this->setBackgroundImage( "set: " + imageSet + " image:" + imageName);669 this->setBackgroundImage(imageSet + "/" + imageName); 667 670 } 668 671 … … 846 849 bool GUIManager::protectedCeguiContextCall(FunctionType function) 847 850 { 848 return this->protectedCall(function, this->guiSystem_->getDefaultGUIContext());851 return this->protectedCall(function, &this->guiSystem_->getDefaultGUIContext()); 849 852 } 850 853 #endif -
code/branches/cegui0.8_ogre1.9/src/libraries/core/GraphicsManager.cc
r11115 r11795 45 45 #include <OgreViewport.h> 46 46 #include <OgreWindowEventUtilities.h> 47 #if OGRE_VERSION >= 0x010900 48 # include <Overlay/OgreOverlaySystem.h> 49 #endif 47 50 48 51 #include "SpecialConfig.h" … … 115 118 this->loadOgreRoot(); 116 119 120 #if OGRE_VERSION >= 0x010900 121 this->overlaySystem_ = new Ogre::OverlaySystem(); 122 #else 123 this->overlaySystem_ = nullptr; 124 #endif 125 117 126 // At first, add the root paths of the data directories as resource locations 118 127 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getDataPathString(), "FileSystem"); … … 155 164 Loader::getInstance().unload(extResources_.get()); 156 165 166 #if OGRE_VERSION >= 0x010900 167 safeObjectDelete(&overlaySystem_); 168 #endif 157 169 safeObjectDelete(&ogreRoot_); 158 170 safeObjectDelete(&ogreLogger_); -
code/branches/cegui0.8_ogre1.9/src/libraries/core/GraphicsManager.h
r11085 r11795 52 52 53 53 #include "util/DestructionHelper.h" 54 #include "util/OgreForwardRefs.h" 54 55 #include "util/Singleton.h" 55 56 #include "config/Configurable.h" … … 79 80 void postUpdate(const Clock& time); 80 81 81 Ogre::Viewport* getViewport() { return this->viewport_; } 82 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 82 Ogre::Viewport* getViewport() { return this->viewport_; } 83 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 84 Ogre::OverlaySystem* getOverlaySystem() { return this->overlaySystem_; } 83 85 size_t getRenderWindowHandle(); 84 86 … … 129 131 Ogre::RenderWindow* renderWindow_; //!< the one and only render window 130 132 Ogre::Viewport* viewport_; //!< default full size viewport 133 Ogre::OverlaySystem* overlaySystem_; 131 134 GlowMaterialListener* glowMaterialListener_; //!< Material Listener for the 'Glow' compositor 132 135 float lastFrameStartTime_; //!< Time stamp of the beginning of the last frame -
code/branches/cegui0.8_ogre1.9/src/libraries/util/DisplayStringConversions.h
r11071 r11795 37 37 38 38 #include "UtilPrereqs.h" 39 #include <OgreOverlayElement.h> 39 #include <OgrePrerequisites.h> 40 #if OGRE_VERSION >= 0x010900 41 # include <Overlay/OgreOverlayElement.h> 42 #else 43 # include <OgreOverlayElement.h> 44 #endif 40 45 41 46 #if OGRE_UNICODE_SUPPORT -
code/branches/cegui0.8_ogre1.9/src/libraries/util/OgreForwardRefs.h
r7168 r11795 67 67 class Factory; 68 68 class Font; 69 class FontPtr;70 69 class FontManager; 71 70 struct FrameEvent; … … 73 72 class Frustum; 74 73 class GpuProgram; 75 class GpuProgramPtr;76 74 class GpuProgramManager; 77 75 class GpuProgramUsage; … … 82 80 class HardwarePixelBufferSharedPtr; 83 81 class HighLevelGpuProgram; 84 class HighLevelGpuProgramPtr;85 82 class HighLevelGpuProgramManager; 86 83 class HighLevelGpuProgramFactory; … … 96 93 class ManualObject; 97 94 class Material; 98 class MaterialPtr;99 95 class MaterialManager; 100 96 class MaterialScriptCompiler; … … 104 100 class MemoryManager; 105 101 class Mesh; 106 class MeshPtr;107 102 class MeshSerializer; 108 103 class MeshSerializerImpl; … … 120 115 class OverlayElementFactory; 121 116 class OverlayManager; 117 class OverlaySystem; 122 118 class Particle; 123 119 class ParticleAffector; … … 179 175 class SimpleSpline; 180 176 class Skeleton; 181 class SkeletonPtr;182 177 class SkeletonInstance; 183 178 class SkeletonManager; … … 195 190 class TextureUnitState; 196 191 class Texture; 197 class TexturePtr;198 192 class TextureFont; 199 193 class TextureManager; -
code/branches/cegui0.8_ogre1.9/src/modules/designtools/ScreenshotManager.cc
r11071 r11795 101 101 } 102 102 if(!this->tempTexture_.isNull()) 103 this->tempTexture_. freeMethod();103 this->tempTexture_.setNull(); 104 104 } 105 105 -
code/branches/cegui0.8_ogre1.9/src/modules/hover/FlagHUD.cc
r11071 r11795 32 32 #include "FlagHUD.h" 33 33 34 #include <OgreOverlayManager.h> 35 #include <OgreMaterialManager.h> 36 #include <OgrePanelOverlayElement.h> 34 #if OGRE_VERSION >= 0x010900 35 # include <Overlay/OgreOverlayManager.h> 36 # include <Overlay/OgrePanelOverlayElement.h> 37 #else 38 # include <OgreOverlayManager.h> 39 # include <OgrePanelOverlayElement.h> 40 #endif 37 41 38 42 #include "util/StringUtils.h" -
code/branches/cegui0.8_ogre1.9/src/modules/objects/Planet.cc
r10624 r11795 31 31 #include <OgreEntity.h> 32 32 #include <OgreBillboardSet.h> 33 #include <OgreProgressiveMesh.h>34 33 35 34 #include "core/CoreIncludes.h" … … 47 46 * @brief Constructor 48 47 */ 49 Planet::Planet(Context* context) : Mo vableEntity(context)48 Planet::Planet(Context* context) : Model(context) 50 49 { 51 50 RegisterObject(Planet); 51 this->setLodEnabled(false); 52 52 this->registerVariables(); 53 53 } … … 58 58 Planet::~Planet() 59 59 { 60 if (this->isInitialized() && this->mesh_.getEntity())61 this->detachOgreObject(this->mesh_.getEntity());62 60 } 63 61 … … 87 85 } 88 86 89 void Planet::changed Mesh()87 void Planet::changedAtmosphere() 90 88 { 91 89 if( GameMode::showsGraphics() ) 92 90 { 93 if (this->mesh_.getEntity()) 94 this->detachOgreObject(this->mesh_.getEntity()); 95 96 this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_); 97 98 if (this->mesh_.getEntity()) 91 if (this->getMesh().getEntity()) 99 92 { 100 this->attachOgreObject(this->mesh_.getEntity()); 101 this->mesh_.getEntity()->setCastShadows(this->bCastShadows_); 102 this->mesh_.setVisible(this->isVisible()); 103 104 float scaleFactor = this->getScale(); 105 106 #if OGRE_VERSION >= 0x010800 107 Ogre::ProgressiveMesh::LodValueList distList; 108 #elif OGRE_VERSION >= 0x010700 109 Ogre::Mesh::LodValueList distList; 110 #else 111 Ogre::Mesh::LodDistanceList distList; 112 #endif 113 114 distList.push_back(10.0f*scaleFactor); 115 distList.push_back(19.0f*scaleFactor); 116 distList.push_back(27.0f*scaleFactor); 117 distList.push_back(34.0f*scaleFactor); 118 distList.push_back(40.0f*scaleFactor); 119 distList.push_back(45.0f*scaleFactor); 120 distList.push_back(49.0f*scaleFactor); 121 distList.push_back(52.0f*scaleFactor); 122 distList.push_back(54.0f*scaleFactor); 123 distList.push_back(55.0f*scaleFactor); 124 125 float reductionValue = 0.2f; 126 127 #if OGRE_VERSION >= 0x010800 128 Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, 129 reductionValue); 130 #else 131 this->mesh_.getEntity()->getMesh()->generateLodLevels(distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, reductionValue); 132 #endif 133 billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0)); 93 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), this->atmosphere_, Vector3(0,0,0)); 134 94 135 95 this->attachOgreObject(this->billboard_.getBillboardSet()); 136 96 this->billboard_.getBillboardSet()->setUseAccurateFacing(true); 137 this->setCastShadows(true); 138 this->billboard_.getBillboardSet()->setRenderQueueGroup(this->mesh_.getEntity()->getRenderQueueGroup()); 139 this->mesh_.setCastShadows(true); 97 this->billboard_.getBillboardSet()->setRenderQueueGroup(this->getMesh().getEntity()->getRenderQueueGroup()); 140 98 } 141 99 } 142 }143 144 void Planet::changedShadows()145 {146 this->mesh_.setCastShadows(this->bCastShadows_);147 100 } 148 101 … … 154 107 XMLPortParam(Planet, "atmospheresize", setAtmosphereSize, getAtmosphereSize, xmlelement,mode); 155 108 XMLPortParam(Planet, "imagesize", setImageSize, getImageSize, xmlelement,mode); 156 XMLPortParam(Planet, "mesh", setMeshSource, getMeshSource, xmlelement, mode);157 XMLPortParam(Planet, "shadow", setCastShadows, getCastShadows, xmlelement, mode).defaultValues(true);158 109 } 159 110 160 111 void Planet::registerVariables() 161 112 { 162 registerVariable(this->atmosphere_, VariableDirection::ToClient );113 registerVariable(this->atmosphere_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedAtmosphere)); 163 114 registerVariable(this->atmosphereSize, VariableDirection::ToClient); 164 115 registerVariable(this->imageSize, VariableDirection::ToClient); 165 // Note: the meshSrc should be synchronised after atmosphere and other values, because the meshSrc callback setts the atmosphere billboards166 registerVariable(this->meshSrc_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedMesh));167 registerVariable(this->bCastShadows_, VariableDirection::ToClient, new NetworkCallback<Planet>(this, &Planet::changedShadows));168 116 } 169 117 … … 171 119 { 172 120 SUPER(Planet, changedVisibility); 173 if (this->isInitialized()) 174 { 175 this->mesh_.setVisible(this->isVisible()); 176 this->billboard_.setVisible(this->isVisible()); 177 } 121 122 this->billboard_.setVisible(this->isVisible()); 178 123 } 179 124 } -
code/branches/cegui0.8_ogre1.9/src/modules/objects/Planet.h
r11071 r11795 40 40 #include <string> 41 41 #include "tools/BillboardSet.h" 42 #include "tools/ Mesh.h"43 #include " worldentities/MovableEntity.h"42 #include "tools/interfaces/Tickable.h" 43 #include "graphics/Model.h" 44 44 45 45 namespace orxonox 46 46 { 47 class _ObjectsExport Planet : public Mo vableEntity47 class _ObjectsExport Planet : public Model, public Tickable 48 48 { 49 49 public: … … 58 58 virtual void changedVisibility() override; 59 59 60 inline void setMeshSource(const std::string& meshname)61 { this->meshSrc_ = meshname; this->changedMesh(); }62 63 inline const std::string& getMeshSource() const64 { return this->meshSrc_; }65 66 inline void setCastShadows(bool bCastShadows)67 { this->bCastShadows_ = bCastShadows; this->changedShadows(); }68 69 inline bool getCastShadows() const70 { return this->bCastShadows_; }71 72 inline const std::string& getMesh() const{73 return this->meshSrc_;74 }75 76 60 inline void setAtmosphereSize(float size){ 77 61 this->atmosphereSize = size; … … 84 68 inline void setAtmosphere(const std::string& atmosphere){ 85 69 this->atmosphere_ = atmosphere; 70 this->changedAtmosphere(); 86 71 } 87 72 … … 103 88 void registerVariables(); 104 89 105 void changedMesh(); 106 void changedShadows(); 90 void changedAtmosphere(); 107 91 108 std::string meshSrc_;109 92 std::string atmosphere_; 110 Mesh mesh_;111 93 float atmosphereSize; 112 94 float imageSize; 113 95 BillboardSet billboard_; 114 bool bCastShadows_;115 96 116 97 }; -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/FadeoutText.cc
r9667 r11795 29 29 #include "FadeoutText.h" 30 30 31 #include <OgreTextAreaOverlayElement.h> 31 #if OGRE_VERSION >= 0x010900 32 # include <Overlay/OgreTextAreaOverlayElement.h> 33 #else 34 # include <OgreTextAreaOverlayElement.h> 35 #endif 32 36 #include "util/Math.h" 33 37 #include "core/CoreIncludes.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/OverlayText.cc
r11071 r11795 29 29 #include "OverlayText.h" 30 30 31 #include <OgreOverlayManager.h> 32 #include <OgrePanelOverlayElement.h> 33 #include <OgreTextAreaOverlayElement.h> 31 #if OGRE_VERSION >= 0x010900 32 # include <Overlay/OgreOverlayManager.h> 33 # include <Overlay/OgrePanelOverlayElement.h> 34 # include <Overlay/OgreTextAreaOverlayElement.h> 35 #else 36 # include <OgreOverlayManager.h> 37 # include <OgrePanelOverlayElement.h> 38 # include <OgreTextAreaOverlayElement.h> 39 #endif 34 40 35 41 #include "util/StringUtils.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/ChatOverlay.cc
r11083 r11795 30 30 31 31 #include <string> 32 #include <OgreTextAreaOverlayElement.h> 32 33 #if OGRE_VERSION >= 0x010900 34 # include <Overlay/OgreTextAreaOverlayElement.h> 35 #else 36 # include <OgreTextAreaOverlayElement.h> 37 #endif 33 38 34 39 #include "util/Convert.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/ChatOverlay.h
r11071 r11795 33 33 34 34 #include <list> 35 #include <OgreOverlayElement.h> 35 36 #include <OgrePrerequisites.h> 37 #if OGRE_VERSION >= 0x010900 38 # include <Overlay/OgreOverlayElement.h> 39 #else 40 # include <OgreOverlayElement.h> 41 #endif 36 42 37 43 #include "chat/ChatListener.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDBar.cc
r11071 r11795 32 32 #include "HUDBar.h" 33 33 34 #include <OgreOverlayManager.h>35 34 #include <OgreMaterialManager.h> 36 35 #include <OgreTechnique.h> 37 36 #include <OgrePass.h> 38 #include <OgrePanelOverlayElement.h> 37 38 #if OGRE_VERSION >= 0x010900 39 # include <Overlay/OgreOverlayManager.h> 40 # include <Overlay/OgrePanelOverlayElement.h> 41 #else 42 # include <OgreOverlayManager.h> 43 # include <OgrePanelOverlayElement.h> 44 #endif 39 45 40 46 #include "util/Convert.h" … … 248 254 return this->icon_->getMaterialName(); 249 255 } 256 257 void HUDBar::setIconPosition(Vector2 position) 258 { 259 this->icon_->setPosition(position.x, position.y); 260 } 261 262 void HUDBar::setIconDimensions(Vector2 dimensions) 263 { 264 this->icon_->setDimensions(dimensions.x, dimensions.y); 265 } 250 266 } -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDBar.h
r11071 r11795 37 37 #include <map> 38 38 #include <vector> 39 #include <OgrePanelOverlayElement.h>40 39 41 40 #include "util/Math.h" … … 122 121 { return this->currentColour_; } 123 122 124 inline void setIconPosition(Vector2 position) 125 { this->icon_->setPosition(position.x, position.y); } 126 inline void setIconDimensions(Vector2 dimensions) 127 { this->icon_->setDimensions(dimensions.x, dimensions.y); } 123 void setIconPosition(Vector2 position); 124 void setIconDimensions(Vector2 dimensions); 128 125 129 126 protected: -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDNavigation.cc
r11071 r11795 32 32 33 33 #include <OgreCamera.h> 34 #include <OgreFontManager.h> 35 #include <OgreOverlayManager.h> 36 #include <OgreTextAreaOverlayElement.h> 37 #include <OgrePanelOverlayElement.h> 34 35 #if OGRE_VERSION >= 0x010900 36 # include <Overlay/OgreFontManager.h> 37 # include <Overlay/OgreOverlayManager.h> 38 # include <Overlay/OgreTextAreaOverlayElement.h> 39 # include <Overlay/OgrePanelOverlayElement.h> 40 #else 41 # include <OgreFontManager.h> 42 # include <OgreOverlayManager.h> 43 # include <OgreTextAreaOverlayElement.h> 44 # include <OgrePanelOverlayElement.h> 45 #endif 38 46 39 47 #include <typeinfo> -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDRadar.cc
r11071 r11795 31 31 #include "HUDRadar.h" 32 32 33 #include <OgreOverlayManager.h> 34 #include <OgrePanelOverlayElement.h> 33 #if OGRE_VERSION >= 0x010900 34 # include <Overlay/OgreOverlayManager.h> 35 # include <Overlay/OgrePanelOverlayElement.h> 36 #else 37 # include <OgreOverlayManager.h> 38 # include <OgrePanelOverlayElement.h> 39 #endif 35 40 36 41 #include "util/Math.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDWeapon.cc
r11071 r11795 28 28 29 29 #include "HUDWeapon.h" 30 31 #if OGRE_VERSION >= 0x010900 32 # include <Overlay/OgreOverlayManager.h> 33 # include <Overlay/OgrePanelOverlayElement.h> 34 #else 35 # include <OgreOverlayManager.h> 36 # include <OgrePanelOverlayElement.h> 37 #endif 30 38 31 39 #include "core/CoreIncludes.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDWeapon.h
r11071 r11795 35 35 #include <vector> 36 36 #include <string> 37 38 #include <OgreOverlayManager.h>39 #include <OgrePanelOverlayElement.h>40 37 41 38 #include "overlays/OrxonoxOverlay.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDWeaponMode.cc
r11071 r11795 28 28 29 29 #include "HUDWeaponMode.h" 30 31 #if OGRE_VERSION >= 0x010900 32 # include <Overlay/OgreOverlayManager.h> 33 # include <Overlay/OgrePanelOverlayElement.h> 34 #else 35 # include <OgreOverlayManager.h> 36 # include <OgrePanelOverlayElement.h> 37 #endif 30 38 31 39 #include "util/Convert.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/hud/HUDWeaponMode.h
r11071 r11795 36 36 #include <vector> 37 37 #include <string> 38 39 #include <OgreOverlayManager.h>40 #include <OgrePanelOverlayElement.h>41 38 42 39 #include "overlays/OrxonoxOverlay.h" -
code/branches/cegui0.8_ogre1.9/src/modules/overlays/stats/Stats.cc
r11071 r11795 30 30 31 31 #include <string> 32 #include <OgreOverlayManager.h> 33 #include <OgreBorderPanelOverlayElement.h> 32 33 #if OGRE_VERSION >= 0x010900 34 # include <Overlay/OgreOverlayManager.h> 35 # include <Overlay/OgreBorderPanelOverlayElement.h> 36 #else 37 # include <OgreOverlayManager.h> 38 # include <OgreBorderPanelOverlayElement.h> 39 #endif 34 40 35 41 #include "util/StringUtils.h" -
code/branches/cegui0.8_ogre1.9/src/orxonox/CMakeLists.txt
r11704 r11795 71 71 LINK_LIBRARIES 72 72 ${OGRE_LIBRARY} 73 ${OGRE_OVERLAY_LIBRARY} 73 74 ${CEGUI} 74 75 ${LUA5.1_LIBRARY} -
code/branches/cegui0.8_ogre1.9/src/orxonox/RenderQueueListener.cc
r11080 r11795 83 83 renderSystem->setStencilBufferParams(Ogre::CMPF_ALWAYS_PASS, 84 84 STENCIL_VALUE_FOR_GLOW, STENCIL_FULL_MASK, 85 #if OGRE_VERSION >= 0x010900 86 STENCIL_FULL_MASK, 87 #endif 85 88 Ogre::SOP_KEEP,Ogre::SOP_KEEP,Ogre::SOP_REPLACE,false); 86 89 } … … 91 94 renderSystem->setStencilBufferParams(Ogre::CMPF_NOT_EQUAL, 92 95 STENCIL_VALUE_FOR_GLOW, STENCIL_FULL_MASK, 96 #if OGRE_VERSION >= 0x010900 97 STENCIL_FULL_MASK, 98 #endif 93 99 Ogre::SOP_KEEP,Ogre::SOP_KEEP,Ogre::SOP_REPLACE,false); 94 100 } -
code/branches/cegui0.8_ogre1.9/src/orxonox/Scene.cc
r11085 r11795 40 40 #include <OgreSceneManagerEnumerator.h> 41 41 #include <OgreSceneNode.h> 42 #if OGRE_VERSION >= 0x010900 43 # include <Overlay/OgreOverlaySystem.h> 44 #endif 42 45 43 46 #include <BulletCollision/BroadphaseCollision/btAxisSweep3.h> … … 90 93 this->renderQueueListener_ = new RenderQueueListener(); 91 94 this->sceneManager_->addRenderQueueListener(this->renderQueueListener_);//add our own renderQueueListener 95 #if OGRE_VERSION >= 0x010900 96 this->sceneManager_->addRenderQueueListener(GraphicsManager::getInstance().getOverlaySystem()); 97 #endif 92 98 93 99 this->radar_ = new Radar(); … … 134 140 if (GameMode::showsGraphics()) 135 141 { 142 #if OGRE_VERSION >= 0x010900 143 this->sceneManager_->removeRenderQueueListener(GraphicsManager::getInstance().getOverlaySystem()); 144 #endif 136 145 this->sceneManager_->removeRenderQueueListener(this->renderQueueListener_); 137 146 delete this->renderQueueListener_; -
code/branches/cegui0.8_ogre1.9/src/orxonox/chat/ChatInputHandler.cc
r11083 r11795 131 131 /* GET WINDOW POINTERS */ 132 132 #if CEGUI_VERSION >= 0x000800 133 input = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox/input" ); 134 inputonly = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox-inputonly/input" ); 135 CEGUI::Window *history = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox/history" ); 133 //input = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "ChatBox/input" ); 134 //const CEGUI::Window* root = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild("MenuRootWindow"); 135 //std::cout << "Count: " << root->getChildCount() << std::endl; 136 //for (int i = 0; i < root->getChildCount(); ++i) { 137 // std::cout << "Child: " << root->getChildAtIdx(i)->getName() << std::endl; 138 //} 139 for (auto iterator = CEGUI::WindowManager::getSingleton().getIterator(); !iterator.isAtEnd(); iterator++) { 140 CEGUI::Window* currentWindow = iterator.getCurrentValue(); 141 if (currentWindow->getName().compare("ChatBox") == 0) { 142 input = currentWindow->getChild("frame")->getChild("input"); 143 CEGUI::Window* history = currentWindow->getChild("frame")->getChild("history"); 144 lb_history = dynamic_cast<CEGUI::Listbox*>(history); 145 } else if (currentWindow->getName().compare("ChatBox-inputonly") == 0) { 146 inputonly = currentWindow->getChild("input"); 147 } 148 } 149 150 //input = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "ChatBox" )->getChild("frame")->getChild("input"); 151 //inputonly = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox-inputonly/input" ); 152 //CEGUI::Window *history = CEGUI::System::getSingleton().getDefaultGUIContext().getRootWindow()->getChild( "orxonox/ChatBox/history" ); 136 153 #else 137 154 input = CEGUI::WindowManager::getSingleton().getWindow( "orxonox/ChatBox/input" ); 138 155 inputonly = CEGUI::WindowManager::getSingleton().getWindow( "orxonox/ChatBox-inputonly/input" ); 139 156 CEGUI::Window *history = CEGUI::WindowManager::getSingleton().getWindow( "orxonox/ChatBox/history" ); 140 #endif141 157 142 158 /* cast it to a listbox */ 143 159 lb_history = dynamic_cast<CEGUI::Listbox*>(history); 160 #endif 144 161 145 162 /* assert wee */ -
code/branches/cegui0.8_ogre1.9/src/orxonox/controllers/NewHumanController.cc
r11071 r11795 397 397 try 398 398 { 399 wePtr = orxonox_cast<WorldEntity*>(Ogre::any_cast<OrxonoxClass*>(itr->movable->getUserAny())); 399 #if OGRE_VERSION >= 0x010900 400 const Ogre::Any& any = itr->movable->getUserObjectBindings().getUserAny(); 401 #else 402 const Ogre::Any& any = itr->movable->getUserAny(); 403 #endif 404 wePtr = orxonox_cast<WorldEntity*>(Ogre::any_cast<OrxonoxClass*>(any)); 400 405 } 401 406 catch (...) -
code/branches/cegui0.8_ogre1.9/src/orxonox/graphics/AnimatedModel.cc
r9667 r11795 49 49 AnimatedModel::~AnimatedModel() 50 50 { 51 if (this->isInitialized() && this-> mesh_.getEntity())52 this->detachOgreObject(this-> mesh_.getEntity());51 if (this->isInitialized() && this->getMesh().getEntity()) 52 this->detachOgreObject(this->getMesh().getEntity()); 53 53 } 54 54 … … 66 66 if (GameMode::showsGraphics()) 67 67 { 68 if (this-> mesh_.getEntity())69 this->detachOgreObject(this-> mesh_.getEntity());68 if (this->getMesh().getEntity()) 69 this->detachOgreObject(this->getMesh().getEntity()); 70 70 71 this-> mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);71 this->getMesh().setMeshSource(this->getScene()->getSceneManager(), this->getMeshSource()); 72 72 73 if (this-> mesh_.getEntity())73 if (this->getMesh().getEntity()) 74 74 { 75 this->attachOgreObject(this-> mesh_.getEntity());76 this-> mesh_.getEntity()->setCastShadows(this->bCastShadows_);75 this->attachOgreObject(this->getMesh().getEntity()); 76 this->getMesh().getEntity()->setCastShadows(this->getCastShadows()); 77 77 this->setAnimationState(this->bAnimLoop_, this->bAnimEnabled_, this->anims_); 78 this-> mesh_.setVisible(this->isVisible());78 this->getMesh().setVisible(this->isVisible()); 79 79 } 80 80 } … … 89 89 if(state!="") 90 90 { 91 if(this-> mesh_.getEntity()->getAnimationState(state))91 if(this->getMesh().getEntity()->getAnimationState(state)) 92 92 { 93 Ogre::AnimationState* as = this-> mesh_.getEntity()->getAnimationState(state);93 Ogre::AnimationState* as = this->getMesh().getEntity()->getAnimationState(state); 94 94 as->setLoop(loop); 95 95 as->setEnabled(enabled); … … 109 109 void AnimatedModel::tick(float dt) 110 110 { 111 if(this-> mesh_.getEntity()->getAnimationState(anims_))111 if(this->getMesh().getEntity()->getAnimationState(anims_)) 112 112 { 113 113 // Test to change Material at runtime! 114 114 115 // Ogre::MaterialPtr mat = this-> mesh_.getEntity()->getSubEntity(0)->getMaterial();115 // Ogre::MaterialPtr mat = this->getMesh().getEntity()->getSubEntity(0)->getMaterial(); 116 116 // mat->setDiffuse(0.4, 0.3, 0.1, 0.1); 117 117 // mat->setAmbient(0.3, 0.7, 0.8); … … 121 121 // mat->setSceneBlending(sbt); 122 122 123 Ogre::AnimationState* as = this-> mesh_.getEntity()->getAnimationState(anims_);123 Ogre::AnimationState* as = this->getMesh().getEntity()->getAnimationState(anims_); 124 124 as->addTime(dt); 125 125 } -
code/branches/cegui0.8_ogre1.9/src/orxonox/graphics/Camera.cc
r9667 r11795 62 62 63 63 this->camera_ = this->getScene()->getSceneManager()->createCamera(getUniqueNumberString()); 64 static_cast<Ogre::MovableObject*>(this->camera_)->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 64 Ogre::MovableObject* movable = static_cast<Ogre::MovableObject*>(this->camera_); 65 #if OGRE_VERSION >= 0x010900 66 movable->getUserObjectBindings().setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 67 #else 68 movable->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 69 #endif 65 70 this->cameraNode_ = this->getScene()->getRootSceneNode()->createChildSceneNode(); 66 71 this->attachNode(this->cameraNode_); -
code/branches/cegui0.8_ogre1.9/src/orxonox/graphics/Model.cc
r11783 r11795 30 30 31 31 #include <OgreEntity.h> 32 #include <OgreProgressiveMesh.h> 32 #if OGRE_VERSION >= 0x010900 33 # include <OgreProgressiveMeshGenerator.h> 34 # include <OgreDistanceLodStrategy.h> 35 #else 36 # include <OgreProgressiveMesh.h> 37 #endif 33 38 34 39 #include "core/CoreIncludes.h" … … 203 208 { 204 209 float volume = this->mesh_.getEntity()->getBoundingBox().volume(); 205 /*206 float scaleFactor = 1;207 208 BaseObject* creatorPtr = this;209 210 while(creatorPtr!=nullptr&&orxonox_cast<WorldEntity*>(creatorPtr))211 {212 scaleFactor *= getBiggestScale(((WorldEntity*) creatorPtr)->getScale3D());213 creatorPtr = creatorPtr->getCreator();214 }215 orxout() << "name: " << this->meshSrc_ << "scaleFactor: " << scaleFactor << ", volume: " << volume << endl;216 */217 210 orxout(verbose, context::lod) << "Setting lodLevel for " << this->meshSrc_<< " with lodLevel_: " << this->lodLevel_ <<" and volume: "<< volume << ":" << endl; 218 211 219 #if OGRE_VERSION >= 0x010800 212 #if OGRE_VERSION >= 0x010900 213 Ogre::LodConfig::LodLevelList distList; 214 #elif OGRE_VERSION >= 0x010800 220 215 Ogre::ProgressiveMesh::LodValueList distList; 221 216 #elif OGRE_VERSION >= 0x010700 … … 227 222 if( lodLevel_>0 ) 228 223 { 229 // float factor = scaleFactor*5/lodLevel_;230 224 float factor = pow(volume, 2.0f / 3.0f) * 15.0f / lodLevel_; 231 225 232 226 orxout(verbose, context::lod) << "LodLevel set with factor: " << factor << endl; 233 227 234 distList.push_back(70.0f*factor);235 distList.push_back(140.0f*factor);236 distList.push_back(170.0f*factor);237 distList.push_back(200.0f*factor);238 distList.push_back(230.0f*factor);239 distList.push_back(250.0f*factor);240 distList.push_back(270.0f*factor);241 distList.push_back(290.0f*factor);242 distList.push_back(310.0f*factor);243 distList.push_back(330.0f*factor);228 addLodDistanceToList(distList, 70.0f*factor); 229 addLodDistanceToList(distList, 140.0f*factor); 230 addLodDistanceToList(distList, 170.0f*factor); 231 addLodDistanceToList(distList, 200.0f*factor); 232 addLodDistanceToList(distList, 230.0f*factor); 233 addLodDistanceToList(distList, 250.0f*factor); 234 addLodDistanceToList(distList, 270.0f*factor); 235 addLodDistanceToList(distList, 290.0f*factor); 236 addLodDistanceToList(distList, 310.0f*factor); 237 addLodDistanceToList(distList, 330.0f*factor); 244 238 while(distList.size()>this->numLodLevels_) 245 239 distList.pop_back(); … … 247 241 248 242 //Generiert LOD-Levels 249 #if OGRE_VERSION >= 0x010800 243 #if OGRE_VERSION >= 0x010900 244 Ogre::LodConfig config; 245 config.mesh = this->mesh_.getEntity()->getMesh(); 246 config.levels = distList; 247 config.strategy = Ogre::DistanceLodSphereStrategy::getSingletonPtr(); 248 249 Ogre::ProgressiveMeshGenerator generator; 250 generator.generateLodLevels(config); 251 #elif OGRE_VERSION >= 0x010800 250 252 Ogre::ProgressiveMesh::generateLodLevels(this->mesh_.getEntity()->getMesh().get(), distList, Ogre::ProgressiveMesh::VRQ_PROPORTIONAL, 251 253 this->lodReductionRate_); … … 270 272 #endif 271 273 } 274 275 template <class T> 276 void Model::addLodDistanceToList(T& list, float distance) 277 { 278 #if OGRE_VERSION >= 0x010900 279 list.push_back({distance, Ogre::LodLevel::VRM_COLLAPSE_COST, this->lodReductionRate_, 0, false}); 280 #else 281 list.push_back(distance); 282 #endif 283 } 272 284 } -
code/branches/cegui0.8_ogre1.9/src/orxonox/graphics/Model.h
r11783 r11795 89 89 90 90 protected: 91 inline Mesh& getMesh() 92 { return this->mesh_; } 93 94 inline void setLodEnabled(bool bLodEnabled) 95 { this->bLodEnabled_ = bLodEnabled; } 96 97 private: 91 98 /** 92 99 @brief … … 108 115 //LoD 109 116 void enableLod(); 117 118 template <class T> 119 void addLodDistanceToList(T& list, float distance); 110 120 111 121 inline void setLodLevel(float lodLevel) -
code/branches/cegui0.8_ogre1.9/src/orxonox/overlays/InGameConsole.cc
r11071 r11795 32 32 #include <algorithm> 33 33 #include <string> 34 #include <OgreOverlay.h> 35 #include <OgreOverlayElement.h> 36 #include <OgreOverlayManager.h> 37 #include <OgreOverlayContainer.h> 38 #include <OgreBorderPanelOverlayElement.h> 39 #include <OgreTextAreaOverlayElement.h> 40 #include <OgreFontManager.h> 41 #include <OgreFont.h> 34 #include <OgrePrerequisites.h> 35 #if OGRE_VERSION >= 0x010900 36 # include <Overlay/OgreOverlay.h> 37 # include <Overlay/OgreOverlayElement.h> 38 # include <Overlay/OgreOverlayManager.h> 39 # include <Overlay/OgreOverlayContainer.h> 40 # include <Overlay/OgreBorderPanelOverlayElement.h> 41 # include <Overlay/OgreTextAreaOverlayElement.h> 42 # include <Overlay/OgreFontManager.h> 43 # include <Overlay/OgreFont.h> 44 #else 45 # include <OgreOverlay.h> 46 # include <OgreOverlayElement.h> 47 # include <OgreOverlayManager.h> 48 # include <OgreOverlayContainer.h> 49 # include <OgreBorderPanelOverlayElement.h> 50 # include <OgreTextAreaOverlayElement.h> 51 # include <OgreFontManager.h> 52 # include <OgreFont.h> 53 #endif 42 54 43 55 #include "util/Clock.h" -
code/branches/cegui0.8_ogre1.9/src/orxonox/overlays/OrxonoxOverlay.cc
r11099 r11795 35 35 36 36 #include <cmath> 37 #include <OgreOverlay.h> 38 #include <OgreOverlayManager.h> 39 #include <OgrePanelOverlayElement.h> 37 #if OGRE_VERSION >= 0x010900 38 # include <Overlay/OgreOverlay.h> 39 # include <Overlay/OgreOverlayManager.h> 40 # include <Overlay/OgrePanelOverlayElement.h> 41 #else 42 # include <OgreOverlay.h> 43 # include <OgreOverlayManager.h> 44 # include <OgrePanelOverlayElement.h> 45 #endif 40 46 #include <OgreRenderWindow.h> 41 47 #include <OgreMaterialManager.h> -
code/branches/cegui0.8_ogre1.9/src/orxonox/worldentities/WorldEntity.cc
r11083 r11795 548 548 { 549 549 this->node_->attachObject(object); 550 #if OGRE_VERSION >= 0x010900 551 object->getUserObjectBindings().setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 552 #else 550 553 object->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(this))); 554 #endif 551 555 } 552 556 … … 563 567 void WorldEntity::detachOgreObject(Ogre::MovableObject* object) 564 568 { 569 #if OGRE_VERSION >= 0x010900 570 object->getUserObjectBindings().setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(nullptr))); 571 #else 565 572 object->setUserAny(Ogre::Any(static_cast<OrxonoxClass*>(nullptr))); 573 #endif 566 574 this->node_->detachObject(object); 567 575 }
Note: See TracChangeset
for help on using the changeset viewer.