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 - CatalinNic

#1
Help requests / Randering widgets update
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:
Code (cpp) Select
Canvas->connect("FrameUpdated", drawFunction, std::ref(Canvas));
#2
Help requests / Re: Connect error
22 March 2020, 13:11:36
i needed to include SignalImplm, however I was pointed to the Signal header, why don't you implemented there and why don't you included as well in the Widget header?
#3
Help requests / Connect error
22 March 2020, 11:38:23
I have this test function with tgui::EditBox::Ptr as parameter in a separate cpp file
Code (cpp) Select

void test(tgui::EditBox::Ptr Editbox)
{
    Editbox->connect("clicked", []{}); // error
}

And the error produced is:
Code (none) Select

/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?
#4
Help requests / Portability
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?
#5
Help requests / Re: Close button
06 October 2019, 19:09:48
Now i try to use themes but when I read them my program crashes with:
terminate called after throwing an instance of 'tgui::Exception'
  what():  Error while parsing input at line 19. Found '=' while trying to read a value.
and the theme file is:
Code (ini) Select

Button {
    BackgroundColor = rgb(47, 52, 63);
    BackgroundColorHover = rgb(67, 72, 83);
    TextColor = rgb(187, 196, 202);
    TextColorHover = rgb(187, 196, 202);
    BorderColor = rgb(0, 0, 0);
}

ChildWindow {
    TitleColor = rgb(187, 196, 202);
    TitleBarColor = rgb(47, 52, 63);
    BackgroundColor = rgb(51, 51, 51);
    BorderColor = rgb(0, 0, 0);
    DistanceToSide = 3;
    PaddingBetweenButtons = 1;
    ShowTextOnTitleButtons = true
    CloseButton = &Button;
    MaximizeButton = &Button;
    MinimizeButton = &Button;
}
#6
Help requests / Re: Close button
06 October 2019, 18:07:56
Change the colors or set a texture
#7
Help requests / Close button
06 October 2019, 17:18:03
I don't know how to modify the close button of a ChildWindow, cam someone help me?
#8
Help requests / Re: Using canvas
28 September 2019, 11:23:57
I will see if it is an update on AUR
#9
Help requests / Re: Using canvas
28 September 2019, 10:41:55
I want to use it for testing level like this: .And the level itself is a lot bigger than the canvas
#10
Help requests / Using canvas
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?
#11
Help requests / Re: Get a widget
27 September 2019, 18:43:44
Done it all I need to do was to use gui.remove(gui.get(WidgetName)) to propery remove it.
#12
Help requests / Re: Get a widget
27 September 2019, 18:30:38
And curious, how i can delete a widget if the only way to access it is by using the get function without crashing the whole program? (I hope that's pretty specific).
#13
Help requests / Get a widget
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)?
#14
Help requests / Re: Remove widget
22 September 2019, 18:06:21
So that's why I make the request
#15
Help requests / Re: Remove widget
22 September 2019, 18:05:36
About tutorials, I don't know how to use the library yet.