Skip to content

I want to make a game with my business but need to know about the GUI #131

@Wall3rHM2

Description

@Wall3rHM2

Describe the bug
The GUI examples don't run as expected, so far only 1 example that comes with Acid works without needing modifications (TestPhysics), the rest of them crash on sight. I liked this engine a lot and wanted to use in my game with my team, but I don't where to start in the UI examples to fix them, so far i made the wubdiw creation be called in MainApp(), so now it doesn't crash anymore on sight.
But for some reason in the TestFont for example, the screen only gets the button color and fills it and there is nothing more besides a grey screen, which from what i tested, seems to be triggered by the Pannable.cpp code where it adds the child "settings". But even when i remove this, the screen just turns white and still nothing more appears, not a single text. If someone could only at least give a heads up to where is the issue (i.g outdated syntax for GUI)...

TLDR; Screen in TestFont turns grey and nothing more appears.

To Reproduce
In MainApp.cpp of the project TestFont, Write Windows::Get()->AddWindow(); below the line App("Test Font", {1, 0, 0}) { and move the lines where it says Windows::Get()->GetWindow(0)->SetTitle("Test Font"); and Windows::Get()->GetWindow(0)->SetIcons({...}); to below this.

Expected behaviour
A working example where it shows texts and other GUI elements

Screenshots

245595c8-96b4-46a7-b0f3-01352f0bf4af (1)

Hardware:

  • OS: Windows 11

Additional context
No significant context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions