Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions osrs/interfaces/mainscreen/grandexchange/grandexchange.simba
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,31 @@ begin
Result := EGEOfferStatus.NONE;
end;

(*
## TRSGrandExchangeSlot.Progress
```pascal
property TRSGrandExchangeSlot.Progress: Integer;
```
Returns the progress percentage of the slot.

Example:
```pascal
WriteLn GrandExchange.Slots[2].Progress;
```
*)
property TRSGrandExchangeSlot.Progress: Integer;
var
tpa: TPointArray;
begin
tpa := Target.FindColor($1964A8, 0, Self.StatusBox);
if not (tpa = []) then
Result := Round(tpa.Bounds.Width() / 105 * 100)
else if Target.HasColor($004A00, 0, 1, Self.StatusBox) then
Result := 100
else
Result := -1;
end;

(*
## TRSGrandExchangeSlot.Open
```pascal
Expand Down