Lua Element Creator

  • io
    8th Jun 2015 Member 0 Permalink

    Yes, it's a low resolution one (1024x800) screen. I need to use a monitor to use this :(

  • ihatehomework
    12th Apr 2016 Member 0 Permalink

    @FeynmanLogomaker (View Post)

     it won't work it says there should be a number near element or something 

    my code:

    elements.allocate('AU3FGEN', 'Cool')
    elements.element(elements.AU3FGEN_PT_Cool, elements.element(elements.DEFAULT_PT_BCOL))
    elements.property(elements.AU3FGEN_PT_Cool, 'Name', 'Cool')
    elements.property(elements.AU3FGEN_PT_Cool, 'Description', 'Coolness of COOL and emits cool gravity')
    elements.property(elements.AU3FGEN_PT_Cool, 'Color', '0x00A6FF')
    elements.property(elements.AU3FGEN_PT_Cool, 'MenuSection', '6')
    elements.property(elements.AU3FGEN_PT_Cool, 'Gravity', '10')
    elements.property(elements.AU3FGEN_PT_Cool, 'Flammable', '5')
    elements.property(elements.AU3FGEN_PT_Cool, 'Explosive', '1')
    elements.property(elements.AU3FGEN_PT_Cool, 'Loss', '0')
    elements.property(elements.AU3FGEN_PT_Cool, 'AirLoss', '1')
    elements.property(elements.AU3FGEN_PT_Cool, 'AirDrag', '100')
    elements.property(elements.AU3FGEN_PT_Cool, 'Advection', '1')
    elements.property(elements.AU3FGEN_PT_Cool, 'Weight', '10')
    elements.property(elements.AU3FGEN_PT_Cool, 'Diffusion', '0')
    elements.property(elements.AU3FGEN_PT_Cool, 'Diffusion', '0')
    local g = function(i, x, y, s, n)
    --Update Function
    end 
    tpt.element_func(g, tpt.element('Cool'))
    local g = function(i, r, g, b)
    --Press CTRL-F to run the Graphics Function helper
    local cola, colr, colg, colb, firea, firer, fireg, fireb
    cola = 255 -- Alpha 
    colr = 255 -- Red 
    colg = 255 -- Green 
    colb = 255 -- Blue 
    firea = 255 -- Alpha Glow 
    firer = 255 -- Red Glow 
    fireg = 255 -- Green Glow 
    fireb = 255 -- Blue Glow 
    --See Pixel Mode Values Table for more info
    return 0, 0x00000001, cola, colr, colg, colb, firea, firer, fireg, fireb
    end 
    tpt.graphics_func(g, tpt.element('Cool'))

    Edited once by ihatehomework. Last: 12th Apr 2016
  • jacob1
    13th Apr 2016 Developer 0 Permalink
    @ihatehomework (View Post)
    Looks like this doesn't uppercase the element name properly, element identifiers are always in all caps. So maybe rerun it with the element name as 'COOL' instead of 'Cool' and it will work.



    Also you don't have to change it since it was automatically generated, but a better way to set element properties is like this:
    local cool = elements.allocate('AU3FGEN', 'COOL')
    elements.element(cool, elements.element(elements.DEFAULT_PT_BCOL))
    elements.property(cool, 'Name', 'Cool')
    elements.property(cool, 'Description', 'Coolness of COOL and emits cool gravity')
    elements.property(cool, 'Color', '0x00A6FF')
    elements.property(cool, 'MenuSection', elem.SC_GAS)
    elements.property(cool, 'Gravity', '10')
    elements.property(cool, 'Flammable', '5')
    elements.property(cool, 'Explosive', '1')


    It's also bad to use the hardcoded '6' menusection instead of elem.SC_GAS. Would be nice if @FeynmanLogomaker could fix these issues in his program.
  • braden1127
    27th Apr 2016 Member 0 Permalink

    You are awesome!

  • TheScienceKid
    24th Dec 2016 Member 1 Permalink

    im a comboter noob, instructions unclear to meh D:

  • icyban
    22nd Apr 2017 Member 0 Permalink

    It wont let me in lua element,

     


    Line 18 (File
    "C:tata\powder\LuaElement_8.1.5.au3"):

    #include "email.au3"

    Error: Error opening the file.

    Edited once by icyban. Last: 22nd Apr 2017
  • yousuck
    22nd Apr 2017 Member 0 Permalink

    dud it says on dropbox the accounts links are generating too much traffic plz upload it to something else

  • mimiguy2
    26th May 2017 Member 0 Permalink

    I know!

  • WitherStorm
    8th Jun 2017 Member 0 Permalink

    AWESOME.... I got the beta version just cause the dropbox one did not work..

  • CORBEN369
    22nd Aug 2017 Member 0 Permalink

     "then run whichever executable suits your operating system." im not a computer geek. what do you mean by this?

    the problem is i cant run by double clicking it.

    Edited once by CORBEN369. Last: 22nd Aug 2017
Locked by LBPHacker: dead script