uDialog  1.07
UI.Dialogs.uDialog Class Reference
Inheritance diagram for UI.Dialogs.uDialog:

Classes

class  uDialog_Event
 

Public Member Functions

void Start ()
 
void UpdateDisplay ()
 
void ColorSchemeChanged ()
 
void LoadColorScheme (uDialog_ColorScheme colorScheme)
 
void UpdateButtons ()
 
void SetIcon (Sprite newIcon)
 Set the Icon used by this uDialog More...
 
void SetIcon (Sprite newIcon, Color newColor)
 Set the Icon (and its color) for this uDialog More...
 
void SetIconType (eIconType newIconType)
 
void Show (bool fireOnShowEvent=true)
 
void Close ()
 
void Close (bool fireOnCloseEvent)
 
void Close (bool fireOnCloseEvent, bool animate, bool minimize=false)
 
void Minimize ()
 
void Maximize ()
 
void ResetPositionAndAlpha ()
 
void ForceButtonUpdate ()
 
void UpdateResizeListeners ()
 
void Focus ()
 Make this uDialog the Last Sibling in its parent container (Bring it to the front) More...
 
bool IsFocused ()
 
void SetPivot (Vector2 pivot, RectTransform rectTransform=null)
 
void SetPivot (eResizeListenerType resizeListenerType)
 
void ScreenOverlayClicked ()
 
void ButtonClicked ()
 
void Clicked ()
 Called when the dialog is clicked anywhere More...
 
void OnMouseEnter ()
 
void OnDialogDrag (UnityEngine.EventSystems.BaseEventData eventData)
 
void OnTitleDrag (UnityEngine.EventSystems.BaseEventData eventData)
 

Static Public Member Functions

static uDialog NewDialog (RectTransform parent)
 
static uDialog NewDialog (string dialogPrefabType="uDialog_Default", RectTransform parent=null)
 
static uDialog NewNotification ()
 
static uDialog NewMenu ()
 

Public Attributes

bool VisibleOnStart = true
 
bool ShowTitle = true
 
bool ShowTitleCloseButton = true
 
bool ShowTitleMinimizeButton = false
 
string TitleText = "Dialog Title"
 
string ContentText = "Message Dialog Text"
 
eIconType IconType = eIconType.Information
 
Sprite Icon_Information = null
 
Color Icon_Information_Color = new Color(1, 1, 1)
 
Sprite Icon_Warning = null
 
Color Icon_Warning_Color = new Color(1, 0.75f, 0.75f)
 
Sprite Icon_Question = null
 
Color Icon_Question_Color = new Color(0.9f, 0.75f, 0.5f)
 
bool CloseWhenAnyButtonClicked = true
 
List< uDialog_Button_DataButtons = new List<uDialog_Button_Data>()
 
bool Modal = false
 
bool CloseWhenScreenOverlayIsClicked = false
 
bool AutoClose = false
 
float AutoCloseTime = 10f
 
eThemeImageSet ThemeImageSet = eThemeImageSet.RoundedEdges
 
Sprite Image_Base
 
Sprite Image_Outline
 
Sprite Image_Title
 
Sprite Image_Viewport
 
Sprite Image_Button
 
Sprite Image_CloseButton
 
eOutlineMode OutlineMode = eOutlineMode.Glow
 
uDialog_FontSetting TitleFontSettings
 
uDialog_FontSetting ContentFontSettings
 
uDialog_FontSetting ButtonFontSettings
 
Color _Color_ViewportText
 
bool CloseWhenClicked = false
 
uDialog_Event Event_OnShow = null
 
uDialog_Event Event_OnClose = null
 
uDialog_Event Event_OnClick = null
 
uDialog_Event Event_OnMinimize = null
 
uDialog_Event Event_OnMaximize = null
 
bool TriggerOnClickEventWhenOverlayIsClicked = false
 
eShowAnimation ShowAnimation = eShowAnimation.None
 
eCloseAnimation CloseAnimation = eCloseAnimation.None
 
AudioClip OnShowSound
 
AudioClip OnCloseSound
 
AudioClip OnButtonClickSound
 
float AudioVolume = 1f
 
UnityEngine.Audio.AudioMixerGroup AudioMixerGroup
 
bool AllowDraggingViaTitle = false
 
bool AllowDraggingViaDialog = false
 
bool RestrictToParentBounds = true
 
bool AllowResizeFromLeft = false
 
bool AllowResizeFromRight = false
 
bool AllowResizeFromBottom = false
 
Vector2 MinSize = new Vector2()
 
Vector2 MaxSize = new Vector2()
 
bool AllowResizeToAdjustPivot = true
 
bool FocusOnClick = true
 
bool FocusOnMouseOver = false
 
bool FocusOnShow = true
 
bool editor_showReferencesSection = false
 
bool editor_showTitleSection = true
 
bool editor_showContentSection = true
 
bool editor_showIconDefinitionSection = false
 
bool editor_showButtonsSection = false
 
bool editor_showModalSection = true
 
bool editor_showAutoCloseSection = false
 
bool editor_showOutlineSection = true
 
bool editor_showThemeSection = true
 
bool editor_showThemeColorsSection = true
 
bool editor_showEventsSection = false
 
bool editor_showAnimationSection = false
 
bool editor_showMiscSection = false
 
bool editor_showAudioSection = false
 
bool editor_showDragAndResizeSection = false
 
bool editor_showFocusSection = false
 
bool DestroyAfterClose = false
 
GameObject GO_Dialog = null
 
Image GO_Container = null
 
Image GO_Title = null
 
Button GO_TitleCloseButton = null
 
Button GO_TitleMinimizeButton = null
 
Text GO_TitleText = null
 
Image GO_Viewport = null
 
GameObject GO_MessageContainer = null
 
Text GO_MessageText = null
 
Image GO_Icon = null
 
Image GO_Outline = null
 
Image GO_ScreenOverlayImage = null
 
uDialog_ScreenOverlay GO_ScreenOverlay = null
 
GameObject GO_ButtonContainer = null
 
uDialog_Button GO_ButtonTemplate = null
 
RuntimeAnimatorController RuntimeAnimatorController = null
 
List< uDialog_ResizeListenerResizeListeners = null
 
GameObject GO_Content = null
 
uDialog_TaskBar GO_TaskBar = null
 

Protected Member Functions

IEnumerator DisableWhenAnimationIsComplete (bool minimize=false)
 
Vector2 GetPivot (eResizeListenerType resizeListenerType)
 
void PlaySound (AudioClip Sound, float volume=1f)
 
void InitAudioSource (UnityEngine.Audio.AudioMixerGroup audioMixerGroup=null)
 
void DragUpdate (PointerEventData pointerData)
 

Protected Attributes

bool closeOnNextUpdate = false
 
CanvasGroup _CanvasGroup
 
AudioSource _AudioSource
 
RectTransform _RectTransform
 

Properties

bool isVisible [get, protected set]
 
bool ShowButtons [get, set]
 
string ColorScheme [get, set]
 
Color Color_TitleBackground [get, set]
 
Color Color_TitleText [get, set]
 
Color Color_TitleTextEffect [get, set]
 
Color Color_ViewportBackground [get, set]
 
Color Color_ViewportText [get, set]
 
Color Color_ViewportTextEffect [get, set]
 
Color Color_ButtonBackground [get, set]
 
Color Color_ButtonHighlight [get, set]
 
Color Color_ButtonText [get, set]
 
Color Color_ButtonTextEffect [get, set]
 
Color Color_Glow [get, set]
 
Color Color_Shadow [get, set]
 
Color Color_ScreenOverlay [get, set]
 
Animator Animator [get, protected set]
 
Vector3 initialPosition [get, set]
 
CanvasGroup CanvasGroup [get]
 
bool ShowCalledThisFrame [get, protected set]
 
RectTransform RectTransform [get]
 

Member Function Documentation

void UI.Dialogs.uDialog.ButtonClicked ( )
void UI.Dialogs.uDialog.Clicked ( )

Called when the dialog is clicked anywhere

