コード例 #1
0
 public void populateControls(int id)
 {
     if (id >= 0x3e8)
     {
         this.title.Text = SK.Text("ACHIEVEMENT_OBTAINED", "Achievement Obtained!");
         string str = CustomTooltipManager.getAchievementTitle(id - 0x3e8) + " (" + CustomTooltipManager.getAchievementRank(id - 0x3e8) + ")";
         this.content.Text = str;
         this.icon.Image   = (Image)GFXLibrary.medal_images[CustomSelfDrawPanel.MedalImage.getAchievementImage((id - 0x3e8) & 0xfff)];
     }
 }
コード例 #2
0
 public override void setData(GetReport_ReturnType returnData)
 {
     base.setData(returnData);
     base.lblSecondaryText.Text = CustomTooltipManager.getAchievementTitle(returnData.genericData1) + " - " + CustomTooltipManager.getAchievementRank(returnData.genericData1);
     base.lblSubTitle.Text      = SK.Text("ReportsPanel_Achievement_Attained", "Achievement Attained");
     base.imgFurther.Image      = (Image)GFXLibrary.com_32_honour_DS;
     base.imgFurther.setSizeToImage();
     base.imgFurther.Position  = new Point((base.Width / 2) - base.imgFurther.Width, base.btnDelete.Position.Y);
     base.lblFurther.Text      = base.m_returnData.genericData2.ToString("N", base.nfi);
     base.lblFurther.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_LEFT;
     base.lblFurther.Size      = new Size(base.Width, base.imgFurther.Height);
     base.lblFurther.Position  = new Point(base.imgFurther.Rectangle.Right + 10, base.imgFurther.Position.Y);
     base.showFurtherInfo();
     base.btnUtility.Visible   = true;
     base.btnUtility.Text.Text = SK.Text("GENERIC_Achievements", "Achievements");
 }