Workaround for game bug
Added workaround for game bug that prevented the new Northwind zone from showing a tooltip: The game included a trailing space, so the actual zone name is 'Northwind '.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
## Interface: 11200
|
||||
## Title: LevelRange [|cff3fcf26Turtle|r]
|
||||
## Version: 2.0.5
|
||||
## Version: 2.0.6
|
||||
## Author: Bull3t, Tenyar97, rado-boy, blehz, Spartelfant.
|
||||
## Notes: Shows the zone level range on the World Map. Now with 100% more turtles!
|
||||
## URL: https://github.com/Spartelfant/LevelRange-Turtle
|
||||
|
||||
+9
-7
@@ -18,7 +18,7 @@
|
||||
LEVELRANGE_NAME = "LevelRange"
|
||||
|
||||
-- Version Number
|
||||
LEVELRANGE_VERSION = "2.0.5";
|
||||
LEVELRANGE_VERSION = "2.0.6";
|
||||
|
||||
-- Details
|
||||
Details = {
|
||||
@@ -381,25 +381,27 @@ local lLR_OldUpdate = function() end;
|
||||
-- Replacement function to draw all the extra goodies of LevelRange
|
||||
function LevelRange_WorldMapButton_OnUpdate(arg1)
|
||||
lLR_OldUpdate(arg1);
|
||||
local areaName = WorldMapFrame.areaName;
|
||||
|
||||
local areaNameRaw = WorldMapFrame.areaName or "";
|
||||
local areaNameTrimmed = string.match(areaNameRaw, "^%s*(.-)%s*$"); -- 2.0.6: Added code to trim whitespace to deal with patch 1.18 bug for Northwind zone: In-game name contains trailing space 'Northwind '.
|
||||
local zoneNum = GetCurrentMapZone();
|
||||
|
||||
-- Zone name equivalence map
|
||||
if LEVELRANGE_SUBZONES[areaName] then
|
||||
areaName = LEVELRANGE_SUBZONES[areaName];
|
||||
if LEVELRANGE_SUBZONES[areaNameTrimmed] then
|
||||
areaNameTrimmed = LEVELRANGE_SUBZONES[areaNameTrimmed];
|
||||
end
|
||||
|
||||
-- Bail out if nothing has changed
|
||||
if zoneNum == lLR_CurrentZone and areaName == lLR_CurrentArea then
|
||||
if zoneNum == lLR_CurrentZone and areaNameRaw == lLR_CurrentArea then
|
||||
return;
|
||||
else
|
||||
lLR_CurrentZone = zoneNum;
|
||||
lLR_CurrentArea = areaName;
|
||||
lLR_CurrentArea = areaNameRaw;
|
||||
end
|
||||
|
||||
-- Continent or zone map?
|
||||
if zoneNum == 0 then
|
||||
lUpdateTooltip(areaName);
|
||||
lUpdateTooltip(areaNameTrimmed);
|
||||
else
|
||||
lUpdateTooltip(nil); -- hide it
|
||||
end
|
||||
|
||||
+4
-1
@@ -9,7 +9,7 @@ Details
|
||||
----------------------
|
||||
Title: LevelRange
|
||||
Interface: 11200
|
||||
Version: 2.0.5
|
||||
Version: 2.0.6
|
||||
|
||||
Author: Bull3t, Tenyar97, rado-boy, blehz, Spartelfant.
|
||||
Addon Website: https://github.com/Tenyar97/LevelRange-Turtle
|
||||
@@ -22,6 +22,9 @@ Current Features:
|
||||
----------------------
|
||||
Change Log
|
||||
----------------------
|
||||
2.0.6 - Update (Spartelfant)
|
||||
[*] Added workaround for game bug that prevented the new Northwind zone from showing a tooltip: The game included a trailing space, so the actual zone name is 'Northwind '.
|
||||
|
||||
2.0.5 - Update (Spartelfant)
|
||||
[*] New zones added for patch 1.18 (Grim Reaches, Northwind, Balor)
|
||||
[*] New dungeons added for patch 1.18 (Stormwrought Ruins, Dragonmaw Retreat)
|
||||
|
||||
Reference in New Issue
Block a user