示例#1
0
 protected override void CreateSettingsWindow(ModOptionsWindowBuilder builder)
 {
     ModOptionsWindowBuilder.Page page = builder.AddPage("Settings");
     page.AddIntSlider(-100, 1, -10, "Gravity", SETTINGS_SAVE_ID_GRAVITY, null, null, delegate(int value)
     {
         PhysicsManager.Instance.Gravity = (float)value;
     });
 }
示例#2
0
        protected override void CreateSettingsWindow(ModOptionsWindowBuilder builder)
        {
            var page = builder.AddPage("Grapics");

            page.AddDropdown(new string[] { "Disabled", "2x Multi Sampling", "4x Multi Sampling", "8x Multi Sampling" }, 2, "AntiAliasing", ANTI_ALIASING_OPTION_ID, null, null, SetAntiAliasingEnabled);
            page.AddSlider(10, 1000, 500, "Shadow distance", SHADOW_DISTANCE_OPTION_ID, null, null, SetShadowDistance);
            page.AddDropdown <ShadowResolution>(ShadowResolution.High, "Shadow resolution", SHADOW_RESOLUTION_OPTION_ID, null, null, SetShadowResolution);
            page.AddIntSlider(5, 1000, 300, "Target FPS", TARGET_FPS_OPTION_ID, null, null, SetFPSTarget);
            page.AddCheckbox(true, "Soft Particles", SOFT_PARTICLES_OPTION_ID, null, null, SetSoftParticles);
            page.AddDropdown <AnisotropicFiltering>(AnisotropicFiltering.Enable, "AnisotropicFiltering", ANTI_ALIASING_OPTION_ID, null, null, SetAnisotropicFiltering);
        }