Commit 374fa558 authored by Blazeflack's avatar Blazeflack

Release v1.48

parent 480404f1
<p><strong>1.48, June 29th 2019</strong></p>
<ul>
<li>Fixed error regarding AceLocale</li>
<li>Removed CastbarCustomBackdrop tweak as it is no longer necessary.</li>
</ul>
<br />
<p><strong>1.47, April 7th 2019</strong></p>
<ul>
<li>Removed AuraIconText tweak as it is no longer compatibly with ElvUI</li>
......
......@@ -6,21 +6,9 @@ As a rule of thumb, I try to provide options for any changes the tweak is making
\\
== <<center>><<color #4beb2c>>**Bug Reports**<</color>><</center>> ==
Please submit bug reports in the issue tracker: [[http://git.tukui.org/Blazeflack/elvui-customtweaks/issues|Click!]].
When submitting a bug report, please use a descriptive title and include the following information:
* Version number of ElvUI CustomTweaks (the actual number, "latest version" is not a version number).
* Whether you have ruled out conflicts with other AddOns by disabling everything except "ElvUI", "ElvUI Config" and "ElvUI CustomTweaks".
* Usually a picture is worth a thousand words, so include one unless the issue cannot be seen in the screenshot.
* Make sure you include the error you are receiving, if any. You only want to focus on the very first error you get if there are more than one, so make sure to press that "Previous" button until you reach the first error.
\\
== <<center>><<color #4beb2c>>**Requests**<</color>><</center>> ==
Please submit new requests in the issue tracker: [[http://git.tukui.org/Blazeflack/elvui-customtweaks/issues|Click!]].
When submitting a request, please use a descriptive title and include the following information:
* What part of ElvUI you want to modify.
* How you want it to behave in comparison to how it is behaving now.
== <<center>><<color #4beb2c>>**Bug Reports / Requests**<</color>><</center>> ==
I am no longer actively developing this addon. Real life keeps me busy, and I am not sure if I will ever find the time to get back on this project. Use it however you want.
If you develop addons and want to take over this project, then let me know.
\\
......@@ -29,7 +17,6 @@ When submitting a request, please use a descriptive title and include the follow
* **<<color #4beb2c>>AuraIconSpacing<</color>>:** Allows you to set a spacing between individual aura icons for the units you choose.
* **<<color #4beb2c>>BagButtons<</color>>:** Allows you to change bag buttons to use the classic texture style and allows you to add a 'Stack' button.
* **<<color #4beb2c>>BagsTextFormat<</color>>:** Allows you to choose which text format the Bags datatext uses.
* **<<color #4beb2c>>CastbarCustomBackdrop<</color>>:** Allows you to use a custom castbar backdrop color.
* **<<color #4beb2c>>CastbarText<</color>>:** Allows you to position or hide castbar text.
* **<<color #4beb2c>>ChatMaxLines<</color>>:** Increases the amount of messages saved in a chat window, before they get replaced by new messages.
* **<<color #4beb2c>>ClickThroughActionBars<</color>>:** Allows you to make actionbars clickthrough.
......
......@@ -4,20 +4,9 @@ This AddOn packs all previous requests for custom tweaks into a single package.
Every tweak is disabled by default, forcing you, the user, to decide which tweaks you would like to use and thereby eliminate any unwanted changes. Some tweaks come with customizable options, while others are of a nature where they don't need any options. As a rule of thumb, I try to provide options for any changes the tweak is making, where warranted, giving you 100% control over every tweak.
[size=150][color=#4beb2c][b]Bug Reports[/b][/color][/size]
Please submit bug reports in the issue tracker: [url=https://git.tukui.org/Blazeflack/ElvUI_CustomTweaks/issues]Click![/url]. When submitting a bug report, please use a descriptive title and include the following information:
[list]
[*]Version number of ElvUI CustomTweaks (the actual number, "latest version" is not a version number).
[*]Whether you have ruled out conflicts with other AddOns by disabling everything except "ElvUI", "ElvUI Config" and "ElvUI CustomTweaks".
[*]Usually a picture is worth a thousand words, so include one unless the issue cannot be seen in the screenshot.
[*]Make sure you include the error you are receiving, if any. You only want to focus on the very first error you get if there are more than one, so make sure to press that "Previous" button until you reach the first error.
[/list]
[size=150][color=#4beb2c][b]Requests[/b][/color][/size]
Please submit new requests in the issue tracker: [url=https://git.tukui.org/Blazeflack/ElvUI_CustomTweaks/issues]Click![/url]. When submitting a request, please use a descriptive title and include the following information:
[list][*]What part of ElvUI you want to modify.
[*]How you want it to behave in comparison to how it is behaving now.[/list]
[size=150][color=#4beb2c][b]Bug Reports / Requests[/b][/color][/size]
I am no longer actively developing this addon. Real life keeps me busy, and I am not sure if I will ever find the time to get back on this project. Use it however you want.
If you develop addons and want to take over this project, then let me know.
[size=150][color=#4beb2c][b]Current Tweaks[/b][/color][/size]
......@@ -26,7 +15,6 @@ Please submit new requests in the issue tracker: [url=https://git.tukui.org/Blaz
[*][b]AuraIconSpacing:[/b] Allows you to set a spacing between individual aura icons for the units you choose.
[*][b]BagButtons:[/b] Allows you to change bag buttons to use the classic texture style and allows you to add a 'Stack' button.
[*][b]BagsTextFormat:[/b] Allows you to choose which text format the Bags datatext uses.
[*][b]CastbarCustomBackdrop:[/b] Allows you to use a custom castbar backdrop color.
[*][b]CastbarText:[/b] Allows you to position or hide castbar text.
[*][b]ChatMaxLines:[/b] Increases the amount of messages saved in a chat window, before they get replaced by new messages.
[*][b]ClickThroughActionBars:[/b] Allows you to make actionbars clickthrough.
......
local E, L, V, P, G = unpack(ElvUI)
local CT = E:GetModule("CustomTweaks")
local isEnabled = E.private["unitframe"].enable and E.private["CustomTweaks"] and E.private["CustomTweaks"]["CastbarCustomBackdrop"]and true or false
--Cache global variables
local _G = _G
local pairs = pairs
local hooksecurefunc = hooksecurefunc
local MAX_BOSS_FRAMES = MAX_BOSS_FRAMES
P["CustomTweaks"]["CastbarCustomBackdrop"] = {
["backdropColor"] = {r = 0.16, g = 0.16, b = 0.16, a = 1},
}
local units = {"Player", "Target", "Focus", "Pet"}
local function ConfigTable()
E.Options.args.CustomTweaks.args.Unitframe.args.options.args.CastbarCustomBackdrop = {
type = "group",
name = "CastbarCustomBackdrop",
get = function(info) return E.db.CustomTweaks.CastbarCustomBackdrop[info[#info]] end,
set = function(info, value) E.db.CustomTweaks.CastbarCustomBackdrop[info[#info]] = value; end,
args = {
backdropColor = {
order = 1,
type = "color",
name = L["Castbar Backdrop Color"],
disabled = function() return not isEnabled end,
hasAlpha = true,
get = function(info)
local t = E.db.CustomTweaks.CastbarCustomBackdrop.backdropColor
local d = P.CustomTweaks.CastbarCustomBackdrop.backdropColor
return t.r, t.g, t.b, t.a, d.r, d.g, d.b, d.a
end,
set = function(info, r, g, b, a)
E.db.CustomTweaks.CastbarCustomBackdrop.backdropColor = {}
local t = E.db.CustomTweaks.CastbarCustomBackdrop.backdropColor
t.r, t.g, t.b, t.a = r, g, b, a
end,
},
},
}
end
CT.Configs["CastbarCustomBackdrop"] = ConfigTable
if not isEnabled then return; end
local function PostCastChannelStart(self)
local db = self:GetParent().db
if not db or not db.castbar then return; end
local color = E.db.CustomTweaks.CastbarCustomBackdrop.backdropColor
local r, g, b, a = color.r, color.g, color.b, color.a
if self.bg and self.bg:IsShown() then
self.bg:SetColorTexture(r, g, b)
else
if self.backdrop then
if self.backdrop.backdropTexture then
self.backdrop.backdropTexture:SetVertexColor(r, g, b)
self.backdrop.backdropTexture:SetAlpha(a)
r, g, b = self.backdrop:GetBackdropColor()
end
self.backdrop:SetBackdropColor(r, g, b, a)
end
end
end
local function PostCastInterruptible(self, unit)
if unit == "vehicle" or unit == "player" then return end
local color = E.db.CustomTweaks.CastbarCustomBackdrop.backdropColor
local r, g, b, a = color.r, color.g, color.b, color.a
if self.bg and self.bg:IsShown() then
self.bg:SetColorTexture(r, g, b)
else
if self.backdrop then
if self.backdrop.backdropTexture then
self.backdrop.backdropTexture:SetVertexColor(r, g, b)
self.backdrop.backdropTexture:SetAlpha(a)
r, g, b = self.backdrop:GetBackdropColor()
end
self.backdrop:SetBackdropColor(r, g, b, a)
end
end
end
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", function(self)
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
for _, unit in pairs(units) do
local unitframe = _G["ElvUF_"..unit];
local castbar = unitframe and unitframe.Castbar
if castbar then
hooksecurefunc(castbar, "PostCastStart", PostCastChannelStart)
hooksecurefunc(castbar, "PostCastInterruptible", PostCastInterruptible)
if castbar.PostChannelStart then
hooksecurefunc(castbar, "PostChannelStart", PostCastChannelStart)
end
end
end
for i = 1, 5 do
local castbar = _G["ElvUF_Arena"..i].Castbar
if castbar then
hooksecurefunc(castbar, "PostCastStart", PostCastChannelStart)
hooksecurefunc(castbar, "PostCastInterruptible", PostCastInterruptible)
if castbar.PostChannelStart then
hooksecurefunc(castbar, "PostChannelStart", PostCastChannelStart)
end
end
end
for i = 1, MAX_BOSS_FRAMES do
local castbar = _G["ElvUF_Boss"..i].Castbar
if castbar then
hooksecurefunc(castbar, "PostCastStart", PostCastChannelStart)
hooksecurefunc(castbar, "PostCastInterruptible", PostCastInterruptible)
if castbar.PostChannelStart then
hooksecurefunc(castbar, "PostChannelStart", PostCastChannelStart)
end
end
end
end)
\ No newline at end of file
<Ui xmlns="http://www.blizzard.com/wow/ui/">
<Script file='AuraIconSpacing.lua'/>
<Script file='CastbarCustomBackdrop.lua'/>
<Script file='CastbarText.lua'/>
<Script file='PowerBarTexture.lua'/>
<Script file='UnitframeSpacingLimits.lua'/>
......
## Interface: 80100
## Interface: 80200
## Author: Blazeflack
## Credit: Azilroka, Benik
## Version: 1.47
## Version: 1.48
## Title: |cff1784d1ElvUI|r |cff4beb2cCustomTweaks|r
## Notes: A collection of various tweaks to ElvUI, requested by the users.
## RequiredDeps: ElvUI
......
......@@ -42,7 +42,6 @@ local Tweaks = {
},
["Unitframe"] = {
{"AuraIconSpacing", L["Allows you to set a spacing between individual aura icons for the units you choose."]},
{"CastbarCustomBackdrop", L["Allows you to use a custom castbar backdrop color."]},
{"CastbarText", L["Allows you to position and change color and alpha of castbar text."]},
{"PowerBarTexture", L["Allows you to use a separate texture for unitframe power bars."]},
{"UnitFrameSpacingLimits", L["Increases the maximum allowed vertical and horizontal spacing for party and raid frames."]},
......@@ -58,7 +57,6 @@ local Authors = {
"AuraIconSpacing",
"BagButtons",
"BagsTextFormat",
"CastbarCustomBackdrop",
"CastbarText",
"ChatMaxLines",
"ClickThroughActionBars",
......
-- English localization file for enUS and enGB.
local AceLocale = LibStub:GetLibrary("AceLocale-3.0");
local AceLocale = LibStub:GetLibrary("AceLocale-3.0-ElvUI");
local L = AceLocale:NewLocale("ElvUI", "enUS", true);
if not L then return; end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment