Example #1
0
 public Font( Font.Library library, string name, int size )
 {
     this.library = library;
     this.name = name;
     this.size = size;
     Reload();
 }
Example #2
0
        public void InitializeStyle()
        {
            library = new Font.Library();
            library.LoadUFFMemory( Resources.UberConsoleUFF, Industry.FX.Font.GreyscaleAsForecolorAlphaScaledBitmapColorTransform );

            ltgray4 = new Font( library, "Uber Console", 4 ) { Color = Color.FromArgb(unchecked((int)0x44000000u)) };
            ltblue4 = new Font( library, "Uber Console", 4 ) { Color = Color.FromArgb(unchecked((int)0x440000BBu)) };
            ltgray5 = new Font( library, "Uber Console", 5 ) { Color = Color.FromArgb(unchecked((int)0x44000000u)) };
            ltblue5 = new Font( library, "Uber Console", 5 ) { Color = Color.FromArgb(unchecked((int)0x440000BBu)) };
            gray4   = new Font( library, "Uber Console", 4 ) { Color = Color.FromArgb(unchecked((int)0x88000000u)) };
            gray5   = new Font( library, "Uber Console", 5 ) { Color = Color.FromArgb(unchecked((int)0x88000000u)) };
            blue4   = new Font( library, "Uber Console", 4 ) { Color = Color.Blue   };
            blue5   = new Font( library, "Uber Console", 5 ) { Color = Color.Blue   };
            purple  = new Font( library, "Uber Console", 5 ) { Color = Color.Purple };
            black   = new Font( library, "Uber Console", 5 ) { Color = Color.Black  };
            red4    = new Font( library, "Uber Console", 4 ) { Color = Color.FromArgb(unchecked((int)0x88FF0000u)) };
            red5    = new Font( library, "Uber Console", 5 ) { Color = Color.Red    };
            orange  = new Font( library, "Uber Console", 5 ) { Color = Color.Orange };

            semiignore = new TextStyle()
                { Timestamp = new ColumnStyle() { Font = gray4, Width = 35 }
                , Nickname  = new ColumnStyle() { Font = gray4, Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = gray4, LinkFont = ltblue4, Width = -1 }
                };
            normal = new TextStyle()
                { Timestamp = new ColumnStyle() { Font = gray4, Width = 35 }
                , Nickname  = new ColumnStyle() { Font = blue5, Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = black, LinkFont = blue5, Width = -1 }
                };
            self = new TextStyle()
                { Timestamp = new ColumnStyle() { Font = gray4 , Width = 35 }
                , Nickname  = new ColumnStyle() { Font = purple, Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = black, LinkFont = blue5, Width = -1 }
                };
            alerted = new TextStyle()
                { Timestamp = new ColumnStyle() { Font = gray4, Width = 35 }
                , Nickname  = new ColumnStyle() { Font = red5 , Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = black, LinkFont = blue5, Width = -1 }
                };
            commanderror = alerted;

            system = new TextStyle()
                { Timestamp = new ColumnStyle() { Font = gray4, Width = 35 }
                , Nickname  = new ColumnStyle() { Font = gray5, Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = gray5, LinkFont = ltblue5, Width = -1 }
                };
            smallalert = new TextStyle()
                { Timestamp = new ColumnStyle() { Font = red4, Width = 35 }
                , Nickname  = new ColumnStyle() { Font = red4, Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = red4, LinkFont = blue4, Width = -1 }
                };

            baddyalert = new TextStyle()
                { Timestamp = new ColumnStyle()        { Font = gray4 , Width = 35 }
                , Nickname  = new ColumnStyle()        { Font = orange, Width = 100, HorizontalAlignment = HorizontalAlignment.Right }
                , Message   = new MessageColumnStyle() { Font = black , LinkFont = blue5, Width = -1 }
                };
        }