public override void RecreateControls(bool constructor)
        {
            base.RecreateControls(constructor);
            BackgroundColor = new Vector4(1f, 1f, 1f, 0.5f);

            m_instance = this;

            m_currentPosition = -m_size.Value / 2.0f + new Vector2(0.02f, 0.13f);
            //AddCheckBox("Enable frozen seas ", null, MemberHelper.GetMember(() => MyFakes.ENABLE_PLANET_FROZEN_SEA));
            //AddSlider("Sea level : ", 0f, 200f, null, MemberHelper.GetMember(() => MyCsgHeightmapHelpers.FROZEN_OCEAN_LEVEL));
            AddCheckBox("Debug draw areas: ", null, MemberHelper.GetMember(() => MyDebugDrawSettings.DEBUG_DRAW_FLORA_BOXES));

            AddCheckBox("Massive", this, MemberHelper.GetMember(() => m_massive));


            m_lodRanges = new float[MyRenderConstants.RenderQualityProfile.LodClipmapRanges[(int)ScaleGroup].Length];

            for (int i = 0; i < m_lodRanges.Length; i++)
            {
                m_lodRanges[i] = MyClipmap.LodRangeGroups[(int)ScaleGroup][i];
            }

            for (int i = 0; i < m_lodRanges.Length; i++)
            {
                int lod = i;
                AddSlider("LOD " + i, m_lodRanges[i], 0, (i < 4 ? 1000 : i < 7 ? 10000 : 300000), (s) => { ChangeValue(s.Value, lod); });
            }

        }
示例#2
0
        public override void RecreateControls(bool constructor)
        {
            base.RecreateControls(constructor);
            BackgroundColor = new Vector4(1f, 1f, 1f, 0.5f);

            m_instance = this;

            m_currentPosition = -m_size.Value / 2.0f + new Vector2(0.02f, 0.13f);
            //AddCheckBox("Enable frozen seas ", null, MemberHelper.GetMember(() => MyFakes.ENABLE_PLANET_FROZEN_SEA));
            //AddSlider("Sea level : ", 0f, 200f, null, MemberHelper.GetMember(() => MyCsgHeightmapHelpers.FROZEN_OCEAN_LEVEL));
            AddCheckBox("Debug draw areas: ", null, MemberHelper.GetMember(() => MyDebugDrawSettings.DEBUG_DRAW_FLORA_BOXES));

            AddCheckBox("Massive", this, MemberHelper.GetMember(() => m_massive));


            m_lodRanges = new float[MyRenderConstants.RenderQualityProfile.LodClipmapRanges[(int)ScaleGroup].Length];

            for (int i = 0; i < m_lodRanges.Length; i++)
            {
                m_lodRanges[i] = MyClipmap.LodRangeGroups[(int)ScaleGroup][i];
            }

            for (int i = 0; i < m_lodRanges.Length; i++)
            {
                int lod = i;
                AddSlider("LOD " + i, m_lodRanges[i], 0, (i < 4 ? 1000 : i < 7 ? 10000 : 300000), (s) => { ChangeValue(s.Value, lod); });
            }
        }