Files
LNXSDK/leenkx/blender/lnx/logicnode/krom/LN_webview_visibility.py
2026-07-13 15:44:52 -07:00

26 lines
762 B
Python

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')