seblindfors / ConsolePort

ConsolePort - Game Controller Addon for World of Warcraft
Artistic License 2.0
182 stars 39 forks source link

Update Lookup.lua #36

Closed Axel303 closed 4 years ago

Axel303 commented 4 years ago

Allow the possibility to choose which art you want to have base on a variable.

The variable "ab.cfg.activeclass" is a number, this can be optimized by using a string but in the GUI(in game) we can only use numbers.

eg : ab.cfg.activeclass = "WARRIOR"; local index, px = unpack(classArt[ab.cfg.activeclass])

seblindfors commented 4 years ago

You can add strings in the advanced module by wrapping them in quotes, like "WARRIOR" or 'WARRIOR'. That if-statement is very ugly. I will keep the change in mind.