Quantcast
WoWInterface - View Single Post - Add table to list
View Single Post
02-21-21, 07:26 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,429
Lua Code:
  1. tempSpellChatList = {
  2.     addSpellLink = {
  3.         percentage = 100,
  4.         isEnabled = true,
  5.         spellChatList = {}
  6.     }
  7. }

Not sure of your intention but when written like this, addSpellLink becomes the name of the key as in
Lua Code:
  1. tempSpellChatList = {
  2.     ["addSpellLink"] = {
  3.         percentage = 100,
  4.         isEnabled = true,
  5.         spellChatList = {}
  6.     }
  7. }

If you want to use the spell id as the key
Lua Code:
  1. tempSpellChatList = {}
  2. tempSpellChatList[addSpellLink] = {
  3.     percentage = 100,
  4.     isEnabled = true,
  5.     spellChatList = {}
  6. }
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote