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 TScrollBar.Draw(img: TImage);
Draws the current TScrollBar type on the img passed in.
Example:
{$I WaspLib/main.simba}
var
img: TImage;
begin
img := Target.GetImage();
Bank.Scroll.Draw(img);
img.Show();
end;
DropDown.Draw¶
procedure TDropDown.Draw(img: TImage);
Draws the current TDropDown type on the img passed in.
Example:
{$I WaspLib/main.simba}
var
img: TImage;
begin
img := Target.GetImage();
Options.DropDowns[EOptionsDropDown.CLIENT_MODE].Draw(img);
img.Show();
end;
Interface.Draw¶
procedure TInterface.Draw(img: TImage);
procedure TGameTabs.Draw(img: TImage);
procedure TChat.Draw(img: TImage);
procedure TMake.Draw(img: TImage);
procedure TBank.Draw(img: TImage);
procedure TBankPin.Draw(img: TImage);
procedure TCollectionBox.Draw(img: TImage);
procedure TDepositBox.Draw(img: TImage);
procedure TShop.Draw(img: TImage);
procedure TGoldScreen.Draw(img: TImage);
procedure TSilverScreen.Draw(img: TImage);
procedure TLamp.Draw(img: TImage);
Draws several parts of the interface on a TImage
Example:
{$I WaspLib/main.simba}
var
img: TImage;
begin
img := Target.GetImage();
GoldScreen.Draw(img);
img.Show();
end;