A GUI control that contains text.
More...
|
float | Alpha [get, set] |
| Gets or sets the alpha (transparency) value. More...
|
|
bool | HasAlpha [get] |
| Gets a value indicating whether this instance has an alpha that isn't fully opaque. More...
|
|
virtual GUIStyle | DefaultGUIStyle [get] |
| Gets the default GUI style to use for this type of control. More...
|
|
GUIStyle | GuiStyle [get, set] |
| The current GUI style. More...
|
|
Rect | rect [get, set] |
| The pixel rect represented by scaledRect. More...
|
|
Vector2 | Offset [get, set] |
| Gets or sets the offset to apply to the screen rect for this control; useful for manual repositioning outside the normal GUI control system. More...
|
|
List< GUIControl > | Children [get] |
| The child controls. More...
|
|
bool | NeedToUpdateLayout [get, set] |
| When true , the control needs to update its style, size, position, etc. More...
|
|
Vector2 | WindowSize [get, set] |
| The size of the window most recently passed to Refresh(). More...
|
|
bool | IsNavigationEnabled [get] |
| Gets a value indicating whether keyboard/controller navigation is enabled. More...
|
|
string | FullName [get] |
| Gets the full name of the GameObject, used to focus the control when using keyboard/controller navigation. More...
|
|
Vector2 | dRect [get, set] |
| Gets or sets dRect, which offsets the rect when the parent window isn't clipping. More...
|
|
A GUI control that contains text.
This is the parent class of GUILabel, GUIButton, and GUIWindow.
◆ ApplyAlphaToGUIColor()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.ApplyAlphaToGUIColor |
( |
| ) |
|
◆ ApplyFormatting()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.ApplyFormatting |
( |
| ) |
|
|
protected |
◆ AutoSizeSelf()
override void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.AutoSizeSelf |
( |
| ) |
|
|
virtual |
◆ Awake()
override void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.Awake |
( |
| ) |
|
|
virtual |
◆ PlaySound()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.PlaySound |
( |
AudioClip |
audioClip | ) |
|
Plays an audio clip.
If the control itself has an AudioSource, it uses it. Otherwise it uses the AudioSource on the main camera, adding one if the main camera doesn't already have one.
- Parameters
-
◆ RestoreGUIColor()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.RestoreGUIColor |
( |
| ) |
|
◆ SetFormattedText()
virtual void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.SetFormattedText |
( |
FormattedText |
formattedText | ) |
|
|
virtual |
◆ SetGUIStyle()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.SetGUIStyle |
( |
| ) |
|
|
protected |
Makes sure the guiStyle property is up-to-date.
◆ SetUnformattedText()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.SetUnformattedText |
( |
string |
text | ) |
|
Sets the control's text and formatting using just raw text.
- Parameters
-
◆ Start()
virtual void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.Start |
( |
| ) |
|
|
virtual |
◆ UpdateLayoutSelf()
override void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.UpdateLayoutSelf |
( |
| ) |
|
|
virtual |
◆ UseLocalizedText()
void PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.UseLocalizedText |
( |
LocalizedTextTable |
localizedText | ) |
|
◆ guiStyleName
string PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.guiStyleName |
The name of the GUI style to use to draw the text.
◆ localizedText
The (optional) localized text table to use.
◆ text
string PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.text |
The text content, or the name of the field in the localized text table.
◆ Alpha
float PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.Alpha |
|
getset |
Gets or sets the alpha (transparency) value.
The alpha.
◆ DefaultGUIStyle
virtual GUIStyle PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.DefaultGUIStyle |
|
getprotected |
Gets the default GUI style to use for this type of control.
It can be overridden on a per-control basis using guiStyleName.
The default GUI style.
◆ GuiStyle
GUIStyle PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.GuiStyle |
|
getsetprotected |
The current GUI style.
The GUI style.
◆ HasAlpha
bool PixelCrushers.DialogueSystem.UnityGUI.GUIVisibleControl.HasAlpha |
|
get |
Gets a value indicating whether this instance has an alpha that isn't fully opaque.
true
if this instance has alpha; otherwise, false
.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/Dialogue System/Dev/Source/Assets/Dialogue System/Scripts/Supplemental/Unity GUI/GUI Controls/GUIVisibleControl.cs