commit 5ec09c04027e8057cb2879773029dba929f464df Author: Sergio Álvarez Date: Sat Jul 28 11:58:46 2018 +0200 Initial commit diff --git a/Gio_BigWigs.toc b/Gio_BigWigs.toc new file mode 100644 index 0000000..163320f --- /dev/null +++ b/Gio_BigWigs.toc @@ -0,0 +1,12 @@ +## Interface: 80000 +## Title: Gio |cff00ffffBigWigs|r +## Author: Gio +## Credit: Blazeflack, Elv, WA Discord +## Version: 1.0 +## Notes: Cosas nasis del BigWigs +## RequiredDeps: BigWigs, BigWigs_Core, BigWigs_Plugins +## LoadOnDemand: 1 +## LoadWith: BigWigs_Plugins +## X-eMail: xergio@gmail.com + +main.lua diff --git a/README.md b/README.md new file mode 100644 index 0000000..0b14d82 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ + +BigWigs: https://github.com/BigWigsMods/BigWigs + +My Mod: + +- Emphatized text color +- Duration text position diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..de2339c --- /dev/null +++ b/main.lua @@ -0,0 +1,24 @@ + +local plugin = BigWigs:GetPlugin("Bars") +local db = plugin.db.profile + +local function style(bar) + bar.candyBarLabel:SetJustifyH("LEFT") + bar.candyBarLabel:ClearAllPoints() + bar.candyBarLabel:Point("LEFT", bar, "LEFT", db.BigWigsAnchor_height + 4, 0) + + bar.candyBarDuration:SetJustifyH("LEFT") + bar.candyBarDuration:ClearAllPoints() + bar.candyBarDuration:Point("RIGHT", bar, "LEFT", -2, 0) + + if (bar.remaining < db.emphasizeTime) then + bar:SetTextColor(1, 0, 0) + end +end + +plugin:RegisterBarStyle("GioNoBars", { + apiVersion = 1, + version = 1, + ApplyStyle = style, + GetStyleName = function() return "Gio No Bars" end, +})