public RadialMenuItem(string p_text, Texture2D p_texture, EventData p_event, Rectangle p_sourceRect, float p_scale = 1.0f) { text = p_text; texture = p_texture; activateEvent = p_event; sourceRect = p_sourceRect; scale = p_scale; }
public RadialMenu(GraphicsDevice p_gd, ContentManager p_content, List<RadialMenuItem> p_items, Texture2D p_symbol, RadialMenu p_parent, EventSystem p_eventSystem, RadialMenuSystem p_rmSystem) { m_symbol = p_symbol; m_items = p_items; m_parent = p_parent; //m_hotKey = Keys.None; m_openEvent = new EventData(p_rmSystem.requestMenu, this); p_eventSystem.addEvent(m_openEvent); }
public RadialMenuItem(string p_text, Texture2D p_texture, EventData p_event, float p_scale = 1.0f) { text = p_text; texture = p_texture; activateEvent = p_event; sourceRect.X = 0; sourceRect.Y = 0; sourceRect.Width = p_texture.Width; sourceRect.Height = p_texture.Height; scale = p_scale; }
public RadialMenuItem(string p_text, Texture2D p_texture, RadialMenu p_submenu, float p_scale = 1.0f) { text = p_text; texture = p_texture; submenu = p_submenu; activateEvent = null; sourceRect.X = 0; sourceRect.Y = 0; sourceRect.Width = p_texture.Width; sourceRect.Height = p_texture.Height; scale = p_scale; }
public RadialMenuItem(string p_text, Texture2D p_texture, RadialMenu p_submenu, Rectangle p_sourceRect, float p_scale = 1.0f) { text = p_text; texture = p_texture; submenu = p_submenu; activateEvent = null; sourceRect = p_sourceRect; scale = p_scale; }