2017-04-04 23:11:31 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2018-10-15 17:02:06 +02:00
|
|
|
class CallHaxeStaticNode(Node, ArmLogicTreeNode):
|
2017-04-04 23:11:31 +02:00
|
|
|
'''Call static Haxe function node'''
|
2018-10-15 17:02:06 +02:00
|
|
|
bl_idname = 'LNCallHaxeStaticNode'
|
|
|
|
bl_label = 'Call Haxe Static'
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_icon = 'GAME'
|
|
|
|
|
|
|
|
def init(self, context):
|
2017-04-08 20:05:35 +02:00
|
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
2017-04-04 23:11:31 +02:00
|
|
|
self.inputs.new('NodeSocketString', 'Function')
|
2017-04-08 20:05:35 +02:00
|
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
2017-04-04 23:11:31 +02:00
|
|
|
self.outputs.new('NodeSocketShader', 'Result')
|
|
|
|
|
2018-10-15 17:02:06 +02:00
|
|
|
add_node(CallHaxeStaticNode, category='Native')
|