public void addEvent(Button a_care) { a_care.move(new Vector2(0, 25)); m_eventsToAdd.Push(new Event(new LinkedList<EventTrigger>(), new LinkedList<EventEffect>(), true)); }
public void newEvent(Button a_button) { a_button.move(new Vector2(0, 25)); int i = 0; KeyValuePair<Button, Event>[] t_array = m_events.ToArray(); for (int j = 0; j < t_array.Length; ) { if (i == int.Parse(t_array[j++].Key.getText())) { j = 0; i++; } } Button t_button; m_events.Add(t_button = new Button("btn_asset_list", new Vector2(0, m_events.Count * 25), "" + i, "VerdanaBold", Color.Yellow, new Vector2(10, 2)), new Event(new LinkedList<EventTrigger>(), new LinkedList<EventEffect>(), true)); t_button.m_clickEvent += new Button.clickDelegate(selectEvent); }