Download
(2Kb)
Download
Updated: 06-30-11 01:30 PM
Pictures
File Info
Updated:06-30-11 01:30 PM
Created:11-11-10 03:36 PM
Downloads:3,032
Favorites:12
MD5:

wPanels

Version: 1.11
by: aapoo [More]

For advanced users, only lua configuration (aka no /wpanels or anything like that)

Just the mere basics for a panel addon, you can however use whatever luacode you desire within layout.lua


Usage example:

Code:
Createpanel("panelname", 100, 100, "Center", UIParent, "CENTER", 0, 0, 1, 0.9, "mycolors")
What is all of that? the first "100" is width, second is height, first anchor, then parent, then anchor "from" and then x. y. offset and last alpha (alpha is optional and it's default value is 1) and "mycolors" is the selected colorscheme, I plan on adding so that every colorscheme can be set to have it's own selection of textures, if there's a demand for it.
For more info on blizzards setpoint api (which is used within the createpanel) have a look here; http://www.wowwiki.com/API_Region_SetPoint

v1.11
  • Fixed a typo in the .toc file
  • Added custom texture support in colorschemes
v1.1
  • Remade the configuration to allow diffrent colorschemes and added checks to ensure that a color scheme is selected, there is a default colorscheme, if deleted the addon wont work.
  • Splitt the configuration into it's own .lua file for better structure.
Optional Files (0)


Post A Reply Comment Options
Unread 04-13-15, 06:10 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 32
Uploads: 3
Originally Posted by Siannus
I have no clue if your keeping up with this addon.

It still works, even in 6.0.2 and I would rather keep using this than kgpanels, btex, etc.

There are 2 issues I have with it though.

I cannot for the life of me get it to work using border and background textures nor can I change the color of the borders or background, just the opacity.

Also, it does not scale with screen. Im using a 1920x1080 windowed, and if I shrink the width or change the resolution, the panels get all wacked out.

WTB fix....
Sorry my very late reply.

It should, as you point out, work. I'm back developing addons and I'll take a look at your issues as soon as I can (tommorow after work probably).

Keep an eye out and I'll update it soon as I can.
Report comment to moderator  
Reply With Quote
Unread 10-23-14, 02:47 PM  
Siannus
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 90
Uploads: 2
I have no clue if your keeping up with this addon.

It still works, even in 6.0.2 and I would rather keep using this than kgpanels, btex, etc.

There are 2 issues I have with it though.

I cannot for the life of me get it to work using border and background textures nor can I change the color of the borders or background, just the opacity.

Also, it does not scale with screen. Im using a 1920x1080 windowed, and if I shrink the width or change the resolution, the panels get all wacked out.

WTB fix....
Report comment to moderator  
Reply With Quote
Unread 06-30-11, 01:25 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 32
Uploads: 3
Originally posted by weasoug
Seems you got the toc wrong. you have it as 42000 when it should be 40200
Oops, silly me, things happen when you're tired, I'll fix that. Thanks!
Report comment to moderator  
Reply With Quote
Unread 06-30-11, 01:01 PM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 127
File comments: 319
Uploads: 11
Seems you got the toc wrong. you have it as 42000 when it should be 40200
__________________
wMmap :: Is a lightweight Minimap, with a sleek look & custom imagery.
wIn1 :: In one addon. and is very lightweight & simple to use.
wChat :: Is a lightweight chat mod.
wBroker :: Is A simple broker add-on.
wPetXPBar :: Is A simple lightweight Pet XP Bar.
wBuffs :: Is A simple Buffs Bar.
Report comment to moderator  
Reply With Quote
Unread 06-30-11, 12:19 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 32
Uploads: 3
Originally posted by Arodan
How can i set gradient alpha to the textures?
There's currently no support for this, I'll see what I can do (honestly never used that before)
Report comment to moderator  
Reply With Quote
Unread 04-30-11, 08:34 AM  
Arodan
A Kobold Labourer

Forum posts: 1
File comments: 9
Uploads: 0
How can i set gradient alpha to the textures?
Report comment to moderator  
Reply With Quote
Unread 12-08-10, 04:14 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 32
Uploads: 3
Re: Re: Textures?

Originally posted by TMcMahon51
You can use your own, by modifying lines 7 and 8 of wPanelsCore.lua.

bordertex = [[Interface\AddOns\wPanels\textures\blank]]
bgtex = [[Interface\AddOns\wPanels\textures\blank]]
Going to update teh way this is applied so that you can apply textures to individual panels
Report comment to moderator  
Reply With Quote
Unread 11-30-10, 11:47 AM  
Coote
A Scalebane Royal Guard
 
Coote's Avatar
AddOn Author - Click to view AddOns

Forum posts: 440
File comments: 69
Uploads: 7
Re: Textures?

Originally posted by Opaque
Can you use your own textures with this? Or is it just the colored boxes?
You can use your own, by modifying lines 7 and 8 of wPanelsCore.lua.

bordertex = [[Interface\AddOns\wPanels\textures\blank]]
bgtex = [[Interface\AddOns\wPanels\textures\blank]]
__________________

"This is the fifteen-thousandth four hundredth and ninety-eighth occurence".
Report comment to moderator  
Reply With Quote
Unread 11-28-10, 11:16 PM  
Opaque
A Fallenroot Satyr
 
Opaque's Avatar

Forum posts: 23
File comments: 138
Uploads: 0
Question Textures?

Can you use your own textures with this? Or is it just the colored boxes?
__________________
Report comment to moderator  
Reply With Quote
Unread 11-27-10, 06:03 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 32
Uploads: 3
As I mentioned, this is a advanced user addon. But ofcourse, you can anchor panels to things (acctually to every single frame in the UI)
Report comment to moderator  
Reply With Quote
Unread 11-24-10, 03:56 PM  
Dawk
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Originally posted by Dawk
I love the low memory useage, could i get an example of a config with 2 panels. Is it possible to reference the second panel off of the first parent panel?
Code:
-- Layout
local Createpanel = wP.Createpanel
if(selectedlayout == "default") then
	-- Default layout
	local testpanel = CreateFrame("Frame", "Testpanel", UIParent)
	Createpanel(testpanel, 432, 92, "Center", UIParent, "BOTTOM", 0, 150, 0.6)
	local bpanel = CreateFrame("Frame", "bpanel", Testpanel)
	Createpanel(bpanel, 432, 82, "Top", Testpanel, "BOTTOM", 0, -10, 0.6)
	local lpanel = CreateFrame("Frame", "lpanel", Testpanel)
	Createpanel(lpanel, 150, 184, "right", Testpanel, "LEFT", -10, -46, 0.6)
	local rpanel = CreateFrame("Frame", "rpanel", Testpanel)
	Createpanel(rpanel, 150, 184, "left", Testpanel, "RIGHT", 10, -46, 0.6)
	
end
I got to messing with it a bit and thought i would share what I came up with.

*Note make sure to back up you layout.lua or when you update your changes will be lost
Report comment to moderator  
Reply With Quote
Unread 11-23-10, 11:50 PM  
Dawk
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
I love the low memory useage, could i get an example of a config with 2 panels. Is it possible to reference the second panel off of the first parent panel?
Report comment to moderator  
Reply With Quote
Unread 11-12-10, 09:41 AM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 127
File comments: 319
Uploads: 11
thanks. that helped
__________________
wMmap :: Is a lightweight Minimap, with a sleek look & custom imagery.
wIn1 :: In one addon. and is very lightweight & simple to use.
wChat :: Is a lightweight chat mod.
wBroker :: Is A simple broker add-on.
wPetXPBar :: Is A simple lightweight Pet XP Bar.
wBuffs :: Is A simple Buffs Bar.
Report comment to moderator  
Reply With Quote
Unread 11-12-10, 06:47 AM  
zynix
A Cliff Giant
 
zynix's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 74
Uploads: 1
Weasoug, the alpha settings goes from 0.0 to 1.0, 0.0 being fully transparent, and 1.0 fully opaque.

0.10 = 0.1
so, the middleground between 0.9 and 0.1 is 0.5

But, remember, you can put as many zeros behind a decimal, without changing the value, IE: 0.1 = 0.10000000000000000, but 0.1 =/= 0.01.
Report comment to moderator  
Reply With Quote
Unread 11-11-10, 07:43 PM  
aapoo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 14
File comments: 32
Uploads: 3
I honestly don't know, as this addon is as simple as simple gets, it uses blizzards :SetAlpha(value). You could lookup the api and "rules" for it on wowwiki if you want to dig deeper.

Also, .9 is the same as .90, try .80 or .85 perhaps?
Last edited by aapoo : 11-11-10 at 09:09 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: