Пример #1
0
        private void alphaTestCB_CheckedChanged(object sender, EventArgs e)
        {
            if (alphaTestCB.Checked)
            {
                currentMaterialList[currentMatIndex].AlphaTest = (int)NudEnums.AlphaTest.Enabled;
            }
            else
            {
                currentMaterialList[currentMatIndex].AlphaTest = (int)NudEnums.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);
        }
Пример #2
0
 private void flowLayout_Resize(object sender, EventArgs e)
 {
     GuiTools.ScaleControlsHorizontallyToLayoutWidth((FlowLayoutPanel)sender);
 }