Class: GuiExplanationPanel

GuiExplanationPanel()

This class manages a tutorial panel meant to explain GUI elements (what they show or do) to the player, like "The resource counters at the top show how many resources you have ...". The explanations consist of a title and text. It also highlights the target GUI objects by fading out everything else with black and uses an arrow to point to them directly. If the target object is hidden the panel is still shown (pointing to nothing), but a warning displayed.

Constructor

new GuiExplanationPanel()

Source:

Members

ArrowDistanceFromTarget

Margin between the target object and the arrow.
Source:

ArrowScale

The arrow is always twice as wide as it is long. Therefore, for vertical arrows (pointing up or down) this defines the height and half the width, while for horizontal arrows (pointing left or right) this defines the width and half the height.
Source:

ArrowSprites

Which sprite to use depending on the side that the description panel is placed on. The sprites only differ in rotation. E.g. if the panel is placed to the left of the target object, the arrow has to point to the right.
Source:

HiddenWarning

Warning shown whilever the target objects is hidden.
Source:

MaxPanelHeight

Source:

OverlayZValue

Greater than the z value of all other session GUI objects (except the watermark).
Source:

PanelDistanceFromTarget

Margin between the target object and the panel itself. The arrow has to fit inside that gap.
Source:

PanelWidth

Source:

TitleTags

GUI tags applied to the shown title.
Source:

arrow

Source:

backgroundFade

Source:

currentStep

Source:

currentStep

Source:

panel

Source:

targetObject

Source:

targetObject

Source:

targetObject

Source:

targetOriginalZ

Source:

wasTargetHidden

Source:

wasTargetHidden

Source:

wasTargetHidden

Source:

wasTargetHidden

Source:

Methods

displayStep()

Source:

resetTargetObjectZ()

Source:

setVisible()

Source:

updateContent()

Check the visibility of the target object and update the text and background fade accordingly, if necessary.
Source:

updatePanelSize()

Place the panel next to the target object on the desired side relative to it.
Source: