public static void ShowActionTyteCondition(ComboBox combobox, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l3, Label l4) { if ((EventType)combobox.SelectedValue.ToInt32() == EventType.ПРИ_ПОЛУЧЕНИИ_ЭМОЦИИ) { ((GroupBox)combobox.Parent).ResetButton(); l3.Text = l4.Text = string.Empty; cb3.Reset(); cb4.Reset(); switch ((ConditionType)cb2.SelectedValue.ToUInt32()) { case ConditionType.ПРИ_НАЛИЧИИ_АУРЫ: l3.Text = "ID спелла"; new ButtonHandler(cb3, BType.SPELL); l4.Text = "Время до повтора (мс)"; break; case ConditionType.ПРИ_НАЛИЧИИ_ПРЕЕДМЕТА: case ConditionType.ЕСЛИ_ПРЕДМЕТ_НА_ПЕРСОНАЖЕ: l3.Text = "ID предмета"; new ButtonHandler(cb3, BType.ITEM); l4.Text = "Количество"; break; case ConditionType.ЕСЛИ_НАХОДИТСЯ_В_ЗОНЕ: l3.Text = "ID зоны"; cb3.SetDbcData(DBC.AreaTable); break; case ConditionType.ПРИ_НАЛИЧИИ_РЕПУТАЦИИ: l3.Text = "ID фракции"; cb3.SetDbcData(DBC.Faction); l4.Text = "Минимальный ранг"; break; case ConditionType.КОМАНДА: l3.Text = "Команда"; cb3.SetEnumValues<ConditionTeam>(); break; case ConditionType.ПРИ_НАЛИЧИИ_УМЕНИЯ: l3.Text = "ID умения"; cb3.SetDbcData(DBC.SkillLine); l4.Text = "Минимальный уровень прокачки"; break; case ConditionType.ЕСЛИ_КВЕСТ_СДАН: case ConditionType.ЕСЛИ_КВЕСТ_НЕ_СДАН: l3.Text = "ID квеста"; new ButtonHandler(cb3, BType.QUEST); break; case ConditionType.ПРИ_АКТИВНОМ_ЭВЕНТЕ: l3.Text = "ID эвента"; cb3.SetDbcData(DBC.HolidayNames); break; } cb3.Visible = l3.Text != string.Empty; cb4.Visible = l4.Text != string.Empty; } }
public static void ShowActionTyteCondition(ComboBox combobox, ComboBox cb2, ComboBox cb3, ComboBox cb4, Label l3, Label l4) { if ((EventType)combobox.SelectedValue.ToInt32() == EventType.RECEIVE_EMOTE) { ((GroupBox)combobox.Parent).ResetButton(); l3.Text = l4.Text = string.Empty; cb3.Reset(); cb4.Reset(); switch ((ConditionType)cb2.SelectedValue.ToUInt32()) { case ConditionType.AURA: l3.Text = "SpellID"; new ButtonHandler(cb3, BType.SPELL, null, 0); l4.Text = "Time to repeat (ms)"; break; case ConditionType.ITEM: case ConditionType.ITEM_EQUIPPED: l3.Text = "ItemID"; new ButtonHandler(cb3, BType.ITEM, null, 0); l4.Text = "count"; break; case ConditionType.ZONEID: l3.Text = "ZoneID"; cb3.SetDbcData(DBC.AreaTable, null); break; case ConditionType.REPUTATION_RANK: l3.Text = "FactionID"; cb3.SetDbcData(DBC.Faction, null); l4.Text = "Minimum Rank"; break; case ConditionType.TEAM: l3.Text = "Team"; cb3.SetEnumValues<ConditionTeam>("", "", true); break; case ConditionType.SKILL: l3.Text = "SkillID"; cb3.SetDbcData(DBC.SkillLine, null); l4.Text = "Minimum Skill Value"; break; case ConditionType.QUESTREWARDED: case ConditionType.QUESTTAKEN: l3.Text = "QuestId"; new ButtonHandler(cb3, BType.QUEST, null, 0); break; case ConditionType.ACTIVE_EVENT: l3.Text = "EventId"; cb3.SetDbcData(DBC.HolidayNames, null); break; } cb3.Visible = l3.Text != string.Empty; cb4.Visible = l4.Text != string.Empty; } }