Showing results 1 to 25 of 123
Search took 0.01 seconds.
Search: Posts Made By: Benalish
Forum: Lua/XML Help 04-14-24, 01:56 PM
Replies: 1
Views: 148
Posted By Benalish
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: 644
Posted By Benalish
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: 644
Posted By Benalish
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: 732
Posted By Benalish
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: 711
Posted By Benalish
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: 711
Posted By Benalish
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: 777
Posted By Benalish
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: 1,104
Posted By Benalish
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: 934
Posted By Benalish
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: 934
Posted By Benalish
It prints everything except the rank and range...

It prints everything except the rank and range information :(
Forum: Lua/XML Help 09-27-23, 07:52 AM
Replies: 5
Views: 934
Posted By Benalish
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: 763
Posted By Benalish
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: 1,084
Posted By Benalish
Perfect! There's a better method to ignore global...

Perfect!
There's a better method to ignore global cooldown than this?

if (duration == 0 and (start < ignore)) or (duration <= gcd)
Forum: Lua/XML Help 09-07-23, 11:48 AM
Replies: 4
Views: 1,084
Posted By Benalish
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: 1,084
Posted By Benalish
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: 662
Posted By Benalish
Event fired when item is repaired

There's an event fired when a item is repaired?
Forum: Lua/XML Help 05-09-23, 06:54 AM
Replies: 4
Views: 863
Posted By Benalish
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: 702
Posted By Benalish
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: 659
Posted By Benalish
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: 800
Posted By Benalish
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: 1,826
Posted By Benalish
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: 1,826
Posted By Benalish
I'm so interested in the FauxScrollFrame because...

I'm so interested in the FauxScrollFrame because I'm trying to set borders on the two buttons, but with disastrous results

https://i.imgur.com/tKZul8l.jpg


<ScrollFrame name="$parentScrollBar"...
Forum: Lua/XML Help 04-02-23, 08:18 AM
Replies: 7
Views: 1,826
Posted By Benalish
Very well! I extrated the BlizzardInterfaceCode....

Very well! I extrated the BlizzardInterfaceCode. Now, where I can find the FauxScrollFrameTemplate related file?
Forum: Lua/XML Help 04-01-23, 05:31 PM
Replies: 7
Views: 1,826
Posted By Benalish
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: 975
Posted By Benalish
FauxScrollFrameTemplate source code

Topic create by mistake. Please delete.
Showing results 1 to 25 of 123