forked from LeenkxTeam/LNXSDK
22 lines
707 B
Python
22 lines
707 B
Python
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
||
|
class ConfirmNode(LnxLogicTreeNode):
|
||
|
"""Open a window alert with the give string value and returns true or false
|
||
|
according to the user answer (works only for web browsers).
|
||
|
|
||
|
@input String: message to display.
|
||
|
|
||
|
@output True: return in case user select yes/ok.
|
||
|
@output False: return in case user select no/cancel.
|
||
|
"""
|
||
|
bl_idname = 'LNConfirmNode'
|
||
|
bl_label = 'Confirm'
|
||
|
lnx_version = 1
|
||
|
|
||
|
def lnx_init(self, context):
|
||
|
self.add_input('LnxNodeSocketAction', 'In')
|
||
|
self.add_input('LnxStringSocket', 'String')
|
||
|
|
||
|
self.add_output('LnxNodeSocketAction', 'True')
|
||
|
self.add_output('LnxNodeSocketAction', 'False')
|