Initial commit

This commit is contained in:
Sergio Álvarez 2018-07-28 11:58:46 +02:00
commit 5ec09c0402
3 changed files with 43 additions and 0 deletions

12
Gio_BigWigs.toc Normal file
View File

@ -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

7
README.md Normal file
View File

@ -0,0 +1,7 @@
BigWigs: https://github.com/BigWigsMods/BigWigs
My Mod:
- Emphatized text color
- Duration text position

24
main.lua Normal file
View File

@ -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,
})