Example #1
0
        protected override void OnAfterDraw()
        {
            base.OnAfterDraw();


            if (CompanionDisplay == null)
            {
                return;
            }
            if (CompanionTabControl.SelectedTab != CompanionBagTab)
            {
                return;
            }

            int x = DisplayArea.X + CompanionDisplayPoint.X;
            int y = DisplayArea.Y + CompanionDisplayPoint.Y;

            if (CompanionDisplay.Image == MonsterImage.Companion_Donkey)
            {
                x += 10;
                y -= 5;
            }


            CompanionDisplay.DrawShadow(x, y);
            CompanionDisplay.DrawBody(x, y);
        }