| Updated: | 07-19-09 09:43 AM |
| Created: | 04-12-09 09:03 AM |
| Downloads: | 4,297 |
| Favorites: | 27 |
| MD5: |
--local caption = self:CreateFontString(nil, "OVERLAY", "GameFontNormal")
File Name |
Version |
Size |
Author |
Date |
1.0 |
5kB |
Cargor |
04-12-09 09:10 AM |
![]() |
Comment Options |
|
|
|
|
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.
|
|
|
|
|
|
||
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
__________________
|
||
|
|
|
|
|
|
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. |
|
|
|
|
|
||
|
A Murloc Raider
Forum posts: 5
File comments: 385
Uploads: 0
|
|
|
|
|
|
|
|
|
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 ![]() |
|
|
|
|
|
|
|
Move your things from the function "PostCreateButton" to the "PostAddButton"-one and it should work
![]() |
|
|
|
|
|
||
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
![]() Thanks for ya fast support |
||
|
|
|
|
|
|
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 :/ |
|
|
|
|
|
|
|
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 ![]() |
|
|
|
|
|
|
|
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![]() |
|
|
|
|
|
|
|
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.
|
|
|
|
![]() |
