public void AddLabel(AnimationLabel label) { SetupLabel(label); Labels.Add(label); if (Labels.Count == 1) { hoverBox.Position = Labels[0].Position - new Vector2(4, 0); selectedBox.Position = Labels[0].Position - new Vector2(4, 0); } }
public void AddNewLabel() { AnimationLabel lb = new AnimationLabel(new AnimationData("Animation #" + count++, new List <SpriteFrameData>())); AddLabel(lb); }
void SetupLabel(AnimationLabel lb) { lb.Position = LabelBasePos + new Vector2(0, (Labels.Count * labelSpacing)); }