WoW:API IsFishingLoot: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
this function only for estimate finsh loot
{{wowapi}} __NOTOC__
IsFishingLoot
--------------
Used to identify that the loot window should display the fish graphic


elseif( IsFishingLoot() ) then
This function is only for determining if the loot window is related to fishing.


PlaySound("FISHING REEL IN");


LootFramePortraitOverlay:SetTexture("Interface\\LootFrame\\FishingLoot-Icon");
=== Returns ===
<!-- List each return value, together with its type -->


{{Template:WoW API}}
:;isTrue : Boolean - is it true
 
== Example ==
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
This will identify that the loot window should display the fish graphic, then play the sound and update the image.
if( IsFishingLoot() ) then
    PlaySound("FISHING REEL IN");
    LootFramePortraitOverlay:SetTexture("Interface\\LootFrame\\FishingLoot-Icon");
end

Revision as of 22:37, 26 September 2006

WoW API < IsFishingLoot

This function is only for determining if the loot window is related to fishing.


Returns

isTrue
Boolean - is it true

Example

This will identify that the loot window should display the fish graphic, then play the sound and update the image.

if( IsFishingLoot() ) then
   PlaySound("FISHING REEL IN");
   LootFramePortraitOverlay:SetTexture("Interface\\LootFrame\\FishingLoot-Icon");
end