From 89c31198a3bad837e08eab5472f983c6c80bfe08 Mon Sep 17 00:00:00 2001 From: MgAl2O4 <51430403+MgAl2O4@users.noreply.github.com> Date: Sat, 27 Feb 2021 22:26:28 -0500 Subject: [PATCH] adjusted click positions for targeting modes --- SINoCOLO/GameLogic.cs | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/SINoCOLO/GameLogic.cs b/SINoCOLO/GameLogic.cs index 2631c6f..e877401 100644 --- a/SINoCOLO/GameLogic.cs +++ b/SINoCOLO/GameLogic.cs @@ -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), }; @@ -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++)