Forum: Lua/XML Help
02-24-21, 10:06 AM
|
Replies: 6
Views: 391
I was thinking something like:
local...
I was thinking something like:
local frame=CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent",function(self,event,...)
local chat = DEFAULT_CHAT_FRAME
local editBox...
|
Forum: Lua/XML Help
02-23-21, 04:07 PM
|
Replies: 6
Views: 391
Your macro is doing 4 SetPoint calls for the...
Your macro is doing 4 SetPoint calls for the editbox. Maybe something like:
ChatFrame1EditBox:SetMultiLine(true)
ChatFrame1EditBox:ClearAllPoints()
ChatFrame1EditBox:SetPoint("BOTTOMLEFT",...
|
Forum: Lua/XML Help
02-23-21, 01:58 PM
|
Replies: 6
Views: 391
|
Forum: General Authoring Discussion
02-23-21, 11:31 AM
|
Replies: 2
Views: 261
|
Forum: General Authoring Discussion
02-22-21, 01:29 PM
|
Replies: 2
Views: 261
TBC Beta access
Given that Blizzards Classic process was so great <cough> I just thought I'd try and get ahead of the curve.
If WoWI is helping identify authors for access to TBC Beta then Me...
|
Forum: Lua/XML Help
02-21-21, 09:38 PM
|
Replies: 9
Views: 228
|
Forum: Lua/XML Help
02-21-21, 09:09 PM
|
Replies: 9
Views: 228
Wipe empties the contents of the...
Wipe empties the contents of the table
table.insert(addClassSpellList, 1, tempSpellChatList)
wipe(addClassSpellList[1])
--is the same as
wipe(tempSpellChatList)
In your code, there is no need to...
|
Forum: Lua/XML Help
02-21-21, 07:29 PM
|
Replies: 9
Views: 228
|
Forum: Lua/XML Help
02-21-21, 07:26 PM
|
Replies: 9
Views: 228
tempSpellChatList = {
addSpellLink = {
...
tempSpellChatList = {
addSpellLink = {
percentage = 100,
isEnabled = true,
spellChatList = {}
}
}
Not sure of your intention but when written like this, addSpellLink...
|
Forum: Lua/XML Help
02-21-21, 07:03 PM
|
Replies: 9
Views: 228
The second parameter of your...
The second parameter of your addSpellToClassSpellList function is addSpellLink.
In the Incomming test, you're printing spellLink which will always be nil unless it's defined elsewhere.
print("test...
|
Forum: AddOn Help/Support
02-15-21, 06:24 PM
|
Replies: 2
Views: 312
/run local a =...
/run local a = PlayerChoiceFrame.Option1.OptionText.HTML:GetRegions() print(a, a:GetObjectType())
|
Forum: Lua/XML Help
01-28-21, 09:39 AM
|
Replies: 12
Views: 2,069
|
Forum: AddOn Search/Requests
01-23-21, 11:11 PM
|
Replies: 6
Views: 742
|
Forum: AddOn Search/Requests
01-23-21, 03:53 PM
|
Replies: 6
Views: 742
|
Forum: AddOn Search/Requests
01-23-21, 09:14 AM
|
Replies: 6
Views: 742
In short, you don't.
The game reads information...
In short, you don't.
The game reads information from the various SavedVariables files for addons when your character logs in. After that, the files aren't used until your character logs out or you...
|
Forum: Lua/XML Help
01-18-21, 07:35 PM
|
Replies: 10
Views: 885
|
Forum: Lua/XML Help
12-31-20, 02:54 PM
|
Replies: 3
Views: 1,683
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: 1,989
|
Forum: Lua/XML Help
12-28-20, 05:28 PM
|
Replies: 4
Views: 1,039
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: 1,331
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,707
|
Forum: Lua/XML Help
12-16-20, 09:52 AM
|
Replies: 19
Views: 7,770
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: 3,018
|
Forum: Lua/XML Help
12-15-20, 12:35 AM
|
Replies: 10
Views: 3,018
|
Forum: Lua/XML Help
12-14-20, 10:05 PM
|
Replies: 10
Views: 3,018
<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...
|