Webview for RunT/Krom
This commit is contained in:
17
leenkx/blender/lnx/logicnode/krom/LN_webview_send.py
Normal file
17
leenkx/blender/lnx/logicnode/krom/LN_webview_send.py
Normal file
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class WebviewSendNode(LnxLogicTreeNode):
|
||||
"""Sends a message to the given WebView received via window.onMessage"""
|
||||
bl_idname = 'LNWebviewSendNode'
|
||||
bl_label = 'Webview Send'
|
||||
lnx_category = 'Krom Runtime'
|
||||
lnx_section = 'webview'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxIntSocket', 'ID')
|
||||
self.add_input('LnxStringSocket', 'Message')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
Reference in New Issue
Block a user