View Single Post
09-11-22, 11:14 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Xrystal View Post
This prompted this error: "Interface/AddOns/nUI_Dashboard/EditModeSystem.lua:2: unexpected symbol near '['" on that first line
I'm downloading the PTR right now, so it'll be a while before I can dig around it. Even so, this error is pointing out a syntax issue, you're trying to index a table that you didn't give a reference to. That's what it's complaining about when it's saying there's an unexpected "[".

Also, if you're adding things accessible by the global environment, you need to keep name collisions in mind. Generic names like Enum.EditModeSystem.Dashboard and EditModeDashboardSystemMixin are more likely to cause conflict than something that more uniquely identifies that they are from your addon.

You also may want to avoid inserting values into Blizzard enums if you're thinking of heading in that direction.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote