FrameIT
PopupBehavior Class Reference
Inheritance diagram for PopupBehavior:

Public Member Functions

void ShowTimedPopUp ()
 
void HidePopUp ()
 
void OnFailedScrollInput (ScrollApplicationCheckingError[] errorInfo)
 this method creates a helpful error message and shows the popup. For it to work properly, the setScroll and setParameterDisplays must have been set. More...
 

Public Attributes

string ServerErrorMessage = "unknown server error"
 
string NonTotalMessage = "Scroll application not complete"
 
string UnknownErrorMessage = "Unkown error - did you apply all facts?"
 
string InvalidAssignmentMessage = "Invalid Assignment"
 

Properties

string MessageText [getset]
 

Private Member Functions

void Awake ()
 
string generateHelpfulMessageAndAnimateScrollParam (ScrollApplicationCheckingError[] errorInfo)
 
MMTFact parseFactFromError (ScrollApplicationCheckingError error)
 

Private Attributes

GameObject canvas
 
Button CloseButton
 
TMP_Text message
 
string errorMessage
 

Member Function Documentation

◆ Awake()

void PopupBehavior.Awake ( )
private

◆ generateHelpfulMessageAndAnimateScrollParam()

string PopupBehavior.generateHelpfulMessageAndAnimateScrollParam ( ScrollApplicationCheckingError[]  errorInfo)
private

◆ HidePopUp()

void PopupBehavior.HidePopUp ( )

◆ OnFailedScrollInput()

void PopupBehavior.OnFailedScrollInput ( ScrollApplicationCheckingError[]  errorInfo)

this method creates a helpful error message and shows the popup. For it to work properly, the setScroll and setParameterDisplays must have been set.

Parameters
startfact
errorInfo

◆ parseFactFromError()

MMTFact PopupBehavior.parseFactFromError ( ScrollApplicationCheckingError  error)
private

◆ ShowTimedPopUp()

void PopupBehavior.ShowTimedPopUp ( )

Member Data Documentation

◆ canvas

GameObject PopupBehavior.canvas
private

◆ CloseButton

Button PopupBehavior.CloseButton
private

◆ errorMessage

string PopupBehavior.errorMessage
private

◆ InvalidAssignmentMessage

string PopupBehavior.InvalidAssignmentMessage = "Invalid Assignment"

◆ message

TMP_Text PopupBehavior.message
private

◆ NonTotalMessage

string PopupBehavior.NonTotalMessage = "Scroll application not complete"

◆ ServerErrorMessage

string PopupBehavior.ServerErrorMessage = "unknown server error"

◆ UnknownErrorMessage

string PopupBehavior.UnknownErrorMessage = "Unkown error - did you apply all facts?"

Property Documentation

◆ MessageText

string PopupBehavior.MessageText
getset

The documentation for this class was generated from the following file: