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

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