From 7e0042dfe583ce163da05d2cd402021831e01f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Tue, 22 May 2018 15:44:46 +0200 Subject: [PATCH] let's go --- README.md | 10 ++++++++++ pfUI-raidsolo.lua | 21 +++++++++++++++++++++ pfUI-raidsolo.toc | 9 +++++++++ 3 files changed, 40 insertions(+) create mode 100644 README.md create mode 100644 pfUI-raidsolo.lua create mode 100644 pfUI-raidsolo.toc diff --git a/README.md b/README.md new file mode 100644 index 0000000..0eb356a --- /dev/null +++ b/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 diff --git a/pfUI-raidsolo.lua b/pfUI-raidsolo.lua new file mode 100644 index 0000000..d2f2441 --- /dev/null +++ b/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 \ No newline at end of file diff --git a/pfUI-raidsolo.toc b/pfUI-raidsolo.toc new file mode 100644 index 0000000..da8912d --- /dev/null +++ b/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