Thread Tools Display Modes
01-17-11, 05:23 PM   #1
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
party frame problem

hey guys.. i seem to be having some problems with my party frames( when in dungeons) everytime i open game and go into dungeons my party statusbars screw up... their backdrop goes away... and all i get is the background(Pitchblack) of the frame itself.

here is also my backdrops used...
lua Code:
  1. local backdrop = {
  2.     bgFile = "Interface\\AddOns\\oUF_Barbol\\media\\back.tga",
  3.     insets = {top = -1.3, left = -1.3, bottom = -1.3, right = -1.3},
  4. }
  5. local backdrop2 = {
  6.     bgFile = "Interface\\AddOns\\oUF_Barbol\\media\\back.tga",
  7.     insets = {top = -1, left = -1, bottom = -1, right = -1},
  8. }
  9. local statusback = {
  10.     bgFile = "Interface\\AddOns\\oUF_Barbol\\media\\statusbar.tga",
  11.     insets = {top = 0, left = 0, bottom = 0, right = 0},
  12. }

here is the coding for my party frame
lua Code:
  1. local cParty = function(self)
  2.     self:SetSize(220, 20)
  3.    
  4.     --Background--
  5.         Back = CreateFrame('Frame', nil, self)
  6.         Back:SetPoint('TOPRIGHT', self)
  7.         Back:SetPoint('TOPLEFT', self)
  8.         Back:SetFrameStrata('LOW')
  9.         Back:SetBackdrop(backdrop)
  10.         Back:SetBackdropColor(0.05, 0.05, 0.05)
  11.         Back:SetHeight(31)
  12.    
  13.     --:: HEALTH ::--
  14.    
  15.         --: BAR :--
  16.         self.Health = CreateFrame('StatusBar', nil, self)
  17.         self.Health:SetBackdrop(statusback)
  18.         self.Health:SetBackdropColor(0.7,0.7,0.7)
  19.         self.Health:SetFrameStrata('LOW')
  20.         self.Health:SetPoint('TOPRIGHT', self)
  21.         self.Health:SetPoint('TOPLEFT', self)
  22.         self.Health:SetStatusBarTexture(statusbar)
  23.         self.Health:SetStatusBarColor(0.28,0.28,0.28)
  24.         self.Health.frequentUpdates = FreqUpdate
  25.         self.Health.Smooth = cSmooth
  26.         self.Health:SetHeight(23)
  27.         self.Health.colorClass = false
  28.        
  29.         -- TEXT PERCENT --
  30.         self.Health.Text = self.Health:CreateFontString(nil, 'OVERLAY')
  31.         self.Health.Text:SetFont(fontn, 15, 'THINOUTLINE')
  32.         self.Health.Text:SetShadowOffset(1, -1)
  33.         self.Health.Text.frequentUpdates = FreqUpdate
  34.         self:Tag(self.Health.Text,'[My_PerHP]|r')
  35.         self.Health.Text:SetJustifyH('CENTER')
  36.         self.Health.Text:SetPoint('CENTER',self, 10, -3)
  37.        
  38.         -- OFFLINE --
  39.         self.Health.Text = self.Health:CreateFontString(nil, 'OVERLAY')
  40.         self.Health.Text:SetFont(fontn, 13, 'THINOUTLINE')
  41.         self.Health.Text:SetShadowOffset(1, -1)
  42.         self.Health.Text.frequentUpdates = FreqUpdate
  43.         self:Tag(self.Health.Text,'[offline]|r')
  44.         self.Health.Text:SetJustifyH('CENTER')
  45.         self.Health.Text:SetPoint('BOTTOMRIGHT',self.Health,'BOTTOMRIGHT', 0, -17)
  46.    
  47.     --:: POWER ::--
  48.    
  49.         --: BAR :--
  50.         self.Power = CreateFrame('StatusBar', nil, self)
  51.         self.Power:SetBackdrop(statusback)
  52.         self.Power:SetBackdropColor( .6,.6,.6, .4)
  53.         self.Power:SetFrameStrata('LOW')
  54.         self.Power:SetPoint('TOPRIGHT', self.Health, 'BOTTOMRIGHT', 0, -1)
  55.         self.Power:SetPoint('TOPLEFT', self.Health, 'BOTTOMLEFT', 0, -1)
  56.         self.Power:SetStatusBarTexture(statusbar)
  57.         self.Power:SetStatusBarColor(0.28,0.28,0.28)
  58.         self.Power.frequentUpdates = FreqUpdate
  59.         self.Power.Smooth = cSmooth
  60.         self.Power:SetHeight(7)
  61.         self.Power.colorClass = true
  62.        
  63.     --:: NAME ::--
  64.    
  65.         self.Info = self.Health:CreateFontString(nil, 'OVERLAY')
  66.         self.Info:SetShadowOffset(1, -1)
  67.         self.Info:SetAlpha(1)
  68.         self.Info:SetFont(fontn, 15, 'THINOUTLINE')
  69.         self:Tag(self.Info,'[raidcolor] [name]' )
  70.         self.Info:SetJustifyH('LEFT')
  71.         self.Info:SetPoint('LEFT',self.Health,'LEFT', -1, 12)
  72.  
  73.     --:: ICONS ::--
  74.  
  75.         --: LEADER :--
  76.         self.Leader = self.Health:CreateTexture(nil, 'OVERLAY')
  77.         self.Leader:SetPoint("BOTTOMLEFT", self.Health,'BOTTOMLEFT', 0, 0)
  78.         self.Leader:SetHeight(14)
  79.         self.Leader:SetWidth(14)
  80.        
  81.         --: RAIDS ICONS :--
  82.         createRaidIcon(self)
  83.             self.RaidIcon:SetPoint("TOP", self.Health, "TOP", 9, 8)
  84. end

anyone see something wrong?

but the funny thing, is when i just make a party(outside dungeons) like with just 1 guild member, or something(for example) it works perfectly fine.
  Reply With Quote
01-18-11, 01:16 PM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Parent the top frames to the bottom one. Health should be parented to Back for example. Without this the textures created by SetBackdrop will be on the same level, and able to easily swap display order.

Another solution is to apply frame level manually.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
01-18-11, 02:08 PM   #3
barbol12
A Cyclonian
 
barbol12's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 42
duh, ok. dont know why i didnt do that already thank you.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » party frame problem


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