Thread Tools Display Modes
06-02-11, 10:47 AM   #1
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
SBF + Party (De)Buffs

I know that SBF is not really being updated right now, but I was wondering if someone might be able to help me.

As of right now, SBF has the ability to customize party (de)buffs, and in the global options there is a setting that pretty much means 'hide party (de)buffs in raid group'.

The problem is: it doesn't work. And when I'm in raid, I can still see the (de)buffs of my party.

What I am asking is if someone might be able to help me with trying to fix this one problem. Not asking you to spend hours on it, but if someone who might know how to do, would please just spend a couple minutes looking through and might be able to help.

Thank you, with much love~
Lily.

EDIT: Also, while I am at it, how do change a border color in KGPanels with MouseOver? Tried searching for it.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah

Last edited by Lily.Petal : 06-02-11 at 11:40 AM.
  Reply With Quote
06-02-11, 01:24 PM   #2
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Lily.Petal View Post
I know that SBF is not really being updated right now, but I was wondering if someone might be able to help me.

As of right now, SBF has the ability to customize party (de)buffs, and in the global options there is a setting that pretty much means 'hide party (de)buffs in raid group'.

The problem is: it doesn't work. And when I'm in raid, I can still see the (de)buffs of my party.

What I am asking is if someone might be able to help me with trying to fix this one problem. Not asking you to spend hours on it, but if someone who might know how to do, would please just spend a couple minutes looking through and might be able to help.

Thank you, with much love~
Lily.

EDIT: Also, while I am at it, how do change a border color in KGPanels with MouseOver? Tried searching for it.
Had a quick look through SBF's code, and the hide in party should work, however you need to make sure the hidePartyInRaid CVar is set to 1 (probably an option somewhere in Interface options panel). Or, to get around that, you could edit SBFFrame.lua, line 557, to:

Code:
local hidePartyInRaid = UnitInRaid("player") and self.db.global.hideParty

kgPanels

-- OnEnter
Code:
self:SetBackdropBorderColor(r, g, b, a)
-- OnLeave
Code:
self:SetBackdropBorderColor(r, g, b, a)
  Reply With Quote
06-02-11, 02:30 PM   #3
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Code:
  local top, right, bottom, left = 0,0,99999,99999
  local t,r,b,l
  for index,slot in pairs(frame.slots) do
    if slot.icon then
      t,b,l,r = slot.icon:GetTop(), slot.icon:GetBottom(), slot.icon:GetLeft(), slot.icon:GetRight()
      if (t > top) then
        top = t
      end
      if (l < left) then
        left = l
      end
      if (r > right) then
        right = r
      end
      if (b < bottom) then
        bottom = b
      end[
   end
This is the block I found line 557 in, I just want to make sure THIS is the right area.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
06-02-11, 02:42 PM   #4
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Lily.Petal View Post
Code:
  local top, right, bottom, left = 0,0,99999,99999
  local t,r,b,l
  for index,slot in pairs(frame.slots) do
    if slot.icon then
      t,b,l,r = slot.icon:GetTop(), slot.icon:GetBottom(), slot.icon:GetLeft(), slot.icon:GetRight()
      if (t > top) then
        top = t
      end
      if (l < left) then
        left = l
      end
      if (r > right) then
        right = r
      end
      if (b < bottom) then
        bottom = b
      end[
   end
This is the block I found line 557 in, I just want to make sure THIS is the right area.
Hmm, definitely the wrong area. From the file I have, what you've listed starts at line 507. Take the elevator down another 50 lines and you should be good
  Reply With Quote
06-02-11, 02:57 PM   #5
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Code:
elseif frame.isParty and hidePartyInRaid then
            frame:Hide()
?
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
06-02-11, 03:00 PM   #6
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Hmm, you're looking for:

Code:
sbf.FrameVisibility = function(self, unit, f)
  if self.getExtents then
    return
  end
  local partyMembers = GetNumPartyMembers()
  local hidePartyInRaid = UnitInRaid("player") and self.db.global.hideParty and (GetCVar("hidePartyInRaid") == "1")
	for i,frame in pairs(self.frames) do
And want to change:

Code:
local hidePartyInRaid = UnitInRaid("player") and self.db.global.hideParty and (GetCVar("hidePartyInRaid") == "1")
to:

Code:
local hidePartyInRaid = UnitInRaid("player") and self.db.global.hideParty

Of course, it may not work, this is just to remove that particular CVar from the equation.
  Reply With Quote
06-02-11, 03:35 PM   #7
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Seems to be working! Thanks again Nib~

*gives bag of cookies*
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
06-02-11, 03:50 PM   #8
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Lily.Petal View Post
Seems to be working! Thanks again Nib~

*gives bag of cookies*
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » SBF + Party (De)Buffs


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off