Forum: Lua/XML Help
06-26-22, 03:52 AM
|
Replies: 3
Views: 4,695
|
Forum: Lua/XML Help
06-24-22, 02:09 AM
|
Replies: 3
Views: 4,695
|
Forum: Lua/XML Help
06-23-22, 07:24 AM
|
Replies: 3
Views: 4,695
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: 3,577
|
Forum: General Authoring Discussion
06-21-22, 08:44 AM
|
Replies: 2
Views: 3,577
|
Forum: General Authoring Discussion
03-11-22, 07:50 AM
|
Replies: 4
Views: 3,824
|
Forum: General Authoring Discussion
03-11-22, 04:29 AM
|
Replies: 4
Views: 3,824
|
Forum: General Authoring Discussion
03-11-22, 04:09 AM
|
Replies: 4
Views: 3,824
|
Forum: Lua/XML Help
03-10-22, 10:43 AM
|
Replies: 5
Views: 1,413
Thanks
Success - thanks very much.
|
Forum: Lua/XML Help
03-10-22, 08:05 AM
|
Replies: 5
Views: 1,413
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,413
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: 2,056
|
Forum: Lua/XML Help
03-03-22, 07:35 AM
|
Replies: 2
Views: 2,056
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: 2,643
|
Forum: Lua/XML Help
02-08-22, 12:02 PM
|
Replies: 8
Views: 2,643
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: 2,643
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: 2,643
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: 4,276
|
Forum: Lua/XML Help
01-31-22, 08:05 AM
|
Replies: 3
Views: 4,276
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...
|