This commit is contained in:
Sergio Álvarez 2018-05-22 15:44:46 +02:00
commit 7e0042dfe5
3 changed files with 40 additions and 0 deletions

10
README.md Normal file
View File

@ -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 Normal file
View File

@ -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 Normal file
View File

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