Package com.prineside.tdi2.ui.shared
Class TooltipsOverlay
java.lang.Object
com.prineside.tdi2.managers.UiManager.UiComponent.Adapter
com.prineside.tdi2.ui.shared.TooltipsOverlay
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable,UiManager.UiComponent
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.prineside.tdi2.managers.UiManager.UiComponent
UiManager.UiComponent.Adapter -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases all resources of this object.voidhide()voidhideAll()voidstatic TooltipsOverlayi()booleanisTagShown(String tag) booleanvoidmarkTagShown(String tag) voidpreRender(float deltaTime) show(String tag, com.badlogic.gdx.scenes.scene2d.Actor forActor, com.badlogic.gdx.scenes.scene2d.ui.Widget contents, UiManager.MainUiLayer uiLayer, int zIndex, int align) Show a tooltipshow(String tag, com.badlogic.gdx.scenes.scene2d.Actor forActor, CharSequence text, UiManager.MainUiLayer uiLayer, int zIndex, int align) Show a tooltipMethods inherited from class com.prineside.tdi2.managers.UiManager.UiComponent.Adapter
postRender
-
Field Details
-
TAG_GENERIC_TOOLTIP
- See Also:
-
PREF_WIDTH
public static final float PREF_WIDTH- See Also:
-
MAX_WIDTH
public static final float MAX_WIDTH- See Also:
-
-
Constructor Details
-
TooltipsOverlay
public TooltipsOverlay()
-
-
Method Details
-
i
-
show
public TooltipsOverlay.Entry show(String tag, @Null com.badlogic.gdx.scenes.scene2d.Actor forActor, com.badlogic.gdx.scenes.scene2d.ui.Widget contents, UiManager.MainUiLayer uiLayer, int zIndex, int align) Show a tooltip- Parameters:
align- top, bottom, left or right (com.badlogic.gdx.utils.Align)
-
preRender
public void preRender(float deltaTime) - Specified by:
preRenderin interfaceUiManager.UiComponent- Overrides:
preRenderin classUiManager.UiComponent.Adapter
-
markTagShown
-
isTagShown
-
show
public TooltipsOverlay.Entry show(String tag, com.badlogic.gdx.scenes.scene2d.Actor forActor, CharSequence text, UiManager.MainUiLayer uiLayer, int zIndex, int align) Show a tooltip- Parameters:
align- top, bottom, left or right (com.badlogic.gdx.utils.Align)
-
hide
public void hide() -
isVisible
-
hideAll
public void hideAll() -
hideEntry
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Overrides:
disposein classUiManager.UiComponent.Adapter
-