Skip to content

Commit

Permalink
Slightly adjusting kill tooltip alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
PirateIzzy committed Nov 24, 2023
1 parent 2635ef8 commit 1821013
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions WzComparerR2/CharaSimControl/SkillTooltipRender2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ private Bitmap RenderSkill(CanvasRegion region, out int picH, out List<int> spli
// for 6th job skills
if (Skill.Origin)
{
g.DrawImage(Resource.UIWindow2_img_Skill_skillTypeIcon_origin, 16, 11);
g.DrawImage(Resource.ToolTip_Equip_Dot_0, 89, picH + 15);//GMS Version blue dot in SKILLS
g.DrawImage(Resource.UIWindow2_img_Skill_skillTypeIcon_origin, 20, 11);
g.DrawImage(Resource.ToolTip_Equip_Dot_0, 92, picH + 15);//GMS Version blue dot in SKILLS
format.Alignment = StringAlignment.Near;
TextRenderer.DrawText(g, sr.Name, GearGraphics.ItemNameFont2, new Point(93, 10), Color.White, TextFormatFlags.Left | TextFormatFlags.NoPrefix);
TextRenderer.DrawText(g, sr.Name, GearGraphics.ItemNameFont2, new Point(96, 10), Color.White, TextFormatFlags.Left | TextFormatFlags.NoPrefix);
}

//UPDATE THIS NEXT
Expand All @@ -174,11 +174,11 @@ private Bitmap RenderSkill(CanvasRegion region, out int picH, out List<int> spli
//绘制desc
picH = 35;
if (Skill.HyperStat)
//GearGraphics.DrawString(g, "[Master Level : " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, 10, 485, ref picH, 16);
GearGraphics.DrawString(g, "[Master Level : " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, region.LevelDescLeft, region.TextRight, ref picH, 16);
//GearGraphics.DrawString(g, "[Master Level: " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, 10, 485, ref picH, 16);
GearGraphics.DrawString(g, "[Master Level: " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, region.LevelDescLeft, region.TextRight, ref picH, 16);
else if (!Skill.PreBBSkill)
//GearGraphics.DrawString(g, "[Master Level : " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, 86, 485, ref picH, 16);//original values: 90, 272
GearGraphics.DrawString(g, "[Master Level : " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, region.SkillDescLeft, region.TextRight, ref picH, 16);
//GearGraphics.DrawString(g, "[Master Level: " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, 86, 485, ref picH, 16);//original values: 90, 272
GearGraphics.DrawString(g, "[Master Level: " + Skill.MaxLevel + "]", GearGraphics.ItemDetailFont2, region.SkillDescLeft, region.TextRight, ref picH, 16);

if (sr.Desc != null)
{
Expand Down

0 comments on commit 1821013

Please sign in to comment.