Skip to content

Commit 8e67691

Browse files
committed
feat: start of bankpin
1 parent c115fb1 commit 8e67691

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

docs/docgen/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
# -- Project information -----------------------------------------------------
2121

22-
project = u'SRL-T'
23-
description = u'SRL-T is a fork of SRL-Development. SRL is a library for Simba to interact with RuneScape.'
22+
project = u'SRLT'
23+
description = u'SRLT stands for SRL Tribute. SRLT is a library for Simba to interact with OldSchool RuneScape.'
2424
copyright = u'2020, SRL Group'
2525
author = u'SRL Group'
2626

docs/docgen/docgen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import re
99
import os, sys
1010

11-
DOCNAME = 'SRL-T'
11+
DOCNAME = 'SRLT'
1212
IGNORE_FOLDERS = ['.git', '.github', 'docgen']
1313
FILE_EXTENSIONS = ['.simba']
1414

@@ -162,4 +162,4 @@ def generate(root):
162162
if os.path.exists('source'):
163163
for filename in os.listdir('source'):
164164
os.remove('source' + os.sep + filename)
165-
os.rmdir('source')
165+
os.rmdir('source')

osrs.simba

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
{$IFNDEF SRLT_MAPLOADER_INCLUDED} {$INCLUDE_ONCE osrs/map/maploader.simba}
4949
{$IFNDEF SRLT_MAP_INCLUDED} {$INCLUDE_ONCE osrs/map/map.simba}
5050
{$IFNDEF SRLT_MAPDEBUGGER_INCLUDED} {$INCLUDE_ONCE osrs/map/mapdebugger.simba}
51-
{$IFNDEF SRLT_BANK_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/mainscreen/bank.simba}
51+
{$IFNDEF SRLT_BANKPIN_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/mainscreen/bankpin.simba}
52+
{$IFNDEF SRLT_BANK_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/mainscreen/bank.simba}
5253
{$IFNDEF SRLT_COLORFINDER_INCLUDED} {$INCLUDE_ONCE osrs/mainscreen/colorfinder.simba}
5354
{$IFNDEF SRLT_HITSPLATS_INCLUDED} {$INCLUDE_ONCE osrs/mainscreen/hitsplats.simba}
5455

@@ -103,3 +104,4 @@
103104
{$ENDIF}
104105
{$ENDIF}
105106
{$ENDIF}
107+
{$ENDIF}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
(*
2+
# BankPin
3+
Methods to interact with the bank pin interface.
4+
*)
5+
6+
{$DEFINE SRLT_BANKPIN_INCLUDED}
7+
{$INCLUDE_ONCE SRLT/osrs.simba}
8+
9+
10+
type
11+
TRSBankPin = type TRSInterface;
12+
13+
procedure TRSBankPin.SetupInterface();
14+
begin
15+
with InterfaceArea do
16+
begin
17+
Self.Bounds.X1 := Max(Floor(Center.X-(Width-1)/2), Floor(Center.X-487/2));
18+
Self.Bounds.X2 := Min(Floor(Center.X+(Width-1)/2), Floor(Center.X +487/2));
19+
Self.Bounds.Y1 := Max(Floor(Center.Y-(Height-3)/2), Floor(Center.Y-799/2));
20+
Self.Bounds.Y2 := Min(Floor(Center.Y+(Height-3)/2), Floor(Center.Y+799/2));
21+
end;
22+
23+
end;
24+

0 commit comments

Comments
 (0)