Category: Plug-Ins & Patches
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)

This file is a Addon for cargBags by Cargor. You must have that installed before this Addon will work.

Author:
Version:
1.1
Date:
07-19-2009 11:43 AM
Size:
5.50 Kb
Downloads:
2,337
Favorites:
35
MD5:
Pictures
Click to enlarge
Bags
cargBags Pernobilis
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.
  Change Log - cargBags Pernobilis
1.1
- licensed under the open-source WTFPL
- included Anywhere support
- fixed errors with 1.3 core
- new opaque background texture
  Archived Versions - cargBags Pernobilis
File Name
Version
Size
Author
Date
1.0
5kB
Cargor
04-12-2009 11:10 AM
  Comments - cargBags Pernobilis
Post A Reply Comment Options
Old 09-29-2009, 05:49 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
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.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 09-17-2009, 08:22 AM  
amox
A Kobold Labourer

Forum posts: 0
File comments: 7
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-2009 at 02:19 PM.
amox is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-19-2009, 02:08 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 35
Uploads: 1
Quote:
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
__________________
Cashtro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-02-2009, 03:56 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
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.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 07-02-2009, 01:35 PM  
Skylinee
A Kobold Labourer

Forum posts: 0
File comments: 165
Uploads: 0
Quote:
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
Skylinee is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-16-2009, 09:38 AM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
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
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-15-2009, 09:27 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 35
Uploads: 1
Quote:
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 Cashtro : 05-16-2009 at 10:15 AM.
Cashtro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-15-2009, 01:36 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Move your things from the function "PostCreateButton" to the "PostAddButton"-one and it should work
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-15-2009, 01:29 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 35
Uploads: 1
Quote:
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
Cashtro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-15-2009, 12:51 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
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 :/
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-15-2009, 12:42 PM  
Cashtro
A Defias Bandit
 
Cashtro's Avatar

Forum posts: 3
File comments: 35
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
Cashtro is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-12-2009, 01:31 PM  
Krusam
A Kobold Labourer
 
Krusam's Avatar

Forum posts: 0
File comments: 2
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
Krusam is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-12-2009, 01:24 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
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.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-12-2009, 01:19 PM  
moniker
A Defias Bandit
Interface Author - Click to view interfaces

Forum posts: 3
File comments: 67
Uploads: 2
Quote:
Originally posted by Cargor
[b]Both of the layouts have the filter code in it (because bag slots are also filters this time).
The first one (currently downloadable) is the example from the second screenshot - I never planned to release it, it was merely written for the screenshot. It just applies more filters which are uncommented in the other release.
But it comes without any buttons to show junk/epic item bag frames, so they're hidden.
Ah ok thanks. Regarding the junk/epic bag frames, reading the code since their parentFrame in cargbags:Spawn is main, I expected them to show when main was shown, but I had to do junk:Show() and epics:Show() manually in OpenCargBags() -- is this intended?

Quote:
EDIT: There is no API-function for getting the soulbound / BoE / BoP information available. You would have to parse the tooltip line for that. But I'll try and look for writing a plugin that maybe can handle this.
Ah, wasn't sure if you had anything for this (I hadn't looked at your filtering code before posting). I've written some tooltip scanning code before, so I can just do that again I suppose.

Thanks.

Last edited by moniker : 04-12-2009 at 01:20 PM.
moniker is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-12-2009, 01:15 PM  
Cargor
A Flamescale Wyrmkin
 
Cargor's Avatar
Interface Author - Click to view interfaces

Forum posts: 127
File comments: 242
Uploads: 17
Okay, while still on approval, you can download the layout.lua file here http://gist.github.com/94068.
Just place it in your cargBags_Pernobilis directory.
__________________
« Homepage | Git »

My blog is finally getting english!
Cargor is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.