Example #1
0
        public Dialog(RenderSet render_set, string title, List<DialogStanza> stanzas)
            : base(null)
        {
            _Title = title;
            Stanzas = stanzas;
            _RenderSet = render_set;
            _Shown = false;
            ScaleX = _RenderSet.Scene.ViewSize.X;
            ScaleY = (int)(_RenderSet.Scene.ViewSize.Y * 0.25);
            FadeUp = Texture.Get("sprite_dialog_fade_up");

            SpeakerWriter = new PTextWriter(new Size((int)ScaleX, 24));
            SpeechWriter = new PTextWriter(new Size((int)ScaleX, (int)ScaleY - 24));
        }
Example #2
0
        public Dialog(RenderSet render_set, string title, List <DialogStanza> stanzas) :
            base(null)
        {
            _Title     = title;
            Stanzas    = stanzas;
            _RenderSet = render_set;
            _Shown     = false;
            ScaleX     = _RenderSet.Scene.ViewSize.X;
            ScaleY     = (int)(_RenderSet.Scene.ViewSize.Y * 0.25);
            FadeUp     = Texture.Get("sprite_dialog_fade_up");

            SpeakerWriter = new PTextWriter(_RenderSet.Scene.Game, new Size((int)ScaleX, 24));
            SpeechWriter  = new PTextWriter(_RenderSet.Scene.Game, new Size((int)ScaleX, (int)ScaleY));
        }