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

From Reallusion Wiki!
Jump to: navigation, search
m
m (Detailed Description)
Line 19: Line 19:
 
mydialog = RUi.CreateRDialog()
 
mydialog = RUi.CreateRDialog()
 
mycallback = MyDialogCallback()
 
mycallback = MyDialogCallback()
mydialog.RegisterEventCallBack(mycallback)
+
mydialog.RegisterEventCallback(mycallback)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 
== Member Functions ==
 
== Member Functions ==
 
=== OnDialogClose ===
 
=== OnDialogClose ===

Revision as of 20:03, 24 September 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


OnDialogHide

RLPy.RDialogCallback.OnDialogHide ( self )

Callback for dialog hide.


OnDialogShow

RLPy.RDialogCallback.OnDialogShow ( self )

Callback for dialog show.