Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. Avant  
  2.  
  3.                 -- power
  4.         local power = CreateFrame('StatusBar', nil, self)
  5.         power:Height(5)
  6.         if unit == "player" then
  7.             power:Point("TOPLEFT", health, "BOTTOMLEFT", 105, 1)
  8.             power:Point("TOPRIGHT", health, "BOTTOMRIGHT", -9, -2)
  9.         elseif unit == "target" then
  10.             power:Point("TOPLEFT", health, "BOTTOMLEFT", 9, 1)
  11.             power:Point("TOPRIGHT", health, "BOTTOMRIGHT", -105, -2)
  12.         end
  13.         power:SetStatusBarTexture(normTex)
  14.         power:SetFrameLevel(self.Health:GetFrameLevel() + 2)
  15.  
  16.  
  17.  
  18. Après
  19.                 -- power
  20.         local power = CreateFrame('StatusBar', nil, self)
  21.         power:Height(10)
  22.         if unit == "player" then
  23.             power:Point("TOPLEFT", health, "BOTTOMLEFT", 0, 1)
  24.             power:Point("TOPRIGHT", health, "BOTTOMRIGHT", 0, -2)
  25.         elseif unit == "target" then
  26.             power:Point("TOPLEFT", health, "BOTTOMLEFT", 0, 1)
  27.             power:Point("TOPRIGHT", health, "BOTTOMRIGHT", 0, -2)
  28.         end
  29.         power:SetStatusBarTexture(normTex)
  30.         power:SetFrameLevel(self.Health:GetFrameLevel() + 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement