Пример #1
0
        private void InitGUI()
        {
            enabled = new ToggleRef("Enabled");

            gravity = new SliderTextRef("Gravity", ConfigGlobal.minGravity.Value, ConfigGlobal.maxGravity.Value, 200, 75);

            irc01        = new ToggleRef("isRotationCalc");
            damping01    = new SliderTextRef("Damping", ConfigGlobal.minDamping.Value, ConfigGlobal.maxDamping.Value, 200, 75);
            elasticity01 = new SliderTextRef("Elasticity", ConfigGlobal.minElasticity.Value, ConfigGlobal.maxElasticity.Value, 200, 75);
            stiffness01  = new SliderTextRef("Stiffness", ConfigGlobal.minStiffness.Value, ConfigGlobal.maxStiffness.Value, 200, 75);
            inert01      = new SliderTextRef("Inert", ConfigGlobal.minInert.Value, ConfigGlobal.maxInert.Value, 200, 75);

            irc02        = new ToggleRef("isRotationCalc");
            damping02    = new SliderTextRef("Damping", ConfigGlobal.minDamping.Value, ConfigGlobal.maxDamping.Value, 200, 75);
            elasticity02 = new SliderTextRef("Elasticity", ConfigGlobal.minElasticity.Value, ConfigGlobal.maxElasticity.Value, 200, 75);
            stiffness02  = new SliderTextRef("Stiffness", ConfigGlobal.minStiffness.Value, ConfigGlobal.maxStiffness.Value, 200, 75);
            inert02      = new SliderTextRef("Inert", ConfigGlobal.minInert.Value, ConfigGlobal.maxInert.Value, 200, 75);
        }