Example #1
0
 static void BrightnessCallback(Object s)
 {
     Menu.menuslider_s slider = (Menu.menuslider_s)s;
     if (vid_ref.string_renamed.EqualsIgnoreCase("soft") || vid_ref.string_renamed.EqualsIgnoreCase("softx"))
     {
         float gamma = (0.8F - (slider.curvalue / 10F - 0.5F)) + 0.5F;
         Cvar.SetValue("vid_gamma", gamma);
     }
 }
Example #2
0
 static void ScreenSizeCallback(Object s)
 {
     Menu.menuslider_s slider = (Menu.menuslider_s)s;
     Cvar.SetValue("viewsize", slider.curvalue * 10);
 }