Ejemplo n.º 1
0
        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)
 {
 }
Ejemplo n.º 3
0
 public PresetPicker(IUserInterfaceManager uiManager, DaggerfallBaseWindow previousWindow, ModSettingsData settings)
     : base(uiManager, previousWindow)
 {
     this.settings = settings;
 }
Ejemplo n.º 4
0
 public ModernMenuTradeWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null, WindowModes windowMode = WindowModes.Sell, IGuild guild = null)
     : base(uiManager, previous, windowMode, guild)
 {
 }
Ejemplo n.º 5
0
 public PresetPicker(IUserInterfaceManager uiManager, DaggerfallBaseWindow previousWindow, string targetVersion)
     : base(uiManager, previousWindow)
 {
     this.targetVersion = targetVersion;
 }
Ejemplo n.º 6
0
 public ModernMenuWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null)
     : base(uiManager, previous)
 {
 }
Ejemplo n.º 7
0
 public ModernMenuTradeWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null)
     : this(uiManager, previous, WindowModes.Sell, null)
 {
 }