VariableConfig
A class that allows the user to select variable options on the brain screen. For the most part, this class is just used for auton selecting, but it can be used for other things as well.
Major Features
- Allows the user to select variables on the brain screen
- Allows a bypass function to be added in to skip configuration in certain cases
- Allows a callback to be added that is called when the configuration is complete
- Allows a default option
Inner Workings
This class isn’t too complicated, except for the draw function (kinda) The draw function basically makes a tile of Buttons that can be clicked.
Really, on the front-end this class isn’t too complicated.
Table of contents
- VariableConfig(vector<string>, string)
- VariableConfig(vector<string>, string, function<void(int)>)
- VariableConfig(vector<string>, string, int)
- VariableConfig(vector<string>, string, int, function<void(int)>)
- addOption(string)
- addOptions(vector<string>)
- drawAll(bool)
- getSelectedOption()
- hasDefault()
- isSelected()
- setBypass(function<bool()>)
- setCallBack(function<void(int)>)
- setOptionName(int, string)