Interface Debugging

Methods and utilities to debug interfaces. These are disabled by default, to enable them you must define the following compiler directive:

{$DEFINE WL_DEBUG_INTERFACES}

Button.Draw

procedure TRSButton.Draw(img: TImage; color: Integer = $00FFFF);

Draws the current TRSButton on the img passed in.

Example:

{$I WaspLib/osrs.simba}
var
  img: TImage;
begin
  img := Target.GetImage();
  Bank.Buttons[ERSBankButtons.MENU].Draw(img);
  img.Show();
end;

ButtonArray.Draw

procedure TRSButtonArray.Draw(img: TImage; color: Integer = $00FFFF);

Draws the current TRSButtonArray on the img passed in.

Example:

{$I WaspLib/osrs.simba}
var
  img: TImage;
begin
  img := Target.GetImage();
  Bank.Buttons.Draw(img);
  img.Show();
end;

ScrollBar.Draw

procedure TRSScrollBar.Draw(img: TImage);

Draws the current TRSScrollBar on the img passed in.

Example:

{$I WaspLib/osrs.simba}
var
  img: TImage;
begin
  img := Target.GetImage();
  Bank.Scroll.Draw(img);
  img.Show();
end;


Interface.Draw

procedure TRSInterface.Draw(img: TImage);
procedure TRSGameTabs.Draw(img: TImage);
procedure TRSChat.Draw(img: TImage);
procedure TRSMake.Draw(img: TImage);
procedure TRSBank.Draw(img: TImage);
procedure TRSBankPin.Draw(img: TImage);
procedure TRSCollectionBox.Draw(img: TImage);
procedure TRSDepositBox.Draw(img: TImage);
procedure TRSShop.Draw(img: TImage);
procedure TRSGoldScreen.Draw(img: TImage);
procedure TRSSilverScreen.Draw(img: TImage);

Draws several parts of the interface on a TImage

Example:

{$I WaspLib/osrs.simba}
var
  img: TImage;
begin
  img := Target.GetImage();
  GoldScreen.Draw(img);
  img.Show();
end;