Example #1
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 public static PointF[] GlobalXpBarCoordinates(User user, ProfileTemplateXp xp) => new PointF[]
 {
     new PointF(xp.GlobalBar.LocA.X, xp.GlobalBar.LocA.Y), // Base point, top left.
     new PointF(xp.GlobalBar.LocB.X, xp.GlobalBar.LocB.Y), // Base point, bottom left.
     new PointF(GetGlobalXpBarFillCoordinate(user, xp.GlobalBar), xp.GlobalBar.LocB.Y),
     new PointF(GetGlobalXpBarFillCoordinate(user, xp.GlobalBar), xp.GlobalBar.LocA.Y)
 };
Example #2
0
 public static PointF[] GuildXpBarCoordinates(User user, Server server, ProfileTemplateXp xp) => new PointF[]
 {
     new PointF(xp.GuildBar.LocA.X, xp.GuildBar.LocA.Y),      // Base point, top left.
     //new PointF(xp.GuildBar.LocB.X, xp.GuildBar.LocB.Y), // Base point, bottom left.
     new PointF(xp.GuildBar.LocB.X, xp.GuildBar.LocB.Y - 9),  // Base point, bottom left.
     new PointF(xp.GuildBar.LocB.X + 12, xp.GuildBar.LocB.Y), // Base point, bottom left.
     new PointF(GetGuildXpBarFillCoordinate(user, server, xp.GuildBar), xp.GuildBar.LocB.Y),
     new PointF(GetGuildXpBarFillCoordinate(user, server, xp.GuildBar), xp.GuildBar.LocA.Y)
 };