public void AddChild(AnimatedSequenceRenderer asr, bool attach = false) { if (attach) { _attachedChildIndex = _children.Count; } _children.Add(asr); }
public NewGameMenu(SequenceRenderer sequenceRendererMenu, ITitleMainMenu mainMenu) { _difficultyCount = mainMenu.Kernel.IsFinalMix ? 4 : 3; _mainMenu = mainMenu; _seqRenderer = sequenceRendererMenu; _animMenuBg = new AnimatedSequenceRenderer(_seqRenderer, NewGameTitle); _animMenuWindow = new AnimatedSequenceRenderer(_seqRenderer, NewGameWindow); _animMenuOption1 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOption2 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOption3 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOption4 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOptionSelected = new AnimatedSequenceRenderer(_seqRenderer, 15, 14, 14); }
public NewGameMenu(SequenceRenderer sequenceRendererMenu, ITitleMainMenu mainMenu) { _difficultyCount = mainMenu.Kernel.IsFinalMix ? 4 : 3; _mainMenu = mainMenu; _seqRenderer = sequenceRendererMenu; _animMenuBg = new AnimatedSequenceRenderer(_seqRenderer, NewGameTitle); _animMenuWindow = new AnimatedSequenceRenderer(_seqRenderer, NewGameWindow); _animMenuTitle = new AnimatedSequenceRenderer(_seqRenderer, 25, 25, 25); _animMenuOption1 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOption2 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOption3 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOption4 = new AnimatedSequenceRenderer(_seqRenderer, NewGameOption); _animMenuOptionSelected = new AnimatedSequenceRenderer(_seqRenderer, 15, 14, 14); _animMenuOptionSelected.AddChild(new AnimatedSequenceRenderer(_seqRenderer, 7)); _animMenuOptionSelected.AddChild(new AnimatedSequenceRenderer(_seqRenderer, 10), true); _animMenuOptionSelected.ChildPositionX = -110; }