 A Guy Guest |
Quote
|
| 2008-02-14 14:15:31 |
|
I am currently working on a game using Irrlicht and IrrEdit. I wrote a plugin DLL for a custom scene node but have encountered a problem. When I click the button to insert the scene node, I want it to function much like how the MeshSceneNode works. I want it to ask for a mesh, and then insert the node. I have this working fine by using the win32 function GetOpenFileName. The problem is that whenever I then load the scene, it will ask me to input the mesh for every one of my custom nodes. Obviously this is not acceptable. Is there any simple way I am overlooking to make it only ask for the mesh name when the button is pressed, and only then.
|
 niko Moderator |
Quote
|
| 2008-02-15 14:15:38 |
|
That's a shortcoming of the current plugin system, unfortunately. It was originally only written to enhance the scene graph with scene nodes and loaders, but not with user interfaces. You need to find a way not to show the dialog when this happens, such as storing a flag somewhere like in the scene node or similar.
|