<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,7 @@
 
 
 if not Squeenix then return end
+local Squeenix = Squeenix
 
 
 ----------------------
@@ -8,6 +9,7 @@ if not Squeenix then return end
 ----------------------
 
 local tekcheck = LibStub(&quot;tekKonfig-Checkbox&quot;)
+local tekbutton = LibStub(&quot;tekKonfig-Button&quot;)
 local tekslider = LibStub(&quot;tekKonfig-Slider&quot;)
 local GAP = 8
 
@@ -27,8 +29,15 @@ frame:SetScript(&quot;OnShow&quot;, function(frame)
 	local lockpos = tekcheck.new(frame, nil, &quot;Lock minimap&quot;, &quot;TOPLEFT&quot;, subtitle, &quot;BOTTOMLEFT&quot;, -2, -GAP)
 	lockpos.tiptext = &quot;Locks the minimap to prevent accidental movement&quot;
 	local checksound = lockpos:GetScript(&quot;OnClick&quot;)
-	lockpos:SetScript(&quot;OnClick&quot;, function(self) checksound(self); Squeenix.db.locked = not Squeenix.db.locked end)
-	lockpos:SetChecked(Squeenix.db.locked)
+	lockpos:SetScript(&quot;OnClick&quot;, function(self) checksound(self); Squeenix.db.unlocked = not Squeenix.db.unlocked; Squeenix:SetPosition() end)
+	lockpos:SetChecked(not Squeenix.db.unlocked)
+
+
+	local resetpos = tekbutton.new_small(frame, &quot;TOP&quot;, lockpos, &quot;CENTER&quot;, 0, 11)
+	resetpos:SetPoint(&quot;RIGHT&quot;, -16, 0)
+	resetpos:SetText(&quot;Reset&quot;)
+	resetpos.tiptext = &quot;Reset the minimap to the default position&quot;
+	resetpos:SetScript(&quot;OnClick&quot;, function(self) Squeenix.db.x, Squeenix.db.y, Squeenix.db.anchorframe, Squeenix.db.anchor = nil; Squeenix:SetPosition() end)
 
 
 	local showcompass = tekcheck.new(frame, nil, &quot;Show full compass&quot;, &quot;TOPLEFT&quot;, lockpos, &quot;BOTTOMLEFT&quot;, 0, -GAP)</diff>
      <filename>Config.lua</filename>
    </modified>
    <modified>
      <diff>@@ -1,60 +1,21 @@
-if true then return end
-local L = AceLibrary(&quot;AceLocale-2.2&quot;):new(&quot;SqueenixMovement&quot;)
-L:RegisterTranslations(&quot;enUS&quot;, function() return {
-	[&quot;Lock movement&quot;] = true,
-	[&quot;Lock/unlock minimap movement&quot;] = true,
-	[&quot;Locked&quot;] = true,
-	[&quot;Unlocked&quot;] = true,
-	[&quot;Reset Position&quot;] = true,
-	[&quot;Reset the minimap to it's default position&quot;] = true,
-} end)
 
-L:RegisterTranslations(&quot;koKR&quot;, function() return {
-	[&quot;Lock movement&quot;] = &quot;&#50948;&#52824; &#44256;&#51221;&quot;,
-	[&quot;Lock/unlock minimap movement&quot;] = &quot;&#48120;&#45768;&#47605;&#51032; &#50948;&#52824;&#47484; &#51060;&#46041;&#54616;&#44144;&#45208; &#44256;&#51221;&#54633;&#45768;&#45796;&quot;,
-	[&quot;Locked&quot;] = &quot;&#44256;&#51221;&quot;,
-	[&quot;Unlocked&quot;] = &quot;&#51060;&#46041;&quot;,
-	[&quot;Reset Position&quot;] = &quot;&#50948;&#52824; &#52488;&#44592;&#54868;&quot;,
-	[&quot;Reset the minimap to it's default position&quot;] = &quot;&#48120;&#45768;&#47605;&#51032; &#50948;&#52824;&#47484; &#44592;&#48376;&#44050;&#51004;&#47196; &#46104;&#46028;&#47549;&#45768;&#45796;&quot;,
-} end)
+if not Squeenix then return end
+local Squeenix = Squeenix
 
 
-local move = Squeenix:NewModule(&quot;Movement&quot;)
+Minimap:SetMovable(true)
+Minimap:EnableMouse(true)
+Minimap:RegisterForDrag(&quot;LeftButton&quot;)
+Minimap:SetScript(&quot;OnDragStart&quot;, function(frame) if Squeenix.db.unlocked then frame:StartMoving() end end)
+Minimap:SetScript(&quot;OnDragStop&quot;, function(frame)
+	if not Squeenix.db.unlocked then return end
+	frame:StopMovingOrSizing()
+	Squeenix.db.x, Squeenix.db.y = frame:GetCenter()
+	Squeenix.db.anchorframe, Squeenix.db.anchor = &quot;UIParent&quot;, &quot;BOTTOMLEFT&quot;
+end)
 
 
-function move:Initialize()
-	self.db = Squeenix.db:RegisterNamespace(&quot;Movement&quot;)
-	self.db:RegisterDefaults({profile={
-		lock = true,
-		x = 9, y = -92,
-		anchor = &quot;TOP&quot;,
-		anchorframe = &quot;MinimapCluster&quot;,
-	}})
-
-	Minimap:SetMovable(true)
-	Minimap:EnableMouse(true)
-	Minimap:RegisterForDrag(&quot;LeftButton&quot;)
-	Minimap:SetScript(&quot;OnDragStart&quot;, function(frame) if not self.db.profile.lock then frame:StartMoving() end end)
-	Minimap:SetScript(&quot;OnDragStop&quot;, function(frame)
-		if self.db.profile.lock then return end
-		frame:StopMovingOrSizing()
-		self.db.profile.x, self.db.profile.y = frame:GetCenter()
-		self.db.profile.anchorframe, self.db.profile.anchor = &quot;UIParent&quot;, &quot;BOTTOMLEFT&quot;
-	end)
-
+function Squeenix:SetPosition()
 	Minimap:ClearAllPoints()
-	Minimap:SetPoint(&quot;CENTER&quot;, self.db.profile.anchorframe, self.db.profile.anchor, self.db.profile.x, self.db.profile.y)
-
-	Squeenix.slash:RegisterSlashHandler(&quot;move: Lock/unlock minimap movement&quot;, &quot;^move$&quot;, function()
-		self.db.profile.lock = not self.db.profile.lock
-		self:Print(&quot;Minimap movement &quot;..(self.db.profile.lock and &quot;|cffff0000locked&quot; or &quot;|cff00ff00unlocked&quot;))
-	end)
-	Squeenix.slash:RegisterSlashHandler(&quot;resetpos: Resets the minimap to the default location&quot;, &quot;^resetpos$&quot;, function()
-		self.db.profile.x, self.db.profile.y, self.db.profile.anchorframe, self.db.profile.anchor = nil, nil, nil, nil
-		Minimap:ClearAllPoints()
-		Minimap:SetPoint(&quot;CENTER&quot;, self.db.profile.anchorframe, self.db.profile.anchor, self.db.profile.x, self.db.profile.y)
-		self:Print(&quot;Minimap position reset&quot;)
-	end)
+	Minimap:SetPoint(&quot;CENTER&quot;, self.db.anchorframe or &quot;MinimapCluster&quot;, self.db.anchor or &quot;TOP&quot;, self.db.x or 9, self.db.y or -92)
 end
-
-</diff>
      <filename>Move.lua</filename>
    </modified>
    <modified>
      <diff>@@ -61,6 +61,7 @@ function Squeenix:ADDON_LOADED()
 	self:SetBorder()
 	self:HideButtons()
 	self:ShowCompass()
+	self:SetPosition()
 
 	f:UnregisterEvent(&quot;ADDON_LOADED&quot;)
 	self.ADDON_LOADED = nil</diff>
      <filename>Squeenix.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>317c6fa1314fcae0bfe2e7d3d3ccc9880a0c0659</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/squeenix/commit/a6bb2da358657f772dc3cb8fb3869296a8e57f3a</url>
  <id>a6bb2da358657f772dc3cb8fb3869296a8e57f3a</id>
  <committed-date>2008-03-14T17:07:28-07:00</committed-date>
  <authored-date>2008-03-14T16:06:22-07:00</authored-date>
  <message>Flesh out minimap repositioning</message>
  <tree>255910c0741291c1f56c20a5cdaab266a5860253</tree>
  <committer>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
