Recent Posts

Pages: 1 [2] 3 4 ... 10
Feature requests / Style in ChatBox Lines
« Last post by Thalins on 30 November 2018, 14:58:16 »

I'm using this library to make a D&D application, sort of like Roll20 or something. Chat, interactive character sheets, etc. Suffice to say I rely pretty heavily on the ChatBox, and one thing that I think would be quite helpful is to be able to set a style for new lines, much in the same way you can with color. It should be simple to implement as well, since Lines are already based on Text, which already has Style as an option.
Installation help / Re: CMake Error
« Last post by texus on 17 November 2018, 09:41:13 »
I have recreated the 0.8.1 precompiled libraries. They now have the correct folder structure.
Installation help / Re: CMake Error
« Last post by texus on 15 November 2018, 07:59:23 »
The shipped TGUISharedTargets-debug (and the ones for release and static libs) have only recently been added (in 0.8.1), but it was never tested that they work when shipped with my precompiled libraries (since they can contain hardcoded paths). It seems that due to a misconfiguration in the build server they aren't even included in all downloads on the website.

The error is that the files try to get the dll files from a bin folder (which is how things normally get installed when running cmake), but I ship my dlls in a lib folder. So creating the bin folder yourself and copying the dll fildes from the lib folder there is the correct solution.

I'll make sure to place the files in the bin folder next time I create the downloadable libraries.
Installation help / CMake Error
« Last post by onthestorm on 14 November 2018, 23:04:05 »
I'm use CLion on Windows, and i want to use tgui, but i have this cmake error :
The imported target "tgui" references the file "F:/dev/sfml/TGUI-0.8/bin/tgui-d.dll"
There is no error if I make bin directory and put .dll to it, but  then #include <QTGUI/TGUI.hpp> not working. Here is my CMakeLists file :
cmake_minimum_required(VERSION 3.12)


add_executable(newtest main.cpp)

set(SFML_DIR "F:/dev/sfml/SFML-2.5.1/lib/cmake/SFML")
set(TGUI_DIR "F:/dev/sfml/TGUI-0.8/lib/cmake/TGUI")

find_package(SFML REQUIRED COMPONENTS system window graphics network audio)
find_package(TGUI REQUIRED)

target_link_libraries(newtest PRIVATE tgui sfml-graphics)

How can I solve this problem?
Help requests / Re: Trouble with loading theme
« Last post by texus on 12 November 2018, 22:10:12 »
You can get the exact error by surrounding the code with a try-catch block:
try {
    // contents from main() function
} catch (const tgui::Exception& e) {
    std::cerr << e.what() << "\n";

If the error is that it can't find the file then make sure the theme file is located in the same folder as your executable.
Help requests / Trouble with loading theme
« Last post by Mikart on 12 November 2018, 19:56:33 »
I have problem with loading theme in my project.

I am using VS17

I do not know what I am doing wrong.
I found on forum one topic about this but it did not help me.

Help requests / Re: [Possible Bug] Canvas not displaying
« Last post by methinks82 on 30 October 2018, 22:00:56 »
SFML was out of date, that looks like it fixed it.

Help requests / Re: [Possible Bug] Canvas not displaying
« Last post by texus on 30 October 2018, 19:09:17 »
I can't reproduce this here, so it might be related to your graphics driver. Which SFML version are you using? Make sure try the latest SFML version (2.5.1) as the render texture code has had several changes in the last few versions.

To rule out the possibility that this is a bug in TGUI, what happens if you use the following code?
// Create the RenderTexture and Sprite which the Canvas created for you
sf::RenderTexture rt;
sf::Sprite sprite;

// This code is executed only if gui.add is placed before setSize
rt.create(800, 600);
sprite.setTexture(rt.getTexture(), true);

// This code is executed when calling setSize
rt.create(100, 100);
sprite.setTexture(rt.getTexture(), true);

// This was your clear and display call

You will also need to put the following in your draw loop for it to show up in the top left corner:

If it doesn't show and removing the first part where rt.create is called does work, then it is clearly an error in SFML or your graphics driver. If the code does work however, then it may still be an issue in TGUI and then I'll try to investigate further.
Help requests / [Possible Bug] Canvas not displaying
« Last post by methinks82 on 30 October 2018, 17:55:47 »
When creating a canvas widget, if setSize is called after the canvas is added to it's parent the canvas will not display.

This version works
Code: [Select]
tgui::Canvas::Ptr canvas = tgui::Canvas::create();

When we switch the order of canvas->setSize and gui.add, the canvas no longer displays.
Code: [Select]
tgui::Canvas::Ptr canvas = tgui::Canvas::create();
gui.add(canvas);                   // moved before setSize

It doesn't matter if the parent is gui or another widget (such as panel)
I haven't observed this behavior with any other widgets.

TGUI 0.8.1
Visual C++ 2017 15.8.8
Installation help / Re: Cmake can't find TGUI
« Last post by avraal on 20 October 2018, 02:59:36 »
Okey, it was hard, but i can  :o
I'm "reordered" my project
So, i'm downloaded sources from github, built it with cmake, install it with mingw32-make, copied libs from /TGUI/build/libs/ to /ProjectName/cmake-build-debug/ and... It's worked
Thanks for all
Pages: 1 [2] 3 4 ... 10