void UI.Dialogs.uDialog.Close ( )
void UI.Dialogs.uDialog.Close ( bool  fireOnCloseEvent)
void UI.Dialogs.uDialog.Close ( bool  fireOnCloseEvent,
bool  animate,
bool  minimize = false 
)
void UI.Dialogs.uDialog.ColorSchemeChanged ( )
IEnumerator UI.Dialogs.uDialog.DisableWhenAnimationIsComplete ( bool  minimize = false)
protected
void UI.Dialogs.uDialog.DragUpdate ( PointerEventData  pointerData)
protected
void UI.Dialogs.uDialog.Focus ( )

Make this uDialog the Last Sibling in its parent container (Bring it to the front)

void UI.Dialogs.uDialog.ForceButtonUpdate ( )
Vector2 UI.Dialogs.uDialog.GetPivot ( eResizeListenerType  resizeListenerType)
protected
void UI.Dialogs.uDialog.InitAudioSource ( UnityEngine.Audio.AudioMixerGroup  audioMixerGroup = null)
protected
bool UI.Dialogs.uDialog.IsFocused ( )
void UI.Dialogs.uDialog.LoadColorScheme ( uDialog_ColorScheme  colorScheme)
void UI.Dialogs.uDialog.Maximize ( )
void UI.Dialogs.uDialog.Minimize ( )
static uDialog UI.Dialogs.uDialog.NewDialog ( RectTransform  parent)
static
static uDialog UI.Dialogs.uDialog.NewDialog ( string  dialogPrefabType = "uDialog_Default",
RectTransform  parent = null 
)
static
static uDialog UI.Dialogs.uDialog.NewMenu ( )
static
static uDialog UI.Dialogs.uDialog.NewNotification ( )
static
void UI.Dialogs.uDialog.OnDialogDrag ( UnityEngine.EventSystems.BaseEventData  eventData)
void UI.Dialogs.uDialog.OnMouseEnter ( )
void UI.Dialogs.uDialog.OnTitleDrag ( UnityEngine.EventSystems.BaseEventData  eventData)
void UI.Dialogs.uDialog.PlaySound ( AudioClip  Sound,
float  volume = 1f 
)
protected
void UI.Dialogs.uDialog.ResetPositionAndAlpha ( )
void UI.Dialogs.uDialog.ScreenOverlayClicked ( )
void UI.Dialogs.uDialog.SetIcon ( Sprite  newIcon)

Set the Icon used by this uDialog

Parameters
newIcon
void UI.Dialogs.uDialog.SetIcon ( Sprite  newIcon,
Color  newColor 
)

Set the Icon (and its color) for this uDialog

Parameters
newIcon
newColor
void UI.Dialogs.uDialog.SetIconType ( eIconType  newIconType)
void UI.Dialogs.uDialog.SetPivot ( Vector2  pivot,
RectTransform  rectTransform = null 
)
void UI.Dialogs.uDialog.SetPivot ( eResizeListenerType  resizeListenerType)
void UI.Dialogs.uDialog.Show ( bool  fireOnShowEvent = true)
void UI.Dialogs.uDialog.Start ( )
void UI.Dialogs.uDialog.UpdateButtons ( )
void UI.Dialogs.uDialog.UpdateDisplay ( )
void UI.Dialogs.uDialog.UpdateResizeListeners ( )

Member Data Documentation

