TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.ButtonPrompt Class Reference
Inheritance diagram for MoreMountains.TopDownEngine.ButtonPrompt:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void Initialization ()
virtual void SetText (string newText)
virtual void SetBackgroundColor (Color newColor)
virtual void SetTextColor (Color newColor)
virtual void Show ()
virtual void Hide ()

Public Attributes

Image Border
 the image to use as the prompt's border
Image Background
 the image to use as background
CanvasGroup ContainerCanvasGroup
 the canvas group of the prompt's container
Text PromptText
 the Text component of the prompt
float FadeInDuration = 0.2f
 the duration of the fade in, in seconds
float FadeOutDuration = 0.2f
 the duration of the fade out, in seconds

Protected Member Functions

virtual IEnumerator HideCo ()

Protected Attributes

Color _alphaZero = new Color(1f, 1f, 1f, 0f)
Color _alphaOne = new Color(1f, 1f, 1f, 1f)
Coroutine _hideCoroutine
Color _tempColor

Member Function Documentation

◆ Hide()

virtual void MoreMountains.TopDownEngine.ButtonPrompt.Hide ( )
virtual

◆ HideCo()

virtual IEnumerator MoreMountains.TopDownEngine.ButtonPrompt.HideCo ( )
protectedvirtual

◆ Initialization()

virtual void MoreMountains.TopDownEngine.ButtonPrompt.Initialization ( )
virtual

◆ SetBackgroundColor()

virtual void MoreMountains.TopDownEngine.ButtonPrompt.SetBackgroundColor ( Color newColor)
virtual

◆ SetText()

virtual void MoreMountains.TopDownEngine.ButtonPrompt.SetText ( string newText)
virtual

◆ SetTextColor()

virtual void MoreMountains.TopDownEngine.ButtonPrompt.SetTextColor ( Color newColor)
virtual

◆ Show()

virtual void MoreMountains.TopDownEngine.ButtonPrompt.Show ( )
virtual

Member Data Documentation

◆ _alphaOne

Color MoreMountains.TopDownEngine.ButtonPrompt._alphaOne = new Color(1f, 1f, 1f, 1f)
protected

◆ _alphaZero

Color MoreMountains.TopDownEngine.ButtonPrompt._alphaZero = new Color(1f, 1f, 1f, 0f)
protected

◆ _hideCoroutine

Coroutine MoreMountains.TopDownEngine.ButtonPrompt._hideCoroutine
protected

◆ _tempColor

Color MoreMountains.TopDownEngine.ButtonPrompt._tempColor
protected

◆ Background

Image MoreMountains.TopDownEngine.ButtonPrompt.Background

the image to use as background

◆ Border

Image MoreMountains.TopDownEngine.ButtonPrompt.Border

the image to use as the prompt's border

◆ ContainerCanvasGroup

CanvasGroup MoreMountains.TopDownEngine.ButtonPrompt.ContainerCanvasGroup

the canvas group of the prompt's container

◆ FadeInDuration

float MoreMountains.TopDownEngine.ButtonPrompt.FadeInDuration = 0.2f

the duration of the fade in, in seconds

◆ FadeOutDuration

float MoreMountains.TopDownEngine.ButtonPrompt.FadeOutDuration = 0.2f

the duration of the fade out, in seconds

◆ PromptText

Text MoreMountains.TopDownEngine.ButtonPrompt.PromptText

the Text component of the prompt


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/GUI/ButtonPrompt.cs