Skip to content

Commit

Permalink
Add stealth alert event.
Browse files Browse the repository at this point in the history
  • Loading branch information
brotalnia committed Jun 10, 2023
1 parent b49b404 commit 11260b3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ScriptEditor/FormEventEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public partial class FormEventEditor : Form
"Map Event Happened", // 31
"Group Member Died", // 32
"Victim Rooted", // 33
"Hit By Aura" // 34
"Hit By Aura", // 34
"Stealth Alert" // 35
};

private string GetEventTypeName(uint type)
Expand Down Expand Up @@ -204,6 +205,7 @@ private void ResetAndHideEventSpecificForms()
// EVENT_T_TARGET_MANA (18)
// EVENT_T_MAP_SCRIPT_EVENT (31)
// EVENT_T_VICTIM_ROOTED (33)
// EVENT_T_STEALTH_ALERT (35)
txtTimerInitialMin.Text = "";
txtTimerInitialMax.Text = "";
txtTimerRepeatMin.Text = "";
Expand Down Expand Up @@ -299,6 +301,7 @@ private void ShowEventSpecificForm(CreatureEvent selectedEvent)
case 18: // EVENT_T_TARGET_MANA
case 31: // EVENT_T_MAP_SCRIPT_EVENT
case 33: // EVENT_T_VICTIM_ROOTED
case 35: // EVENT_T_STEALTH_ALERT
{
switch (selectedEvent.Type)
{
Expand Down Expand Up @@ -434,6 +437,17 @@ private void ShowEventSpecificForm(CreatureEvent selectedEvent)
txtTimerRepeatMax.Visible = false;
break;
}
case 35: // EVENT_T_STEALTH_ALERT
{
lblEventTimerCombatTooltip.Text = "Expires when a nearby unit moves in stealth and causes an alert to trigger.";
lblTimerInitialMin.Text = "Repeat Min:";
lblTimerInitialMax.Text = "Repeat Max:";
lblTimerRepeatMin.Visible = false;
lblTimerRepeatMax.Visible = false;
txtTimerRepeatMin.Visible = false;
txtTimerRepeatMax.Visible = false;
break;
}
}
txtTimerInitialMin.Text = selectedEvent.Param1.ToString();
lblTimerInitialMin.Location = new Point(txtTimerInitialMin.Location.X - lblTimerInitialMin.Size.Width - 4, lblTimerInitialMin.Location.Y);
Expand Down

0 comments on commit 11260b3

Please sign in to comment.