private void OnPushedChangeButton() { MonsterUserData selectMonster = this.deckData.DeckList.GetSelectMonster(); CMD_ChangeMonster.SelectMonsterData = (selectMonster as MonsterData); CMD_ChangeMonster cmd_ChangeMonster = GUIMain.ShowCommonDialog(null, "CMD_ChangeMonster", null) as CMD_ChangeMonster; cmd_ChangeMonster.SetChangedAction(new Action <MonsterUserData>(this.deckData.DeckList.UpdateList)); cmd_ChangeMonster.SetIconColosseumDeck(this.deckData.DeckList.GetSelectMonster(), this.deckData.DeckList.GetDeckMonsterList(), this.deckData.SortieLimitList.GetSortieLimitList()); }
private void OnPushedItem() { bool flag = false; if (this.parentList.GetSelectItem() == this.index || this.parentList.GetMonster(this.index) == null) { flag = true; } if (this.parentList.GetSelectItem() != this.index) { this.parentList.SetSelectItem(this.index); this.parentList.UpdateSelectedMonster(); } if (flag) { CMD_ChangeMonster.SelectMonsterData = (this.parentList.GetSelectMonster() as MonsterData); CMD_ChangeMonster cmd_ChangeMonster = GUIMain.ShowCommonDialog(null, "CMD_ChangeMonster", null) as CMD_ChangeMonster; cmd_ChangeMonster.SetChangedAction(new Action <MonsterUserData>(this.parentList.UpdateList)); cmd_ChangeMonster.SetIconColosseumDeck(this.parentList.GetSelectMonster(), this.parentList.GetDeckMonsterList(), this.deckData.SortieLimitList.GetSortieLimitList()); } }