forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetCheckboxNode(LnxLogicTreeNode):
|
||||
"""Returns whether the given UI checkbox is checked."""
|
||||
bl_idname = 'LNCanvasGetCheckboxNode'
|
||||
bl_label = 'Get Canvas Checkbox'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxBoolSocket', 'Is Checked')
|
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetInputTextNode(LnxLogicTreeNode):
|
||||
"""Returns the input text of the given UI element."""
|
||||
bl_idname = 'LNCanvasGetInputTextNode'
|
||||
bl_label = 'Get Canvas Input Text'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxStringSocket', 'Text')
|
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetLocationNode(LnxLogicTreeNode):
|
||||
"""Returns the location of the given UI element (pixels)."""
|
||||
bl_idname = 'LNCanvasGetLocationNode'
|
||||
bl_label = 'Get Canvas Location'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_output('LnxIntSocket', 'X')
|
||||
self.add_output('LnxIntSocket', 'Y')
|
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetPositionNode(LnxLogicTreeNode):
|
||||
"""TO DO."""
|
||||
bl_idname = 'LNCanvasGetPositionNode'
|
||||
bl_label = 'Get Canvas Position'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxIntSocket', 'Position')
|
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetPBNode(LnxLogicTreeNode):
|
||||
"""Returns the value of the given UI progress bar."""
|
||||
bl_idname = 'LNCanvasGetPBNode'
|
||||
bl_label = 'Get Canvas Progress Bar'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_output('LnxIntSocket', 'At')
|
||||
self.add_output('LnxIntSocket', 'Max')
|
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetRotationNode(LnxLogicTreeNode):
|
||||
"""Returns the rotation of the given UI element."""
|
||||
bl_idname = 'LNCanvasGetRotationNode'
|
||||
bl_label = 'Get Canvas Rotation'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_output('LnxFloatSocket', 'Rad')
|
17
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_scale.py
Normal file
17
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_scale.py
Normal file
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetScaleNode(LnxLogicTreeNode):
|
||||
"""Returns the scale of the given UI element."""
|
||||
bl_idname = 'LNCanvasGetScaleNode'
|
||||
bl_label = 'Get Canvas Scale'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_output('LnxIntSocket', 'Height')
|
||||
self.add_output('LnxIntSocket', 'Width')
|
14
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_slider.py
Normal file
14
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_slider.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetSliderNode(LnxLogicTreeNode):
|
||||
"""Returns the value of the given UI slider."""
|
||||
bl_idname = 'LNCanvasGetSliderNode'
|
||||
bl_label = 'Get Canvas Slider'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxFloatSocket', 'Float')
|
14
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_text.py
Normal file
14
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_text.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetTextNode(LnxLogicTreeNode):
|
||||
"""Sets the text of the given UI element."""
|
||||
bl_idname = 'LNCanvasGetTextNode'
|
||||
bl_label = 'Get Canvas Text'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxStringSocket', 'String')
|
14
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_visible.py
Normal file
14
leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_visible.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasGetVisibleNode(LnxLogicTreeNode):
|
||||
"""Returns whether the given UI element is visible."""
|
||||
bl_idname = 'LNCanvasGetVisibleNode'
|
||||
bl_label = 'Get Canvas Visible'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.inputs.new('LnxStringSocket', 'Element')
|
||||
|
||||
self.outputs.new('LnxBoolSocket', 'Is Visible')
|
@ -0,0 +1,12 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class GetGlobalCanvasFontSizeNode(LnxLogicTreeNode):
|
||||
"""Returns the font size of the entire UI Canvas."""
|
||||
bl_idname = 'LNGetGlobalCanvasFontSizeNode'
|
||||
bl_label = 'Get Global Canvas Font Size'
|
||||
lnx_section = 'global'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_output('LnxFloatSocket', 'Size')
|
@ -0,0 +1,12 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class GetGlobalCanvasScaleNode(LnxLogicTreeNode):
|
||||
"""Returns the scale of the entire UI Canvas."""
|
||||
bl_idname = 'LNGetGlobalCanvasScaleNode'
|
||||
bl_label = 'Get Global Canvas Scale'
|
||||
lnx_section = 'global'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_output('LnxFloatSocket', 'Scale')
|
39
leenkx/blender/lnx/logicnode/canvas/LN_on_canvas_element.py
Normal file
39
leenkx/blender/lnx/logicnode/canvas/LN_on_canvas_element.py
Normal file
@ -0,0 +1,39 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class OnCanvasElementNode(LnxLogicTreeNode):
|
||||
"""Activates the output whether an action over the given UI element is done."""
|
||||
bl_idname = 'LNOnCanvasElementNode'
|
||||
bl_label = 'On Canvas Element'
|
||||
lnx_section = 'events'
|
||||
lnx_version = 1
|
||||
|
||||
property0: HaxeEnumProperty(
|
||||
'property0',
|
||||
items=[('click', 'Click', 'Listen to mouse clicks'),
|
||||
('hover', 'Hover', 'Listen to mouse hover')],
|
||||
name='Listen to', default='click')
|
||||
property1: HaxeEnumProperty(
|
||||
'property1',
|
||||
items=[('started', 'Started', 'Started'),
|
||||
('down', 'Down', 'Down'),
|
||||
('released', 'Released', 'Released')],
|
||||
name='Status', default='started')
|
||||
property2: HaxeEnumProperty(
|
||||
'property2',
|
||||
items=[('left', 'Left', 'Left mouse button'),
|
||||
('middle', 'Middle', 'Middle mouse button'),
|
||||
('right', 'Right', 'Right mouse button')],
|
||||
name='Mouse Button', default='left')
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0')
|
||||
|
||||
if self.property0 == "click":
|
||||
layout.prop(self, 'property1')
|
||||
layout.prop(self, 'property2')
|
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_asset.py
Normal file
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_asset.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetAssetNode(LnxLogicTreeNode):
|
||||
"""Sets the asset of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetAssetNode'
|
||||
bl_label = 'Set Canvas Asset'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxStringSocket', 'Asset')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetCheckBoxNode(LnxLogicTreeNode):
|
||||
"""Sets the state of the given UI checkbox."""
|
||||
bl_idname = 'LNCanvasSetCheckBoxNode'
|
||||
bl_label = 'Set Canvas Checkbox'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxBoolSocket', 'Check')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
42
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_color.py
Normal file
42
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_color.py
Normal file
@ -0,0 +1,42 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetColorNode(LnxLogicTreeNode):
|
||||
"""Sets the selected color attribute of the given UI element.
|
||||
|
||||
This node does not override theme colors, only colors of individual
|
||||
elements are affected.
|
||||
|
||||
@input Element: The name of the canvas element whose color to set.
|
||||
@input Color: The color to set.
|
||||
|
||||
@option Attribute: The color attribute to set by this node. Not all
|
||||
attributes work for all canvas element types. If in doubt, see
|
||||
[`CanvasScript.hx`](https://github.com/leenkx3d/leenkx/blob/main/Sources/leenkx/ui/Canvas.hx)
|
||||
for details.
|
||||
"""
|
||||
bl_idname = 'LNCanvasSetColorNode'
|
||||
bl_label = 'Set Canvas Color'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
property0: HaxeEnumProperty(
|
||||
'property0',
|
||||
items=[
|
||||
('color', 'Color', 'Set the element\'s color attribute'),
|
||||
('color_text', 'Text Color', 'Set the element\'s color_text attribute'),
|
||||
('color_hover', 'Hover Color', 'Set the element\'s color_hover attribute'),
|
||||
('color_press', 'Pressed Color', 'Set the element\'s color_press attribute'),
|
||||
('color_progress', 'Progress Color', 'Set the element\'s color_progress attribute'),
|
||||
],
|
||||
name='Attribute', default='color', description='The color attribute to set by this node')
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxColorSocket', 'Color', default_value=[1.0, 1.0, 1.0, 1.0])
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop(self, 'property0', text='')
|
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetInputTextNode(LnxLogicTreeNode):
|
||||
"""Sets the input text of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetInputTextNode'
|
||||
bl_label = 'Set Canvas Input Text'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxStringSocket', 'Text')
|
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetInputTextFocusNode(LnxLogicTreeNode):
|
||||
"""Sets the input text focus of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetInputTextFocusNode'
|
||||
bl_label = 'Set Canvas Input Text Focus'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxBoolSocket', 'Focus')
|
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetLocationNode(LnxLogicTreeNode):
|
||||
"""Sets the location of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetLocationNode'
|
||||
bl_label = 'Set Canvas Location'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxFloatSocket', 'X')
|
||||
self.add_input('LnxFloatSocket', 'Y')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetPBNode(LnxLogicTreeNode):
|
||||
"""Sets the value of the given UI progress bar."""
|
||||
bl_idname = 'LNCanvasSetPBNode'
|
||||
bl_label = 'Set Canvas Progress Bar'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxIntSocket', 'At')
|
||||
self.add_input('LnxIntSocket', 'Max')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetRotationNode(LnxLogicTreeNode):
|
||||
"""Sets the rotation of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetRotationNode'
|
||||
bl_label = 'Set Canvas Rotation'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxFloatSocket', 'Rad')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
17
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_scale.py
Normal file
17
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_scale.py
Normal file
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetScaleNode(LnxLogicTreeNode):
|
||||
"""Sets the scale of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetScaleNode'
|
||||
bl_label = 'Set Canvas Scale'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxIntSocket', 'Height')
|
||||
self.add_input('LnxIntSocket', 'Width')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_slider.py
Normal file
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_slider.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetSliderNode(LnxLogicTreeNode):
|
||||
"""Sets the value of the given UI slider."""
|
||||
bl_idname = 'LNCanvasSetSliderNode'
|
||||
bl_label = 'Set Canvas Slider'
|
||||
lnx_section = 'elements_specific'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxFloatSocket', 'Float')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_text.py
Normal file
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_text.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetTextNode(LnxLogicTreeNode):
|
||||
"""Sets the text of the given UI element."""
|
||||
bl_idname = 'LNCanvasSetTextNode'
|
||||
bl_label = 'Set Canvas Text'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxStringSocket', 'Text')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_visible.py
Normal file
16
leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_visible.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class CanvasSetVisibleNode(LnxLogicTreeNode):
|
||||
"""Sets whether the given UI element is visible."""
|
||||
bl_idname = 'LNCanvasSetVisibleNode'
|
||||
bl_label = 'Set Canvas Visible'
|
||||
lnx_section = 'elements_general'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxStringSocket', 'Element')
|
||||
self.add_input('LnxBoolSocket', 'Visible')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
@ -0,0 +1,15 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class SetGlobalCanvasFontSizeNode(LnxLogicTreeNode):
|
||||
"""Sets the font size of the entire UI Canvas."""
|
||||
bl_idname = 'LNSetGlobalCanvasFontSizeNode'
|
||||
bl_label = 'Set Global Canvas Font Size'
|
||||
lnx_section = 'global'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxFloatSocket', 'Size', default_value=10)
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
@ -0,0 +1,15 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class SetGlobalCanvasScaleNode(LnxLogicTreeNode):
|
||||
"""Sets the scale of the entire UI Canvas."""
|
||||
bl_idname = 'LNSetGlobalCanvasScaleNode'
|
||||
bl_label = 'Set Global Canvas Scale'
|
||||
lnx_section = 'global'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_input('LnxFloatSocket', 'Scale', default_value=1.0)
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
@ -0,0 +1,19 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class SetGlobalCanvasVisibilityNode(LnxLogicTreeNode):
|
||||
"""Set whether the active canvas is visible.
|
||||
|
||||
Note that elements of invisible canvases are not rendered and computed,
|
||||
so it is not possible to interact with those elements on the screen
|
||||
"""
|
||||
bl_idname = 'LNSetGlobalCanvasVisibilityNode'
|
||||
bl_label = 'Set Global Canvas Visibility'
|
||||
bl_width_default = 200
|
||||
lnx_section = 'global'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'In')
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
||||
self.add_input('LnxBoolSocket', 'Canvas Visible', default_value=True)
|
6
leenkx/blender/lnx/logicnode/canvas/__init__.py
Normal file
6
leenkx/blender/lnx/logicnode/canvas/__init__.py
Normal file
@ -0,0 +1,6 @@
|
||||
from lnx.logicnode.lnx_nodes import add_node_section
|
||||
|
||||
add_node_section(name='events', category='Canvas')
|
||||
add_node_section(name='elements_general', category='Canvas')
|
||||
add_node_section(name='elements_specific', category='Canvas')
|
||||
add_node_section(name='global', category='Canvas')
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user