RSS

Четверг, 25.04.2024, 01:35
Главная » WoW API » API Виджеты » Квестовый POI Фрейм »

QuestPOIFrame:DrawBlob(QuestId, Draw)

[ править ]
Draws the Blob for the Quest.
[клоны]
Draws the Blob for the Quest.. If a quest has a area where the quest need to be completed at, this function will draw a Blob to show that area.

Also, Drawing it more than once does nothing, to make any changes to it you have to QuestPOIFrame:DrawBlob(ID,false)... Make changes ... QuestPOIFrame:DrawBlob(ID,true)

Signature:
Code
QuestPOIFrame:DrawBlob(QuestId, Draw)

Arguments:
  • QuestId - The Id of the Quest (number)
  • Draw - Draw the Blob (True = Yes, False = No) (bool)

Examples:
local QuestPOIFrame = CreateFrame("QuestPOIFrame",nil ,UIParent);
QuestPOIFrame:SetHeight(WorldMapBlobFrame:GetHeight());
QuestPOIFrame:SetWidth(WorldMapBlobFrame:GetWidth());
QuestPOIFrame:Show();

QuestPOIFrame.texture = QuestPOIFrame:CreateTexture();
QuestPOIFrame.texture:SetAllPoints()
--QuestPOIFrame.texture:SetTexture(1, 1, 1, 1.0);
QuestPOIFrame:SetFillTexture("Interface\WorldMap\UI-QuestBlob-Inside");
QuestPOIFrame:SetBorderTexture("Interface\WorldMap\UI-QuestBlob-Outside");
QuestPOIFrame:SetFillAlpha(128);
QuestPOIFrame:SetBorderAlpha(192);
QuestPOIFrame:SetBorderScalar(1.0);

QuestPOIFrame:DrawBlob(ID, true);

Также смотрите: Квестовый POI Фрейм
Ссылки: http://wowprogramming.com/docs/widgets/QuestPOIFrame/DrawBlob