Esempio n. 1
0
        private void alphaTestCB_CheckedChanged(object sender, EventArgs e)
        {
            if (alphaTestCB.Checked)
            {
                currentMaterialList[currentMatIndex].alphaTest = (int)NUD.Material.AlphaTest.Enabled;
            }
            else
            {
                currentMaterialList[currentMatIndex].alphaTest = (int)NUD.Material.AlphaTest.Disabled;
            }

            // Only enable extra settings when alpha testing is enabled.
            alphaFuncRefPanel.Visible = alphaTestCB.Checked;

            // Force all flow layouts to rescale children.
            GuiTools.ScaleControlsHorizontallyToLayoutWidth(generalFlowLayout);
        }
Esempio n. 2
0
 private void flowLayout_Resize(object sender, EventArgs e)
 {
     GuiTools.ScaleControlsHorizontallyToLayoutWidth((FlowLayoutPanel)sender);
 }