View Single Post
Unread 01-13-13, 09:52 AM   #7
Billtopia
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 94
so I have the buttons changing textures now... but it looks like in earlier versions of WoW when you made a large button (all stretched and miss formed)

default red button Click image for larger version

Name:	redbutton.jpg
Views:	26
Size:	3.2 KB
ID:	7501

my green button Click image for larger version

Name:	greenbutton.jpg
Views:	24
Size:	4.4 KB
ID:	7500

am I doing something wrong here? or am I missing something?

Lua Code:
  1. me.ListButtons[x]:SetText( "*** "..Table[x + slider].fullName.." ***" )
  2. me.ListButtons[x]:SetHighlightTexture("Interface\\AddOns\\NickAlert\\Green-Panel-Button-Highlight.tga")
  3. me.ListButtons[x]:GetHighlightTexture():SetTexCoord( 0, 0.625, 0, 0.6875 )
  4. me.ListButtons[x]:SetNormalTexture("interface\\addons\\nickalert\\green-panel-button-up.tga")
  5. me.ListButtons[x]:GetNormalTexture():SetTexCoord( 0, 0.625, 0, 0.6875 )
  6. me.ListButtons[x]:SetPushedTexture("Interface\\AddOns\\NickAlert\\Green-Panel-Button-Down.tga")
  7. me.ListButtons[x]:GetPushedTexture():SetTexCoord( 0, 0.625, 0, 0.6875 )
I also noticed that the textures appear OVER the WoW default texture (and SetNormalTexture( nil ) and SetPushedTexture( nil ) return them to default but SetHighlightTexture( nil ) removes the highlight texture all together)
Billtopia is offline   Reply With Quote