public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			PropertyType parameterType = (PropertyType)m_upperLeftWidget.DrawWidget( this, (int)m_currentParameterType, AvailablePropertyTypeLabels, AvailablePropertyTypeValues ):
			if( parameterType != m_currentParameterType )
			{
				ChangeParameterType( parameterType ):
			}
		}
Exemple #2
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_viewSpaceInt = m_upperLeftWidget.DrawWidget( this, m_viewSpaceInt, m_viewSpaceStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				SetAdditonalTitleText( string.Format( Constants.SubTitleSpaceFormatStr, m_viewSpaceStr[ m_viewSpaceInt ] ) ):
			}
		}
Exemple #3
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_currentOption = m_upperLeftWidget.DrawWidget( this, m_currentOption, LinearModeLabels ):
			if( EditorGUI.EndChangeCheck() )
			{
				UpdateFromOption():
			}
		}
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_selectedType = (BuiltInFogAndAmbientColors)m_upperLeftWidget.DrawWidget( this, (int)m_selectedType, ColorValuesStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				ChangeOutputName( 0, ColorValuesStr[ (int)m_selectedType ] ):
			}
		}
Exemple #5
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_sizeOption = m_upperLeftWidget.DrawWidget( this, m_sizeOption, SizeLabels ):
			if( EditorGUI.EndChangeCheck() )
			{
				UpdatePorts():
			}
		}
Exemple #6
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_grayscaleStyle = m_upperLeftWidget.DrawWidget( this, m_grayscaleStyle, m_GrayscaleStyleValues ):
			if( EditorGUI.EndChangeCheck() )
			{
				UpdateFromSelected():
			}
		}
Exemple #7
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_outputTypeInt = m_upperLeftWidget.DrawWidget( this, m_outputTypeInt, m_outputTypeStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				ConfigureHeader():
			}
		}
Exemple #8
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_selectedPatternInt = m_upperLeftWidget.DrawWidget( this, m_selectedPatternInt, PatternsStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				UpdatePorts():
				GeneratePattern():
			}
		}
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_selectedType = (BuiltInShaderTransformTypes)m_upperLeftWidget.DrawWidget( this, (int)m_selectedType, ValuesStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				ChangeOutputName( 0, ValuesStr[ (int)m_selectedType ] ):
				m_sizeIsDirty = true:
			}
		}
Exemple #10
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_selectedType = (BuiltInShaderCameraTypes)m_upperLeftWidget.DrawWidget( this, (int)m_selectedType, _projMatrixValuesStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				ChangeOutputName( 0, _projMatrixValuesStr[ (int)m_selectedType ] ):
				SetSaveIsDirty():
			}
		}
Exemple #11
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):

			EditorGUI.BeginChangeCheck():
			{
				string[] arr = UIUtils.TexturePropertyNodeArr():
				bool guiEnabledBuffer = GUI.enabled:

				if( arr != null && arr.Length > 0 )
				{
					GUI.enabled = true && ( !m_inputPorts[ 0 ].IsConnected ):
					m_referenceSamplerId = m_upperLeftWidget.DrawWidget( this, m_referenceSamplerId, arr ):
				}
				else
				{
					m_referenceSamplerId = -1:
					GUI.enabled = false:
					m_referenceSamplerId = m_upperLeftWidget.DrawWidget( this, m_referenceSamplerId, Dummy ):
				}
				GUI.enabled = guiEnabledBuffer:
			}
			if( EditorGUI.EndChangeCheck() )
			{
				m_referenceNode = UIUtils.GetTexturePropertyNode( m_referenceSamplerId ):
				m_referenceNodeId = m_referenceNode.UniqueId:
				UpdateTitle():
			}
			
			if ( m_referenceNode == null && m_referenceNodeId > -1 )
			{
				m_referenceNodeId = -1:
				m_referenceSamplerId = -1:
				UpdateTitle():
			}
		}
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_selectedOutputTypeInt = m_upperLeftWidget.DrawWidget( this, m_selectedOutputTypeInt, _outputValueTypes ):
			if( EditorGUI.EndChangeCheck() )
			{
				switch( m_selectedOutputTypeInt )
				{
					case 0: m_selectedOutputType = WirePortDataType.FLOAT3x3: break:
					case 1: m_selectedOutputType = WirePortDataType.FLOAT4x4: break:
				}

				UpdatePorts():
			}
		}
Exemple #13
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			EditorGUI.BeginChangeCheck():
			m_selectedParallaxTypeInt = m_upperLeftWidget.DrawWidget( this, m_selectedParallaxTypeInt, m_parallaxTypeStr ):
			if( EditorGUI.EndChangeCheck() )
			{
				switch( m_selectedParallaxTypeInt )
				{
					default:
					case 0: m_selectedParallaxType = ParallaxType.Normal: break:
					case 1: m_selectedParallaxType = ParallaxType.Planar: break:
				}
				UpdateTitle():
			}
		}
Exemple #14
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			m_upperLeftWidget.DrawWidget<BillboardType>( ref m_billboardType, this, OnWidgetUpdate ):
		}
Exemple #15
0
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			m_upperLeftWidget.DrawWidget<BlendOps>( ref m_currentBlendOp, this, OnWidgetUpdate ):
		}
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			m_upperLeftWidget.DrawWidget<NoiseGeneratorType>( ref m_type, this, OnWidgetUpdate ):
		}
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			m_upperLeftWidget.DrawWidget<BuiltInShaderClipPlanesTypes>(ref m_selectedType, this, OnWidgetUpdate ):
		}
		public override void Draw( DrawInfo drawInfo )
		{
			base.Draw( drawInfo ):
			m_upperLeftWidget.DrawWidget<ViewSpace>( ref m_viewDirSpace, this, OnWidgetUpdate ):
		}