Gametabs¶
Gametabs is the core of every tab, like inventory, stats, and so on. This is also the file that includes every tab’s code.
type EGametab = (
tabCombat,
tabStats,
tabQuests,
tabInventory,
tabEquipment,
tabPrayer,
tabMagic,
tabClan,
tabFriends,
tabIgnores,
tabLogout,
tabOptions,
tabEmotes,
tabMusic
);
type TRSGametab = record
Tabs: TBoxArray;
Keybindings: TIntegerArray;
FKeysEnabled: Boolean;
end;
var Gametabs¶
Variable that stores functions and properties relating to gametabs.
Gametab.ToggleFKeys¶
procedure TRSGametab.ToggleFKeys(const Enable: Boolean);
Enables support for FKeys to open tabs.
Gametab.GetBounds¶
function TRSGametab.GetBounds(Tab: EGametab): TBox;
Returns the bounds of the tab-button
Gametab.PointToSlot¶
function TRSGametab.PointToSlot(pt: TPoint): Int32;
Returns the tab-id under the location pt
, value is returned as
an integer, as it will return -1
if it fails. To convert it to a
gametab is just a matter of casting it like EGameTab(theValue)
Gametab.IsOpen¶
function TRSGametab.IsOpen(Tab:EGametab; maxWait:Int32=0): Boolean;
Checks if the given tab is open or now. By default it wont wait (expecting it to open).
Gametab.Open¶
function TRSGametab.Open(Tab: EGametab; tries: Int32=2): Boolean;
Opens the given gametab, by default it retries twice.
Gametab.Open¶
procedure TRSGametab.Hover(Tab:EGametab; Condition:Boolean=True);
Only moves the mouse over the given tab.