use of gaiasky.util.scene2d.OwnTextTooltip in project gaiasky by langurmonkey.
the class GuiUtils method getTooltipHorizontalGroup.
public static HorizontalGroup getTooltipHorizontalGroup(Actor actor, String tooltipText, float space, Skin skin) {
HorizontalGroup hg = new HorizontalGroup();
hg.space(space);
hg.addActor(actor);
OwnImageButton tooltip = new OwnImageButton(skin, "tooltip");
tooltip.addListener(new OwnTextTooltip(tooltipText, skin));
hg.addActor(tooltip);
return hg;
}
Aggregations