Esempio n. 1
0
        public virtual void IntoText(Text text)
        {
            text.addWort(Name);
            text.addWhitespace(1);
            text.addWort(InstanzNummern + " Instanzen");
            text.addAbsatz();

            text.addRegex("Klassennummer: " + Klasse + "\n");
            text.addRegex("Typnummer: " + Typ + "\n");
            text.addRegex("Packet: " + Packet + "\n");
            text.addAbsatz();

            text.addWort(Desc);
        }
Esempio n. 2
0
        public DrawBox RPBlock()
        {
            float width = 500;
            xFont font = new FontGraphicsMeasurer("Calibri", 11);

            Text t = new Text();
            DrawList t1 = new DrawList(font);
            DrawList t2 = new DrawList(font);
            t.addWhitespace(width, 0, true);
            t.add(t1);
            t.addWhitespace(5);
            t.add(t2);

            t1.addWort("Name: " + Charakter.Charakter.VollstandigerName);
            t1.addWort("Alter: " + Charakter.Charakter.Super.RP.Alter);
            t1.addWhitespace(230, 132);
            t1.addWort("Radius: " + Charakter.Charakter.Super.RP.Radius.ToString("F2") + " Meter");
            t1.addWort("Höhe: " + Charakter.Charakter.Super.RP.Hohe.ToString("F2") + " Meter");

            t2.addWort("Hintergrund: " + Charakter.Charakter.Super.RP.Hintergrund);
            t2.addWort("Konfession: " + Charakter.Charakter.Super.RP.Konfession);
            Text vergs = new Text();
            vergs.addWort("Vergangenheit: ");
            vergs.add(new DrawList(font, Charakter.Charakter.Super.RP.Vergangenheiten.Map(s => s.Replace('_', ' '))));
            t2.add(vergs);
            t2.addWhitespace(250, 50);
            t2.addWort("Rassebild:");
            t2.add(new ImageBox(100, CreateFarbBild(this.Charakter.Charakter.Super.RP.Augenfarbe,
                this.Charakter.Charakter.Super.RP.Haarfarbe,
                this.Charakter.Charakter.Super.RP.Hautfarbe)));

            return t;
        }