forked from LeenkxTeam/LNXSDK
Update leenkx/blender/lnx/logicnode/draw/LN_draw_string.py
This commit is contained in:
@ -17,15 +17,15 @@ class DrawStringNode(LnxLogicTreeNode):
|
|||||||
at the anchor point.
|
at the anchor point.
|
||||||
|
|
||||||
@output Out: Activated after the string has been drawn.
|
@output Out: Activated after the string has been drawn.
|
||||||
@output Height: String Height.
|
|
||||||
@output Width: String Width.
|
@output Width: String Width.
|
||||||
|
@output Height: String Height.
|
||||||
|
|
||||||
@see [`kha.graphics2.Graphics.drawString()`](http://kha.tech/api/kha/graphics2/Graphics.html#drawString).
|
@see [`kha.graphics2.Graphics.drawString()`](http://kha.tech/api/kha/graphics2/Graphics.html#drawString).
|
||||||
"""
|
"""
|
||||||
bl_idname = 'LNDrawStringNode'
|
bl_idname = 'LNDrawStringNode'
|
||||||
bl_label = 'Draw String'
|
bl_label = 'Draw String'
|
||||||
lnx_section = 'draw'
|
lnx_section = 'draw'
|
||||||
lnx_version = 2
|
lnx_version = 3
|
||||||
|
|
||||||
def lnx_init(self, context):
|
def lnx_init(self, context):
|
||||||
self.add_input('LnxNodeSocketAction', 'Draw')
|
self.add_input('LnxNodeSocketAction', 'Draw')
|
||||||
@ -38,11 +38,11 @@ class DrawStringNode(LnxLogicTreeNode):
|
|||||||
self.add_input('LnxFloatSocket', 'Angle')
|
self.add_input('LnxFloatSocket', 'Angle')
|
||||||
|
|
||||||
self.add_output('LnxNodeSocketAction', 'Out')
|
self.add_output('LnxNodeSocketAction', 'Out')
|
||||||
self.add_output('LnxFloatSocket', 'Height')
|
|
||||||
self.add_output('LnxFloatSocket', 'Width')
|
self.add_output('LnxFloatSocket', 'Width')
|
||||||
|
self.add_output('LnxFloatSocket', 'Height')
|
||||||
|
|
||||||
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
|
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
|
||||||
if self.lnx_version not in (0, 1):
|
if self.lnx_version not in (0, 1, 2):
|
||||||
raise LookupError()
|
raise LookupError()
|
||||||
|
|
||||||
return NodeReplacement.Identity(self)
|
return NodeReplacement.Identity(self)
|
||||||
|
Reference in New Issue
Block a user