public void CheckScrollSpeed(float c) { int ScrollSpeedi = (int)c; MyConfig.ConfigHolder.Config.ScrollSpeed = ScrollSpeedi; MyConfig.SaveConfig(); }
public void CheckChirpSize(float c) { int ChirpSizei = (int)c; MyConfig.ConfigHolder.Config.TextSize = ChirpSizei; MyConfig.SaveConfig(); }
public void CheckTransparency(float c) { MyConfig.ConfigHolder.Config.BackgroundAlpha = c; MyConfig.SaveConfig(); if (ChirpyBanner.theBannerPanel != null) { ChirpyBanner.theBannerPanel.opacity = MyConfig.ConfigHolder.Config.BackgroundAlpha; } }
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); } } }
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(); }
public void CheckColorChirper(bool c) { MyConfig.ConfigHolder.Config.ColorChirps = c; MyConfig.SaveConfig(); }