Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tpt.selectedl="DEFAULT_PT_DUST" -- if this is ur autorun, this will replace default element on start *dust* with what you choose.
- local Version = "2"
- local Main = Window:new(-1,-1,300,300)
- local Main1 = Window:new(-1,-1,200,200)
- local Title = Label:new(10,5,120,16, "c00lcat settings")
- local Title = Label:new(10,130,120,16, "Custom Elements Below")
- local Title2 = Label:new(10,15,121,16, "Created By Cat")
- local CloseButton = Button:new(10, 274, 60, 16, "Close")
- CloseButton:action(function() interface.closeWindow(Main) end)
- Main:onTryExit(function() interface.closeWindow(Main) end)
- Main1:onTryExit(function() interface.closeWindow(Main1) end)
- Main:addComponent(CloseButton);
- local ButtonMenu = Button:new(0, 0, 55, 15, "Settings", "Open Commands.")
- ButtonMenu:action(function() interface.showWindow(Main) end)
- -- Commands Start Here --
- local ButtonGrav = Button:new(10,45,60,16, "Add Grav")
- local RemoveGravButton = Button:new(132,45,60,16, "Remove Grav")
- local ButtonMelt = Button:new(10, 65, 60, 16, "Fire Sim")
- local CheckBox = Checkbox:new(10, 81, 60, 16, "Non-Flammable Acid.")
- local CheckBox1 = Checkbox:new(10, 95, 60, 16, "Show hidden elements. (Special)")
- local CheckBox2 = Checkbox:new(10, 109, 60, 16, "All Elements Explosive.")
- local MeltType = Textbox:new(71, 65,60,16)
- local GravNumber = Textbox:new(71,45,60,16)
- --pls
- local SUN = Button:new(10,150, 40, 16, "SUN")
- local SUPB = Button:new(10,190, 40, 16, "SUPB")
- local CYBR = Button:new(10,210, 40, 16, "CYBR")
- local STAR = Button:new(10,170, 40, 16, "STAR")
- CheckBox:action(function()
- if CheckBox:checked() then
- elements.property(elements.DEFAULT_PT_ACID, "Flammable", 0)
- else
- elements.property(elements.DEFAULT_PT_ACID, "Flammable", 40)
- end
- end)
- CheckBox2:action(function()
- if CheckBox2:checked() then
- function cat()
- local function ignore(i)
- elements.property(i, "Explosive", 1000)
- elements.property(i, "Flammable", 1000)
- end
- for i=1,255 do
- pcall(ignore, i)
- end
- end
- cat()
- else
- function catundo()
- local function ignore(i)
- elements.property(i, "Explosive", 0)
- elements.property(i, "Flammable", 0)
- end
- for i=1,255 do
- pcall(ignore, i)
- end
- end
- catundo()
- end
- end)
- CYBR:action(function()
- tpt.selectedl="YOLO_PT_CYBR"
- end)
- SUN:action(function()
- tpt.selectedl="YOLO_PT_SUN"
- end)
- SUPB:action(function()
- tpt.selectedl="YOLO_PT_SUPB"
- end)
- STAR:action(function()
- tpt.selectedl="YOLO_PT_STAR"
- end)
- CheckBox1:action(function()
- if CheckBox1:checked() then
- tpt.el.love.menusection=11
- tpt.el.mort.menusection=11
- tpt.el.bizs.menusection=11
- tpt.el.bizg.menusection=11
- tpt.el.frzw.menusection=11
- tpt.el.frzz.menusection=11
- tpt.el.rime.menusection=11
- tpt.el.psts.menusection=11
- tpt.el.dyst.menusection=11
- tpt.el.eqve.menusection=11
- tpt.el.fog.menusection=11
- tpt.el.lolz.menusection=11
- else
- tpt.el.love.menusection=111
- tpt.el.mort.menusection=111
- tpt.el.bizs.menusection=111
- tpt.el.bizg.menusection=111
- tpt.el.frzw.menusection=111
- tpt.el.frzz.menusection=111
- tpt.el.rime.menusection=111
- tpt.el.psts.menusection=111
- tpt.el.dyst.menusection=111
- tpt.el.eqve.menusection=111
- tpt.el.fog.menusection=111
- tpt.el.lolz.menusection=111
- end
- end)
- ButtonMelt:action(function()
- local txt2=MeltType:text()
- tpt.setfire(txt2)
- end)
- RemoveGravButton:action(function()
- local txt3=GravNumber:text()
- local function lold(i,x,y,s,n)
- sim.gravMap(x/4, y/4, 0)
- end
- tpt.element_func(lold,tpt.el[txt3].id)
- end)
- ButtonGrav:action(function()
- local txt1=GravNumber:text()
- local function yolo(i,x,y,s,n)
- sim.gravMap(x/4, y/4, 2)
- end
- tpt.element_func(yolo,tpt.el[txt1].id)
- end)
- -- Commands End Here --
- Main:addComponent(CheckBox)
- Main:addComponent(CheckBox2)
- Main:addComponent(ButtonMelt)
- Main:addComponent(MeltType)
- Main:addComponent(SUN)
- Main:addComponent(SUPB)
- Main:addComponent(CYBR)
- Main:addComponent(STAR)
- Main:addComponent(GravNumber)
- Main:addComponent(ButtonGrav)
- Main:addComponent(Title)
- Main:addComponent(RemoveGravButton)
- Main:addComponent(Title2)
- Main:addComponent(CheckBox1)
- -- Interface --
- interface.addComponent(ButtonMenu)
- local tool = elements.allocate("YOLO", "SUN")
- elements.element(tool, elements.element(elements.DEFAULT_PT_DMND))
- elements.property(tool, "Name", "SUN")
- elements.property(tool, "Color", 0xFFFF00)
- elements.property(tool, "Description", "A huge ball of burning gas.")
- elements.property(tool, "MenuSection", 121)
- elements.property(tool, "HotAir", 0.01)
- elements.property(tool, "Temperature", 99999999999999999999999)
- elements.property(tool, "HeatConduct",9999999999999999999999999999999999999999999)
- local function graphics1(i, colr, colg, colb)
- return 1,0x00010000,255,255,255,0,255,255,255,0
- end
- tpt.graphics_func(graphics1,tool)
- local function test(i,x,y,s,n)
- tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plsm')
- tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plsm')
- tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lava')
- tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'lava')
- tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'plsm')
- sim.gravMap(x/4, y/4, 10)
- end
- tpt.element_func(test,tool)
- local tool1 = elements.allocate("YOLO", "STAR")
- elements.element(tool1, elements.element(elements.DEFAULT_PT_DMND))
- elements.property(tool1, "Name", "STAR")
- elements.property(tool1, "Color", 0xFFFFFF)
- elements.property(tool1, "Description", "A star.")
- elements.property(tool1, "MenuSection", 121)
- elements.property(tool1, "Temperature", 99999999999999999999999)
- elements.property(tool1, "HeatConduct",9999999999999999999999999999999999999999999)
- local function graphics11(i, colr, colg, colb)
- return 1,0x00010000,255,255,255,255,255,255,255,255
- end
- tpt.graphics_func(graphics11,tool1)
- local function test1(i,x,y,s,n)
- sim.gravMap(x/4, y/4, 0.1)
- end
- tpt.element_func(test1,tool1)
- local tool2 = elements.allocate("YOLO","SUPB")
- elements.element(tool2, elements.element(elements.DEFAULT_PT_PHOT))
- elements.property(tool2, "Name", "SUPB")
- elements.property(tool2, "Colour", 0xFF0099)
- elements.property(tool2, "MenuSection", 121)
- elements.property(tool2, "Advection", 0.2)
- elements.property(tool2, "Collision", 1.0)
- elements.property(tool2, "Gravity", 3.0)
- elements.property(tool2, "Diffusion", 0.3)
- elements.property(tool2, "Weight", 40.45)
- elements.property(tool2, "Description", "Ballz that bounces.")
- local tool3 = elements.allocate("YOLO" , "CYBR")
- elements.element(tool3, elements.element(elements.DEFAULT_PT_DMND))
- elements.property(tool3, "Name" , "CYBR")
- elements.property(tool3, "Description" , "Cyber.")
- elements.property(tool3, "MenuSection" , 121)
- elements.property(tool3, "Gravity" , 0.5)
- elements.property(tool3, "Flammable" , 0)
- elements.property(tool3, "Diffusion" , 0)
- elements.property(tool3, "Weight" , 100)
- elements.property(tool3, "Advection" , 0.1)
- elements.property(tool3, "Color" , 0x00FF00)
- elements.property(tool3, "Temperature", 14235346465462432)
- elements.property(tool3, "AirLoss" , 0.95)
- elements.property(tool3, "Loss" , 0.15)
- elements.property(tool3, "MenuVisible" , 1)
- function swag1(i,x,y,s,n)
- type = tpt.get_property("ctype", x, y)
- if type == 0 then
- tpt.set_property("type", tool3, x + math.random(-1,1), y + math.random(-1,1)) -- credit 2 queinten.
- end
- end
- tpt.element_func(swag1,tool3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement