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.


Messages - r4gTime

Pages: [1]
1
Help requests / Re: ChatBox : Line Spacing and selection
« on: 24 May 2020, 19:04:23 »
Thank for your reply !

Another cool feature would be to have a different color for the message itself and the name. (because basically you prefer to have a different color for every chatter but the same for the message itself).

A line could be defined by two elements :
- Pseudo (string, color)
- Message (string, color)
The chatbox could as well set the separation symbol (symbol, color) : it could be " : " , " - " or nothing...

I will try to do that someday when I'd figured out how to create classes from other people's library :)

2
Help requests / ChatBox : Line Spacing and selection
« on: 24 May 2020, 17:01:48 »
Hello, I have 2 questions about chatboxes :

1 - Is there any way to change the line spacing ? With the font I use, the line spacing between 2 lines is 0 and the line spacing between two rows of the same line is huge (see attachments)

2 - Is there any way to select text in the chat box in order to copy / paste ?

(Bonus question) How do you remove chatbox background ? With theme only ?


Thanks !

3
Help requests / Re: Adding widget to group crashes
« on: 21 May 2020, 18:31:27 »
Oh my god I tested the exact same thing you did 10mn ago and... it worked  ;D ;D

I used some dll files from 8.4 or 8.5 version and I didn't realize.

Thank you so much, I'm now ready to create a nice GUI for my game :)

4
Help requests / Re: Adding widget to group crashes
« on: 21 May 2020, 17:51:59 »
Yep I checked again...

F*** I didn't think 1 sec there could be no solution... Your GUI seems perfect for what  I need.

Thank again for your help and if I find something I'll let you know.

5
Help requests / Re: Adding widget to group crashes
« on: 21 May 2020, 17:15:53 »
Hello,

Here is the config and the compiler settings in attachments.

When I type echo %PATH% I get this :

C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\NVIDIA Corporation\NVIDIA NGX;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\Louis\AppData\Local\Microsoft\WindowsApps;

6
Help requests / Re: Adding widget to group crashes
« on: 21 May 2020, 15:01:07 »

7
Help requests / Re: Adding widget to group crashes
« on: 20 May 2020, 17:25:05 »
Hello,

Here it is. Hope you can find something and thank you again for the support :)


8
Help requests / Re: Adding widget to group crashes
« on: 16 May 2020, 20:03:28 »
It would be difficult for me to send all sources, but I tried to duplicate the problem based on your login screen example (https://tgui.eu/examples/0.8/scalable-login-screen/) and I have the same problem, just by modifying this function :

void loadWidgets( tgui::Gui& gui )
{
    auto button1 = tgui::Button::create();
    auto group = tgui::Group::create();

    group->add(button1, "button");

    gui.add(group);
}
 

Segmentation fault :/

9
Help requests / Re: Adding widget to group crashes
« on: 16 May 2020, 19:23:45 »
Yes I'm in debug mode, and here is a picture of my linker settings.


10
Help requests / Re: Adding widget to group crashes
« on: 16 May 2020, 18:58:15 »
I think I linked everything but I only have this in call stack :

#0 ??   ?? () (??:??)
#1 0x410c60     Application::Application(this=0x14268d0) (D:\Documents\Programmation\X22 Colonization\X22_Data.cpp:48)
#2 0x401437     main() (D:\Documents\Programmation\X22 Colonization\main.cpp:36)
 

and logs :
Debugger name and version: GNU gdb (GDB) 7.9.1
Child process PID: 17848
Program received signal SIGSEGV, Segmentation fault.
In ?? () ()
#1  0x00410c60 in Application::Application (this=0x14268d0) at D:\Documents\Programmation\X22 Colonization\X22_Data.cpp:48
D:\Documents\Programmation\X22 Colonization\X22_Data.cpp:48:1667:beg:0x410c60
At D:\Documents\Programmation\X22 Colonization\X22_Data.cpp:48
#1  0x00410c60 in Application::Application (this=0x14268d0) at D:\Documents\Programmation\X22 Colonization\X22_Data.cpp:48
D:\Documents\Programmation\X22 Colonization\X22_Data.cpp:48:1667:beg:0x410c60
Debugger finished with status 0
 

I must have done a mistake somewhere when installing or something ? But  everything's works fine except this damn line, so I don't understand. Thanks for your help anyway, I keep on looking for the problem...

11
Help requests / Re: Adding widget to group crashes
« on: 16 May 2020, 17:41:31 »
Codeblocks 17.12

12
Help requests / Re: Adding widget to group crashes
« on: 16 May 2020, 17:30:19 »
My debugger tells me it's a SIGSEGV (Segmentation Fault), when the app come to :  group->add(button1, "button");

I have absolutely no idea of what this means :/

13
Help requests / Re: Adding widget to group crashes
« on: 16 May 2020, 17:07:30 »
Thanks for your answer !

My tgui object is member of my class Application :
class Application
{
    public:
        Application();

        sf::RenderWindow window;

        tgui::Gui tgui; // GUI

    protected:

    private:

};

So it's created in my main when I create an instance of Application :
int main()
{
    Application app;

    Mainmenu(&app);

    return 0;
}
 

Is that bad ? If I initialize it in the constructor then it will be deleted after I call it ?

14
Help requests / Adding widget to group crashes
« on: 16 May 2020, 15:35:46 »
Hello,

I have a very simple problem but I couldn't find the solution by myself or on this forum...

Adding any widget to my group makes my application crash.

I have a classe named Application, it has a tgui object called tgui.
When I create Application, I try to do this :
Application::Application()
{
    // Some code

    // Graphical User Interface
    Application::tgui.setTarget(Application::window); // setting my tgui object on my window object
    try
    {
        auto button1 = tgui::Button::create();
        auto group = tgui::Group::create();

        group->add(button1, "button"); // CRASH

    }
    catch (const tgui::Exception& e)
    {
        std::cerr << "TGUI Exception: " << e.what() << std::endl;
    }
}
 

I don't have any answer from cerr, and I don't understand why this would crash ?

Thank you for your help !

Pages: [1]