Browse Source

let's go

master
Sergio Álvarez 3 years ago
commit
7e0042dfe5
  1. 10
      README.md
  2. 21
      pfUI-raidsolo.lua
  3. 9
      pfUI-raidsolo.toc

10
README.md

@ -0,0 +1,10 @@
# pfUI Show raid when you play Solo
Title ^
## Installation
1. Download **[Latest Version](https://github.com/xergio/pfUI-raidsolo/archive/master.zip)**
2. Unpack the Zip file
3. Rename the folder "pfUI-raidsolo-master" to "pfUI-raidsolo" (remove the "-master" part)
4. Copy/move "pfUI-raidsolo" folder into Wow-Directory\Interface\AddOns
5. Restart WoW

21
pfUI-raidsolo.lua

@ -0,0 +1,21 @@
local HookRefreshUnit = pfUI.uf.RefreshUnit
function pfUI.uf:RefreshUnit(unit, component)
local raidforgroup = pfUI_config["unitframes"]["raidforgroup"]
if unit:GetName() == "pfRaid1"
and GetNumPartyMembers() == 0
and not UnitInRaid("player")
then
-- conflict with line api/unitframes.lua:884, I know this is shit,
-- but I need to intercept this block
pfUI_config["unitframes"]["raidforgroup"] = "0"
unit.id = ""
unit.label = "player"
end
HookRefreshUnit(this, unit, component)
pfUI_config["unitframes"]["raidforgroup"] = raidforgroup
end

9
pfUI-raidsolo.toc

@ -0,0 +1,9 @@
## Interface: 11200
## Title: |cff33ffccpf|cffffffffUI|cffaaaaaa [Raid Solo]
## Author: Gio (Gios-Elysium)
## Notes: Show raid when you play Solo
## Version: 1.0
## Dependencies: pfUI
# main
pfUI-raidsolo.lua
Loading…
Cancel
Save