# Interface Debugging Methods and utilities to debug interfaces. These are disabled by default, to enable them you must define the following compiler directive: ```pascal {$DEFINE WL_DEBUG_INTERFACES} ``` - - - ## Button.Draw ```pascal procedure TRSButton.Draw(img: TImage; color: Integer = $00FFFF); ``` Draws the current {ref}`TRSButton` on the `img` passed in. Example: ```pascal {$I WaspLib/osrs.simba} var img: TImage; begin img := Target.GetImage(); Bank.Buttons[ERSBankButtons.MENU].Draw(img); img.Show(); end; ``` - - - ## ButtonArray.Draw ```pascal procedure TRSButtonArray.Draw(img: TImage; color: Integer = $00FFFF); ``` Draws the current {ref}`TRSButtonArray` on the `img` passed in. Example: ```pascal {$I WaspLib/osrs.simba} var img: TImage; begin img := Target.GetImage(); Bank.Buttons.Draw(img); img.Show(); end; ``` - - - ## ScrollBar.Draw ```pascal procedure TRSScrollBar.Draw(img: TImage); ``` Draws the current {ref}`TRSScrollBar` on the `img` passed in. Example: ```pascal {$I WaspLib/osrs.simba} var img: TImage; begin img := Target.GetImage(); Bank.Scroll.Draw(img); img.Show(); end; ``` - - - ## DropDown.Draw ```pascal procedure TRSDropDown.Draw(img: TImage); ``` Draws the current {ref}`TRSDropDown` on the `img` passed in. Example: ```pascal {$I WaspLib/osrs.simba} var img: TImage; begin img := Target.GetImage(); Options.DropDowns[ERSOptionsDropDown.CLIENT_MODE].Draw(img); img.Show(); end; ``` - - - ## Interface.Draw ```pascal 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 {ref}`TImage` Example: ```pascal {$I WaspLib/osrs.simba} var img: TImage; begin img := Target.GetImage(); GoldScreen.Draw(img); img.Show(); end; ```