forked from LeenkxTeam/LNXSDK
19 lines
592 B
Python
19 lines
592 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class GetTilesheetFlipNode(LnxLogicTreeNode):
|
|
"""Returns the flip state of the tilesheet.
|
|
|
|
@output Flip X: Whether the sprite is flipped horizontally.
|
|
@output Flip Y: Whether the sprite is flipped vertically.
|
|
"""
|
|
bl_idname = 'LNGetTilesheetFlipNode'
|
|
bl_label = 'Get Tilesheet Flip'
|
|
lnx_version = 1
|
|
lnx_section = 'tilesheet'
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketObject', 'Object')
|
|
|
|
self.add_output('LnxBoolSocket', 'Flip X')
|
|
self.add_output('LnxBoolSocket', 'Flip Y')
|