public PanelMapObject(VisualControl parent, int shiftX, int shiftY) : base(parent, shiftX, shiftY)
        {
            ShowBorder = true;

            lblNameMapObject = new VCLabelM2(this, FormMain.Config.GridSize, FormMain.Config.GridSize - 3, Program.formMain.fontMedCaptionC, Color.Transparent, FormMain.Config.GridSize * 3, "");
            lblNameMapObject.StringFormat.Alignment = StringAlignment.Center;
            lblNameMapObject.ShowBorder             = true;
            lblNameMapObject.Click += ImgLair_Click;

            imgMapObject = new VCImageBig(this, lblNameMapObject.NextTop());
            imgMapObject.HighlightUnderMouse = true;
            imgMapObject.Click    += ImgLair_Click;
            imgMapObject.ShowHint += ImgLair_ShowHint;

            Click += ImgLair_Click;
        }
예제 #2
0
        public PanelBaseInfo(VisualControl parent, int shiftX, int shiftY) : base(parent, shiftX, shiftY)
        {
            Visible    = false;
            ShowBorder = true;

            lblName = new VCLabelM2(this, FormMain.Config.GridSize, FormMain.Config.GridSize - 3, Program.formMain.fontMedCaptionC, FormMain.Config.BattlefieldPlayerName, FormMain.Config.GridSize * 3, "");
            lblName.StringFormat.Alignment = StringAlignment.Center;
            lblName.Color      = Color.MediumAquamarine;
            lblName.ShowBorder = true;

            imgIcon           = new VCImageBig(this, lblName.NextTop());
            imgIcon.ShowHint += ImgIcon_ShowHint;

            separator = new VCSeparator(this, FormMain.Config.GridSize, TopForControls());

            pageControl = new VCTabControl(this, FormMain.Config.GridSize, separator.NextTop(), Program.formMain.ilGui)
            {
                //Parent = this,
                Width  = Width - FormMain.Config.GridSize * 2,
                Height = Height - separator.NextTop() - FormMain.Config.GridSize
            };
        }