WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PhanxConfig-Button
    from Rev 39 to Rev 41
    Reverse comparison

Rev 39 → Rev 41

PhanxConfig-Button.lua
25,7 → 25,7
GameTooltip:Hide()
end
 
function lib.CreateButton( parent, name )
function lib.CreateButton( parent, name, desc )
local button = CreateFrame( "Button", nil, parent )
button:SetWidth( 44 )
button:SetHeight( 19 )
33,7 → 33,7
button:SetNormalFontObject( GameFontNormalSmall )
button:SetDisabledFontObject( GameFontDisable )
button:SetHighlightFontObject( GameFontHighlightSmall )
 
 
button:SetNormalTexture( [[Interface\Buttons\UI-Panel-Button-Up]] )
button:GetNormalTexture():SetTexCoord( 0, 0.625, 0, 0.6875 )
 
50,5 → 50,7
button:SetScript( "OnEnter", OnEnter )
button:SetScript( "OnLeave", OnLeave )
 
button.desc = desc
 
return button
end
\ No newline at end of file