コード例 #1
0
        public void CheckScrollSpeed(float c)
        {
            int ScrollSpeedi = (int)c;

            MyConfig.ConfigHolder.Config.ScrollSpeed = ScrollSpeedi;
            MyConfig.SaveConfig();
        }
コード例 #2
0
        public void CheckChirpSize(float c)
        {
            int ChirpSizei = (int)c;

            MyConfig.ConfigHolder.Config.TextSize = ChirpSizei;
            MyConfig.SaveConfig();
        }
コード例 #3
0
 public void CheckTransparency(float c)
 {
     MyConfig.ConfigHolder.Config.BackgroundAlpha = c;
     MyConfig.SaveConfig();
     if (ChirpyBanner.theBannerPanel != null)
     {
         ChirpyBanner.theBannerPanel.opacity = MyConfig.ConfigHolder.Config.BackgroundAlpha;
     }
 }
コード例 #4
0
 public void CheckHideChirper(bool c)
 {
     MyConfig.ConfigHolder.Config.DestroyBuiltinChirper = c;
     MyConfig.SaveConfig();
     if (ChirpyBanner.theBannerPanel != null)
     {
         if (c)
         {
             ChirpyBanner.BuiltinChirper.ShowBuiltinChirper(false);
         }
         else
         {
             ChirpyBanner.BuiltinChirper.ShowBuiltinChirper(true);
         }
     }
 }
コード例 #5
0
        public void CheckChirpMsgColor(string c)
        {
            string fullc;

            // Check if we forgot the #
            if (!c.StartsWith("#"))
            {
                fullc = "#" + c;
            }
            else
            {
                fullc = c;
            }
            // Check length, if it doesn't validate, set it to default
            if (fullc.Length != 9)               // ie: #001122FF
            {
                MyConfig.ConfigHolder.Config.MessageColor = "#FFFFFFFF";
            }
            else
            {
                MyConfig.ConfigHolder.Config.MessageColor = fullc;
            }
            MyConfig.SaveConfig();
        }
コード例 #6
0
 public void CheckColorChirper(bool c)
 {
     MyConfig.ConfigHolder.Config.ColorChirps = c;
     MyConfig.SaveConfig();
 }