Browse Source

Initial commit

Sergio Álvarez 1 year ago
commit
5ec09c0402
3 changed files with 43 additions and 0 deletions
  1. 12 0
      Gio_BigWigs.toc
  2. 7 0
      README.md
  3. 24 0
      main.lua

+ 12 - 0
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

+ 7 - 0
README.md

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

+ 24 - 0
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,
+})