value_get_mouse_lock.py , value_get_mouse_visible.py

This commit is contained in:
knowledgenude 2020-09-08 20:12:45 -03:00 committed by GitHub
parent 020f79793e
commit 546f8824d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetMouseLockNode(Node, ArmLogicTreeNode):
'''Get Mouse Lock node'''
bl_idname = 'LNGetMouseLockNode'
bl_label = 'Get Mouse Lock'
bl_icon = 'NONE'
def init(self, context):
self.outputs.new('NodeSocketBool', 'Lock')
add_node(GetMouseLockNode, category='Value')

View file

@ -0,0 +1,15 @@
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetMouseVisibleNode(Node, ArmLogicTreeNode):
'''Get Mouse Visible node'''
bl_idname = 'LNGetMouseVisibleNode'
bl_label = 'Get Mouse Visible'
bl_icon = 'NONE'
def init(self, context):
self.outputs.new('NodeSocketBool', 'Visible')
add_node(GetMouseVisibleNode, category='Value')