Reference

  • boxmein
    25th Jul 2013 Former Staff 1 Permalink
    I needed some mundane activity during my internetting so I did this.
    http://boxmein.x10.mx/tptelements/lua/lua-reference.html
  • billion57
    25th Jul 2013 Member 0 Permalink

    Maybe I can use this while learning Lua. And screwing around with TPT. In Lua.

     

    Also, was this made in one internet session?

     

    (and that apostrophe does look apostrophy)

    Edited 2 times by billion57. Last: 24th Jul 2013
  • boxmein
    25th Jul 2013 Former Staff 0 Permalink
    @billion57 (View Post)
    I have long internet sessions
  • mniip
    25th Jul 2013 Developer 0 Permalink
    this isn't really a full api though, and one little big notice.
    by lua conventions, due to multiple returns and/or no type fixity in those, returned types are _never_ put in front of the function name, instead it's written: "returns blahblahblah,foobar; or nil,error"
  • greymatter
    25th Jul 2013 Member 0 Permalink
    @boxmein (View Post)
    Like 8hrs or something? Man that's gigantic!
  • boxmein
    25th Jul 2013 Former Staff 0 Permalink
    @greymatter (View Post)
    My internet session that day was 13 however I did that in some fraction of the time :D

    @mniip (View Post)
    I have everything except tpt.el, and I haven't got the string keys and values and stuff. More like an API object tree then.
    Return values I think I handled in an almost-sensible way, since it didn't need comments after every function definition.
  • mniip
    25th Jul 2013 Developer 0 Permalink
    not everything
    you don't have any undocumented stuff at all
  • boxmein
    25th Jul 2013 Former Staff 0 Permalink
    @mniip (View Post)
    Name me something that's undocumented and does not exist on the tree.
    (well, I'll add it then >_>)
  • mniip
    25th Jul 2013 Developer 0 Permalink
    i've already posted it on irc, but i'll double it here,
    Window.onInitialized Window.onTick Window.onExit Window.onMouseUp Window.onMouseMove Window.onTryOkay Window.onDraw Window.onMouseWheel Window.onTryExit Window.onKeyRelease Window.onBlur Window.onMouseDown Window.onKeyPress Window.onFocus
  • boxmein
    3rd Aug 2013 Former Staff 0 Permalink

    Update-o-bump, I've added values to the constants (not to say you should use them!)
    Also, everything is a link now. You can simply link to every value or method by using the table's short name (elem for element, ren for renderer) and add a . and the value.
    For example,
    http://boxmein.net/tpt/tptelements/reference/lua-reference.html#tpt.graphics_func
    http://boxmein.net/tpt//tptelements/reference/lua-reference.html#ren.PMODE_FLAT

    Edited 2 times by boxmein. Last: 10th Apr 2016