コード例 #1
0
ファイル: ToolTipWindow.cs プロジェクト: jesst3r/3DGame
        public ToolTipWindow(WindowManager WM, string Text, int X, int Y, bool SelfDismissing = true)
        {
            this.Width = 256;

            this.SelfDismissing = SelfDismissing;
            TextDisplay         = new GUI.Controls.RichTextDisplay(Text, this.Width - this.Margin.X - this.Margin.Width, (int)WM.Screen.Y, WM);
            TextDisplay.X       = 0;
            TextDisplay.Y       = 0;
            this.AddControl(TextDisplay);
            this.Margin.Y = this.Margin.Height;
        }
コード例 #2
0
ファイル: ToolTipWindow.cs プロジェクト: jesst3r/3DGame
 public ToolTipWindow(WindowManager WM, List <string> Text, int X, int Y, bool SelfDismissing = true)
 {
     this.Width          = 256;
     this.X              = X;
     this.Y              = Y;
     this.SelfDismissing = SelfDismissing;
     TextDisplay         = new GUI.Controls.RichTextDisplay(this.Width - this.Margin.X - this.Margin.Width, (int)WM.Screen.Y, WM);
     foreach (string line in Text)
     {
         TextDisplay.AddLine(line);
     }
     TextDisplay.X = 0;
     TextDisplay.Y = 0;
     this.AddControl(TextDisplay);
     this.Margin.Y = this.Margin.Height;
 }