Search found 1239 matches

by Brainsaw
Fri Dec 05, 2025 3:24 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

Hi, I finally have started a project (well, rather a framework) which uses the Drag-and-Drop function in the editors. When testing it I stumbled upon a crash so I fixed it and uploaded a new patch file: https://forumdata.dustbin-online.de/Irr ... view.patch
by Brainsaw
Fri Dec 05, 2025 3:21 pm
Forum: Project Announcements
Topic: Nightork Adventures - Beyond the Moons of Shadalee
Replies: 14
Views: 36356

Re: Nightork Adventures - Beyond the Moons of Shadalee

That looks nice and reminds me of Descent, one of my all-time favorites
by Brainsaw
Fri Sep 05, 2025 6:38 am
Forum: Off-topic
Topic: What is a successful programmer?
Replies: 9
Views: 7966

Re: What is a successful programmer?

As already mentioned being a successful programmer very much depends on your personal view. I am also a software developer during the day (not a gaming comapy though), but that rarely gives me the feeling of success. I often track the bugs other people implemented which often is searching for two ...
by Brainsaw
Sun Jul 27, 2025 4:03 pm
Forum: Advanced Help
Topic: Irrlicht project to Linux
Replies: 4
Views: 389

Re: Irrlicht project to Linux

To prepare for migration I find it useful to put all platform specific methods (e.g. getting the download / user data path and such) to a separate module so that you only have one place to modify if necessary (of course it's best to avoid platform specific code, but it's not always possible). In my ...
by Brainsaw
Sun Jul 27, 2025 3:59 pm
Forum: Beginners Help
Topic: IrrKlang alternative
Replies: 12
Views: 1063

Re: IrrKlang alternative

I am also planing to try a new audio library, mainly for cross-platform reasons. I used IrrKlang on Windows and some other stuff on Android / Raspberry, but I don't want to do that any more. I wanted to take a look into SFML audio module (it seems that it can be used without the other SFML stuff ...
by Brainsaw
Wed May 28, 2025 4:01 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

Sorry for the fast new version, I was updating the test app and realized that I had some stupid beginner errors in, so here is a new version: https://forumdata.dustbin-online.de/TreeViewDragDrop_3.zip .

The test app now fills both trees so you can see that moving a node within the same tree works ...
by Brainsaw
Tue May 27, 2025 4:40 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

I have uploaded a new version which seems to work: https://forumdata.dustbin-online.de/TreeViewDragDrop_2.zip . It is getting complicated with all those options ;).


I have added two enums to IGUITreeView.h, one for the per-node drag / drop options, one for the per-tree options (maybe I should ...
by Brainsaw
Wed May 21, 2025 9:22 am
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

I didn't see a method to insert at index in core::list. But I'll try to set the parent once I have time to. And I'll just use some existing constants for the moment for the color. Thanks for the input
by Brainsaw
Tue May 20, 2025 5:11 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

Ok, at the moment it keeps driving me crazy. I tried to following:


void CGUITreeViewNode::addNodeBefore(IGUITreeViewNode *node, CGUITreeViewNode *newNode) {
newNode->grab();
if (newNode->getParent()->deleteChild(newNode)) {
core::list<CGUITreeViewNode *>::Iterator itNode = Children.begin ...
by Brainsaw
Tue May 20, 2025 2:18 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

On the weekend I finally got to work on it, but I'm not yet finished. I have added a bitfield of what drag and drop functions are available to the tree view node as well, in my case it would be too many events to react to. For the scenes I have it would be like this:


I show the root scene node ...
by Brainsaw
Sun May 11, 2025 1:09 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

I had a look and did some tests:

Dropping a node to another tree doesn't work (which is fine IMHO), the tree's member "Dragged" holds the information about the node to be dropped, and for the second tree it's empty so the tree can't insert anything.

I see what you mean with inserting a node at a ...
by Brainsaw
Fri May 09, 2025 7:28 am
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

Thanks for the feedback. I'll see when I find time to have another look into it and will consider all of the proposals.

I think dropping nodes in between other nodes to adjust the order is not easy to accomplish, but I'll have a look. I think I'll modify it so that an enum of flags is used for the ...
by Brainsaw
Wed Apr 30, 2025 8:12 am
Forum: Project Announcements
Topic: Y.A.I.S.E. - Yet another Irrlicht scene editor
Replies: 15
Views: 15928

Re: Y.A.I.S.E. - Yet another Irrlicht scene editor

You're welcome. At the moment I am working on TrackEd, the editor for MarbleGP which can be found in the "tracked" branch of the repository.
by Brainsaw
Tue Apr 22, 2025 2:14 pm
Forum: Beginners Help
Topic: Shadows speedup movement of camera
Replies: 7
Views: 2538

Re: Shadows speedup movement of camera

I don't know Bullet, but for the physics engine I use (O.D.E.) it is very important to have a fixed time step. I have moved the physics calculation to a thread of it's own, but it is also possible to do multiple steps per frame if necessary, or don't step the physics engine if Irrlicht runs faster ...
by Brainsaw
Sun Apr 06, 2025 5:12 pm
Forum: Code Snippets
Topic: Drag / Drop functionality for Tree View
Replies: 26
Views: 35165

Re: Drag / Drop functionality for Tree View

No problem, as long as it's on your list