Quantcast WoWInterface - View Single Post - Color space differences between StatusBar and Texture
View Single Post
02-26-19, 10:17 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,134
I don't think you're seeing what you think you are seeing (or I'm missing something).

Lua Code:
  1. local f = CreateFrame('Statusbar', nil, UIParent)
  2. f:SetSize(100, 20)
  3. f:SetPoint('CENTER')
  4. f:SetMinMaxValues(0, 100)
  5. f:SetStatusBarTexture("Interface/BUTTONS/WHITE8X8")
  6. f:SetStatusBarColor(1, 0, 0)
  7. f:SetValue(50)
  8.  
  9. local g = CreateFrame('StatusBar', nil, UIParent)
  10. g:SetSize(100, 20)
  11. g:SetPoint('CENTER', 0, - 30)
  12. g:SetMinMaxValues(0, 100)
  13. g:SetValue(60)
  14. g:SetStatusBarTexture("Interface/BUTTONS/WHITE8X8")
  15. g:SetStatusBarColor(0.5, 0.5, 0)
  16.  --
  17. g.texture = g:CreateTexture(nil, 'BORDER')
  18. g.texture:SetSize(20, 20)
  19. g.texture:SetPoint("LEFT", g, "RIGHT", 10, 0)
  20. g.texture:SetTexture("Interface/BUTTONS/WHITE8X8")
  21. g.texture:SetColorTexture(0, 0, 1)
  22. g:SetStatusBarColor(g.texture)
  23.  
  24. local h = CreateFrame('Frame', nil, UIParent)
  25. h:SetSize(100, 20)
  26. h:SetPoint('CENTER', 0, -60)
  27. h.texture = h:CreateTexture(nil, 'BORDER')
  28. h.texture:SetAllPoints()
  29. h.texture:SetColorTexture(0, 1, 0)

I don't know oUF but if it lets you set a status bar colour using a texture widget maybe it is using a custom startusbar creation and not the default StatusBar widget.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 02-26-19 at 10:28 PM.
  Reply With Quote