|
|
@ -24,7 +24,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
_addon.author = 'Vicrelant'; |
|
|
|
_addon.author = 'Vicrelant'; |
|
|
|
_addon.name = 'ibar'; |
|
|
|
_addon.name = 'ibar'; |
|
|
|
_addon.version = '3.0.0'; |
|
|
|
_addon.version = '3.0.1'; |
|
|
|
|
|
|
|
|
|
|
|
require 'common' |
|
|
|
require 'common' |
|
|
|
|
|
|
|
|
|
|
@ -185,28 +185,28 @@ ashita.register_event('render', function() |
|
|
|
sResult = math.floor(degrees); |
|
|
|
sResult = math.floor(degrees); |
|
|
|
|
|
|
|
|
|
|
|
if (337 < degrees or 23 >= degrees) then |
|
|
|
if (337 < degrees or 23 >= degrees) then |
|
|
|
eResult = string.format('\\cs(120,120,120,120)N\\cr'); |
|
|
|
eResult = string.format('|cff787878|N|r'); |
|
|
|
sResult = 'N'; |
|
|
|
sResult = 'N'; |
|
|
|
elseif (23 < degrees and 68 >= degrees) then |
|
|
|
elseif (23 < degrees and 68 >= degrees) then |
|
|
|
eResult = string.format('\\cs(255,255,255,255)NE\\cr'); |
|
|
|
eResult = string.format('|cFFFFFFFF|NE|r'); |
|
|
|
sResult = 'NE'; |
|
|
|
sResult = 'NE'; |
|
|
|
elseif (68 < degrees and 113 >= degrees) then |
|
|
|
elseif (68 < degrees and 113 >= degrees) then |
|
|
|
eResult = string.format('\\cs(44,240,232,255)E\\cr'); |
|
|
|
eResult = string.format('|cff2cf0e8|E|r'); |
|
|
|
sResult = 'E'; |
|
|
|
sResult = 'E'; |
|
|
|
elseif (113 < degrees and 158 >= degrees) then |
|
|
|
elseif (113 < degrees and 158 >= degrees) then |
|
|
|
eResult = string.format('\\cs(73,255,73,200)SE\\cr'); |
|
|
|
eResult = string.format('|cff49ff49|SE|r'); |
|
|
|
sResult = 'SE'; |
|
|
|
sResult = 'SE'; |
|
|
|
elseif (158 < degrees and 203 >= degrees) then |
|
|
|
elseif (158 < degrees and 203 >= degrees) then |
|
|
|
eResult = string.format('\\cs(255,201,0,198)S\\cr'); |
|
|
|
eResult = string.format('|cffffc900|S|r'); |
|
|
|
sResult = 'S'; |
|
|
|
sResult = 'S'; |
|
|
|
elseif (203 < degrees and 248 >= degrees) then |
|
|
|
elseif (203 < degrees and 248 >= degrees) then |
|
|
|
eResult = string.format('\\cs(205,24,205,200)SW\\cr'); |
|
|
|
eResult = string.format('|cffcd18cd|SW|r'); |
|
|
|
sResult = 'SW'; |
|
|
|
sResult = 'SW'; |
|
|
|
elseif (248 < degrees and 293 >= degrees) then |
|
|
|
elseif (248 < degrees and 293 >= degrees) then |
|
|
|
eResult = string.format('\\cs(73,73,255,255)W\\cr'); |
|
|
|
eResult = string.format('|cff4949ff|W|r'); |
|
|
|
sResult = 'W'; |
|
|
|
sResult = 'W'; |
|
|
|
elseif (293 < degrees and 337 >= degrees) then |
|
|
|
elseif (293 < degrees and 337 >= degrees) then |
|
|
|
eResult = string.format('\\cs(255,25,0,255)NW\\cr'); |
|
|
|
eResult = string.format('|cffff1900|NW|r'); |
|
|
|
sResult = 'NW'; |
|
|
|
sResult = 'NW'; |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|