Difference between revisions of "IC Python API:RLPy RDialogCallback"

From Reallusion Wiki!
Jump to: navigation, search
(Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Inheritance== This class inherits public member functions from: *RLPy.RCallback =...")
 
m
Line 30: Line 30:
 
<div style="margin-left: 2em;">Dialog closed - bool
 
<div style="margin-left: 2em;">Dialog closed - bool
 
</div>
 
</div>
==Inherited By==
 
This class is inherited by the following classes:
 
{| class="wikitable"
 
!Class
 
!Description
 
|-
 
| [[ IC_Python_API:RLPy_RCallback | Callback ]] || Base class of all callback class, such as REventCallback, RDialogCallback...
 
|}
 

Revision as of 20:41, 28 March 2019

Main article: Modules.

Inheritance

This class inherits public member functions from:

Detailed Description

This class is used to register callbacks for dialog events.

class MyDialogCallback(RLPy.RDialogCallback):
 def __init__(self):
   RLPy.RDialogCallback.__init__(self)
 def OnDialogHide(self):
   print("Dialog is be Hide")
 def OnDialogShow(self):
   print("Dialog is be Show")
 def OnDialogClose(self):
   print("Dialog is be Close")

mydialog = RUi.CreateRDialog()
mycallback = MyDialogCallback()
mydialog.RegisterEventCallBack(mycallback)

Member Functions

OnDialogClose

RLPy.RDialogCallback.OnDialogClose ( self )

Callback for dialog close.

Returns

Dialog closed - bool