public static Button AddColorPicker(Vector2 position, Color32 color, IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null, Panel panel = null) { Button preview = new Button(); preview.Position = position; preview.AutoSize = AutoSizeModes.None; preview.Size = new Vector2(40, 6); preview.Outline.Enabled = true; preview.BackgroundColor = color; preview.OnMouseClick += (BaseScreenComponent sender, Vector2 pos) => uiManager.PushWindow(new ColorPicker(uiManager, previous, (Button)sender)); if (panel != null) { panel.Components.Add(preview); } return(preview); }
public DaggerfallBankingWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null) : base(uiManager, previous) { }
public PresetPicker(IUserInterfaceManager uiManager, DaggerfallBaseWindow previousWindow, ModSettingsData settings) : base(uiManager, previousWindow) { this.settings = settings; }
public ModernMenuTradeWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null, WindowModes windowMode = WindowModes.Sell, IGuild guild = null) : base(uiManager, previous, windowMode, guild) { }
public PresetPicker(IUserInterfaceManager uiManager, DaggerfallBaseWindow previousWindow, string targetVersion) : base(uiManager, previousWindow) { this.targetVersion = targetVersion; }
public ModernMenuWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null) : base(uiManager, previous) { }
public ModernMenuTradeWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null) : this(uiManager, previous, WindowModes.Sell, null) { }