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}
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;
DropDown.Draw¶
procedure TRSDropDown.Draw(img: TImage);
Draws the current TRSDropDown on the img passed in.
Example:
{$I WaspLib/osrs.simba}
var
img: TImage;
begin
img := Target.GetImage();
Options.DropDowns[ERSOptionsDropDown.CLIENT_MODE].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;