So I have a DImageButton, that is 32x32. It starts off SetStretchToFit set to false, which works for the most part. The icon is small. Now, I have a function (by the way dibUno.m_bStretchToFit = true is the same thing as dibUno:SetStretchToFit( true ) so I’ve tried that):
dibUno.OnCursorEntered = function(self) self:SetStretchToFit ( true ) self.hover = true self:AlphaTo( 255, 0.25 ) surface.PlaySound( "garrysmod/ui_hover.wav" ) end
Now, I’ve confirmed it DOES change the variable, as GetStretchToFit returns true when the cursor enters the object. However, the icon itself is not updating, and I’m not sure what to do. Anyone have any insight?