private void RewardMapJumpTypeComboBox_OnDropDownClosed(object sender, EventArgs e) { DataRow rewardMapJumpTypeDataRow = AssetManager.MissionDatatable.Rows[SelectDataRow]; rewardMapJumpTypeDataRow.BeginEdit(); rewardMapJumpTypeDataRow["RewardMapJumpType"] = DataProcess.GetRewardMapJumpType(RewardMapJumpTypeComboBox.SelectedIndex); rewardMapJumpTypeDataRow.EndEdit(); }
private void AIInfoDeathPunishComboBox_OnDropDownClosed(object sender, EventArgs e) { DataRow aiInfoDeathPunishDataRow = AssetManager.MissionDatatable.Rows[SelectDataRow]; aiInfoDeathPunishDataRow.BeginEdit(); aiInfoDeathPunishDataRow["AIInfoDeathPunish"] = DataProcess.GetAIInfoDeathPunish(AIInfoDeathPunishComboBox.SelectedIndex); aiInfoDeathPunishDataRow.EndEdit(); }
private void BattleInfoBattleMapTypeComboBox_OnDropDownClosed(object sender, EventArgs e) { DataRow battleInfoBattleMapTypeDataRow = AssetManager.MissionDatatable.Rows[SelectDataRow]; battleInfoBattleMapTypeDataRow.BeginEdit(); battleInfoBattleMapTypeDataRow["BattleInfoBattleMapType"] = DataProcess.GetBattleInfoBattleMapType(BattleInfoBattleMapTypeComboBox.SelectedIndex); battleInfoBattleMapTypeDataRow.EndEdit(); }
private void ActiveInfoTeamStateComboBox_OnDropDownClosed(object sender, EventArgs e) { DataRow activeInfoTeamStateDataRow = AssetManager.MissionDatatable.Rows[SelectDataRow]; activeInfoTeamStateDataRow.BeginEdit(); activeInfoTeamStateDataRow["ActiveInfoTeamState"] = DataProcess.GetActiveInfoTeamState(ActiveInfoTeamStateComboBox.SelectedIndex); activeInfoTeamStateDataRow.EndEdit(); }
private void MissionTypeComboBox_OnDropDownClosed(object sender, EventArgs e) { DataRow missionTypeDataRow = AssetManager.MissionDatatable.Rows[SelectDataRow]; missionTypeDataRow.BeginEdit(); missionTypeDataRow["MissionType"] = DataProcess.GetMissionType(MissionTypeComboBox.SelectedIndex); missionTypeDataRow.EndEdit(); }
private void InitializeConfig() { //检查路径 if (!CheckSetting()) { return; } ExcelHelper excelHelper = new ExcelHelper(MissionFilePath); DataProcess dataProcess = new DataProcess(); MissionDatatable = excelHelper.ExcelToDataTable("Sheet1", dataProcess.TempletDataTable); if (MissionDatatable == null) { MessageBox.Show("请关闭excel进程,重新打开!"); } ItemAttrNode = XElement.Load(ConfigFolderPath + ItemAttrFileName); NpcConfigNode = XElement.Load(ConfigFolderPath + NpcConfigFileName); NpcShapeNode = XElement.Load(ConfigFolderPath + NpcShapeFileName); MapConfigNode = XElement.Load(ConfigFolderPath + MapConfigFileName); }
private void BindingValue() { BindingTextBoxValue(MinLevelTextBox, "[MinLevel]"); BindingTextBoxValue(MaxLevelTextBox, "[MaxLevel]"); BindingTextBoxValue(TransMinLevelTextBox, "[TransMinLevel]"); BindingTextBoxValue(TransMaxLevelTextBox, "[TransMaxLevel]"); BindingListBoxValue(RequestMissionListBox, "RequestMissionList"); BindingListBoxValue(RequestRoleIDListBox, "RequestRoleIDList"); BindingListBoxValue(PostMissionListBox, "PostMissionList"); BindingTextBoxValue(NoteInfoTextBox, "[NoteInfo]"); BindingTextBoxValue(ExpRewardTextBox, "[ExpReward]"); BindingTextBoxValue(MoneyRewardTextBox, "[MoneyReward]"); BindingTextBoxValue(PetExpRewardTextBox, "[PetExpReward]"); BindingTextBoxValue(ShengWangTextBox, "[ShengWang]"); BindingTextBoxValue(SMoneyTextBox, "[SMoney]"); RewardMapJumpTypeComboBox.SelectedIndex = DataProcess.GetRewardMapJumpTypeSelectIndex( Convert.ToInt32(AssetManager.MissionDatatable.Rows[SelectDataRow]["RewardMapJumpType"])); BindingTextBoxValue(RewardMapIDTextBox, "[RewardMapID]"); BindingTextBoxValue(RewardMapXPosTextBox, "[RewardMapXPos]"); BindingTextBoxValue(RewardMapYPosTextBox, "[RewardMapYPos]"); BindingTextBoxValue(ProcessBarTimeTextBox, "[ProcessBarTime]"); BindingTextBoxValue(ProcessBarTextTextBox, "[ProcessBarText]"); BindingTextBoxValue(ProcessBarColorTextBox, "[ProcessBarColor]"); BindingListBoxValue(DisPlayNPCIDListBox, "DisPlayNPCID"); SetAwardItemCell(); MissionTypeComboBox.SelectedIndex = DataProcess.GetMissionTypeSelectIndex( Convert.ToInt32(AssetManager.MissionDatatable.Rows[SelectDataRow]["MissionType"])); BindingTextBoxValue(ActiveInfoNpcIDTextBox, "[ActiveInfoNpcID]"); BindingTextBoxValue(ActiveInfoMapIDTextBox, "[ActiveInfoMapID]"); BindingTextBoxValue(ActiveInfoLeftPosTextBox, "[ActiveInfoLeftPos]"); BindingTextBoxValue(ActiveInfoTopPosTextBox, "[ActiveInfoTopPos]"); BindingTextBoxValue(ActiveInfoRightPosTextBox, "[ActiveInfoRightPos]"); BindingTextBoxValue(ActiveInfoBottomPosTextBox, "[ActiveInfoBottomPos]"); BindingTextBoxValue(ActiveInfoTargetIDTextBox, "[ActiveInfoTargetID]"); BindingTextBoxValue(ActiveInfoTargetNumTextBox, "[ActiveInfoTargetNum]"); BindingTextBoxValue(ActiveInfoMiniStepTextBox, "[ActiveInfoMiniStep]"); BindingTextBoxValue(ActiveInfoStepProbabilityTextBox, "[ActiveInfoStepProbability]"); BindingTextBoxValue(ActiveInfoMaxStepTextBox, "[ActiveInfoMaxStep]"); ActiveInfoTeamStateComboBox.SelectedIndex = DataProcess.GetActiveInfoTeamStateSelectIndex( Convert.ToInt32(AssetManager.MissionDatatable.Rows[SelectDataRow]["ActiveInfoTeamState"])); BindingTextBoxValue(ActiveInfoTimeLimitTextBox, "[ActiveInfoTimeLimit]"); BindingTextBoxValue(ActiveInfoIsRestartTimerTextBox, "[ActiveInfoIsRestartTimer]"); BindingTextBoxValue(ActiveInfoGiveBackMoneyTextBox, "[ActiveInfoGiveBackMoney]"); BindingTextBoxValue(ActiveInfoGiveBackPetIDTextBox, "[ActiveInfoGiveBackPetID]"); BindingTextBoxValue(ActiveInfoUseItemIDTextBox, "[ActiveInfoUseItemID]"); BindingTextBoxValue(ActiveInfoOtherTypeTextBox, "[ActiveInfoOtherType]"); BindingTextBoxValue(QuestionInfoCorrectAnswerTextBox, "[QuestionInfoCorrectAnswer]"); //QuestionInfoWrongAnswerList只绑定5个 BindingTextBoxValue(QuestionInfoWrongAnswerList0, "[QuestionInfoWrongAnswerList0]"); BindingTextBoxValue(QuestionInfoWrongAnswerList1, "[QuestionInfoWrongAnswerList1]"); BindingTextBoxValue(QuestionInfoWrongAnswerList2, "[QuestionInfoWrongAnswerList2]"); BindingTextBoxValue(QuestionInfoWrongAnswerList3, "[QuestionInfoWrongAnswerList3]"); BindingTextBoxValue(QuestionInfoWrongAnswerList4, "[QuestionInfoWrongAnswerList4]"); BindingTextBoxValue(QuestionInfoNpcIDTextBox, "[QuestionInfoNpcID]"); BindingTextBoxValue(QuestionInfoConversionTextBox, "[QuestionInfoConversion]"); BindingTextBoxValue(TaskInfoDescriptionListATextBox, "[TaskInfoDescriptionListA]"); BindingTextBoxValue(TaskInfoPurposeListATextBox, "[TaskInfoPurposeListA]"); BindingTextBoxValue(TaskInfoTraceListATextBox, "[TaskInfoTraceListA]"); BindingTextBoxValue(AIInfoAIIDTextBox, "[AIInfoAIID]"); //AIInfoBattleResult数据未绑定 AIInfoDeathPunishComboBox.SelectedIndex = DataProcess.GetAIInfoDeathPunishSelectIndex( Convert.ToInt32(AssetManager.MissionDatatable.Rows[SelectDataRow]["AIInfoDeathPunish"])); AIInfoTeamSteateComboBox.SelectedIndex = DataProcess.GetAIInfoTeamSteateSelectIndex( Convert.ToInt32(AssetManager.MissionDatatable.Rows[SelectDataRow]["AIInfoTeamSteate"])); BindingTextBoxValue(AIInfoBattleLevelTextBox, "[AIInfoBattleLevel]"); BattleInfoBattleMapTypeComboBox.SelectedIndex = DataProcess.GetBattleInfoBattleMapTypeSelectIndex( Convert.ToInt32(AssetManager.MissionDatatable.Rows[SelectDataRow]["BattleInfoBattleMapType"])); BindingTextBoxValue(BattleInfoBattleZoneIDTextBox, "[BattleInfoBattleZoneID]"); BindingTextBoxValue(BattleInfoDropTextBox, "[BattleInfoDrop]"); BindingTextBoxValue(BattleInfoBattleTimesTextBox, "[BattleInfoBattleTimes]"); BindingListBoxValue(BattleInfoMonsterListBox, "BattleInfoMonsterList"); BindingTextBoxValue(BattleInfoMonsterNumTextBox, "[BattleInfoMonsterNum]"); BindingTextBoxValue(BattleInfoDropItemIDTextBox, "[BattleInfoDropItemID]"); BindingTextBoxValue(BattleInfoDropItemNumTextBox, "[BattleInfoDropItemNum]"); //BindingTextBoxValue(ScenarioInfoAnimationIDTextBox, "[ScenarioInfoAnimationID]"); //BindingTextBoxValue(ScenarioInfoBranchNpcIDTextBox, "[ScenarioInfoBranchNpcID]"); //BindingTextBoxValue(ScenarioInfoBranchNoteTextBox, "[ScenarioInfoBranchNote]"); //TODO:ScenarioInfoBranchOptionList SetConversationCell(); SetFinishConversationCell(); }