void CreateMenuCollections() { // Screen CollectionHelper screen = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, "^$"); screen.Add("Ending", keyInsertText); screen.AddList("Sign", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddList("Flag", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddList("Warp X", null, "Up", (EventHandler)warp, "Right", (EventHandler)warp, "Down", (EventHandler)warp, "Left", (EventHandler)warp); screen.AddList("Warp Y", null, "Up", (EventHandler)warp, "Right", (EventHandler)warp, "Down", (EventHandler)warp, "Left", (EventHandler)warp); screen.AddList("Flag Warp X", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddList("Flag Warp Y", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.Add("Shift", keyInsertText); screen.AddListTo("Shift", "Type", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Touch", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Quantize", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Save", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Visible", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Stop Music", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Effect", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Deny Hologram", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Absolute Target", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "X Map", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Y Map", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "X Pos", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Y Pos", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Cutscene", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Flag On", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Flag Off", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); screen.AddListTo("Shift", "Sound", null, "A", (EventHandler)insertPath, "B", (EventHandler)insertPath, "C", (EventHandler)insertPath); CollectionHelper flags = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"flag\([abc]\)"); for (int i = 0; i < 10; i++) { flags.Add("Flag " + i, null); } flags.AddList("Powers", null, "Run", null, "Climb", null, "Double Jump", null, "High Jump", null, "Eye", null, "Detector", null, "Umbrella", null, "Hologram", null, "Red Key", null, "Yellow Key", null, "Blue Key", null, "Purple Key", null); CollectionHelper shiftType = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shifttype\([abc]\)"); shiftType.Add("Spot", insertIndex); shiftType.Add("Floor", insertIndex); shiftType.Add("Circle", insertIndex); shiftType.Add("Square", insertIndex); CollectionHelper shiftTouch = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shifttouch\([abc]\)"); shiftTouch.Add("True", insertText); shiftTouch.Add("False", insertText); CollectionHelper shiftQuantize = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftquantize\([abc]\)"); shiftQuantize.Add("True", insertText); shiftQuantize.Add("False", insertText); CollectionHelper shiftSave = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftsave\([abc]\)"); shiftSave.Add("True", insertText); shiftSave.Add("False", insertText); CollectionHelper shiftVisible = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftvisible\([abc]\)"); shiftVisible.Add("True", insertText); shiftVisible.Add("False", insertText); CollectionHelper shiftStopMusic = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftstopmusic\([abc]\)"); shiftStopMusic.Add("True", insertText); shiftStopMusic.Add("False", insertText); CollectionHelper shiftEffect = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shifteffect\([abc]\)"); shiftEffect.Add("True", insertText); shiftEffect.Add("False", insertText); CollectionHelper shiftDenyHologram = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftdenyhologram\([abc]\)"); shiftDenyHologram.Add("True", insertText); shiftDenyHologram.Add("False", insertText); CollectionHelper shiftAbsoluteTarget = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftabsolutetarget\([abc]\)"); shiftAbsoluteTarget.Add("True", insertText); shiftAbsoluteTarget.Add("False", insertText); CollectionHelper shiftFlagOn = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftflagon\([abc]\)"); for (int i = 0; i < 10; i++) { shiftFlagOn.Add("Flag " + i, null); } shiftFlagOn.AddList("Powers", null, "Run", null, "Climb", null, "Double Jump", null, "High Jump", null, "Eye", null, "Detector", null, "Umbrella", null, "Hologram", null, "Red Key", null, "Yellow Key", null, "Blue Key", null, "Purple Key", null); CollectionHelper shiftFlagOff = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftflagoff\([abc]\)"); for (int i = 0; i < 10; i++) { shiftFlagOff.Add("Flag " + i, null); } shiftFlagOff.AddList("Powers", null, "Run", null, "Climb", null, "Double Jump", null, "High Jump", null, "Eye", null, "Detector", null, "Umbrella", null, "Hologram", null, "Red Key", null, "Yellow Key", null, "Blue Key", null, "Purple Key", null); CollectionHelper shiftSound = new CollectionHelper(form.contextMenuStrip4, ScreenPattern, @"shiftsound\([abc]\)"); shiftSound.Add("None", insertText); shiftSound.Add("Electronic", insertText); shiftSound.Add("Door", insertText); shiftSound.Add("Switch", insertText); Collections.Add(flags); Collections.Add(shiftType); Collections.Add(shiftTouch); Collections.Add(shiftQuantize); Collections.Add(shiftSave); Collections.Add(shiftVisible); Collections.Add(shiftStopMusic); Collections.Add(shiftEffect); Collections.Add(shiftDenyHologram); Collections.Add(shiftAbsoluteTarget); Collections.Add(shiftFlagOn); Collections.Add(shiftFlagOff); Collections.Add(shiftSound); Collections.Add(screen); // Custom Object }