Jump to content

Recommended Posts

Hey Everyone, I have made a spawn menu and it's all working, I have the following error when the menu opens, I don't know how to fix this can anyone assist?

 

f5855a9440cd26c22d6ad8b756379321.png

Share this post


Link to post
Share on other sites

you need to define the rowHeight variable inside the SpawnPointList class

 

  • Like 1

Share this post


Link to post
Share on other sites

The error is in all likelihood gonna be in this file: #include "config\Config_SpawnPoints.hpp".  And as gc8 said you'll need to define rowheight.

Share this post


Link to post
Share on other sites
Just now, stanhope said:

The error is in all likelihood gonna be in this file: #include "config\Config_SpawnPoints.hpp".  And as gc8 said you'll need to define rowheight.

 

Where do I define this in the list box class if so what do I put this haven't got this error before.

Share this post


Link to post
Share on other sites

I don't often do GUIs so i don't know by hard, but if you just follow the path of the error you should get to the place where the error is happening and thus where you'll need to define something.

Share this post


Link to post
Share on other sites

Here's one example how the variable could be defined:

class RscListBox
{
    deletable = 0;
    fade = 0;
    access = 0;
    type = 5;
    rowHeight = 0;  // <---- defines the variable

// rest of class code

};

 

If you have RscListBox defined somewhere you could just inherit all the variables.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×