Esempio n. 1
0
 private void btnSelectAnimation_Click(object sender, EventArgs e)
 {
     if (lstAttack.SelectedIndex >= 0 && lstAttackAnimations.SelectedIndex >= 0)
     {
         ItemSelectionChoice = ItemSelectionChoices.Animation;
         ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimations));
     }
 }
Esempio n. 2
0
 private void btnSelectCombo_Click(object sender, EventArgs e)
 {
     if (lstComboList.SelectedIndex >= 0)
     {
         ItemSelectionChoice = ItemSelectionChoices.NextComboName;
         ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathTripleThunderCombos, "Select a combo to import", true));
     }
 }
 private void btnSelectAnimation_Click(object sender, EventArgs e)
 {
     if (lstAnimations.SelectedIndices.Count > 0)
     {
         ItemSelectionChoice = ItemSelectionChoices.Animations;
         ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathAnimations));
     }
 }
 private void btnSelectPortrait_Click(object sender, EventArgs e)
 {
     if (lstQuotes.SelectedIndex >= 0)
     {
         ItemSelectionChoice = ItemSelectionChoices.Portrait;
         ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathVisualNovelCharacters));
     }
 }
Esempio n. 5
0
 private void btnAddNewTileSetAsBackground_Click(object sender, EventArgs e)
 {//If there is a map loaded(and so ActiveMap.TileSize.X is not 0).
     if (BattleMapViewer.ActiveMap.TileSize.X != 0)
     {
         ItemSelectionChoice = ItemSelectionChoices.TileAsBackground;
         ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathMapTilesetImages));
     }
 }
        private void btnAddWeapon_Click(object sender, EventArgs e)
        {
            ItemSelectionChoice = ItemSelectionChoices.AddWeapon;
            IEnumerable <ItemContainer> Items = GetItemsByRoot(GUIRootPathTripleThunderWeapons);
            MenuFilter OutMenu = new MenuFilter();

            OutMenu.ListItem = new Dictionary <string, string>();

            foreach (ItemContainer ActiveItemContainer in Items)
            {
                foreach (KeyValuePair <string, string> ActiveItem in ActiveItemContainer.ListItem)
                {
                    string Name = FilePath.Substring(29);
                    Name = Name.Substring(0, Name.Length - 4);

                    if (ActiveItem.Key.StartsWith(Name))
                    {
                        if (ActiveItem.Key.StartsWith(Name + "/Weapons"))
                        {
                            string WeaponName = ActiveItem.Key.Substring(24);
                            OutMenu.ListItem.Add(WeaponName, WeaponName);
                        }
                        else if (ActiveItem.Key.StartsWith(Name + "/Grenades"))
                        {
                            string WeaponName = ActiveItem.Key.Substring(25);
                            OutMenu.ListItem.Add(WeaponName, WeaponName);
                        }
                    }
                }
            }

            ItemSelector ItemSelectorMenu = new ItemSelector(OutMenu, true);

            ItemSelectorMenu.TopMost = true;
            ItemSelectorMenu.ShowDialog();
            //Item selected, call the ItemsSelected method.
            if (ItemSelectorMenu.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                ListMenuItemsSelected(ItemSelectorMenu.GetResult());
            }
        }
Esempio n. 7
0
 private void btnAddSpell_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Spell;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathSpells));
 }
 private void btnSelectSound_Click(object sender, System.EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Sound;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathSFX));
 }
Esempio n. 9
0
 private void btnAddTile_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Tile;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathMapTilesets));
 }
Esempio n. 10
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Unit;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathUnitsNormal));
 }
 private void btnUseTextureProjectile_Click(object sender, System.EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.TextureProjectile;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimationsSprites));
 }
Esempio n. 12
0
 private void btnAddAttack_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Attack;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAttacks));
 }
 private void btnSetSpirit6_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Spirit6;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathCharacterSpirits));
 }
Esempio n. 14
0
 private void tsmBackground_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Background;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathAnimationsBackgroundsAll));
 }
 private void btnSelectRelationshipBonus_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Bonus;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathCharacterRelationships));
 }
 private void btnAddWeapon_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.AddWeapon;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathTripleThunderWeapons));
 }
Esempio n. 17
0
 private void btnPreviewMap_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Map;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathDeathmatchMaps, "Select a Map", false));
 }
 private void btnSelectSkillChain_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.SkillChain;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathTripleThunderSkillChains));
 }
 private void btnReloadAnimation_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.ReloadCombo;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathTripleThunderCombos));
 }
Esempio n. 20
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.VisualNovel;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathVisualNovel));
 }
Esempio n. 21
0
 private void btnLoadWeapon_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Weapon;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathAttacks));
 }
 private void btnAddAbility_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Abilities;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathUnitAbilities));
 }
Esempio n. 23
0
 private void btnAddImage_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Images;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathTripleThunderRessources));
 }
Esempio n. 24
0
 private void btnChangeUnitSprite_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.UnitSprite;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathUnitsNormalUnitSprites));
 }
 private void btnAddVersusQuote_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Pilot;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathCharacters));
 }
Esempio n. 26
0
 private void btnAddBackground_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.NewLink;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimationsBackgroundSprites, "Select a Background to use", false));
 }
Esempio n. 27
0
 private void btnSetForegrounds_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.Foregrounds;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimationsBackgroundsAll, "Select which foregrounds to use.", true));
 }
Esempio n. 28
0
 private void btnSelectOrginalUnit_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.OriginalUnit;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathUnits));
 }
Esempio n. 29
0
 private void btnSetChainStartSprite_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.ChainStart;
     ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimationsSprites, "Select an image to use", false));
 }
 private void btnAceBonus_Click(object sender, EventArgs e)
 {
     ItemSelectionChoice = ItemSelectionChoices.AceBonus;
     ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathCharacterSkills));
 }