Пример #1
0
        private void buildSpecLightCMapTntFlgSec()
        {
            int mWidth = 1002, mHeight = 390;

            System.Drawing.Size gSize = new System.Drawing.Size(mWidth, mHeight);

            aeCommon.CollapsablePanel cp = new aeCommon.CollapsablePanel("Extra Setting");

            aeCommon.MatSpecLitCubeMapTintFlags mslctf = new COH_CostumeUpdater.assetEditor.aeCommon.MatSpecLitCubeMapTintFlags(openFileDialog1);

            cp.Add(mslctf);

            cp.Size = gSize;

            cp.fixHeight();

            this.matTrickPropertiesPanel.Controls.Add(cp);

            if (bumpMap2Indx > 0)
            {
                this.mats.Insert(bumpMap2Indx, mslctf);
            }
            else
            {
                this.mats.Add(mslctf);
            }
        }
Пример #2
0
        private void buildMatSec(string matSecName, string [] matFieldsList, bool isFallBackSec)
        {
            int mWidth  = 970,
                mHeight = 80;

            FB_GlobalOptionsPnl fb_gopt = null;

            System.Drawing.Size       gSize = new System.Drawing.Size(mWidth, mHeight);
            aeCommon.CollapsablePanel cp    = new aeCommon.CollapsablePanel(matSecName);

            populateMatPanel(matFieldsList, cp, mHeight, gSize, isFallBackSec);

            if (isFallBackSec)
            {
                CheckBox useFallbackChBx = new CheckBox();
                useFallbackChBx.AutoSize = true;
                useFallbackChBx.Location = new System.Drawing.Point(10, 0);
                useFallbackChBx.Name     = "useFallbackChBx";
                useFallbackChBx.Size     = new System.Drawing.Size(88, 17);
                useFallbackChBx.TabIndex = 0;
                useFallbackChBx.Text     = "Use Fallback";
                useFallbackChBx.UseVisualStyleBackColor = true;
                useFallbackChBx.Checked         = true;
                useFallbackChBx.CheckedChanged -= new EventHandler(useFallbackChBx_CheckedChanged);
                useFallbackChBx.CheckedChanged += new EventHandler(useFallbackChBx_CheckedChanged);
                cp.Add(useFallbackChBx);
                this.useFallback = true;

                fb_gopt = new FB_GlobalOptionsPnl();

                cp.Add(fb_gopt);

                cp.fixHeight();

                fb_gopt.Location = new Point(10, cp.Height - 150);
            }

            //populateMatPanel(matFieldsList, cp, mHeight, gSize, isFallBackSec);

            if (isFallBackSec)
            {
                this.mats.Add(fb_gopt);
            }
            this.matTrickPropertiesPanel.Controls.Add(cp);
        }
Пример #3
0
        private void populateMatPanel(string[] fieldsList, aeCommon.CollapsablePanel cp, int matBlckHeight, Size gSize, bool isFallbackSec)
        {
            aeCommon.MatBlock matBlck = null;
            int i = 0;

            foreach (string mat in fieldsList)
            {
                matBlck = buildMatBlock(ref i, matBlckHeight, mat, gSize, isFallbackSec);
                cp.Add(matBlck);
                mats.Add(matBlck);

                if (mat.Equals("BumpMap2"))
                {
                    bumpMap2Indx = this.mats.Count;
                }
            }
            cp.fixHeight();
        }