Tome of Teleportation

Tome of Teleportation

168k Downloads

Request: API to open Tome of Teleportation outside the AddOn

Toxicom opened this issue ยท 4 comments

commented

Description

Hello, I am Toxi from ToxiUI and have received a request to integrate Tome of Teleportation in to my AddOn, see Toxicom/toxiui#113

Basically I would call a function to open Tome of Teleportation from inside my AddOn, but after looking through your code, I can't find a function that I could call.

Could you please add a way for other addons to open Tome of Teleportation, or if a method already exists direct me to it?

Acceptance criteria

  • Tome of Teleportation can be opened by other AddOns
commented

Try TeleporterOpenFrame()

commented

That works, thank you

commented

Sorry, reopening the issue. Could you introduce a toggle function for the teleporter? That seems like a standard for all the WoW API frames.

function TeleporterToggle()
  if isVisible then
    TeleporterClose()
  else
    TeleporterOpenFrame()
  end
end
commented

You can use TeleporterSlashCmdFunction() to do that.