Skip to content

Commit e13be61

Browse files
committed
feat: added scrollbars to the sailing gametab
1 parent 82e5d0b commit e13be61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

osrs/interfaces/gametabs/sailing.simba

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Main record responsible with handling the Sailing gametab.
2424
TRSSailing = record
2525
CombatBox, ShipNameBox, ShipHealthBox, TabTitle: TBox;
2626
Tabs: TBoxArray;
27+
Scrolls: array [ERSSailingTab] of TRSScrollBar;
2728
end;
2829

2930
procedure TRSSailing.SetupGameTab();
@@ -36,7 +37,15 @@ begin
3637

3738
Self.Tabs := TBoxArray.Create([X1+2, Y1+46], 3, 1, 55, 20, [7,0]);
3839
Self.TabTitle := [X1+32, Y1+68, X2-32, Y1+82];
40+
41+
Self.Scrolls[ERSSailingTab.FACILITIES].Area := [X1+3, Y1+88, X2-19, Y2-6];
42+
Self.Scrolls[ERSSailingTab.STATS].Area := [X1+3, Y1+88, X2-19, Y2-6];
43+
Self.Scrolls[ERSSailingTab.CREW].Area := [X1+3, Y1+108, X2-19, Y2-28];
3944
end;
45+
46+
Self.Scrolls[ERSSailingTab.FACILITIES].Setup();
47+
Self.Scrolls[ERSSailingTab.STATS].Setup();
48+
Self.Scrolls[ERSSailingTab.CREW].Setup();
4049
end;
4150

4251
(*

0 commit comments

Comments
 (0)