示例#1
0
        public override void DrawText()
        {
            if (text == null)
            {
                var r = GetInfocardRect();
                oldRect = r;
                text    = new InfocardDisplay(Manager.Game, r, ifc)
                {
                    DropShadow = true
                };
            }
            var rect = GetInfocardRect();

            if (rect != oldRect)
            {
                oldRect = rect;
                text.SetRectangle(rect);
            }
            text.Draw(Manager.Game.Renderer2D);
        }
示例#2
0
 public InfocardControl(MainWindow win, Infocard infocard, float initWidth)
 {
     window          = win;
     icard           = new InfocardDisplay(win, new Rectangle(0, 0, (int)initWidth, int.MaxValue), infocard);
     icard.FontScale = 0.8f;
 }