public
Description: WoW Addon - Better minimap blips
Homepage: http://www.tekkub.net/
Clone URL: git://github.com/tekkub/blipstick.git
Click here to lend your support to: blipstick and make a donation at www.pledgie.com !
Fix config panel to automatically adjust row size
tekkub (author)
Fri Aug 29 13:12:10 -0700 2008
commit  59f1fb7adca7f520da8def002827b91359217f14
tree    0d00c3f8cea5f62a1750631c23f0cd83054b6773
parent  0b9fee027dafdb9ca673f7275493a5b19490827c
...
3
4
5
6
7
8
9
...
35
36
37
 
 
 
38
39
40
...
64
65
66
 
67
68
69
70
71
...
3
4
5
 
6
7
8
...
34
35
36
37
38
39
40
41
42
...
66
67
68
69
70
 
71
72
73
0
@@ -3,7 +3,6 @@
0
 -- Locals --
0
 ----------------------
0
 
0
-local GAP, EDGEGAP, ROWHEIGHT = 8, 16, 43
0
 local DEFAULTPATH = "Interface\\Minimap\\ObjectIcons"
0
 
0
 local path = "Interface\\AddOns\\Blipstick\\"
0
@@ -35,6 +34,9 @@ end)
0
 frame.name = "Blipstick"
0
 frame:Hide()
0
 frame:SetScript("OnShow", function(frame)
0
+ local GAP, EDGEGAP = 8, 16
0
+ local ROWHEIGHT = (408-73-EDGEGAP) / #textures - GAP
0
+
0
   local title, subtitle = LibStub("tekKonfig-Heading").new(frame, "Blipstick", "These settings let you select a different set of minimap blips to use.")
0
 
0
   local anchor, rows = subtitle, {}
0
@@ -64,8 +66,8 @@ frame:SetScript("OnShow", function(frame)
0
     row:SetCheckedTexture(highlight)
0
 
0
     local preview = row:CreateTexture()
0
+ preview:SetWidth(ROWHEIGHT*4) -- Maintain proper aspect
0
     preview:SetPoint("TOPLEFT", row)
0
- preview:SetPoint("RIGHT", row, "CENTER", -GAP/2, 0)
0
     preview:SetPoint("BOTTOM", row)
0
     preview:SetTexture(texture)
0
 

Comments

    No one has commented yet.