Skip to content

Commit a1ddc7b

Browse files
authored
Merge pull request #129 from jacz24/dev
Add Verdana fonts to OCR
2 parents deac59e + 67366d8 commit a1ddc7b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

osrs/interfaces/mainscreen/shop.simba

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,3 @@ var
436436
Global {ref}`TRSShop` variable.
437437
*)
438438
Shop: TRSShop;
439-
440-
441-
function TRSGameTabs.GetCurrent(): ERSGameTab; override;
442-
begin
443-
Result := inherited;
444-
if (Result = ERSGameTab.NONE) and Shop.IsOpen() then
445-
Result := ERSGameTab.INVENTORY;
446-
end;

osrs/overrides.simba

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ begin
9595

9696
if Bank.IsOpen() then Exit(ERSGameTab.INVENTORY);
9797

98+
if Shop.IsOpen() then Exit(ERSGameTab.INVENTORY);
99+
98100
if not HouseOptions.IsOpen() then Exit;
99101
Result := ERSGameTab.OPTIONS;
100102
if RSMouseZoom.SettingChecked then Exit;

utils/ocr.simba

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ type
9797
BOLD_SHADOW: TPixelFont;
9898
QUILL_8: TPixelFont;
9999
QUILL: TPixelFont;
100+
VERDANA_13: TPixelFont;
101+
VERDANA_13_Bold:TPixelFont;
102+
VERDANA_15: TPixelFont;
100103
Unzipping: Boolean;
101104
Timeout: TCountDown;
102105

@@ -126,6 +129,10 @@ begin
126129

127130
Self.QUILL_8 := OCR.Engine.LoadFont(Self.PATH + 'Quill 8', 4);
128131
Self.QUILL := OCR.Engine.LoadFont(Self.PATH + 'Quill', 4);
132+
133+
Self.VERDANA_13 := OCR.Engine.LoadFont(Self.PATH + 'Verdana 13', 4);
134+
Self.VERDANA_13_Bold := OCR.Engine.LoadFont(Self.PATH + 'Verdana 13 Bold', 4);
135+
Self.VERDANA_15 := OCR.Engine.LoadFont(Self.PATH + 'Verdana 15', 4);
129136
end;
130137

131138
procedure TRSFonts._UnzipFinished(constref result: TASyncUnzipResult);

0 commit comments

Comments
 (0)