• 0

    posted a message on Help with the Blp file format.

    When you set a customer texture, be sure to use a double backslash instead of a single one. So:

     

    Thingy:SetTexture("Interface\\Addons\\filename\\texturename")

     

    Be sure to swap filename and texturename as needed for what you are doing.

    Posted in: AddOn HELP!
  • 0

    posted a message on Help with the Blp file format.

    You have to save your files in particular sizes, otherwise they will be green. I  can't seem to find the page on wowpedia.com anymore.  try resizing all of your images to 256 x 256 or 512 x 512, in pixels. if you need the images to be rectangles, 256 x 512

    Posted in: AddOn HELP!
  • 0

    posted a message on Masque - Official Thread
    Not sure if I missed something. Is there support for the default actionbars?


    Nevermind, i'll have to build my own module to support the default buttons.
    :-| Seems illogical to exclude them...
    Posted in: General AddOns
  • 0

    posted a message on Mac OS X 10.9.5 zip files
    Before upgrading to Mavericks, I was able to use the following command line to zip any file and remove all the mac specifics files from the final compressed file as well: ( zip -r "/FileNameHere" "/FileNameHere" -x \*.DS_Store ) Now it tells me:

    zip I/O error: Permission denied
    zip error: Could not create output file (/untitled.zip)


    How do I do this in Mavericks??

    p.s. I hope I'm making sense.. I'm too tired to tell right now.
    Posted in: Need Help?
  • 0

    posted a message on remove first space in a string
    Actually, all of the code I have posted so far is mostly copied directly from my addon. And I honestly thought I had narrowed the issue down to removing the space, and that I didn't need to post much code. Which is why I had already said "Nevermind… I are dumb.."

    Anyways, thank you for telling me about the /n escape.
    Posted in: Need Help?
  • 0

    posted a message on remove first space in a string
    heheheh… The issue wasn't with removing spaces, but me adding a "|" to the front of the string later on… Apparently "|WorldFrame" comes out out as "orldFrame".

    I was using a single fontstring to display multiple lines of text.. Specifically:
    
    local nextLine = [[|
    |]]
    
    local text = ""
    for i, b in pairs(collectedStrings) do
        text = text..b.. nextLine
    end
    fontstring:SetText(text)
    
    
    


    I'm sure there is a better method for what I'm doing, but meh.
    Posted in: Need Help?
  • 0

    posted a message on remove first space in a string
    Nevermind… I are dumb..
    Posted in: Need Help?
  • 0

    posted a message on remove first space in a string
    t seems that no better what I do, I always end up with the "W" stripped off any string that begins with "W"...
    Posted in: Need Help?
  • 0

    posted a message on remove first space in a string
    I've tried using string.gsub(text, "( )", "") and several other methods to remove a space from the front of a sting, but everything I've tried will not only remove the first space, but also any "W" from the start of the string. So string.gsub(" WorldFrame", "( )", "") comes out as "orldFrame". Any help would be appreciated.
    Posted in: Need Help?
  • 0

    posted a message on Problem with inherits
    You need to reorganize your xml file a bit. Have it build "UNITSCANNER_IconTemplate" before "UNITSCANNER_Frame".
    Posted in: Need Help?
  • 0

    posted a message on How to hook message from chat?
    First you would need to create a frame to handle the necessary code:
    local frame = CreateFrame("Frame", "MyFrameName")
    


    Then you set the frame to register the event called "CHAT_MSG_CHANNEL". This will allow you to retrieve the information you want.

    frame:RegisterEvent("CHAT_MSG_CHANNEL")
    


    Once you have registered the event, you can set your frame to receive the script:

    frame:SetScript("OnEvent", function(self, event, arg1, arg2, arg3, arg4, arg5, ...)
         --your code inside goes here.
    end)
    



    You can get more info from here: http://www.wowpedia.org/Events/Communication
    Look for the event called "CHAT_MSG_CHANNEL"
    Posted in: Need Help?
  • 0

    posted a message on Bar Snapping/Sticky Frames
    I plan to soon. The code I posted was just the bar snapping related stuffs. I intend to use the code in my unit-frames addon, so I want to extend on what this lil module will be able to do for me.
    Posted in: Project Discussion
  • 0

    posted a message on Bar Snapping/Sticky Frames
    Finally got around to rewriting this thing from scratch again... Here's the link to the current code: http://www.wowace.com/paste/5564/

    I was able to retain a somewhat streamlined approach, and add lil extra functionality to it. Lemme know what ya think.
    Posted in: Project Discussion
  • 0

    posted a message on Bar Snapping/Sticky Frames
    I changed the link I had posted. Now directs to wowace. Thanks Farm, I didn't know they had a built in code poster.
    Posted in: Project Discussion
  • 0

    posted a message on Bar Snapping/Sticky Frames
    Recently I decided to build my own variation on bar snapping. After several days of work, I have a pretty strong bar snapping module. If you are not sure what bar snapping is then, here goes:
    We collect the coordinants for all of frame's points (TopLeft, BottomRight, etc). After that,
    we compare those points to all of the other Magnets enabled frame's points to detect if two points are close enough to snap together. When docking frames together, only certain points can snap to each other. So, for example, the TopRight of the frame can only snap to the TopLeft of another frame. A frame may also dock to corners and middle points of edges of the screen.

    My thought is that I could get a few people to look over my code to check for performance issues or other random bits of concern. Here's a link: Magnets

    Thanks to anyone who cares to take a look and let me know what they think!
    Posted in: Project Discussion
  • To post a comment, please or register a new account.