C# Class GooglePlayServices.TextAreaDialog

Window which displays a scrollable text area and two buttons at the bottom.
Inheritance: EditorWindow
显示文件 Open project: googlesamples/unity-jar-resolver Class Usage Examples

Public Properties

Property Type Description
bodyText string
buttonClicked ButtonClicked
modal bool
noText string
result bool
scrollPosition UnityEngine.Vector2
summaryText string
yesText string

Public Methods

Method Description
CreateTextAreaDialog ( string title ) : TextAreaDialog

Get the existing text area window or create a new one.

Initialize ( ) : void

Protected Methods

Method Description
OnGUI ( ) : void
OnLostFocus ( ) : void

Method Details

CreateTextAreaDialog() public static method

Get the existing text area window or create a new one.
public static CreateTextAreaDialog ( string title ) : TextAreaDialog
title string Title to display on the window.
return TextAreaDialog

Initialize() public method

public Initialize ( ) : void
return void

OnGUI() protected method

protected OnGUI ( ) : void
return void

OnLostFocus() protected method

protected OnLostFocus ( ) : void
return void

Property Details

bodyText public_oe property

Set the text to display in the scrollable text area.
public string bodyText
return string

buttonClicked public_oe property

Delegate called when a button is clicked.
public ButtonClicked buttonClicked
return ButtonClicked

modal public_oe property

Whether this window should be modal. NOTE: This emulates modal behavior by re-acquiring focus when it's lost.
public bool modal
return bool

noText public_oe property

Set the text to display on the "no" (left-most) button.
public string noText
return string

result public_oe property

Result of yes / no button press. true if the "yes" button was pressed, false if the "no" button was pressed. Defaults to "false".
public bool result
return bool

scrollPosition public_oe property

Current position of the scrollbar.
public Vector2,UnityEngine scrollPosition
return UnityEngine.Vector2

summaryText public_oe property

Set the text to display in the summary area of the window.
public string summaryText
return string

yesText public_oe property

Set the text to display on the "yes" (left-most) button.
public string yesText
return string