Thread Tools Display Modes
11-02-05, 05:13 AM   #1
mikma
A Cyclonian
 
mikma's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 45
Hiding the Buttonborder

Is it possible to change the alpha of the ActionButton1 - 12?
The default is the border is gray, and Lozareth has managed to change the background to Yellow in his Discord Action Bars. I would like to get rid of the border for good!

Here I have an example of what am I talking about:


ActionButton1-12 have ActionButtonX:SetButtonState("PUSHED") , but if I press the buttons they will get that grey border back

MultiBarButtonLeft1-12 and MultiBarButtonright1-12 are normal.

You can see that when pressing the button the gray border disappears and the button get's a smaller, yellow border and blue glow.
  Reply With Quote
07-05-06, 09:41 AM   #2
light007
A Kobold Labourer
Join Date: Jul 2006
Posts: 1
Hi...

is it this what you are looking for - please include it in bartender (Code stolen frim DimUI + idActionbars)

Code:
-- Thanks DimUI
function Bartender:AlterButtonLooks(Button)
    background = getglobal(Button:GetName()..'NormalTexture') or getglobal(Button:GetName()..'NormalTexture2')
    icon = getglobal(Button:GetName()..'Icon')

    background:SetAlpha(0)
    icon:SetTexCoord( 0.07, 0.93, 0.07, 0.93 )
end

function Bartender:DisableButtonBackgrounds()
	for i=1,12 do
		getglobal("ActionButton"..i.."NormalTexture"):SetAlpha(0)
		getglobal("MultiBarBottomLeftButton"..i.."NormalTexture"):SetAlpha(0)
		getglobal("MultiBarBottomRightButton"..i.."NormalTexture"):SetAlpha(0)
		getglobal("MultiBarLeftButton"..i.."NormalTexture"):SetAlpha(0)
		getglobal("MultiBarRightButton"..i.."NormalTexture"):SetAlpha(0)
		getglobal("BonusActionButton"..i.."NormalTexture"):SetAlpha(0)
		
-- get rid of the borders
		Bartender:AlterButtonLooks(getglobal("ActionButton"..i))
		Bartender:AlterButtonLooks(getglobal("MultiBarBottomLeftButton"..i))
		Bartender:AlterButtonLooks(getglobal("MultiBarBottomRightButton"..i))
		Bartender:AlterButtonLooks(getglobal("MultiBarLeftButton"..i))
		Bartender:AlterButtonLooks(getglobal("MultiBarRightButton"..i))
		Bartender:AlterButtonLooks(getglobal("BonusActionButton"..i))

-- apply scaling for borders
		--getglobal("ActionButton"..i):SetScale(0.75)
		--getglobal("MultiBarBottomLeftButton"..i):SetScale(0.75)
		--getglobal("MultiBarBottomRightButton"..i):SetScale(0.75)
		--getglobal("MultiBarLeftButton"..i):SetScale(0.75)
		--getglobal("MultiBarRightButton"..i):SetScale(0.75)
		--getglobal("BonusActionButton"..i):SetScale(0.75)

	end

-- applay scaling and nor border so pet bar too ?
	for i=1,10 do
		getglobal("PetActionButton"..i.."NormalTexture2"):SetAlpha(0)
		getglobal("ShapeshiftButton"..i.."NormalTexture"):SetAlpha(0)
	end
end
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Hiding the Buttonborder


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off