示例#1
0
 public void AddGuiText(string message, MessagePosition pos, Color backGround, Color foreColor)
 {
     _guiTextList.Add(new UIDisplay
     {
         Message    = message,
         Position   = pos,
         BackGround = backGround,
         ForeColor  = foreColor
     });
 }
示例#2
0
 public void AddRamWatch(string message, MessagePosition pos, Color backGround, Color foreColor)
 {
     _ramWatchList.Add(new UIDisplay
     {
         Message    = message,
         Position   = pos,
         BackGround = backGround,
         ForeColor  = foreColor
     });
 }
示例#3
0
        private PointF GetCoordinates(IBlitter g, MessagePosition position, string message)
        {
            var   size = g.MeasureString(message, MessageFont);
            float x    = position.Anchor.IsLeft()
                                ? position.X
                                : g.ClipBounds.Width - position.X - size.Width;

            float y = position.Anchor.IsTop()
                                ? position.Y
                                : g.ClipBounds.Height - position.Y - size.Height;


            return(new PointF(x, y));
        }