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 !
Removing unneeded bits
tekkub (author)
Sun Apr 20 13:49:01 -0700 2008
commit  a9313b914b9d4aa6316e68a527069d8cf4bfcce3
tree    09f3e39ae0b9a82d414402deed04bac7d89e4d6d
parent  737d8c9537cae02f2bdc6214342ea769dd6b7715
  • Blipstick.lua
  • tekKonfig/tekKonfig.xml
  • tekKonfig/tekKonfigButton.lua
  • tekKonfig/tekKonfigCheckbox.lua
  • tekKonfig/tekKonfigDropdown.lua
  • tekKonfig/tekKonfigFadeIn.lua
  • tekKonfig/tekKonfigSlider.lua
...
19
20
21
22
23
24
25
26
...
32
33
34
35
36
37
38
...
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
...
19
20
21
 
 
22
23
24
...
30
31
32
 
33
34
35
...
49
50
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
53
54
0
@@ -19,8 +19,6 @@ Minimap:SetBlipTexture("Interface\\AddOns\\Blipstick\\SmallExclaim")
0
 -- Locals --
0
 ----------------------
0
 
0
-local tekcheck = LibStub("tekKonfig-Checkbox")
0
-local tekslider = LibStub("tekKonfig-Slider")
0
 local GAP, EDGEGAP = 8, 16
0
 
0
 
0
@@ -32,7 +30,6 @@ local frame = CreateFrame("Frame", nil, UIParent)
0
 frame.name = "Blipstick"
0
 frame:Hide()
0
 frame:SetScript("OnShow", function(frame)
0
---~ local ControlFreak = ControlFreak
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 = subtitle
0
@@ -52,44 +49,6 @@ frame:SetScript("OnShow", function(frame)
0
     anchor = demo
0
   end
0
 
0
---~ local lockpos = tekcheck.new(frame, nil, "Lock frame", "TOPLEFT", subtitle, "BOTTOMLEFT", -2, -GAP)
0
---~ lockpos.tiptext = "Locks the frame to prevent accidental movement"
0
---~ local checksound = lockpos:GetScript("OnClick")
0
---~ lockpos:SetScript("OnClick", function(self) checksound(self); ControlFreak.db.char.frameopts.locked = not ControlFreak.db.char.frameopts.locked end)
0
---~ lockpos:SetChecked(ControlFreak.db.char.frameopts.locked)
0
-
0
-
0
---~ local showtip = tekcheck.new(frame, nil, "Show tooltip", "TOPLEFT", lockpos, "BOTTOMLEFT", 0, -GAP)
0
---~ showtip.tiptext = "Show help tooltip on hover"
0
---~ showtip:SetScript("OnClick", function(self) checksound(self); ControlFreak.db.char.showtooltip = not ControlFreak.db.char.showtooltip end)
0
---~ showtip:SetChecked(ControlFreak.db.char.showtooltip)
0
-
0
-
0
---~ local threshslider, threshslidertext, threshcontainer = tekslider.new(frame, "Break Threshold: "..ControlFreak.db.char.breakthreshold.." sec", 0, 10, "LEFT", frame, "TOP", GAP, 0)
0
---~ threshcontainer:SetPoint("TOP", lockpos, "TOP", 0, 0)
0
---~ threshslider.tiptext = "Time (in seconds) before spell breaks to unfade frame."
0
---~ threshslider:SetValue(ControlFreak.db.char.breakthreshold)
0
---~ threshslider:SetValueStep(1)
0
---~ threshslider:SetScript("OnValueChanged", function()
0
---~ ControlFreak.db.char.breakthreshold = threshslider:GetValue()
0
---~ threshslidertext:SetText("Break Threshold: "..ControlFreak.db.char.breakthreshold.." sec")
0
---~ end)
0
-
0
-
0
---~ local alpha = math.floor(ControlFreak.db.char.alpha*100 + .5)
0
---~ local alphaslider, alphaslidertext = tekslider.new(frame, "Alpha: "..alpha.."%", "0%", "100%", "TOP", threshcontainer, "BOTTOM", 0, -GAP)
0
---~ alphaslider:SetPoint("LEFT", threshslider, "LEFT")
0
---~ alphaslider.tiptext = "Alpha level to fade frame to when focus is controlled, dead, or not set."
0
---~ alphaslider:SetValue(ControlFreak.db.char.alpha)
0
---~ alphaslider:SetValueStep(0.05)
0
---~ alphaslider:SetScript("OnValueChanged", function()
0
---~ ControlFreak.db.char.alpha = alphaslider:GetValue()
0
---~ local alpha = math.floor(ControlFreak.db.char.alpha*100 + .5)
0
---~ alphaslidertext:SetText("Alpha: "..alpha.."%")
0
---~ ControlFreak:OnUpdate(true)
0
---~ end)
0
-
0
-
0
   frame:SetScript("OnShow", nil)
0
 end)
0
 
...
1
2
3
4
5
6
7
8
9
10
...
1
2
 
 
 
3
 
 
4
5
0
@@ -1,10 +1,5 @@
0
 <Ui xmlns="http://www.blizzard.com/wow/ui/">
0
   <Script file="LibStub.lua"/>
0
- <Script file="tekKonfigButton.lua"/>
0
- <Script file="tekKonfigCheckbox.lua"/>
0
- <Script file="tekKonfigFadeIn.lua"/>
0
   <Script file="tekKonfigHeading.lua"/>
0
- <Script file="tekKonfigSlider.lua"/>
0
- <Script file="tekKonfigDropdown.lua"/>
0
   <Script file="tekKonfigAboutPanel.lua"/>
0
 </Ui>

Comments

    No one has commented yet.