Showing results 1 to 25 of 208
Search took 0.02 seconds.
Search: Posts Made By: Vrul
Forum: AddOn Search/Requests 11-23-14, 01:02 AM
Replies: 19
Views: 1,263
Posted By Vrul
Except that you're completely wrong and the frame...

Except that you're completely wrong and the frame does in fact need to be hidden.

Hence why I hide that dialog in the code posted.
Forum: AddOn Search/Requests 11-22-14, 03:06 PM
Replies: 19
Views: 1,263
Posted By Vrul
I'm using this: local frame =...

I'm using this:

local frame = CreateFrame('Frame')
frame:Hide()

frame:SetScript('OnEvent', function(self, event, ...)
if event == 'GARRISON_MISSION_COMPLETE_RESPONSE' then
local missionID,...
Forum: AddOn Search/Requests 11-17-14, 04:07 PM
Replies: 25
Views: 2,824
Posted By Vrul
This is my understanding of how it works (feel...

This is my understanding of how it works (feel free to correct me if I am wrong):

Anything that has a nil value just means there is no data assigned to it. Assigning a table key a nil value removes...
Forum: AddOn Search/Requests 11-17-14, 11:10 AM
Replies: 25
Views: 2,824
Posted By Vrul
I just use this to move and...

I just use this to move and scale:

UIPARENT_MANAGED_FRAME_POSITIONS.DraenorZoneAbilityFrame = nil
DraenorZoneAbilityFrame:ClearAllPoints()
DraenorZoneAbilityFrame:SetPoint('TOP', UIParent, 'TOP', 0,...
Forum: AddOn Help/Support 11-03-14, 04:28 PM
Replies: 6
Views: 557
Posted By Vrul
Tricks of the Trade no longers provides a dps...

Tricks of the Trade no longers provides a dps boost which makes updating that addon pointless.
Forum: AddOn Search/Requests 10-29-14, 07:30 AM
Replies: 5
Views: 450
Posted By Vrul
This is what I'm currently using but haven't...

This is what I'm currently using but haven't tested it with a vehicle yet:

local comboPoints = ComboFrame
comboPoints:SetParent(PlayerFrame)
comboPoints:UnregisterAllEvents()

for index = 1,...
Forum: Lua/XML Help 10-21-14, 04:21 PM
Replies: 12
Views: 1,000
Posted By Vrul
Initialize as such: local bladeFlurryTargets,...

Initialize as such:

local bladeFlurryTargets, numBladeFlurryTargets = { }, 0


To add or update a target:

bladeFlurryTargets[guid] = arg1 + 2.6
Forum: Lua/XML Help 10-19-14, 09:03 PM
Replies: 5
Views: 682
Posted By Vrul
The returns for GetQuestLogTitle have changed so...

The returns for GetQuestLogTitle have changed so that will impact some stuff too.
Forum: Lua/XML Help 10-02-14, 03:54 PM
Replies: 3
Views: 547
Posted By Vrul
Your saved data in TestAddOnDB is loaded just...

Your saved data in TestAddOnDB is loaded just prior to the ADDON_LOADED event so you have to wait until then to access its data.

function TestAddOn_OnEvent(self, event, arg1)
if event ==...
Forum: Lua/XML Help 09-28-14, 09:56 AM
Replies: 7
Views: 1,034
Posted By Vrul
What Phanx posted is the correct texture. The...

What Phanx posted is the correct texture. The reason it is blue is because of this line in the OnLoad script:

self.highlight:SetVertexColor(0.243, 0.570, 1);


That texture is gray scale so you can...
Forum: oUF (Otravi Unit Frames) 08-26-14, 07:39 PM
Replies: 13
Views: 2,512
Posted By Vrul
Try replacing: local isCaster local cbCheckFrame...

Try replacing:

local isCaster
local cbCheckFrame =...
Forum: oUF (Otravi Unit Frames) 08-26-14, 08:01 AM
Replies: 13
Views: 2,512
Posted By Vrul
I didn't pay enough attention to notice the...

I didn't pay enough attention to notice the shaman line has it's true/false assignments reversed compared to the others.

Try your code on a druid, monk, or paladin caster; or a melee shaman, and see...
Forum: oUF (Otravi Unit Frames) 08-25-14, 09:02 AM
Replies: 13
Views: 2,512
Posted By Vrul
Since GetSpecialization() returns nil on a fresh...

Since GetSpecialization() returns nil on a fresh login I have a hard time believing the code posted works on a fresh login for any caster other than a mage, priest, or warlock.


The reason p3lim's...
Forum: Lua/XML Help 08-21-14, 01:49 PM
Replies: 1
Views: 619
Posted By Vrul
That last line should just...

That last line should just be:
btnLock:SetScript("OnClick", printTest)


Using printTest() is trying to use the return of the function call where just printTest is passing the function itself.
Forum: Lua/XML Help 06-10-14, 09:41 AM
Replies: 6
Views: 1,236
Posted By Vrul
Not tested but: local format, random =...

Not tested but:

local format, random = string.format, math.random
local index, samples, used = 1, { }, { }
while(index <= 400) do
local plate = random(1, 521)
local sample = format("%03u:%c:%u",...
Forum: Lua/XML Help 06-05-14, 09:45 AM
Replies: 5
Views: 1,375
Posted By Vrul
What Phanx posted should fix your problem...

What Phanx posted should fix your problem (provided you hook the correct function). Another reason the code you posted wouldn't have worked is that the ADDON_LOADED event would have fired for...
Forum: AddOn Help/Support 04-21-14, 08:50 AM
Replies: 39
Views: 3,598
Posted By Vrul
All of those FEASTS, MOUNT, PORTAL, SPELL entries...

All of those FEASTS, MOUNT, PORTAL, SPELL entries need to be in quotes.
Forum: Lua/XML Help 04-20-14, 09:04 PM
Replies: 3
Views: 820
Posted By Vrul
You should be able to just hook ChatFrame_OnLoad...

You should be able to just hook ChatFrame_OnLoad since it should only be called once per chat frame:

hooksecurefunc('ChatFrame_OnLoad', function(chatFrame)
-- do stuff
end)


If you want to be...
Forum: Lua/XML Help 03-26-14, 09:53 AM
Replies: 10
Views: 1,365
Posted By Vrul
The variable texture you are using doesn't change...

The variable texture you are using doesn't change during that loop so you are attempting to set the same texture for each item. I would image a quick fix would be to change the line:

strvars["eICO"...
Forum: General Authoring Discussion 03-19-14, 08:28 PM
Replies: 7
Views: 1,427
Posted By Vrul
Those were possible returns from GetCursorInfo...

Those were possible returns from GetCursorInfo that it was checking.
Forum: General Authoring Discussion 03-19-14, 08:01 PM
Replies: 7
Views: 1,427
Posted By Vrul
That code from SecureHandlers.lua is for handling...

That code from SecureHandlers.lua is for handling dragging. The code to handle clicking/using a button is in SecureTemplates.lua, specifically the possible options for "type" are the entries in the...
Forum: Lua/XML Help 03-12-14, 11:30 AM
Replies: 35
Views: 2,920
Posted By Vrul
Based on what you are using it for you don't...

Based on what you are using it for you don't really need a separate UnitIsPet function, also the class name used to index CUSTOM_CLASS_COLORS and RAID_CLASS_COLORS should be in all...
Forum: Lua/XML Help 03-12-14, 09:54 AM
Replies: 15
Views: 1,389
Posted By Vrul
That code you posted doesn't work because you...

That code you posted doesn't work because you call SetScript before you have defined the local variable it references. Since all your scripts are doing is calling Hide/Show and the first argument...
Forum: Lua/XML Help 03-12-14, 09:39 AM
Replies: 35
Views: 2,920
Posted By Vrul
UnitGUID can return nil so you need to account...

UnitGUID can return nil so you need to account for that:

local function UnitIsPet(unit)
local GUID = UnitGUID(unit)
return GUID and tonumber(GUID:sub(5, 5), 16) % 8 == 4
end


UnitGUID...
Forum: Lua/XML Help 03-11-14, 11:47 AM
Replies: 3
Views: 718
Posted By Vrul
Try changing: ...

Try changing:

_G[k]:HookScript("OnValueChanged", function()
if _G[k].reset then
Set(a, k);
_G[k].reset = false;
...
Showing results 1 to 25 of 208