Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
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:1,566
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)


Archived Files (2)
File Name
Version
Size
Author
Date
1.1
2kB
aapoo
06-30-11 12:18 PM
1.0
1kB
aapoo
11-11-10 03:36 PM


Post A Reply Comment Options
Unread 10-23-14, 02:47 PM  
Siannus
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 77
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....
Siannus is offline 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: 12
File comments: 32
Uploads: 4
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!
aapoo is offline 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: 128
File comments: 315
Uploads: 15
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.
weasoug is offline 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: 12
File comments: 32
Uploads: 4
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)
aapoo is offline 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?
Arodan is offline 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: 12
File comments: 32
Uploads: 4
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
aapoo is offline 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: 432
File comments: 67
Uploads: 10
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".
Coote is offline 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?
__________________
Opaque is offline 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: 12
File comments: 32
Uploads: 4
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)
aapoo is offline 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
Dawk is offline 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?
Dawk is offline 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: 128
File comments: 315
Uploads: 15
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.
weasoug is offline 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: 2
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.
zynix is offline 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: 12
File comments: 32
Uploads: 4
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.
aapoo is offline Report comment to moderator  
Reply With Quote
Unread 11-11-10, 05:48 PM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 128
File comments: 315
Uploads: 15
nice. just what i was looking for.

i see that .9 is semi see though. then .10 is too much see though. is there a way to get between them.
__________________
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.
weasoug is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: