Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
62b7890e
Commit
62b7890e
authored
Nov 12, 2014
by
Matt Lowe
Browse files
Cards Scale with mouse over action
Cards now scale up by 10% when mouse over.
parent
8f801825
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/abstractcarditem.cpp
View file @
62b7890e
...
...
@@ -190,6 +190,8 @@ void AbstractCardItem::setHovered(bool _hovered)
processHoverEvent
();
isHovered
=
_hovered
;
setZValue
(
_hovered
?
2000000004
:
realZValue
);
setScale
(
_hovered
?
1.1
:
1
);
setTransformOriginPoint
(
_hovered
?
CARD_WIDTH
/
2
:
0
,
_hovered
?
CARD_HEIGHT
/
2
:
0
);
update
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment