public Form1() { InitializeComponent(); Library.LoadPDNMemory( HelloPDN.Properties.Resources.UberConsole, FX.Font.GreyscaleAsForecolorBitmapColorTransform ); RedFont = new Industry.FX.Font( Library, "Uber Console", 5 ) { Color = Color.Red }; BlueFont = new Industry.FX.Font( Library, "Uber Console", 5 ) { Color = Color.Blue }; }
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 } }; }
public Channel( IrcChannelID id, Font.Library Library, Size ClientSize ) { ID = id; History = new ChatHistory() { Bounds = new Rectangle( Margin, Margin, ClientSize.Width-2*Margin, ClientSize.Height-2*Margin ) }; Input = new TextBox() { MaxBounds = new Rectangle( 1*Margin, ClientSize.Height-100-Margin, ClientSize.Width-2*Margin, 100 ) , Font = new Font( Library, "Uber Console", 5 ) { Color = Color.Black } , Text = "" , VerticalAlignment = VerticalAlignment.Bottom }; }