Fix POI icons for WoW 3.0.2 #218


  • New
  • Patch
Open
Assigned to ckknight
  • _ForgeUser1445808 created this issue Oct 24, 2008

    From 3c9e9dde4d293378a7da2e0b97b192b04623d752 Mon Sep 17 00:00:00 2001
    From: Ash Berlin <[email protected]>
    Date: Fri, 24 Oct 2008 20:43:45 +0100
    Subject: [PATCH] Fix POIs for new texture file from WoW v3.0.2

    ---
    CorpsePOI.lua |    6 +++---
    Landmarks.lua |   36 ++++++++++++++++++------------------
    2 files changed, 21 insertions(+), 21 deletions(-)

    diff --git a/CorpsePOI.lua b/CorpsePOI.lua
    index 17f4687..c5becbe 100644
    --- a/CorpsePOI.lua
    +++ b/CorpsePOI.lua
    -9,7 +9,7 @@ Cartographer3.AddPOIType("Corpse", L["Corpse"], function()
         local texture = poi:CreateTexture(nil, "BORDER")
         texture:SetAllPoints()
         texture:SetTexture([[Interface\Minimap\POIIcons]])
    -    texture:SetTexCoord(0.875, 1, 0, 0.125)
    +    texture:SetTexCoord(0.5, 0.5625, 0, 0.0625)
         return poi
    end)

    -29,7 +29,7 @@ local function makePOIs()
         corpsePOI.texture = texture
         texture:SetAllPoints()
         texture:SetTexture([[Interface\Minimap\POIIcons]])
    -    texture:SetTexCoord(0.875, 1, 0, 0.125)
    +    texture:SetTexCoord(0.5, 0.5625, 0, 0.0625)

         rezPOI = CreateFrame("Button", Cartographer3_Data.mapView:GetName() .. "_DeathRelease", Cartographer3_Data.mapView)
         function rezPOI:AddDataToFullTooltip()
    -43,7 +43,7 @@ local function makePOIs()
         rezPOI.texture = texture
         texture:SetAllPoints()
         texture:SetTexture([[Interface\Minimap\POIIcons]])
    -    texture:SetTexCoord(0.875, 1, 0, 0.125)
    +    texture:SetTexCoord(0.5, 0.5625, 0, 0.0625)
    end

    local function positionCorpse()
    diff --git a/Landmarks.lua b/Landmarks.lua
    index 8f20d38..5379981 100644
    --- a/Landmarks.lua
    +++ b/Landmarks.lua
    -10,17 +10,17 @@ Cartographer3.AddPOIType("Landmark", L["Landmark"], function()
         texture:SetAllPoints(poi)
         texture:SetTexture([=[Interface\Minimap\POIIcons]=])
         texture:SetTexCoord(
    -        (5 % 8) / 8,
    -        ((5 % 8) + 1) / 8,
    -        math.floor(5 / 8) / 8,
    -        (math.floor(5 / 8) + 1) / 8)
    +        (6 % 16) / 16,
    +        ((6 % 16) + 1) / 16,
    +        math.floor(6 / 16) / 16,
    +        (math.floor(6 / 16) + 1) / 16)
         return poi
    end)

    local battlegroundHalfways = {
         { -- Horde
    -        [11] = 242.5, -- tower
    -        [13] = 242.5, -- graveyard
    +        [12] = 242.5, -- tower
    +        [14] = 242.5, -- graveyard
             [19] = 62.5, -- mine
             [24] = 62.5, -- lumber mill
             [29] = 62.5, -- blacksmith
    -28,8 +28,8 @@ local battlegroundHalfways = {
             [39] = 62.5, -- stables
         },
         { -- Alliance
    -        [3] = 242.5, -- graveyard
    -        [8] = 242.5, -- tower
    +        [4] = 242.5, -- graveyard
    +        [9] = 242.5, -- tower
             [17] = 62.5, -- mine
             [22] = 62.5, -- lumber mill
             [27] = 62.5, -- blacksmith
    -39,9 +39,9 @@ local battlegroundHalfways = {
    }
    local battlegroundFulls = {
         { -- Horde
    -        [1] = true, -- mine
    -        [9] = true, -- tower
    -        [12] = true, -- graveyard
    +        [2] = true, -- mine
    +        [10] = true, -- tower
    +        [13] = true, -- graveyard
             [20] = true, -- mine
             [25] = true, -- limber mill
             [30] = true, -- blacksmith
    -49,9 +49,9 @@ local battlegroundFulls = {
             [40] = true, -- stables
         },
         { -- Alliance
    -        [2] = true, -- mine
    -        [10] = true, -- tower
    -        [14] = true, -- graveyard
    +        [3] = true, -- mine
    +        [11] = true, -- tower
    +        [15] = true, -- graveyard
             [18] = true, -- mine
             [23] = true, -- lumber mill
             [28] = true, -- blacksmith
    -197,10 +197,10 @@ local function f()

             if textureIndex ~= 15 then
                 poi.texture:SetTexCoord(
    -                (textureIndex % 8) / 8,
    -                ((textureIndex % 8) + 1) / 8,
    -                math.floor(textureIndex / 8) / 8,
    -                (math.floor(textureIndex / 8) + 1) / 8)
    +                (textureIndex % 16) / 16,
    +                ((textureIndex % 16) + 1) / 16,
    +                math.floor(textureIndex / 16) / 16,
    +                (math.floor(textureIndex / 16) + 1) / 16)

                 local poiX, poiY = Cartographer3.Utils.ConvertZoneCoordinateToUniverseCoordinate(zone, x, y)
                 poi:SetPoint("CENTER", Cartographer3_Data.mapView, "CENTER", poiX, poiY)
    --
    1.6.0.2

  • _ForgeUser1445808 added the tags New Patch Oct 24, 2008

To post a comment, please login or register a new account.