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

    posted a message on Frame Entirely in LUA
    Quote from Phanx
    There are hundreds of examples. Many addons create frames and widgets entirely in Lua. You can find a reference here:

    http://www.wowwiki.com/Widget_API

    and if you give a more specific example of what you're looking to create, I can probably give you the names of some addons that do something similar.


    I like to do my editing in-game, in the WoWLua editor. However, some of the things I would otherwise make require a frame and I can't execute XML in-game.

    So, lets say I just want a frame with a button, that, when clicked outputs "Hello World!" to the default chat frame. I couldn't find a way to create a button without using any XML, any suggestions?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Frame Entirely in LUA
    I know you can call CreateFrame() to make an invisible frame, but is it possible to create a frame & accompanying widgets entirely with LUA?

    If so, are there any examples of this?

    Thanks in advance!
    Posted in: Lua Code Discussion
  • 0

    posted a message on lib-st (ScrollingTable)
    Sounds fantastic, I could definitively use this but i'm going to wait until I see some code samples before I try it. Current documentation confuses me more than it explained usage tbh.
    Posted in: Libraries
  • 0

    posted a message on Structures in LUA
    Whats the actual title of the book?
    Posted in: Lua Code Discussion
  • 0

    posted a message on Structures in LUA
    Thanks everyone.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Structures in LUA
    Quote from Xinhuan
    You can't define types. But you can certainly use tables that way.

    mytable = {}
    mytable[1] = {}
    mytable[1].name = "Test"

    is perfectly valid Lua syntax. {} is the table constructor. Essentially, its just a table of tables here. See the PIL for details.


    So lets say I have this.

    myTable[1] = {"Test",12, 15}

    Therefore

    myTable[1][1] would return "Test", myTable[1][2] would return 12, right?

    If not, i'm not really sure how LUA code would look since you'd be working with an array inside of an array.

    I took a look at the PIL on the LUA website but I couldn't find a section on this.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Structures in LUA
    Is there any way to get this type of functionality in LUA? Basically, the ability to define a data type that contains multiple values (eg, name, age, height) that can be accessed in a single variable (eg, a table where you can refer to say mytable[1].name = "Test")

    Thanks in advance!
    Posted in: Lua Code Discussion
  • 0

    posted a message on Registering for event reception not working
    Works perfectly, thanks!

    PS: Egingell, I play on Cenarion Circle also. /wave
    Posted in: AddOn HELP!
  • 0

    posted a message on Registering for event reception not working
    I have no idea whats going on. I tried to make a simple add-on to learn to use Ace3. (Never used it in the past, i've been writing add-ons for a long time though.) Heres my code.

    BitCongrats = LibStub("AceAddon-3.0"):NewAddon("BitCongrats", "AceEvent-3.0");
    
    BitCongrats:RegisterEvent("CHAT_MSG_GUILD_ACHIEVEMENT", "HandleGuildAchievement");
    
    function BitCongrats:HandleGuildAchievement()
       SendChatMessage("Grats.","GUILD",nil);
    end


    I get the following error on line 3 (RegisterEvent line.)

    Usage: RegisterEvent("eventname", "methodname"):'methodname' - method 'HandleGuildAchievement' not found on self.



    What am I doing wrong?
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.