32 lines
901 B
Python
32 lines
901 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class LoadWASMNode(LnxLogicTreeNode):
|
|
"""Load WASM"""
|
|
bl_idname = 'LNLoadWASMNode'
|
|
bl_label = 'Load WASM'
|
|
bl_description = 'Load WASM'
|
|
lnx_category = 'HTML'
|
|
lnx_version = 1
|
|
|
|
property1: HaxeBoolProperty(
|
|
'property1',
|
|
name="Secure",
|
|
description="Secure host connection",
|
|
default=False,
|
|
)
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxStringSocket', 'Path')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|
|
self.add_output('LnxNodeSocketAction', 'Loaded')
|
|
self.add_output('LnxDynamicSocket', 'WASM')
|
|
|
|
def draw_buttons(self, context, layout):
|
|
layout.prop(self, 'property1')
|
|
|
|
def register():
|
|
add_category('HTML', icon='SEQ_STRIP_META')
|
|
LoadWASMNode.on_register() |