# Logout Methods to interact with the logout tab. - - - ## Logout.IsOpen ```pascal function TRSLogout.IsOpen(): Boolean; ``` Returns true if the logout gametab is open, false if it's not. Example: ```pascal WriteLn Logout.IsOpen(); ``` - - - ## Logout.Open ```pascal function TRSLogout.Open(): Boolean; ``` Attempts to open the logout tab, returns true if it succeeds. Example: ```pascal WriteLn Logout.Open(); ``` - - - ## Logout.GetButtons ```pascal function TRSLogout.GetButtons(): TRSButtonArray; ``` Returns the logout and world switcher buttons. Example: ```pascal Debug(Logout.GetButtons()); ``` - - - ## Logout.GetButton ```pascal function TRSLogout.GetButton(button: ERSLogoutButton): TRSButton; ``` Returns a logout button. Example: ```pascal Debug([Logout.GetButton(ERSLogoutButton.CLICK_HERE)]); ``` - - - ## Logout.GetStarButtons ```pascal function TRSLogout.GetStarButtons(): TRSButtonArray; ``` Returns the rating star buttons. Example: ```pascal Debug(Logout.GetStarButtons()); ``` - - - ## Logout.GetStarButton ```pascal function TRSLogout.GetStarButton(star: Int32): TRSButton; ``` Returns a star button. Example: ```pascal Debug([Logout.GetStarButton(3)]); ``` - - - ## Logout.IsRated ```pascal function TRSLogout.IsRated(): Boolean; ``` Returns true if a star button was clicked. Example: ```pascal WriteLn Logout.IsRated(); ``` - - - ## Logout.GetWorldSwitcherButtons ```pascal function TRSLogout.GetWorldSwitcherButtons(): TRSButtonArray; ``` Returns world switcher buttons. Example: ```pascal Debug(Logout.GetWorldSwitcherButtons()); ``` - - - ## Logout.GetWorldSwitcherButton ```pascal function TRSLogout.GetWorldSwitcherButton(button: ERSLogoutWorldSwitcherButton): TRSButton; ``` Returns a world switcher button. Example: ```pascal Debug([Logout.GetWorldSwitcherButton(ERSLogoutWorldSwitcherButton.CLOSE)]); ``` - - - ## Logout.IsWorldSwitcherOpen ```pascal function TRSLogout.IsWorldSwitcherOpen(): Boolean; ``` Returns true if the world switcher is open. Example: ```pascal WriteLn Logout.IsWorldSwitcherOpen(); ``` - - - ## Logout.CloseWorldSwitcher ```pascal function TRSLogout.CloseWorldSwitcher(): Boolean; ``` Closes the world switcher. Example: ```pascal Logout.CloseWorldSwitcher(); ``` - - - ## Logout.ClickLogout ```pascal function TRSLogout.ClickLogout(attempts: Int32 = 5; time: Int32 = 20000): Boolean; ``` Clicks the logout button. Returns true if we succesfully logout of the game. Example: ```pascal WriteLn Logout.ClickLogout(); ``` - - - ## var Logout Global TRSLogout variable.