Sets a Texture object to show the appropriate flight map texture. Only has effect while interacting with a flight master (i.e. between the TAXIMAP_OPENED and TAXIMAP_CLOSED events).


See also Taxi/Flight functions.

Signature:

SetTaxiMap(texture)

Arguments:

  • texture - A Texture object (table)

Examples:

-- Create a frame, and set it to the taxi map
TestFrame = CreateFrame("Frame", "TestFrame", UIParent)
TestFrame:SetHeight(200)
TestFrame:SetWidth(200)
TestFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
TestFrameTexture = TestFrame:CreateTexture("TestFrameTexture", "BACKGROUND")
TestFrameTexture:SetAllPoints()

SetTaxiMap(TestFrameTexture)