Search in sources :

Example 6 with OwnTextTooltip

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;
}
Also used : OwnTextTooltip(gaiasky.util.scene2d.OwnTextTooltip) OwnImageButton(gaiasky.util.scene2d.OwnImageButton) HorizontalGroup(com.badlogic.gdx.scenes.scene2d.ui.HorizontalGroup)

Aggregations

OwnTextTooltip (gaiasky.util.scene2d.OwnTextTooltip)6 ChangeEvent (com.badlogic.gdx.scenes.scene2d.utils.ChangeListener.ChangeEvent)5 OwnImageButton (gaiasky.util.scene2d.OwnImageButton)3 HorizontalGroup (com.badlogic.gdx.scenes.scene2d.ui.HorizontalGroup)2 VerticalGroup (com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup)2 EventManager (gaiasky.event.EventManager)2 OwnLabel (gaiasky.util.scene2d.OwnLabel)2 OwnTextIconButton (gaiasky.util.scene2d.OwnTextIconButton)2 Gdx (com.badlogic.gdx.Gdx)1 HttpMethods (com.badlogic.gdx.Net.HttpMethods)1 HttpRequest (com.badlogic.gdx.Net.HttpRequest)1 HttpResponse (com.badlogic.gdx.Net.HttpResponse)1 HttpResponseListener (com.badlogic.gdx.Net.HttpResponseListener)1 HttpStatus (com.badlogic.gdx.net.HttpStatus)1 Actor (com.badlogic.gdx.scenes.scene2d.Actor)1 EventListener (com.badlogic.gdx.scenes.scene2d.EventListener)1 InputEvent (com.badlogic.gdx.scenes.scene2d.InputEvent)1 Cell (com.badlogic.gdx.scenes.scene2d.ui.Cell)1 ImageButton (com.badlogic.gdx.scenes.scene2d.ui.ImageButton)1 LabelStyle (com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle)1