private void Push(IJamView view) { StopLoitering(); _subview = view; _subview.Init(); _clickUi.Add(_subview.ClickUiBranch); }
public void Init() { _tutorial = new ExclusiveChoicesTutorial(); _subView = new ScanView(_person, DisableDialogueControls, InitDialogueOptions, () => !_isPresentingToUser); _subView.Init(); _endConversationButton = new ImageTextButton(new Transform2(new Rectangle(-684, 960, 1380, 64)), _onFinished, "Ok, great.", "Convo/DialogueButton", "Convo/DialogueButton-Hover", "Convo/DialogueButton-Press") { TextColor = Color.White, TextTransform = new Transform2(new Vector2(60, 960), new Size2(1380 - 684, 64)), TextAlignment = HorizontalAlignment.Left }; _characterView = new CharacterView(_person, () => _shouldShowDialogueControls); _playerView = new PlayerCharacterView(() => _shouldShowDialogueControls); _onNextDialogueElement = x => { _characterView.UpdateDialogue(x); _playerView.UpdateDialogue(x); }; if (_person.IsImmediatelyTalking()) { _person.StartImmediatelyTalking(StartDialogue); } else { InitDialogueOptions(); } }