CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on How to create / use custom texture?


    Thanks!
    Posted in: AddOn HELP!
  • 0

    posted a message on How to create / use custom texture?
    Hi all,
    I made a little addon, but I would like to change the textures of the main frame (borders, background, ...), and my question is, how to create a border textures?
    I look into interface/dialogframe (http://wowprogramming.com/utils/artbrowser/Interface/DialogFrame/UI-DialogBox-Border.png), but I can't understand how to create one...
    Who can help me?

    Thanks!
    Posted in: AddOn HELP!
  • 0

    posted a message on Creating addon GUI
    Hi all,
    after some time that I didn't program in lua, I decided to do another little addon for me.
    Normally, I design my addon with WoWUIdesigner, but I think that this is not really good, so I would ask how do create a basic GUI for now, then I want to make something like the recount basic GUI, or ACP, or GTFO, ecc.
    Personally, I don't like basic wow template, so, often I use slider template.

    Can anyone help me learning how to create a GUI by LUA coding?

    Thanks!
    Posted in: AddOn HELP!
  • 0

    posted a message on Hook a script after a function?
    Quote from Farmbuyer
    Show your actual code.


    I posted it one post backward :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Hook a script after a function?
    I didn't restart the client...
    Now another question using ace addon.
    After_Core.lua code:
    local Test = Test --get the global export
    
    Test:Print("Test")


    Now, when I start wow, I don't see any "Test" message in my default chatframe. The same if I call Test with ace method:
    Test = LibStub("AceAddon-3.0"):GetAddon("Test")
    
    Test:Print("Test")


    I want to call a function in a clean lua file to register a table and other informations using a function that are in the Core.lua

    Any idea?

    Thanks for help :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Empty URL-copy-window
    Quote from yoshimo
    Hey,
    i'm using chatter to show alt-names and copy large parts of the chat, also
    it has the function to highlight urls, which i can then copy to clipboard.
    I also use wim to group up whisperwindows and keep a chathistory.
    Also i have installed Unicode Font and Unlimited Chat so larger pastes are automatically split into smaller chunks.

    Now when i click on a highlighted url , the window where i can copy it, looks strange and is empty.


    Which addons are you using (all). Did you get some error messages?
    Posted in: AddOn HELP!
  • 0

    posted a message on Hook a script after a function?
    Quote from Farmbuyer
    Files are loaded in the order listed in the .toc file. It's called "Table of Contents" for a reason. :-p


    .TOC file content:

    ## ...
    ## ...
    
    Core.lua
    After_Core.lua
    Posted in: AddOn HELP!
  • 0

    posted a message on Hook a script after a function?
    Hi,
    I would ask if there is a way to hook a script after a function and not before.
    I'm creating an addon with Ace libraries that have 2 lua file.
    The first, is the core, which create Test as newaddon. The second one, contains some function that use test. Look below:

    Core.lua
    local me = LibStub("AceAddon-3.0"):NewAddon("Test", "AceConsole-3.0", "AceEvent-3.0", "AceHook-3.0")
    Test = me --global export
    if not test1 then Test:Print("Loading...") end


    After_Core.lua
    local Test = Test --get the global export
    if not test2 then Test:Print("Loaded") end


    If you run this, you will see in chat "Loaded" and then "Loading...".
    How can I load After_Core.lua after Core.lua?

    Thanks for help

    P.s.: I'm newbie :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Player position to destination [Astrolabe]
    Solved, I didn't have time for post it.
    I used a easy string.sub up to 3 numbers like this:

    local x = 0.3802983201
    local x = string.sub(x, 1, 5)
    print(x) -- it will print x like 0.380 that are 5 digits
    Posted in: AddOn HELP!
  • 0

    posted a message on Player position to destination [Astrolabe]
    Quote from egingell
    Probably. Only the shorter you make them, the larger the area that the code will consider to be the same place.


    I will try tomorrow and write a feedback :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Player position to destination [Astrolabe]
    Quote from egingell
    Because the chances that the coordinates are exact are astronomical. GetPlayerMapPosition() returns floats similar to 0.174653758837265, 0.5873528856498.

    Also, I really hope you're only ever calling TT:Position() once because you're creating a new function every time it's executed.


    And if I use a string.sub for return only floats like 0.17 or 0.58?
    Can it work?
    Posted in: AddOn HELP!
  • 0

    posted a message on Player position to destination [Astrolabe]
    Hi all,
    another problem, I'm tring to get the real character position and compare it to a "tabled" postion.
    I create an OnUpdate function like this:

    [code]tbl = { Astrolabe:GetCurrentPlayerPosition() } function TT:Position() local frame = CreateFrame("Frame") local function Frame_OnUpdate() if Astrolabe:GetCurrentPlayerPosition() == table.concat(tbl) then TT:Print("Coords correspond") else TT:Print("Coords don't correspond") end end frame:SetScript("OnUpdate", function() Frame_OnUpdate() end) end[/code]

    With this my addon will print if coords are equal to the beginning coords. Test it so:
    1. Use the code
    2. Move backward and don't move right or left (stay in an air line)
    3. Write in chat: /script [code] or use ingame lua addon
    4. Move forward until the beginning point
    5. It will don't tell you that the coords correspond

    Why?

    Thanks for help.

    Utils:
    http://wiki.esamynn.org/Astrolabe
    Posted in: AddOn HELP!
  • 0

    posted a message on Table into table, how to concat?
    Quote from gamemaster128
    ESL = English as a Second Language

    OrionShock was implying that your English is pretty good for it not being your first language.


    Uh, ops, sorry OrionShock :).
    I ididn't know the meaning of ESL.
    Posted in: AddOn HELP!
  • 0

    posted a message on Create whisper history
    Quote from Akkorian
    If you have your main table:
    local whispers = { }
    


    Then each time you get a whisper from a person who hadn’t whispered you before:
    whispers["Sender"] = { }
    


    And each time you get a whisper from someone, add it to the table you made for them:
    table.insert( whispers["Sender"], "Message goes here" )
    


    That way the messages will all go in the t[y] table and stay in the order they were received, so you can iterate over them and print them out in order like this:
    for i, v in ipairs( whispers["Sender"] ) do
        print( format( "Message #%d: %s", i, v ) )
    end
    


    Or you can see all the people who sent you whispers:
    for k, v in pairs( whispers ) do
        print( format( "%s has sent you %d whispers.", k, #v ) )
    end
    


    Thank you very much!
    Posted in: AddOn HELP!
  • 0

    posted a message on Table into table, how to concat?
    Quote from OrionShock
    For Google Translate / ESL it was fairly clear IMO :)


    --
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.