* Moving files around
James Whitehead Ii [10-11-07 - 12:39]
* Moving files around
* Cleaning up directory structure
diff --git a/Arrow-UP.blp b/Arrow-UP.blp
deleted file mode 100644
index b959539..0000000
Binary files a/Arrow-UP.blp and /dev/null differ
diff --git a/Arrow.blp b/Arrow.blp
deleted file mode 100644
index a02bc7a..0000000
Binary files a/Arrow.blp and /dev/null differ
diff --git a/Images/Arrow-UP.blp b/Images/Arrow-UP.blp
new file mode 100644
index 0000000..b959539
Binary files /dev/null and b/Images/Arrow-UP.blp differ
diff --git a/Images/Arrow.blp b/Images/Arrow.blp
new file mode 100644
index 0000000..a02bc7a
Binary files /dev/null and b/Images/Arrow.blp differ
diff --git a/Images/MinimapArrow-Green.tga b/Images/MinimapArrow-Green.tga
new file mode 100644
index 0000000..aab06cf
Binary files /dev/null and b/Images/MinimapArrow-Green.tga differ
diff --git a/MinimapArrow-Inner.tga b/MinimapArrow-Inner.tga
deleted file mode 100644
index df9609a..0000000
Binary files a/MinimapArrow-Inner.tga and /dev/null differ
diff --git a/MinimapArrow-Outer.tga b/MinimapArrow-Outer.tga
deleted file mode 100644
index aab06cf..0000000
Binary files a/MinimapArrow-Outer.tga and /dev/null differ
diff --git a/TomTom.lua b/TomTom.lua
index edb5be1..3aaa951 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -130,6 +130,23 @@ function WorldMapButton_OnClick(...)
end
end
+-- TODO: Make this now suck
+function TomTom:AddWaypoint(x,y,desc)
+ local oc,oz = Astrolabe:GetCurrentPlayerPosition()
+ SetMapToCurrentZone()
+ local c,z = Astrolabe:GetCurrentPlayerPosition()
+ if oc and oz then
+ SetMapZoom(oc,oz)
+ end
+
+ if not c or not z or c < 1 then
+ self:Print("Cannot find a valid zone to place the coordinates")
+ return
+ end
+
+ local point = self:SetWaypoint(c,z,x,y)
+ self:SetCrazyArrow(point, 15)
+end
--[[
local Orig_WorldMapButton_OnClick = WorldMapButton_OnClick
diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua
index 140ba0c..0a6bb6b 100644
--- a/TomTom_CrazyArrow.lua
+++ b/TomTom_CrazyArrow.lua
@@ -43,7 +43,7 @@ wayframe:SetScript("OnDragStop", OnDragStop)
wayframe:RegisterForDrag("LeftButton")
wayframe.arrow = wayframe:CreateTexture("OVERLAY")
-wayframe.arrow:SetTexture("Interface\\Addons\\TomTom\\Arrow")
+wayframe.arrow:SetTexture("Interface\\Addons\\TomTom\\Images\\Arrow")
wayframe.arrow:SetAllPoints()
local active_point, arrive_distance, showDownArrow
@@ -66,7 +66,7 @@ local function OnUpdate(self, elapsed)
if not showDownArrow then
arrow:SetHeight(70)
arrow:SetWidth(53)
- arrow:SetTexture("Interface\\AddOns\\TomTom\\Arrow-UP")
+ arrow:SetTexture("Interface\\AddOns\\TomTom\\Images\\Arrow-UP")
showDownArrow = true
end
@@ -88,7 +88,7 @@ local function OnUpdate(self, elapsed)
if showDownArrow then
arrow:SetHeight(56)
arrow:SetWidth(42)
- arrow:SetTexture("Interface\\AddOns\\TomTom\\Arrow")
+ arrow:SetTexture("Interface\\AddOns\\TomTom\\Images\\Arrow")
showDownArrow = false
end
diff --git a/TomTom_Waypoints.lua b/TomTom_Waypoints.lua
index feaa568..04a551a 100644
--- a/TomTom_Waypoints.lua
+++ b/TomTom_Waypoints.lua
@@ -63,7 +63,7 @@ function TomTom:SetWaypoint(c,z,x,y,far,near,arrive,callback)
point.minimap.icon:SetWidth(12)
point.minimap.arrowout = point.minimap:CreateTexture("BACKGROUND")
- point.minimap.arrowout:SetTexture("Interface\\AddOns\\TomTom\\MinimapArrow-Outer")
+ point.minimap.arrowout:SetTexture("Interface\\AddOns\\TomTom\\Images\\MinimapArrow-Green")
point.minimap.arrowout:SetPoint("CENTER", 0, 0)
point.minimap.arrowout:SetHeight(40)
point.minimap.arrowout:SetWidth(40)