Webview for RunT/Krom
This commit is contained in:
25
leenkx/blender/lnx/logicnode/krom/LN_webview_visibility.py
Normal file
25
leenkx/blender/lnx/logicnode/krom/LN_webview_visibility.py
Normal file
@ -0,0 +1,25 @@
|
||||
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')
|
||||
Reference in New Issue
Block a user