Thread Tools Display Modes
10-11-10, 11:43 AM   #1
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member
Join Date: May 2006
Posts: 143
Warlock Soul Shard oUF display in 4.0.1

Is there a way to display the new Warlock Soul Shard system in oUF? Perhaps similar to the Runebar currently implemented?

Would look something like this (which I will be using until we can do this in oUF): http://www.wowinterface.com/download...lysm.html#info

Last edited by Toran : 10-11-10 at 11:47 AM.
  Reply With Quote
10-11-10, 12:00 PM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
oUF 1.5.x will have a module for the new system : holypower soulshard eclipsebar and so on.
Be patient.
  Reply With Quote
10-11-10, 12:12 PM   #3
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member
Join Date: May 2006
Posts: 143
I am. Thanks.
  Reply With Quote
10-12-10, 03:03 AM   #4
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
I use:

lua Code:
  1. local _, class = UnitClass('player')
  2.     if class == 'WARLOCK' then
  3.         local shards = CreateFrame('Frame', nil, self)
  4.         shards:SetPoint('TOPLEFT', oUF_SveltePlayer, 'BOTTOMLEFT', -2, -4)
  5.         shards:SetSize(227, 2)
  6.  
  7.         for i = 1, SHARD_BAR_NUM_SHARDS do
  8.             local shard = shards:CreateTexture(nil, 'OVERLAY')
  9.             shard:SetSize((227 / SHARD_BAR_NUM_SHARDS) -1, 4)
  10.             shard:SetTexture(bartex)
  11.             shard:SetVertexColor(.86,.44, 1)
  12.  
  13.             if i > 1 then
  14.                 shard:SetPoint('LEFT', shards[i - 1], 'RIGHT', 1, 0)
  15.             else
  16.                 shard:SetPoint('BOTTOMLEFT', shards, 'BOTTOMLEFT', 1, 0)
  17.             end
  18.  
  19.             shards[i] = shard
  20.         end
  21.  
  22.         self.SoulShards = shards
  23.     end

Thanks to Evilpaul!!!
  Reply With Quote
10-12-10, 03:09 AM   #5
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
Since It may help, I'll post Holy Power as well.

lua Code:
  1. local _, class = UnitClass('player')
  2.     if class == 'PALADIN' then
  3.         local holypower = CreateFrame('Frame', nil, self)
  4.         holypower:SetPoint('TOPLEFT', oUF_SveltePlayer, 'BOTTOMLEFT', -2, -4)
  5.         holypower:SetSize(227, 2)
  6.  
  7.         for i = 1, MAX_HOLY_POWER do
  8.             local holyRune = holypower:CreateTexture(nil, 'OVERLAY')
  9.             holyRune:SetSize((227 / MAX_HOLY_POWER) - 1, 4)
  10.             holyRune:SetTexture(bartex)
  11.             holyRune:SetVertexColor(1,.95,.33)
  12.  
  13.             if i > 1 then
  14.                 holyRune:SetPoint('LEFT', holypower[i - 1], 'RIGHT', 1, 0)
  15.             else
  16.                 holyRune:SetPoint('BOTTOMLEFT', holypower, 'BOTTOMLEFT', 1, 0)
  17.             end
  18.  
  19.             holypower[i] = holyRune
  20.         end
  21.  
  22.         self.HolyPower = holypower
  23.     end
  Reply With Quote
10-12-10, 05:03 AM   #6
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 363
I just did whats below until I have more time to sit down and create custom textures.

lua Code:
  1. if unit == "player" and playerClass == "DRUID" then
  2.     EclipseBarFrame:SetParent(self)
  3.     EclipseBarFrame:SetScale(0.55)
  4.     EclipseBar_OnLoad(EclipseBarFrame)
  5.     EclipseBarFrame:ClearAllPoints()
  6.     EclipseBarFrame:SetPoint("CENTER", self.Blank, "CENTER", 0, -1)
  7.     EclipseBarFrame:SetFrameStrata("HIGH")
  8.     EclipseBarFrame:Show()
  9. end
  10.  
  11. if unit == "player" and playerClass == "PALADIN" then
  12.     PaladinPowerBar:SetParent(self)
  13.     PaladinPowerBar:SetScale(0.55)
  14.     PaladinPowerBar_OnLoad(PaladinPowerBar)
  15.     PaladinPowerBar:ClearAllPoints()
  16.     PaladinPowerBar:SetPoint("CENTER", self.Blank, "CENTER", 0, 3)
  17.     PaladinPowerBar:SetFrameStrata("HIGH")
  18.     PaladinPowerBar:Show()
  19. end
  20.    
  21. if unit == "player" and playerClass == "WARLOCK" then
  22.     ShardBarFrame:SetParent(self)
  23.     ShardBarFrame:SetScale(0.55)
  24.     ShardBar_OnLoad(ShardBarFrame)
  25.     ShardBarFrame:ClearAllPoints()
  26.     ShardBarFrame:SetPoint("CENTER", self.Blank, "CENTER", 0, -3)
  27.     ShardBarFrame:SetFrameStrata("HIGH")
  28.     ShardBarFrame:Show()
  29. end

