forked from LeenkxTeam/LNXSDK
18 lines
527 B
Python
18 lines
527 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class WebviewEvalJSNode(LnxLogicTreeNode):
|
|
"""Evaluates JavaScript code in the given WebView"""
|
|
bl_idname = 'LNWebviewEvalJSNode'
|
|
bl_label = 'Webview Eval JS'
|
|
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', 'JS')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|