Skip to content

Commit a4eda11

Browse files
committed
fix(options): brightness slider fixed on cpp client
1 parent c812468 commit a4eda11

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

osrs/interfaces/gametabs/options.simba

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ Main record responsible with interacting with the {ref}`Options` gametab.
5959
MaxBrightness, RoofsHidden: Boolean;
6060
end;
6161

62+
procedure TRSOptions.Setup();
63+
begin
64+
case RSClient.Client of
65+
ERSClient.OFFICIAL:
66+
Self.Sliders[ERSOptionsSlider.BRIGHTNESS].Color := $202328;
67+
ERSClient.LEGACY, ERSClient.RUNELITE:
68+
Self.Sliders[ERSOptionsSlider.BRIGHTNESS].Color := $1F2227;
69+
end;
70+
71+
Self.Sliders[ERSOptionsSlider.ZOOM].Color := $202328;
72+
Self.ZoomLevel := -1;
73+
end;
74+
6275
(*
6376
## Options.SetupGameTab
6477
```pascal
@@ -81,7 +94,6 @@ begin
8194
Bounds.Y1 := GameTab.Bounds.Y1 + 72;
8295
Bounds.X2 := Bounds.X1 + 96;
8396
Bounds.Y2 := Bounds.Y1 + 9;
84-
Color := 2040359;
8597
Width := Bounds.Width - 1;
8698
end;
8799

@@ -91,7 +103,6 @@ begin
91103
Bounds.Y1 := GameTab.Bounds.Y1 + 109;
92104
Bounds.X2 := Self.Sliders[ERSOptionsSlider.BRIGHTNESS].Bounds.X2;
93105
Bounds.Y2 := Bounds.Y1 + 9;
94-
Color := 2106152;
95106
Width := Bounds.Width - 1;
96107
end;
97108

osrs/interfaces/setup.simba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ begin
156156
Minimap.Compass.Accuracy := 0.03*PI;
157157
SetLength(Minimap.Orbs, Ord(High(ERSMinimapOrb))+1);
158158

159-
Options.ZoomLevel := -1;
159+
Options.Setup();
160160
MM2MS.Projector.RSZoom := -1;
161161
RSMouseZoom.ZoomLevel := -1;
162162
RSMouseZoom.Enabled := True;

0 commit comments

Comments
 (0)