Quantcast

Clique:

James Whitehead II [12-07-06 - 02:46]
Clique:
* Fixed icon issues, all non-set icons should now properly use the questionmark
* Added custom radio buttons, courtesy Beladona
Filename
CliqueOptions.lua
images/RadioChecked.tga
images/RadioEmpty.tga
diff --git a/CliqueOptions.lua b/CliqueOptions.lua
index 73efa9a..2ea3ef7 100644
--- a/CliqueOptions.lua
+++ b/CliqueOptions.lua
@@ -408,23 +408,23 @@ function Clique:CreateOptionsFrame()
 		local texture = entry:CreateTexture("ARTWORK")
 		texture:SetTexture("Interface\\Buttons\\UI-CheckBox-Up")
 		texture:SetPoint("LEFT", 0, 0)
-		texture:SetHeight(20)
-		texture:SetWidth(20)
+		texture:SetHeight(26)
+		texture:SetWidth(26)
 		entry:SetNormalTexture(texture)

 		local texture = entry:CreateTexture("ARTWORK")
 		texture:SetTexture("Interface\\Buttons\\UI-CheckBox-Highlight")
 		texture:SetPoint("LEFT", 0, 0)
-		texture:SetHeight(20)
-		texture:SetWidth(20)
+		texture:SetHeight(26)
+		texture:SetWidth(26)
 		texture:SetBlendMode("ADD")
 		entry:SetHighlightTexture(texture)

 		local texture = entry:CreateTexture("ARTWORK")
 		texture:SetTexture("Interface\\Buttons\\UI-CheckBox-Check")
 		texture:SetPoint("LEFT", 0, 0)
-		texture:SetHeight(20)
-		texture:SetWidth(20)
+		texture:SetHeight(26)
+		texture:SetWidth(26)
 		entry:SetCheckedTexture(texture)

 		entry.name = entry:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
@@ -599,23 +599,23 @@ function Clique:CreateOptionsFrame()
 		local texture = button:CreateTexture("ARTWORK")
 		texture:SetTexture("Interface\\AddOns\\Clique\\images\\RadioEmpty")
 		texture:SetPoint("LEFT", 0, 0)
-		texture:SetHeight(20)
-		texture:SetWidth(20)
+		texture:SetHeight(26)
+		texture:SetWidth(26)
 		button:SetNormalTexture(texture)

 		local texture = button:CreateTexture("ARTWORK")
 		texture:SetTexture("Interface\\AddOns\\Clique\\images\\RadioChecked")
 		texture:SetPoint("LEFT", 0, 0)
-		texture:SetHeight(20)
-		texture:SetWidth(20)
+		texture:SetHeight(26)
+		texture:SetWidth(26)
 		texture:SetBlendMode("ADD")
 		button:SetHighlightTexture(texture)

 		local texture = button:CreateTexture("ARTWORK")
 		texture:SetTexture("Interface\\AddOns\\Clique\\images\\RadioChecked")
 		texture:SetPoint("LEFT", 0, 0)
-		texture:SetHeight(20)
-		texture:SetWidth(20)
+		texture:SetHeight(26)
+		texture:SetWidth(26)
 		button:SetCheckedTexture(texture)

 		button.name = button:CreateFontString(nil, "ARTWORK", "GameFontHighlightSmall")
@@ -667,7 +667,7 @@ function Clique:CreateOptionsFrame()
 	local button = CreateFrame("Button", "CliqueCustomButtonIcon", CliqueCustomFrame)
 	button.icon = button:CreateTexture(nil, "BORDER")
 	button.icon:SetAllPoints()
-	button.icon:SetTexture("Interface\\Icons\\Ability_Rogue_Sprint")
+	button.icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark")
 	button:SetHighlightTexture("Interface\\Buttons\\ButtonHilight-Square")
 	button:GetHighlightTexture():SetBlendMode("ADD")
 	button:SetHeight(30)
@@ -1030,7 +1030,7 @@ function Clique:FillListEntry(frame, idx)
     local type = string.format("%s%s", string.upper(string.sub(entry.type, 1, 1)), string.sub(entry.type, 2))
 	local button = tonumber(string.sub(entry.button, -1, -1))

-    frame.icon:SetTexture(entry.texture or "Interface/Icons/Ability_Rogue_Sprint")
+    frame.icon:SetTexture(entry.texture or "Interface\\Icons\\INV_Misc_QuestionMark")
 	frame.binding:SetText(entry.modifier..self:GetButtonText(button))


@@ -1182,7 +1182,7 @@ function Clique:ButtonOnClick(button)

     elseif this == CliqueCustomButtonCancel then
 		CliqueCustomFrame:Hide()
-		CliqueCustomButtonIcon.icon:SetTexture("Interface/Icons/Ability_Rogue_Sprint")
+		CliqueCustomButtonIcon.icon:SetTexture("Interface\\Icons\\INV_Misc_QuestionMark")
 		CliqueCustomButtonBinding:SetText("Set Click Binding")
 		self.customEntry = {}
 		self.editEntry = nil
diff --git a/images/RadioChecked.tga b/images/RadioChecked.tga
index 2895d73..3b5391a 100644
Binary files a/images/RadioChecked.tga and b/images/RadioChecked.tga differ
diff --git a/images/RadioEmpty.tga b/images/RadioEmpty.tga
index 1fba516..6509c74 100644
Binary files a/images/RadioEmpty.tga and b/images/RadioEmpty.tga differ