private void InitializeComponent()
 {
     this.newQuestRewardPanel = new NewQuestRewardPanel();
     base.SuspendLayout();
     this.newQuestRewardPanel.Anchor         = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.newQuestRewardPanel.BackColor      = ARGBColors.Fuchsia;
     this.newQuestRewardPanel.ClickThru      = false;
     this.newQuestRewardPanel.Location       = new Point(0, 0);
     this.newQuestRewardPanel.Name           = "newQuestRewardPanel";
     this.newQuestRewardPanel.PanelActive    = true;
     this.newQuestRewardPanel.Size           = new Size(500, 0x1d8);
     this.newQuestRewardPanel.StoredGraphics = null;
     this.newQuestRewardPanel.TabIndex       = 0;
     base.AutoScaleMode = AutoScaleMode.None;
     this.BackColor     = ARGBColors.White;
     base.ClientSize    = new Size(500, 0x1d8);
     base.ControlBox    = false;
     base.Controls.Add(this.newQuestRewardPanel);
     base.FormBorderStyle = FormBorderStyle.None;
     base.Name            = "NewQuestRewardPopup";
     base.Opacity         = 0.95;
     base.ShowIcon        = false;
     base.ShowInTaskbar   = false;
     base.StartPosition   = FormStartPosition.Manual;
     this.Text            = "Report Capture";
     base.TransparencyKey = ARGBColors.Fuchsia;
     base.ResumeLayout(false);
 }
Пример #2
0
            public void init(int villageID, NewQuestRewardPanel parent, int position, bool selected)
            {
                this.m_villageID = villageID;
                this.m_parent    = parent;
                this.clearControls();
                if (selected)
                {
                    this.backgroundImage.Image    = (Image)GFXLibrary.quest_popup_inset_highlight;
                    this.backgroundImage.Position = new Point(0, 5);
                    this.backgroundImage.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
                    base.addControl(this.backgroundImage);
                }
                base.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
                this.Size = new Size(390, 0x22);
                int index = GameEngine.Instance.World.getVillageSize(villageID);

                this.villageIcon.Image    = (Image)GFXLibrary.char_village_icons[index];
                this.villageIcon.Position = new Point(0, -8);
                this.villageIcon.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
                base.addControl(this.villageIcon);
                this.villageName.Text      = GameEngine.Instance.World.getVillageName(villageID);
                this.villageName.Color     = ARGBColors.Black;
                this.villageName.Position  = new Point(50, 0);
                this.villageName.Size      = new Size(330, base.Height);
                this.villageName.Font      = FontManager.GetFont("Arial", 12f, FontStyle.Bold);
                this.villageName.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_LEFT;
                this.villageName.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
                base.addControl(this.villageName);
            }
 private void InitializeComponent()
 {
     this.newQuestRewardPanel = new NewQuestRewardPanel();
     base.SuspendLayout();
     this.newQuestRewardPanel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.newQuestRewardPanel.BackColor = ARGBColors.Fuchsia;
     this.newQuestRewardPanel.ClickThru = false;
     this.newQuestRewardPanel.Location = new Point(0, 0);
     this.newQuestRewardPanel.Name = "newQuestRewardPanel";
     this.newQuestRewardPanel.PanelActive = true;
     this.newQuestRewardPanel.Size = new Size(500, 0x1d8);
     this.newQuestRewardPanel.StoredGraphics = null;
     this.newQuestRewardPanel.TabIndex = 0;
     base.AutoScaleMode = AutoScaleMode.None;
     this.BackColor = ARGBColors.White;
     base.ClientSize = new Size(500, 0x1d8);
     base.ControlBox = false;
     base.Controls.Add(this.newQuestRewardPanel);
     base.FormBorderStyle = FormBorderStyle.None;
     base.Name = "NewQuestRewardPopup";
     base.Opacity = 0.95;
     base.ShowIcon = false;
     base.ShowInTaskbar = false;
     base.StartPosition = FormStartPosition.Manual;
     this.Text = "Report Capture";
     base.TransparencyKey = ARGBColors.Fuchsia;
     base.ResumeLayout(false);
 }
 public void init(int villageID, NewQuestRewardPanel parent, int position, bool selected)
 {
     this.m_villageID = villageID;
     this.m_parent = parent;
     this.clearControls();
     if (selected)
     {
         this.backgroundImage.Image = (Image) GFXLibrary.quest_popup_inset_highlight;
         this.backgroundImage.Position = new Point(0, 5);
         this.backgroundImage.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
         base.addControl(this.backgroundImage);
     }
     base.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
     this.Size = new Size(390, 0x22);
     int index = GameEngine.Instance.World.getVillageSize(villageID);
     this.villageIcon.Image = (Image) GFXLibrary.char_village_icons[index];
     this.villageIcon.Position = new Point(0, -8);
     this.villageIcon.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
     base.addControl(this.villageIcon);
     this.villageName.Text = GameEngine.Instance.World.getVillageName(villageID);
     this.villageName.Color = ARGBColors.Black;
     this.villageName.Position = new Point(50, 0);
     this.villageName.Size = new Size(330, base.Height);
     this.villageName.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold);
     this.villageName.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_LEFT;
     this.villageName.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.lineClicked));
     base.addControl(this.villageName);
 }