Webview for RunT/Krom

This commit is contained in:
Gorochu
2026-07-13 15:44:52 -07:00
parent 7b2f21c499
commit 31a6a9d7ec
75 changed files with 1488 additions and 46 deletions

View File

@ -0,0 +1,24 @@
from lnx.logicnode.lnx_nodes import *
class WebviewNavigationStateNode(LnxLogicTreeNode):
"""Checks the navigation state of the given WebView"""
bl_idname = 'LNWebviewNavigationStateNode'
bl_label = 'Webview Navigation State'
lnx_category = 'Krom Runtime'
lnx_section = 'webview'
lnx_version = 1
property0: HaxeEnumProperty(
'property0',
items=[('can_go_back', 'Can Go Back', 'Check if can navigate back'),
('can_go_forward', 'Can Go Forward', 'Check if can navigate forward')],
name='Check', default='can_go_back')
def lnx_init(self, context):
self.add_input('LnxIntSocket', 'ID')
self.add_output('LnxBoolSocket', 'State')
def draw_buttons(self, context, layout):
layout.prop(self, 'property0')