AudioSource UI.Dialogs.uDialog._AudioSource
protected
CanvasGroup UI.Dialogs.uDialog._CanvasGroup
protected
Color UI.Dialogs.uDialog._Color_ViewportText
RectTransform UI.Dialogs.uDialog._RectTransform
protected
bool UI.Dialogs.uDialog.AllowDraggingViaDialog = false
bool UI.Dialogs.uDialog.AllowDraggingViaTitle = false
bool UI.Dialogs.uDialog.AllowResizeFromBottom = false
bool UI.Dialogs.uDialog.AllowResizeFromLeft = false
bool UI.Dialogs.uDialog.AllowResizeFromRight = false
bool UI.Dialogs.uDialog.AllowResizeToAdjustPivot = true
UnityEngine.Audio.AudioMixerGroup UI.Dialogs.uDialog.AudioMixerGroup
float UI.Dialogs.uDialog.AudioVolume = 1f
bool UI.Dialogs.uDialog.AutoClose = false
float UI.Dialogs.uDialog.AutoCloseTime = 10f
uDialog_FontSetting UI.Dialogs.uDialog.ButtonFontSettings
List<uDialog_Button_Data> UI.Dialogs.uDialog.Buttons = new List<uDialog_Button_Data>()
eCloseAnimation UI.Dialogs.uDialog.CloseAnimation = eCloseAnimation.None
bool UI.Dialogs.uDialog.closeOnNextUpdate = false
protected
bool UI.Dialogs.uDialog.CloseWhenAnyButtonClicked = true
bool UI.Dialogs.uDialog.CloseWhenClicked = false
bool UI.Dialogs.uDialog.CloseWhenScreenOverlayIsClicked = false
uDialog_FontSetting UI.Dialogs.uDialog.ContentFontSettings
string UI.Dialogs.uDialog.ContentText = "Message Dialog Text"
bool UI.Dialogs.uDialog.DestroyAfterClose = false
bool UI.Dialogs.uDialog.editor_showAnimationSection = false
bool UI.Dialogs.uDialog.editor_showAudioSection = false
bool UI.Dialogs.uDialog.editor_showAutoCloseSection = false
bool UI.Dialogs.uDialog.editor_showButtonsSection = false
bool UI.Dialogs.uDialog.editor_showContentSection = true
bool UI.Dialogs.uDialog.editor_showDragAndResizeSection = false
bool UI.Dialogs.uDialog.editor_showEventsSection = false
bool UI.Dialogs.uDialog.editor_showFocusSection = false
bool UI.Dialogs.uDialog.editor_showIconDefinitionSection = false
bool UI.Dialogs.uDialog.editor_showMiscSection = false
bool UI.Dialogs.uDialog.editor_showModalSection = true
bool UI.Dialogs.uDialog.editor_showOutlineSection = true
bool UI.Dialogs.uDialog.editor_showReferencesSection = false
bool UI.Dialogs.uDialog.editor_showThemeColorsSection = true
bool UI.Dialogs.uDialog.editor_showThemeSection = true
bool UI.Dialogs.uDialog.editor_showTitleSection = true
uDialog_Event UI.Dialogs.uDialog.Event_OnClick = null
uDialog_Event UI.Dialogs.uDialog.Event_OnClose = null
uDialog_Event UI.Dialogs.uDialog.Event_OnMaximize = null
uDialog_Event UI.Dialogs.uDialog.Event_OnMinimize = null
uDialog_Event UI.Dialogs.uDialog.Event_OnShow = null
bool UI.Dialogs.uDialog.FocusOnClick = true
bool UI.Dialogs.uDialog.FocusOnMouseOver = false
bool UI.Dialogs.uDialog.FocusOnShow = true
GameObject UI.Dialogs.uDialog.GO_ButtonContainer = null
uDialog_Button UI.Dialogs.uDialog.GO_ButtonTemplate = null
Image UI.Dialogs.uDialog.GO_Container = null
GameObject UI.Dialogs.uDialog.GO_Content = null
GameObject UI.Dialogs.uDialog.GO_Dialog = null
Image UI.Dialogs.uDialog.GO_Icon = null
GameObject UI.Dialogs.uDialog.GO_MessageContainer = null
Text UI.Dialogs.uDialog.GO_MessageText = null
Image UI.Dialogs.uDialog.GO_Outline = null
uDialog_ScreenOverlay UI.Dialogs.uDialog.GO_ScreenOverlay = null
Image UI.Dialogs.uDialog.GO_ScreenOverlayImage = null
uDialog_TaskBar UI.Dialogs.uDialog.GO_TaskBar = null
Image UI.Dialogs.uDialog.GO_Title = null
Button UI.Dialogs.uDialog.GO_TitleCloseButton = null
Button UI.Dialogs.uDialog.GO_TitleMinimizeButton = null
Text UI.Dialogs.uDialog.GO_TitleText = null
Image UI.Dialogs.uDialog.GO_Viewport = null
Sprite UI.Dialogs.uDialog.Icon_Information = null
Color UI.Dialogs.uDialog.Icon_Information_Color = new Color(1, 1, 1)
Sprite UI.Dialogs.uDialog.Icon_Question = null
Color UI.Dialogs.uDialog.Icon_Question_Color = new Color(0.9f, 0.75f, 0.5f)
Sprite UI.Dialogs.uDialog.Icon_Warning = null
Color UI.Dialogs.uDialog.Icon_Warning_Color = new Color(1, 0.75f, 0.75f)
eIconType UI.Dialogs.uDialog.IconType = eIconType.Information
Sprite UI.Dialogs.uDialog.Image_Base
Sprite UI.Dialogs.uDialog.Image_Button
Sprite UI.Dialogs.uDialog.Image_CloseButton
Sprite UI.Dialogs.uDialog.Image_Outline
Sprite UI.Dialogs.uDialog.Image_Title
Sprite UI.Dialogs.uDialog.Image_Viewport
Vector2 UI.Dialogs.uDialog.MaxSize = new Vector2()
Vector2 UI.Dialogs.uDialog.MinSize = new Vector2()
bool UI.Dialogs.uDialog.Modal = false
AudioClip UI.Dialogs.uDialog.OnButtonClickSound
AudioClip UI.Dialogs.uDialog.OnCloseSound
AudioClip UI.Dialogs.uDialog.OnShowSound
eOutlineMode UI.Dialogs.uDialog.OutlineMode = eOutlineMode.Glow
List<uDialog_ResizeListener> UI.Dialogs.uDialog.ResizeListeners = null
bool UI.Dialogs.uDialog.RestrictToParentBounds = true
RuntimeAnimatorController UI.Dialogs.uDialog.RuntimeAnimatorController = null
eShowAnimation UI.Dialogs.uDialog.ShowAnimation = eShowAnimation.None
bool UI.Dialogs.uDialog.ShowTitle = true
bool UI.Dialogs.uDialog.ShowTitleCloseButton = true
bool UI.Dialogs.uDialog.ShowTitleMinimizeButton = false
eThemeImageSet UI.Dialogs.uDialog.ThemeImageSet = eThemeImageSet.RoundedEdges
uDialog_FontSetting UI.Dialogs.uDialog.TitleFontSettings
string UI.Dialogs.uDialog.TitleText = "Dialog Title"
bool UI.Dialogs.uDialog.TriggerOnClickEventWhenOverlayIsClicked = false
bool UI.Dialogs.uDialog.VisibleOnStart = true

