Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding Custom Setting
03-13-2013, 11:44 PM,
#1
Adding Custom Setting
Hello Again All,

I was hoping for some advice, I'm trying add my own game setting to the options, and have hit a snag, it doesn't seem to want to show my option...

I have currently done the following;

--

added this to settings.h
public...
int GetRecordData() const
{
return RecordData;
}

void SetRecordData(int value)
{
RecordData = value;
}

private...
int RecordData;

added -

RecordData(0)

to the SETTINGS::SETTINGS() in settings.cpp

added-

Param(config, write, section, "RecordData", RecordData);

to the "display" section in SETTINGS::Serialize in settings.cpp

--

I have seen within vdrift.config my param has been added, however it fails to appear in the GUI, so my question is where/how do I add the option to the GUI??

and help would be massively appreciated!

all the best

Smile
Reply


Messages In This Thread
Adding Custom Setting - by Linksblackmask - 03-13-2013, 11:44 PM
RE: Adding Custom Setting - by NaN - 03-14-2013, 07:56 AM
RE: Adding Custom Setting - by Linksblackmask - 03-14-2013, 10:26 PM
RE: Adding Custom Setting - by Linksblackmask - 03-14-2013, 11:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)