Download
(6Kb)
Download
Updated: 07-19-09 09:43 AM
Addon for:
cargBags.
Pictures
File Info
Updated:07-19-09 09:43 AM
Created:04-12-09 09:03 AM
Downloads:5,532
Favorites:24
MD5:

cargBags Pernobilis  Popular! (More than 5000 hits)

Version: 1.1
by: Cargor [More]

NOTE: This is only for the old cargBags version 1.3 and below!

cargBags_Pernobilis is a simple bag layout to give you a start on the cargBags API.

It features an all-in-one bag frame, a small key ring frame on the left of it (by default hidden) and a all-in-one bank frame.
Below the bag and bank frame are space indicators, your current money and a button "Bags" which shows your bag bar.

You can disable the caption bar and close button by uncommenting line 171:

Code:
--local caption = self:CreateFontString(nil, "OVERLAY", "GameFontNormal")
Licensed under the open-source WTFPL.

1.1
- licensed under the open-source WTFPL
- included Anywhere support
- fixed errors with 1.3 core
- new opaque background texture
Post A Reply Comment Options
Unread 11-28-09, 06:20 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Hiding the bags is difficult in the current version, because on initialization, cargBags doesn't know why bags you have. I will try to write some code up for you as soon as I have time for it.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 11-26-09, 03:18 AM  
Timps
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
The lua newbie here can't manage to change the size of the bag slots.

Could you please guide me in the right direction?

And also trying to hide one bag (soulshard bag). Can click away just that bag on in game, but after /rl it appears again. Do I need to change something in the lua?

Edit: found everything except the soulshard bag thing.
Last edited by Timps : 11-27-09 at 04:41 AM.
Report comment to moderator  
Reply With Quote
Unread 09-29-09, 03:49 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Sorry for the late response, had a lot of other things to do.

There is no bank-button in _Pernobilis at the moment, because I couldn't find any real placement for it which I like. You can make one for yourself, if you take the "bagToggle" in the file as a basis and use cBags_Bank:Show() and cBags_Bank:Hide() - or just use "/script cBags_Bank:Show()" in the chat editbox.

I'll try to include it in a another update , with some better layout placement, but the state of _Pernobilis at the moment is rather to show "how the basis is done" and not a feature-complete bag addon.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 09-17-09, 06:22 AM  
amox
A Kobold Labourer
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 3
Uploads: 1
Not sure if it's just me or not, but no "Bank" button is on my frame with "Anywhere" turn on/running
Last edited by amox : 09-20-09 at 12:19 PM.
Report comment to moderator  
Reply With Quote
Unread 07-19-09, 12:08 PM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally posted by Skylinee
This did work to some extent, but it's still slightly visible: http://i40.tinypic.com/330y0cx.png
Olla mate,

Try to make like this
Change the bgfile to something u like .. i used WHITE8X8 see example

Code:
	-- And the frame background!
	local background = CreateFrame("Frame", nil, self)
	background:SetBackdrop{
		bgFile = "Interface\\Buttons\\WHITE8X8",
		edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
		tile = true, tileSize = 16, edgeSize = 16,
		insets = {left = 4, right = 4, top = 4, bottom = 4},
	}
	background:SetFrameStrata("HIGH")
    background:SetFrameLevel(1)
	background:SetBackdropColor(0, 0, 0, 1)
	background:SetBackdropBorderColor(0, 0, 0, 1)

	background:SetPoint("TOPLEFT", -6, 6)
	background:SetPoint("BOTTOMRIGHT", 6, -6)

	return self
end
Report comment to moderator  
Reply With Quote
Unread 07-02-09, 01:56 PM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
That's because it is meant to be a bit transparent

By default it uses the tooltip-background - I'll try to find some completely dark one for ya.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 07-02-09, 11:35 AM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
Originally posted by Cargor
It's a matter of the layout (_Pernobilis in this case) and not cargBags itself, so please post further details in that comments section (:

I plan on rewriting _Pernobilis sometime in the future, but can't give an exact date. But you can fix the issue by yourself by going into cargBags_Pernobilis/layout.lua down to line 258 where it reads background:SetFrameStrata("BACKGROUND").

Replace it with the following and it should work:
Code:
background:SetFrameStrata("HIGH")
background:SetFrameLevel(1)
This did work to some extent, but it's still slightly visible: http://i40.tinypic.com/330y0cx.png
Report comment to moderator  
Reply With Quote
Unread 05-16-09, 07:38 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
The code looks okay to me. I'll test a bit with it, as soon as I got a bit of time

Ah, just a note for the next time: Please post questions regarding your own code changes to the Help & Discussion thread. Maybe other people can help you there and this enables me to keep this comments section only for bug reports and feature-req's
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-15-09, 07:27 PM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally posted by Cargor
Move your things from the function "PostCreateButton" to the "PostAddButton"-one and it should work
Hey mate i have fixed it see my screenshot



