/// <summary> /// List item with items generated at runtime /// </summary> /// <param name="text">Label text</param> /// <param name="description">Item description</param> public UIMenuDynamicListItem(string text, string description, string startingItem, DynamicListItemChangeCallback changeCallback) : base(text, description) { const int y = 0; _arrowLeft = new Sprite("commonmenu", "arrowleft", new Point(110, 105 + y), new Size(30, 30)); _arrowRight = new Sprite("commonmenu", "arrowright", new Point(280, 105 + y), new Size(30, 30)); _itemText = new UIResText("", new Point(290, y + 104), 0.35f, Color.White, Font.ChaletLondon, UIResText.Alignment.Right); CurrentListItem = startingItem; Callback = changeCallback; }
/// <summary> /// List item with items generated at runtime /// </summary> /// <param name="text">Label text</param> public UIMenuDynamicListItem(string text, string startingItem, DynamicListItemChangeCallback changeCallback) : this(text, null, startingItem, changeCallback) { }