Thread Tools Display Modes
09-23-08, 09:17 PM   #1
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Elite Boss Player Frame

Okay, I've been trying to edit an addon called Elite Player Frame v3, so that instead of causing the player frame to be elite, it becomes a boss frame. So far though, I've gotten nowhere. What must I do to add that little skull where the level number usually is?
  Reply With Quote
09-24-08, 12:01 AM   #2
Travisstorma
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 9
You could try adding this to the .lua file.

If this needs tweaked, then the SetHeight / SetWidth 20 is the size of the skull. The offset either direction is the f:SetPoint part. You can adjust the 43 for the x coordinate or the -15.5 for the y coordiante. Hope this helps.


local f = CreateFrame("Frame", nil, UIParent)
f:SetFrameStrata("HIGH")
f:SetWidth(20)
f:SetHeight(20)
local t = f:CreateTexture(nil,"BACKGROUND")
t:SetTexture("Interface\\TargetingFrame\\UI-TargetingFrame-Skull")
t:SetAllPoints(f)
f.texture = t

f:SetPoint("LEFT","PlayerFrame", "LEFT", 43, -15.5)
f:Show()
  Reply With Quote
09-24-08, 10:41 AM   #3
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
What would the world do without nice people like you? =D I'll try that out.
  Reply With Quote
09-24-08, 10:56 AM   #4
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
=D Success!
  Reply With Quote
09-24-08, 01:23 PM   #5
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Oh, dang, just realized. The level kinda peeks out around the edges. Is there a way to cover the level up without making the skull larger?
  Reply With Quote
09-24-08, 01:56 PM   #6
Ravendwyr
A Flamescale Wyrmkin
 
Ravendwyr's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 139
try:

PlayerFrameLevelText:Hide()

or

PlayerFrameLevelText:SetText("")




at least, I think PlayerFrameLevelText is the right one...
__________________
Twitter | GitHub
  Reply With Quote
09-25-08, 12:21 PM   #7
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
PlayerLevelText:Hide() works. Now I've been trying to hide the attack and rest icons too, but it will only work with one at a time. It won't hide both. How would I change this script so they both work?

Code:
f:SetScript("OnUpdate", function() if PlayerAttackIcon:IsVisible() then PlayerAttackIcon:Hide() end end)
f:SetScript("OnUpdate", function() if PlayerRestIcon:IsVisible() then PlayerResttIcon:Hide() end end)
PlayerLevelText:Hide()
  Reply With Quote
09-25-08, 12:37 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
because you're replacing the first OnUpdate script with the second. Hide both in the same script.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-25-08, 01:06 PM   #9
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Sorry, I know little more about all this than a caveman.
Is this what you mean?

Code:
f:SetScript("OnUpdate", function() if PlayerAttackIcon:IsVisible() then PlayerAttackIcon:Hide() end end)function() if PlayerRestIcon:IsVisible() then PlayerResttIcon:Hide() end end)
PlayerLevelText:Hide()
  Reply With Quote
09-25-08, 02:46 PM   #10
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Code:
PlayerLevelText.Show = function() end
PlayerLevelText:Hide()
drycoded
  Reply With Quote
09-25-08, 04:49 PM   #11
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
I'm looking to hide the rest and attack icons, not level... I got that sorted out already.
  Reply With Quote
09-25-08, 06:26 PM   #12
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Fordragon View Post
Sorry, I know little more about all this than a caveman.
Is this what you mean?

Code:
f:SetScript("OnUpdate", function() if PlayerAttackIcon:IsVisible() then PlayerAttackIcon:Hide() end end)function() if PlayerRestIcon:IsVisible() then PlayerResttIcon:Hide() end end)
PlayerLevelText:Hide()
Not quite.

Code:
f:SetScript("OnUpdate", function()
          if PlayerAttackIcon:IsVisible() then 
               PlayerAttackIcon:Hide()
          elseif PlayerRestIcon:IsVisible() then
               PlayerRestIcon:Hide()
          else
               return
          end
     end)
PlayerLevelText:Hide()
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh


Last edited by Seerah : 09-25-08 at 06:26 PM. Reason: rest has one t, fordragon ;)
  Reply With Quote
09-25-08, 07:25 PM   #13
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
I will never know how you people learn this stuff... whatever, thanks!
  Reply With Quote
09-25-08, 08:41 PM   #14
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Oh goodie; yet another problem. I'm trying to upload this mod onto the website now, but dunno what to do. I go to projects and then...?
  Reply With Quote
09-25-08, 10:26 PM   #15
Selite
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 20
Click on the "Upload & Update" button near the top of the screen. Then follow the step by step instructions.
  Reply With Quote
09-26-08, 11:25 AM   #16
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Will do. .
  Reply With Quote
09-26-08, 11:32 AM   #17
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Okay, now how do I give it a name that's not generic? And yes, I am in fact that stupid.
  Reply With Quote
09-26-08, 11:36 AM   #18
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
"generic" means
addon.zip
mymod.zip
test.zip
image1.jpg
...

Choose a name like EliteBossPlayerFrame_1_0.zip
  Reply With Quote
09-26-08, 11:46 AM   #19
Fordragon
A Deviate Faerie Dragon
 
Fordragon's Avatar
Join Date: Sep 2008
Posts: 17
Got it. Thanks for the info.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Elite Boss Player Frame


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