RematchTeamPanel.TeamListButtonOnLoad(self) self.Back:SetBlendMode("ADD") self.Back:SetBlendMode("BLEND") if self:HasFocus() then -- if mouse is down while over an active texture, don't "press" the main button self.Back:SetBlendMode("BLEND") end if GetMouseFocus()==self then -- if mouse goes up after it left button, don't "unpress" it self.Back:SetBlendMode("ADD") end if self:HasFocus() then RematchTeamPanel.TeamOnClick(self,button) end RematchTeamPanel.TeamListButtonOnLoad(self) self.Back:SetBlendMode("ADD") self.Back:SetBlendMode("BLEND") if self:HasFocus() then -- if mouse is down while over an active texture, don't "press" the main button self.Back:SetBlendMode("BLEND") end if GetMouseFocus()==self then -- if mouse goes up after it left button, don't "unpress" it self.Back:SetBlendMode("ADD") end if self:HasFocus() then RematchTeamPanel.TeamOnClick(self,button) end RematchTeamPanel.SearchBoxOnTextChanged(self) self:ClearFocus()