Skip to content

Commit

Permalink
Stop materials from scrolling
Browse files Browse the repository at this point in the history
Added a way of disabling annoying feature when using custom icons.
  • Loading branch information
h3xcat committed Feb 15, 2016
1 parent a6211d3 commit 23f0b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/pointshop/vgui/DPointShopItem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function PANEL:SetData(data)
end

function DImageButton.m_Image:Paint(w, h)
if self:GetParent():GetParent().Hovered then
if not self:GetParent():GetParent().Data.NoScroll and self:GetParent():GetParent().Hovered then
self.FrameTime = self.FrameTime + 1
end

Expand Down

0 comments on commit 23f0b8e

Please sign in to comment.