13 lines
470 B
Python
13 lines
470 B
Python
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
||
|
class OnApplicationStateNode(LnxLogicTreeNode):
|
||
|
"""Listens to different application state changes."""
|
||
|
bl_idname = 'LNOnApplicationStateNode'
|
||
|
bl_label = 'On Application State'
|
||
|
lnx_version = 1
|
||
|
|
||
|
def lnx_init(self, context):
|
||
|
self.add_output('LnxNodeSocketAction', 'On Foreground')
|
||
|
self.add_output('LnxNodeSocketAction', 'On Background')
|
||
|
self.add_output('LnxNodeSocketAction', 'On Shutdown')
|