Quantcast
LitePanels - WoWInterface
Thread Tools Display Modes
08-04-16, 05:48 PM   #1
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
LitePanels

Hey, So I use Lite Panels to make nice panels as the cornerstone of my UI but every since pre-patch the panels have disappeared and I cant seem to get them to show up again. This is the layout I currently use:

Code:
lpanels:CreateLayout("Load For All", {
	-- Create a global layout right here
{   name = "GridDataText",
        strata = "BACKGROUND", level = 0,
		x_off = -1, y_off = 18,
		width = 416, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "GridBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "GridDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 416, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "GridBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "GridDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 416, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "GridBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "GridDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "GridBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "GridDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	

{   name = "ChatPanelDataText",
        strata = "BACKGROUND", level = 0,
		x_off = 416, y_off = 18,
		width = 399, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "ChatPanelBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "ChatPanelDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 399, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "ChatPanelBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "ChatPanelDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 399, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "ChatPanelBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "ChatPanelDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1.1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "ChatPanelBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "ChatPanelDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
{   name = "BarDataText",
        strata = "BACKGROUND", level = 0,
		
		x_off = 816.5, y_off = 18,
		width = 425.5, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "BarBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "BarDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 425.5, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "BarBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "BarDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 425.5, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "BarBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "BarDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "BarBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "BarDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1.1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
{   name = "MinimapDataText",
        strata = "BACKGROUND", level = 0,
		x_off = 1243, y_off = 18,
		width = 150, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "MinimapBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "MinimapDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 150, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "MinimapBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "MinimapDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 150, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "MinimapBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "MinimapDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "MinimapBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "MinimapDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
{   name = "EavesDropDataText",
        strata = "BACKGROUND", level = 0,
		x_off = 1394, y_off = 18,
		width = 247, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "EavesDropBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "EavesDropDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 247, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "EavesDropBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "EavesDropDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 247, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "EavesDropBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "EavesDropDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1.1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "EavesDropBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "EavesDropDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
{   name = "DPSDataText",
        strata = "BACKGROUND", level = 0,
		x_off = 1642, y_off = 18,
		width = 194, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "DPSBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "DPSDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 194, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "DPSBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "DPSDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 194, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "DPSBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "DPSDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "DPSBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "DPSDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
{   name = "ThreatDataText",
        strata = "BACKGROUND", level = 0,
		x_off = 1837, y_off = 18,
		width = 264, height = 149,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "ThreatBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "ThreatDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 264, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
    	
    },
	{   name = "ThreatBorderBottom",
        strata = "BACKGROUND", level = 0,
		parent = "ThreatDataText",
		anchor_to = "LEFT", anchor_from = "BOTTOMLEFT",
		x_off = 0, y_off = 0,
		width = 264, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
      
    },
	{   name = "ThreatBorderLeft",
        strata = "BACKGROUND", level = 0,
		parent = "ThreatDataText",
		anchor_to = "LEFT", anchor_from = "LEFT",
		x_off = 0, y_off = 0,
		width = 1.1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
          {   name = "ThreatBorderRight",
        strata = "BACKGROUND", level = 0,
		parent = "ThreatDataText",
		anchor_to = "RIGHT", anchor_from = "RIGHT",
		x_off = 0, y_off = 0,
		width = 1, height = 149,
		bg_color = "0 0 0", bg_alpha = 5, 	
   },	
{   name = "LiteStatsDataText",
        strata = "BACKGROUND", level = 0,
		
		x_off = 0, y_off = 0,
		width = 2100, height = 16,
		bg_color = "0 0 0", bg_alpha = 0.5,
       	
    },
	{   name = "LiteStatsBorderTop",
        strata = "BACKGROUND", level = 0,
		parent = "LiteStatsDataText",
		anchor_to = "LEFT", anchor_from = "TOPLEFT",
		x_off = 0, y_off = 0,
		width = 2100, height = 1,
		bg_color = "0 0 0", bg_alpha = 5,
 },
})
Can anyone help me out to get them showing again?
  Reply With Quote
08-04-16, 06:20 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,732
My absolute guess is that LitePanels uses the :SetTexture() method to set the solid color of your panels. As of the pre-patch, you can no longer pass r,b,g values to SetTexture (since it has been changed to accept the FileID numbers). Open up the LitePanels addon and find SetTexture and change that to SetVertexColor.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
08-05-16, 12:08 AM   #3
Miiru
A Flamescale Wyrmkin
 
Miiru's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 138
You can also change SetTexture to SetColorTexture(r,g,b,a).
__________________
◘◘ Author of MiirGui Texture Pack - [Core] [Blue] [Grey] ◘◘
  Reply With Quote
08-05-16, 04:29 AM   #4
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
I changed them and still wasn't able to get them to show, do you have to change setcolor too in order to pass r,g,b?
  Reply With Quote
08-05-16, 10:26 AM   #5
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,231
If you changed the line (around line 183):
Code:
panel.bg:SetTexture(not strmatch(f.tex_file,"[/\\]") and self.media..f.tex_file or f.tex_file)
to use SetVertexColor then that's the line that actualy gives the region the image to use. Change it back to SetTexture.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
08-05-16, 11:36 AM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,732
Oh that's right. In addition to changing which method to use to set the color, you have to explicitly set a texture now, too.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
08-05-16, 11:54 AM   #7
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
Originally Posted by Fizzlemizz View Post
If you changed the line (around line 183):
Code:
panel.bg:SetTexture(not strmatch(f.tex_file,"[/\\]") and self.media..f.tex_file or f.tex_file)
to use SetVertexColor then that's the line that actualy gives the region the image to use. Change it back to SetTexture.
Made the change and my layout still isn't showing, its not giving me a lua error either
  Reply With Quote
08-05-16, 01:23 PM   #8
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,231
The SetVertexColor (or SetTexture if you're starting with a fresh copy of the addon) at lines 206 and 211 should be changed to SetColorTexture as your layout doesn't specificlly set any textures.

The addon probably needs a bit of a rework if it's to be made more generic again as noted by Seerah and Miiru.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-05-16 at 01:44 PM.
  Reply With Quote
08-05-16, 03:18 PM   #9
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
Originally Posted by Fizzlemizz View Post
The SetVertexColor (or SetTexture if you're starting with a fresh copy of the addon) at lines 206 and 211 should be changed to SetColorTexture as your layout doesn't specificlly set any textures.

The addon probably needs a bit of a rework if it's to be made more generic again as noted by Seerah and Miiru.
Hey thanks alot! those last 2 changes did the trick . Quick question though what kind of rework would you say is need?....cause I messaged the author couple weeks ago and he said he would be happy to keep the addon updated even though he doesn't play anymore but then he kinda went cold on me and never messaged me back.
  Reply With Quote
08-05-16, 03:43 PM   #10
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,231
They may be the only changes needed for now assuming SetColorTexture does both set a plain texture and colour it, as well as colouring a texture that has an image set via SetTexture. Otherwise the change would need be a bit more extensive but that would need some testing.

Others may know the answer.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-05-16 at 04:04 PM.
  Reply With Quote
08-05-16, 05:35 PM   #11
badness
A Cliff Giant
 
badness's Avatar
Join Date: May 2010
Posts: 74
ahh ok. I have 2 other addons that broke since pre-patch and I'm very interested in trying to get them fixed and maintained. I'm not very versed at lua but I can find my way around and would be more than willing to learn and keep them update. I was wondering if you could lend me hand in where to start?
  Reply With Quote
08-05-16, 05:52 PM   #12
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,231
Post the problems/errors and I'm sure if someone can help they will. Probably best to make new threads so others using the addons might benefit.

http://www.wowinterface.com/forums/s...ad.php?t=53248
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 08-05-16 at 05:55 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » LitePanels

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