Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - netrick

#31
General Discussion / C# binding
13 July 2013, 20:44:26
How is C# binding doing? I'm asking because I fall in love with C#, it's so easier and faster to code and I'm thinking about porting my app to sfml.net but I use tgui heavily so I need it too.
#32
Feature requests / Re: Child windows again
13 July 2013, 17:10:02
Post here when you apply the patch so I can remove child window checking in downstream code.
#33
Feature requests / Re: Child windows again
13 July 2013, 16:21:59
Just add my name in the commit message. This patch is so small that there is no point to bother with making github account :P
#34
Feature requests / Re: Child windows again
13 July 2013, 15:47:04
Here is the current git snapshot with changed ChildWindow files. Create patch yourself :P

TGUI-patch.tar.gz
#35
Feature requests / Re: Child windows again
13 July 2013, 15:44:07
It doesn't work.

cp -R changed_tgui_folder . -- it gives the error than it's the same file

git diff produces empty file.

#36
Feature requests / Re: Child windows again
13 July 2013, 15:20:38
I hope the .diff file is good, because it shows some strange changes that I didn't make. (mostly formatting and in one place it uses ! instead of +). Tell me if it works, if not I will just upload the changed files.

Also I removed virtual keyword from Transformable::setPosition, because if you decided to use it as a virtual function my patch wouldn't work (because I explicitly call Transformable::setPosition in a few places).
#37
Feature requests / Re: Child windows again
13 July 2013, 14:52:35
I'm working on linux so I can easily make it. I will send it you as soon as possible but I encountered a very strange bug and I'm looking into it. (for some reason it ignores my "if" and it always keeps in parent, despite debugger saying the value is set to false as it should). I will do a short break and then look into it.
#38
Feature requests / Re: Child windows again
13 July 2013, 14:37:44
(I think) it's working. Now I only need to find out how to make a diff file.
#39
Feature requests / Re: Child windows again
13 July 2013, 14:04:33
Well it's almost done except one thing that I can't solve - tgui::Container doesn't have its size. And dynamic casting to check if it's a tgui::ContainerWidget or a tgui::Gui isn't a good solution... Do you have any idea?

And if we can't solve it, then all I can do is to make it keepInWindow only (but, I'm not sure if Widget has access to the window).
#40
Feature requests / Re: Child windows again
13 July 2013, 13:24:24
I will do only inParent and dontKeep. Of course naming could be better because sometimes it's hard to think of a good name in english.

I will write here when I finish it.
#41
Feature requests / Child windows again
13 July 2013, 10:46:28
Okay, after some profiling with a lot of objects I found manually keeping child windows in place is a little bottleneck and it's not very clean solution to iterate through thousands of gui objects every frame to check them type in my code.

Simple solution:
- child window has property like enum keepInPlace - inWindow, inPanel, dontKeep (default).
- when child window is forced to change its position, it makes sure it's in place using my simple code which actually works

Maybe not the cleanest possible solution, but it won't hurt and will be so damn useful for me.

If you agree I can submit a simple patch later today. It will be just optional feature and default it will be turned off.

Edit:
There is a possibility that object doesn't have acces to window - in that case, it will just keep itself in its container. I need your feedback here.
#42
Installation help / Re: gcc errors in linux
09 July 2013, 00:12:18
It seems strange. Are you sure that "sudo apt-get install libgl1-mesa-dev" says it's up to date?

Anyway, you can download tgui 0.5 from development ppa. That must work.
#43
Installation help / Re: gcc errors in linux
08 July 2013, 23:50:12
So I was right. Simply use development version of SFML from ppa and you can easily compile TGUI 0.6 that way (or use 0.5 from ppa).
#44
Installation help / Re: gcc errors in linux
08 July 2013, 23:44:15
Okay. Tell me if dev version from ppa or compiling sfml from source helped.

The error you get while compiling TGUI seems to me like it's using SFML header of some older version. Maybe it's a bug in .deb package? I'm almost sure that compiling sfml from source should solve it.
#45
Installation help / Re: gcc errors in linux
08 July 2013, 23:26:04
It could have been sfml 2.0 rc in launchpad or some mismatch in libs (your os may be a bit different from regular ubuntu). Generally it's better to compile libs on your own on linux, it's so damn easy and can avoid many problems usually.

Edit:
If you can't compile sfml then run:

sudo apt-get install libpthread-stubs0-dev libgl1-mesa-dev libxrandr-dev libfreetype6-dev libglew-dev libjpeg8-dev libsndfile1-dev libopenal-dev

It will install dependencies needed.