Forum: Lua/XML Help
04-14-24, 01:56 PM
|
Replies: 1
Views: 7,100
Spell power increase message and animation
Hello,
I created this script for display a message whenever spell power get increased. I'd like to make the animation repeat only once. Are there better methods than the ones I'm using? What about...
|
Forum: Lua/XML Help
02-20-24, 10:43 AM
|
Replies: 3
Views: 6,730
Taken from this:...
Taken from this: https://github.com/nickbender/wow-interface/blob/master/ElvUI_Config/libs/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua
|
Forum: Lua/XML Help
02-20-24, 07:45 AM
|
Replies: 3
Views: 6,730
Centering texture
Hello,
Since the widgets provided by the AceGUI library have their position locked, I rewrote the widget from scratch. In the final result, however, you notice that the lower and right sides of the...
|
Forum: Lua/XML Help
02-05-24, 04:32 PM
|
Replies: 1
Views: 5,865
Dealing with templates and OOP
This is the first time I try to apply OOP in Lua. My goal is to create a template as if it were an object, without using the mixin.
XML code:
<Frame name="TemplateListViewTemplate"...
|
Forum: Lua/XML Help
01-10-24, 07:29 AM
|
Replies: 3
Views: 3,442
The original code was
local function...
The original code was
local function SetWidgetScript(frame,method)
if frame:IsShown() then
for i = 1, #frame.buttons do
frame.buttons[i]:HookScript("OnMouseDown", method)
...
|
Forum: Lua/XML Help
01-09-24, 05:35 PM
|
Replies: 3
Views: 3,442
Stack overflow
May I ask why this code goes into stack overflow
local function SetWidgetScript(frame,method)
if frame:IsShown() then
for i = 1, #frame.buttons do
...
|
Forum: Lua/XML Help
12-20-23, 06:48 AM
|
Replies: 2
Views: 3,095
API IsSpellKnown
From https://wowwiki-archive.fandom.com/wiki/API_IsSpellKnown
isKnown = IsSpellKnown(spellID, isPetSpell)
Arguments
spellID: integer - the spell ID number
isPetSpell: boolean (optional) - if true,...
|
Forum: Lua/XML Help
10-18-23, 01:27 PM
|
Replies: 1
Views: 2,603
Cast spell by macro/Lua
There's a way to cast a spell in a Lua Script macro? This code
/run if GetTotemInfo(2) then CastSpellByName("Fire Nova"); else CastSpellByName("Searing Totem"); CastSpellByName("Fire Nova");...
|
Forum: Lua/XML Help
09-27-23, 12:45 PM
|
Replies: 5
Views: 1,582
Solved, thank you!
local f =...
Solved, thank you!
local f = CreateFrame("GameTooltip", "MyGameTooltip", UIParent, "GameTooltipTemplate")
f:SetOwner(UIParent, "ANCHOR_NONE")
f:SetSpellByID(27217) -- Drain Soul
local n = 2 --start...
|
Forum: Lua/XML Help
09-27-23, 09:44 AM
|
Replies: 5
Views: 1,582
|
Forum: Lua/XML Help
09-27-23, 07:52 AM
|
Replies: 5
Views: 1,582
Can't read GameTooltip right text
This script should print the information reported in the GameTooltip created in this way. Specifically, it should print
—› Rank 5
—› 30 yd range
local f = CreateFrame("GameTooltip",...
|
Forum: Lua/XML Help
09-20-23, 06:20 AM
|
Replies: 0
Views: 1,291
Updated: GCD proof cooldown tracking
There are some cooldowns that can decrease their remaining time thanks to talents or set bonuses.
My intent is to keep track of the remaining cooldown time so that any change in the remaining time is...
|
Forum: Lua/XML Help
09-09-23, 12:58 PM
|
Replies: 4
Views: 2,045
|
Forum: Lua/XML Help
09-07-23, 11:48 AM
|
Replies: 4
Views: 2,045
I'll try to explain better with an example:
-...
I'll try to explain better with an example:
- Immolate is active on the target usable == true
- The conflagrate is ready duration == 0
- I cast Incinerate, and the icon is displayed
- But if I try to...
|
Forum: Lua/XML Help
08-25-23, 12:43 PM
|
Replies: 4
Views: 2,045
Ignoring global cooldown
Greetings,
I've created an icon that lights up when a spell is ready to use. Sometimes though, the icon blinks (disappears for a moment): I think it's a problem due to the global cooldown. I tried to...
|
Forum: Lua/XML Help
05-16-23, 06:22 AM
|
Replies: 1
Views: 1,344
|
Forum: Lua/XML Help
05-09-23, 06:54 AM
|
Replies: 4
Views: 1,570
Appending function properly
First I defined the `AppendScript` function
local mt = {
AppendScript = function(self, handler, method)
local func = self:GetScript(handler)
self:SetScript(handler,...
|
Forum: Lua/XML Help
04-25-23, 06:45 AM
|
Replies: 1
Views: 1,449
Editbox and links
How can I make an editbox capable to accept link from spell and item? I just need it to be plain text, without the text being formatted.
|
Forum: Lua/XML Help
04-20-23, 08:01 AM
|
Replies: 1
Views: 1,323
Drawing SVG out of XML
Scalable Vector Graphics (SVG) is an XML-based vector image format for defining two-dimensional graphics, having support for interactivity and animation. The SVG specification is an open standard...
|
Forum: Lua/XML Help
04-15-23, 07:03 AM
|
Replies: 1
Views: 1,417
Relative path file
Hello. In the folder where the .lua, .xml and .toc files are present, there is a subfolder called "media" where the "thumb.blp" file is present. What is the right syntax to load this file? I...
|
Forum: Lua/XML Help
04-08-23, 02:49 PM
|
Replies: 7
Views: 2,783
This is the result for the...
This is the result for the ButtonUp:
https://i.imgur.com/hp4CtiL.jpg
As you can see, there is a huge margin between the button and the edges. as you can see, there is a huge margin between the...
|
Forum: Lua/XML Help
04-03-23, 04:02 AM
|
Replies: 7
Views: 2,783
|
Forum: Lua/XML Help
04-02-23, 08:18 AM
|
Replies: 7
Views: 2,783
|
Forum: Lua/XML Help
04-01-23, 05:31 PM
|
Replies: 7
Views: 2,783
FauxScrollFrameTemplate source code
Hello. Where I can find FauxScrollFrameTemplate source code? I'd like to know which the Button Up and Button Down textures are, and if there is a way to know all the WoW UI textures.
Can you help me?
|
Forum: Lua/XML Help
03-30-23, 03:32 PM
|
Replies: 0
Views: 1,555
|