Hi all,
For my project I need to create a rotative element (like a boussole) in ogre3d's engine and then I writed somes methods to render this and I created a new class to create this element.
Next I would like to integrate it to CEGUI's engine and to be able to export it in scripting engine (like .layout and Lua).
My question : How can I do this ?
Thanks for help (and sorry if I make some mistakes, I am french ^^)
how to create a new element ?
Moderators: CEGUI MVP, CEGUI Team
Have a read through the Wiki, especially the Falagard stuff. You won't be able to integrate it automatically into the Layout Editor. Not with the current version.
Maybe one day we'll recode Cegui with better descriptions in code, such as "I am a parent widget", "I am a child widget of x", "I can only be included as a child of this parent widget". Yes this is cryptic but if you've read through the Layout Editor code (or this post) you'll understand what I mean...
Maybe one day we'll recode Cegui with better descriptions in code, such as "I am a parent widget", "I am a child widget of x", "I can only be included as a child of this parent widget". Yes this is cryptic but if you've read through the Layout Editor code (or this post) you'll understand what I mean...
- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
hi thor22,
If i anderstand correclty, you want to create a new element in the set of widgets you use in you'r scheme file ?
If it's that, there differents way of doing this.
You can just declare a new widget name in the scheme file derivated from an existing generic widget, and custom it in the look'nfeel file.
Or you can make a completly new widget from scratch. In the CEimageset Editor, there is a new element, the "ElasticBox", who is coded from scratch and derivate from CEGUI::window.
You have to explore the source code to find all what is needed.
You can also look at the CEGUI_TreeControl, made by DrPain
I don't remenber exactly, but there is a thread where crazy eddie talk about what is needed to add a new element to CEGUI.
hope it help
If i anderstand correclty, you want to create a new element in the set of widgets you use in you'r scheme file ?
If it's that, there differents way of doing this.
You can just declare a new widget name in the scheme file derivated from an existing generic widget, and custom it in the look'nfeel file.
Or you can make a completly new widget from scratch. In the CEimageset Editor, there is a new element, the "ElasticBox", who is coded from scratch and derivate from CEGUI::window.
You have to explore the source code to find all what is needed.
You can also look at the CEGUI_TreeControl, made by DrPain
I don't remenber exactly, but there is a thread where crazy eddie talk about what is needed to add a new element to CEGUI.
hope it help
- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 4 guests