WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   what 's the frame name of QueueStats frame and LFGstats frame? (https://www.wowinterface.com/forums/showthread.php?t=58811)

longgegame 06-27-21 02:43 AM

what 's the frame name of QueueStats frame and LFGstats frame?
 
I cant use /fstack to get the frame name of them:(

this frame only shows up when mouseover the MinimapButton...

https://imgur.com/a/ULY0XGZ
https://imgur.com/a/gU1Yea6

there are photos of the frames...

I want to always show them, not only mouseover the MinimapButton...

Xrystal 06-27-21 04:37 AM

It looks like its a Tooltip frame.

I'm not sure if tooltips can be shown permanently, but the blizzard code for the minimap buttons in question should show how the tooltip is filled with its information so that you can put it in a frame you can make permanent in that eventuality.

/fstack on the minimap buttons will give you their name and finding their Blizzard code somewhere in the files downloaded from the game - such as at ( https://www.townlong-yak.com/framexml/live ) will help you identifiy the code blocks in question.


This might be what you are looking for. From the minimap.lua file.

Lua Code:
  1. function MiniMapInstanceDifficulty_OnEnter(self)
  2.     local _, instanceType, difficulty, _, maxPlayers, playerDifficulty, isDynamicInstance, _, instanceGroupSize, lfgID = GetInstanceInfo();
  3.     local isLFR = select(8, GetDifficultyInfo(difficulty))
  4.     if (isLFR and lfgID) then
  5.         GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT", 8, 8);
  6.         local name = GetLFGDungeonInfo(lfgID);
  7.         GameTooltip:SetText(RAID_FINDER, 1, 1, 1);
  8.         GameTooltip:AddLine(name);
  9.         GameTooltip:Show();
  10.     end
  11. end
  12. function GuildInstanceDifficulty_OnEnter(self)
  13.     local guildName = GetGuildInfo("player");
  14.     local _, instanceType, _, _, maxPlayers = GetInstanceInfo();
  15.     local _, numGuildPresent, numGuildRequired, xpMultiplier = InGuildParty();
  16.     -- hack alert
  17.     if ( instanceType == "arena" ) then
  18.         maxPlayers = numGuildRequired;
  19.     end
  20.     GameTooltip:SetOwner(self, "ANCHOR_BOTTOMLEFT", 8, 8);
  21.     GameTooltip:SetText(GUILD_GROUP, 1, 1, 1);
  22.     if ( xpMultiplier < 1 ) then
  23.         GameTooltip:AddLine(string.format(GUILD_ACHIEVEMENTS_ELIGIBLE_MINXP, numGuildRequired, maxPlayers, guildName, xpMultiplier * 100), nil, nil, nil, true);
  24.     elseif ( xpMultiplier > 1 ) then
  25.         GameTooltip:AddLine(string.format(GUILD_ACHIEVEMENTS_ELIGIBLE_MAXXP, guildName, xpMultiplier * 100), nil, nil, nil, true);
  26.     else
  27.         if ( instanceType == "party" and maxPlayers == 5 ) then
  28.             numGuildRequired = 4;
  29.         end
  30.         GameTooltip:AddLine(string.format(GUILD_ACHIEVEMENTS_ELIGIBLE, numGuildRequired, maxPlayers, guildName), nil, nil, nil, true);
  31.     end
  32.     GameTooltip:Show();
  33. end

longgegame 06-27-21 05:18 AM

Quote:

Originally Posted by Xrystal (Post 339474)
It looks like its a Tooltip frame.

I'm not sure if tooltips can be shown permanently, but the blizzard code for the minimap buttons in question should show how the tooltip is filled with its information so that you can put it in a frame you can make permanent in that eventuality.

THANK YOU ! BIG LOVE ! GOING TO TEST NOW


All times are GMT -6. The time now is 11:41 PM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2021 MMOUI