private void btnSelectAnimation_Click(object sender, EventArgs e) { if (lstAttack.SelectedIndex >= 0 && lstAttackAnimations.SelectedIndex >= 0) { ItemSelectionChoice = ItemSelectionChoices.Animation; ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimations)); } }
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)); } }
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()); } }
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)); }
private void btnAddTile_Click(object sender, EventArgs e) { ItemSelectionChoice = ItemSelectionChoices.Tile; ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathMapTilesets)); }
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)); }
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)); }
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)); }
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)); }
private void btnAdd_Click(object sender, EventArgs e) { ItemSelectionChoice = ItemSelectionChoices.VisualNovel; ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathVisualNovel)); }
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)); }
private void btnAddImage_Click(object sender, EventArgs e) { ItemSelectionChoice = ItemSelectionChoices.Images; ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathTripleThunderRessources)); }
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)); }
private void btnAddBackground_Click(object sender, EventArgs e) { ItemSelectionChoice = ItemSelectionChoices.NewLink; ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimationsBackgroundSprites, "Select a Background to use", false)); }
private void btnSetForegrounds_Click(object sender, EventArgs e) { ItemSelectionChoice = ItemSelectionChoices.Foregrounds; ListMenuItemsSelected(BaseEditor.ShowContextMenuWithItem(BaseEditor.GUIRootPathAnimationsBackgroundsAll, "Select which foregrounds to use.", true)); }
private void btnSelectOrginalUnit_Click(object sender, EventArgs e) { ItemSelectionChoice = ItemSelectionChoices.OriginalUnit; ListMenuItemsSelected(ShowContextMenuWithItem(GUIRootPathUnits)); }
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)); }