World of Warcraft: Getting a value from a options/profile table so i can set functions

34 Views Asked by At
core.defaults = {
    profile = {
        someInput = " ",
        someSelect = 1,
        general = {
                Blizzard = "Blizzard",
                Dark = "Dark",
                Class = "Class",
                Custom = "Custom"
        },

thats my settings but when i try and call something like

if core.db.profile.general == "Dark" then
   color = (0, 0, 0, 1)
end

it wont return "Dark" so when it tries to call for the color i get error

Ive tried making different tables even tried making a seperate toggle option for each theme, but i couldnt figure out how to make a toggle not active on the other options when one is checked like the image shows both options are ticked i couldnt figure out how to make it make one not active when the other is pressed.

1

0

There are 0 best solutions below