Skip to content

Commit

Permalink
Merge pull request #81 from Torwent/patch-1
Browse files Browse the repository at this point in the history
fix: scroll area
  • Loading branch information
slackydev authored Oct 5, 2023
2 parents e1fcc68 + 6412fa5 commit f1319a3
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 126 deletions.
10 changes: 10 additions & 0 deletions osr/bank.simba
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,15 @@ begin
Bitmap.DrawBoxes(Self.GetSlotBoxes(), $00FFFF);
end;

function TRSBank.ScrollAreaFunction(): TBox;
begin
Result := Self.Bounds();
Result.X1 += 5;
Result.Y1 += 77;
Result.X2 -= 24;
Result.Y2 -= 44;
end;

(*
Bank.Setup
~~~~~~~~~~
Expand All @@ -273,6 +282,7 @@ begin
inherited;

Self.Name := 'Bank';
Self.GetScrollAreaFunction := @Self.ScrollAreaFunction;
end;

procedure TRSBank.SetupAlignment(Mode: ERSClientMode); override;
Expand Down
1 change: 1 addition & 0 deletions osr/chat.simba
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ begin
inherited;

Self.Name := 'Chatbox';
Self.GetScrollAreaFunction := @Self.Bounds;
end;

(*
Expand Down
Loading

0 comments on commit f1319a3

Please sign in to comment.