Osiris: Menu Design

Created on 5 Jun 2020  路  12Comments  路  Source: danielkrupinski/Osiris

I just want renderGuiStyle2 to appear. How can I do it ?

Most helpful comment

This is C+P. Delete void GUI::render() noexcept and replace it with the below

void GUI::render() noexcept
{
if (!config->style.menuStyle) {
renderGuiStyle2();
}
}

All 12 comments

This is C+P. Delete void GUI::render() noexcept and replace it with the below

void GUI::render() noexcept
{
if (!config->style.menuStyle) {
renderGuiStyle2();
}
}

modify the code in gui.cpp

This is C+P. Delete void GUI::render() noexcept and replace it with the below

void GUI::render() noexcept
{
if (!config->style.menuStyle) {
renderGuiStyle2();
}
}

I did, but the menu opens automatically.

I changed open = true in GUI.h, but it didn't work.

I changed open = true in GUI.h, but it didn't work.

no, change the GUI::render()

and set renderGuiStyle2();

better way of doing this:
replace (in Config.h)

   struct {
        int menuStyle{ 0 };
        int menuColors{ 0 };
    } style;

with

    struct {
        int menuStyle{ 1 };
        int menuColors{ 0 };
    } style;

better way of doing this:
replace (in Config.h)

   struct {
        int menuStyle{ 0 };
        int menuColors{ 0 };
    } style;

with

    struct {
        int menuStyle{ 1 };
        int menuColors{ 0 };
    } style;

nothing has changed

@danielkrupinski Help me pls

If the menu does not open automatically, it can work. How can I turn off the automatically opening of the menu ?

Bool open = true in GUI.h I tried to change it but it didn't

@CerberusGame
int menuStyle{ 0 };
to
int menuStyle{ 1 };
?

@CerberusGame
int menuStyle{ 0 };
to
int menuStyle{ 1 };
?

I tried but it didn't work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DivyanshuYT picture DivyanshuYT  路  3Comments

TauCSGO picture TauCSGO  路  3Comments

GeorgieeeDev picture GeorgieeeDev  路  3Comments

HeiDaShuai666 picture HeiDaShuai666  路  3Comments

nosexynomoney picture nosexynomoney  路  3Comments