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.


Topics - CatalinNic

Pages: [1]
1
Help requests / Randering widgets update
« on: 08 April 2020, 18:11:05 »
Is there any event system for connecting any widget that renders something in itself eg. tgui::Canvas to render their contents on frame update like for example:
Canvas->connect("FrameUpdated", drawFunction, std::ref(Canvas));

2
Help requests / Connect error
« on: 22 March 2020, 11:38:23 »
I have this test function with tgui::EditBox::Ptr as parameter in a separate cpp file
void test(tgui::EditBox::Ptr Editbox)
{
    Editbox->connect("clicked", []{}); // error
}

And the error produced is:
/usr/include/TGUI/Signal.hpp:863:22: error: ‘unsigned int tgui::SignalWidgetBase::connect(std::string, Func&&, const BoundArgs& ...) [with Func = test(tgui::EditBox::Ptr)::<lambda()>; BoundArgs = {}; std::string = std::__cxx11::basic_string<char>]’, declared using local type ‘test(tgui::EditBox::Ptr)::<lambda()>’, is used but never defined [-fpermissive]
  863 |         unsigned int connect(std::string signalName, Func&& handler, const BoundArgs&... args);
      |                      ^~~~~~~
/usr/include/TGUI/Signal.hpp:863:22: warning: ‘unsigned int tgui::SignalWidgetBase::connect(std::string, Func&&, const BoundArgs& ...) [with Func = test(tgui::EditBox::Ptr)::<lambda()>; BoundArgs = {}]’ used but never defined
Why it does that?

3
Help requests / Portability
« on: 08 December 2019, 19:44:02 »
I have a project that I want to test on another Linux pc and I don't have access as a user on that computer to install the dependencies and the single idea that comes to my mind is to link statically, but the only way to obtain thoose libs is to compile sfml from source, but sfml-git package is not required by tgui-git and so on. Do you have an idea on what I can do?

4
Help requests / Close button
« on: 06 October 2019, 17:18:03 »
I don't know how to modify the close button of a ChildWindow, cam someone help me?

5
Help requests / Using canvas
« on: 28 September 2019, 10:22:57 »
I try to use a canvas and I don't know if it is possible to set view? if it is, how?

6
Help requests / Get a widget
« on: 25 September 2019, 20:32:25 »
I'm wondering how to get a widget from the gui? I know IIRC there is the function get(string& name). How i can use that (I mean to provide an example)?

7
Help requests / Remove widget
« on: 13 September 2019, 20:11:50 »
I saw there is a function "RemoveWidget" and I don't know how to call it properly. Can someone make an example to see how to use it?

And a side note: someone need to add more tutorials. 

8
Help requests / List view
« on: 04 September 2019, 20:13:07 »
I want to create a list view and at this moment there are no tutorials covering TGUI and the question is: How I connect each individual items of a list view? For example I wrote this code:
void Editor::Open_dir(tgui::Gui& Editor_gui)
{
    tgui::ListView::Ptr file_listview = tgui::ListView::create();
    std::string path = "Maps";
    for(const std::filesystem::directory_entry& files : std::filesystem::directory_iterator(path))
    {
        file_listview->addItem(files.path().c_str());
        file_listview->connect("pressed", Open_file /*, ...*/);
    }    
}
 
or is this incorrect?

9
Help requests / Open file dialog
« on: 03 September 2019, 17:24:03 »
There is in this library an open file dialog function or something like that? Because i want to create a level editor embedded in my game

10
Help requests / Function signatures
« on: 03 September 2019, 11:46:50 »
I've tried in past to make a gui from scratch before using this library and i wondered: how the library stores function signature?

Pages: [1]