Showing results 1 to 25 of 198
Search took 0.01 seconds.
Search: Posts Made By: xConStruct
Forum: Released AddOns 11-11-10, 02:09 AM
Replies: 79
Views: 46,526
Posted By xConStruct
You could create an invisible frame which has the...

You could create an invisible frame which has the same position as the tag and then set the OnEnter()-script on this. E.g:

local enterFrame = CreateFrame("Frame", nil,...
Forum: Released AddOns 11-05-10, 10:14 AM
Replies: 79
Views: 46,526
Posted By xConStruct
I'm in the process of releasing 2.2 - the last...

I'm in the process of releasing 2.2 - the last thing to do is to update the tag display, so I'll take a look at it this weekend :)
Forum: Lua/XML Help 10-17-10, 12:05 PM
Replies: 4
Views: 3,032
Posted By xConStruct
UIParent.lua...

UIParent.lua (http://github.com/tekkub/wow-ui-source/blob/live/FrameXML/UIParent.lua) says that the events are handled by UIParent, so UnregisterAllEvents() wouldn't work.

Does GhostFrame.Show =...
Forum: Lua/XML Help 10-17-10, 11:37 AM
Replies: 4
Views: 3,032
Posted By xConStruct
"frame.Show = frame.Hide" would replace the...

"frame.Show = frame.Hide" would replace the Show()-function with the Hide() one, so that it can't be shown through the normal call.
"frame.Show = nil" to undo.

if you want to hide Blizz-Events, you...
Forum: Lua/XML Help 09-26-10, 10:36 AM
Replies: 14
Views: 9,849
Posted By xConStruct
Yes, you can :)

Yes, you can :)
Forum: Lua/XML Help 09-26-10, 10:15 AM
Replies: 14
Views: 9,849
Posted By xConStruct
Yep, the texture isn't named or stored in the...

Yep, the texture isn't named or stored in the frame-table. (ShardBarFrameShard1, ShardBarFrameShard2, ShardBarFrameShard3 are the parents)

As I said, look through ShardBarFrameShard1:GetRegions() to...
Forum: Lua/XML Help 09-25-10, 10:12 PM
Replies: 14
Views: 9,849
Posted By xConStruct
What's the parent frame? You could probably...

What's the parent frame? You could probably access it via frame:GetRegions() (http://wowprogramming.com/docs/widgets/Frame/GetRegions).
You'd just have to find the right one from the list and :Hide()...
Forum: Released AddOns 09-23-10, 06:43 PM
Replies: 79
Views: 46,526
Posted By xConStruct
You don't play WoW because of cargBags? :O Well,...

You don't play WoW because of cargBags? :O

