Esempio n. 1
0
        public OptionsList(ActiveConversationDialog dialog)
        {
            dialog.OnActiveConversationDialogChanged += this.ActiveConversationDialog_OnActiveConversationDialogChanged;

            this.Size.Set(new OffsetVector(dialog.Size, -dialog.Size.Y, 0));
            this.Position.Set(new OffsetVector(dialog.Position, dialog.Size.Y, 0));
        }
Esempio n. 2
0
        public Background(ActiveConversationDialog dialog) : base(new RGBA(25, 25, 25))
        {
            this.RenderSize.Set(dialog.Size);
            this.RenderPosition.Set(dialog.Position);

            dialog.OnActiveConversationDialogChanged += this.Dialog_OnActiveConversationDialogChanged;
        }
Esempio n. 3
0
        public DisplayBox(ActiveConversationDialog dialog) : base(string.Empty)
        {
            dialog.OnActiveConversationDialogChanged += this.Dialog_OnActiveConversationDialogChanged;

            float squareSize = dialog.Size.Y - 2 * Padding;

            this.Size.Set(squareSize, squareSize);
            this.Position.Set(Padding, dialog.Position.Y + Padding);
        }
Esempio n. 4
0
        public ConversationMessage(ActiveConversationDialog dialog) : base(string.Empty)
        {
            dialog.OnActiveConversationDialogChanged += this.Dialog_OnActiveConversationDialogChanged;

            this._background = new SolidRectangleContext(new RGBA(150, 150, 150));
            this._background.RenderPosition.Set(new OffsetVector(dialog.Position, dialog.Size.Y, 0));
            this._background.RenderSize.Set(dialog.Size.X - dialog.Size.Y, Height);

            this._message = new TextContext(string.Empty, Fonts.Default);
            this._message.RenderPosition.Set(this._background.RenderPosition);
            this._message.FontColor.Set(RGBA.White);
            this._message.FontSize.Set(18);
            this._message.BorderColor.Set(RGBA.Black);
            this._message.BorderThickness = 3f;
            this._message.Alignment       = new TextAlignment()
            {
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment   = VerticalAlignment.Middle,
                Size = this._background.RenderSize
            };
        }
 static ConversationDemoScene()
 {
     Debug.AddDebugOverlayCommand("open", args => {
         ActiveConversationDialog.Show(ServiceProvider.SceneService.CurrentScene, args[0]);
     });
 }