Forum: Lua/XML Help
12-31-20, 02:54 PM
|
Replies: 3
Views: 804
In your code, Icon is a Button ...
In your code, Icon is a Button (SetNormalTexture). In Blizzards, it's a texture. With your button you could probably:
local IconTexture = Icon:GetNormalTexture()
IconTexture:SetAtlas(...)
|
Forum: Lua/XML Help
12-30-20, 01:47 PM
|
Replies: 3
Views: 977
|
Forum: Lua/XML Help
12-28-20, 05:28 PM
|
Replies: 4
Views: 491
local MyLabel =...
local MyLabel = CreateAtlasMarkup("NPE_RightClick", 16, 16).."My label text"
|
Forum: Lua/XML Help
12-24-20, 03:02 PM
|
Replies: 3
Views: 764
local f = CreateFrame("Frame", nil,...
local f = CreateFrame("Frame", nil, UIParent)
local t = f:CreateFontString(f, "OVERLAY", "GameTooltipText")
t:SetText("Great Vault")
f:SetSize(t:GetSize())
t:SetPoint("CENTER")
f:SetPoint("TOP",...
|
Forum: Lua/XML Help
12-17-20, 11:32 AM
|
Replies: 7
Views: 1,077
|
Forum: Lua/XML Help
12-16-20, 09:52 AM
|
Replies: 19
Views: 6,755
Again, the same as Kanegasi but slightly...
Again, the same as Kanegasi but slightly different in order to bake the border colouring into your created frames:
local function ColorBorders(self, r, g, b, a)
for i=1, 4...
|
Forum: Lua/XML Help
12-15-20, 11:21 AM
|
Replies: 10
Views: 2,377
|
Forum: Lua/XML Help
12-15-20, 12:35 AM
|
Replies: 10
Views: 2,377
|
Forum: Lua/XML Help
12-14-20, 10:05 PM
|
Replies: 10
Views: 2,377
<OnUpdate>
UIMod_OnUpdate(self,...
<OnUpdate>
UIMod_OnUpdate(self, elapsed)
</OnUpdate>
Assuming UIMod_OnUpdate is the name of your lua OnUpdate function and it's global.
I would have to check but I'm pretty sure the...
|
Forum: Lua/XML Help
12-14-20, 07:18 PM
|
Replies: 10
Views: 2,377
|
Forum: Lua/XML Help
12-14-20, 04:06 PM
|
Replies: 19
Views: 6,755
Something else to try:
local function...
Something else to try:
local function CreateBorder(self)
if not self.borders then
self.borders = {}
for i=1, 4 do
self.borders[i] = self:CreateLine(nil, "BACKGROUND", nil, 0)
local l =...
|
Forum: Lua/XML Help
12-13-20, 02:37 PM
|
Replies: 4
Views: 1,120
|
Forum: Lua/XML Help
12-13-20, 12:49 PM
|
Replies: 4
Views: 1,120
As an aside, the _G is not needed in this case...
As an aside, the _G is not needed in this case because the frame name is added to the global table as a reference when the frame is created (all frames with names are added to the global table by...
|
Forum: Lua/XML Help
12-04-20, 10:27 AM
|
Replies: 7
Views: 1,636
|
Forum: Lua/XML Help
11-23-20, 09:51 AM
|
Replies: 8
Views: 1,248
|
Forum: Lua/XML Help
11-21-20, 07:16 PM
|
Replies: 8
Views: 1,015
Try moving OnReady from ADDON_LOADED to...
Try moving OnReady from ADDON_LOADED to PLAYER_LOGIN. Your SavedVariables will have been loaded by the game when this event fires and it only fires once.
Don't forget to remove your old SV .lua...
|
Forum: Lua/XML Help
11-21-20, 01:23 PM
|
Replies: 8
Views: 1,248
I suspect you're trying to do two different...
I suspect you're trying to do two different things that need different approaches
Updating the menu requires the Blizzard Collection addon to be loaded so that needs to be tracked.
If you're not...
|
Forum: Lua/XML Help
11-21-20, 09:29 AM
|
Replies: 8
Views: 1,248
Your code for the hooked MountOptionsMenu_Init...
Your code for the hooked MountOptionsMenu_Init function doesn't seem to require any information so the hook itself is not required. Just run your code when your addon loads or when you've detected...
|
Forum: Lua/XML Help
11-20-20, 08:53 PM
|
Replies: 8
Views: 1,248
If you mark you addons .toc to load when the...
If you mark you addons .toc to load when the Collections addon is loaded, you don't have to worry about tracking ADDON_LOADED (assuming that's the only addon you're waiting for and your addon isn't...
|
Forum: General Authoring Discussion
11-17-20, 09:51 AM
|
Replies: 2
Views: 1,835
|
Forum: AddOn Help/Support
11-13-20, 01:59 PM
|
Replies: 2
Views: 2,367
Discussed here...
Discussed here (https://www.wowinterface.com/forums/showthread.php?t=58109&highlight=BackdropTemplate)
|
Forum: Tutorials & Other Helpful Info.
11-11-20, 03:53 PM
|
Replies: 1
Views: 1,632
|
Forum: General Authoring Discussion
11-10-20, 09:35 AM
|
Replies: 2
Views: 2,509
|
Forum: AddOn Help/Support
11-08-20, 07:19 AM
|
Replies: 7
Views: 3,563
|
Forum: Lua/XML Help
11-08-20, 07:03 AM
|
Replies: 6
Views: 2,901
|