Skip to content

Commit 6e63e8b

Browse files
committed
more docs fixes
1 parent 1e16dc6 commit 6e63e8b

20 files changed

+194
-249
lines changed

docs/docgen/conf.py

Lines changed: 0 additions & 170 deletions
This file was deleted.

docs/docgen/layout.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/images/logout.png

76.6 KB
Loading

docs/images/logout_button.png

76.5 KB
Loading

docs/images/logout_buttons.png

76.5 KB
Loading

docs/images/logout_rating.png

76.6 KB
Loading

docs/images/logout_ratings.png

76.5 KB
Loading

osrs.simba

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*
2-
## SRLT
2+
# SRLT
33
SRLT is a library used to bot OldSchool RuneScape with Simba 2.0.
44
SRLT stands for SRL Tribute and it's heavily inspired in previous work done by
55
the SRL Community.
@@ -10,7 +10,7 @@ less confusing way.
1010
*)
1111

1212
(*
13-
### Compile Directives
13+
## Compile Directives
1414
```pascal
1515
{$DEFINE SRLT_DEBUG_MOUSE}
1616
{$DEFINE SRLT_DISABLE_REMOTEINPUT}
@@ -41,6 +41,7 @@ They should be self-explanatory.
4141
{$IFNDEF SRLT_ITEMFINDER_INCLUDED} {$INCLUDE_ONCE osrs/finders/items/itemfinder.simba}
4242
{$IFNDEF SRLT_SPELLFINDER_INCLUDED} {$INCLUDE_ONCE osrs/finders/spells/spellfinder.simba}
4343
{$IFNDEF SRLT_PRAYERFINDER_INCLUDED} {$INCLUDE_ONCE osrs/finders/prayer/prayerfinder.simba}
44+
{$IFNDEF SRLT_DATA_INCLUDED} {$INCLUDE_ONCE osrs/data/data.simba}
4445

4546
{$IFNDEF SRLT_INTERFACE_CORE_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/interface.simba}
4647
{$IFNDEF SRLT_LOGIN_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/login.simba}
@@ -156,3 +157,4 @@ They should be self-explanatory.
156157
{$ENDIF}
157158
{$ENDIF}
158159
{$ENDIF}
160+
{$ENDIF}

osrs/data/data.simba

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(*
2-
## Data
2+
# Data
33
This page is about fetching OSRS data with SRLT.
44
SRLT has several tools to get information about items, npcs, weapons, ...
55
*)
@@ -8,6 +8,10 @@ SRLT has several tools to get information about items, npcs, weapons, ...
88
{$INCLUDE_ONCE SRLT/osrs.simba}
99

1010
type
11+
(*
12+
## TItemData
13+
Record responsible for providing item information in SRLT.
14+
*)
1115
TItemData = record
1216
DefinitionsJSON, PricesJSON: TJSONParser;
1317
Filename: String;
@@ -218,7 +222,3 @@ end;
218222

219223
var
220224
ItemData: TItemData;
221-
begin
222-
ItemData.Setup();
223-
WriteLn itemData.GetPrice('abyssal whip');
224-
end;

osrs/interfaces/chat/make.simba

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,17 +294,15 @@ begin
294294
end;
295295

296296
(*
297-
### Make.IndexOfQuantity
297+
### Make.IsQuantitySelected
298298
```pascal
299-
function TRSMake.IndexOfQuantity(amount: Integer): Integer;
299+
function TRSMake.IsQuantitySelected(idx: Integer): Boolean;
300300
```
301-
Finds the index of a quantity button by the specified `amount`.
302-
If the `amount` we are looking for, the custom quantity button is returned,
303-
otherwise the result is `-1`.
301+
Checks if the specified `idx` quantity button is currently selected.
304302

305303
Example:
306304
```pascal
307-
WriteLn Make.IndexOfQuantity(Make.QUANTITY_ALL);
305+
WriteLn Make.IsQuantitySelected(Make.QUANTITY_ALL);
308306
```
309307
*)
310308
function TRSMake.IsQuantitySelected(idx: Integer): Boolean;

0 commit comments

Comments
 (0)