forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			695 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			695 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class RpMSAANode(LnxLogicTreeNode):
 | |
|     """Sets the MSAA quality."""
 | |
|     bl_idname = 'LNRpMSAANode'
 | |
|     bl_label = 'Set MSAA Quality'
 | |
|     lnx_version = 1
 | |
|     property0: HaxeEnumProperty(
 | |
|         'property0',
 | |
|         items = [('1', '1', '1'),
 | |
|                  ('2', '2', '2'),
 | |
|                  ('4', '4', '4'),
 | |
|                  ('8', '8', '8'),
 | |
|                  ('16', '16', '16')
 | |
|                  ],
 | |
|         name='', default='1')
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
| 
 | |
|         self.add_output('LnxNodeSocketAction', 'Out')
 | |
| 
 | |
|     def draw_buttons(self, context, layout):
 | |
|         layout.prop(self, 'property0')
 |