mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-16 21:38:07 -04:00
Final Step of CVar macro/sectionalizing (#4107)
* p * Missed the prefix renames. * More missed ones. * Mostly finished cleanup. Removed a few CVars and some related functionality. * Bit more (prepping non-existent title card color editing). * Resolve gCrowdControl. * Final cleanup. * Universal constant, not acceleration... * Preset CVars.
This commit is contained in:
@@ -486,14 +486,14 @@ namespace UIWidgets {
|
||||
|
||||
bool EnhancementRadioButton(const char* text, const char* cvarName, int id) {
|
||||
/*Usage :
|
||||
EnhancementRadioButton("My Visible Name","gMyCVarName", MyID);
|
||||
EnhancementRadioButton("My Visible Name",CVAR_GROUP("MyCVarName"), MyID);
|
||||
First arg is the visible name of the Radio button
|
||||
Second is the cvar name where MyID will be saved.
|
||||
Note: the CVar name should be the same to each Buddies.
|
||||
Example :
|
||||
EnhancementRadioButton("English", "gLanguages", LANGUAGE_ENG);
|
||||
EnhancementRadioButton("German", "gLanguages", LANGUAGE_GER);
|
||||
EnhancementRadioButton("French", "gLanguages", LANGUAGE_FRA);
|
||||
EnhancementRadioButton("English", CVAR_SETTING("Languages"), LANGUAGE_ENG);
|
||||
EnhancementRadioButton("German", CVAR_SETTING("Languages"), LANGUAGE_GER);
|
||||
EnhancementRadioButton("French", CVAR_SETTING("Languages"), LANGUAGE_FRA);
|
||||
*/
|
||||
std::string make_invisible = "##" + std::string(text) + std::string(cvarName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user