Skip to content

Commit 67366d8

Browse files
committed
Added Shop override
Removed from shop.simba and added into the main TRSGameTabs.GetCurrent() override
1 parent 70d5b66 commit 67366d8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

osrs/interfaces/mainscreen/shop.simba

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,3 @@ var
436436
Global {ref}`TRSShop` variable.
437437
*)
438438
Shop: TRSShop;
439-
440-
441-
function TRSGameTabs.GetCurrent(): ERSGameTab; override;
442-
begin
443-
Result := inherited;
444-
if (Result = ERSGameTab.NONE) and Shop.IsOpen() then
445-
Result := ERSGameTab.INVENTORY;
446-
end;

osrs/overrides.simba

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ begin
9595

9696
if Bank.IsOpen() then Exit(ERSGameTab.INVENTORY);
9797

98+
if Shop.IsOpen() then Exit(ERSGameTab.INVENTORY);
99+
98100
if not HouseOptions.IsOpen() then Exit;
99101
Result := ERSGameTab.OPTIONS;
100102
if RSMouseZoom.SettingChecked then Exit;

0 commit comments

Comments
 (0)