Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
adjusted click positions for targeting modes
Browse files Browse the repository at this point in the history
  • Loading branch information
MgAl2O4 committed Feb 28, 2021
1 parent 34d7541 commit 89c3119
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions SINoCOLO/GameLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ public enum ETargetingMode
};
private Rectangle rectNoTargetPlayer = new Rectangle(120, 288, 8, 8);
private Rectangle[] rectTargetPlayer = new Rectangle[] {
new Rectangle(132, 131, 8, 8),
new Rectangle(133, 243, 8, 8),
new Rectangle(136, 357, 8, 8),
new Rectangle(128, 131, 8, 8),
new Rectangle(129, 243, 8, 8),
new Rectangle(131, 357, 8, 8),
new Rectangle(55, 188, 8, 8),
new Rectangle(55, 302, 8, 8),
};
private Rectangle rectNoTargetEnemy = new Rectangle(211, 288, 8, 8);
private Rectangle[] rectTargetEnemy = new Rectangle[] {
new Rectangle(202, 127, 8, 8),
new Rectangle(202, 243, 8, 8),
new Rectangle(200, 357, 8, 8),
new Rectangle(206, 127, 8, 8),
new Rectangle(206, 243, 8, 8),
new Rectangle(204, 357, 8, 8),
new Rectangle(275, 188, 8, 8),
new Rectangle(275, 302, 8, 8),
};
Expand Down Expand Up @@ -626,6 +626,22 @@ private bool DrawScanHighlights_ColoCombat(Graphics g, ScannerColoCombat.ScreenD
DrawActionArea(g, rectBoostElem, "BOOST", boostColor, false);
}

// temp: target trackers
if (targetingMode == ETargetingMode.Deselect)
{
DrawActionArea(g, rectNoTargetEnemy, "x", Color.White, false);
DrawActionArea(g, rectNoTargetPlayer, "x", Color.White, false);
}
else if (targetingMode != ETargetingMode.None)
{
for (int idx = 0; idx < rectTargetPlayer.Length; idx++)
{
string targetSlotDesc = idx.ToString();
DrawActionArea(g, rectTargetPlayer[idx], targetSlotDesc, Color.White, false);
DrawActionArea(g, rectTargetEnemy[idx], targetSlotDesc, Color.White, false);
}
}

// weapon icons
Rectangle[] actionBoxes = screenScanner.GetActionBoxes();
for (int idx = 0; idx < actionBoxes.Length; idx++)
Expand Down

0 comments on commit 89c3119

Please sign in to comment.