from lnx.logicnode.lnx_nodes import * class WebviewVisibilityNode(LnxLogicTreeNode): """Shows or hides the given WebView""" bl_idname = 'LNWebviewVisibilityNode' bl_label = 'Webview Visibility' lnx_category = 'Krom Runtime' lnx_section = 'webview' lnx_version = 1 property0: HaxeEnumProperty( 'property0', items=[('show', 'Show', 'Show the WebView'), ('hide', 'Hide', 'Hide the WebView')], name='Action', default='show') def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'In') self.add_input('LnxIntSocket', 'ID') self.add_output('LnxNodeSocketAction', 'Out') def draw_buttons(self, context, layout): layout.prop(self, 'property0')