Hello,
I posted this in the OGRE forum also...
We are trying to incorporate OGRE and CEGUI into our current client side software. One of the things that I have noticed is there is a field called "userdata" listed in the CEGUI API references.
(getUserData and setUserData Functions also exist)
I was hopeing that It would be loadable in the xml. Something like..
<Window Type="gui/FrameWindow" Name="Default/MainWindow">
<Property Name="Size" Value="w:1 h:1" />
<Property Name="Position" Value="x:0 y:0" />
<Property Name="Text" Value="Chat Something" />
<Property Name="userData" Value="custom string here" />
</Window>
But it does not seem to work.
The problem I have is I need to be able to link some text to the control while loading the xml. The text would only exist in the xml.
We have literaly thousands of "Commands" already set up. Given the list of commands I want the user to be able to define which command is triggered when the button is clicked. Some commands take parms.
What I was hopeing for was some property that we could fill and then "Parse out".
something like ....
"ren cre obj rock_shard"
That is a typical command that our client currently takes. (if typed)
CEGUI seem so robust that I find it hard to beleive that this can not be done.
Attach String Information to a
Moderators: CEGUI MVP, CEGUI Team
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Attach String Information to a
you could easily create a new property in CEGUI::Window called fx CommandString.
this would automatically get exposed to the XML layouts.
this would automatically get exposed to the XML layouts.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 6 guests