17 lines
		
	
	
		
			504 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			504 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| 
 | |
| class CanvasSetTextNode(LnxLogicTreeNode):
 | |
|     """Sets the text of the given UI element."""
 | |
|     bl_idname = 'LNCanvasSetTextNode'
 | |
|     bl_label = 'Set Canvas Text'
 | |
|     lnx_section = 'elements_general'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
|         self.add_input('LnxStringSocket', 'Element')
 | |
|         self.add_input('LnxStringSocket', 'Text')
 | |
| 
 | |
|         self.add_output('LnxNodeSocketAction', 'Out')
 |