Reply
Thread Tools Display Modes
Unread 02-11-11, 02:53 PM   #21
sacrife
An Onyxian Warder
 
sacrife's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 384
Maybe we should try hooking the barPrototype:ApplyStyle from DBT.lua instead?

I tried but couldn't really get it to work as I don't understand hooking properly.

ATM I just edit the DBT.lua every time by adding these lines at the bottom of the "function barPrototype:ApplyStyle()" (Starts around line 630+)

I still want to edit the width, height and positions of the DBM elements manually in LUA as well. (I really hate savedvariables) With this I could also move the bars depending on where I am (PvP or Raid/Dungeon).

Code:
lua Code:
  1. -- Edit
  2.     local blankTex = "Interface\\Buttons\\WHITE8x8"
  3.     local backdrop = {bgFile = blankTex, edgeFile = blankTex, edgeSize = 1, insets = { left = 0, right = 0, top = 0, bottom = 0}}
  4.    
  5.     icon1:SetTexCoord(.07, .93, .07, .93)
  6.     icon1:SetWidth(17) -- barheight
  7.     icon1:SetHeight(17) -- barheight
  8.     icon1:SetPoint("RIGHT",frame,"LEFT",-3,0)
  9.     icon1.IconGlow = CreateFrame("Frame", nil, frame)
  10.     icon1.IconGlow:SetPoint("TOPLEFT", icon1, "TOPLEFT", -1, 1)
  11.     icon1.IconGlow:SetPoint("BOTTOMRIGHT", icon1, "BOTTOMRIGHT", 1, -1)
  12.     icon1.IconGlow:SetBackdrop(backdrop)
  13.     icon1.IconGlow:SetBackdropColor(0,0,0,0)
  14.     icon1.IconGlow:SetBackdropBorderColor(0,0,0,1) 
  15.     icon1.IconGlow:SetFrameLevel(0)
  16.    
  17.     local barbg = _G[frame:GetName().."BarBackground"]
  18.     barbg:SetAlpha(0)
  19.    
  20.     bar.Border = CreateFrame("Frame", nil, frame)
  21.     bar.Border:SetPoint("TOPLEFT", bar, "TOPLEFT", -1, 1)
  22.     bar.Border:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", 1, -1)
  23.     bar.Border:SetBackdrop(backdrop)
  24.     bar.Border:SetBackdropColor(0.17,0.17,0.17,1)
  25.     bar.Border:SetBackdropBorderColor(0,0,0,1) 
  26.     bar.Border:SetFrameLevel(0)
  27.    
  28.     name:SetFont("Interface\\Addons\\!shakes\\fonts\\fieryturk.TTF", 8, "OUTLINEMONOCHROME")
  29.     name:SetPoint("LEFT",2.5,0)
  30.     timer:SetFont("Interface\\Addons\\!shakes\\fonts\\fieryturk.TTF", 8, "OUTLINEMONOCHROME")
  31.     timer:SetPoint("RIGHT",0,0)
  32.     texture:SetTexture("Interface\\AddOns\\!shakes\\textures\\tap2.tga")
Attached Thumbnails
Click image for larger version

Name:	dbm_bars.png
Views:	922
Size:	12.1 KB
ID:	5741  
__________________


Last edited by sacrife : 02-11-11 at 02:59 PM.
sacrife is offline   Reply With Quote
Unread 03-23-11, 12:17 AM   #22
Deathbyfrost
A Defias Bandit
 
Deathbyfrost's Avatar
Join Date: Mar 2011
Posts: 2
Im sorry ive wracked my head around this for the last hour or so and cant seem to grasp how to imitate this using the code above. the nearest lines of code start at line 750 not 630. Would it be possible to get a download of you dbm skin?
Deathbyfrost is offline   Reply With Quote
Unread 03-23-11, 02:34 PM   #23
MysticalOS
A Wyrmkin Dreamwalker
 
MysticalOS's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 53
dbm does have some support http://www.wowace.com/addons/sharedmedia/ for this. Most don't realize it though.
MysticalOS is offline   Reply With Quote
Unread 03-23-11, 02:56 PM   #24
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 903
Originally Posted by MysticalOS View Post
dbm does have some support http://www.wowace.com/addons/sharedmedia/ for this. Most don't realize it though.
It's not just about a different texture or font, but a different style. DBM is drop dead ugly by default and there could be more options to customize the appearance.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Dawn is offline   Reply With Quote
Unread 03-24-11, 04:16 PM   #25
Deathbyfrost
A Defias Bandit
 
Deathbyfrost's Avatar
Join Date: Mar 2011
Posts: 2
Originally Posted by Dawn View Post
It's not just about a different texture or font, but a different style. DBM is drop dead ugly by default and there could be more options to customize the appearance.
What he said but thanks for the share shall take a peak
Deathbyfrost is offline   Reply With Quote
Reply

Go BackWoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » How to skin Deadly Boss Mods (without rewriting)

Thread Tools
Display Modes

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