Skip to content

Commit 9c81835

Browse files
committed
move all interface debugging into it's own file and made it optional
1 parent 1853f4a commit 9c81835

File tree

14 files changed

+413
-385
lines changed

14 files changed

+413
-385
lines changed

osrs.simba

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Summary: It includes this file until the current file is reached.
175175

176176

177177
{$IFNDEF WL_SETUP_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/setup.simba}
178+
{$IFNDEF WL_INTERFACE_DEBUGGING_INCLUDED} {$INCLUDE_ONCE osrs/interfaces/debugging.simba}
178179
{$IFNDEF WL_OVERRIDES_INCLUDED} {$INCLUDE_ONCE osrs/overrides.simba}
179180

180181
{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}
@@ -186,4 +187,4 @@ Summary: It includes this file until the current file is reached.
186187
{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}
187188
{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}
188189
{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}
189-
{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}
190+
{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}{$ENDIF}

osrs/interfaces/chat/chat.simba

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -519,36 +519,6 @@ begin
519519
Result := Target.HasColor(Self.Colors[ERSChatColor.BLUE], 0, 15, Self.InputLine);
520520
end;
521521

522-
523-
procedure TRSChat.Draw(img: TImage);
524-
var
525-
tab: TRSChatTab;
526-
begin
527-
if not Self.IsOpen() then Exit;
528-
529-
img.DrawColor := $00FFFF;
530-
img.DrawBox(Self.Bounds);
531-
img.DrawColor := $FFFFFF;
532-
img.DrawBoxArray(Self.MessageLines, False);
533-
img.DrawColor := $00FF00;
534-
img.DrawBox(Self.InputLine);
535-
img.DrawColor := $FF0000;
536-
img.DrawBox(Self.InputLine);
537-
538-
Self.Scroll.Draw(img);
539-
for tab in Self.Tabs.Tabs do
540-
tab.Button.Draw(img);
541-
end;
542-
543-
procedure ShowOnTarget(chat: TRSChat); overload;
544-
var
545-
img: TImage;
546-
begin
547-
img := Target.GetImage();
548-
chat.Draw(img);
549-
img.Show();
550-
end;
551-
552522
var
553523
(*
554524
## Chat variable

osrs/interfaces/chat/make.simba

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -630,31 +630,6 @@ begin
630630
end;
631631
end;
632632

633-
procedure TRSMake.Draw(img: TImage);
634-
begin
635-
if not Self.IsOpen() then Exit;
636-
637-
img.DrawColor := $00FFFF;
638-
img.DrawBox(Chat.Bounds);
639-
img.DrawColor := $FFFFFF;
640-
img.DrawBoxArray(Self.QuantityButtonBoxes, False);
641-
img.DrawColor := $0000FF;
642-
img.DrawBoxArray(Self.GetQuantityBoxes(), False);
643-
img.DrawColor := $00FF00;
644-
img.DrawBoxArray(Self.GetItemBoxes(), False);
645-
img.DrawColor := $FF0000;
646-
img.DrawBox(Self.GetHintBox());
647-
end;
648-
649-
procedure ShowOnTarget(make: TRSMake); overload;
650-
var
651-
img: TImage;
652-
begin
653-
img := Target.GetImage();
654-
make.Draw(img);
655-
img.Show();
656-
end;
657-
658633
var
659634
(*
660635
## Make variable

0 commit comments

Comments
 (0)