Property Documentation

Animator UI.Dialogs.uDialog.Animator
getprotected set
CanvasGroup UI.Dialogs.uDialog.CanvasGroup
get
Color UI.Dialogs.uDialog.Color_ButtonBackground
getset
Color UI.Dialogs.uDialog.Color_ButtonHighlight
getset
Color UI.Dialogs.uDialog.Color_ButtonText
getset
Color UI.Dialogs.uDialog.Color_ButtonTextEffect
getset
Color UI.Dialogs.uDialog.Color_Glow
getset
Color UI.Dialogs.uDialog.Color_ScreenOverlay
getset
Color UI.Dialogs.uDialog.Color_Shadow
getset
Color UI.Dialogs.uDialog.Color_TitleBackground
getset
Color UI.Dialogs.uDialog.Color_TitleText
getset
Color UI.Dialogs.uDialog.Color_TitleTextEffect
getset
Color UI.Dialogs.uDialog.Color_ViewportBackground
getset
Color UI.Dialogs.uDialog.Color_ViewportText
getset
Color UI.Dialogs.uDialog.Color_ViewportTextEffect
getset
string UI.Dialogs.uDialog.ColorScheme
getset
Vector3 UI.Dialogs.uDialog.initialPosition
getsetprotected
bool UI.Dialogs.uDialog.isVisible
getprotected set
RectTransform UI.Dialogs.uDialog.RectTransform
get
bool UI.Dialogs.uDialog.ShowButtons
getset
bool UI.Dialogs.uDialog.ShowCalledThisFrame
getprotected set

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