forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
21
leenkx/blender/lnx/logicnode/browser/LN_confirm.py
Normal file
21
leenkx/blender/lnx/logicnode/browser/LN_confirm.py
Normal file
@ -0,0 +1,21 @@
|
||||
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')
|
Reference in New Issue
Block a user