Skip to content

Commit

Permalink
v0.9.131
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jan 30, 2025
1 parent 7500bb7 commit feaaa62
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 14 deletions.
6 changes: 3 additions & 3 deletions ImproveAny.toc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Interface-Classic: 11505
## Interface-Classic: 11506
## Interface-BCC: 20504
## Interface-Wrath: 30403
## Interface-Cata: 40401
## Interface: 110002, 110005, 110007, 110100
## Interface: 110007, 110100

## Version: 0.9.130
## Version: 0.9.131
## Title: ImproveAny by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40401
## Version: 0.9.130
## Version: 0.9.131
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.9.130
## Version: 0.9.131
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
4 changes: 2 additions & 2 deletions ImproveAny_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11505
## Version: 0.9.130
## Interface: 11506
## Version: 0.9.131
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 30403
## Version: 0.9.130
## Version: 0.9.131
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function ImproveAny:Event(event, ...)
["icon"] = 136033,
["var"] = mmbtn,
["dbtab"] = IATAB,
["vTT"] = {{"ImproveAny |T136033:16:16:0:0|t", "v|cff3FC7EB0.9.130"}, {ImproveAny:GT("LEFTCLICK"), ImproveAny:GT("MMBTNLEFT")}, {ImproveAny:GT("RIGHTCLICK"), ImproveAny:GT("MMBTNRIGHT")}},
["vTT"] = {{"ImproveAny |T136033:16:16:0:0|t", "v|cff3FC7EB0.9.131"}, {ImproveAny:GT("LEFTCLICK"), ImproveAny:GT("MMBTNLEFT")}, {ImproveAny:GT("RIGHTCLICK"), ImproveAny:GT("MMBTNRIGHT")}},
["funcL"] = function()
ImproveAny:ToggleSettings()
end,
Expand Down
20 changes: 17 additions & 3 deletions libs/D4Lib/D4Frames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ local Y = 0
local PARENT = nil
local TAB = nil
local TABIsNil = false
function D4:SetFontSize(element, fontSize, newFontFlags)
if not element then return end
if element.GetFont == nil then return end
if not fontSize then return end
local fontType, _, fontFlags = element:GetFont()
if fontType == nil then
print("SetFontSize FAILED #1:", element:GetName())

return
end

element:SetFont(fontType, fontSize, newFontFlags or fontFlags)
end

--[[ INPUTS ]]
function D4:AddCategory(tab)
tab.sw = tab.sw or 25
Expand Down Expand Up @@ -153,21 +167,21 @@ function D4:CreateSlider(tab)
if slider.Low == nil then
slider.Low = slider:CreateFontString(nil, nil, "GameFontNormal")
slider.Low:SetPoint("BOTTOMLEFT", slider, "BOTTOMLEFT", 0, -12)
slider.Low:SetFont(STANDARD_TEXT_FONT, 10, "THINOUTLINE")
D4:SetFontSize(slider.Low, 10, "THINOUTLINE")
slider.Low:SetTextColor(1, 1, 1)
end

if slider.High == nil then
slider.High = slider:CreateFontString(nil, nil, "GameFontNormal")
slider.High:SetPoint("BOTTOMRIGHT", slider, "BOTTOMRIGHT", 0, -12)
slider.High:SetFont(STANDARD_TEXT_FONT, 10, "THINOUTLINE")
D4:SetFontSize(slider.High, 10, "THINOUTLINE")
slider.High:SetTextColor(1, 1, 1)
end

if slider.Text == nil then
slider.Text = slider:CreateFontString(nil, nil, "GameFontNormal")
slider.Text:SetPoint("TOP", slider, "TOP", 0, 16)
slider.Text:SetFont(STANDARD_TEXT_FONT, 12, "THINOUTLINE")
D4:SetFontSize(slider.Text, 10, "THINOUTLINE")
slider.Text:SetTextColor(1, 1, 1)
end

Expand Down
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ function ImproveAny:InitIASettings()
IASettings:Hide()
end

ImproveAny:SetVersion(AddonName, 136033, "0.9.130")
IASettings.TitleText:SetText(format("ImproveAny |T136033:16:16:0:0|t v|cff3FC7EB%s", "0.9.130"))
ImproveAny:SetVersion(AddonName, 136033, "0.9.131")
IASettings.TitleText:SetText(format("ImproveAny |T136033:16:16:0:0|t v|cff3FC7EB%s", "0.9.131"))
IASettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit feaaa62

Please sign in to comment.