Recent Posts

Pages: [1] 2 3 ... 10
1
Thanks for implementing this.
2
It's not really crucial but I can try to implement it on this week.
3
It would indeed be useful. I'll add it to my todo list.
If you want it soon then you will have to implement it yourself though (the code is probably similar to DefaultText in EditBox).
4
It's a bit strange that multiline input widget hasn't support setting placeholder because some users really need a hint what they should input even for big textboxes. So it would be great to have such feature.

 
5
Installation help / Re: Linking error with TGUI 0.8.6 on OSX using Clang
« Last post by texus on 08 January 2020, 08:10:49 »
I have solved the issue now in the latest 0.8 version that you can download from github.

I don't know why it gives a linking error for this instead of a compile error, but I was just missing an "ostream" include.

The reason why my CI tests never failed was because I am doing a unity build to speed things up and it must have gotten the ostream include via another source file.
6
Help requests / Re: The implementation of "Middle" parameter on themes syntax
« Last post by Maksat on 08 January 2020, 07:45:35 »
Wow! I don’t have to implement it myself. I just can use tgui::Texture and tgui::Sprite! Thank you very much for your library! It is very useful to me. I am very grateful to you.
7
Help requests / Re: The implementation of "Middle" parameter on themes syntax
« Last post by texus on 07 January 2020, 18:40:55 »
The middle is passed as a (left, top, width, height) rect. If top is 0 and height is equal to the texture height then it splits the image in 3 parts. In this case the left and right parts will keep their ratio while the center part is stretched to fill the remaining of the area.
If the middle part doesn't has the same height as the texture and divides the image in 9 parts then 9-slice scaling is performed. The corners will not be scaled, the top and bottom bar will be stretched only horizontally, the left and right bars will only be stretched vertically and the center part is stretched to fill the remaining area.

The implementation itself is just a matter of creating triangles with the right texture coordinates.
8
Help requests / The implementation of "Middle" parameter on themes syntax
« Last post by Maksat on 07 January 2020, 14:49:11 »
Hi Texus! Could you tell me how you implemented the "Middle" parameter on themes syntax? How do you scale given rect of texture and remain unchanged other parts?
9
Installation help / Re: Linking error with TGUI 0.8.6 on OSX using Clang
« Last post by N0things on 07 January 2020, 11:06:24 »
I followed your advice regarding the String class, I then made a patch to remove the useless methods and it is now working well, somehow.

Thanks for your help.
10
Installation help / Re: Linking error with TGUI 0.8.6 on OSX using Clang
« Last post by texus on 07 January 2020, 08:17:11 »
I test TGUI with a CI on mac and that build is still working: https://travis-ci.org/texus/TGUI/jobs/632626868
I'm not sure what the difference with your build is (and I don't have enough time to look at it right now), but maybe you can already check what you did differently which could narrow down the issue.

The String class is actually a class that shouldn't really have been added to 0.8. The file can't be removed, but almost none of these functions are used. So maybe you can also check if you can compile it if you put String.cpp#L2284-L2294 and String.hpp#L843-L844 in comments. I find it weird that it is giving a linking error for it though, that would imply that those operator<< functions are declared in the std headers but not in the standard library itself.

I'll try having a look at this tonight, but  I unfortunately no longer have a working mac VM to test on, so it might take a couple days before I can run tests here locally.
Pages: [1] 2 3 ... 10