private void load(StreamGameConfigManager config) { Add(new SettingsCheckbox { LabelText = "Show FPS Display", Bindable = config.GetBindable <bool>(StreamGameSettings.ShowFpsDisplay) }); }
private void load(StreamGameConfigManager config) { Children = new Drawable[] { new SettingsTextBox { LabelText = "Default Image", Bindable = config.GetBindable <string>(StreamGameSettings.DefaultImage) }, new SettingsTextBox { LabelText = "Stream Directory", Bindable = config.GetBindable <string>(StreamGameSettings.StreamDirectory) }, }; }
private void load(StreamGameConfigManager config) { parallaxEnabled = config.GetBindable <bool>(StreamGameSettings.MenuParallax); parallaxEnabled.ValueChanged += delegate { if (!parallaxEnabled.Value) { content.MoveTo(Vector2.Zero, firstUpdate ? 0 : 1000, Easing.OutQuint); content.Scale = new Vector2(1 + System.Math.Abs(ParallaxAmount)); } }; }
private void load(StreamGameConfigManager config) { Children = new Drawable[] { new SettingsSlider <double> { LabelText = "Slider at 10.0", Bindable = config.GetBindable <double>(StreamGameSettings.Slider1), KeyboardStep = 0.1f }, new SettingsSlider <double> { LabelText = "Slider at 1.0", Bindable = config.GetBindable <double>(StreamGameSettings.Slider2), KeyboardStep = 0.01f }, new SettingsSlider <double> { LabelText = "Slider at 0.5", Bindable = config.GetBindable <double>(StreamGameSettings.Slider3), KeyboardStep = 0.01f }, }; }
private void load(StreamGameConfigManager config) { AddRange(new Drawable[] { new SettingsCheckbox { LabelText = "Change background on Set", Bindable = config.GetBindable <bool>(StreamGameSettings.ChangeBackground) }, new SettingsCheckbox { LabelText = "Parallax", Bindable = config.GetBindable <bool>(StreamGameSettings.MenuParallax) }, }); }
public override void SetHost(GameHost host) { base.SetHost(host); if (LocalConfig == null) { LocalConfig = new StreamGameConfigManager(host.Storage); } Logger.Log(LocalConfig != null ? "LocalConfig Loaded Sucessfully!" : "LocalConfig Loaded Unsucessfully.", level: LogLevel.Debug); var desktopWindow = host.Window as DesktopGameWindow; if (desktopWindow != null) { desktopWindow.Title = "PA Streaming Tool"; } }