More tweaks and fixes
- Added required level on hover to points display - Various minor fixes to calcs
This commit is contained in:
@@ -15,10 +15,7 @@ function ButtonClass:IsMouseOver()
|
||||
if not self:IsShown() then
|
||||
return false
|
||||
end
|
||||
local x, y = self:GetPos()
|
||||
local width, height = self:GetSize()
|
||||
local cursorX, cursorY = GetCursorPos()
|
||||
return cursorX >= x and cursorY >= y and cursorX < x + width and cursorY < y + height
|
||||
return self:IsMouseInBounds()
|
||||
end
|
||||
|
||||
function ButtonClass:Draw()
|
||||
|
||||
Reference in New Issue
Block a user