View Full Version : String Cycler How to get rid of the empty value
bloodylemming
January 2nd, 2022, 01:50
Even though I have three states defined, there is always a default empty state, and remains in the cycle. Can this be eliminated?
I was able to force it to default to one of the desired states, but the empty state persists...
JustinFreitas
January 2nd, 2022, 03:05
The options are a combination of the baseval and the values. So in this example, my cycler is all | effects | none. Notice that all is specified in the baseval and not in the values. Weird, I know... but it seems to work for me. Good luck.
OptionsManager.registerOption2("STEALTHTRACKER_VISIBILITY", false, "option_header_stealthtracker", "option_label_STEALTHTRACKER_VISIBILITY", "option_entry_cycler",
{ baselabel = "option_val_chat_and_effects", baseval = "all", labels = "option_val_effects|option_val_none", values = "effects|none", default = "effects" })
bloodylemming
January 2nd, 2022, 05:24
The options are a combination of the baseval and the values. So in this example, my cycler is all | effects | none. Notice that all is specified in the baseval and not in the values. Weird, I know... but it seems to work for me. Good luck.
OptionsManager.registerOption2("STEALTHTRACKER_VISIBILITY", false, "option_header_stealthtracker", "option_label_STEALTHTRACKER_VISIBILITY", "option_entry_cycler",
{ baselabel = "option_val_chat_and_effects", baseval = "all", labels = "option_val_effects|option_val_none", values = "effects|none", default = "effects" })
Unfortunately I'm building it in Ruleset Wizard, and going through the files it generates, I can't find any such text. It seems to be ding it all in lua...
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.