2017-04-03 22:29:46 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2017-04-04 23:11:31 +02:00
|
|
|
class IntegerNode(Node, ArmLogicTreeNode):
|
2017-04-03 22:29:46 +02:00
|
|
|
'''Int node'''
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNIntegerNode'
|
|
|
|
bl_label = 'Integer'
|
2017-04-03 22:29:46 +02:00
|
|
|
bl_icon = 'CURVE_PATH'
|
|
|
|
|
|
|
|
def init(self, context):
|
2017-04-08 00:34:45 +02:00
|
|
|
self.inputs.new('NodeSocketInt', 'Value')
|
|
|
|
self.outputs.new('NodeSocketInt', 'Int')
|
2017-04-03 22:29:46 +02:00
|
|
|
|
2017-04-10 21:17:17 +02:00
|
|
|
add_node(IntegerNode, category='Variable')
|