#Custom option group entry for each spec

7 messages · Page 1 of 1 (latest)

faint jacinth
#

Hi, Im trying to create a section under Custom Options where the user can set certain settings for each spec they may be playing.

Currently i'm leaning towards manually entering every class/spec in a Option Group to avoid any input errors but is there a "smoother" way to do this, eg. where the user can add just the relevant spec to the Option Group? Whats the best practice way of doing something like this?

#

Custom option group entry for each spec

merry plover
#

look at option group -> array -> limited array size maybe

#

users can add entries there

faint jacinth
#

Thanks @merry plover, let me try and elaborate on what im chasing, maybe it wasn't clear from my post.

I currently have the Option group as attached in which I want to hold the specs in the game. In a best case scenario, i would like the user to be able to only add the relevant specs for them, ie. I play priest and warlock so i would only add the priest and warlock specs to the list (or maybe just some of them even). The problem with this is, how do I map whatever the user enters, to the spec ID ingame (warlock affliction is 265 eg.) to use in custom code? One example could be Holy which is both a priest and paladin spec or it could be just plain simple spelling mistakes. Alternatively i could make the user input the spec ID when creating a new entry but i think that would make it kinda not user friendly, defeating the purpose of the custom options tab. So i guess my question is if it is possible to either have a predefined list the user can choose from or alternatively if it is possible to dynamically populate a dropdown or the Option group from init code eg.?

merry plover
#

predefined list the user can choose from
sure, just make it in there? You already have 2 spec entries, just add the rest