WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 41 → Rev 46

PhanxConfig-Button.lua
27,8 → 27,6
 
function lib.CreateButton( parent, name, desc )
local button = CreateFrame( "Button", nil, parent )
button:SetWidth( 44 )
button:SetHeight( 19 )
 
button:SetNormalFontObject( GameFontNormalSmall )
button:SetDisabledFontObject( GameFontDisable )
50,6 → 48,10
button:SetScript( "OnEnter", OnEnter )
button:SetScript( "OnLeave", OnLeave )
 
button:SetText( name )
button:SetWidth( math.min( 44, button:GetTextWidth() + 8 ) )
button:SetHeight( 22 )
 
button.desc = desc
 
return button