Last edited by Talyrius : 10-12-10 at 05:06 AM.
  Reply With Quote
10-12-10, 02:52 PM   #7
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member
Join Date: May 2006
Posts: 143
Good stuff. I will implement in my layout for sure - thank you both.
  Reply With Quote
10-12-10, 04:04 PM   #8
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Just so you are sure, the code Ferous supplied use the new elements added to oUF while ForeverTheGM's code is reusing the Blizzard code.
  Reply With Quote
10-12-10, 04:38 PM   #9
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member
Join Date: May 2006
Posts: 143
Originally Posted by yj589794 View Post
Just so you are sure, the code Ferous supplied use the new elements added to oUF while ForeverTheGM's code is reusing the Blizzard code.
Yes, thank you for pointing that out.
  Reply With Quote
10-15-10, 02:50 PM   #10
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
I just added SoulShards to my layout, but a white inset appears on them.



Is this ment to be like that?

I've added the black inset, not the white one.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-16-10, 04:57 PM   #11
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Can anyone post here a screenshot of your Warlock Shards frame to see if they come out with that white border too? Thanks.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-16-10, 05:30 PM   #12
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
No white border for me.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_101710_012850.jpg
Views:	800
Size:	12.8 KB
ID:	4961  
__________________
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..."

  Reply With Quote
10-17-10, 06:08 AM   #13
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Thanks Dawn. Have to review what I wrote when I'm at home. Thanks.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-17-10, 09:59 PM   #14
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
I may not be able to offer a solution, but I love the square look of the shards
I mean, in my layout it's like Dawn's screenshot - I may change mine Thanks for the quick lil inspiration point there!

ps. I don't have the white border either, but make sure you set colors for backdrop, bordercolor (if you have a border), self.SoulShards.bg etc.. You get my point.
  Reply With Quote
10-17-10, 11:57 PM   #15
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Originally Posted by MoonWitch View Post
I may not be able to offer a solution, but I love the square look of the shards
I mean, in my layout it's like Dawn's screenshot - I may change mine Thanks for the quick lil inspiration point there!

ps. I don't have the white border either, but make sure you set colors for backdrop, bordercolor (if you have a border), self.SoulShards.bg etc.. You get my point.
Forgot to mention I discovered what it was... I forgot to color the background, which in the end I removed because I didn't need.

And glad you liked the outcome.

Right now it ended like this:



Similar to how I Death Knight Runes:

__________________
My oUF Layout: oUF Lumen

Last edited by neverg : 10-18-10 at 12:03 AM.
  Reply With Quote
10-18-10, 05:23 AM   #16
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Very nice...

I trust you don't mind if I "steal" that idea?
  Reply With Quote
10-18-10, 07:14 AM   #17
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Originally Posted by MoonWitch View Post
Very nice...

I trust you don't mind if I "steal" that idea?
Ofc not. First is only squares and... even if not, go ahead! ^^
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-18-10, 01:49 PM   #18
Mischback
A Cobalt Mageweaver
 
Mischback's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 221
Very nice indeed...

Has anybody a clue, when a lock gets the shard-system? My only Lock is my bank-toon, so it's level 1 and doesn't have shards in the default UI... So basically I can't write and test it...

Last thing from updating my layout atm...
__________________
  Reply With Quote
10-18-10, 01:58 PM   #19
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
I know that locks at level 10 get the first way to actually spend (and gain) shards.

E: Just for clarification. The soul shard/holy power/rune bar in my screenshot is separate from the player frame. It's a second player frame, thus separately moveable with oUF_Moveable Frames and also resizeable (height/width), which means it can look entirely the same like what neverg did, via changing the config.

It just sticks and moves along with the player frame until the user decides to place it wherever he wants.
__________________
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..."


Last edited by Dawn : 10-18-10 at 02:02 PM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Warlock Soul Shard oUF display in 4.0.1


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