@@ -351,7 +351,7 @@ begin
351351 end;
352352
353353 count := Target.CountColor($0, 0, Self._IsOpenHelperBox);
354- tpa := Target.FindColor(RSColors.TEXT_ORANGE , 0, Self._IsOpenHelperBox);
354+ tpa := Target.FindColor(RSFonts.ORANGE , 0, Self._IsOpenHelperBox);
355355 Result := ((count = 94) and (Length(tpa) = 116)) or Self.Title.IsTitle('Bank') or Self.Title.IsTitle('Equip');
356356
357357 if Result then
@@ -822,7 +822,7 @@ Internal helper function help process the tabs text when you search.
822822Example:
823823```pascal
824824if Bank.Search('logs') then
825- if Bank._FindTabText(Target.FindColor(RSColors.TEXT_LIGHT_YELLOW , 0, bounds), bounds) then
825+ if Bank._FindTabText(Target.FindColor(RSFonts.LIGHT_YELLOW , 0, bounds), bounds) then
826826 ShowOnTarget(bounds);
827827```
828828*)
@@ -870,10 +870,10 @@ begin
870870 bounds := [Self.Bounds.X1 + 56, Self.Bounds.Y1 + 77, Self.Bounds.X1 + 84, bounds.Y1];
871871 if bounds.Height < 8 then Exit(0);
872872
873- if Self._FindTabText(Target.FindColor(RSColors.TEXT_LIGHT_YELLOW , 0, bounds), bounds) then
874- Result := OCR.RecognizeNumber(bounds, RSFonts.PLAIN_11, [RSColors.TEXT_LIGHT_YELLOW ], 0);
875- if Self._FindTabText(Target.FindColor(RSColors.TEXT_WHITE , 0, bounds), bounds) then
876- Result := OCR.RecognizeNumber(bounds, RSFonts.PLAIN_11, [RSColors.TEXT_WHITE ], 0);
873+ if Self._FindTabText(Target.FindColor(RSFonts.LIGHT_YELLOW , 0, bounds), bounds) then
874+ Result := OCR.RecognizeNumber(bounds, RSFonts.PLAIN_11, [RSFonts.LIGHT_YELLOW ], 0);
875+ if Self._FindTabText(Target.FindColor(RSFonts.WHITE , 0, bounds), bounds) then
876+ Result := OCR.RecognizeNumber(bounds, RSFonts.PLAIN_11, [RSFonts.WHITE ], 0);
877877end;
878878
879879(*
0 commit comments