Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions RogueEssence/Menu/Skills/SkillSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public class SkillSummary : SummaryMenu
MenuText SkillPower;
MenuText SkillHitRate;
MenuText Targets;
MenuText SkillCharges;


public SkillSummary(Rect bounds) : base(bounds)
{
Expand All @@ -31,7 +33,10 @@ public SkillSummary(Rect bounds) : base(bounds)

Targets = new MenuText("", new Loc(GraphicsManager.MenuBG.TileWidth * 2, GraphicsManager.MenuBG.TileHeight + VERT_SPACE * 2));
Elements.Add(Targets);


SkillCharges = new MenuText("", new Loc(Bounds.Width - GraphicsManager.MenuBG.TileWidth * 2, GraphicsManager.MenuBG.TileHeight), DirH.Right);
Elements.Add(SkillCharges);

MenuDiv = new MenuDivider(new Loc(GraphicsManager.MenuBG.TileWidth, GraphicsManager.MenuBG.TileHeight + VERT_SPACE * 2 + LINE_HEIGHT),
Bounds.Width - GraphicsManager.MenuBG.TileWidth * 2);
Elements.Add(MenuDiv);
Expand All @@ -52,8 +57,9 @@ public void SetSkill(string index)
SkillPower.SetText(Text.FormatKey("MENU_SKILLS_POWER", (powerState != null ? powerState.Power.ToString() : "---")));
SkillHitRate.SetText(Text.FormatKey("MENU_SKILLS_HIT_RATE", (skillEntry.Data.HitRate > -1 ? skillEntry.Data.HitRate + "%" : "---")));
Targets.SetText(Text.FormatKey("MENU_SKILLS_RANGE", skillEntry.HitboxAction.GetDescription()));
SkillCharges.SetText(Text.FormatKey("MENU_SKILLS_TOTAL_CHARGES", skillEntry.BaseCharges));
Description.SetAndFormatText(skillEntry.Desc.ToLocal());
}

}
}
}