Code:
-- Function is called after a button was added to an object
-- We color the borders of the button to see if it is an ammo bag or else
-- Please note that the buttons are in most cases recycled and not new created
local PostAddButton = function(self, button, bag)
	if(not button.NormalTexture) then return end
	button.NormalTexture:SetWidth(43)
        button.NormalTexture:SetHeight(43)
	button.NormalTexture:SetTexture([[Interface\FXP\Classic.tga]])

	local bagType = cargBags.Bags[button.bagID].bagType
	if(button.bagID == KEYRING_CONTAINER) then
		button.NormalTexture:SetVertexColor(1, 0.7, 0)		-- Key ring
	elseif(bagType and bagType > 0 and bagType < 8) then
		button.NormalTexture:SetVertexColor(1, 1, 0)		-- Ammo bag
	elseif(bagType and bagType > 4) then
		button.NormalTexture:SetVertexColor(0, 1, 0)		-- Profession bags
	else
		button.NormalTexture:SetVertexColor(0.5, 0.5, 0.5)	-- Normal bags
	end
end
But as u can see my Ammo and Herb bags ain't coloring am i doing something wrong?

Thanks for your fast support
Last edited by illum1n4ti : 05-16-09 at 08:15 AM.
Report comment to moderator  
Reply With Quote
Unread 05-15-09, 11:36 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Move your things from the function "PostCreateButton" to the "PostAddButton"-one and it should work
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-15-09, 11:29 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Originally posted by Cargor
I'll fix it in the next version, together with Anywhere-support.

I don't know what you've changed before, so I can't help you on that one without further information :/
Code:
------ configure textures here------ 
local rb2_normal_texture    = "Interface\\Addons\\ButtonFacade_Onyx\\Textures\\Classic";
local rb2_hover_texture     = "Interface\\Addons\\ButtonFacade_Onyx\\Textures\\Gloss";    
local rb2_pushed_texture    = "Interface\\Addons\\ButtonFacade_Onyx\\Textures\\Overlay";
local rb2_equipped_texture  = "Interface\\Addons\\ButtonFacade_Onyx\\Textures\\Highlight";

-- Function is called after a button was created
-- We color the borders of the button to see if it is an ammo bag or else
local PostCreateButton = function(self, button, bag)
	local bu = _G[button.name]
    local ic  = _G[button.name.."Icon"]
    local nt  = _G[button.name.."NormalTexture"]
    
    bu:SetNormalTexture(rb2_normal_texture)
	bu:SetHighlightTexture(rb2_hover_texture)
    bu:SetPushedTexture(rb2_pushed_texture)
    bu.SetNormalTexture = dummy
    nt:SetPoint("TOPLEFT", bu, "TOPLEFT", -2, 2);
    nt:SetPoint("BOTTOMRIGHT", bu, "BOTTOMRIGHT", 2, -2);
	
	if(bag.id == KEYRING_CONTAINER) then
		bu:SetNormalTexture(rb2_equipped_texture)
	elseif(bag.bagType and bag.bagType > 0 and bag.bagType < 8) then
		bu:SetNormalTexture(rb2_equipped_texture)
	elseif(bag.bagType and bag.bagType > 4) then
		_G[button.name.."NormalTexture"]:SetVertexColor(0, 1, 0)
	else
		_G[button.name.."NormalTexture"]:SetVertexColor(1, 1, 1)
	end
end
i have used this code to change the texture but if i do this in ur new version it doesn't work

Thanks for ya fast support
Report comment to moderator  
Reply With Quote
Unread 05-15-09, 10:51 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
I'll fix it in the next version, together with Anywhere-support.

I don't know what you've changed before, so I can't help you on that one without further information :/
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Unread 05-15-09, 10:42 AM  
illum1n4ti
A Defias Bandit
 
illum1n4ti's Avatar

Forum posts: 3
File comments: 117
Uploads: 1
Dear Cargor,

I got a problem with your cargBags_Pernobilis

see screenshot


But with cargBags_Nivaya i dont have the problem


I hope u can help me ..

BTW mate since u have changed ur codec how can i change the texture of ur buttons and stuff
Report comment to moderator  
Reply With Quote
Unread 04-12-09, 11:31 AM  
Krusam
A Kobold Labourer
 
Krusam's Avatar

Forum posts: 0
File comments: 1
Uploads: 1
hi. i think its a very good layout and also a good addon I have found an bug. in the 4th bag i can´t see all my crap
Report comment to moderator  
Reply With Quote
Unread 04-12-09, 11:24 AM  
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view AddOns

Forum posts: 199
File comments: 374
Uploads: 18
Well, it's not intended, and that's the reason why I didn't plan to release it. In the next days it will be the basis for a new filter-based layout with buttons to toggle these objects.
__________________
« Website | GitHub »

Oh hai!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: