View Single Post
09-18-17, 12:02 PM   #8
Kakjens
A Cliff Giant
Join Date: Apr 2017
Posts: 75
Changing logic into nested ifs seems to reduce the number of checks and allows to eliminate isMaxLevel:
Lua Code:
  1. if isMaxLevel then
  2.     if E.db.PCB.experienceBar.capped then
  3.         bar.text:Settext(L["capped"])
  4.     end
  5. elseif E.db.PCB.experienceBar.progress then
  6. --draw
  7. ...
  8. end

Also, in line 10 setting the last 0 to, for example, 1 would allow in line 11 to delete "or 0".
  Reply With Quote