2020-09-20 20:10:01 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class GetCursorStateNode(ArmLogicTreeNode):
|
2020-09-23 22:12:25 +02:00
|
|
|
"""Use to get the state of the cursor."""
|
2020-09-20 20:10:01 +02:00
|
|
|
bl_idname = 'LNGetCursorStateNode'
|
|
|
|
bl_label = 'Get Cursor State'
|
|
|
|
arm_version = 1
|
|
|
|
|
|
|
|
def init(self, context):
|
|
|
|
super(GetCursorStateNode, self).init(context)
|
|
|
|
self.outputs.new('NodeSocketBool', 'Is Hidden Locked')
|
|
|
|
self.outputs.new('NodeSocketBool', 'Is Hidden')
|
|
|
|
self.outputs.new('NodeSocketBool', 'Is Locked')
|
|
|
|
|
|
|
|
add_node(GetCursorStateNode, category=PKG_AS_CATEGORY, section='mouse')
|