24 lines
		
	
	
		
			687 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			687 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class RpSuperSampleNode(LnxLogicTreeNode):
 | 
						|
    """Sets the supersampling quality."""
 | 
						|
    bl_idname = 'LNRpSuperSampleNode'
 | 
						|
    bl_label = 'Set SSAA Quality'
 | 
						|
    lnx_version = 1
 | 
						|
    property0: HaxeEnumProperty(
 | 
						|
        'property0',
 | 
						|
        items = [('1', '1', '1'),
 | 
						|
                 ('1.5', '1.5', '1.5'),
 | 
						|
                 ('2', '2', '2'),
 | 
						|
                 ('4', '4', '4')
 | 
						|
                 ],
 | 
						|
        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')
 |