28 lines
		
	
	
		
			938 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			28 lines
		
	
	
		
			938 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | 
 | ||
|  | @deprecated('Virtual Button') | ||
|  | class OnVirtualButtonNode(LnxLogicTreeNode): | ||
|  |     """Deprecated. Is recommended to use 'Virtual Button' node instead.""" | ||
|  |     bl_idname = 'LNOnVirtualButtonNode' | ||
|  |     bl_label = 'On Virtual Button' | ||
|  |     bl_description = "Please use the \"Virtual Button\" node instead" | ||
|  |     lnx_category = 'Input' | ||
|  |     lnx_section = 'virtual' | ||
|  |     lnx_version = 2 | ||
|  | 
 | ||
|  |     property0: HaxeEnumProperty( | ||
|  |         'property0', | ||
|  |         items = [('Down', 'Down', 'Down'), | ||
|  |                  ('Started', 'Started', 'Started'), | ||
|  |                  ('Released', 'Released', 'Released')], | ||
|  |         name='', default='Started') | ||
|  |     property1: HaxeStringProperty('property1', name='', default='button') | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_output('LnxNodeSocketAction', 'Out') | ||
|  | 
 | ||
|  |     def draw_buttons(self, context, layout): | ||
|  |         layout.prop(self, 'property0') | ||
|  |         layout.prop(self, 'property1') |