Showing results 1 to 19 of 19
Search took 0.00 seconds.
Search: Posts Made By: Firesong
Forum: Lua/XML Help 06-26-22, 03:52 AM
Replies: 3
Views: 4,411
Posted By Firesong
Exclamation Wow - thanks. I did indeed run it from a little...

Wow - thanks. I did indeed run it from a little addon I use to test things and the code was the first line.
Forum: Lua/XML Help 06-24-22, 02:09 AM
Replies: 3
Views: 4,411
Posted By Firesong
Question I have left J mapped to guild panel. Copying the...

I have left J mapped to guild panel. Copying the code from the example I have:
key = "J"
bindingAction = GetBindingByKey(key)
print(bindingAction)

It prints 'nil' every time. No error. I'm...
Forum: Lua/XML Help 06-23-22, 07:24 AM
Replies: 3
Views: 4,411
Posted By Firesong
Question Key Bindings Puzzle

https://wowpedia.fandom.com/wiki/API_GetBinding

I've all my keys set to default.

The code sample for me just prints "Movement Keys > Turn Right (TURNRIGHT) is bound to: " So GetBinding is...
Forum: General Authoring Discussion 06-23-22, 12:00 AM
Replies: 2
Views: 1,814
Posted By Firesong
I found where Hekili has the ReadKeybindings...

I found where Hekili has the ReadKeybindings function and all is going well. Thanks for your reply.
Forum: General Authoring Discussion 06-21-22, 08:44 AM
Replies: 2
Views: 1,814
Posted By Firesong
Question Documentation for correct toolbar button for spells

Hi all,

Hekili has the ability to tell you what button a spell is on but I'm baffled how they do it. I've tried breaking their addon a few times but the stack traces in BugSack make my head...
Forum: General Authoring Discussion 03-11-22, 07:50 AM
Replies: 4
Views: 2,476
Posted By Firesong
Thumbs up That's great - thanks!

That's great - thanks!
Forum: General Authoring Discussion 03-11-22, 04:29 AM
Replies: 4
Views: 2,476
Posted By Firesong
Smile Thanks for your comment. I'm trying to learn Lua...

Thanks for your comment. I'm trying to learn Lua and have some fun.

My question is hwo to identify reactive spells that whose buttons flash when you should use them. TMW does it but I can't make...
Forum: General Authoring Discussion 03-11-22, 04:09 AM
Replies: 4
Views: 2,476
Posted By Firesong
Question Finding reactive spells like Overpower or Revenge

I'm making an addon that will have one button and it will show the correct spell to cast.

So far I have this code working:

local inRange, unit = 0, "target"
if UnitExists("target") and...
Forum: Lua/XML Help 03-10-22, 10:43 AM
Replies: 5
Views: 1,045
Posted By Firesong
Exclamation Thanks

Success - thanks very much.
Forum: Lua/XML Help 03-10-22, 08:05 AM
Replies: 5
Views: 1,045
Posted By Firesong
Unhappy I made a small addon and the toc is: ##...

I made a small addon and the toc is:
## Interface: 90200
## Title: Testbox
Testbox.lua
Tank.lua

So my main file in all it's glory reads:

local Testbox, addonTable = ...
Forum: Lua/XML Help 03-10-22, 07:15 AM
Replies: 5
Views: 1,045
Posted By Firesong
Question How can I partition a Lua file?

Lua has a nice "require" system to allow long files to be partitioned. WoW disables this but I can see many addons have multiple files. What I can't work out is how they do it.

For example, if I...
Forum: Lua/XML Help 03-04-22, 12:09 AM
Replies: 2
Views: 1,593
Posted By Firesong
Thumbs up Thanks. That is so much more elegant than my...

Thanks. That is so much more elegant than my effort as well as working!
Forum: Lua/XML Help 03-03-22, 07:35 AM
Replies: 2
Views: 1,593
Posted By Firesong
Question Change Button Text on Click Event

Hi all,

I have a button that I want to say "Start" when loaded and then say "Stop" when clicked.

Here is the lua creating the Fontstring and event:
BtnStopGo:SetScript("OnClick", StopStart)
local...
Forum: Lua/XML Help 02-10-22, 02:34 AM
Replies: 8
Views: 1,987
Posted By Firesong
Red face I'm puzzled at there those numbers come from as...

I'm puzzled at there those numbers come from as well but as I don't have a practical application, I'll leave it for now. Thanks again.
Forum: Lua/XML Help 02-08-22, 12:02 PM
Replies: 8
Views: 1,987
Posted By Firesong
Unhappy local r = 12/255; local g = 34/255; ...

local r = 12/255;
local g = 34/255;
local b = 56/255;
MapFrame.texture:SetColorTexture(r, g, b)

In Paint, the resulting frame color is 7, 79, 112.

I wonder if I have a...
Forum: Lua/XML Help 02-08-22, 01:01 AM
Replies: 8
Views: 1,987
Posted By Firesong
Smile Thanks. I am trying that but it still gives...

Thanks. I am trying that but it still gives unexpected results.

MapFrame.texture:SetColorTexture(12/255, 34/255, 56/255) gives me a RGB of 9/79/112 - is there something I'm missing if I want to...
Forum: Lua/XML Help 02-07-22, 11:57 PM
Replies: 8
Views: 1,987
Posted By Firesong
Question Puzzled By SetColorTexture

This question is not crucial but I am puzzled and would be grateful for a pointer in the right direction.

MapFrame.texture:SetColorTexture(0, 0, 0) gives me...
Forum: Lua/XML Help 01-31-22, 10:32 AM
Replies: 3
Views: 3,276
Posted By Firesong
Many thanks.

Many thanks.
Forum: Lua/XML Help 01-31-22, 08:05 AM
Replies: 3
Views: 3,276
Posted By Firesong
Question Getting ZoneId from GetMapInfo

Hello all,

I am new to WoW Lua and having issues with getting Zone Ids.

The documentation I am using is here: https://wowpedia.fandom.com/wiki/API_C_Map.GetBestMapForUnit

This is the code in macro...
Showing results 1 to 19 of 19