Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
PopupDialog Class Reference
Inheritance diagram for PopupDialog:

Public Member Functions

void Dismiss ()
 Close and clenaup the dialog More...
 
void Dismiss (bool KeepMouseState)
 Close and clenaup the dialog More...
 
void SetDraggable (bool draggable)
 

Static Public Member Functions

static bool CheckForOpenDialogs ()
 Checks if there are popup dialogs active More...
 
static void ClearPopUps ()
 
static void DismissPopup (string name)
 
static PopupDialog SpawnPopupDialog (Vector2 anchorMin, Vector2 anchorMax, string dialogName, string title, string message, string buttonMessage, bool persistAcrossScenes, UISkinDef skin, bool isModal=true, string titleExtra="")
 
static PopupDialog SpawnPopupDialog (Vector2 anchorMin, Vector2 anchorMax, MultiOptionDialog dialog, bool persistAcrossScenes, UISkinDef skin, bool isModal=true, string titleExtra="")
 
static PopupDialog SpawnPopupDialog (MultiOptionDialog dialog, bool persistAcrossScenes, UISkinDef skin, bool isModal=true, string titleExtra="")
 

Public Attributes

string defaultSkinName = "MainMenuSkin"
 
MultiOptionDialog dialogToDisplay
 
bool modal = true
 
UnityEngine.Events.UnityEvent onDestroy = new UnityEngine.Events.UnityEvent()
 
Callback OnDismiss
 
GameObject popupWindow
 

Protected Member Functions

void OnRectTransformDimensionsChange ()
 

Properties

bool Hover [get]
 
bool IsDraggable [get]
 
RectTransform RTrf [get]
 

Member Function Documentation

static bool PopupDialog.CheckForOpenDialogs ( )
inlinestatic

Checks if there are popup dialogs active

Returns
returns true if there are any popups already instantiated
static void PopupDialog.ClearPopUps ( )
inlinestatic
void PopupDialog.Dismiss ( )
inline

Close and clenaup the dialog

void PopupDialog.Dismiss ( bool  KeepMouseState)
inline

Close and clenaup the dialog

Parameters
KeepMouseStateWhether to save the mouse state from being cleared. Keeping tjhis will mean that double-clicks will work after a diakog is dismissed
static void PopupDialog.DismissPopup ( string  name)
inlinestatic
void PopupDialog.OnRectTransformDimensionsChange ( )
inlineprotected
void PopupDialog.SetDraggable ( bool  draggable)
inline
static PopupDialog PopupDialog.SpawnPopupDialog ( Vector2  anchorMin,
Vector2  anchorMax,
string  dialogName,
string  title,
string  message,
string  buttonMessage,
bool  persistAcrossScenes,
UISkinDef  skin,
bool  isModal = true,
string  titleExtra = "" 
)
inlinestatic
static PopupDialog PopupDialog.SpawnPopupDialog ( Vector2  anchorMin,
Vector2  anchorMax,
MultiOptionDialog  dialog,
bool  persistAcrossScenes,
UISkinDef  skin,
bool  isModal = true,
string  titleExtra = "" 
)
inlinestatic
static PopupDialog PopupDialog.SpawnPopupDialog ( MultiOptionDialog  dialog,
bool  persistAcrossScenes,
UISkinDef  skin,
bool  isModal = true,
string  titleExtra = "" 
)
inlinestatic

Member Data Documentation

string PopupDialog.defaultSkinName = "MainMenuSkin"
MultiOptionDialog PopupDialog.dialogToDisplay
bool PopupDialog.modal = true
UnityEngine.Events.UnityEvent PopupDialog.onDestroy = new UnityEngine.Events.UnityEvent()
Callback PopupDialog.OnDismiss
GameObject PopupDialog.popupWindow

Property Documentation

bool PopupDialog.Hover
get
bool PopupDialog.IsDraggable
get
RectTransform PopupDialog.RTrf
get

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