/// <summary> /// /// </summary> /// <param name="s"></param> /// <param name="art">von höherwertig (rechts) nach niederwertig (links) /// <para>[5:eingerahmt][4:(overline)quer][3:durchgestrichen][2:unterstrichen][1:kursiv][0:fett]</para></param> public DynamicBorderCStringText(string s, byte art, Brush b, xFont font, Pen p) { this.s = s; this.art = art; this.b = b; this.font = font; this.p = p; this.an = false; update(); }
///// <summary> ///// added das Wort nur dann regexweise, falls regex == true ///// </summary> ///// <param name="s"></param> ///// <param name="regex"></param> //public CString(string s, bool regex) //{ // if (regex) // this.addRegexWeise(s); // else // this.addWort(s); //} public void addWort(string s, Brush b, byte mode, xFont font) { this.list.Add(new CStringText(s, mode, b, font)); }
/// <summary> /// /// </summary> /// <param name="s"></param> /// <param name="art">von höherwertig (rechts) nach niederwertig (links) /// <para>[5:eingerahmt][4:(overline)quer][3:durchgestrichen][2:unterstrichen][1:kursiv][0:fett]</para></param> public TextBackground(string s, byte art, Brush b, xFont font, Brush back, Pen rand) { this.s = s; this.art = art; this.b = b; this.font = font; this.back = back; this.rand = rand; update(); }
/// <summary> /// /// </summary> /// <param name="s"></param> /// <param name="art">von höherwertig (rechts) nach niederwertig (links) /// <para>[5:eingerahmt][4:(overline)quer][3:durchgestrichen][2:unterstrichen][1:kursiv][0:fett]</para></param> public CStringText(string s, byte art, Brush b, xFont font) { this.s = s; this.art = art; this.b = b; this.font = font; update(); }
public Tabular TabelleRechts(xFont font) { return Tabelle(font, new int[] { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 }, new int[] { 3, 4 }); }
public Tabular TabelleLinks(xFont font) { return Tabelle(font, new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }, new int[] { 0, 1, 2 }); }
public Tabular Tabelle(xFont font, int[] fert, int[] attribute) { ZVektor<Fertigkeit> GW = Charakter.GrundwerteFertigkeiten(); ZVektor<Attribut> GWA = Charakter.Charakter.Super.Attribute.Attribute; Tabular Fertigkeiten = new Tabular(3); Fertigkeiten.addRow(19); Fertigkeiten[0, 1] = new Word("GW ", Brushes.Black, font, 0, Pens.Black); Fertigkeiten[0, 2] = new Word("MW", Brushes.Black, font, 0, Pens.Black); int[] zeilen = new int[]{ 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30 }; for (int i = 0; i < fert.Length; i++) { Fertigkeit f = Universe.Fertigkeiten.Menge[fert[i]]; Fertigkeiten[zeilen[i], 0] = new Word(" " + f.SchreibName, Brushes.Black, font, 0, Pens.Black); Fertigkeiten[zeilen[i], 1] = new Word( GW[f] != 0 ? GW[f] + "" : "", Brushes.Black, font, 0, Pens.Black); Fertigkeiten[zeilen[i], 2] = new Word( Charakter.Statisch.Fertigkeiten.FinalWert.Value().Get(f) != 0 ? Charakter.Statisch.Fertigkeiten.FinalWert.Value().Get(f) + "" : "", Brushes.Black, font, 0, Pens.Black); } zeilen = new int[] { 1, 7, 13, 19, 25 }; for (int i = 0; i < attribute.Length; i++) { Attribut a = Universe.Attribute.Menge[attribute[i]]; Fertigkeiten[zeilen[i], 0] = new Word(a.SchreibName, Brushes.Black, font, 0, Pens.Black); Fertigkeiten[zeilen[i], 1] = new Word( GWA[a] != 0 ? GWA[a] + "" : "" , Brushes.Black, font, 0, Pens.Black); Fertigkeiten[zeilen[i], 2] = new Word( Charakter.Statisch.Attribute.FinalWert.Value().Get(a) != 0 ? Charakter.Statisch.Attribute.FinalWert.Value().Get(a) + "" : "", Brushes.Black, font, 0, Pens.Black); Fertigkeiten.setRowPen(zeilen[i], Pens.Black); if (zeilen[i] == 1) Fertigkeiten.setRowPen(zeilen[i] - 1, Pens.Black); else Fertigkeiten[zeilen[i] - 1, 0] += new Whitespace(0, 50, false); } return Fertigkeiten; }