UncivTooltip
class UncivTooltip<T : Actor>(target: Group, content: T, targetAlign: Int, tipAlign: Int, offset: Vector2, animate: Boolean, forceContentSize: Vector2?) : InputListener
Content copied to clipboard
A Replacement for Gdx Tooltip, placement does not follow the mouse.
Usage: group.addTooltip(text, size) builds a Label as tip actor and attaches it to your Group.
Parameters
target
The widget the tooltip will be added to - take care this is the same for which addListener is called
content
The actor to display as Tooltip
targetAlign
Point on the target widget to align the Tooltip to
tipAlign
Point on the Tooltip to align with the given point on the target
offset
Additional offset for Tooltip position after alignment
animate
Use show/hide animations
forceContentSize
Force virtual content width/height for alignment calculation - because Gdx auto layout reports wrong dimensions on scaled actors.
Constructors
Types
Functions
getEdgePoint
Link copied to clipboard
getOriginX
Link copied to clipboard
getOriginY
Link copied to clipboard
keyDown
Link copied to clipboard
keyTyped
Link copied to clipboard
keyUp
Link copied to clipboard
mouseMoved
Link copied to clipboard
touchDragged
Link copied to clipboard
Properties
contentHeight
Link copied to clipboard
contentWidth
Link copied to clipboard
state
Link copied to clipboard
targetAlign
Link copied to clipboard
Sources
jvm source
Link copied to clipboard