Please Help!
Posted: Mon Oct 31, 2005 21:48
Hello all,
I'm (as you will notice) very new to CEGUI. I'm currently working at a framework to use together with Ogre3D and in the near future I will be porting a game done with D3D to Ogre (and CEGUI).
Anyway, I have some questions that have risen when I was looking to add a property to an object. Let me clarify:
I am working with .xml descriptions of the Layout. The thing is, every component that I want to draw on the screen needs a new property, let's call it TEXT2.
What I have done (and has not worked so far) is writing on the xml the line:
And I was hoping that CEGUI would just add that tuple to the component properties table. Unfortunatly, when I ask for the property, by making a call to Window::getProperty(), I get an exception. I know the exception means that the property is not in the iterator list.
***
I have not yet been able to understand how does CEGUI associates the hardcoded classes with the names in the xml file. I ask, to simply add a property to all classes will I have to make a child class for each component? Or there an easier way?
I'm (as you will notice) very new to CEGUI. I'm currently working at a framework to use together with Ogre3D and in the near future I will be porting a game done with D3D to Ogre (and CEGUI).
Anyway, I have some questions that have risen when I was looking to add a property to an object. Let me clarify:
I am working with .xml descriptions of the Layout. The thing is, every component that I want to draw on the screen needs a new property, let's call it TEXT2.
What I have done (and has not worked so far) is writing on the xml the line:
Code: Select all
<Property Name="Text2" Value="Google!" />
And I was hoping that CEGUI would just add that tuple to the component properties table. Unfortunatly, when I ask for the property, by making a call to Window::getProperty(), I get an exception. I know the exception means that the property is not in the iterator list.
***
I have not yet been able to understand how does CEGUI associates the hardcoded classes with the names in the xml file. I ask, to simply add a property to all classes will I have to make a child class for each component? Or there an easier way?