File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 157157 objs: TRSObjectArray;
158158begin
159159 Map.Setup([ERSChunk.VARROCK]);
160- objs := TRSObject .Create(ObjectsJSON.GetByName('bank '));
160+ objs := TRSObjectArray .Create(ObjectsJSON.GetByName('Bank booth '));
161161end;
162162```
163163*)
@@ -1071,6 +1071,23 @@ begin
10711071 img.Show();
10721072end;
10731073
1074+ (*
1075+ ## ShowOnTarget TRSObjectArray
1076+ ```pascal
1077+ procedure ShowOnTarget(objs: TRSObjectArray); overload;
1078+ ```
1079+ Shows an image of the target with the `TRSObjectArray` drawn on it.
1080+ *)
1081+ procedure ShowOnTarget(objs: TRSObjectArray); overload;
1082+ var
1083+ img: TImage;
1084+ i: Integer;
1085+ begin
1086+ img := Target.GetImage();
1087+ for i := 0 to High(objs) do
1088+ img.DrawObject(objs[i]);
1089+ img.Show();
1090+ end;
10741091
10751092function ToString(constref obj: TRSObject): String; override;
10761093begin
You can’t perform that action at this time.
0 commit comments