if (threatDiff <= MyThreat.db.profile.red.absolute or threatDiffPercent >= MyThreat.db.profile.red.relative) then |
r = 1; |
g = 0; |
hidden = MyThread.db.profile.red.hidden; |
hidden = MyThreat.db.profile.red.hidden; |
elseif (threatDiff <= MyThreat.db.profile.orange.absolute or threatDiffPercent >= MyThreat.db.profile.orange.relative) then |
r = 1; |
g = 0.5; |
hidden = MyThread.db.profile.orange.hidden; |
hidden = MyThreat.db.profile.orange.hidden; |
elseif (threatDiff <= MyThreat.db.profile.yellow.absolute or threatDiffPercent >= MyThreat.db.profile.yellow.relative) then |
r = 1; |
g = 1; |
hidden = MyThread.db.profile.yellow.hidden; |
hidden = MyThreat.db.profile.yellow.hidden; |
end |
|
end |