24.01.2019, 23:04
Taken from Texture Studio.
I found it useful in function parameters maybe Y_Less has a better way to do this? At any rate this is important and your tutorial should cover it.
Code:
format(optline, sizeof(optline), "{FFFF00}Text: %s\n{FFFF00}Object Note: %s\n{FFFF00}Model Info: %s\n{FFFF00}Group ID: %s\n{FFFF00}Grouped Text: %s\n{FFFF00}Always Show New Objects: %s\n", (TextOption[tShowText] ? ("{00AA00}Enabled") : ("{FF3000}Disabled")), (TextOption[tShowNote] ? ("{00AA00}Enabled") : ("{FF3000}Disabled")), (TextOption[tShowModel] ? ("{00AA00}Enabled") : ("{FF3000}Disabled")), (TextOption[tShowGroup] ? ("{00AA00}Enabled") : ("{FF3000}Disabled")), (TextOption[tShowGrouped] ? ("{00AA00}Enabled") : ("{FF3000}Disabled")), (TextOption[tAlwaysShowNew] ? ("{00AA00}Enabled") : ("{FF3000}Disabled"))