Well, I admit the versioning is kinda confusing at the moment, because the big 2.0 update was released a few weeks ago and not all layouts are updated (1.x...
Forum: AddOn Help/Support 09-11-10, 08:36 AM
Replies: 12
Views: 7,500
Posted By xConStruct
Like Addon Loader...

Like Addon Loader (http://www.wowinterface.com/downloads/fileinfo.php?id=11476)? :)

And then adding into each of the class-specific addons toc (Wiki Page (http://www.wowwiki.com/AddonLoader)):
##...
Forum: General Authoring Discussion 09-04-10, 05:06 PM
Replies: 2
Views: 3,899
Posted By xConStruct
Do you have a xml-file? Make sure you don't load...

Do you have a xml-file?
Make sure you don't load your lua file twice: Only reference it in either the toc or the xml, not in both.
Forum: AddOn Help/Support 09-03-10, 08:18 AM
Replies: 25
Views: 12,784
Posted By xConStruct
VisualFx was an addon I've written for a friend...

VisualFx was an addon I've written for a friend back in TBC, who wanted a more simple/lua-only variant of VisualThemes. I never released it or used it personally - it was just lying around on my SVN...
Forum: AddOn Help/Support 09-01-10, 02:36 PM
Replies: 25
Views: 12,784
Posted By xConStruct
Wow, that was a hard one to find. Did a google...

Wow, that was a hard one to find. Did a google search, found on page 3 a russian website and google translate revealed a link to another russian topic where the code was posted :)

The post is...
Forum: Lua/XML Help 09-01-10, 01:46 PM
Replies: 9
Views: 9,975
Posted By xConStruct
function test:Multiply(a, b) is actually...

function test:Multiply(a, b) is actually short-hand for function test.Multiply(self, a, b) So, your two numbers get stored in 'self' and 'a' this way, making b = nil.

Try if this works, passing...
Forum: Lua/XML Help 09-01-10, 11:45 AM
Replies: 7
Boe
Views: 4,607
Posted By xConStruct
Tooltip! Parse the second line and see if it...

Tooltip!

Parse the second line and see if it matches ITEM_BIND_ON_EQUIP. it is probably best to create your own tooltip for this one so that you won't interfere with the GameTooltip.

I've got a...
Forum: AddOn Search/Requests 08-27-10, 08:55 AM
Replies: 4
Views: 6,522
Posted By xConStruct
Moniker...

Moniker (http://www.wowinterface.com/downloads/info17041-Moniker.html) can do this.
Forum: Lua/XML Help 08-26-10, 01:57 PM
Replies: 7
Views: 3,790
Posted By xConStruct
You could also handle your SV-table defaults with...

You could also handle your SV-table defaults with some metatable magic. That's the way I normally do it:


local defaults = {
enemy = true,
friend = true,
}

function...
Forum: Lua/XML Help 08-26-10, 11:57 AM
Replies: 7
Views: 3,790
Posted By xConStruct
Split them up and go through them step by step -...

Split them up and go through them step by step - note the parentheses!


CNames_Options.enemy = (CNames_Options.enemy == nil) and true or CNames_Option.enemy

Is basically the same as my...
Forum: Lua/XML Help 08-26-10, 09:10 AM
Replies: 3
Views: 3,489
Posted By xConStruct
You can place the code for it in both...

You can place the code for it in both PostAddButton() and/or UpdateButton()

UpdateButton is called every time the button is updated with new data.
PostAddButton is called whenever a button is added...
Forum: Graphics Help 08-26-10, 08:57 AM
Replies: 7
Views: 12,348
Posted By xConStruct
It won't make a difference, apart from file size...

It won't make a difference, apart from file size (which should be neglectable).

I would make the stretched/tiled ones smaller, because they are repeated anyways.

You could also remove two of the...
Forum: Lua/XML Help 08-25-10, 06:08 PM
Replies: 7
Views: 3,790
Posted By xConStruct
Or explicitly check if the variable is 'nil' /...

Or explicitly check if the variable is 'nil' / not set.


if CNames_Options.enemy == nil then
CNames_Options.enemy = true
end
Forum: Lua/XML Help 08-22-10, 03:51 PM
Replies: 5
Views: 6,689
Posted By xConStruct
local texture =...

local texture = HealthColor_Button:CreateTexture("HealthColorTexture")
texture:SetTexture("Interface\\ChatFrame\\ChatFrameColorSwatch")

HealthColor_Button:SetNormalTexture(texture)


Or...
Forum: Lua/XML Help 08-22-10, 01:46 PM
Replies: 5
Views: 6,689
Posted By xConStruct
You're looking for SetNormalTexture...

You're looking for SetNormalTexture (http://www.wowwiki.com/API_SetNormalTexture)


button:SetNormalTexture("Interface\\ChatFrame\\ChatFrameColorSwatch")
Forum: AddOn Help/Support 08-21-10, 04:24 PM
Replies: 3
Views: 4,272
Posted By xConStruct
The 'local' in your lua function is wrong and...

The 'local' in your lua function is wrong and will cause an error. You can't have local table entries in Lua, only the whole table can be local. :)
Just remove it and it should work fine.

Since each...
Forum: Lua/XML Help 08-21-10, 01:01 PM
Replies: 13
Views: 4,885
Posted By xConStruct
The global-part is located at the bottom of...

The global-part is located at the bottom of ouf.lua (http://github.com/haste/oUF/blob/master/ouf.lua):


if(global) then
if(parent ~= 'oUF' and global == 'oUF') then
error("%s is doing it wrong...
Forum: Lua/XML Help 08-21-10, 12:56 PM
Replies: 12
Views: 5,792
Posted By xConStruct
I don't know anything about the...

I don't know anything about the timeManager-frame, so I can't say if the code is working correctly, apart from syntax errors. (but I trust p3lim on that one :) )

Does the code in the event-function...
Showing results 1 to 25 of 198