Esempio n. 1
0
 // Constructor
 public Shops(ItemsEditor itemsEditor)
 {
     this.itemsEditor = itemsEditor;
     InitializeComponent();
     for (int i = 0; i < 15; i++)
     {
         this.shopItems[i]                       = new ComboBox();
         this.shopItems[i].BackColor             = System.Drawing.SystemColors.ControlDarkDark;
         this.shopItems[i].DrawMode              = System.Windows.Forms.DrawMode.OwnerDrawFixed;
         this.shopItems[i].DropDownHeight        = 317;
         this.shopItems[i].DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
         this.shopItems[i].IntegralHeight        = false;
         this.shopItems[i].ItemHeight            = 15;
         this.shopItems[i].Location              = new System.Drawing.Point(6, i * 21 + 20);
         this.shopItems[i].Name                  = "shopItem" + i;
         this.shopItems[i].Size                  = new System.Drawing.Size(173, 21);
         this.shopItems[i].TabIndex              = i;
         this.shopItems[i].Tag                   = i;
         this.shopItems[i].DrawItem             += new System.Windows.Forms.DrawItemEventHandler(this.itemName_DrawItem);
         this.shopItems[i].SelectedIndexChanged += new System.EventHandler(this.shopItem_SelectedIndexChanged);
         this.shopItems[i].Click                += new System.EventHandler(this.shopItem_Click);
         this.groupBoxItems.Controls.Add(this.shopItems[i]);
     }
     InitializeStrings();
     index = 0;
     RefreshShops();
     labelWindow = new EditLabel(shopName, null, "Shops", true);
     //
     this.History = new History(this, shopName, null);
 }
Esempio n. 2
0
 public void CreateItemsWindow()
 {
     if (items == null || !items.Visible)
     {
         Cursor.Current = Cursors.WaitCursor;
         items          = new ItemsEditor();
         if (dockEditors)
         {
             Do.AddControl(editor.Panel2, items);
         }
         else
         {
             items.Show();
         }
         Cursor.Current = Cursors.Arrow;
     }
     items.KeyDown += new KeyEventHandler(editor_KeyDown);
     items.BringToFront();
 }
Esempio n. 3
0
 public void ScreencapHotkeys()
 {
     if (allies == null || !allies.Visible)
     {
         allies = new AlliesEditor();
     }
     if (animations == null || !animations.Visible)
     {
         animations = new AnimationScripts();
     }
     if (attacks == null || !attacks.Visible)
     {
         attacks = new AttacksEditor();
     }
     if (audio == null || !audio.Visible)
     {
         audio = new Audio();
     }
     if (battlefields == null || !battlefields.Visible)
     {
         battlefields = new Battlefields();
     }
     if (dialogues == null || !dialogues.Visible)
     {
         dialogues = new Dialogues();
     }
     if (effects == null || !effects.Visible)
     {
         effects = new Effects();
     }
     if (eventScripts == null || !eventScripts.Visible)
     {
         eventScripts = new EventScripts();
     }
     if (formations == null || !formations.Visible)
     {
         formations = new FormationsEditor();
     }
     if (items == null || !items.Visible)
     {
         items = new ItemsEditor();
     }
     if (levels == null || !levels.Visible)
     {
         levels = new Levels();
     }
     if (monsters == null || !monsters.Visible)
     {
         monsters = new Monsters();
     }
     if (intro == null || !intro.Visible)
     {
         intro = new Intro();
     }
     if (menus == null || !menus.Visible)
     {
         menus = new MenusEditor();
     }
     if (miniGames == null || !miniGames.Visible)
     {
         miniGames = new MiniGames();
     }
     if (sprites == null || !sprites.Visible)
     {
         sprites = new Sprites();
     }
     if (worldMaps == null || !worldMaps.Visible)
     {
         worldMaps = new WorldMaps();
     }
 }