Esempio n. 1
0
 /// <summary>
 /// An alternative [Popup] signature that avoids enums to compile with U#
 /// </summary>
 /// <param name="sourceType">Can be "method", "animator", "behaviour" or "shader"</param>
 /// <param name="methodName"></param>
 /// <param name="hideLabel"></param>
 /// <param name="shaderPropType">Can be "float", "color" or "vector"</param>
 public PopupAttribute(string sourceType, string methodName, string shaderPropType, bool hideLabel)
 {
     this.sourceType     = sourcesMap.ContainsKey(sourceType) ? sourcesMap[sourceType] : PopupSource.Method;
     this.shaderPropType = shaderPropsMap.ContainsKey(shaderPropType) ? shaderPropsMap[shaderPropType] : ShaderPropType.Float;
     this.hideLabel      = hideLabel;
     this.methodName     = methodName;
 }
Esempio n. 2
0
 public PopupAttribute(PopupSource sourceType, string methodName, ShaderPropType shaderPropType, bool hideLabel)
 {
     this.sourceType     = sourceType;
     this.methodName     = methodName;
     this.shaderPropType = shaderPropType;
     this.hideLabel      = hideLabel;
 }
Esempio n. 3
0
File: Popup.cs Progetto: Egaros/lib
        public Popup()
        {
            PopupSource = new PopupSource(this);

            Panel = new PopupPanel(this)
            {
                Visibility = Visibility.Collapsed
            };

            PopupCloseController = new PopupCloseController(this);

            PlatformCtor();

            IsTabStop = false;
        }
Esempio n. 4
0
 /// <summary>
 /// An alternative [Popup] signature that avoids enums to compile with U#
 /// </summary>
 /// <param name="sourceType">Can be "method", "animator", "behaviour" or "shader"</param>
 /// <param name="methodName"></param>
 public PopupAttribute(string sourceType, string methodName)
 {
     this.sourceType = sourcesMap.ContainsKey(sourceType) ? sourcesMap[sourceType] : PopupSource.Method;
     this.methodName = methodName;
 }
Esempio n. 5
0
 public PopupAttribute(PopupSource sourceType, string methodName, ShaderPropType shaderPropType)
 {
     this.sourceType     = sourceType;
     this.methodName     = methodName;
     this.shaderPropType = shaderPropType;
 }
Esempio n. 6
0
 public PopupAttribute(PopupSource sourceType, string methodName)
 {
     this.sourceType = sourceType;
     this.methodName = methodName;
 }
Esempio n. 7
0
 /// <summary>
 /// Draws a popup with options provided by the specified field or method
 /// </summary>
 /// <param name="methodName"></param>
 public PopupAttribute(string methodName)
 {
     sourceType      = PopupSource.Method;
     this.methodName = methodName;
 }