Patch 4.4 (Cataclysm Classic) and GetItemCooldown
WoW Interface Forums » Lua/XML Help
by Fizzlemizz
5d ago
C_Container.GetItemCooldown ..read more
Visit website
How to track the scroll position of a WowScrollBoxList
WoW Interface Forums » Lua/XML Help
by LudiusMaximus
3w ago
I would like my addon to keep track of the current scroll position of the achievements frame scroll box. But the scroll box only seems to have an OnMouseWheel script. Lua Code: AchievementFrameAchievements.ScrollBox:HookScript("OnMouseWheel", function(self)   print(AchievementFrameAchievements.ScrollBox.scrollPercentage) end) The same goes for its scroll bar. Lua Code: AchievementFrameAchievements.ScrollBar:HookScript("OnMouseWheel", function(self)   print(AchievementFrameAchievements.ScrollBox.scrollPercentage) end) But what if the user changes the scroll ..read more
Visit website
Function: ignore first value for WA's
WoW Interface Forums » Lua/XML Help
by masteryogurt
3w ago
Here's what I'm trying to do, make WeakAuras that trigger from a bosses given ability after X number of casts. I can make a WA trigger when boss does X ability, easy. The more specific thing is...trigger when boss does X ability, after cast #3 of it, for example. So, ignore the first two, only trigger the WA upon the third cast. Not seeing this easily done in the drop down menus, so thinking it's custom code I have to input. Any suggestions? Thanks. Actually figured this out how to do upon combat log spell cast start. Just go to !count, input the count number. What I have yet to figure o ..read more
Visit website
StatusBar / Texture - Width/Coloring issues
WoW Interface Forums » Lua/XML Help
by Xrystal
1M ago
That is a good point. I totally forgot it didn't have a height either. But, I somehow managed to get things to work again as a status bar. Can't think what is different outside of using a different texture. Instead of setting BarTexture in the xml to an atlas ( example from one of the blizzard files) , I used SetStatusBarTexture with the texture used in the example here ( https://warcraft.wiki.gg/wiki/UIOBJECT_StatusBar ). I changed the following in ApplyLayout after changing the Frame to StatusBar in the xml and removing the alternative bar texture section. Lua Code: -- Set up the BarT ..read more
Visit website
Spell power increase message and animation
WoW Interface Forums » Lua/XML Help
by SDPhantom
1M ago
This seems to work. I changed it to initialize on PLAYER_LOGIN and listen for SPELL_POWER_CHANGED. Many character-related data functions don't return meaningful values on load and require initial data from the server. This is what PLAYER_LOGIN signifies. Blizzard's PaperDollFrame reacts to PLAYER_DAMAGE_DONE_MODS along with a handful of others. As these events tend to fire in rapid bursts, Blizzard opts to hand the events off to an OnUpdate script in order to consolidate these bursts into a single update call for performance reasons. This code doesn't do any significant processing, so it isn't ..read more
Visit website
Is there way to force what is within onmouseover?
WoW Interface Forums » Lua/XML Help
by Xrystal
1M ago
You have to assign which unit ( at creation usually ) is allocated to that cell. And then probably some code to tell the game to show it if that unit exists and hide if not. The built in mouseover functionality then checks to see if there is a unit linked to the frame and reports that ( I assume this is the case ) . At least that seems to be the case when I use it in my unit frame code ..read more
Visit website
XML to Lua?
WoW Interface Forums » Lua/XML Help
by Codger
1M ago
Lua Code: local frame = CreateFrame("Frame", "SimpleFrame", UIParent, "BasicFrameTemplateWithInset") frame:SetSize(150, 150) frame:SetPoint("CENTER")   local closeButton = CreateFrame("Button", nil, frame, "UIPanelCloseButton") closeButton:SetPoint("TOPRIGHT", -4, -4)   local insetFrame = CreateFrame("Frame", nil, frame, "InsetFrameTemplate") insetFrame:SetPoint("TOPLEFT", 10, -26) insetFrame:SetPoint("BOTTOMRIGHT", -6, 26)   local okButton = CreateFrame("Button", nil, frame, "UIPanelButtonTemplate") okButton:SetText("Okay") okButton:SetSize(90, 22 ..read more
Visit website
What does this code do?
WoW Interface Forums » Lua/XML Help
by SDPhantom
1M ago
Quote: Originally Posted by Codger (Post 343658) Lua Code: local frame1 = {} myAddon.frame1 = frame1 I'm guessing it's another way of setting up a namespace? On the surface, this is just storing one table into another and keeping a local reference to it. Taking the rest of the message into account, I'm assuming the real question is, "What is the 'local reference' for?" A local used in this way is acting as a cache as it's quicker to access than trying to grab it from the table again. Trying to grab anything from a table is known as an "index operation". Just like any othe ..read more
Visit website
Help figuring out a creation of phasing icon on grid2
WoW Interface Forums » Lua/XML Help
by michaelsp
1M ago
The retail phased blizzard code (and the grid2 code) only displays the phased icon if the player is less than 100 yards away, because if the player is not nearby the "phased" status has no sense/meaning (by definition a player in another instance cannot be phased from you because he is already in another other zone/world). The blizzard classic code was working in similar way, but i did not review the code from recent classic patches so maybe they changed some code and behaviour. So im not sure if the screenshot provided in this thread represent a bugged behaviour in classic or not. Can Xully ..read more
Visit website
Where do I find information on Templates?
WoW Interface Forums » Lua/XML Help
by Xrystal
1M ago
As an alternative to downloading yourself there are 2 sites I have on my shortcut list that I utilise if I haven't downloaded a recent version of the files. https://github.com/Gethe/wow-ui-source - has all versions of wow https://www.townlong-yak.com/framexml/live - not sure if they have classic versions ..read more
Visit website

Follow WoW Interface Forums » Lua/XML Help on FeedSpot

Continue with Google
Continue with Apple
OR