Looking for help creating a new?? widget
Posted: Mon Apr 03, 2006 09:43
Hi
I am new to CEGUI, but I would like to make editor for real time materials.
I have used another tool that has ceased too exist on the market and I was thinking of making my own incarnation..
The basic building block GUI widget looks like this.
It has a real-time 3D window displacing the material up to this point in the shader.
It can have n rows of input (left side) / output (right side).
If no input is connected and you click on the row or drag on it you can set a variable if it's variable and a scalar or else another edit menu opens up.
If you pass over or you try to connect a none compatible input line the connector is lit red, if it's OK and pass over it lit.’s green.
If a row isn't needed for instance if you delete a pass row in a technique version of this widget, the row in the technique widget for that pass is deleted and the widget decreases in height size. Or if the row can't be done this way at least the name of the pass on the row is deleted and a event is sent to delete the incoming line to this row.
Now to my question is there a widget like this or something that I can start from and expand from and how do I make lines between them editable and selectable. Some lines can go to several different places.
I also need the lines and these widgets to be auto placed or manually and auto routed to look nicely placed in the work area.
I am looking for help on all of this. If you are looking for something to do please lend me a hand here.
For me it looks like they just combined several widgets, the rows are "just" squared buttons that in turn contains on or two radion buttons inside on each side of the button to look as connectors and the hole widget also has a preview area.
Can this be build with XML scripiting and existing widgets?
Or how should it be implemented?
It's also has a selection border. It's movable and when moved sends event to update the wiring.
Wires has small arrows and different colors and a selection colour.
Thanks.
I am new to CEGUI, but I would like to make editor for real time materials.
I have used another tool that has ceased too exist on the market and I was thinking of making my own incarnation..
The basic building block GUI widget looks like this.
It has a real-time 3D window displacing the material up to this point in the shader.
It can have n rows of input (left side) / output (right side).
If no input is connected and you click on the row or drag on it you can set a variable if it's variable and a scalar or else another edit menu opens up.
If you pass over or you try to connect a none compatible input line the connector is lit red, if it's OK and pass over it lit.’s green.
If a row isn't needed for instance if you delete a pass row in a technique version of this widget, the row in the technique widget for that pass is deleted and the widget decreases in height size. Or if the row can't be done this way at least the name of the pass on the row is deleted and a event is sent to delete the incoming line to this row.
Now to my question is there a widget like this or something that I can start from and expand from and how do I make lines between them editable and selectable. Some lines can go to several different places.
I also need the lines and these widgets to be auto placed or manually and auto routed to look nicely placed in the work area.
I am looking for help on all of this. If you are looking for something to do please lend me a hand here.
For me it looks like they just combined several widgets, the rows are "just" squared buttons that in turn contains on or two radion buttons inside on each side of the button to look as connectors and the hole widget also has a preview area.
Can this be build with XML scripiting and existing widgets?
Or how should it be implemented?
It's also has a selection border. It's movable and when moved sends event to update the wiring.
Wires has small arrows and different colors and a selection colour.
Thanks.