from lnx.logicnode.lnx_nodes import * class WebviewNavigationNode(LnxLogicTreeNode): """Performs a navigation action on the given WebView""" bl_idname = 'LNWebviewNavigationNode' bl_label = 'Webview Navigation' lnx_category = 'Krom Runtime' lnx_section = 'webview' lnx_version = 1 property0: HaxeEnumProperty( 'property0', items=[('go_back', 'Go Back', 'Navigate back in history'), ('go_forward', 'Go Forward', 'Navigate forward in history'), ('reload', 'Reload', 'Reload the current page')], name='Action', default='reload') 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')