Skip to content

Commit cb0fb61

Browse files
committed
fix: renamed verbose stuff
also fully documented the Login file
1 parent 8a4f572 commit cb0fb61

File tree

13 files changed

+580
-105
lines changed

13 files changed

+580
-105
lines changed

osrs/interfaces/chat/chat.simba

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ end;
154154

155155
function TRSChat.IsOpen(): Boolean;
156156
begin
157-
if RSClient.Mode = ERSClientMode.FIXED then Exit(True);
157+
if RSClient.Mode = ERSMode.FIXED then Exit(True);
158158
Result := Self.Tabs.GetActive() <> ERSChatTab.NONE;
159159
end;
160160

161161

162162
function TRSChat.Close(): Boolean;
163163
begin
164-
if RSClient.Mode = ERSClientMode.FIXED then Exit(False);
164+
if RSClient.Mode = ERSMode.FIXED then Exit(False);
165165
if Self.Tabs.GetActive() = ERSChatTab.NONE then Exit(True);
166166

167167
Self.Tabs.Get(Self.Tabs.GetActive()).Button.Click();

osrs/interfaces/gametabs/gametab.simba

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ type
1313
procedure TRSGameTab.SetupInterface();
1414
begin
1515
case RSClient.Mode of
16-
ERSClientMode.FIXED:
16+
ERSMode.FIXED:
1717
begin
1818
Self.Bounds.X1 := Target.Bounds.X2 - 214;
1919
Self.Bounds.X2 := Target.Bounds.X2 - 31;
2020
Self.Bounds.Y1 := Target.Bounds.Y2 - 298;
2121
Self.Bounds.Y2 := Target.Bounds.Y2 - 37;
2222
end;
2323

24-
ERSClientMode.RESIZABLE_CLASSIC:
24+
ERSMode.RESIZABLE_CLASSIC:
2525
begin
2626
Self.Bounds.X1 := Target.Bounds.X2 - 212;
2727
Self.Bounds.X2 := Target.Bounds.X2 - 29;
2828
Self.Bounds.Y1 := Target.Bounds.Y2 - 298;
2929
Self.Bounds.Y2 := Target.Bounds.Y2 - 37;
3030
end;
3131

32-
ERSClientMode.RESIZABLE_MODERN:
32+
ERSMode.RESIZABLE_MODERN:
3333
begin
3434
Self.Bounds.X1 := Target.Bounds.X2 - 193;
3535
Self.Bounds.X2 := Target.Bounds.X2 - 10;

osrs/interfaces/gametabs/gametabs.simba

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ begin
5555
Self.Bounds.Y2 := Target.Bounds.Y2;
5656

5757
case RSClient.Mode of
58-
ERSClientMode.FIXED:
58+
ERSMode.FIXED:
5959
begin
6060
Self.Bounds.X1 := Target.Bounds.X2 - 242;
6161
Self.Bounds.X2 := Target.Bounds.X2 - 2;
6262
Self.Bounds.Y1 := Target.Bounds.Y2 - 334;
6363
end;
6464

65-
ERSClientMode.RESIZABLE_CLASSIC:
65+
ERSMode.RESIZABLE_CLASSIC:
6666
begin
6767
Self.Bounds.X1 := Target.Bounds.X2 - 240;
6868
Self.Bounds.X2 := Target.Bounds.X2;
6969
Self.Bounds.Y1 := Target.Bounds.Y2 - 334;
7070
end;
7171

72-
ERSClientMode.RESIZABLE_MODERN:
72+
ERSMode.RESIZABLE_MODERN:
7373
begin
7474
Self.Bounds.X2 := Target.Bounds.X2;
7575

@@ -88,10 +88,10 @@ begin
8888
end;
8989

9090
case RSClient.Mode of
91-
ERSClientMode.FIXED, ERSClientMode.RESIZABLE_CLASSIC:
91+
ERSMode.FIXED, ERSMode.RESIZABLE_CLASSIC:
9292
Self.Tabs := TBoxArray.Create(Self.Bounds.TopLeft.Offset(6,1), 7, 2, 30, 33, [3, 265]);
9393

94-
ERSClientMode.RESIZABLE_MODERN:
94+
ERSMode.RESIZABLE_MODERN:
9595
begin
9696
// One row
9797
if Target.Width >= 948 then
@@ -147,7 +147,7 @@ function TRSGameTabs.GetCurrent(): ERSGametab;
147147
var
148148
tab: ERSGameTab;
149149
begin
150-
if (RSClient.Mode = ERSClientMode.RESIZABLE_MODERN) and (Target.CountColor(8639715, 0, Self.Tabs[ERSGameTab.LOGOUT-1]) > 0) then
150+
if (RSClient.Mode = ERSMode.RESIZABLE_MODERN) and (Target.CountColor(8639715, 0, Self.Tabs[ERSGameTab.LOGOUT-1]) > 0) then
151151
Exit(ERSGameTab.LOGOUT);
152152

153153
for tab := ERSGameTab.COMBAT to High(ERSGameTab) do

osrs/interfaces/interfacearea.simba

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ begin
1818
Self.Bounds.X1 := MainScreen.Bounds.X1;
1919

2020
case RSClient.Mode of
21-
ERSClientMode.FIXED:
21+
ERSMode.FIXED:
2222
begin
2323
Self.Bounds.X2 := MainScreen.Bounds.X2;
2424
Self.Bounds.Y2 := MainScreen.Bounds.Y2;
2525
end;
2626

27-
ERSClientMode.RESIZABLE_CLASSIC:
27+
ERSMode.RESIZABLE_CLASSIC:
2828
begin
2929
Self.Bounds.X2 := GameTabs.Bounds.X1 - 10;
3030
Self.Bounds.Y2 := Chat.Bounds.Y1;
3131
end;
3232

33-
ERSClientMode.RESIZABLE_MODERN:
33+
ERSMode.RESIZABLE_MODERN:
3434
begin
3535
Self.Bounds.X2 := GameTab.Bounds.X1 - 22;
3636
Self.Bounds.Y2 := Chat.Bounds.Y1;

0 commit comments

Comments
 (0)