Пример #1
0
            public void SetRulePopupIndex(int idx)
            {
                var oldParamFormat = this.parameterFormat;

                switch (idx)
                {
                case 0:
                    this.parameterFormat = EParameterFormat.Pixel;
                    break;

                case 1:
                    this.parameterFormat = EParameterFormat.Division;
                    break;
                }
                if (oldParamFormat != parameterFormat)
                {
                    this.parameter = 0;
                }
            }
Пример #2
0
 public TextureImportMaxSizeChangeRule(string path, EParameterFormat format, int param)
 {
     this.pathMatch       = path;
     this.parameterFormat = format;
     this.parameter       = param;
 }