content
stringlengths
5
1.05M
local RoundRobin = {} RoundRobin.__index = RoundRobin function RoundRobin.new(t) local self = setmetatable({}, RoundRobin) self.items = {} if t then for _, value in pairs(t) do table.insert(self.items, value) end end return self end function RoundRobin:get_position(value) local position = 1 for _, iterator_value in pairs(self.items) do if iterator_value == value then return position end position = position + 1 end return nil end function RoundRobin:consume(value) self:remove(value) self:insert(value) end function RoundRobin:insert(value) table.insert(self.items, value) end function RoundRobin:remove(value) local position = self:get_position(value) if position ~= nil then table.remove(self.items, position) end end function RoundRobin:get() return self.items end return RoundRobin
-- -- Patch robo chests to have 4 charging points instead of 1 -- for _,name in pairs({ "bob-robochest", "bob-robochest-2", "bob-robochest-3", "bob-robochest-4" }) do local obj = data.raw["roboport"][name] if obj ~= nil then --log("%%% tweaking "..name) obj.charging_offsets = { {-0.5, -0.5}, {0.5, -0.5}, {-0.5, 0.5}, {0.5, 0.5}, } end end -- -- Create a zone expander that has a small logistics radius and no construction radius -- local entity = data.raw["roboport"]["bob-logistic-zone-expander"] local item = data.raw["item"]["bob-logistic-zone-expander"] local tech = data.raw["technology"]["bob-robo-modular-1"] if entity ~= nil and item ~= nil and tech ~= nil then local name = "tritano-logistic-zone-expander-1" --log("%%% creating "..name) entity = table.deepcopy(entity); entity.name = name entity.minable.result = entity.name entity.logistics_radius = 5 entity.construction_radius = 0 item = table.deepcopy(item) item.name = name item.place_result = name item.order = item.order:gsub("%d*]$", "zzz-"..name.."]") table.insert(tech.effects, { type = "unlock-recipe", recipe = name }) data.raw["roboport"][name] = entity data.raw["item"][name] = item data:extend({ { type = "recipe", name = name, enabled = "false", ingredients = { {"steel-plate", 3}, {"roboport-antenna-1", 1}, }, result = name, energy_required = 2 }}) end
require("rrpg.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); function newfrmFichaACN() __o_rrpgObjs.beginObjectsLoading(); local obj = gui.fromHandle(_obj_newObject("form")); local self = obj; local sheet = nil; rawset(obj, "_oldSetNodeObjectFunction", rawget(obj, "setNodeObject")); function obj:setNodeObject(nodeObject) sheet = nodeObject; self.sheet = nodeObject; self:_oldSetNodeObjectFunction(nodeObject); end; function obj:setNodeDatabase(nodeObject) self:setNodeObject(nodeObject); end; _gui_assignInitialParentForForm(obj.handle); obj:beginUpdate(); obj:setName("frmFichaACN"); obj:setFormType("sheetTemplate"); obj:setDataType("Ambesek.Nefertyne.FichaADnD2e"); obj:setTitle("Ficha AD&D 2e"); obj:setAlign("client"); obj:setTheme("dark"); obj.tabControl1 = gui.fromHandle(_obj_newObject("tabControl")); obj.tabControl1:setParent(obj); obj.tabControl1:setAlign("client"); obj.tabControl1:setName("tabControl1"); obj.tab1 = gui.fromHandle(_obj_newObject("tab")); obj.tab1:setParent(obj.tabControl1); obj.tab1:setTitle("Geral"); obj.tab1:setName("tab1"); obj.frmADnD1 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD1:setParent(obj.tab1); obj.frmADnD1:setName("frmADnD1"); obj.frmADnD1:setAlign("client"); obj.frmADnD1:setTheme("dark"); obj.scrollBox1 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox1:setParent(obj.frmADnD1); obj.scrollBox1:setAlign("client"); obj.scrollBox1:setName("scrollBox1"); obj.layout1 = gui.fromHandle(_obj_newObject("layout")); obj.layout1:setParent(obj.scrollBox1); obj.layout1:setLeft(0); obj.layout1:setTop(0); obj.layout1:setWidth(935); obj.layout1:setHeight(70); obj.layout1:setName("layout1"); obj.rectangle1 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle1:setParent(obj.layout1); obj.rectangle1:setAlign("client"); obj.rectangle1:setColor("black"); obj.rectangle1:setXradius(5); obj.rectangle1:setYradius(5); obj.rectangle1:setCornerType("round"); obj.rectangle1:setName("rectangle1"); obj.layout2 = gui.fromHandle(_obj_newObject("layout")); obj.layout2:setParent(obj.layout1); obj.layout2:setLeft(5); obj.layout2:setTop(5); obj.layout2:setWidth(310); obj.layout2:setHeight(25); obj.layout2:setName("layout2"); obj.label1 = gui.fromHandle(_obj_newObject("label")); obj.label1:setParent(obj.layout2); obj.label1:setLeft(5); obj.label1:setTop(5); obj.label1:setWidth(100); obj.label1:setHeight(20); obj.label1:setText("Nome"); obj.label1:setHorzTextAlign("trailing"); obj.label1:setName("label1"); obj.edit1 = gui.fromHandle(_obj_newObject("edit")); obj.edit1:setParent(obj.layout2); obj.edit1:setLeft(110); obj.edit1:setTop(0); obj.edit1:setWidth(200); obj.edit1:setHeight(25); obj.edit1:setField("nome"); obj.edit1:setName("edit1"); obj.layout3 = gui.fromHandle(_obj_newObject("layout")); obj.layout3:setParent(obj.layout1); obj.layout3:setLeft(270); obj.layout3:setTop(5); obj.layout3:setWidth(310); obj.layout3:setHeight(25); obj.layout3:setName("layout3"); obj.label2 = gui.fromHandle(_obj_newObject("label")); obj.label2:setParent(obj.layout3); obj.label2:setLeft(5); obj.label2:setTop(5); obj.label2:setWidth(100); obj.label2:setHeight(20); obj.label2:setText("Raça"); obj.label2:setHorzTextAlign("trailing"); obj.label2:setName("label2"); obj.edit2 = gui.fromHandle(_obj_newObject("edit")); obj.edit2:setParent(obj.layout3); obj.edit2:setLeft(110); obj.edit2:setTop(0); obj.edit2:setWidth(200); obj.edit2:setHeight(25); obj.edit2:setField("raca"); obj.edit2:setName("edit2"); obj.layout4 = gui.fromHandle(_obj_newObject("layout")); obj.layout4:setParent(obj.layout1); obj.layout4:setLeft(560); obj.layout4:setTop(5); obj.layout4:setWidth(310); obj.layout4:setHeight(25); obj.layout4:setName("layout4"); obj.label3 = gui.fromHandle(_obj_newObject("label")); obj.label3:setParent(obj.layout4); obj.label3:setLeft(5); obj.label3:setTop(5); obj.label3:setWidth(100); obj.label3:setHeight(20); obj.label3:setText("Divindade"); obj.label3:setHorzTextAlign("trailing"); obj.label3:setName("label3"); obj.edit3 = gui.fromHandle(_obj_newObject("edit")); obj.edit3:setParent(obj.layout4); obj.edit3:setLeft(110); obj.edit3:setTop(0); obj.edit3:setWidth(200); obj.edit3:setHeight(25); obj.edit3:setField("divindade"); obj.edit3:setName("edit3"); obj.layout5 = gui.fromHandle(_obj_newObject("layout")); obj.layout5:setParent(obj.layout1); obj.layout5:setLeft(5); obj.layout5:setTop(35); obj.layout5:setWidth(310); obj.layout5:setHeight(25); obj.layout5:setName("layout5"); obj.label4 = gui.fromHandle(_obj_newObject("label")); obj.label4:setParent(obj.layout5); obj.label4:setLeft(5); obj.label4:setTop(5); obj.label4:setWidth(100); obj.label4:setHeight(20); obj.label4:setText("Nível"); obj.label4:setHorzTextAlign("trailing"); obj.label4:setName("label4"); obj.edit4 = gui.fromHandle(_obj_newObject("edit")); obj.edit4:setParent(obj.layout5); obj.edit4:setLeft(110); obj.edit4:setTop(0); obj.edit4:setWidth(40); obj.edit4:setHeight(25); obj.edit4:setField("nivel"); obj.edit4:setName("edit4"); obj.label5 = gui.fromHandle(_obj_newObject("label")); obj.label5:setParent(obj.layout5); obj.label5:setLeft(155); obj.label5:setTop(5); obj.label5:setWidth(20); obj.label5:setHeight(20); obj.label5:setText("XP"); obj.label5:setHorzTextAlign("trailing"); obj.label5:setName("label5"); obj.edit5 = gui.fromHandle(_obj_newObject("edit")); obj.edit5:setParent(obj.layout5); obj.edit5:setLeft(180); obj.edit5:setTop(0); obj.edit5:setWidth(65); obj.edit5:setHeight(25); obj.edit5:setField("xp1"); obj.edit5:setName("edit5"); obj.edit6 = gui.fromHandle(_obj_newObject("edit")); obj.edit6:setParent(obj.layout5); obj.edit6:setLeft(245); obj.edit6:setTop(0); obj.edit6:setWidth(65); obj.edit6:setHeight(25); obj.edit6:setField("xp2"); obj.edit6:setName("edit6"); obj.layout6 = gui.fromHandle(_obj_newObject("layout")); obj.layout6:setParent(obj.layout1); obj.layout6:setLeft(270); obj.layout6:setTop(35); obj.layout6:setWidth(310); obj.layout6:setHeight(25); obj.layout6:setName("layout6"); obj.label6 = gui.fromHandle(_obj_newObject("label")); obj.label6:setParent(obj.layout6); obj.label6:setLeft(5); obj.label6:setTop(5); obj.label6:setWidth(100); obj.label6:setHeight(20); obj.label6:setText("Classe"); obj.label6:setHorzTextAlign("trailing"); obj.label6:setName("label6"); obj.edit7 = gui.fromHandle(_obj_newObject("edit")); obj.edit7:setParent(obj.layout6); obj.edit7:setLeft(110); obj.edit7:setTop(0); obj.edit7:setWidth(200); obj.edit7:setHeight(25); obj.edit7:setField("classe"); obj.edit7:setName("edit7"); obj.layout7 = gui.fromHandle(_obj_newObject("layout")); obj.layout7:setParent(obj.layout1); obj.layout7:setLeft(560); obj.layout7:setTop(35); obj.layout7:setWidth(310); obj.layout7:setHeight(25); obj.layout7:setName("layout7"); obj.label7 = gui.fromHandle(_obj_newObject("label")); obj.label7:setParent(obj.layout7); obj.label7:setLeft(5); obj.label7:setTop(5); obj.label7:setWidth(100); obj.label7:setHeight(20); obj.label7:setText("Tendência"); obj.label7:setHorzTextAlign("trailing"); obj.label7:setName("label7"); obj.edit8 = gui.fromHandle(_obj_newObject("edit")); obj.edit8:setParent(obj.layout7); obj.edit8:setLeft(110); obj.edit8:setTop(0); obj.edit8:setWidth(200); obj.edit8:setHeight(25); obj.edit8:setField("tendencia"); obj.edit8:setName("edit8"); obj.layout8 = gui.fromHandle(_obj_newObject("layout")); obj.layout8:setParent(obj.scrollBox1); obj.layout8:setLeft(0); obj.layout8:setTop(80); obj.layout8:setWidth(450); obj.layout8:setHeight(360); obj.layout8:setName("layout8"); obj.rectangle2 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle2:setParent(obj.layout8); obj.rectangle2:setAlign("client"); obj.rectangle2:setColor("black"); obj.rectangle2:setXradius(5); obj.rectangle2:setYradius(5); obj.rectangle2:setCornerType("round"); obj.rectangle2:setName("rectangle2"); obj.label8 = gui.fromHandle(_obj_newObject("label")); obj.label8:setParent(obj.layout8); obj.label8:setLeft(0); obj.label8:setTop(5); obj.label8:setWidth(450); obj.label8:setHeight(20); obj.label8:setText("ATRIBUTOS"); obj.label8:setHorzTextAlign("center"); obj.label8:setName("label8"); obj.layout9 = gui.fromHandle(_obj_newObject("layout")); obj.layout9:setParent(obj.layout8); obj.layout9:setLeft(0); obj.layout9:setTop(30); obj.layout9:setWidth(450); obj.layout9:setHeight(50); obj.layout9:setName("layout9"); obj.label9 = gui.fromHandle(_obj_newObject("label")); obj.label9:setParent(obj.layout9); obj.label9:setLeft(5); obj.label9:setTop(5); obj.label9:setWidth(100); obj.label9:setHeight(45); obj.label9:setText("FORÇA"); obj.label9:setName("label9"); obj.edit9 = gui.fromHandle(_obj_newObject("edit")); obj.edit9:setParent(obj.layout9); obj.edit9:setLeft(100); obj.edit9:setTop(0); obj.edit9:setWidth(50); obj.edit9:setHeight(50); obj.edit9:setField("forca"); obj.edit9:setHorzTextAlign("center"); obj.edit9:setFontSize(20); obj.edit9:setName("edit9"); obj.label10 = gui.fromHandle(_obj_newObject("label")); obj.label10:setParent(obj.layout9); obj.label10:setLeft(155); obj.label10:setTop(5); obj.label10:setWidth(40); obj.label10:setHeight(20); obj.label10:setText("Acerto"); obj.label10:setName("label10"); obj.edit10 = gui.fromHandle(_obj_newObject("edit")); obj.edit10:setParent(obj.layout9); obj.edit10:setLeft(155); obj.edit10:setTop(25); obj.edit10:setWidth(40); obj.edit10:setHeight(25); obj.edit10:setField("for_acerto"); obj.edit10:setName("edit10"); obj.label11 = gui.fromHandle(_obj_newObject("label")); obj.label11:setParent(obj.layout9); obj.label11:setLeft(203); obj.label11:setTop(5); obj.label11:setWidth(40); obj.label11:setHeight(20); obj.label11:setText("Dano"); obj.label11:setName("label11"); obj.edit11 = gui.fromHandle(_obj_newObject("edit")); obj.edit11:setParent(obj.layout9); obj.edit11:setLeft(200); obj.edit11:setTop(25); obj.edit11:setWidth(40); obj.edit11:setHeight(25); obj.edit11:setField("for_dano"); obj.edit11:setName("edit11"); obj.label12 = gui.fromHandle(_obj_newObject("label")); obj.label12:setParent(obj.layout9); obj.label12:setLeft(247); obj.label12:setTop(5); obj.label12:setWidth(40); obj.label12:setHeight(20); obj.label12:setText("Carga"); obj.label12:setName("label12"); obj.edit12 = gui.fromHandle(_obj_newObject("edit")); obj.edit12:setParent(obj.layout9); obj.edit12:setLeft(245); obj.edit12:setTop(25); obj.edit12:setWidth(40); obj.edit12:setHeight(25); obj.edit12:setField("for_carga"); obj.edit12:setName("edit12"); obj.label13 = gui.fromHandle(_obj_newObject("label")); obj.label13:setParent(obj.layout9); obj.label13:setLeft(290); obj.label13:setTop(5); obj.label13:setWidth(45); obj.label13:setHeight(20); obj.label13:setText("Sustentação"); obj.label13:setFontSize(8); obj.label13:setName("label13"); obj.edit13 = gui.fromHandle(_obj_newObject("edit")); obj.edit13:setParent(obj.layout9); obj.edit13:setLeft(290); obj.edit13:setTop(25); obj.edit13:setWidth(40); obj.edit13:setHeight(25); obj.edit13:setField("for_sustentacao"); obj.edit13:setName("edit13"); obj.label14 = gui.fromHandle(_obj_newObject("label")); obj.label14:setParent(obj.layout9); obj.label14:setLeft(338); obj.label14:setTop(5); obj.label14:setWidth(40); obj.label14:setHeight(20); obj.label14:setText("Abrir"); obj.label14:setName("label14"); obj.edit14 = gui.fromHandle(_obj_newObject("edit")); obj.edit14:setParent(obj.layout9); obj.edit14:setLeft(335); obj.edit14:setTop(25); obj.edit14:setWidth(40); obj.edit14:setHeight(25); obj.edit14:setField("for_abrir"); obj.edit14:setName("edit14"); obj.label15 = gui.fromHandle(_obj_newObject("label")); obj.label15:setParent(obj.layout9); obj.label15:setLeft(380); obj.label15:setTop(5); obj.label15:setWidth(40); obj.label15:setHeight(20); obj.label15:setText("Barras"); obj.label15:setName("label15"); obj.edit15 = gui.fromHandle(_obj_newObject("edit")); obj.edit15:setParent(obj.layout9); obj.edit15:setLeft(380); obj.edit15:setTop(25); obj.edit15:setWidth(40); obj.edit15:setHeight(25); obj.edit15:setField("for_barras"); obj.edit15:setName("edit15"); obj.layout10 = gui.fromHandle(_obj_newObject("layout")); obj.layout10:setParent(obj.layout8); obj.layout10:setLeft(0); obj.layout10:setTop(85); obj.layout10:setWidth(450); obj.layout10:setHeight(50); obj.layout10:setName("layout10"); obj.label16 = gui.fromHandle(_obj_newObject("label")); obj.label16:setParent(obj.layout10); obj.label16:setLeft(5); obj.label16:setTop(5); obj.label16:setWidth(100); obj.label16:setHeight(45); obj.label16:setText("DESTREZA"); obj.label16:setName("label16"); obj.edit16 = gui.fromHandle(_obj_newObject("edit")); obj.edit16:setParent(obj.layout10); obj.edit16:setLeft(100); obj.edit16:setTop(0); obj.edit16:setWidth(50); obj.edit16:setHeight(50); obj.edit16:setField("destreza"); obj.edit16:setHorzTextAlign("center"); obj.edit16:setFontSize(20); obj.edit16:setName("edit16"); obj.label17 = gui.fromHandle(_obj_newObject("label")); obj.label17:setParent(obj.layout10); obj.label17:setLeft(155); obj.label17:setTop(5); obj.label17:setWidth(40); obj.label17:setHeight(20); obj.label17:setText("Reação"); obj.label17:setFontSize(12); obj.label17:setName("label17"); obj.edit17 = gui.fromHandle(_obj_newObject("edit")); obj.edit17:setParent(obj.layout10); obj.edit17:setLeft(155); obj.edit17:setTop(25); obj.edit17:setWidth(40); obj.edit17:setHeight(25); obj.edit17:setField("des_reacao"); obj.edit17:setName("edit17"); obj.label18 = gui.fromHandle(_obj_newObject("label")); obj.label18:setParent(obj.layout10); obj.label18:setLeft(203); obj.label18:setTop(5); obj.label18:setWidth(40); obj.label18:setHeight(20); obj.label18:setText("Ataque"); obj.label18:setFontSize(12); obj.label18:setName("label18"); obj.edit18 = gui.fromHandle(_obj_newObject("edit")); obj.edit18:setParent(obj.layout10); obj.edit18:setLeft(200); obj.edit18:setTop(25); obj.edit18:setWidth(40); obj.edit18:setHeight(25); obj.edit18:setField("des_ataque"); obj.edit18:setName("edit18"); obj.label19 = gui.fromHandle(_obj_newObject("label")); obj.label19:setParent(obj.layout10); obj.label19:setLeft(247); obj.label19:setTop(5); obj.label19:setWidth(40); obj.label19:setHeight(20); obj.label19:setText("Defesa"); obj.label19:setName("label19"); obj.edit19 = gui.fromHandle(_obj_newObject("edit")); obj.edit19:setParent(obj.layout10); obj.edit19:setLeft(245); obj.edit19:setTop(25); obj.edit19:setWidth(40); obj.edit19:setHeight(25); obj.edit19:setField("des_defesa"); obj.edit19:setName("edit19"); obj.layout11 = gui.fromHandle(_obj_newObject("layout")); obj.layout11:setParent(obj.layout8); obj.layout11:setLeft(0); obj.layout11:setTop(140); obj.layout11:setWidth(450); obj.layout11:setHeight(50); obj.layout11:setName("layout11"); obj.label20 = gui.fromHandle(_obj_newObject("label")); obj.label20:setParent(obj.layout11); obj.label20:setLeft(5); obj.label20:setTop(5); obj.label20:setWidth(100); obj.label20:setHeight(45); obj.label20:setText("CONSTITUIÇÃO"); obj.label20:setName("label20"); obj.edit20 = gui.fromHandle(_obj_newObject("edit")); obj.edit20:setParent(obj.layout11); obj.edit20:setLeft(100); obj.edit20:setTop(0); obj.edit20:setWidth(50); obj.edit20:setHeight(50); obj.edit20:setField("constituicao"); obj.edit20:setHorzTextAlign("center"); obj.edit20:setFontSize(20); obj.edit20:setName("edit20"); obj.label21 = gui.fromHandle(_obj_newObject("label")); obj.label21:setParent(obj.layout11); obj.label21:setLeft(160); obj.label21:setTop(5); obj.label21:setWidth(40); obj.label21:setHeight(20); obj.label21:setText("PVs"); obj.label21:setName("label21"); obj.edit21 = gui.fromHandle(_obj_newObject("edit")); obj.edit21:setParent(obj.layout11); obj.edit21:setLeft(155); obj.edit21:setTop(25); obj.edit21:setWidth(40); obj.edit21:setHeight(25); obj.edit21:setField("con_pvs"); obj.edit21:setName("edit21"); obj.label22 = gui.fromHandle(_obj_newObject("label")); obj.label22:setParent(obj.layout11); obj.label22:setLeft(200); obj.label22:setTop(5); obj.label22:setWidth(40); obj.label22:setHeight(20); obj.label22:setText("Colapso"); obj.label22:setFontSize(11); obj.label22:setName("label22"); obj.edit22 = gui.fromHandle(_obj_newObject("edit")); obj.edit22:setParent(obj.layout11); obj.edit22:setLeft(200); obj.edit22:setTop(25); obj.edit22:setWidth(40); obj.edit22:setHeight(25); obj.edit22:setField("con_colapse"); obj.edit22:setName("edit22"); obj.label23 = gui.fromHandle(_obj_newObject("label")); obj.label23:setParent(obj.layout11); obj.label23:setLeft(243); obj.label23:setTop(5); obj.label23:setWidth(47); obj.label23:setHeight(20); obj.label23:setText("Ressurreição"); obj.label23:setFontSize(8); obj.label23:setName("label23"); obj.edit23 = gui.fromHandle(_obj_newObject("edit")); obj.edit23:setParent(obj.layout11); obj.edit23:setLeft(245); obj.edit23:setTop(25); obj.edit23:setWidth(40); obj.edit23:setHeight(25); obj.edit23:setField("con_ressurreicao"); obj.edit23:setName("edit23"); obj.label24 = gui.fromHandle(_obj_newObject("label")); obj.label24:setParent(obj.layout11); obj.label24:setLeft(290); obj.label24:setTop(5); obj.label24:setWidth(45); obj.label24:setHeight(20); obj.label24:setText("Veneno"); obj.label24:setFontSize(12); obj.label24:setName("label24"); obj.edit24 = gui.fromHandle(_obj_newObject("edit")); obj.edit24:setParent(obj.layout11); obj.edit24:setLeft(290); obj.edit24:setTop(25); obj.edit24:setWidth(40); obj.edit24:setHeight(25); obj.edit24:setField("con_veneno"); obj.edit24:setName("edit24"); obj.label25 = gui.fromHandle(_obj_newObject("label")); obj.label25:setParent(obj.layout11); obj.label25:setLeft(335); obj.label25:setTop(5); obj.label25:setWidth(50); obj.label25:setHeight(20); obj.label25:setText("Regeneração"); obj.label25:setFontSize(8); obj.label25:setName("label25"); obj.edit25 = gui.fromHandle(_obj_newObject("edit")); obj.edit25:setParent(obj.layout11); obj.edit25:setLeft(335); obj.edit25:setTop(25); obj.edit25:setWidth(40); obj.edit25:setHeight(25); obj.edit25:setField("con_regeneracao"); obj.edit25:setName("edit25"); obj.layout12 = gui.fromHandle(_obj_newObject("layout")); obj.layout12:setParent(obj.layout8); obj.layout12:setLeft(0); obj.layout12:setTop(195); obj.layout12:setWidth(450); obj.layout12:setHeight(50); obj.layout12:setName("layout12"); obj.label26 = gui.fromHandle(_obj_newObject("label")); obj.label26:setParent(obj.layout12); obj.label26:setLeft(5); obj.label26:setTop(5); obj.label26:setWidth(100); obj.label26:setHeight(45); obj.label26:setText("INTELIGÊNCIA"); obj.label26:setName("label26"); obj.edit26 = gui.fromHandle(_obj_newObject("edit")); obj.edit26:setParent(obj.layout12); obj.edit26:setLeft(100); obj.edit26:setTop(0); obj.edit26:setWidth(50); obj.edit26:setHeight(50); obj.edit26:setField("inteligencia"); obj.edit26:setHorzTextAlign("center"); obj.edit26:setFontSize(20); obj.edit26:setName("edit26"); obj.label27 = gui.fromHandle(_obj_newObject("label")); obj.label27:setParent(obj.layout12); obj.label27:setLeft(155); obj.label27:setTop(5); obj.label27:setWidth(40); obj.label27:setHeight(20); obj.label27:setText("Idiomas"); obj.label27:setFontSize(11); obj.label27:setName("label27"); obj.edit27 = gui.fromHandle(_obj_newObject("edit")); obj.edit27:setParent(obj.layout12); obj.edit27:setLeft(155); obj.edit27:setTop(25); obj.edit27:setWidth(40); obj.edit27:setHeight(25); obj.edit27:setField("int_idiomas"); obj.edit27:setName("edit27"); obj.label28 = gui.fromHandle(_obj_newObject("label")); obj.label28:setParent(obj.layout12); obj.label28:setLeft(200); obj.label28:setTop(5); obj.label28:setWidth(40); obj.label28:setHeight(20); obj.label28:setText("Magia"); obj.label28:setFontSize(13); obj.label28:setName("label28"); obj.edit28 = gui.fromHandle(_obj_newObject("edit")); obj.edit28:setParent(obj.layout12); obj.edit28:setLeft(200); obj.edit28:setTop(25); obj.edit28:setWidth(40); obj.edit28:setHeight(25); obj.edit28:setField("int_magia"); obj.edit28:setName("edit28"); obj.label29 = gui.fromHandle(_obj_newObject("label")); obj.label29:setParent(obj.layout12); obj.label29:setLeft(245); obj.label29:setTop(5); obj.label29:setWidth(47); obj.label29:setHeight(20); obj.label29:setText("Aprender"); obj.label29:setFontSize(10); obj.label29:setName("label29"); obj.edit29 = gui.fromHandle(_obj_newObject("edit")); obj.edit29:setParent(obj.layout12); obj.edit29:setLeft(245); obj.edit29:setTop(25); obj.edit29:setWidth(40); obj.edit29:setHeight(25); obj.edit29:setField("int_aprender"); obj.edit29:setName("edit29"); obj.label30 = gui.fromHandle(_obj_newObject("label")); obj.label30:setParent(obj.layout12); obj.label30:setLeft(290); obj.label30:setTop(5); obj.label30:setWidth(45); obj.label30:setHeight(20); obj.label30:setText("Maximo"); obj.label30:setFontSize(11); obj.label30:setName("label30"); obj.edit30 = gui.fromHandle(_obj_newObject("edit")); obj.edit30:setParent(obj.layout12); obj.edit30:setLeft(290); obj.edit30:setTop(25); obj.edit30:setWidth(40); obj.edit30:setHeight(25); obj.edit30:setField("int_magia"); obj.edit30:setName("edit30"); obj.label31 = gui.fromHandle(_obj_newObject("label")); obj.label31:setParent(obj.layout12); obj.label31:setLeft(335); obj.label31:setTop(5); obj.label31:setWidth(95); obj.label31:setHeight(20); obj.label31:setText("Imunidade à Magia"); obj.label31:setFontSize(11); obj.label31:setName("label31"); obj.edit31 = gui.fromHandle(_obj_newObject("edit")); obj.edit31:setParent(obj.layout12); obj.edit31:setLeft(335); obj.edit31:setTop(25); obj.edit31:setWidth(95); obj.edit31:setHeight(25); obj.edit31:setField("int_imunidade"); obj.edit31:setName("edit31"); obj.layout13 = gui.fromHandle(_obj_newObject("layout")); obj.layout13:setParent(obj.layout8); obj.layout13:setLeft(0); obj.layout13:setTop(250); obj.layout13:setWidth(450); obj.layout13:setHeight(50); obj.layout13:setName("layout13"); obj.label32 = gui.fromHandle(_obj_newObject("label")); obj.label32:setParent(obj.layout13); obj.label32:setLeft(5); obj.label32:setTop(5); obj.label32:setWidth(100); obj.label32:setHeight(45); obj.label32:setText("SABEDORIA"); obj.label32:setName("label32"); obj.edit32 = gui.fromHandle(_obj_newObject("edit")); obj.edit32:setParent(obj.layout13); obj.edit32:setLeft(100); obj.edit32:setTop(0); obj.edit32:setWidth(50); obj.edit32:setHeight(50); obj.edit32:setField("sabedoria"); obj.edit32:setHorzTextAlign("center"); obj.edit32:setFontSize(20); obj.edit32:setName("edit32"); obj.label33 = gui.fromHandle(_obj_newObject("label")); obj.label33:setParent(obj.layout13); obj.label33:setLeft(155); obj.label33:setTop(5); obj.label33:setWidth(40); obj.label33:setHeight(20); obj.label33:setText("Defesa"); obj.label33:setFontSize(11); obj.label33:setName("label33"); obj.edit33 = gui.fromHandle(_obj_newObject("edit")); obj.edit33:setParent(obj.layout13); obj.edit33:setLeft(155); obj.edit33:setTop(25); obj.edit33:setWidth(40); obj.edit33:setHeight(25); obj.edit33:setField("sab_defesa"); obj.edit33:setName("edit33"); obj.label34 = gui.fromHandle(_obj_newObject("label")); obj.label34:setParent(obj.layout13); obj.label34:setLeft(200); obj.label34:setTop(5); obj.label34:setWidth(85); obj.label34:setHeight(20); obj.label34:setText("Magias Extras"); obj.label34:setFontSize(13); obj.label34:setName("label34"); obj.edit34 = gui.fromHandle(_obj_newObject("edit")); obj.edit34:setParent(obj.layout13); obj.edit34:setLeft(200); obj.edit34:setTop(25); obj.edit34:setWidth(85); obj.edit34:setHeight(25); obj.edit34:setField("sab_extra"); obj.edit34:setName("edit34"); obj.label35 = gui.fromHandle(_obj_newObject("label")); obj.label35:setParent(obj.layout13); obj.label35:setLeft(290); obj.label35:setTop(5); obj.label35:setWidth(45); obj.label35:setHeight(20); obj.label35:setText("Falha"); obj.label35:setFontSize(12); obj.label35:setName("label35"); obj.edit35 = gui.fromHandle(_obj_newObject("edit")); obj.edit35:setParent(obj.layout13); obj.edit35:setLeft(290); obj.edit35:setTop(25); obj.edit35:setWidth(40); obj.edit35:setHeight(25); obj.edit35:setField("sab_falha"); obj.edit35:setName("edit35"); obj.label36 = gui.fromHandle(_obj_newObject("label")); obj.label36:setParent(obj.layout13); obj.label36:setLeft(335); obj.label36:setTop(5); obj.label36:setWidth(95); obj.label36:setHeight(20); obj.label36:setText("Imunidade à Magia"); obj.label36:setFontSize(11); obj.label36:setName("label36"); obj.edit36 = gui.fromHandle(_obj_newObject("edit")); obj.edit36:setParent(obj.layout13); obj.edit36:setLeft(335); obj.edit36:setTop(25); obj.edit36:setWidth(95); obj.edit36:setHeight(25); obj.edit36:setField("int_imunidade"); obj.edit36:setName("edit36"); obj.layout14 = gui.fromHandle(_obj_newObject("layout")); obj.layout14:setParent(obj.layout8); obj.layout14:setLeft(0); obj.layout14:setTop(305); obj.layout14:setWidth(450); obj.layout14:setHeight(50); obj.layout14:setName("layout14"); obj.label37 = gui.fromHandle(_obj_newObject("label")); obj.label37:setParent(obj.layout14); obj.label37:setLeft(5); obj.label37:setTop(5); obj.label37:setWidth(100); obj.label37:setHeight(45); obj.label37:setText("CARISMA"); obj.label37:setName("label37"); obj.edit37 = gui.fromHandle(_obj_newObject("edit")); obj.edit37:setParent(obj.layout14); obj.edit37:setLeft(100); obj.edit37:setTop(0); obj.edit37:setWidth(50); obj.edit37:setHeight(50); obj.edit37:setField("carisma"); obj.edit37:setHorzTextAlign("center"); obj.edit37:setFontSize(20); obj.edit37:setName("edit37"); obj.label38 = gui.fromHandle(_obj_newObject("label")); obj.label38:setParent(obj.layout14); obj.label38:setLeft(155); obj.label38:setTop(5); obj.label38:setWidth(40); obj.label38:setHeight(20); obj.label38:setText("Aliados"); obj.label38:setFontSize(12); obj.label38:setName("label38"); obj.edit38 = gui.fromHandle(_obj_newObject("edit")); obj.edit38:setParent(obj.layout14); obj.edit38:setLeft(155); obj.edit38:setTop(25); obj.edit38:setWidth(40); obj.edit38:setHeight(25); obj.edit38:setField("car_aliados"); obj.edit38:setName("edit38"); obj.label39 = gui.fromHandle(_obj_newObject("label")); obj.label39:setParent(obj.layout14); obj.label39:setLeft(203); obj.label39:setTop(5); obj.label39:setWidth(40); obj.label39:setHeight(20); obj.label39:setText("Lealdade"); obj.label39:setFontSize(10); obj.label39:setName("label39"); obj.edit39 = gui.fromHandle(_obj_newObject("edit")); obj.edit39:setParent(obj.layout14); obj.edit39:setLeft(200); obj.edit39:setTop(25); obj.edit39:setWidth(40); obj.edit39:setHeight(25); obj.edit39:setField("car_lealdade"); obj.edit39:setName("edit39"); obj.label40 = gui.fromHandle(_obj_newObject("label")); obj.label40:setParent(obj.layout14); obj.label40:setLeft(247); obj.label40:setTop(5); obj.label40:setWidth(40); obj.label40:setHeight(20); obj.label40:setText("Reação"); obj.label40:setFontSize(12); obj.label40:setName("label40"); obj.edit40 = gui.fromHandle(_obj_newObject("edit")); obj.edit40:setParent(obj.layout14); obj.edit40:setLeft(245); obj.edit40:setTop(25); obj.edit40:setWidth(40); obj.edit40:setHeight(25); obj.edit40:setField("car_reação"); obj.edit40:setName("edit40"); obj.layout15 = gui.fromHandle(_obj_newObject("layout")); obj.layout15:setParent(obj.scrollBox1); obj.layout15:setLeft(0); obj.layout15:setTop(450); obj.layout15:setWidth(600); obj.layout15:setHeight(160); obj.layout15:setName("layout15"); obj.rectangle3 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle3:setParent(obj.layout15); obj.rectangle3:setAlign("client"); obj.rectangle3:setColor("black"); obj.rectangle3:setXradius(5); obj.rectangle3:setYradius(5); obj.rectangle3:setCornerType("round"); obj.rectangle3:setName("rectangle3"); obj.label41 = gui.fromHandle(_obj_newObject("label")); obj.label41:setParent(obj.layout15); obj.label41:setLeft(0); obj.label41:setTop(5); obj.label41:setWidth(600); obj.label41:setHeight(20); obj.label41:setText("RESISTÊNCIAS"); obj.label41:setHorzTextAlign("center"); obj.label41:setName("label41"); obj.layout16 = gui.fromHandle(_obj_newObject("layout")); obj.layout16:setParent(obj.layout15); obj.layout16:setLeft(0); obj.layout16:setTop(25); obj.layout16:setWidth(600); obj.layout16:setHeight(25); obj.layout16:setName("layout16"); obj.label42 = gui.fromHandle(_obj_newObject("label")); obj.label42:setParent(obj.layout16); obj.label42:setLeft(100); obj.label42:setTop(5); obj.label42:setWidth(35); obj.label42:setHeight(20); obj.label42:setText("1"); obj.label42:setHorzTextAlign("center"); obj.label42:setName("label42"); obj.label43 = gui.fromHandle(_obj_newObject("label")); obj.label43:setParent(obj.layout16); obj.label43:setLeft(135); obj.label43:setTop(5); obj.label43:setWidth(35); obj.label43:setHeight(20); obj.label43:setText("2"); obj.label43:setHorzTextAlign("center"); obj.label43:setName("label43"); obj.label44 = gui.fromHandle(_obj_newObject("label")); obj.label44:setParent(obj.layout16); obj.label44:setLeft(170); obj.label44:setTop(5); obj.label44:setWidth(35); obj.label44:setHeight(20); obj.label44:setText("3"); obj.label44:setHorzTextAlign("center"); obj.label44:setName("label44"); obj.label45 = gui.fromHandle(_obj_newObject("label")); obj.label45:setParent(obj.layout16); obj.label45:setLeft(205); obj.label45:setTop(5); obj.label45:setWidth(35); obj.label45:setHeight(20); obj.label45:setText("4"); obj.label45:setHorzTextAlign("center"); obj.label45:setName("label45"); obj.label46 = gui.fromHandle(_obj_newObject("label")); obj.label46:setParent(obj.layout16); obj.label46:setLeft(240); obj.label46:setTop(5); obj.label46:setWidth(35); obj.label46:setHeight(20); obj.label46:setText("5"); obj.label46:setHorzTextAlign("center"); obj.label46:setName("label46"); obj.label47 = gui.fromHandle(_obj_newObject("label")); obj.label47:setParent(obj.layout16); obj.label47:setLeft(275); obj.label47:setTop(5); obj.label47:setWidth(35); obj.label47:setHeight(20); obj.label47:setText("6"); obj.label47:setHorzTextAlign("center"); obj.label47:setName("label47"); obj.label48 = gui.fromHandle(_obj_newObject("label")); obj.label48:setParent(obj.layout16); obj.label48:setLeft(310); obj.label48:setTop(5); obj.label48:setWidth(35); obj.label48:setHeight(20); obj.label48:setText("7"); obj.label48:setHorzTextAlign("center"); obj.label48:setName("label48"); obj.label49 = gui.fromHandle(_obj_newObject("label")); obj.label49:setParent(obj.layout16); obj.label49:setLeft(345); obj.label49:setTop(5); obj.label49:setWidth(35); obj.label49:setHeight(20); obj.label49:setText("8"); obj.label49:setHorzTextAlign("center"); obj.label49:setName("label49"); obj.label50 = gui.fromHandle(_obj_newObject("label")); obj.label50:setParent(obj.layout16); obj.label50:setLeft(380); obj.label50:setTop(5); obj.label50:setWidth(35); obj.label50:setHeight(20); obj.label50:setText("9"); obj.label50:setHorzTextAlign("center"); obj.label50:setName("label50"); obj.label51 = gui.fromHandle(_obj_newObject("label")); obj.label51:setParent(obj.layout16); obj.label51:setLeft(415); obj.label51:setTop(5); obj.label51:setWidth(35); obj.label51:setHeight(20); obj.label51:setText("10"); obj.label51:setHorzTextAlign("center"); obj.label51:setName("label51"); obj.label52 = gui.fromHandle(_obj_newObject("label")); obj.label52:setParent(obj.layout16); obj.label52:setLeft(455); obj.label52:setTop(5); obj.label52:setWidth(105); obj.label52:setHeight(20); obj.label52:setText("Paralisia/Veneno/Morte"); obj.label52:setHorzTextAlign("trailing"); obj.label52:setFontSize(10); obj.label52:setName("label52"); obj.edit41 = gui.fromHandle(_obj_newObject("edit")); obj.edit41:setParent(obj.layout16); obj.edit41:setLeft(560); obj.edit41:setTop(0); obj.edit41:setWidth(35); obj.edit41:setHeight(25); obj.edit41:setField("TRveneno"); obj.edit41:setName("edit41"); obj.layout17 = gui.fromHandle(_obj_newObject("layout")); obj.layout17:setParent(obj.layout15); obj.layout17:setLeft(0); obj.layout17:setTop(50); obj.layout17:setWidth(600); obj.layout17:setHeight(25); obj.layout17:setName("layout17"); obj.label53 = gui.fromHandle(_obj_newObject("label")); obj.label53:setParent(obj.layout17); obj.label53:setLeft(2); obj.label53:setTop(5); obj.label53:setWidth(40); obj.label53:setHeight(20); obj.label53:setText("TACO"); obj.label53:setHorzTextAlign("trailing"); obj.label53:setName("label53"); obj.edit42 = gui.fromHandle(_obj_newObject("edit")); obj.edit42:setParent(obj.layout17); obj.edit42:setLeft(45); obj.edit42:setTop(0); obj.edit42:setWidth(40); obj.edit42:setHeight(25); obj.edit42:setField("taco"); obj.edit42:setName("edit42"); obj.edit43 = gui.fromHandle(_obj_newObject("edit")); obj.edit43:setParent(obj.layout17); obj.edit43:setLeft(100); obj.edit43:setTop(0); obj.edit43:setWidth(35); obj.edit43:setHeight(25); obj.edit43:setField("taco1"); obj.edit43:setName("edit43"); obj.edit44 = gui.fromHandle(_obj_newObject("edit")); obj.edit44:setParent(obj.layout17); obj.edit44:setLeft(135); obj.edit44:setTop(0); obj.edit44:setWidth(35); obj.edit44:setHeight(25); obj.edit44:setField("taco2"); obj.edit44:setName("edit44"); obj.edit45 = gui.fromHandle(_obj_newObject("edit")); obj.edit45:setParent(obj.layout17); obj.edit45:setLeft(170); obj.edit45:setTop(0); obj.edit45:setWidth(35); obj.edit45:setHeight(25); obj.edit45:setField("taco3"); obj.edit45:setName("edit45"); obj.edit46 = gui.fromHandle(_obj_newObject("edit")); obj.edit46:setParent(obj.layout17); obj.edit46:setLeft(205); obj.edit46:setTop(0); obj.edit46:setWidth(35); obj.edit46:setHeight(25); obj.edit46:setField("taco4"); obj.edit46:setName("edit46"); obj.edit47 = gui.fromHandle(_obj_newObject("edit")); obj.edit47:setParent(obj.layout17); obj.edit47:setLeft(240); obj.edit47:setTop(0); obj.edit47:setWidth(35); obj.edit47:setHeight(25); obj.edit47:setField("taco5"); obj.edit47:setName("edit47"); obj.edit48 = gui.fromHandle(_obj_newObject("edit")); obj.edit48:setParent(obj.layout17); obj.edit48:setLeft(275); obj.edit48:setTop(0); obj.edit48:setWidth(35); obj.edit48:setHeight(25); obj.edit48:setField("taco6"); obj.edit48:setName("edit48"); obj.edit49 = gui.fromHandle(_obj_newObject("edit")); obj.edit49:setParent(obj.layout17); obj.edit49:setLeft(310); obj.edit49:setTop(0); obj.edit49:setWidth(35); obj.edit49:setHeight(25); obj.edit49:setField("taco7"); obj.edit49:setName("edit49"); obj.edit50 = gui.fromHandle(_obj_newObject("edit")); obj.edit50:setParent(obj.layout17); obj.edit50:setLeft(345); obj.edit50:setTop(0); obj.edit50:setWidth(35); obj.edit50:setHeight(25); obj.edit50:setField("taco8"); obj.edit50:setName("edit50"); obj.edit51 = gui.fromHandle(_obj_newObject("edit")); obj.edit51:setParent(obj.layout17); obj.edit51:setLeft(380); obj.edit51:setTop(0); obj.edit51:setWidth(35); obj.edit51:setHeight(25); obj.edit51:setField("taco9"); obj.edit51:setName("edit51"); obj.edit52 = gui.fromHandle(_obj_newObject("edit")); obj.edit52:setParent(obj.layout17); obj.edit52:setLeft(415); obj.edit52:setTop(0); obj.edit52:setWidth(35); obj.edit52:setHeight(25); obj.edit52:setField("taco10"); obj.edit52:setName("edit52"); obj.label54 = gui.fromHandle(_obj_newObject("label")); obj.label54:setParent(obj.layout17); obj.label54:setLeft(455); obj.label54:setTop(5); obj.label54:setWidth(105); obj.label54:setHeight(20); obj.label54:setText("Bastão/Cajado/Varinha"); obj.label54:setHorzTextAlign("trailing"); obj.label54:setFontSize(10); obj.label54:setName("label54"); obj.edit53 = gui.fromHandle(_obj_newObject("edit")); obj.edit53:setParent(obj.layout17); obj.edit53:setLeft(560); obj.edit53:setTop(0); obj.edit53:setWidth(35); obj.edit53:setHeight(25); obj.edit53:setField("TRgatilho"); obj.edit53:setName("edit53"); obj.layout18 = gui.fromHandle(_obj_newObject("layout")); obj.layout18:setParent(obj.layout15); obj.layout18:setLeft(0); obj.layout18:setTop(75); obj.layout18:setWidth(600); obj.layout18:setHeight(25); obj.layout18:setName("layout18"); obj.label55 = gui.fromHandle(_obj_newObject("label")); obj.label55:setParent(obj.layout18); obj.label55:setLeft(2); obj.label55:setTop(5); obj.label55:setWidth(40); obj.label55:setHeight(20); obj.label55:setText("Acerto"); obj.label55:setHorzTextAlign("trailing"); obj.label55:setName("label55"); obj.edit54 = gui.fromHandle(_obj_newObject("edit")); obj.edit54:setParent(obj.layout18); obj.edit54:setLeft(45); obj.edit54:setTop(0); obj.edit54:setWidth(40); obj.edit54:setHeight(25); obj.edit54:setField("acerto"); obj.edit54:setName("edit54"); obj.label56 = gui.fromHandle(_obj_newObject("label")); obj.label56:setParent(obj.layout18); obj.label56:setLeft(100); obj.label56:setTop(5); obj.label56:setWidth(35); obj.label56:setHeight(20); obj.label56:setText("-1"); obj.label56:setHorzTextAlign("center"); obj.label56:setName("label56"); obj.label57 = gui.fromHandle(_obj_newObject("label")); obj.label57:setParent(obj.layout18); obj.label57:setLeft(135); obj.label57:setTop(5); obj.label57:setWidth(35); obj.label57:setHeight(20); obj.label57:setText("-2"); obj.label57:setHorzTextAlign("center"); obj.label57:setName("label57"); obj.label58 = gui.fromHandle(_obj_newObject("label")); obj.label58:setParent(obj.layout18); obj.label58:setLeft(170); obj.label58:setTop(5); obj.label58:setWidth(35); obj.label58:setHeight(20); obj.label58:setText("-3"); obj.label58:setHorzTextAlign("center"); obj.label58:setName("label58"); obj.label59 = gui.fromHandle(_obj_newObject("label")); obj.label59:setParent(obj.layout18); obj.label59:setLeft(205); obj.label59:setTop(5); obj.label59:setWidth(35); obj.label59:setHeight(20); obj.label59:setText("-4"); obj.label59:setHorzTextAlign("center"); obj.label59:setName("label59"); obj.label60 = gui.fromHandle(_obj_newObject("label")); obj.label60:setParent(obj.layout18); obj.label60:setLeft(240); obj.label60:setTop(5); obj.label60:setWidth(35); obj.label60:setHeight(20); obj.label60:setText("-5"); obj.label60:setHorzTextAlign("center"); obj.label60:setName("label60"); obj.label61 = gui.fromHandle(_obj_newObject("label")); obj.label61:setParent(obj.layout18); obj.label61:setLeft(275); obj.label61:setTop(5); obj.label61:setWidth(35); obj.label61:setHeight(20); obj.label61:setText("-6"); obj.label61:setHorzTextAlign("center"); obj.label61:setName("label61"); obj.label62 = gui.fromHandle(_obj_newObject("label")); obj.label62:setParent(obj.layout18); obj.label62:setLeft(310); obj.label62:setTop(5); obj.label62:setWidth(35); obj.label62:setHeight(20); obj.label62:setText("-7"); obj.label62:setHorzTextAlign("center"); obj.label62:setName("label62"); obj.label63 = gui.fromHandle(_obj_newObject("label")); obj.label63:setParent(obj.layout18); obj.label63:setLeft(345); obj.label63:setTop(5); obj.label63:setWidth(35); obj.label63:setHeight(20); obj.label63:setText("-8"); obj.label63:setHorzTextAlign("center"); obj.label63:setName("label63"); obj.label64 = gui.fromHandle(_obj_newObject("label")); obj.label64:setParent(obj.layout18); obj.label64:setLeft(380); obj.label64:setTop(5); obj.label64:setWidth(35); obj.label64:setHeight(20); obj.label64:setText("-9"); obj.label64:setHorzTextAlign("center"); obj.label64:setName("label64"); obj.label65 = gui.fromHandle(_obj_newObject("label")); obj.label65:setParent(obj.layout18); obj.label65:setLeft(415); obj.label65:setTop(5); obj.label65:setWidth(35); obj.label65:setHeight(20); obj.label65:setText("-10"); obj.label65:setHorzTextAlign("center"); obj.label65:setName("label65"); obj.label66 = gui.fromHandle(_obj_newObject("label")); obj.label66:setParent(obj.layout18); obj.label66:setLeft(455); obj.label66:setTop(5); obj.label66:setWidth(105); obj.label66:setHeight(20); obj.label66:setText("Petrificação/Transformação"); obj.label66:setHorzTextAlign("trailing"); obj.label66:setFontSize(8); obj.label66:setName("label66"); obj.edit55 = gui.fromHandle(_obj_newObject("edit")); obj.edit55:setParent(obj.layout18); obj.edit55:setLeft(560); obj.edit55:setTop(0); obj.edit55:setWidth(35); obj.edit55:setHeight(25); obj.edit55:setField("TRtransmutacao"); obj.edit55:setName("edit55"); obj.layout19 = gui.fromHandle(_obj_newObject("layout")); obj.layout19:setParent(obj.layout15); obj.layout19:setLeft(0); obj.layout19:setTop(100); obj.layout19:setWidth(600); obj.layout19:setHeight(25); obj.layout19:setName("layout19"); obj.label67 = gui.fromHandle(_obj_newObject("label")); obj.label67:setParent(obj.layout19); obj.label67:setLeft(2); obj.label67:setTop(5); obj.label67:setWidth(40); obj.label67:setHeight(20); obj.label67:setText("Distância"); obj.label67:setHorzTextAlign("trailing"); obj.label67:setFontSize(10); obj.label67:setName("label67"); obj.edit56 = gui.fromHandle(_obj_newObject("edit")); obj.edit56:setParent(obj.layout19); obj.edit56:setLeft(45); obj.edit56:setTop(0); obj.edit56:setWidth(40); obj.edit56:setHeight(25); obj.edit56:setField("distancia"); obj.edit56:setName("edit56"); obj.edit57 = gui.fromHandle(_obj_newObject("edit")); obj.edit57:setParent(obj.layout19); obj.edit57:setLeft(100); obj.edit57:setTop(0); obj.edit57:setWidth(35); obj.edit57:setHeight(25); obj.edit57:setField("taco-1"); obj.edit57:setName("edit57"); obj.edit58 = gui.fromHandle(_obj_newObject("edit")); obj.edit58:setParent(obj.layout19); obj.edit58:setLeft(135); obj.edit58:setTop(0); obj.edit58:setWidth(35); obj.edit58:setHeight(25); obj.edit58:setField("taco-2"); obj.edit58:setName("edit58"); obj.edit59 = gui.fromHandle(_obj_newObject("edit")); obj.edit59:setParent(obj.layout19); obj.edit59:setLeft(170); obj.edit59:setTop(0); obj.edit59:setWidth(35); obj.edit59:setHeight(25); obj.edit59:setField("taco-3"); obj.edit59:setName("edit59"); obj.edit60 = gui.fromHandle(_obj_newObject("edit")); obj.edit60:setParent(obj.layout19); obj.edit60:setLeft(205); obj.edit60:setTop(0); obj.edit60:setWidth(35); obj.edit60:setHeight(25); obj.edit60:setField("taco-4"); obj.edit60:setName("edit60"); obj.edit61 = gui.fromHandle(_obj_newObject("edit")); obj.edit61:setParent(obj.layout19); obj.edit61:setLeft(240); obj.edit61:setTop(0); obj.edit61:setWidth(35); obj.edit61:setHeight(25); obj.edit61:setField("taco-5"); obj.edit61:setName("edit61"); obj.edit62 = gui.fromHandle(_obj_newObject("edit")); obj.edit62:setParent(obj.layout19); obj.edit62:setLeft(275); obj.edit62:setTop(0); obj.edit62:setWidth(35); obj.edit62:setHeight(25); obj.edit62:setField("taco-6"); obj.edit62:setName("edit62"); obj.edit63 = gui.fromHandle(_obj_newObject("edit")); obj.edit63:setParent(obj.layout19); obj.edit63:setLeft(310); obj.edit63:setTop(0); obj.edit63:setWidth(35); obj.edit63:setHeight(25); obj.edit63:setField("taco-7"); obj.edit63:setName("edit63"); obj.edit64 = gui.fromHandle(_obj_newObject("edit")); obj.edit64:setParent(obj.layout19); obj.edit64:setLeft(345); obj.edit64:setTop(0); obj.edit64:setWidth(35); obj.edit64:setHeight(25); obj.edit64:setField("taco-8"); obj.edit64:setName("edit64"); obj.edit65 = gui.fromHandle(_obj_newObject("edit")); obj.edit65:setParent(obj.layout19); obj.edit65:setLeft(380); obj.edit65:setTop(0); obj.edit65:setWidth(35); obj.edit65:setHeight(25); obj.edit65:setField("taco-9"); obj.edit65:setName("edit65"); obj.edit66 = gui.fromHandle(_obj_newObject("edit")); obj.edit66:setParent(obj.layout19); obj.edit66:setLeft(415); obj.edit66:setTop(0); obj.edit66:setWidth(35); obj.edit66:setHeight(25); obj.edit66:setField("taco-10"); obj.edit66:setName("edit66"); obj.label68 = gui.fromHandle(_obj_newObject("label")); obj.label68:setParent(obj.layout19); obj.label68:setLeft(455); obj.label68:setTop(5); obj.label68:setWidth(105); obj.label68:setHeight(20); obj.label68:setText("Sopro-de-Dragão"); obj.label68:setHorzTextAlign("trailing"); obj.label68:setFontSize(11); obj.label68:setName("label68"); obj.edit67 = gui.fromHandle(_obj_newObject("edit")); obj.edit67:setParent(obj.layout19); obj.edit67:setLeft(560); obj.edit67:setTop(0); obj.edit67:setWidth(35); obj.edit67:setHeight(25); obj.edit67:setField("TRsopro"); obj.edit67:setName("edit67"); obj.layout20 = gui.fromHandle(_obj_newObject("layout")); obj.layout20:setParent(obj.layout15); obj.layout20:setLeft(0); obj.layout20:setTop(125); obj.layout20:setWidth(600); obj.layout20:setHeight(25); obj.layout20:setName("layout20"); obj.label69 = gui.fromHandle(_obj_newObject("label")); obj.label69:setParent(obj.layout20); obj.label69:setLeft(455); obj.label69:setTop(5); obj.label69:setWidth(105); obj.label69:setHeight(20); obj.label69:setText("Magia"); obj.label69:setHorzTextAlign("trailing"); obj.label69:setFontSize(13); obj.label69:setName("label69"); obj.edit68 = gui.fromHandle(_obj_newObject("edit")); obj.edit68:setParent(obj.layout20); obj.edit68:setLeft(560); obj.edit68:setTop(0); obj.edit68:setWidth(35); obj.edit68:setHeight(25); obj.edit68:setField("TRmagia"); obj.edit68:setName("edit68"); obj.layout21 = gui.fromHandle(_obj_newObject("layout")); obj.layout21:setParent(obj.scrollBox1); obj.layout21:setLeft(460); obj.layout21:setTop(80); obj.layout21:setWidth(200); obj.layout21:setHeight(160); obj.layout21:setName("layout21"); obj.rectangle4 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle4:setParent(obj.layout21); obj.rectangle4:setAlign("client"); obj.rectangle4:setColor("black"); obj.rectangle4:setXradius(5); obj.rectangle4:setYradius(5); obj.rectangle4:setCornerType("round"); obj.rectangle4:setName("rectangle4"); obj.label70 = gui.fromHandle(_obj_newObject("label")); obj.label70:setParent(obj.layout21); obj.label70:setLeft(0); obj.label70:setTop(5); obj.label70:setWidth(200); obj.label70:setHeight(20); obj.label70:setText("CATEGORIA DE ARMADURA (CA)"); obj.label70:setHorzTextAlign("center"); obj.label70:setName("label70"); obj.label71 = gui.fromHandle(_obj_newObject("label")); obj.label71:setParent(obj.layout21); obj.label71:setLeft(5); obj.label71:setTop(30); obj.label71:setWidth(90); obj.label71:setHeight(20); obj.label71:setText("Destreza"); obj.label71:setHorzTextAlign("trailing"); obj.label71:setName("label71"); obj.edit69 = gui.fromHandle(_obj_newObject("edit")); obj.edit69:setParent(obj.layout21); obj.edit69:setLeft(100); obj.edit69:setTop(25); obj.edit69:setWidth(40); obj.edit69:setHeight(25); obj.edit69:setField("CAdes"); obj.edit69:setName("edit69"); obj.label72 = gui.fromHandle(_obj_newObject("label")); obj.label72:setParent(obj.layout21); obj.label72:setLeft(5); obj.label72:setTop(55); obj.label72:setWidth(90); obj.label72:setHeight(20); obj.label72:setText("Armadura"); obj.label72:setHorzTextAlign("trailing"); obj.label72:setName("label72"); obj.edit70 = gui.fromHandle(_obj_newObject("edit")); obj.edit70:setParent(obj.layout21); obj.edit70:setLeft(100); obj.edit70:setTop(50); obj.edit70:setWidth(40); obj.edit70:setHeight(25); obj.edit70:setField("CAarmadura"); obj.edit70:setName("edit70"); obj.label73 = gui.fromHandle(_obj_newObject("label")); obj.label73:setParent(obj.layout21); obj.label73:setLeft(5); obj.label73:setTop(80); obj.label73:setWidth(90); obj.label73:setHeight(20); obj.label73:setText("Escudo"); obj.label73:setHorzTextAlign("trailing"); obj.label73:setName("label73"); obj.edit71 = gui.fromHandle(_obj_newObject("edit")); obj.edit71:setParent(obj.layout21); obj.edit71:setLeft(100); obj.edit71:setTop(75); obj.edit71:setWidth(40); obj.edit71:setHeight(25); obj.edit71:setField("CAescudo"); obj.edit71:setName("edit71"); obj.label74 = gui.fromHandle(_obj_newObject("label")); obj.label74:setParent(obj.layout21); obj.label74:setLeft(5); obj.label74:setTop(105); obj.label74:setWidth(90); obj.label74:setHeight(20); obj.label74:setText(""); obj.label74:setHorzTextAlign("trailing"); obj.label74:setName("label74"); obj.edit72 = gui.fromHandle(_obj_newObject("edit")); obj.edit72:setParent(obj.layout21); obj.edit72:setLeft(100); obj.edit72:setTop(100); obj.edit72:setWidth(40); obj.edit72:setHeight(25); obj.edit72:setField("CAoutros"); obj.edit72:setName("edit72"); obj.label75 = gui.fromHandle(_obj_newObject("label")); obj.label75:setParent(obj.layout21); obj.label75:setLeft(5); obj.label75:setTop(130); obj.label75:setWidth(90); obj.label75:setHeight(20); obj.label75:setText("TOTAL"); obj.label75:setHorzTextAlign("trailing"); obj.label75:setName("label75"); obj.rectangle5 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle5:setParent(obj.layout21); obj.rectangle5:setLeft(100); obj.rectangle5:setTop(125); obj.rectangle5:setWidth(40); obj.rectangle5:setHeight(25); obj.rectangle5:setColor("Black"); obj.rectangle5:setStrokeColor("white"); obj.rectangle5:setStrokeSize(1); obj.rectangle5:setName("rectangle5"); obj.label76 = gui.fromHandle(_obj_newObject("label")); obj.label76:setParent(obj.layout21); obj.label76:setLeft(100); obj.label76:setTop(125); obj.label76:setWidth(40); obj.label76:setHeight(25); obj.label76:setField("CAtotal"); obj.label76:setHorzTextAlign("center"); obj.label76:setName("label76"); local function sumCA(); if sheet~=nil then local mod = (tonumber(sheet.CAdes) or 0) + (tonumber(sheet.CAarmadura) or 0) + (tonumber(sheet.CAescudo) or 0) + (tonumber(sheet.CAoutros) or 0); sheet.CAtotal = mod; end; end; obj.layout22 = gui.fromHandle(_obj_newObject("layout")); obj.layout22:setParent(obj.scrollBox1); obj.layout22:setLeft(460); obj.layout22:setTop(250); obj.layout22:setWidth(200); obj.layout22:setHeight(60); obj.layout22:setName("layout22"); obj.rectangle6 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle6:setParent(obj.layout22); obj.rectangle6:setAlign("client"); obj.rectangle6:setColor("black"); obj.rectangle6:setXradius(5); obj.rectangle6:setYradius(5); obj.rectangle6:setCornerType("round"); obj.rectangle6:setName("rectangle6"); obj.label77 = gui.fromHandle(_obj_newObject("label")); obj.label77:setParent(obj.layout22); obj.label77:setLeft(0); obj.label77:setTop(5); obj.label77:setWidth(200); obj.label77:setHeight(20); obj.label77:setText("PONTOS DE VIDA"); obj.label77:setHorzTextAlign("center"); obj.label77:setName("label77"); obj.edit73 = gui.fromHandle(_obj_newObject("edit")); obj.edit73:setParent(obj.layout22); obj.edit73:setLeft(5); obj.edit73:setTop(30); obj.edit73:setWidth(95); obj.edit73:setHeight(25); obj.edit73:setField("PVatual"); obj.edit73:setName("edit73"); obj.edit74 = gui.fromHandle(_obj_newObject("edit")); obj.edit74:setParent(obj.layout22); obj.edit74:setLeft(100); obj.edit74:setTop(30); obj.edit74:setWidth(95); obj.edit74:setHeight(25); obj.edit74:setField("PVmax"); obj.edit74:setName("edit74"); obj.image1 = gui.fromHandle(_obj_newObject("image")); obj.image1:setParent(obj.scrollBox1); obj.image1:setLeft(460); obj.image1:setTop(320); obj.image1:setWidth(120); obj.image1:setHeight(120); obj.image1:setStyle("stretch"); obj.image1:setSRC("/Ficha ADnD 2e/images/d20.png"); obj.image1:setName("image1"); obj.rectangle7 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle7:setParent(obj.scrollBox1); obj.rectangle7:setLeft(670); obj.rectangle7:setTop(80); obj.rectangle7:setWidth(230); obj.rectangle7:setHeight(230); obj.rectangle7:setColor("DimGray"); obj.rectangle7:setXradius(5); obj.rectangle7:setYradius(5); obj.rectangle7:setCornerType("innerLine"); obj.rectangle7:setName("rectangle7"); obj.image2 = gui.fromHandle(_obj_newObject("image")); obj.image2:setParent(obj.scrollBox1); obj.image2:setLeft(670); obj.image2:setTop(80); obj.image2:setWidth(230); obj.image2:setHeight(230); obj.image2:setField("avatar"); obj.image2:setEditable(true); obj.image2:setStyle("autoFit"); obj.image2:setName("image2"); obj.layout23 = gui.fromHandle(_obj_newObject("layout")); obj.layout23:setParent(obj.scrollBox1); obj.layout23:setLeft(610); obj.layout23:setTop(320); obj.layout23:setWidth(600); obj.layout23:setHeight(290); obj.layout23:setName("layout23"); obj.rectangle8 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle8:setParent(obj.layout23); obj.rectangle8:setAlign("client"); obj.rectangle8:setColor("black"); obj.rectangle8:setXradius(5); obj.rectangle8:setYradius(5); obj.rectangle8:setCornerType("round"); obj.rectangle8:setName("rectangle8"); obj.label78 = gui.fromHandle(_obj_newObject("label")); obj.label78:setParent(obj.layout23); obj.label78:setLeft(0); obj.label78:setTop(5); obj.label78:setWidth(600); obj.label78:setHeight(20); obj.label78:setText("ARMAS"); obj.label78:setHorzTextAlign("center"); obj.label78:setName("label78"); obj.layout24 = gui.fromHandle(_obj_newObject("layout")); obj.layout24:setParent(obj.layout23); obj.layout24:setLeft(0); obj.layout24:setTop(30); obj.layout24:setWidth(600); obj.layout24:setHeight(25); obj.layout24:setName("layout24"); obj.label79 = gui.fromHandle(_obj_newObject("label")); obj.label79:setParent(obj.layout24); obj.label79:setLeft(5); obj.label79:setTop(0); obj.label79:setWidth(190); obj.label79:setHeight(25); obj.label79:setFontSize(13); obj.label79:setHorzTextAlign("center"); obj.label79:setText("Arma"); obj.label79:setName("label79"); obj.label80 = gui.fromHandle(_obj_newObject("label")); obj.label80:setParent(obj.layout24); obj.label80:setLeft(195); obj.label80:setTop(0); obj.label80:setWidth(50); obj.label80:setHeight(25); obj.label80:setFontSize(11); obj.label80:setHorzTextAlign("center"); obj.label80:setText("Ataques"); obj.label80:setName("label80"); obj.label81 = gui.fromHandle(_obj_newObject("label")); obj.label81:setParent(obj.layout24); obj.label81:setLeft(245); obj.label81:setTop(0); obj.label81:setWidth(50); obj.label81:setHeight(25); obj.label81:setFontSize(11); obj.label81:setHorzTextAlign("center"); obj.label81:setText("Alcance"); obj.label81:setName("label81"); obj.label82 = gui.fromHandle(_obj_newObject("label")); obj.label82:setParent(obj.layout24); obj.label82:setLeft(295); obj.label82:setTop(0); obj.label82:setWidth(50); obj.label82:setHeight(25); obj.label82:setFontSize(9); obj.label82:setHorzTextAlign("center"); obj.label82:setText("Dano (P/M)"); obj.label82:setName("label82"); obj.label83 = gui.fromHandle(_obj_newObject("label")); obj.label83:setParent(obj.layout24); obj.label83:setLeft(345); obj.label83:setTop(0); obj.label83:setWidth(50); obj.label83:setHeight(25); obj.label83:setFontSize(11); obj.label83:setHorzTextAlign("center"); obj.label83:setText("Dano (G)"); obj.label83:setName("label83"); obj.label84 = gui.fromHandle(_obj_newObject("label")); obj.label84:setParent(obj.layout24); obj.label84:setLeft(395); obj.label84:setTop(0); obj.label84:setWidth(50); obj.label84:setHeight(25); obj.label84:setFontSize(10); obj.label84:setHorzTextAlign("center"); obj.label84:setText("Ajuste"); obj.label84:setName("label84"); obj.label85 = gui.fromHandle(_obj_newObject("label")); obj.label85:setParent(obj.layout24); obj.label85:setLeft(445); obj.label85:setTop(0); obj.label85:setWidth(50); obj.label85:setHeight(25); obj.label85:setFontSize(13); obj.label85:setHorzTextAlign("center"); obj.label85:setText("Peso"); obj.label85:setName("label85"); obj.label86 = gui.fromHandle(_obj_newObject("label")); obj.label86:setParent(obj.layout24); obj.label86:setLeft(495); obj.label86:setTop(0); obj.label86:setWidth(50); obj.label86:setHeight(25); obj.label86:setFontSize(13); obj.label86:setHorzTextAlign("center"); obj.label86:setText("Tipo"); obj.label86:setName("label86"); obj.label87 = gui.fromHandle(_obj_newObject("label")); obj.label87:setParent(obj.layout24); obj.label87:setLeft(545); obj.label87:setTop(0); obj.label87:setWidth(50); obj.label87:setHeight(25); obj.label87:setFontSize(10); obj.label87:setHorzTextAlign("center"); obj.label87:setText("Velocidade"); obj.label87:setName("label87"); obj.layout25 = gui.fromHandle(_obj_newObject("layout")); obj.layout25:setParent(obj.layout23); obj.layout25:setLeft(0); obj.layout25:setTop(55); obj.layout25:setWidth(600); obj.layout25:setHeight(25); obj.layout25:setName("layout25"); obj.edit75 = gui.fromHandle(_obj_newObject("edit")); obj.edit75:setParent(obj.layout25); obj.edit75:setLeft(5); obj.edit75:setTop(0); obj.edit75:setWidth(190); obj.edit75:setHeight(25); obj.edit75:setField("Arma_1"); obj.edit75:setName("edit75"); obj.edit76 = gui.fromHandle(_obj_newObject("edit")); obj.edit76:setParent(obj.layout25); obj.edit76:setLeft(195); obj.edit76:setTop(0); obj.edit76:setWidth(50); obj.edit76:setHeight(25); obj.edit76:setField("Arma_ataques_1"); obj.edit76:setName("edit76"); obj.edit77 = gui.fromHandle(_obj_newObject("edit")); obj.edit77:setParent(obj.layout25); obj.edit77:setLeft(245); obj.edit77:setTop(0); obj.edit77:setWidth(50); obj.edit77:setHeight(25); obj.edit77:setField("Arma_alcance_1"); obj.edit77:setName("edit77"); obj.edit78 = gui.fromHandle(_obj_newObject("edit")); obj.edit78:setParent(obj.layout25); obj.edit78:setLeft(295); obj.edit78:setTop(0); obj.edit78:setWidth(50); obj.edit78:setHeight(25); obj.edit78:setField("Arma_dano_pm_1"); obj.edit78:setName("edit78"); obj.edit79 = gui.fromHandle(_obj_newObject("edit")); obj.edit79:setParent(obj.layout25); obj.edit79:setLeft(345); obj.edit79:setTop(0); obj.edit79:setWidth(50); obj.edit79:setHeight(25); obj.edit79:setField("Arma_dano_g_1"); obj.edit79:setName("edit79"); obj.edit80 = gui.fromHandle(_obj_newObject("edit")); obj.edit80:setParent(obj.layout25); obj.edit80:setLeft(395); obj.edit80:setTop(0); obj.edit80:setWidth(50); obj.edit80:setHeight(25); obj.edit80:setField("Arma_ajuste_1"); obj.edit80:setName("edit80"); obj.edit81 = gui.fromHandle(_obj_newObject("edit")); obj.edit81:setParent(obj.layout25); obj.edit81:setLeft(445); obj.edit81:setTop(0); obj.edit81:setWidth(50); obj.edit81:setHeight(25); obj.edit81:setField("Arma_tipo_1"); obj.edit81:setName("edit81"); obj.edit82 = gui.fromHandle(_obj_newObject("edit")); obj.edit82:setParent(obj.layout25); obj.edit82:setLeft(495); obj.edit82:setTop(0); obj.edit82:setWidth(50); obj.edit82:setHeight(25); obj.edit82:setField("Arma_peso_1"); obj.edit82:setName("edit82"); obj.edit83 = gui.fromHandle(_obj_newObject("edit")); obj.edit83:setParent(obj.layout25); obj.edit83:setLeft(545); obj.edit83:setTop(0); obj.edit83:setWidth(50); obj.edit83:setHeight(25); obj.edit83:setField("Arma_velocidade_1"); obj.edit83:setName("edit83"); obj.layout26 = gui.fromHandle(_obj_newObject("layout")); obj.layout26:setParent(obj.layout23); obj.layout26:setLeft(0); obj.layout26:setTop(80); obj.layout26:setWidth(600); obj.layout26:setHeight(25); obj.layout26:setName("layout26"); obj.edit84 = gui.fromHandle(_obj_newObject("edit")); obj.edit84:setParent(obj.layout26); obj.edit84:setLeft(5); obj.edit84:setTop(0); obj.edit84:setWidth(190); obj.edit84:setHeight(25); obj.edit84:setField("Arma_2"); obj.edit84:setName("edit84"); obj.edit85 = gui.fromHandle(_obj_newObject("edit")); obj.edit85:setParent(obj.layout26); obj.edit85:setLeft(195); obj.edit85:setTop(0); obj.edit85:setWidth(50); obj.edit85:setHeight(25); obj.edit85:setField("Arma_ataques_2"); obj.edit85:setName("edit85"); obj.edit86 = gui.fromHandle(_obj_newObject("edit")); obj.edit86:setParent(obj.layout26); obj.edit86:setLeft(245); obj.edit86:setTop(0); obj.edit86:setWidth(50); obj.edit86:setHeight(25); obj.edit86:setField("Arma_alcance_2"); obj.edit86:setName("edit86"); obj.edit87 = gui.fromHandle(_obj_newObject("edit")); obj.edit87:setParent(obj.layout26); obj.edit87:setLeft(295); obj.edit87:setTop(0); obj.edit87:setWidth(50); obj.edit87:setHeight(25); obj.edit87:setField("Arma_dano_pm_2"); obj.edit87:setName("edit87"); obj.edit88 = gui.fromHandle(_obj_newObject("edit")); obj.edit88:setParent(obj.layout26); obj.edit88:setLeft(345); obj.edit88:setTop(0); obj.edit88:setWidth(50); obj.edit88:setHeight(25); obj.edit88:setField("Arma_dano_g_2"); obj.edit88:setName("edit88"); obj.edit89 = gui.fromHandle(_obj_newObject("edit")); obj.edit89:setParent(obj.layout26); obj.edit89:setLeft(395); obj.edit89:setTop(0); obj.edit89:setWidth(50); obj.edit89:setHeight(25); obj.edit89:setField("Arma_ajuste_2"); obj.edit89:setName("edit89"); obj.edit90 = gui.fromHandle(_obj_newObject("edit")); obj.edit90:setParent(obj.layout26); obj.edit90:setLeft(445); obj.edit90:setTop(0); obj.edit90:setWidth(50); obj.edit90:setHeight(25); obj.edit90:setField("Arma_tipo_2"); obj.edit90:setName("edit90"); obj.edit91 = gui.fromHandle(_obj_newObject("edit")); obj.edit91:setParent(obj.layout26); obj.edit91:setLeft(495); obj.edit91:setTop(0); obj.edit91:setWidth(50); obj.edit91:setHeight(25); obj.edit91:setField("Arma_peso_2"); obj.edit91:setName("edit91"); obj.edit92 = gui.fromHandle(_obj_newObject("edit")); obj.edit92:setParent(obj.layout26); obj.edit92:setLeft(545); obj.edit92:setTop(0); obj.edit92:setWidth(50); obj.edit92:setHeight(25); obj.edit92:setField("Arma_velocidade_2"); obj.edit92:setName("edit92"); obj.layout27 = gui.fromHandle(_obj_newObject("layout")); obj.layout27:setParent(obj.layout23); obj.layout27:setLeft(0); obj.layout27:setTop(105); obj.layout27:setWidth(600); obj.layout27:setHeight(25); obj.layout27:setName("layout27"); obj.edit93 = gui.fromHandle(_obj_newObject("edit")); obj.edit93:setParent(obj.layout27); obj.edit93:setLeft(5); obj.edit93:setTop(0); obj.edit93:setWidth(190); obj.edit93:setHeight(25); obj.edit93:setField("Arma_3"); obj.edit93:setName("edit93"); obj.edit94 = gui.fromHandle(_obj_newObject("edit")); obj.edit94:setParent(obj.layout27); obj.edit94:setLeft(195); obj.edit94:setTop(0); obj.edit94:setWidth(50); obj.edit94:setHeight(25); obj.edit94:setField("Arma_ataques_3"); obj.edit94:setName("edit94"); obj.edit95 = gui.fromHandle(_obj_newObject("edit")); obj.edit95:setParent(obj.layout27); obj.edit95:setLeft(245); obj.edit95:setTop(0); obj.edit95:setWidth(50); obj.edit95:setHeight(25); obj.edit95:setField("Arma_alcance_3"); obj.edit95:setName("edit95"); obj.edit96 = gui.fromHandle(_obj_newObject("edit")); obj.edit96:setParent(obj.layout27); obj.edit96:setLeft(295); obj.edit96:setTop(0); obj.edit96:setWidth(50); obj.edit96:setHeight(25); obj.edit96:setField("Arma_dano_pm_3"); obj.edit96:setName("edit96"); obj.edit97 = gui.fromHandle(_obj_newObject("edit")); obj.edit97:setParent(obj.layout27); obj.edit97:setLeft(345); obj.edit97:setTop(0); obj.edit97:setWidth(50); obj.edit97:setHeight(25); obj.edit97:setField("Arma_dano_g_3"); obj.edit97:setName("edit97"); obj.edit98 = gui.fromHandle(_obj_newObject("edit")); obj.edit98:setParent(obj.layout27); obj.edit98:setLeft(395); obj.edit98:setTop(0); obj.edit98:setWidth(50); obj.edit98:setHeight(25); obj.edit98:setField("Arma_ajuste_3"); obj.edit98:setName("edit98"); obj.edit99 = gui.fromHandle(_obj_newObject("edit")); obj.edit99:setParent(obj.layout27); obj.edit99:setLeft(445); obj.edit99:setTop(0); obj.edit99:setWidth(50); obj.edit99:setHeight(25); obj.edit99:setField("Arma_tipo_3"); obj.edit99:setName("edit99"); obj.edit100 = gui.fromHandle(_obj_newObject("edit")); obj.edit100:setParent(obj.layout27); obj.edit100:setLeft(495); obj.edit100:setTop(0); obj.edit100:setWidth(50); obj.edit100:setHeight(25); obj.edit100:setField("Arma_peso_3"); obj.edit100:setName("edit100"); obj.edit101 = gui.fromHandle(_obj_newObject("edit")); obj.edit101:setParent(obj.layout27); obj.edit101:setLeft(545); obj.edit101:setTop(0); obj.edit101:setWidth(50); obj.edit101:setHeight(25); obj.edit101:setField("Arma_velocidade_3"); obj.edit101:setName("edit101"); obj.layout28 = gui.fromHandle(_obj_newObject("layout")); obj.layout28:setParent(obj.layout23); obj.layout28:setLeft(0); obj.layout28:setTop(130); obj.layout28:setWidth(600); obj.layout28:setHeight(25); obj.layout28:setName("layout28"); obj.edit102 = gui.fromHandle(_obj_newObject("edit")); obj.edit102:setParent(obj.layout28); obj.edit102:setLeft(5); obj.edit102:setTop(0); obj.edit102:setWidth(190); obj.edit102:setHeight(25); obj.edit102:setField("Arma_4"); obj.edit102:setName("edit102"); obj.edit103 = gui.fromHandle(_obj_newObject("edit")); obj.edit103:setParent(obj.layout28); obj.edit103:setLeft(195); obj.edit103:setTop(0); obj.edit103:setWidth(50); obj.edit103:setHeight(25); obj.edit103:setField("Arma_ataques_4"); obj.edit103:setName("edit103"); obj.edit104 = gui.fromHandle(_obj_newObject("edit")); obj.edit104:setParent(obj.layout28); obj.edit104:setLeft(245); obj.edit104:setTop(0); obj.edit104:setWidth(50); obj.edit104:setHeight(25); obj.edit104:setField("Arma_alcance_4"); obj.edit104:setName("edit104"); obj.edit105 = gui.fromHandle(_obj_newObject("edit")); obj.edit105:setParent(obj.layout28); obj.edit105:setLeft(295); obj.edit105:setTop(0); obj.edit105:setWidth(50); obj.edit105:setHeight(25); obj.edit105:setField("Arma_dano_pm_4"); obj.edit105:setName("edit105"); obj.edit106 = gui.fromHandle(_obj_newObject("edit")); obj.edit106:setParent(obj.layout28); obj.edit106:setLeft(345); obj.edit106:setTop(0); obj.edit106:setWidth(50); obj.edit106:setHeight(25); obj.edit106:setField("Arma_dano_g_4"); obj.edit106:setName("edit106"); obj.edit107 = gui.fromHandle(_obj_newObject("edit")); obj.edit107:setParent(obj.layout28); obj.edit107:setLeft(395); obj.edit107:setTop(0); obj.edit107:setWidth(50); obj.edit107:setHeight(25); obj.edit107:setField("Arma_ajuste_4"); obj.edit107:setName("edit107"); obj.edit108 = gui.fromHandle(_obj_newObject("edit")); obj.edit108:setParent(obj.layout28); obj.edit108:setLeft(445); obj.edit108:setTop(0); obj.edit108:setWidth(50); obj.edit108:setHeight(25); obj.edit108:setField("Arma_tipo_4"); obj.edit108:setName("edit108"); obj.edit109 = gui.fromHandle(_obj_newObject("edit")); obj.edit109:setParent(obj.layout28); obj.edit109:setLeft(495); obj.edit109:setTop(0); obj.edit109:setWidth(50); obj.edit109:setHeight(25); obj.edit109:setField("Arma_peso_4"); obj.edit109:setName("edit109"); obj.edit110 = gui.fromHandle(_obj_newObject("edit")); obj.edit110:setParent(obj.layout28); obj.edit110:setLeft(545); obj.edit110:setTop(0); obj.edit110:setWidth(50); obj.edit110:setHeight(25); obj.edit110:setField("Arma_velocidade_4"); obj.edit110:setName("edit110"); obj.layout29 = gui.fromHandle(_obj_newObject("layout")); obj.layout29:setParent(obj.layout23); obj.layout29:setLeft(0); obj.layout29:setTop(155); obj.layout29:setWidth(600); obj.layout29:setHeight(25); obj.layout29:setName("layout29"); obj.edit111 = gui.fromHandle(_obj_newObject("edit")); obj.edit111:setParent(obj.layout29); obj.edit111:setLeft(5); obj.edit111:setTop(0); obj.edit111:setWidth(190); obj.edit111:setHeight(25); obj.edit111:setField("Arma_5"); obj.edit111:setName("edit111"); obj.edit112 = gui.fromHandle(_obj_newObject("edit")); obj.edit112:setParent(obj.layout29); obj.edit112:setLeft(195); obj.edit112:setTop(0); obj.edit112:setWidth(50); obj.edit112:setHeight(25); obj.edit112:setField("Arma_ataques_5"); obj.edit112:setName("edit112"); obj.edit113 = gui.fromHandle(_obj_newObject("edit")); obj.edit113:setParent(obj.layout29); obj.edit113:setLeft(245); obj.edit113:setTop(0); obj.edit113:setWidth(50); obj.edit113:setHeight(25); obj.edit113:setField("Arma_alcance_5"); obj.edit113:setName("edit113"); obj.edit114 = gui.fromHandle(_obj_newObject("edit")); obj.edit114:setParent(obj.layout29); obj.edit114:setLeft(295); obj.edit114:setTop(0); obj.edit114:setWidth(50); obj.edit114:setHeight(25); obj.edit114:setField("Arma_dano_pm_5"); obj.edit114:setName("edit114"); obj.edit115 = gui.fromHandle(_obj_newObject("edit")); obj.edit115:setParent(obj.layout29); obj.edit115:setLeft(345); obj.edit115:setTop(0); obj.edit115:setWidth(50); obj.edit115:setHeight(25); obj.edit115:setField("Arma_dano_g_5"); obj.edit115:setName("edit115"); obj.edit116 = gui.fromHandle(_obj_newObject("edit")); obj.edit116:setParent(obj.layout29); obj.edit116:setLeft(395); obj.edit116:setTop(0); obj.edit116:setWidth(50); obj.edit116:setHeight(25); obj.edit116:setField("Arma_ajuste_5"); obj.edit116:setName("edit116"); obj.edit117 = gui.fromHandle(_obj_newObject("edit")); obj.edit117:setParent(obj.layout29); obj.edit117:setLeft(445); obj.edit117:setTop(0); obj.edit117:setWidth(50); obj.edit117:setHeight(25); obj.edit117:setField("Arma_tipo_5"); obj.edit117:setName("edit117"); obj.edit118 = gui.fromHandle(_obj_newObject("edit")); obj.edit118:setParent(obj.layout29); obj.edit118:setLeft(495); obj.edit118:setTop(0); obj.edit118:setWidth(50); obj.edit118:setHeight(25); obj.edit118:setField("Arma_peso_5"); obj.edit118:setName("edit118"); obj.edit119 = gui.fromHandle(_obj_newObject("edit")); obj.edit119:setParent(obj.layout29); obj.edit119:setLeft(545); obj.edit119:setTop(0); obj.edit119:setWidth(50); obj.edit119:setHeight(25); obj.edit119:setField("Arma_velocidade_5"); obj.edit119:setName("edit119"); obj.layout30 = gui.fromHandle(_obj_newObject("layout")); obj.layout30:setParent(obj.layout23); obj.layout30:setLeft(0); obj.layout30:setTop(180); obj.layout30:setWidth(600); obj.layout30:setHeight(25); obj.layout30:setName("layout30"); obj.edit120 = gui.fromHandle(_obj_newObject("edit")); obj.edit120:setParent(obj.layout30); obj.edit120:setLeft(5); obj.edit120:setTop(0); obj.edit120:setWidth(190); obj.edit120:setHeight(25); obj.edit120:setField("Arma_6"); obj.edit120:setName("edit120"); obj.edit121 = gui.fromHandle(_obj_newObject("edit")); obj.edit121:setParent(obj.layout30); obj.edit121:setLeft(195); obj.edit121:setTop(0); obj.edit121:setWidth(50); obj.edit121:setHeight(25); obj.edit121:setField("Arma_ataques_6"); obj.edit121:setName("edit121"); obj.edit122 = gui.fromHandle(_obj_newObject("edit")); obj.edit122:setParent(obj.layout30); obj.edit122:setLeft(245); obj.edit122:setTop(0); obj.edit122:setWidth(50); obj.edit122:setHeight(25); obj.edit122:setField("Arma_alcance_6"); obj.edit122:setName("edit122"); obj.edit123 = gui.fromHandle(_obj_newObject("edit")); obj.edit123:setParent(obj.layout30); obj.edit123:setLeft(295); obj.edit123:setTop(0); obj.edit123:setWidth(50); obj.edit123:setHeight(25); obj.edit123:setField("Arma_dano_pm_6"); obj.edit123:setName("edit123"); obj.edit124 = gui.fromHandle(_obj_newObject("edit")); obj.edit124:setParent(obj.layout30); obj.edit124:setLeft(345); obj.edit124:setTop(0); obj.edit124:setWidth(50); obj.edit124:setHeight(25); obj.edit124:setField("Arma_dano_g_6"); obj.edit124:setName("edit124"); obj.edit125 = gui.fromHandle(_obj_newObject("edit")); obj.edit125:setParent(obj.layout30); obj.edit125:setLeft(395); obj.edit125:setTop(0); obj.edit125:setWidth(50); obj.edit125:setHeight(25); obj.edit125:setField("Arma_ajuste_6"); obj.edit125:setName("edit125"); obj.edit126 = gui.fromHandle(_obj_newObject("edit")); obj.edit126:setParent(obj.layout30); obj.edit126:setLeft(445); obj.edit126:setTop(0); obj.edit126:setWidth(50); obj.edit126:setHeight(25); obj.edit126:setField("Arma_tipo_6"); obj.edit126:setName("edit126"); obj.edit127 = gui.fromHandle(_obj_newObject("edit")); obj.edit127:setParent(obj.layout30); obj.edit127:setLeft(495); obj.edit127:setTop(0); obj.edit127:setWidth(50); obj.edit127:setHeight(25); obj.edit127:setField("Arma_peso_6"); obj.edit127:setName("edit127"); obj.edit128 = gui.fromHandle(_obj_newObject("edit")); obj.edit128:setParent(obj.layout30); obj.edit128:setLeft(545); obj.edit128:setTop(0); obj.edit128:setWidth(50); obj.edit128:setHeight(25); obj.edit128:setField("Arma_velocidade_6"); obj.edit128:setName("edit128"); obj.layout31 = gui.fromHandle(_obj_newObject("layout")); obj.layout31:setParent(obj.layout23); obj.layout31:setLeft(0); obj.layout31:setTop(205); obj.layout31:setWidth(600); obj.layout31:setHeight(25); obj.layout31:setName("layout31"); obj.edit129 = gui.fromHandle(_obj_newObject("edit")); obj.edit129:setParent(obj.layout31); obj.edit129:setLeft(5); obj.edit129:setTop(0); obj.edit129:setWidth(190); obj.edit129:setHeight(25); obj.edit129:setField("Arma_7"); obj.edit129:setName("edit129"); obj.edit130 = gui.fromHandle(_obj_newObject("edit")); obj.edit130:setParent(obj.layout31); obj.edit130:setLeft(195); obj.edit130:setTop(0); obj.edit130:setWidth(50); obj.edit130:setHeight(25); obj.edit130:setField("Arma_ataques_7"); obj.edit130:setName("edit130"); obj.edit131 = gui.fromHandle(_obj_newObject("edit")); obj.edit131:setParent(obj.layout31); obj.edit131:setLeft(245); obj.edit131:setTop(0); obj.edit131:setWidth(50); obj.edit131:setHeight(25); obj.edit131:setField("Arma_alcance_7"); obj.edit131:setName("edit131"); obj.edit132 = gui.fromHandle(_obj_newObject("edit")); obj.edit132:setParent(obj.layout31); obj.edit132:setLeft(295); obj.edit132:setTop(0); obj.edit132:setWidth(50); obj.edit132:setHeight(25); obj.edit132:setField("Arma_dano_pm_7"); obj.edit132:setName("edit132"); obj.edit133 = gui.fromHandle(_obj_newObject("edit")); obj.edit133:setParent(obj.layout31); obj.edit133:setLeft(345); obj.edit133:setTop(0); obj.edit133:setWidth(50); obj.edit133:setHeight(25); obj.edit133:setField("Arma_dano_g_7"); obj.edit133:setName("edit133"); obj.edit134 = gui.fromHandle(_obj_newObject("edit")); obj.edit134:setParent(obj.layout31); obj.edit134:setLeft(395); obj.edit134:setTop(0); obj.edit134:setWidth(50); obj.edit134:setHeight(25); obj.edit134:setField("Arma_ajuste_7"); obj.edit134:setName("edit134"); obj.edit135 = gui.fromHandle(_obj_newObject("edit")); obj.edit135:setParent(obj.layout31); obj.edit135:setLeft(445); obj.edit135:setTop(0); obj.edit135:setWidth(50); obj.edit135:setHeight(25); obj.edit135:setField("Arma_tipo_7"); obj.edit135:setName("edit135"); obj.edit136 = gui.fromHandle(_obj_newObject("edit")); obj.edit136:setParent(obj.layout31); obj.edit136:setLeft(495); obj.edit136:setTop(0); obj.edit136:setWidth(50); obj.edit136:setHeight(25); obj.edit136:setField("Arma_peso_7"); obj.edit136:setName("edit136"); obj.edit137 = gui.fromHandle(_obj_newObject("edit")); obj.edit137:setParent(obj.layout31); obj.edit137:setLeft(545); obj.edit137:setTop(0); obj.edit137:setWidth(50); obj.edit137:setHeight(25); obj.edit137:setField("Arma_velocidade_7"); obj.edit137:setName("edit137"); obj.layout32 = gui.fromHandle(_obj_newObject("layout")); obj.layout32:setParent(obj.layout23); obj.layout32:setLeft(0); obj.layout32:setTop(230); obj.layout32:setWidth(600); obj.layout32:setHeight(25); obj.layout32:setName("layout32"); obj.edit138 = gui.fromHandle(_obj_newObject("edit")); obj.edit138:setParent(obj.layout32); obj.edit138:setLeft(5); obj.edit138:setTop(0); obj.edit138:setWidth(190); obj.edit138:setHeight(25); obj.edit138:setField("Arma_8"); obj.edit138:setName("edit138"); obj.edit139 = gui.fromHandle(_obj_newObject("edit")); obj.edit139:setParent(obj.layout32); obj.edit139:setLeft(195); obj.edit139:setTop(0); obj.edit139:setWidth(50); obj.edit139:setHeight(25); obj.edit139:setField("Arma_ataques_8"); obj.edit139:setName("edit139"); obj.edit140 = gui.fromHandle(_obj_newObject("edit")); obj.edit140:setParent(obj.layout32); obj.edit140:setLeft(245); obj.edit140:setTop(0); obj.edit140:setWidth(50); obj.edit140:setHeight(25); obj.edit140:setField("Arma_alcance_8"); obj.edit140:setName("edit140"); obj.edit141 = gui.fromHandle(_obj_newObject("edit")); obj.edit141:setParent(obj.layout32); obj.edit141:setLeft(295); obj.edit141:setTop(0); obj.edit141:setWidth(50); obj.edit141:setHeight(25); obj.edit141:setField("Arma_dano_pm_8"); obj.edit141:setName("edit141"); obj.edit142 = gui.fromHandle(_obj_newObject("edit")); obj.edit142:setParent(obj.layout32); obj.edit142:setLeft(345); obj.edit142:setTop(0); obj.edit142:setWidth(50); obj.edit142:setHeight(25); obj.edit142:setField("Arma_dano_g_8"); obj.edit142:setName("edit142"); obj.edit143 = gui.fromHandle(_obj_newObject("edit")); obj.edit143:setParent(obj.layout32); obj.edit143:setLeft(395); obj.edit143:setTop(0); obj.edit143:setWidth(50); obj.edit143:setHeight(25); obj.edit143:setField("Arma_ajuste_8"); obj.edit143:setName("edit143"); obj.edit144 = gui.fromHandle(_obj_newObject("edit")); obj.edit144:setParent(obj.layout32); obj.edit144:setLeft(445); obj.edit144:setTop(0); obj.edit144:setWidth(50); obj.edit144:setHeight(25); obj.edit144:setField("Arma_tipo_8"); obj.edit144:setName("edit144"); obj.edit145 = gui.fromHandle(_obj_newObject("edit")); obj.edit145:setParent(obj.layout32); obj.edit145:setLeft(495); obj.edit145:setTop(0); obj.edit145:setWidth(50); obj.edit145:setHeight(25); obj.edit145:setField("Arma_peso_8"); obj.edit145:setName("edit145"); obj.edit146 = gui.fromHandle(_obj_newObject("edit")); obj.edit146:setParent(obj.layout32); obj.edit146:setLeft(545); obj.edit146:setTop(0); obj.edit146:setWidth(50); obj.edit146:setHeight(25); obj.edit146:setField("Arma_velocidade_8"); obj.edit146:setName("edit146"); obj.layout33 = gui.fromHandle(_obj_newObject("layout")); obj.layout33:setParent(obj.layout23); obj.layout33:setLeft(0); obj.layout33:setTop(255); obj.layout33:setWidth(600); obj.layout33:setHeight(25); obj.layout33:setName("layout33"); obj.edit147 = gui.fromHandle(_obj_newObject("edit")); obj.edit147:setParent(obj.layout33); obj.edit147:setLeft(5); obj.edit147:setTop(0); obj.edit147:setWidth(190); obj.edit147:setHeight(25); obj.edit147:setField("Arma_9"); obj.edit147:setName("edit147"); obj.edit148 = gui.fromHandle(_obj_newObject("edit")); obj.edit148:setParent(obj.layout33); obj.edit148:setLeft(195); obj.edit148:setTop(0); obj.edit148:setWidth(50); obj.edit148:setHeight(25); obj.edit148:setField("Arma_ataques_9"); obj.edit148:setName("edit148"); obj.edit149 = gui.fromHandle(_obj_newObject("edit")); obj.edit149:setParent(obj.layout33); obj.edit149:setLeft(245); obj.edit149:setTop(0); obj.edit149:setWidth(50); obj.edit149:setHeight(25); obj.edit149:setField("Arma_alcance_9"); obj.edit149:setName("edit149"); obj.edit150 = gui.fromHandle(_obj_newObject("edit")); obj.edit150:setParent(obj.layout33); obj.edit150:setLeft(295); obj.edit150:setTop(0); obj.edit150:setWidth(50); obj.edit150:setHeight(25); obj.edit150:setField("Arma_dano_pm_9"); obj.edit150:setName("edit150"); obj.edit151 = gui.fromHandle(_obj_newObject("edit")); obj.edit151:setParent(obj.layout33); obj.edit151:setLeft(345); obj.edit151:setTop(0); obj.edit151:setWidth(50); obj.edit151:setHeight(25); obj.edit151:setField("Arma_dano_g_9"); obj.edit151:setName("edit151"); obj.edit152 = gui.fromHandle(_obj_newObject("edit")); obj.edit152:setParent(obj.layout33); obj.edit152:setLeft(395); obj.edit152:setTop(0); obj.edit152:setWidth(50); obj.edit152:setHeight(25); obj.edit152:setField("Arma_ajuste_9"); obj.edit152:setName("edit152"); obj.edit153 = gui.fromHandle(_obj_newObject("edit")); obj.edit153:setParent(obj.layout33); obj.edit153:setLeft(445); obj.edit153:setTop(0); obj.edit153:setWidth(50); obj.edit153:setHeight(25); obj.edit153:setField("Arma_tipo_9"); obj.edit153:setName("edit153"); obj.edit154 = gui.fromHandle(_obj_newObject("edit")); obj.edit154:setParent(obj.layout33); obj.edit154:setLeft(495); obj.edit154:setTop(0); obj.edit154:setWidth(50); obj.edit154:setHeight(25); obj.edit154:setField("Arma_peso_9"); obj.edit154:setName("edit154"); obj.edit155 = gui.fromHandle(_obj_newObject("edit")); obj.edit155:setParent(obj.layout33); obj.edit155:setLeft(545); obj.edit155:setTop(0); obj.edit155:setWidth(50); obj.edit155:setHeight(25); obj.edit155:setField("Arma_velocidade_9"); obj.edit155:setName("edit155"); obj.image3 = gui.fromHandle(_obj_newObject("image")); obj.image3:setParent(obj.scrollBox1); obj.image3:setAlign("client"); obj.image3:setSRC("https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/imagens/block.png"); obj.image3:setStyle("autoFit"); obj.image3:setName("image3"); obj.tab2 = gui.fromHandle(_obj_newObject("tab")); obj.tab2:setParent(obj.tabControl1); obj.tab2:setTitle("Perícias"); obj.tab2:setName("tab2"); obj.frmADnD2 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD2:setParent(obj.tab2); obj.frmADnD2:setName("frmADnD2"); obj.frmADnD2:setAlign("client"); obj.frmADnD2:setTheme("dark"); obj.frmADnD2:setMargins({top=1}); obj.scrollBox2 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox2:setParent(obj.frmADnD2); obj.scrollBox2:setAlign("client"); obj.scrollBox2:setName("scrollBox2"); obj.layout34 = gui.fromHandle(_obj_newObject("layout")); obj.layout34:setParent(obj.scrollBox2); obj.layout34:setLeft(0); obj.layout34:setTop(0); obj.layout34:setWidth(250); obj.layout34:setHeight(610); obj.layout34:setName("layout34"); obj.rectangle9 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle9:setParent(obj.layout34); obj.rectangle9:setAlign("client"); obj.rectangle9:setColor("black"); obj.rectangle9:setXradius(5); obj.rectangle9:setYradius(5); obj.rectangle9:setCornerType("round"); obj.rectangle9:setName("rectangle9"); obj.label88 = gui.fromHandle(_obj_newObject("label")); obj.label88:setParent(obj.layout34); obj.label88:setLeft(0); obj.label88:setTop(5); obj.label88:setWidth(250); obj.label88:setHeight(20); obj.label88:setText("PERÍCIA COM ARMA"); obj.label88:setHorzTextAlign("center"); obj.label88:setName("label88"); obj.layout35 = gui.fromHandle(_obj_newObject("layout")); obj.layout35:setParent(obj.layout34); obj.layout35:setLeft(0); obj.layout35:setTop(30); obj.layout35:setWidth(250); obj.layout35:setHeight(25); obj.layout35:setName("layout35"); obj.label89 = gui.fromHandle(_obj_newObject("label")); obj.label89:setParent(obj.layout35); obj.label89:setLeft(5); obj.label89:setTop(5); obj.label89:setWidth(40); obj.label89:setHeight(20); obj.label89:setText("Iniciais"); obj.label89:setFontSize(11); obj.label89:setHorzTextAlign("center"); obj.label89:setName("label89"); obj.edit156 = gui.fromHandle(_obj_newObject("edit")); obj.edit156:setParent(obj.layout35); obj.edit156:setLeft(45); obj.edit156:setTop(0); obj.edit156:setWidth(40); obj.edit156:setHeight(25); obj.edit156:setField("Pericia_Arma_Inicial"); obj.edit156:setName("edit156"); obj.label90 = gui.fromHandle(_obj_newObject("label")); obj.label90:setParent(obj.layout35); obj.label90:setLeft(85); obj.label90:setTop(5); obj.label90:setWidth(40); obj.label90:setHeight(20); obj.label90:setText("Adicionais"); obj.label90:setFontSize(8); obj.label90:setHorzTextAlign("center"); obj.label90:setName("label90"); obj.edit157 = gui.fromHandle(_obj_newObject("edit")); obj.edit157:setParent(obj.layout35); obj.edit157:setLeft(125); obj.edit157:setTop(0); obj.edit157:setWidth(40); obj.edit157:setHeight(25); obj.edit157:setField("Pericia_Arma_Adicional"); obj.edit157:setName("edit157"); obj.label91 = gui.fromHandle(_obj_newObject("label")); obj.label91:setParent(obj.layout35); obj.label91:setLeft(165); obj.label91:setTop(5); obj.label91:setWidth(40); obj.label91:setHeight(20); obj.label91:setText("Penalidade"); obj.label91:setFontSize(8); obj.label91:setHorzTextAlign("center"); obj.label91:setName("label91"); obj.edit158 = gui.fromHandle(_obj_newObject("edit")); obj.edit158:setParent(obj.layout35); obj.edit158:setLeft(205); obj.edit158:setTop(0); obj.edit158:setWidth(40); obj.edit158:setHeight(25); obj.edit158:setField("Pericia_Arma_Penalidade"); obj.edit158:setName("edit158"); obj.layout36 = gui.fromHandle(_obj_newObject("layout")); obj.layout36:setParent(obj.layout34); obj.layout36:setLeft(0); obj.layout36:setTop(55); obj.layout36:setWidth(250); obj.layout36:setHeight(25); obj.layout36:setName("layout36"); obj.label92 = gui.fromHandle(_obj_newObject("label")); obj.label92:setParent(obj.layout36); obj.label92:setLeft(5); obj.label92:setTop(0); obj.label92:setWidth(190); obj.label92:setHeight(25); obj.label92:setFontSize(13); obj.label92:setHorzTextAlign("center"); obj.label92:setText("Arma"); obj.label92:setName("label92"); obj.label93 = gui.fromHandle(_obj_newObject("label")); obj.label93:setParent(obj.layout36); obj.label93:setLeft(195); obj.label93:setTop(0); obj.label93:setWidth(50); obj.label93:setHeight(25); obj.label93:setFontSize(13); obj.label93:setHorzTextAlign("center"); obj.label93:setText("Pontos"); obj.label93:setName("label93"); obj.layout37 = gui.fromHandle(_obj_newObject("layout")); obj.layout37:setParent(obj.layout34); obj.layout37:setLeft(0); obj.layout37:setTop(80); obj.layout37:setWidth(250); obj.layout37:setHeight(25); obj.layout37:setName("layout37"); obj.edit159 = gui.fromHandle(_obj_newObject("edit")); obj.edit159:setParent(obj.layout37); obj.edit159:setLeft(5); obj.edit159:setTop(0); obj.edit159:setWidth(190); obj.edit159:setHeight(25); obj.edit159:setField("Pericia_Arma_2"); obj.edit159:setName("edit159"); obj.edit160 = gui.fromHandle(_obj_newObject("edit")); obj.edit160:setParent(obj.layout37); obj.edit160:setLeft(195); obj.edit160:setTop(0); obj.edit160:setWidth(50); obj.edit160:setHeight(25); obj.edit160:setField("Pericia_Arma_Pontos_2"); obj.edit160:setName("edit160"); obj.layout38 = gui.fromHandle(_obj_newObject("layout")); obj.layout38:setParent(obj.layout34); obj.layout38:setLeft(0); obj.layout38:setTop(105); obj.layout38:setWidth(250); obj.layout38:setHeight(25); obj.layout38:setName("layout38"); obj.edit161 = gui.fromHandle(_obj_newObject("edit")); obj.edit161:setParent(obj.layout38); obj.edit161:setLeft(5); obj.edit161:setTop(0); obj.edit161:setWidth(190); obj.edit161:setHeight(25); obj.edit161:setField("Pericia_Arma_3"); obj.edit161:setName("edit161"); obj.edit162 = gui.fromHandle(_obj_newObject("edit")); obj.edit162:setParent(obj.layout38); obj.edit162:setLeft(195); obj.edit162:setTop(0); obj.edit162:setWidth(50); obj.edit162:setHeight(25); obj.edit162:setField("Pericia_Arma_Pontos_3"); obj.edit162:setName("edit162"); obj.layout39 = gui.fromHandle(_obj_newObject("layout")); obj.layout39:setParent(obj.layout34); obj.layout39:setLeft(0); obj.layout39:setTop(130); obj.layout39:setWidth(250); obj.layout39:setHeight(25); obj.layout39:setName("layout39"); obj.edit163 = gui.fromHandle(_obj_newObject("edit")); obj.edit163:setParent(obj.layout39); obj.edit163:setLeft(5); obj.edit163:setTop(0); obj.edit163:setWidth(190); obj.edit163:setHeight(25); obj.edit163:setField("Pericia_Arma_4"); obj.edit163:setName("edit163"); obj.edit164 = gui.fromHandle(_obj_newObject("edit")); obj.edit164:setParent(obj.layout39); obj.edit164:setLeft(195); obj.edit164:setTop(0); obj.edit164:setWidth(50); obj.edit164:setHeight(25); obj.edit164:setField("Pericia_Arma_Pontos_4"); obj.edit164:setName("edit164"); obj.layout40 = gui.fromHandle(_obj_newObject("layout")); obj.layout40:setParent(obj.layout34); obj.layout40:setLeft(0); obj.layout40:setTop(155); obj.layout40:setWidth(250); obj.layout40:setHeight(25); obj.layout40:setName("layout40"); obj.edit165 = gui.fromHandle(_obj_newObject("edit")); obj.edit165:setParent(obj.layout40); obj.edit165:setLeft(5); obj.edit165:setTop(0); obj.edit165:setWidth(190); obj.edit165:setHeight(25); obj.edit165:setField("Pericia_Arma_5"); obj.edit165:setName("edit165"); obj.edit166 = gui.fromHandle(_obj_newObject("edit")); obj.edit166:setParent(obj.layout40); obj.edit166:setLeft(195); obj.edit166:setTop(0); obj.edit166:setWidth(50); obj.edit166:setHeight(25); obj.edit166:setField("Pericia_Arma_Pontos_5"); obj.edit166:setName("edit166"); obj.layout41 = gui.fromHandle(_obj_newObject("layout")); obj.layout41:setParent(obj.layout34); obj.layout41:setLeft(0); obj.layout41:setTop(180); obj.layout41:setWidth(250); obj.layout41:setHeight(25); obj.layout41:setName("layout41"); obj.edit167 = gui.fromHandle(_obj_newObject("edit")); obj.edit167:setParent(obj.layout41); obj.edit167:setLeft(5); obj.edit167:setTop(0); obj.edit167:setWidth(190); obj.edit167:setHeight(25); obj.edit167:setField("Pericia_Arma_7"); obj.edit167:setName("edit167"); obj.edit168 = gui.fromHandle(_obj_newObject("edit")); obj.edit168:setParent(obj.layout41); obj.edit168:setLeft(195); obj.edit168:setTop(0); obj.edit168:setWidth(50); obj.edit168:setHeight(25); obj.edit168:setField("Pericia_Arma_Pontos_7"); obj.edit168:setName("edit168"); obj.layout42 = gui.fromHandle(_obj_newObject("layout")); obj.layout42:setParent(obj.layout34); obj.layout42:setLeft(0); obj.layout42:setTop(205); obj.layout42:setWidth(250); obj.layout42:setHeight(25); obj.layout42:setName("layout42"); obj.edit169 = gui.fromHandle(_obj_newObject("edit")); obj.edit169:setParent(obj.layout42); obj.edit169:setLeft(5); obj.edit169:setTop(0); obj.edit169:setWidth(190); obj.edit169:setHeight(25); obj.edit169:setField("Pericia_Arma_8"); obj.edit169:setName("edit169"); obj.edit170 = gui.fromHandle(_obj_newObject("edit")); obj.edit170:setParent(obj.layout42); obj.edit170:setLeft(195); obj.edit170:setTop(0); obj.edit170:setWidth(50); obj.edit170:setHeight(25); obj.edit170:setField("Pericia_Arma_Pontos_8"); obj.edit170:setName("edit170"); obj.layout43 = gui.fromHandle(_obj_newObject("layout")); obj.layout43:setParent(obj.layout34); obj.layout43:setLeft(0); obj.layout43:setTop(230); obj.layout43:setWidth(250); obj.layout43:setHeight(25); obj.layout43:setName("layout43"); obj.edit171 = gui.fromHandle(_obj_newObject("edit")); obj.edit171:setParent(obj.layout43); obj.edit171:setLeft(5); obj.edit171:setTop(0); obj.edit171:setWidth(190); obj.edit171:setHeight(25); obj.edit171:setField("Pericia_Arma_9"); obj.edit171:setName("edit171"); obj.edit172 = gui.fromHandle(_obj_newObject("edit")); obj.edit172:setParent(obj.layout43); obj.edit172:setLeft(195); obj.edit172:setTop(0); obj.edit172:setWidth(50); obj.edit172:setHeight(25); obj.edit172:setField("Pericia_Arma_Pontos_9"); obj.edit172:setName("edit172"); obj.layout44 = gui.fromHandle(_obj_newObject("layout")); obj.layout44:setParent(obj.layout34); obj.layout44:setLeft(0); obj.layout44:setTop(255); obj.layout44:setWidth(250); obj.layout44:setHeight(25); obj.layout44:setName("layout44"); obj.edit173 = gui.fromHandle(_obj_newObject("edit")); obj.edit173:setParent(obj.layout44); obj.edit173:setLeft(5); obj.edit173:setTop(0); obj.edit173:setWidth(190); obj.edit173:setHeight(25); obj.edit173:setField("Pericia_Arma_10"); obj.edit173:setName("edit173"); obj.edit174 = gui.fromHandle(_obj_newObject("edit")); obj.edit174:setParent(obj.layout44); obj.edit174:setLeft(195); obj.edit174:setTop(0); obj.edit174:setWidth(50); obj.edit174:setHeight(25); obj.edit174:setField("Pericia_Arma_Pontos_10"); obj.edit174:setName("edit174"); obj.layout45 = gui.fromHandle(_obj_newObject("layout")); obj.layout45:setParent(obj.layout34); obj.layout45:setLeft(0); obj.layout45:setTop(280); obj.layout45:setWidth(250); obj.layout45:setHeight(25); obj.layout45:setName("layout45"); obj.edit175 = gui.fromHandle(_obj_newObject("edit")); obj.edit175:setParent(obj.layout45); obj.edit175:setLeft(5); obj.edit175:setTop(0); obj.edit175:setWidth(190); obj.edit175:setHeight(25); obj.edit175:setField("Pericia_Arma_11"); obj.edit175:setName("edit175"); obj.edit176 = gui.fromHandle(_obj_newObject("edit")); obj.edit176:setParent(obj.layout45); obj.edit176:setLeft(195); obj.edit176:setTop(0); obj.edit176:setWidth(50); obj.edit176:setHeight(25); obj.edit176:setField("Pericia_Arma_Pontos_11"); obj.edit176:setName("edit176"); obj.layout46 = gui.fromHandle(_obj_newObject("layout")); obj.layout46:setParent(obj.layout34); obj.layout46:setLeft(0); obj.layout46:setTop(305); obj.layout46:setWidth(250); obj.layout46:setHeight(25); obj.layout46:setName("layout46"); obj.edit177 = gui.fromHandle(_obj_newObject("edit")); obj.edit177:setParent(obj.layout46); obj.edit177:setLeft(5); obj.edit177:setTop(0); obj.edit177:setWidth(190); obj.edit177:setHeight(25); obj.edit177:setField("Pericia_Arma_12"); obj.edit177:setName("edit177"); obj.edit178 = gui.fromHandle(_obj_newObject("edit")); obj.edit178:setParent(obj.layout46); obj.edit178:setLeft(195); obj.edit178:setTop(0); obj.edit178:setWidth(50); obj.edit178:setHeight(25); obj.edit178:setField("Pericia_Arma_Pontos_12"); obj.edit178:setName("edit178"); obj.layout47 = gui.fromHandle(_obj_newObject("layout")); obj.layout47:setParent(obj.layout34); obj.layout47:setLeft(0); obj.layout47:setTop(330); obj.layout47:setWidth(250); obj.layout47:setHeight(25); obj.layout47:setName("layout47"); obj.edit179 = gui.fromHandle(_obj_newObject("edit")); obj.edit179:setParent(obj.layout47); obj.edit179:setLeft(5); obj.edit179:setTop(0); obj.edit179:setWidth(190); obj.edit179:setHeight(25); obj.edit179:setField("Pericia_Arma_13"); obj.edit179:setName("edit179"); obj.edit180 = gui.fromHandle(_obj_newObject("edit")); obj.edit180:setParent(obj.layout47); obj.edit180:setLeft(195); obj.edit180:setTop(0); obj.edit180:setWidth(50); obj.edit180:setHeight(25); obj.edit180:setField("Pericia_Arma_Pontos_13"); obj.edit180:setName("edit180"); obj.layout48 = gui.fromHandle(_obj_newObject("layout")); obj.layout48:setParent(obj.layout34); obj.layout48:setLeft(0); obj.layout48:setTop(355); obj.layout48:setWidth(250); obj.layout48:setHeight(25); obj.layout48:setName("layout48"); obj.edit181 = gui.fromHandle(_obj_newObject("edit")); obj.edit181:setParent(obj.layout48); obj.edit181:setLeft(5); obj.edit181:setTop(0); obj.edit181:setWidth(190); obj.edit181:setHeight(25); obj.edit181:setField("Pericia_Arma_14"); obj.edit181:setName("edit181"); obj.edit182 = gui.fromHandle(_obj_newObject("edit")); obj.edit182:setParent(obj.layout48); obj.edit182:setLeft(195); obj.edit182:setTop(0); obj.edit182:setWidth(50); obj.edit182:setHeight(25); obj.edit182:setField("Pericia_Arma_Pontos_14"); obj.edit182:setName("edit182"); obj.layout49 = gui.fromHandle(_obj_newObject("layout")); obj.layout49:setParent(obj.layout34); obj.layout49:setLeft(0); obj.layout49:setTop(380); obj.layout49:setWidth(250); obj.layout49:setHeight(25); obj.layout49:setName("layout49"); obj.edit183 = gui.fromHandle(_obj_newObject("edit")); obj.edit183:setParent(obj.layout49); obj.edit183:setLeft(5); obj.edit183:setTop(0); obj.edit183:setWidth(190); obj.edit183:setHeight(25); obj.edit183:setField("Pericia_Arma_15"); obj.edit183:setName("edit183"); obj.edit184 = gui.fromHandle(_obj_newObject("edit")); obj.edit184:setParent(obj.layout49); obj.edit184:setLeft(195); obj.edit184:setTop(0); obj.edit184:setWidth(50); obj.edit184:setHeight(25); obj.edit184:setField("Pericia_Arma_Pontos_15"); obj.edit184:setName("edit184"); obj.layout50 = gui.fromHandle(_obj_newObject("layout")); obj.layout50:setParent(obj.layout34); obj.layout50:setLeft(0); obj.layout50:setTop(405); obj.layout50:setWidth(250); obj.layout50:setHeight(25); obj.layout50:setName("layout50"); obj.edit185 = gui.fromHandle(_obj_newObject("edit")); obj.edit185:setParent(obj.layout50); obj.edit185:setLeft(5); obj.edit185:setTop(0); obj.edit185:setWidth(190); obj.edit185:setHeight(25); obj.edit185:setField("Pericia_Arma_16"); obj.edit185:setName("edit185"); obj.edit186 = gui.fromHandle(_obj_newObject("edit")); obj.edit186:setParent(obj.layout50); obj.edit186:setLeft(195); obj.edit186:setTop(0); obj.edit186:setWidth(50); obj.edit186:setHeight(25); obj.edit186:setField("Pericia_Arma_Pontos_16"); obj.edit186:setName("edit186"); obj.layout51 = gui.fromHandle(_obj_newObject("layout")); obj.layout51:setParent(obj.layout34); obj.layout51:setLeft(0); obj.layout51:setTop(430); obj.layout51:setWidth(250); obj.layout51:setHeight(25); obj.layout51:setName("layout51"); obj.edit187 = gui.fromHandle(_obj_newObject("edit")); obj.edit187:setParent(obj.layout51); obj.edit187:setLeft(5); obj.edit187:setTop(0); obj.edit187:setWidth(190); obj.edit187:setHeight(25); obj.edit187:setField("Pericia_Arma_17"); obj.edit187:setName("edit187"); obj.edit188 = gui.fromHandle(_obj_newObject("edit")); obj.edit188:setParent(obj.layout51); obj.edit188:setLeft(195); obj.edit188:setTop(0); obj.edit188:setWidth(50); obj.edit188:setHeight(25); obj.edit188:setField("Pericia_Arma_Pontos_17"); obj.edit188:setName("edit188"); obj.layout52 = gui.fromHandle(_obj_newObject("layout")); obj.layout52:setParent(obj.layout34); obj.layout52:setLeft(0); obj.layout52:setTop(455); obj.layout52:setWidth(250); obj.layout52:setHeight(25); obj.layout52:setName("layout52"); obj.edit189 = gui.fromHandle(_obj_newObject("edit")); obj.edit189:setParent(obj.layout52); obj.edit189:setLeft(5); obj.edit189:setTop(0); obj.edit189:setWidth(190); obj.edit189:setHeight(25); obj.edit189:setField("Pericia_Arma_18"); obj.edit189:setName("edit189"); obj.edit190 = gui.fromHandle(_obj_newObject("edit")); obj.edit190:setParent(obj.layout52); obj.edit190:setLeft(195); obj.edit190:setTop(0); obj.edit190:setWidth(50); obj.edit190:setHeight(25); obj.edit190:setField("Pericia_Arma_Pontos_18"); obj.edit190:setName("edit190"); obj.layout53 = gui.fromHandle(_obj_newObject("layout")); obj.layout53:setParent(obj.layout34); obj.layout53:setLeft(0); obj.layout53:setTop(480); obj.layout53:setWidth(250); obj.layout53:setHeight(25); obj.layout53:setName("layout53"); obj.edit191 = gui.fromHandle(_obj_newObject("edit")); obj.edit191:setParent(obj.layout53); obj.edit191:setLeft(5); obj.edit191:setTop(0); obj.edit191:setWidth(190); obj.edit191:setHeight(25); obj.edit191:setField("Pericia_Arma_19"); obj.edit191:setName("edit191"); obj.edit192 = gui.fromHandle(_obj_newObject("edit")); obj.edit192:setParent(obj.layout53); obj.edit192:setLeft(195); obj.edit192:setTop(0); obj.edit192:setWidth(50); obj.edit192:setHeight(25); obj.edit192:setField("Pericia_Arma_Pontos_19"); obj.edit192:setName("edit192"); obj.layout54 = gui.fromHandle(_obj_newObject("layout")); obj.layout54:setParent(obj.layout34); obj.layout54:setLeft(0); obj.layout54:setTop(505); obj.layout54:setWidth(250); obj.layout54:setHeight(25); obj.layout54:setName("layout54"); obj.edit193 = gui.fromHandle(_obj_newObject("edit")); obj.edit193:setParent(obj.layout54); obj.edit193:setLeft(5); obj.edit193:setTop(0); obj.edit193:setWidth(190); obj.edit193:setHeight(25); obj.edit193:setField("Pericia_Arma_20"); obj.edit193:setName("edit193"); obj.edit194 = gui.fromHandle(_obj_newObject("edit")); obj.edit194:setParent(obj.layout54); obj.edit194:setLeft(195); obj.edit194:setTop(0); obj.edit194:setWidth(50); obj.edit194:setHeight(25); obj.edit194:setField("Pericia_Arma_Pontos_20"); obj.edit194:setName("edit194"); obj.layout55 = gui.fromHandle(_obj_newObject("layout")); obj.layout55:setParent(obj.layout34); obj.layout55:setLeft(0); obj.layout55:setTop(530); obj.layout55:setWidth(250); obj.layout55:setHeight(25); obj.layout55:setName("layout55"); obj.edit195 = gui.fromHandle(_obj_newObject("edit")); obj.edit195:setParent(obj.layout55); obj.edit195:setLeft(5); obj.edit195:setTop(0); obj.edit195:setWidth(190); obj.edit195:setHeight(25); obj.edit195:setField("Pericia_Arma_21"); obj.edit195:setName("edit195"); obj.edit196 = gui.fromHandle(_obj_newObject("edit")); obj.edit196:setParent(obj.layout55); obj.edit196:setLeft(195); obj.edit196:setTop(0); obj.edit196:setWidth(50); obj.edit196:setHeight(25); obj.edit196:setField("Pericia_Arma_Pontos_21"); obj.edit196:setName("edit196"); obj.layout56 = gui.fromHandle(_obj_newObject("layout")); obj.layout56:setParent(obj.layout34); obj.layout56:setLeft(0); obj.layout56:setTop(555); obj.layout56:setWidth(250); obj.layout56:setHeight(25); obj.layout56:setName("layout56"); obj.edit197 = gui.fromHandle(_obj_newObject("edit")); obj.edit197:setParent(obj.layout56); obj.edit197:setLeft(5); obj.edit197:setTop(0); obj.edit197:setWidth(190); obj.edit197:setHeight(25); obj.edit197:setField("Pericia_Arma_22"); obj.edit197:setName("edit197"); obj.edit198 = gui.fromHandle(_obj_newObject("edit")); obj.edit198:setParent(obj.layout56); obj.edit198:setLeft(195); obj.edit198:setTop(0); obj.edit198:setWidth(50); obj.edit198:setHeight(25); obj.edit198:setField("Pericia_Arma_Pontos_22"); obj.edit198:setName("edit198"); obj.layout57 = gui.fromHandle(_obj_newObject("layout")); obj.layout57:setParent(obj.layout34); obj.layout57:setLeft(0); obj.layout57:setTop(580); obj.layout57:setWidth(250); obj.layout57:setHeight(25); obj.layout57:setName("layout57"); obj.edit199 = gui.fromHandle(_obj_newObject("edit")); obj.edit199:setParent(obj.layout57); obj.edit199:setLeft(5); obj.edit199:setTop(0); obj.edit199:setWidth(190); obj.edit199:setHeight(25); obj.edit199:setField("Pericia_Arma_23"); obj.edit199:setName("edit199"); obj.edit200 = gui.fromHandle(_obj_newObject("edit")); obj.edit200:setParent(obj.layout57); obj.edit200:setLeft(195); obj.edit200:setTop(0); obj.edit200:setWidth(50); obj.edit200:setHeight(25); obj.edit200:setField("Pericia_Arma_Pontos_23"); obj.edit200:setName("edit200"); obj.layout58 = gui.fromHandle(_obj_newObject("layout")); obj.layout58:setParent(obj.scrollBox2); obj.layout58:setLeft(260); obj.layout58:setTop(0); obj.layout58:setWidth(350); obj.layout58:setHeight(610); obj.layout58:setName("layout58"); obj.rectangle10 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle10:setParent(obj.layout58); obj.rectangle10:setAlign("client"); obj.rectangle10:setColor("black"); obj.rectangle10:setXradius(5); obj.rectangle10:setYradius(5); obj.rectangle10:setCornerType("round"); obj.rectangle10:setName("rectangle10"); obj.label94 = gui.fromHandle(_obj_newObject("label")); obj.label94:setParent(obj.layout58); obj.label94:setLeft(0); obj.label94:setTop(5); obj.label94:setWidth(350); obj.label94:setHeight(20); obj.label94:setText("PERÍCIA GERAL"); obj.label94:setHorzTextAlign("center"); obj.label94:setName("label94"); obj.layout59 = gui.fromHandle(_obj_newObject("layout")); obj.layout59:setParent(obj.layout58); obj.layout59:setLeft(0); obj.layout59:setTop(30); obj.layout59:setWidth(350); obj.layout59:setHeight(25); obj.layout59:setName("layout59"); obj.label95 = gui.fromHandle(_obj_newObject("label")); obj.label95:setParent(obj.layout59); obj.label95:setLeft(55); obj.label95:setTop(5); obj.label95:setWidth(40); obj.label95:setHeight(20); obj.label95:setText("Iniciais"); obj.label95:setFontSize(11); obj.label95:setHorzTextAlign("center"); obj.label95:setName("label95"); obj.edit201 = gui.fromHandle(_obj_newObject("edit")); obj.edit201:setParent(obj.layout59); obj.edit201:setLeft(95); obj.edit201:setTop(0); obj.edit201:setWidth(40); obj.edit201:setHeight(25); obj.edit201:setField("Pericia_Geral_Inicial"); obj.edit201:setName("edit201"); obj.label96 = gui.fromHandle(_obj_newObject("label")); obj.label96:setParent(obj.layout59); obj.label96:setLeft(135); obj.label96:setTop(5); obj.label96:setWidth(40); obj.label96:setHeight(20); obj.label96:setText("Adicionais"); obj.label96:setFontSize(8); obj.label96:setHorzTextAlign("center"); obj.label96:setName("label96"); obj.edit202 = gui.fromHandle(_obj_newObject("edit")); obj.edit202:setParent(obj.layout59); obj.edit202:setLeft(175); obj.edit202:setTop(0); obj.edit202:setWidth(40); obj.edit202:setHeight(25); obj.edit202:setField("Pericia_Geral_Adicional"); obj.edit202:setName("edit202"); obj.label97 = gui.fromHandle(_obj_newObject("label")); obj.label97:setParent(obj.layout59); obj.label97:setLeft(215); obj.label97:setTop(5); obj.label97:setWidth(40); obj.label97:setHeight(20); obj.label97:setText("Penalidade"); obj.label97:setFontSize(8); obj.label97:setHorzTextAlign("center"); obj.label97:setName("label97"); obj.edit203 = gui.fromHandle(_obj_newObject("edit")); obj.edit203:setParent(obj.layout59); obj.edit203:setLeft(255); obj.edit203:setTop(0); obj.edit203:setWidth(40); obj.edit203:setHeight(25); obj.edit203:setField("Pericia_Geral_Penalidade"); obj.edit203:setName("edit203"); obj.layout60 = gui.fromHandle(_obj_newObject("layout")); obj.layout60:setParent(obj.layout58); obj.layout60:setLeft(0); obj.layout60:setTop(55); obj.layout60:setWidth(350); obj.layout60:setHeight(25); obj.layout60:setName("layout60"); obj.label98 = gui.fromHandle(_obj_newObject("label")); obj.label98:setParent(obj.layout60); obj.label98:setLeft(5); obj.label98:setTop(0); obj.label98:setWidth(190); obj.label98:setHeight(25); obj.label98:setFontSize(13); obj.label98:setHorzTextAlign("center"); obj.label98:setText("Perícia"); obj.label98:setName("label98"); obj.label99 = gui.fromHandle(_obj_newObject("label")); obj.label99:setParent(obj.layout60); obj.label99:setLeft(195); obj.label99:setTop(0); obj.label99:setWidth(50); obj.label99:setHeight(25); obj.label99:setFontSize(13); obj.label99:setHorzTextAlign("center"); obj.label99:setText("Pontos"); obj.label99:setName("label99"); obj.label100 = gui.fromHandle(_obj_newObject("label")); obj.label100:setParent(obj.layout60); obj.label100:setLeft(245); obj.label100:setTop(0); obj.label100:setWidth(50); obj.label100:setHeight(25); obj.label100:setFontSize(13); obj.label100:setHorzTextAlign("center"); obj.label100:setText("HAB"); obj.label100:setName("label100"); obj.label101 = gui.fromHandle(_obj_newObject("label")); obj.label101:setParent(obj.layout60); obj.label101:setLeft(295); obj.label101:setTop(0); obj.label101:setWidth(50); obj.label101:setHeight(25); obj.label101:setFontSize(13); obj.label101:setHorzTextAlign("center"); obj.label101:setText("MOD"); obj.label101:setName("label101"); obj.layout61 = gui.fromHandle(_obj_newObject("layout")); obj.layout61:setParent(obj.layout58); obj.layout61:setLeft(0); obj.layout61:setTop(80); obj.layout61:setWidth(350); obj.layout61:setHeight(25); obj.layout61:setName("layout61"); obj.edit204 = gui.fromHandle(_obj_newObject("edit")); obj.edit204:setParent(obj.layout61); obj.edit204:setLeft(5); obj.edit204:setTop(0); obj.edit204:setWidth(190); obj.edit204:setHeight(25); obj.edit204:setField("Pericia_Geral_2"); obj.edit204:setName("edit204"); obj.edit205 = gui.fromHandle(_obj_newObject("edit")); obj.edit205:setParent(obj.layout61); obj.edit205:setLeft(195); obj.edit205:setTop(0); obj.edit205:setWidth(50); obj.edit205:setHeight(25); obj.edit205:setField("Pericia_Geral_Pontos_2"); obj.edit205:setName("edit205"); obj.edit206 = gui.fromHandle(_obj_newObject("edit")); obj.edit206:setParent(obj.layout61); obj.edit206:setLeft(245); obj.edit206:setTop(0); obj.edit206:setWidth(50); obj.edit206:setHeight(25); obj.edit206:setField("Pericia_Geral_HAB2"); obj.edit206:setName("edit206"); obj.edit207 = gui.fromHandle(_obj_newObject("edit")); obj.edit207:setParent(obj.layout61); obj.edit207:setLeft(295); obj.edit207:setTop(0); obj.edit207:setWidth(50); obj.edit207:setHeight(25); obj.edit207:setField("Pericia_Geral_MOD_2"); obj.edit207:setName("edit207"); obj.layout62 = gui.fromHandle(_obj_newObject("layout")); obj.layout62:setParent(obj.layout58); obj.layout62:setLeft(0); obj.layout62:setTop(105); obj.layout62:setWidth(350); obj.layout62:setHeight(25); obj.layout62:setName("layout62"); obj.edit208 = gui.fromHandle(_obj_newObject("edit")); obj.edit208:setParent(obj.layout62); obj.edit208:setLeft(5); obj.edit208:setTop(0); obj.edit208:setWidth(190); obj.edit208:setHeight(25); obj.edit208:setField("Pericia_Geral_3"); obj.edit208:setName("edit208"); obj.edit209 = gui.fromHandle(_obj_newObject("edit")); obj.edit209:setParent(obj.layout62); obj.edit209:setLeft(195); obj.edit209:setTop(0); obj.edit209:setWidth(50); obj.edit209:setHeight(25); obj.edit209:setField("Pericia_Geral_Pontos_3"); obj.edit209:setName("edit209"); obj.edit210 = gui.fromHandle(_obj_newObject("edit")); obj.edit210:setParent(obj.layout62); obj.edit210:setLeft(245); obj.edit210:setTop(0); obj.edit210:setWidth(50); obj.edit210:setHeight(25); obj.edit210:setField("Pericia_Geral_HAB3"); obj.edit210:setName("edit210"); obj.edit211 = gui.fromHandle(_obj_newObject("edit")); obj.edit211:setParent(obj.layout62); obj.edit211:setLeft(295); obj.edit211:setTop(0); obj.edit211:setWidth(50); obj.edit211:setHeight(25); obj.edit211:setField("Pericia_Geral_MOD_3"); obj.edit211:setName("edit211"); obj.layout63 = gui.fromHandle(_obj_newObject("layout")); obj.layout63:setParent(obj.layout58); obj.layout63:setLeft(0); obj.layout63:setTop(130); obj.layout63:setWidth(350); obj.layout63:setHeight(25); obj.layout63:setName("layout63"); obj.edit212 = gui.fromHandle(_obj_newObject("edit")); obj.edit212:setParent(obj.layout63); obj.edit212:setLeft(5); obj.edit212:setTop(0); obj.edit212:setWidth(190); obj.edit212:setHeight(25); obj.edit212:setField("Pericia_Geral_4"); obj.edit212:setName("edit212"); obj.edit213 = gui.fromHandle(_obj_newObject("edit")); obj.edit213:setParent(obj.layout63); obj.edit213:setLeft(195); obj.edit213:setTop(0); obj.edit213:setWidth(50); obj.edit213:setHeight(25); obj.edit213:setField("Pericia_Geral_Pontos_4"); obj.edit213:setName("edit213"); obj.edit214 = gui.fromHandle(_obj_newObject("edit")); obj.edit214:setParent(obj.layout63); obj.edit214:setLeft(245); obj.edit214:setTop(0); obj.edit214:setWidth(50); obj.edit214:setHeight(25); obj.edit214:setField("Pericia_Geral_HAB4"); obj.edit214:setName("edit214"); obj.edit215 = gui.fromHandle(_obj_newObject("edit")); obj.edit215:setParent(obj.layout63); obj.edit215:setLeft(295); obj.edit215:setTop(0); obj.edit215:setWidth(50); obj.edit215:setHeight(25); obj.edit215:setField("Pericia_Geral_MOD_4"); obj.edit215:setName("edit215"); obj.layout64 = gui.fromHandle(_obj_newObject("layout")); obj.layout64:setParent(obj.layout58); obj.layout64:setLeft(0); obj.layout64:setTop(155); obj.layout64:setWidth(350); obj.layout64:setHeight(25); obj.layout64:setName("layout64"); obj.edit216 = gui.fromHandle(_obj_newObject("edit")); obj.edit216:setParent(obj.layout64); obj.edit216:setLeft(5); obj.edit216:setTop(0); obj.edit216:setWidth(190); obj.edit216:setHeight(25); obj.edit216:setField("Pericia_Geral_5"); obj.edit216:setName("edit216"); obj.edit217 = gui.fromHandle(_obj_newObject("edit")); obj.edit217:setParent(obj.layout64); obj.edit217:setLeft(195); obj.edit217:setTop(0); obj.edit217:setWidth(50); obj.edit217:setHeight(25); obj.edit217:setField("Pericia_Geral_Pontos_5"); obj.edit217:setName("edit217"); obj.edit218 = gui.fromHandle(_obj_newObject("edit")); obj.edit218:setParent(obj.layout64); obj.edit218:setLeft(245); obj.edit218:setTop(0); obj.edit218:setWidth(50); obj.edit218:setHeight(25); obj.edit218:setField("Pericia_Geral_HAB5"); obj.edit218:setName("edit218"); obj.edit219 = gui.fromHandle(_obj_newObject("edit")); obj.edit219:setParent(obj.layout64); obj.edit219:setLeft(295); obj.edit219:setTop(0); obj.edit219:setWidth(50); obj.edit219:setHeight(25); obj.edit219:setField("Pericia_Geral_MOD_5"); obj.edit219:setName("edit219"); obj.layout65 = gui.fromHandle(_obj_newObject("layout")); obj.layout65:setParent(obj.layout58); obj.layout65:setLeft(0); obj.layout65:setTop(180); obj.layout65:setWidth(350); obj.layout65:setHeight(25); obj.layout65:setName("layout65"); obj.edit220 = gui.fromHandle(_obj_newObject("edit")); obj.edit220:setParent(obj.layout65); obj.edit220:setLeft(5); obj.edit220:setTop(0); obj.edit220:setWidth(190); obj.edit220:setHeight(25); obj.edit220:setField("Pericia_Geral_7"); obj.edit220:setName("edit220"); obj.edit221 = gui.fromHandle(_obj_newObject("edit")); obj.edit221:setParent(obj.layout65); obj.edit221:setLeft(195); obj.edit221:setTop(0); obj.edit221:setWidth(50); obj.edit221:setHeight(25); obj.edit221:setField("Pericia_Geral_Pontos_7"); obj.edit221:setName("edit221"); obj.edit222 = gui.fromHandle(_obj_newObject("edit")); obj.edit222:setParent(obj.layout65); obj.edit222:setLeft(245); obj.edit222:setTop(0); obj.edit222:setWidth(50); obj.edit222:setHeight(25); obj.edit222:setField("Pericia_Geral_HAB7"); obj.edit222:setName("edit222"); obj.edit223 = gui.fromHandle(_obj_newObject("edit")); obj.edit223:setParent(obj.layout65); obj.edit223:setLeft(295); obj.edit223:setTop(0); obj.edit223:setWidth(50); obj.edit223:setHeight(25); obj.edit223:setField("Pericia_Geral_MOD_7"); obj.edit223:setName("edit223"); obj.layout66 = gui.fromHandle(_obj_newObject("layout")); obj.layout66:setParent(obj.layout58); obj.layout66:setLeft(0); obj.layout66:setTop(205); obj.layout66:setWidth(350); obj.layout66:setHeight(25); obj.layout66:setName("layout66"); obj.edit224 = gui.fromHandle(_obj_newObject("edit")); obj.edit224:setParent(obj.layout66); obj.edit224:setLeft(5); obj.edit224:setTop(0); obj.edit224:setWidth(190); obj.edit224:setHeight(25); obj.edit224:setField("Pericia_Geral_8"); obj.edit224:setName("edit224"); obj.edit225 = gui.fromHandle(_obj_newObject("edit")); obj.edit225:setParent(obj.layout66); obj.edit225:setLeft(195); obj.edit225:setTop(0); obj.edit225:setWidth(50); obj.edit225:setHeight(25); obj.edit225:setField("Pericia_Geral_Pontos_8"); obj.edit225:setName("edit225"); obj.edit226 = gui.fromHandle(_obj_newObject("edit")); obj.edit226:setParent(obj.layout66); obj.edit226:setLeft(245); obj.edit226:setTop(0); obj.edit226:setWidth(50); obj.edit226:setHeight(25); obj.edit226:setField("Pericia_Geral_HAB8"); obj.edit226:setName("edit226"); obj.edit227 = gui.fromHandle(_obj_newObject("edit")); obj.edit227:setParent(obj.layout66); obj.edit227:setLeft(295); obj.edit227:setTop(0); obj.edit227:setWidth(50); obj.edit227:setHeight(25); obj.edit227:setField("Pericia_Geral_MOD_8"); obj.edit227:setName("edit227"); obj.layout67 = gui.fromHandle(_obj_newObject("layout")); obj.layout67:setParent(obj.layout58); obj.layout67:setLeft(0); obj.layout67:setTop(230); obj.layout67:setWidth(350); obj.layout67:setHeight(25); obj.layout67:setName("layout67"); obj.edit228 = gui.fromHandle(_obj_newObject("edit")); obj.edit228:setParent(obj.layout67); obj.edit228:setLeft(5); obj.edit228:setTop(0); obj.edit228:setWidth(190); obj.edit228:setHeight(25); obj.edit228:setField("Pericia_Geral_9"); obj.edit228:setName("edit228"); obj.edit229 = gui.fromHandle(_obj_newObject("edit")); obj.edit229:setParent(obj.layout67); obj.edit229:setLeft(195); obj.edit229:setTop(0); obj.edit229:setWidth(50); obj.edit229:setHeight(25); obj.edit229:setField("Pericia_Geral_Pontos_9"); obj.edit229:setName("edit229"); obj.edit230 = gui.fromHandle(_obj_newObject("edit")); obj.edit230:setParent(obj.layout67); obj.edit230:setLeft(245); obj.edit230:setTop(0); obj.edit230:setWidth(50); obj.edit230:setHeight(25); obj.edit230:setField("Pericia_Geral_HAB9"); obj.edit230:setName("edit230"); obj.edit231 = gui.fromHandle(_obj_newObject("edit")); obj.edit231:setParent(obj.layout67); obj.edit231:setLeft(295); obj.edit231:setTop(0); obj.edit231:setWidth(50); obj.edit231:setHeight(25); obj.edit231:setField("Pericia_Geral_MOD_9"); obj.edit231:setName("edit231"); obj.layout68 = gui.fromHandle(_obj_newObject("layout")); obj.layout68:setParent(obj.layout58); obj.layout68:setLeft(0); obj.layout68:setTop(255); obj.layout68:setWidth(350); obj.layout68:setHeight(25); obj.layout68:setName("layout68"); obj.edit232 = gui.fromHandle(_obj_newObject("edit")); obj.edit232:setParent(obj.layout68); obj.edit232:setLeft(5); obj.edit232:setTop(0); obj.edit232:setWidth(190); obj.edit232:setHeight(25); obj.edit232:setField("Pericia_Geral_10"); obj.edit232:setName("edit232"); obj.edit233 = gui.fromHandle(_obj_newObject("edit")); obj.edit233:setParent(obj.layout68); obj.edit233:setLeft(195); obj.edit233:setTop(0); obj.edit233:setWidth(50); obj.edit233:setHeight(25); obj.edit233:setField("Pericia_Geral_Pontos_10"); obj.edit233:setName("edit233"); obj.edit234 = gui.fromHandle(_obj_newObject("edit")); obj.edit234:setParent(obj.layout68); obj.edit234:setLeft(245); obj.edit234:setTop(0); obj.edit234:setWidth(50); obj.edit234:setHeight(25); obj.edit234:setField("Pericia_Geral_HAB10"); obj.edit234:setName("edit234"); obj.edit235 = gui.fromHandle(_obj_newObject("edit")); obj.edit235:setParent(obj.layout68); obj.edit235:setLeft(295); obj.edit235:setTop(0); obj.edit235:setWidth(50); obj.edit235:setHeight(25); obj.edit235:setField("Pericia_Geral_MOD_10"); obj.edit235:setName("edit235"); obj.layout69 = gui.fromHandle(_obj_newObject("layout")); obj.layout69:setParent(obj.layout58); obj.layout69:setLeft(0); obj.layout69:setTop(280); obj.layout69:setWidth(350); obj.layout69:setHeight(25); obj.layout69:setName("layout69"); obj.edit236 = gui.fromHandle(_obj_newObject("edit")); obj.edit236:setParent(obj.layout69); obj.edit236:setLeft(5); obj.edit236:setTop(0); obj.edit236:setWidth(190); obj.edit236:setHeight(25); obj.edit236:setField("Pericia_Geral_11"); obj.edit236:setName("edit236"); obj.edit237 = gui.fromHandle(_obj_newObject("edit")); obj.edit237:setParent(obj.layout69); obj.edit237:setLeft(195); obj.edit237:setTop(0); obj.edit237:setWidth(50); obj.edit237:setHeight(25); obj.edit237:setField("Pericia_Geral_Pontos_11"); obj.edit237:setName("edit237"); obj.edit238 = gui.fromHandle(_obj_newObject("edit")); obj.edit238:setParent(obj.layout69); obj.edit238:setLeft(245); obj.edit238:setTop(0); obj.edit238:setWidth(50); obj.edit238:setHeight(25); obj.edit238:setField("Pericia_Geral_HAB11"); obj.edit238:setName("edit238"); obj.edit239 = gui.fromHandle(_obj_newObject("edit")); obj.edit239:setParent(obj.layout69); obj.edit239:setLeft(295); obj.edit239:setTop(0); obj.edit239:setWidth(50); obj.edit239:setHeight(25); obj.edit239:setField("Pericia_Geral_MOD_11"); obj.edit239:setName("edit239"); obj.layout70 = gui.fromHandle(_obj_newObject("layout")); obj.layout70:setParent(obj.layout58); obj.layout70:setLeft(0); obj.layout70:setTop(305); obj.layout70:setWidth(350); obj.layout70:setHeight(25); obj.layout70:setName("layout70"); obj.edit240 = gui.fromHandle(_obj_newObject("edit")); obj.edit240:setParent(obj.layout70); obj.edit240:setLeft(5); obj.edit240:setTop(0); obj.edit240:setWidth(190); obj.edit240:setHeight(25); obj.edit240:setField("Pericia_Geral_12"); obj.edit240:setName("edit240"); obj.edit241 = gui.fromHandle(_obj_newObject("edit")); obj.edit241:setParent(obj.layout70); obj.edit241:setLeft(195); obj.edit241:setTop(0); obj.edit241:setWidth(50); obj.edit241:setHeight(25); obj.edit241:setField("Pericia_Geral_Pontos_12"); obj.edit241:setName("edit241"); obj.edit242 = gui.fromHandle(_obj_newObject("edit")); obj.edit242:setParent(obj.layout70); obj.edit242:setLeft(245); obj.edit242:setTop(0); obj.edit242:setWidth(50); obj.edit242:setHeight(25); obj.edit242:setField("Pericia_Geral_HAB12"); obj.edit242:setName("edit242"); obj.edit243 = gui.fromHandle(_obj_newObject("edit")); obj.edit243:setParent(obj.layout70); obj.edit243:setLeft(295); obj.edit243:setTop(0); obj.edit243:setWidth(50); obj.edit243:setHeight(25); obj.edit243:setField("Pericia_Geral_MOD_12"); obj.edit243:setName("edit243"); obj.layout71 = gui.fromHandle(_obj_newObject("layout")); obj.layout71:setParent(obj.layout58); obj.layout71:setLeft(0); obj.layout71:setTop(330); obj.layout71:setWidth(350); obj.layout71:setHeight(25); obj.layout71:setName("layout71"); obj.edit244 = gui.fromHandle(_obj_newObject("edit")); obj.edit244:setParent(obj.layout71); obj.edit244:setLeft(5); obj.edit244:setTop(0); obj.edit244:setWidth(190); obj.edit244:setHeight(25); obj.edit244:setField("Pericia_Geral_13"); obj.edit244:setName("edit244"); obj.edit245 = gui.fromHandle(_obj_newObject("edit")); obj.edit245:setParent(obj.layout71); obj.edit245:setLeft(195); obj.edit245:setTop(0); obj.edit245:setWidth(50); obj.edit245:setHeight(25); obj.edit245:setField("Pericia_Geral_Pontos_13"); obj.edit245:setName("edit245"); obj.edit246 = gui.fromHandle(_obj_newObject("edit")); obj.edit246:setParent(obj.layout71); obj.edit246:setLeft(245); obj.edit246:setTop(0); obj.edit246:setWidth(50); obj.edit246:setHeight(25); obj.edit246:setField("Pericia_Geral_HAB13"); obj.edit246:setName("edit246"); obj.edit247 = gui.fromHandle(_obj_newObject("edit")); obj.edit247:setParent(obj.layout71); obj.edit247:setLeft(295); obj.edit247:setTop(0); obj.edit247:setWidth(50); obj.edit247:setHeight(25); obj.edit247:setField("Pericia_Geral_MOD_13"); obj.edit247:setName("edit247"); obj.layout72 = gui.fromHandle(_obj_newObject("layout")); obj.layout72:setParent(obj.layout58); obj.layout72:setLeft(0); obj.layout72:setTop(355); obj.layout72:setWidth(350); obj.layout72:setHeight(25); obj.layout72:setName("layout72"); obj.edit248 = gui.fromHandle(_obj_newObject("edit")); obj.edit248:setParent(obj.layout72); obj.edit248:setLeft(5); obj.edit248:setTop(0); obj.edit248:setWidth(190); obj.edit248:setHeight(25); obj.edit248:setField("Pericia_Geral_14"); obj.edit248:setName("edit248"); obj.edit249 = gui.fromHandle(_obj_newObject("edit")); obj.edit249:setParent(obj.layout72); obj.edit249:setLeft(195); obj.edit249:setTop(0); obj.edit249:setWidth(50); obj.edit249:setHeight(25); obj.edit249:setField("Pericia_Geral_Pontos_14"); obj.edit249:setName("edit249"); obj.edit250 = gui.fromHandle(_obj_newObject("edit")); obj.edit250:setParent(obj.layout72); obj.edit250:setLeft(245); obj.edit250:setTop(0); obj.edit250:setWidth(50); obj.edit250:setHeight(25); obj.edit250:setField("Pericia_Geral_HAB14"); obj.edit250:setName("edit250"); obj.edit251 = gui.fromHandle(_obj_newObject("edit")); obj.edit251:setParent(obj.layout72); obj.edit251:setLeft(295); obj.edit251:setTop(0); obj.edit251:setWidth(50); obj.edit251:setHeight(25); obj.edit251:setField("Pericia_Geral_MOD_14"); obj.edit251:setName("edit251"); obj.layout73 = gui.fromHandle(_obj_newObject("layout")); obj.layout73:setParent(obj.layout58); obj.layout73:setLeft(0); obj.layout73:setTop(380); obj.layout73:setWidth(350); obj.layout73:setHeight(25); obj.layout73:setName("layout73"); obj.edit252 = gui.fromHandle(_obj_newObject("edit")); obj.edit252:setParent(obj.layout73); obj.edit252:setLeft(5); obj.edit252:setTop(0); obj.edit252:setWidth(190); obj.edit252:setHeight(25); obj.edit252:setField("Pericia_Geral_15"); obj.edit252:setName("edit252"); obj.edit253 = gui.fromHandle(_obj_newObject("edit")); obj.edit253:setParent(obj.layout73); obj.edit253:setLeft(195); obj.edit253:setTop(0); obj.edit253:setWidth(50); obj.edit253:setHeight(25); obj.edit253:setField("Pericia_Geral_Pontos_15"); obj.edit253:setName("edit253"); obj.edit254 = gui.fromHandle(_obj_newObject("edit")); obj.edit254:setParent(obj.layout73); obj.edit254:setLeft(245); obj.edit254:setTop(0); obj.edit254:setWidth(50); obj.edit254:setHeight(25); obj.edit254:setField("Pericia_Geral_HAB15"); obj.edit254:setName("edit254"); obj.edit255 = gui.fromHandle(_obj_newObject("edit")); obj.edit255:setParent(obj.layout73); obj.edit255:setLeft(295); obj.edit255:setTop(0); obj.edit255:setWidth(50); obj.edit255:setHeight(25); obj.edit255:setField("Pericia_Geral_MOD_15"); obj.edit255:setName("edit255"); obj.layout74 = gui.fromHandle(_obj_newObject("layout")); obj.layout74:setParent(obj.layout58); obj.layout74:setLeft(0); obj.layout74:setTop(405); obj.layout74:setWidth(350); obj.layout74:setHeight(25); obj.layout74:setName("layout74"); obj.edit256 = gui.fromHandle(_obj_newObject("edit")); obj.edit256:setParent(obj.layout74); obj.edit256:setLeft(5); obj.edit256:setTop(0); obj.edit256:setWidth(190); obj.edit256:setHeight(25); obj.edit256:setField("Pericia_Geral_16"); obj.edit256:setName("edit256"); obj.edit257 = gui.fromHandle(_obj_newObject("edit")); obj.edit257:setParent(obj.layout74); obj.edit257:setLeft(195); obj.edit257:setTop(0); obj.edit257:setWidth(50); obj.edit257:setHeight(25); obj.edit257:setField("Pericia_Geral_Pontos_16"); obj.edit257:setName("edit257"); obj.edit258 = gui.fromHandle(_obj_newObject("edit")); obj.edit258:setParent(obj.layout74); obj.edit258:setLeft(245); obj.edit258:setTop(0); obj.edit258:setWidth(50); obj.edit258:setHeight(25); obj.edit258:setField("Pericia_Geral_HAB16"); obj.edit258:setName("edit258"); obj.edit259 = gui.fromHandle(_obj_newObject("edit")); obj.edit259:setParent(obj.layout74); obj.edit259:setLeft(295); obj.edit259:setTop(0); obj.edit259:setWidth(50); obj.edit259:setHeight(25); obj.edit259:setField("Pericia_Geral_MOD_16"); obj.edit259:setName("edit259"); obj.layout75 = gui.fromHandle(_obj_newObject("layout")); obj.layout75:setParent(obj.layout58); obj.layout75:setLeft(0); obj.layout75:setTop(430); obj.layout75:setWidth(350); obj.layout75:setHeight(25); obj.layout75:setName("layout75"); obj.edit260 = gui.fromHandle(_obj_newObject("edit")); obj.edit260:setParent(obj.layout75); obj.edit260:setLeft(5); obj.edit260:setTop(0); obj.edit260:setWidth(190); obj.edit260:setHeight(25); obj.edit260:setField("Pericia_Geral_17"); obj.edit260:setName("edit260"); obj.edit261 = gui.fromHandle(_obj_newObject("edit")); obj.edit261:setParent(obj.layout75); obj.edit261:setLeft(195); obj.edit261:setTop(0); obj.edit261:setWidth(50); obj.edit261:setHeight(25); obj.edit261:setField("Pericia_Geral_Pontos_17"); obj.edit261:setName("edit261"); obj.edit262 = gui.fromHandle(_obj_newObject("edit")); obj.edit262:setParent(obj.layout75); obj.edit262:setLeft(245); obj.edit262:setTop(0); obj.edit262:setWidth(50); obj.edit262:setHeight(25); obj.edit262:setField("Pericia_Geral_HAB17"); obj.edit262:setName("edit262"); obj.edit263 = gui.fromHandle(_obj_newObject("edit")); obj.edit263:setParent(obj.layout75); obj.edit263:setLeft(295); obj.edit263:setTop(0); obj.edit263:setWidth(50); obj.edit263:setHeight(25); obj.edit263:setField("Pericia_Geral_MOD_17"); obj.edit263:setName("edit263"); obj.layout76 = gui.fromHandle(_obj_newObject("layout")); obj.layout76:setParent(obj.layout58); obj.layout76:setLeft(0); obj.layout76:setTop(455); obj.layout76:setWidth(350); obj.layout76:setHeight(25); obj.layout76:setName("layout76"); obj.edit264 = gui.fromHandle(_obj_newObject("edit")); obj.edit264:setParent(obj.layout76); obj.edit264:setLeft(5); obj.edit264:setTop(0); obj.edit264:setWidth(190); obj.edit264:setHeight(25); obj.edit264:setField("Pericia_Geral_18"); obj.edit264:setName("edit264"); obj.edit265 = gui.fromHandle(_obj_newObject("edit")); obj.edit265:setParent(obj.layout76); obj.edit265:setLeft(195); obj.edit265:setTop(0); obj.edit265:setWidth(50); obj.edit265:setHeight(25); obj.edit265:setField("Pericia_Geral_Pontos_18"); obj.edit265:setName("edit265"); obj.edit266 = gui.fromHandle(_obj_newObject("edit")); obj.edit266:setParent(obj.layout76); obj.edit266:setLeft(245); obj.edit266:setTop(0); obj.edit266:setWidth(50); obj.edit266:setHeight(25); obj.edit266:setField("Pericia_Geral_HAB18"); obj.edit266:setName("edit266"); obj.edit267 = gui.fromHandle(_obj_newObject("edit")); obj.edit267:setParent(obj.layout76); obj.edit267:setLeft(295); obj.edit267:setTop(0); obj.edit267:setWidth(50); obj.edit267:setHeight(25); obj.edit267:setField("Pericia_Geral_MOD_18"); obj.edit267:setName("edit267"); obj.layout77 = gui.fromHandle(_obj_newObject("layout")); obj.layout77:setParent(obj.layout58); obj.layout77:setLeft(0); obj.layout77:setTop(480); obj.layout77:setWidth(350); obj.layout77:setHeight(25); obj.layout77:setName("layout77"); obj.edit268 = gui.fromHandle(_obj_newObject("edit")); obj.edit268:setParent(obj.layout77); obj.edit268:setLeft(5); obj.edit268:setTop(0); obj.edit268:setWidth(190); obj.edit268:setHeight(25); obj.edit268:setField("Pericia_Geral_19"); obj.edit268:setName("edit268"); obj.edit269 = gui.fromHandle(_obj_newObject("edit")); obj.edit269:setParent(obj.layout77); obj.edit269:setLeft(195); obj.edit269:setTop(0); obj.edit269:setWidth(50); obj.edit269:setHeight(25); obj.edit269:setField("Pericia_Geral_Pontos_19"); obj.edit269:setName("edit269"); obj.edit270 = gui.fromHandle(_obj_newObject("edit")); obj.edit270:setParent(obj.layout77); obj.edit270:setLeft(245); obj.edit270:setTop(0); obj.edit270:setWidth(50); obj.edit270:setHeight(25); obj.edit270:setField("Pericia_Geral_HAB19"); obj.edit270:setName("edit270"); obj.edit271 = gui.fromHandle(_obj_newObject("edit")); obj.edit271:setParent(obj.layout77); obj.edit271:setLeft(295); obj.edit271:setTop(0); obj.edit271:setWidth(50); obj.edit271:setHeight(25); obj.edit271:setField("Pericia_Geral_MOD_19"); obj.edit271:setName("edit271"); obj.layout78 = gui.fromHandle(_obj_newObject("layout")); obj.layout78:setParent(obj.layout58); obj.layout78:setLeft(0); obj.layout78:setTop(505); obj.layout78:setWidth(350); obj.layout78:setHeight(25); obj.layout78:setName("layout78"); obj.edit272 = gui.fromHandle(_obj_newObject("edit")); obj.edit272:setParent(obj.layout78); obj.edit272:setLeft(5); obj.edit272:setTop(0); obj.edit272:setWidth(190); obj.edit272:setHeight(25); obj.edit272:setField("Pericia_Geral_20"); obj.edit272:setName("edit272"); obj.edit273 = gui.fromHandle(_obj_newObject("edit")); obj.edit273:setParent(obj.layout78); obj.edit273:setLeft(195); obj.edit273:setTop(0); obj.edit273:setWidth(50); obj.edit273:setHeight(25); obj.edit273:setField("Pericia_Geral_Pontos_20"); obj.edit273:setName("edit273"); obj.edit274 = gui.fromHandle(_obj_newObject("edit")); obj.edit274:setParent(obj.layout78); obj.edit274:setLeft(245); obj.edit274:setTop(0); obj.edit274:setWidth(50); obj.edit274:setHeight(25); obj.edit274:setField("Pericia_Geral_HAB20"); obj.edit274:setName("edit274"); obj.edit275 = gui.fromHandle(_obj_newObject("edit")); obj.edit275:setParent(obj.layout78); obj.edit275:setLeft(295); obj.edit275:setTop(0); obj.edit275:setWidth(50); obj.edit275:setHeight(25); obj.edit275:setField("Pericia_Geral_MOD_20"); obj.edit275:setName("edit275"); obj.layout79 = gui.fromHandle(_obj_newObject("layout")); obj.layout79:setParent(obj.layout58); obj.layout79:setLeft(0); obj.layout79:setTop(530); obj.layout79:setWidth(350); obj.layout79:setHeight(25); obj.layout79:setName("layout79"); obj.edit276 = gui.fromHandle(_obj_newObject("edit")); obj.edit276:setParent(obj.layout79); obj.edit276:setLeft(5); obj.edit276:setTop(0); obj.edit276:setWidth(190); obj.edit276:setHeight(25); obj.edit276:setField("Pericia_Geral_21"); obj.edit276:setName("edit276"); obj.edit277 = gui.fromHandle(_obj_newObject("edit")); obj.edit277:setParent(obj.layout79); obj.edit277:setLeft(195); obj.edit277:setTop(0); obj.edit277:setWidth(50); obj.edit277:setHeight(25); obj.edit277:setField("Pericia_Geral_Pontos_21"); obj.edit277:setName("edit277"); obj.edit278 = gui.fromHandle(_obj_newObject("edit")); obj.edit278:setParent(obj.layout79); obj.edit278:setLeft(245); obj.edit278:setTop(0); obj.edit278:setWidth(50); obj.edit278:setHeight(25); obj.edit278:setField("Pericia_Geral_HAB21"); obj.edit278:setName("edit278"); obj.edit279 = gui.fromHandle(_obj_newObject("edit")); obj.edit279:setParent(obj.layout79); obj.edit279:setLeft(295); obj.edit279:setTop(0); obj.edit279:setWidth(50); obj.edit279:setHeight(25); obj.edit279:setField("Pericia_Geral_MOD_21"); obj.edit279:setName("edit279"); obj.layout80 = gui.fromHandle(_obj_newObject("layout")); obj.layout80:setParent(obj.layout58); obj.layout80:setLeft(0); obj.layout80:setTop(555); obj.layout80:setWidth(350); obj.layout80:setHeight(25); obj.layout80:setName("layout80"); obj.edit280 = gui.fromHandle(_obj_newObject("edit")); obj.edit280:setParent(obj.layout80); obj.edit280:setLeft(5); obj.edit280:setTop(0); obj.edit280:setWidth(190); obj.edit280:setHeight(25); obj.edit280:setField("Pericia_Geral_22"); obj.edit280:setName("edit280"); obj.edit281 = gui.fromHandle(_obj_newObject("edit")); obj.edit281:setParent(obj.layout80); obj.edit281:setLeft(195); obj.edit281:setTop(0); obj.edit281:setWidth(50); obj.edit281:setHeight(25); obj.edit281:setField("Pericia_Geral_Pontos_22"); obj.edit281:setName("edit281"); obj.edit282 = gui.fromHandle(_obj_newObject("edit")); obj.edit282:setParent(obj.layout80); obj.edit282:setLeft(245); obj.edit282:setTop(0); obj.edit282:setWidth(50); obj.edit282:setHeight(25); obj.edit282:setField("Pericia_Geral_HAB22"); obj.edit282:setName("edit282"); obj.edit283 = gui.fromHandle(_obj_newObject("edit")); obj.edit283:setParent(obj.layout80); obj.edit283:setLeft(295); obj.edit283:setTop(0); obj.edit283:setWidth(50); obj.edit283:setHeight(25); obj.edit283:setField("Pericia_Geral_MOD_22"); obj.edit283:setName("edit283"); obj.layout81 = gui.fromHandle(_obj_newObject("layout")); obj.layout81:setParent(obj.layout58); obj.layout81:setLeft(0); obj.layout81:setTop(580); obj.layout81:setWidth(350); obj.layout81:setHeight(25); obj.layout81:setName("layout81"); obj.edit284 = gui.fromHandle(_obj_newObject("edit")); obj.edit284:setParent(obj.layout81); obj.edit284:setLeft(5); obj.edit284:setTop(0); obj.edit284:setWidth(190); obj.edit284:setHeight(25); obj.edit284:setField("Pericia_Geral_23"); obj.edit284:setName("edit284"); obj.edit285 = gui.fromHandle(_obj_newObject("edit")); obj.edit285:setParent(obj.layout81); obj.edit285:setLeft(195); obj.edit285:setTop(0); obj.edit285:setWidth(50); obj.edit285:setHeight(25); obj.edit285:setField("Pericia_Geral_Pontos_23"); obj.edit285:setName("edit285"); obj.edit286 = gui.fromHandle(_obj_newObject("edit")); obj.edit286:setParent(obj.layout81); obj.edit286:setLeft(245); obj.edit286:setTop(0); obj.edit286:setWidth(50); obj.edit286:setHeight(25); obj.edit286:setField("Pericia_Geral_HAB23"); obj.edit286:setName("edit286"); obj.edit287 = gui.fromHandle(_obj_newObject("edit")); obj.edit287:setParent(obj.layout81); obj.edit287:setLeft(295); obj.edit287:setTop(0); obj.edit287:setWidth(50); obj.edit287:setHeight(25); obj.edit287:setField("Pericia_Geral_MOD_23"); obj.edit287:setName("edit287"); obj.layout82 = gui.fromHandle(_obj_newObject("layout")); obj.layout82:setParent(obj.scrollBox2); obj.layout82:setLeft(620); obj.layout82:setTop(0); obj.layout82:setWidth(150); obj.layout82:setHeight(255); obj.layout82:setName("layout82"); obj.rectangle11 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle11:setParent(obj.layout82); obj.rectangle11:setAlign("client"); obj.rectangle11:setColor("black"); obj.rectangle11:setXradius(5); obj.rectangle11:setYradius(5); obj.rectangle11:setCornerType("round"); obj.rectangle11:setName("rectangle11"); obj.label102 = gui.fromHandle(_obj_newObject("label")); obj.label102:setParent(obj.layout82); obj.label102:setLeft(0); obj.label102:setTop(5); obj.label102:setWidth(150); obj.label102:setHeight(20); obj.label102:setText("TALENTOS LADINOS"); obj.label102:setHorzTextAlign("center"); obj.label102:setName("label102"); obj.label103 = gui.fromHandle(_obj_newObject("label")); obj.label103:setParent(obj.layout82); obj.label103:setLeft(5); obj.label103:setTop(25); obj.label103:setWidth(100); obj.label103:setHeight(20); obj.label103:setFontSize(13); obj.label103:setHorzTextAlign("center"); obj.label103:setText("Furtar Bolsos"); obj.label103:setName("label103"); obj.edit288 = gui.fromHandle(_obj_newObject("edit")); obj.edit288:setParent(obj.layout82); obj.edit288:setLeft(105); obj.edit288:setTop(25); obj.edit288:setWidth(40); obj.edit288:setHeight(25); obj.edit288:setField("Talento_Furto"); obj.edit288:setName("edit288"); obj.label104 = gui.fromHandle(_obj_newObject("label")); obj.label104:setParent(obj.layout82); obj.label104:setLeft(5); obj.label104:setTop(50); obj.label104:setWidth(100); obj.label104:setHeight(20); obj.label104:setFontSize(13); obj.label104:setHorzTextAlign("center"); obj.label104:setText("Abrir Fechaduras"); obj.label104:setName("label104"); obj.edit289 = gui.fromHandle(_obj_newObject("edit")); obj.edit289:setParent(obj.layout82); obj.edit289:setLeft(105); obj.edit289:setTop(50); obj.edit289:setWidth(40); obj.edit289:setHeight(25); obj.edit289:setField("Talento_Abrir_Fechaduras"); obj.edit289:setName("edit289"); obj.label105 = gui.fromHandle(_obj_newObject("label")); obj.label105:setParent(obj.layout82); obj.label105:setLeft(5); obj.label105:setTop(75); obj.label105:setWidth(100); obj.label105:setHeight(20); obj.label105:setFontSize(8); obj.label105:setHorzTextAlign("center"); obj.label105:setText("Achar/Desarmar Armadilhas"); obj.label105:setName("label105"); obj.edit290 = gui.fromHandle(_obj_newObject("edit")); obj.edit290:setParent(obj.layout82); obj.edit290:setLeft(105); obj.edit290:setTop(75); obj.edit290:setWidth(40); obj.edit290:setHeight(25); obj.edit290:setField("Talento_Armadilhas"); obj.edit290:setName("edit290"); obj.label106 = gui.fromHandle(_obj_newObject("label")); obj.label106:setParent(obj.layout82); obj.label106:setLeft(5); obj.label106:setTop(100); obj.label106:setWidth(100); obj.label106:setHeight(20); obj.label106:setFontSize(10); obj.label106:setHorzTextAlign("center"); obj.label106:setText("Mover-se em Silêncio"); obj.label106:setName("label106"); obj.edit291 = gui.fromHandle(_obj_newObject("edit")); obj.edit291:setParent(obj.layout82); obj.edit291:setLeft(105); obj.edit291:setTop(100); obj.edit291:setWidth(40); obj.edit291:setHeight(25); obj.edit291:setField("Talento_Furtividade"); obj.edit291:setName("edit291"); obj.label107 = gui.fromHandle(_obj_newObject("label")); obj.label107:setParent(obj.layout82); obj.label107:setLeft(5); obj.label107:setTop(125); obj.label107:setWidth(100); obj.label107:setHeight(20); obj.label107:setFontSize(10); obj.label107:setHorzTextAlign("center"); obj.label107:setText("Esconder-se nas Sombras"); obj.label107:setName("label107"); obj.edit292 = gui.fromHandle(_obj_newObject("edit")); obj.edit292:setParent(obj.layout82); obj.edit292:setLeft(105); obj.edit292:setTop(125); obj.edit292:setWidth(40); obj.edit292:setHeight(25); obj.edit292:setField("Talento_Esconder"); obj.edit292:setName("edit292"); obj.label108 = gui.fromHandle(_obj_newObject("label")); obj.label108:setParent(obj.layout82); obj.label108:setLeft(5); obj.label108:setTop(150); obj.label108:setWidth(100); obj.label108:setHeight(20); obj.label108:setFontSize(13); obj.label108:setHorzTextAlign("center"); obj.label108:setText("Ouvir Ruídos"); obj.label108:setName("label108"); obj.edit293 = gui.fromHandle(_obj_newObject("edit")); obj.edit293:setParent(obj.layout82); obj.edit293:setLeft(105); obj.edit293:setTop(150); obj.edit293:setWidth(40); obj.edit293:setHeight(25); obj.edit293:setField("Talento_Ouvir"); obj.edit293:setName("edit293"); obj.label109 = gui.fromHandle(_obj_newObject("label")); obj.label109:setParent(obj.layout82); obj.label109:setLeft(5); obj.label109:setTop(175); obj.label109:setWidth(100); obj.label109:setHeight(20); obj.label109:setFontSize(13); obj.label109:setHorzTextAlign("center"); obj.label109:setText("Escalar Muros"); obj.label109:setName("label109"); obj.edit294 = gui.fromHandle(_obj_newObject("edit")); obj.edit294:setParent(obj.layout82); obj.edit294:setLeft(105); obj.edit294:setTop(175); obj.edit294:setWidth(40); obj.edit294:setHeight(25); obj.edit294:setField("Talento_Escalar"); obj.edit294:setName("edit294"); obj.label110 = gui.fromHandle(_obj_newObject("label")); obj.label110:setParent(obj.layout82); obj.label110:setLeft(5); obj.label110:setTop(200); obj.label110:setWidth(100); obj.label110:setHeight(20); obj.label110:setFontSize(11); obj.label110:setHorzTextAlign("center"); obj.label110:setText("Decifrar Linguagens"); obj.label110:setName("label110"); obj.edit295 = gui.fromHandle(_obj_newObject("edit")); obj.edit295:setParent(obj.layout82); obj.edit295:setLeft(105); obj.edit295:setTop(200); obj.edit295:setWidth(40); obj.edit295:setHeight(25); obj.edit295:setField("Talento_Decifrar"); obj.edit295:setName("edit295"); obj.label111 = gui.fromHandle(_obj_newObject("label")); obj.label111:setParent(obj.layout82); obj.label111:setLeft(5); obj.label111:setTop(225); obj.label111:setWidth(100); obj.label111:setHeight(20); obj.label111:setFontSize(11); obj.label111:setHorzTextAlign("center"); obj.label111:setText("Ataque pelas Costas"); obj.label111:setName("label111"); obj.edit296 = gui.fromHandle(_obj_newObject("edit")); obj.edit296:setParent(obj.layout82); obj.edit296:setLeft(105); obj.edit296:setTop(225); obj.edit296:setWidth(40); obj.edit296:setHeight(25); obj.edit296:setField("Talento_Ataque_Furtivo"); obj.edit296:setName("edit296"); obj.layout83 = gui.fromHandle(_obj_newObject("layout")); obj.layout83:setParent(obj.scrollBox2); obj.layout83:setLeft(620); obj.layout83:setTop(259); obj.layout83:setWidth(150); obj.layout83:setHeight(355); obj.layout83:setName("layout83"); obj.rectangle12 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle12:setParent(obj.layout83); obj.rectangle12:setAlign("client"); obj.rectangle12:setColor("black"); obj.rectangle12:setXradius(5); obj.rectangle12:setYradius(5); obj.rectangle12:setCornerType("round"); obj.rectangle12:setName("rectangle12"); obj.label112 = gui.fromHandle(_obj_newObject("label")); obj.label112:setParent(obj.layout83); obj.label112:setLeft(0); obj.label112:setTop(5); obj.label112:setWidth(150); obj.label112:setHeight(20); obj.label112:setText("PODER DA FÉ"); obj.label112:setHorzTextAlign("center"); obj.label112:setName("label112"); obj.label113 = gui.fromHandle(_obj_newObject("label")); obj.label113:setParent(obj.layout83); obj.label113:setLeft(5); obj.label113:setTop(25); obj.label113:setWidth(100); obj.label113:setHeight(20); obj.label113:setFontSize(13); obj.label113:setHorzTextAlign("center"); obj.label113:setText("Esqueleto (1DV)"); obj.label113:setName("label113"); obj.edit297 = gui.fromHandle(_obj_newObject("edit")); obj.edit297:setParent(obj.layout83); obj.edit297:setLeft(105); obj.edit297:setTop(25); obj.edit297:setWidth(40); obj.edit297:setHeight(25); obj.edit297:setField("Fe1"); obj.edit297:setName("edit297"); obj.label114 = gui.fromHandle(_obj_newObject("label")); obj.label114:setParent(obj.layout83); obj.label114:setLeft(5); obj.label114:setTop(50); obj.label114:setWidth(100); obj.label114:setHeight(20); obj.label114:setFontSize(13); obj.label114:setHorzTextAlign("center"); obj.label114:setText("Zumbi"); obj.label114:setName("label114"); obj.edit298 = gui.fromHandle(_obj_newObject("edit")); obj.edit298:setParent(obj.layout83); obj.edit298:setLeft(105); obj.edit298:setTop(50); obj.edit298:setWidth(40); obj.edit298:setHeight(25); obj.edit298:setField("Fe2"); obj.edit298:setName("edit298"); obj.label115 = gui.fromHandle(_obj_newObject("label")); obj.label115:setParent(obj.layout83); obj.label115:setLeft(5); obj.label115:setTop(75); obj.label115:setWidth(100); obj.label115:setHeight(20); obj.label115:setFontSize(13); obj.label115:setHorzTextAlign("center"); obj.label115:setText("Carniçal (2DV)"); obj.label115:setName("label115"); obj.edit299 = gui.fromHandle(_obj_newObject("edit")); obj.edit299:setParent(obj.layout83); obj.edit299:setLeft(105); obj.edit299:setTop(75); obj.edit299:setWidth(40); obj.edit299:setHeight(25); obj.edit299:setField("Fe3"); obj.edit299:setName("edit299"); obj.label116 = gui.fromHandle(_obj_newObject("label")); obj.label116:setParent(obj.layout83); obj.label116:setLeft(5); obj.label116:setTop(100); obj.label116:setWidth(100); obj.label116:setHeight(20); obj.label116:setFontSize(13); obj.label116:setHorzTextAlign("center"); obj.label116:setText("Sombra (3-4DV)"); obj.label116:setName("label116"); obj.edit300 = gui.fromHandle(_obj_newObject("edit")); obj.edit300:setParent(obj.layout83); obj.edit300:setLeft(105); obj.edit300:setTop(100); obj.edit300:setWidth(40); obj.edit300:setHeight(25); obj.edit300:setField("Fe4"); obj.edit300:setName("edit300"); obj.label117 = gui.fromHandle(_obj_newObject("label")); obj.label117:setParent(obj.layout83); obj.label117:setLeft(5); obj.label117:setTop(125); obj.label117:setWidth(100); obj.label117:setHeight(20); obj.label117:setFontSize(13); obj.label117:setHorzTextAlign("center"); obj.label117:setText("Vulto (5DV)"); obj.label117:setName("label117"); obj.edit301 = gui.fromHandle(_obj_newObject("edit")); obj.edit301:setParent(obj.layout83); obj.edit301:setLeft(105); obj.edit301:setTop(125); obj.edit301:setWidth(40); obj.edit301:setHeight(25); obj.edit301:setField("Fe5"); obj.edit301:setName("edit301"); obj.label118 = gui.fromHandle(_obj_newObject("label")); obj.label118:setParent(obj.layout83); obj.label118:setLeft(5); obj.label118:setTop(150); obj.label118:setWidth(100); obj.label118:setHeight(20); obj.label118:setFontSize(13); obj.label118:setHorzTextAlign("center"); obj.label118:setText("Carniçal"); obj.label118:setName("label118"); obj.edit302 = gui.fromHandle(_obj_newObject("edit")); obj.edit302:setParent(obj.layout83); obj.edit302:setLeft(105); obj.edit302:setTop(150); obj.edit302:setWidth(40); obj.edit302:setHeight(25); obj.edit302:setField("Fe6"); obj.edit302:setName("edit302"); obj.label119 = gui.fromHandle(_obj_newObject("label")); obj.label119:setParent(obj.layout83); obj.label119:setLeft(5); obj.label119:setTop(175); obj.label119:setWidth(100); obj.label119:setHeight(20); obj.label119:setFontSize(13); obj.label119:setHorzTextAlign("center"); obj.label119:setText("Aparição (6DV)"); obj.label119:setName("label119"); obj.edit303 = gui.fromHandle(_obj_newObject("edit")); obj.edit303:setParent(obj.layout83); obj.edit303:setLeft(105); obj.edit303:setTop(175); obj.edit303:setWidth(40); obj.edit303:setHeight(25); obj.edit303:setField("Fe7"); obj.edit303:setName("edit303"); obj.label120 = gui.fromHandle(_obj_newObject("label")); obj.label120:setParent(obj.layout83); obj.label120:setLeft(5); obj.label120:setTop(200); obj.label120:setWidth(100); obj.label120:setHeight(20); obj.label120:setFontSize(13); obj.label120:setHorzTextAlign("center"); obj.label120:setText("Múmia (7DV)"); obj.label120:setName("label120"); obj.edit304 = gui.fromHandle(_obj_newObject("edit")); obj.edit304:setParent(obj.layout83); obj.edit304:setLeft(105); obj.edit304:setTop(200); obj.edit304:setWidth(40); obj.edit304:setHeight(25); obj.edit304:setField("Fe8"); obj.edit304:setName("edit304"); obj.label121 = gui.fromHandle(_obj_newObject("label")); obj.label121:setParent(obj.layout83); obj.label121:setLeft(5); obj.label121:setTop(225); obj.label121:setWidth(100); obj.label121:setHeight(20); obj.label121:setFontSize(13); obj.label121:setHorzTextAlign("center"); obj.label121:setText("Espectro (8DV)"); obj.label121:setName("label121"); obj.edit305 = gui.fromHandle(_obj_newObject("edit")); obj.edit305:setParent(obj.layout83); obj.edit305:setLeft(105); obj.edit305:setTop(225); obj.edit305:setWidth(40); obj.edit305:setHeight(25); obj.edit305:setField("Fe9"); obj.edit305:setName("edit305"); obj.label122 = gui.fromHandle(_obj_newObject("label")); obj.label122:setParent(obj.layout83); obj.label122:setLeft(5); obj.label122:setTop(250); obj.label122:setWidth(100); obj.label122:setHeight(20); obj.label122:setFontSize(13); obj.label122:setHorzTextAlign("center"); obj.label122:setText("Vampiro (9DV)"); obj.label122:setName("label122"); obj.edit306 = gui.fromHandle(_obj_newObject("edit")); obj.edit306:setParent(obj.layout83); obj.edit306:setLeft(105); obj.edit306:setTop(250); obj.edit306:setWidth(40); obj.edit306:setHeight(25); obj.edit306:setField("Fe10"); obj.edit306:setName("edit306"); obj.label123 = gui.fromHandle(_obj_newObject("label")); obj.label123:setParent(obj.layout83); obj.label123:setLeft(5); obj.label123:setTop(275); obj.label123:setWidth(100); obj.label123:setHeight(20); obj.label123:setFontSize(13); obj.label123:setHorzTextAlign("center"); obj.label123:setText("Fantasma (10DV)"); obj.label123:setName("label123"); obj.edit307 = gui.fromHandle(_obj_newObject("edit")); obj.edit307:setParent(obj.layout83); obj.edit307:setLeft(105); obj.edit307:setTop(275); obj.edit307:setWidth(40); obj.edit307:setHeight(25); obj.edit307:setField("Fe11"); obj.edit307:setName("edit307"); obj.label124 = gui.fromHandle(_obj_newObject("label")); obj.label124:setParent(obj.layout83); obj.label124:setLeft(5); obj.label124:setTop(300); obj.label124:setWidth(100); obj.label124:setHeight(20); obj.label124:setFontSize(13); obj.label124:setHorzTextAlign("center"); obj.label124:setText("Lich (11DV+)"); obj.label124:setName("label124"); obj.edit308 = gui.fromHandle(_obj_newObject("edit")); obj.edit308:setParent(obj.layout83); obj.edit308:setLeft(105); obj.edit308:setTop(300); obj.edit308:setWidth(40); obj.edit308:setHeight(25); obj.edit308:setField("Fe12"); obj.edit308:setName("edit308"); obj.label125 = gui.fromHandle(_obj_newObject("label")); obj.label125:setParent(obj.layout83); obj.label125:setLeft(5); obj.label125:setTop(325); obj.label125:setWidth(100); obj.label125:setHeight(20); obj.label125:setFontSize(13); obj.label125:setHorzTextAlign("center"); obj.label125:setText("Especial"); obj.label125:setName("label125"); obj.edit309 = gui.fromHandle(_obj_newObject("edit")); obj.edit309:setParent(obj.layout83); obj.edit309:setLeft(105); obj.edit309:setTop(325); obj.edit309:setWidth(40); obj.edit309:setHeight(25); obj.edit309:setField("Fe13"); obj.edit309:setName("edit309"); obj.layout84 = gui.fromHandle(_obj_newObject("layout")); obj.layout84:setParent(obj.scrollBox2); obj.layout84:setLeft(780); obj.layout84:setTop(0); obj.layout84:setWidth(265); obj.layout84:setHeight(300); obj.layout84:setName("layout84"); obj.rectangle13 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle13:setParent(obj.layout84); obj.rectangle13:setAlign("client"); obj.rectangle13:setColor("black"); obj.rectangle13:setXradius(5); obj.rectangle13:setYradius(5); obj.rectangle13:setCornerType("round"); obj.rectangle13:setName("rectangle13"); obj.label126 = gui.fromHandle(_obj_newObject("label")); obj.label126:setParent(obj.layout84); obj.label126:setLeft(0); obj.label126:setTop(0); obj.label126:setWidth(265); obj.label126:setHeight(20); obj.label126:setText("Habilidades Especificas"); obj.label126:setHorzTextAlign("center"); obj.label126:setName("label126"); obj.textEditor1 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor1:setParent(obj.layout84); obj.textEditor1:setLeft(5); obj.textEditor1:setTop(25); obj.textEditor1:setWidth(255); obj.textEditor1:setHeight(265); obj.textEditor1:setField("HE1"); obj.textEditor1:setName("textEditor1"); obj.layout85 = gui.fromHandle(_obj_newObject("layout")); obj.layout85:setParent(obj.scrollBox2); obj.layout85:setLeft(780); obj.layout85:setTop(310); obj.layout85:setWidth(265); obj.layout85:setHeight(300); obj.layout85:setName("layout85"); obj.rectangle14 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle14:setParent(obj.layout85); obj.rectangle14:setAlign("client"); obj.rectangle14:setColor("black"); obj.rectangle14:setXradius(5); obj.rectangle14:setYradius(5); obj.rectangle14:setCornerType("round"); obj.rectangle14:setName("rectangle14"); obj.label127 = gui.fromHandle(_obj_newObject("label")); obj.label127:setParent(obj.layout85); obj.label127:setLeft(0); obj.label127:setTop(0); obj.label127:setWidth(265); obj.label127:setHeight(20); obj.label127:setText("Habilidades Especificas"); obj.label127:setHorzTextAlign("center"); obj.label127:setName("label127"); obj.textEditor2 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor2:setParent(obj.layout85); obj.textEditor2:setLeft(5); obj.textEditor2:setTop(25); obj.textEditor2:setWidth(255); obj.textEditor2:setHeight(265); obj.textEditor2:setField("HE3"); obj.textEditor2:setName("textEditor2"); obj.layout86 = gui.fromHandle(_obj_newObject("layout")); obj.layout86:setParent(obj.scrollBox2); obj.layout86:setLeft(1055); obj.layout86:setTop(0); obj.layout86:setWidth(265); obj.layout86:setHeight(300); obj.layout86:setName("layout86"); obj.rectangle15 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle15:setParent(obj.layout86); obj.rectangle15:setAlign("client"); obj.rectangle15:setColor("black"); obj.rectangle15:setXradius(5); obj.rectangle15:setYradius(5); obj.rectangle15:setCornerType("round"); obj.rectangle15:setName("rectangle15"); obj.label128 = gui.fromHandle(_obj_newObject("label")); obj.label128:setParent(obj.layout86); obj.label128:setLeft(0); obj.label128:setTop(0); obj.label128:setWidth(265); obj.label128:setHeight(20); obj.label128:setText("Habilidades Especificas"); obj.label128:setHorzTextAlign("center"); obj.label128:setName("label128"); obj.textEditor3 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor3:setParent(obj.layout86); obj.textEditor3:setLeft(5); obj.textEditor3:setTop(25); obj.textEditor3:setWidth(255); obj.textEditor3:setHeight(265); obj.textEditor3:setField("HE2"); obj.textEditor3:setName("textEditor3"); obj.layout87 = gui.fromHandle(_obj_newObject("layout")); obj.layout87:setParent(obj.scrollBox2); obj.layout87:setLeft(1055); obj.layout87:setTop(310); obj.layout87:setWidth(265); obj.layout87:setHeight(300); obj.layout87:setName("layout87"); obj.rectangle16 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle16:setParent(obj.layout87); obj.rectangle16:setAlign("client"); obj.rectangle16:setColor("black"); obj.rectangle16:setXradius(5); obj.rectangle16:setYradius(5); obj.rectangle16:setCornerType("round"); obj.rectangle16:setName("rectangle16"); obj.label129 = gui.fromHandle(_obj_newObject("label")); obj.label129:setParent(obj.layout87); obj.label129:setLeft(0); obj.label129:setTop(0); obj.label129:setWidth(265); obj.label129:setHeight(20); obj.label129:setText("Habilidades Especificas"); obj.label129:setHorzTextAlign("center"); obj.label129:setName("label129"); obj.textEditor4 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor4:setParent(obj.layout87); obj.textEditor4:setLeft(5); obj.textEditor4:setTop(25); obj.textEditor4:setWidth(255); obj.textEditor4:setHeight(265); obj.textEditor4:setField("HE4"); obj.textEditor4:setName("textEditor4"); obj.image4 = gui.fromHandle(_obj_newObject("image")); obj.image4:setParent(obj.scrollBox2); obj.image4:setAlign("client"); obj.image4:setSRC("https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/imagens/block.png"); obj.image4:setStyle("autoFit"); obj.image4:setName("image4"); obj.tab3 = gui.fromHandle(_obj_newObject("tab")); obj.tab3:setParent(obj.tabControl1); obj.tab3:setTitle("Inventario"); obj.tab3:setName("tab3"); obj.frmADnD3 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD3:setParent(obj.tab3); obj.frmADnD3:setName("frmADnD3"); obj.frmADnD3:setAlign("client"); obj.frmADnD3:setTheme("dark"); obj.frmADnD3:setMargins({top=1}); obj.scrollBox3 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox3:setParent(obj.frmADnD3); obj.scrollBox3:setAlign("client"); obj.scrollBox3:setName("scrollBox3"); local function sumCusto(); if sheet~=nil then local mod = (tonumber(sheet.Equipamento_Custo_1_1) or 0) + (tonumber(sheet.Equipamento_Custo_1_2) or 0) + (tonumber(sheet.Equipamento_Custo_1_3) or 0) + (tonumber(sheet.Equipamento_Custo_1_4) or 0) + (tonumber(sheet.Equipamento_Custo_1_5) or 0) + (tonumber(sheet.Equipamento_Custo_1_6) or 0) + (tonumber(sheet.Equipamento_Custo_1_7) or 0) + (tonumber(sheet.Equipamento_Custo_1_8) or 0) + (tonumber(sheet.Equipamento_Custo_1_9) or 0) + (tonumber(sheet.Equipamento_Custo_1_10) or 0) + (tonumber(sheet.Equipamento_Custo_1_11) or 0) + (tonumber(sheet.Equipamento_Custo_1_12) or 0) + (tonumber(sheet.Equipamento_Custo_1_13) or 0) + (tonumber(sheet.Equipamento_Custo_1_14) or 0) + (tonumber(sheet.Equipamento_Custo_1_15) or 0) + (tonumber(sheet.Equipamento_Custo_1_16) or 0) + (tonumber(sheet.Equipamento_Custo_1_17) or 0) + (tonumber(sheet.Equipamento_Custo_1_18) or 0) + (tonumber(sheet.Equipamento_Custo_1_19) or 0) + (tonumber(sheet.Equipamento_Custo_1_20) or 0) + (tonumber(sheet.Equipamento_Custo_1_21) or 0) + (tonumber(sheet.Equipamento_Custo_1_22) or 0) + (tonumber(sheet.Equipamento_Custo_2_1) or 0) + (tonumber(sheet.Equipamento_Custo_2_2) or 0) + (tonumber(sheet.Equipamento_Custo_2_3) or 0) + (tonumber(sheet.Equipamento_Custo_2_4) or 0) + (tonumber(sheet.Equipamento_Custo_2_5) or 0) + (tonumber(sheet.Equipamento_Custo_2_6) or 0) + (tonumber(sheet.Equipamento_Custo_2_7) or 0) + (tonumber(sheet.Equipamento_Custo_2_8) or 0) + (tonumber(sheet.Equipamento_Custo_2_9) or 0) + (tonumber(sheet.Equipamento_Custo_2_10) or 0) + (tonumber(sheet.Equipamento_Custo_2_11) or 0) + (tonumber(sheet.Equipamento_Custo_2_12) or 0) + (tonumber(sheet.Equipamento_Custo_2_13) or 0) + (tonumber(sheet.Equipamento_Custo_2_14) or 0) + (tonumber(sheet.Equipamento_Custo_2_15) or 0) + (tonumber(sheet.Equipamento_Custo_2_16) or 0) + (tonumber(sheet.Equipamento_Custo_2_17) or 0) + (tonumber(sheet.Equipamento_Custo_2_18) or 0) + (tonumber(sheet.Equipamento_Custo_2_19) or 0) + (tonumber(sheet.Equipamento_Custo_2_20) or 0) + (tonumber(sheet.Equipamento_Custo_2_21) or 0) + (tonumber(sheet.Equipamento_Custo_2_22) or 0) + (tonumber(sheet.Equipamento_Custo_3_1) or 0) + (tonumber(sheet.Equipamento_Custo_3_2) or 0) + (tonumber(sheet.Equipamento_Custo_3_3) or 0) + (tonumber(sheet.Equipamento_Custo_3_4) or 0) + (tonumber(sheet.Equipamento_Custo_3_5) or 0) + (tonumber(sheet.Equipamento_Custo_3_6) or 0) + (tonumber(sheet.Equipamento_Custo_3_7) or 0) + (tonumber(sheet.Equipamento_Custo_3_8) or 0) + (tonumber(sheet.Equipamento_Custo_3_9) or 0) + (tonumber(sheet.Equipamento_Custo_3_10) or 0) + (tonumber(sheet.Equipamento_Custo_3_11) or 0) + (tonumber(sheet.Equipamento_Custo_3_12) or 0) + (tonumber(sheet.Equipamento_Custo_3_13) or 0) + (tonumber(sheet.Equipamento_Custo_3_14) or 0) + (tonumber(sheet.Equipamento_Custo_3_15) or 0) + (tonumber(sheet.Equipamento_Custo_3_16) or 0) + (tonumber(sheet.Equipamento_Custo_3_17) or 0) + (tonumber(sheet.Equipamento_Custo_3_18) or 0) + (tonumber(sheet.Equipamento_Custo_3_19) or 0) + (tonumber(sheet.Equipamento_Custo_3_20) or 0) + (tonumber(sheet.Equipamento_Custo_3_21) or 0) + (tonumber(sheet.Equipamento_Custo_3_22) or 0); sheet.Custo_Total = mod; end; end; local function sumPeso(); if sheet~=nil then local mod = (tonumber(sheet.Equipamento_Peso_1_1) or 0) + (tonumber(sheet.Equipamento_Peso_1_2) or 0) + (tonumber(sheet.Equipamento_Peso_1_3) or 0) + (tonumber(sheet.Equipamento_Peso_1_4) or 0) + (tonumber(sheet.Equipamento_Peso_1_5) or 0) + (tonumber(sheet.Equipamento_Peso_1_6) or 0) + (tonumber(sheet.Equipamento_Peso_1_7) or 0) + (tonumber(sheet.Equipamento_Peso_1_8) or 0) + (tonumber(sheet.Equipamento_Peso_1_9) or 0) + (tonumber(sheet.Equipamento_Peso_1_10) or 0) + (tonumber(sheet.Equipamento_Peso_1_11) or 0) + (tonumber(sheet.Equipamento_Peso_1_12) or 0) + (tonumber(sheet.Equipamento_Peso_1_13) or 0) + (tonumber(sheet.Equipamento_Peso_1_14) or 0) + (tonumber(sheet.Equipamento_Peso_1_15) or 0) + (tonumber(sheet.Equipamento_Peso_1_16) or 0) + (tonumber(sheet.Equipamento_Peso_1_17) or 0) + (tonumber(sheet.Equipamento_Peso_1_18) or 0) + (tonumber(sheet.Equipamento_Peso_1_19) or 0) + (tonumber(sheet.Equipamento_Peso_1_20) or 0) + (tonumber(sheet.Equipamento_Peso_1_21) or 0) + (tonumber(sheet.Equipamento_Peso_1_22) or 0) + (tonumber(sheet.Equipamento_Peso_2_1) or 0) + (tonumber(sheet.Equipamento_Peso_2_2) or 0) + (tonumber(sheet.Equipamento_Peso_2_3) or 0) + (tonumber(sheet.Equipamento_Peso_2_4) or 0) + (tonumber(sheet.Equipamento_Peso_2_5) or 0) + (tonumber(sheet.Equipamento_Peso_2_6) or 0) + (tonumber(sheet.Equipamento_Peso_2_7) or 0) + (tonumber(sheet.Equipamento_Peso_2_8) or 0) + (tonumber(sheet.Equipamento_Peso_2_9) or 0) + (tonumber(sheet.Equipamento_Peso_2_10) or 0) + (tonumber(sheet.Equipamento_Peso_2_11) or 0) + (tonumber(sheet.Equipamento_Peso_2_12) or 0) + (tonumber(sheet.Equipamento_Peso_2_13) or 0) + (tonumber(sheet.Equipamento_Peso_2_14) or 0) + (tonumber(sheet.Equipamento_Peso_2_15) or 0) + (tonumber(sheet.Equipamento_Peso_2_16) or 0) + (tonumber(sheet.Equipamento_Peso_2_17) or 0) + (tonumber(sheet.Equipamento_Peso_2_18) or 0) + (tonumber(sheet.Equipamento_Peso_2_19) or 0) + (tonumber(sheet.Equipamento_Peso_2_20) or 0) + (tonumber(sheet.Equipamento_Peso_2_21) or 0) + (tonumber(sheet.Equipamento_Peso_2_22) or 0) + (tonumber(sheet.Equipamento_Peso_3_1) or 0) + (tonumber(sheet.Equipamento_Peso_3_2) or 0) + (tonumber(sheet.Equipamento_Peso_3_3) or 0) + (tonumber(sheet.Equipamento_Peso_3_4) or 0) + (tonumber(sheet.Equipamento_Peso_3_5) or 0) + (tonumber(sheet.Equipamento_Peso_3_6) or 0) + (tonumber(sheet.Equipamento_Peso_3_7) or 0) + (tonumber(sheet.Equipamento_Peso_3_8) or 0) + (tonumber(sheet.Equipamento_Peso_3_9) or 0) + (tonumber(sheet.Equipamento_Peso_3_10) or 0) + (tonumber(sheet.Equipamento_Peso_3_11) or 0) + (tonumber(sheet.Equipamento_Peso_3_12) or 0) + (tonumber(sheet.Equipamento_Peso_3_13) or 0) + (tonumber(sheet.Equipamento_Peso_3_14) or 0) + (tonumber(sheet.Equipamento_Peso_3_15) or 0) + (tonumber(sheet.Equipamento_Peso_3_16) or 0) + (tonumber(sheet.Equipamento_Peso_3_17) or 0) + (tonumber(sheet.Equipamento_Peso_3_18) or 0) + (tonumber(sheet.Equipamento_Peso_3_19) or 0) + (tonumber(sheet.Equipamento_Peso_3_20) or 0) + (tonumber(sheet.Equipamento_Peso_3_21) or 0) + (tonumber(sheet.Equipamento_Peso_3_22) or 0); sheet.Peso_Total = mod; end; end; obj.layout88 = gui.fromHandle(_obj_newObject("layout")); obj.layout88:setParent(obj.scrollBox3); obj.layout88:setLeft(0); obj.layout88:setTop(0); obj.layout88:setWidth(300); obj.layout88:setHeight(610); obj.layout88:setName("layout88"); obj.rectangle17 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle17:setParent(obj.layout88); obj.rectangle17:setAlign("client"); obj.rectangle17:setColor("black"); obj.rectangle17:setXradius(5); obj.rectangle17:setYradius(5); obj.rectangle17:setCornerType("round"); obj.rectangle17:setName("rectangle17"); obj.label130 = gui.fromHandle(_obj_newObject("label")); obj.label130:setParent(obj.layout88); obj.label130:setLeft(0); obj.label130:setTop(5); obj.label130:setWidth(300); obj.label130:setHeight(20); obj.label130:setText("EQUIPAMENTOS"); obj.label130:setHorzTextAlign("center"); obj.label130:setName("label130"); obj.layout89 = gui.fromHandle(_obj_newObject("layout")); obj.layout89:setParent(obj.layout88); obj.layout89:setLeft(0); obj.layout89:setTop(30); obj.layout89:setWidth(300); obj.layout89:setHeight(25); obj.layout89:setName("layout89"); obj.label131 = gui.fromHandle(_obj_newObject("label")); obj.label131:setParent(obj.layout89); obj.label131:setLeft(5); obj.label131:setTop(0); obj.label131:setWidth(190); obj.label131:setHeight(25); obj.label131:setHorzTextAlign("center"); obj.label131:setText("Item"); obj.label131:setName("label131"); obj.label132 = gui.fromHandle(_obj_newObject("label")); obj.label132:setParent(obj.layout89); obj.label132:setLeft(195); obj.label132:setTop(0); obj.label132:setWidth(50); obj.label132:setHeight(25); obj.label132:setHorzTextAlign("center"); obj.label132:setText("Custo"); obj.label132:setName("label132"); obj.label133 = gui.fromHandle(_obj_newObject("label")); obj.label133:setParent(obj.layout89); obj.label133:setLeft(245); obj.label133:setTop(0); obj.label133:setWidth(50); obj.label133:setHeight(25); obj.label133:setHorzTextAlign("center"); obj.label133:setText("Peso"); obj.label133:setName("label133"); obj.layout90 = gui.fromHandle(_obj_newObject("layout")); obj.layout90:setParent(obj.layout88); obj.layout90:setLeft(0); obj.layout90:setTop(55); obj.layout90:setWidth(300); obj.layout90:setHeight(25); obj.layout90:setName("layout90"); obj.edit310 = gui.fromHandle(_obj_newObject("edit")); obj.edit310:setParent(obj.layout90); obj.edit310:setLeft(5); obj.edit310:setTop(0); obj.edit310:setWidth(190); obj.edit310:setHeight(25); obj.edit310:setField("Equipamento_1_1"); obj.edit310:setName("edit310"); obj.edit311 = gui.fromHandle(_obj_newObject("edit")); obj.edit311:setParent(obj.layout90); obj.edit311:setLeft(195); obj.edit311:setTop(0); obj.edit311:setWidth(50); obj.edit311:setHeight(25); obj.edit311:setField("Equipamento_Custo_1_1"); obj.edit311:setName("edit311"); obj.edit312 = gui.fromHandle(_obj_newObject("edit")); obj.edit312:setParent(obj.layout90); obj.edit312:setLeft(245); obj.edit312:setTop(0); obj.edit312:setWidth(50); obj.edit312:setHeight(25); obj.edit312:setField("Equipamento_Peso_1_1"); obj.edit312:setName("edit312"); obj.layout91 = gui.fromHandle(_obj_newObject("layout")); obj.layout91:setParent(obj.layout88); obj.layout91:setLeft(0); obj.layout91:setTop(80); obj.layout91:setWidth(300); obj.layout91:setHeight(25); obj.layout91:setName("layout91"); obj.edit313 = gui.fromHandle(_obj_newObject("edit")); obj.edit313:setParent(obj.layout91); obj.edit313:setLeft(5); obj.edit313:setTop(0); obj.edit313:setWidth(190); obj.edit313:setHeight(25); obj.edit313:setField("Equipamento_1_2"); obj.edit313:setName("edit313"); obj.edit314 = gui.fromHandle(_obj_newObject("edit")); obj.edit314:setParent(obj.layout91); obj.edit314:setLeft(195); obj.edit314:setTop(0); obj.edit314:setWidth(50); obj.edit314:setHeight(25); obj.edit314:setField("Equipamento_Custo_1_2"); obj.edit314:setName("edit314"); obj.edit315 = gui.fromHandle(_obj_newObject("edit")); obj.edit315:setParent(obj.layout91); obj.edit315:setLeft(245); obj.edit315:setTop(0); obj.edit315:setWidth(50); obj.edit315:setHeight(25); obj.edit315:setField("Equipamento_Peso_1_2"); obj.edit315:setName("edit315"); obj.layout92 = gui.fromHandle(_obj_newObject("layout")); obj.layout92:setParent(obj.layout88); obj.layout92:setLeft(0); obj.layout92:setTop(105); obj.layout92:setWidth(300); obj.layout92:setHeight(25); obj.layout92:setName("layout92"); obj.edit316 = gui.fromHandle(_obj_newObject("edit")); obj.edit316:setParent(obj.layout92); obj.edit316:setLeft(5); obj.edit316:setTop(0); obj.edit316:setWidth(190); obj.edit316:setHeight(25); obj.edit316:setField("Equipamento_1_3"); obj.edit316:setName("edit316"); obj.edit317 = gui.fromHandle(_obj_newObject("edit")); obj.edit317:setParent(obj.layout92); obj.edit317:setLeft(195); obj.edit317:setTop(0); obj.edit317:setWidth(50); obj.edit317:setHeight(25); obj.edit317:setField("Equipamento_Custo_1_3"); obj.edit317:setName("edit317"); obj.edit318 = gui.fromHandle(_obj_newObject("edit")); obj.edit318:setParent(obj.layout92); obj.edit318:setLeft(245); obj.edit318:setTop(0); obj.edit318:setWidth(50); obj.edit318:setHeight(25); obj.edit318:setField("Equipamento_Peso_1_3"); obj.edit318:setName("edit318"); obj.layout93 = gui.fromHandle(_obj_newObject("layout")); obj.layout93:setParent(obj.layout88); obj.layout93:setLeft(0); obj.layout93:setTop(130); obj.layout93:setWidth(300); obj.layout93:setHeight(25); obj.layout93:setName("layout93"); obj.edit319 = gui.fromHandle(_obj_newObject("edit")); obj.edit319:setParent(obj.layout93); obj.edit319:setLeft(5); obj.edit319:setTop(0); obj.edit319:setWidth(190); obj.edit319:setHeight(25); obj.edit319:setField("Equipamento_1_4"); obj.edit319:setName("edit319"); obj.edit320 = gui.fromHandle(_obj_newObject("edit")); obj.edit320:setParent(obj.layout93); obj.edit320:setLeft(195); obj.edit320:setTop(0); obj.edit320:setWidth(50); obj.edit320:setHeight(25); obj.edit320:setField("Equipamento_Custo_1_4"); obj.edit320:setName("edit320"); obj.edit321 = gui.fromHandle(_obj_newObject("edit")); obj.edit321:setParent(obj.layout93); obj.edit321:setLeft(245); obj.edit321:setTop(0); obj.edit321:setWidth(50); obj.edit321:setHeight(25); obj.edit321:setField("Equipamento_Peso_1_4"); obj.edit321:setName("edit321"); obj.layout94 = gui.fromHandle(_obj_newObject("layout")); obj.layout94:setParent(obj.layout88); obj.layout94:setLeft(0); obj.layout94:setTop(155); obj.layout94:setWidth(300); obj.layout94:setHeight(25); obj.layout94:setName("layout94"); obj.edit322 = gui.fromHandle(_obj_newObject("edit")); obj.edit322:setParent(obj.layout94); obj.edit322:setLeft(5); obj.edit322:setTop(0); obj.edit322:setWidth(190); obj.edit322:setHeight(25); obj.edit322:setField("Equipamento_1_5"); obj.edit322:setName("edit322"); obj.edit323 = gui.fromHandle(_obj_newObject("edit")); obj.edit323:setParent(obj.layout94); obj.edit323:setLeft(195); obj.edit323:setTop(0); obj.edit323:setWidth(50); obj.edit323:setHeight(25); obj.edit323:setField("Equipamento_Custo_1_5"); obj.edit323:setName("edit323"); obj.edit324 = gui.fromHandle(_obj_newObject("edit")); obj.edit324:setParent(obj.layout94); obj.edit324:setLeft(245); obj.edit324:setTop(0); obj.edit324:setWidth(50); obj.edit324:setHeight(25); obj.edit324:setField("Equipamento_Peso_1_5"); obj.edit324:setName("edit324"); obj.layout95 = gui.fromHandle(_obj_newObject("layout")); obj.layout95:setParent(obj.layout88); obj.layout95:setLeft(0); obj.layout95:setTop(180); obj.layout95:setWidth(300); obj.layout95:setHeight(25); obj.layout95:setName("layout95"); obj.edit325 = gui.fromHandle(_obj_newObject("edit")); obj.edit325:setParent(obj.layout95); obj.edit325:setLeft(5); obj.edit325:setTop(0); obj.edit325:setWidth(190); obj.edit325:setHeight(25); obj.edit325:setField("Equipamento_1_6"); obj.edit325:setName("edit325"); obj.edit326 = gui.fromHandle(_obj_newObject("edit")); obj.edit326:setParent(obj.layout95); obj.edit326:setLeft(195); obj.edit326:setTop(0); obj.edit326:setWidth(50); obj.edit326:setHeight(25); obj.edit326:setField("Equipamento_Custo_1_6"); obj.edit326:setName("edit326"); obj.edit327 = gui.fromHandle(_obj_newObject("edit")); obj.edit327:setParent(obj.layout95); obj.edit327:setLeft(245); obj.edit327:setTop(0); obj.edit327:setWidth(50); obj.edit327:setHeight(25); obj.edit327:setField("Equipamento_Peso_1_6"); obj.edit327:setName("edit327"); obj.layout96 = gui.fromHandle(_obj_newObject("layout")); obj.layout96:setParent(obj.layout88); obj.layout96:setLeft(0); obj.layout96:setTop(205); obj.layout96:setWidth(300); obj.layout96:setHeight(25); obj.layout96:setName("layout96"); obj.edit328 = gui.fromHandle(_obj_newObject("edit")); obj.edit328:setParent(obj.layout96); obj.edit328:setLeft(5); obj.edit328:setTop(0); obj.edit328:setWidth(190); obj.edit328:setHeight(25); obj.edit328:setField("Equipamento_1_7"); obj.edit328:setName("edit328"); obj.edit329 = gui.fromHandle(_obj_newObject("edit")); obj.edit329:setParent(obj.layout96); obj.edit329:setLeft(195); obj.edit329:setTop(0); obj.edit329:setWidth(50); obj.edit329:setHeight(25); obj.edit329:setField("Equipamento_Custo_1_7"); obj.edit329:setName("edit329"); obj.edit330 = gui.fromHandle(_obj_newObject("edit")); obj.edit330:setParent(obj.layout96); obj.edit330:setLeft(245); obj.edit330:setTop(0); obj.edit330:setWidth(50); obj.edit330:setHeight(25); obj.edit330:setField("Equipamento_Peso_1_7"); obj.edit330:setName("edit330"); obj.layout97 = gui.fromHandle(_obj_newObject("layout")); obj.layout97:setParent(obj.layout88); obj.layout97:setLeft(0); obj.layout97:setTop(230); obj.layout97:setWidth(300); obj.layout97:setHeight(25); obj.layout97:setName("layout97"); obj.edit331 = gui.fromHandle(_obj_newObject("edit")); obj.edit331:setParent(obj.layout97); obj.edit331:setLeft(5); obj.edit331:setTop(0); obj.edit331:setWidth(190); obj.edit331:setHeight(25); obj.edit331:setField("Equipamento_1_8"); obj.edit331:setName("edit331"); obj.edit332 = gui.fromHandle(_obj_newObject("edit")); obj.edit332:setParent(obj.layout97); obj.edit332:setLeft(195); obj.edit332:setTop(0); obj.edit332:setWidth(50); obj.edit332:setHeight(25); obj.edit332:setField("Equipamento_Custo_1_8"); obj.edit332:setName("edit332"); obj.edit333 = gui.fromHandle(_obj_newObject("edit")); obj.edit333:setParent(obj.layout97); obj.edit333:setLeft(245); obj.edit333:setTop(0); obj.edit333:setWidth(50); obj.edit333:setHeight(25); obj.edit333:setField("Equipamento_Peso_1_8"); obj.edit333:setName("edit333"); obj.layout98 = gui.fromHandle(_obj_newObject("layout")); obj.layout98:setParent(obj.layout88); obj.layout98:setLeft(0); obj.layout98:setTop(255); obj.layout98:setWidth(300); obj.layout98:setHeight(25); obj.layout98:setName("layout98"); obj.edit334 = gui.fromHandle(_obj_newObject("edit")); obj.edit334:setParent(obj.layout98); obj.edit334:setLeft(5); obj.edit334:setTop(0); obj.edit334:setWidth(190); obj.edit334:setHeight(25); obj.edit334:setField("Equipamento_1_9"); obj.edit334:setName("edit334"); obj.edit335 = gui.fromHandle(_obj_newObject("edit")); obj.edit335:setParent(obj.layout98); obj.edit335:setLeft(195); obj.edit335:setTop(0); obj.edit335:setWidth(50); obj.edit335:setHeight(25); obj.edit335:setField("Equipamento_Custo_1_9"); obj.edit335:setName("edit335"); obj.edit336 = gui.fromHandle(_obj_newObject("edit")); obj.edit336:setParent(obj.layout98); obj.edit336:setLeft(245); obj.edit336:setTop(0); obj.edit336:setWidth(50); obj.edit336:setHeight(25); obj.edit336:setField("Equipamento_Peso_1_9"); obj.edit336:setName("edit336"); obj.layout99 = gui.fromHandle(_obj_newObject("layout")); obj.layout99:setParent(obj.layout88); obj.layout99:setLeft(0); obj.layout99:setTop(280); obj.layout99:setWidth(300); obj.layout99:setHeight(25); obj.layout99:setName("layout99"); obj.edit337 = gui.fromHandle(_obj_newObject("edit")); obj.edit337:setParent(obj.layout99); obj.edit337:setLeft(5); obj.edit337:setTop(0); obj.edit337:setWidth(190); obj.edit337:setHeight(25); obj.edit337:setField("Equipamento_1_10"); obj.edit337:setName("edit337"); obj.edit338 = gui.fromHandle(_obj_newObject("edit")); obj.edit338:setParent(obj.layout99); obj.edit338:setLeft(195); obj.edit338:setTop(0); obj.edit338:setWidth(50); obj.edit338:setHeight(25); obj.edit338:setField("Equipamento_Custo_1_10"); obj.edit338:setName("edit338"); obj.edit339 = gui.fromHandle(_obj_newObject("edit")); obj.edit339:setParent(obj.layout99); obj.edit339:setLeft(245); obj.edit339:setTop(0); obj.edit339:setWidth(50); obj.edit339:setHeight(25); obj.edit339:setField("Equipamento_Peso_1_10"); obj.edit339:setName("edit339"); obj.layout100 = gui.fromHandle(_obj_newObject("layout")); obj.layout100:setParent(obj.layout88); obj.layout100:setLeft(0); obj.layout100:setTop(305); obj.layout100:setWidth(300); obj.layout100:setHeight(25); obj.layout100:setName("layout100"); obj.edit340 = gui.fromHandle(_obj_newObject("edit")); obj.edit340:setParent(obj.layout100); obj.edit340:setLeft(5); obj.edit340:setTop(0); obj.edit340:setWidth(190); obj.edit340:setHeight(25); obj.edit340:setField("Equipamento_1_11"); obj.edit340:setName("edit340"); obj.edit341 = gui.fromHandle(_obj_newObject("edit")); obj.edit341:setParent(obj.layout100); obj.edit341:setLeft(195); obj.edit341:setTop(0); obj.edit341:setWidth(50); obj.edit341:setHeight(25); obj.edit341:setField("Equipamento_Custo_1_11"); obj.edit341:setName("edit341"); obj.edit342 = gui.fromHandle(_obj_newObject("edit")); obj.edit342:setParent(obj.layout100); obj.edit342:setLeft(245); obj.edit342:setTop(0); obj.edit342:setWidth(50); obj.edit342:setHeight(25); obj.edit342:setField("Equipamento_Peso_1_11"); obj.edit342:setName("edit342"); obj.layout101 = gui.fromHandle(_obj_newObject("layout")); obj.layout101:setParent(obj.layout88); obj.layout101:setLeft(0); obj.layout101:setTop(330); obj.layout101:setWidth(300); obj.layout101:setHeight(25); obj.layout101:setName("layout101"); obj.edit343 = gui.fromHandle(_obj_newObject("edit")); obj.edit343:setParent(obj.layout101); obj.edit343:setLeft(5); obj.edit343:setTop(0); obj.edit343:setWidth(190); obj.edit343:setHeight(25); obj.edit343:setField("Equipamento_1_12"); obj.edit343:setName("edit343"); obj.edit344 = gui.fromHandle(_obj_newObject("edit")); obj.edit344:setParent(obj.layout101); obj.edit344:setLeft(195); obj.edit344:setTop(0); obj.edit344:setWidth(50); obj.edit344:setHeight(25); obj.edit344:setField("Equipamento_Custo_1_12"); obj.edit344:setName("edit344"); obj.edit345 = gui.fromHandle(_obj_newObject("edit")); obj.edit345:setParent(obj.layout101); obj.edit345:setLeft(245); obj.edit345:setTop(0); obj.edit345:setWidth(50); obj.edit345:setHeight(25); obj.edit345:setField("Equipamento_Peso_1_12"); obj.edit345:setName("edit345"); obj.layout102 = gui.fromHandle(_obj_newObject("layout")); obj.layout102:setParent(obj.layout88); obj.layout102:setLeft(0); obj.layout102:setTop(355); obj.layout102:setWidth(300); obj.layout102:setHeight(25); obj.layout102:setName("layout102"); obj.edit346 = gui.fromHandle(_obj_newObject("edit")); obj.edit346:setParent(obj.layout102); obj.edit346:setLeft(5); obj.edit346:setTop(0); obj.edit346:setWidth(190); obj.edit346:setHeight(25); obj.edit346:setField("Equipamento_1_13"); obj.edit346:setName("edit346"); obj.edit347 = gui.fromHandle(_obj_newObject("edit")); obj.edit347:setParent(obj.layout102); obj.edit347:setLeft(195); obj.edit347:setTop(0); obj.edit347:setWidth(50); obj.edit347:setHeight(25); obj.edit347:setField("Equipamento_Custo_1_13"); obj.edit347:setName("edit347"); obj.edit348 = gui.fromHandle(_obj_newObject("edit")); obj.edit348:setParent(obj.layout102); obj.edit348:setLeft(245); obj.edit348:setTop(0); obj.edit348:setWidth(50); obj.edit348:setHeight(25); obj.edit348:setField("Equipamento_Peso_1_13"); obj.edit348:setName("edit348"); obj.layout103 = gui.fromHandle(_obj_newObject("layout")); obj.layout103:setParent(obj.layout88); obj.layout103:setLeft(0); obj.layout103:setTop(380); obj.layout103:setWidth(300); obj.layout103:setHeight(25); obj.layout103:setName("layout103"); obj.edit349 = gui.fromHandle(_obj_newObject("edit")); obj.edit349:setParent(obj.layout103); obj.edit349:setLeft(5); obj.edit349:setTop(0); obj.edit349:setWidth(190); obj.edit349:setHeight(25); obj.edit349:setField("Equipamento_1_14"); obj.edit349:setName("edit349"); obj.edit350 = gui.fromHandle(_obj_newObject("edit")); obj.edit350:setParent(obj.layout103); obj.edit350:setLeft(195); obj.edit350:setTop(0); obj.edit350:setWidth(50); obj.edit350:setHeight(25); obj.edit350:setField("Equipamento_Custo_1_14"); obj.edit350:setName("edit350"); obj.edit351 = gui.fromHandle(_obj_newObject("edit")); obj.edit351:setParent(obj.layout103); obj.edit351:setLeft(245); obj.edit351:setTop(0); obj.edit351:setWidth(50); obj.edit351:setHeight(25); obj.edit351:setField("Equipamento_Peso_1_14"); obj.edit351:setName("edit351"); obj.layout104 = gui.fromHandle(_obj_newObject("layout")); obj.layout104:setParent(obj.layout88); obj.layout104:setLeft(0); obj.layout104:setTop(405); obj.layout104:setWidth(300); obj.layout104:setHeight(25); obj.layout104:setName("layout104"); obj.edit352 = gui.fromHandle(_obj_newObject("edit")); obj.edit352:setParent(obj.layout104); obj.edit352:setLeft(5); obj.edit352:setTop(0); obj.edit352:setWidth(190); obj.edit352:setHeight(25); obj.edit352:setField("Equipamento_1_15"); obj.edit352:setName("edit352"); obj.edit353 = gui.fromHandle(_obj_newObject("edit")); obj.edit353:setParent(obj.layout104); obj.edit353:setLeft(195); obj.edit353:setTop(0); obj.edit353:setWidth(50); obj.edit353:setHeight(25); obj.edit353:setField("Equipamento_Custo_1_15"); obj.edit353:setName("edit353"); obj.edit354 = gui.fromHandle(_obj_newObject("edit")); obj.edit354:setParent(obj.layout104); obj.edit354:setLeft(245); obj.edit354:setTop(0); obj.edit354:setWidth(50); obj.edit354:setHeight(25); obj.edit354:setField("Equipamento_Peso_1_15"); obj.edit354:setName("edit354"); obj.layout105 = gui.fromHandle(_obj_newObject("layout")); obj.layout105:setParent(obj.layout88); obj.layout105:setLeft(0); obj.layout105:setTop(430); obj.layout105:setWidth(300); obj.layout105:setHeight(25); obj.layout105:setName("layout105"); obj.edit355 = gui.fromHandle(_obj_newObject("edit")); obj.edit355:setParent(obj.layout105); obj.edit355:setLeft(5); obj.edit355:setTop(0); obj.edit355:setWidth(190); obj.edit355:setHeight(25); obj.edit355:setField("Equipamento_1_16"); obj.edit355:setName("edit355"); obj.edit356 = gui.fromHandle(_obj_newObject("edit")); obj.edit356:setParent(obj.layout105); obj.edit356:setLeft(195); obj.edit356:setTop(0); obj.edit356:setWidth(50); obj.edit356:setHeight(25); obj.edit356:setField("Equipamento_Custo_1_16"); obj.edit356:setName("edit356"); obj.edit357 = gui.fromHandle(_obj_newObject("edit")); obj.edit357:setParent(obj.layout105); obj.edit357:setLeft(245); obj.edit357:setTop(0); obj.edit357:setWidth(50); obj.edit357:setHeight(25); obj.edit357:setField("Equipamento_Peso_1_16"); obj.edit357:setName("edit357"); obj.layout106 = gui.fromHandle(_obj_newObject("layout")); obj.layout106:setParent(obj.layout88); obj.layout106:setLeft(0); obj.layout106:setTop(455); obj.layout106:setWidth(300); obj.layout106:setHeight(25); obj.layout106:setName("layout106"); obj.edit358 = gui.fromHandle(_obj_newObject("edit")); obj.edit358:setParent(obj.layout106); obj.edit358:setLeft(5); obj.edit358:setTop(0); obj.edit358:setWidth(190); obj.edit358:setHeight(25); obj.edit358:setField("Equipamento_1_17"); obj.edit358:setName("edit358"); obj.edit359 = gui.fromHandle(_obj_newObject("edit")); obj.edit359:setParent(obj.layout106); obj.edit359:setLeft(195); obj.edit359:setTop(0); obj.edit359:setWidth(50); obj.edit359:setHeight(25); obj.edit359:setField("Equipamento_Custo_1_17"); obj.edit359:setName("edit359"); obj.edit360 = gui.fromHandle(_obj_newObject("edit")); obj.edit360:setParent(obj.layout106); obj.edit360:setLeft(245); obj.edit360:setTop(0); obj.edit360:setWidth(50); obj.edit360:setHeight(25); obj.edit360:setField("Equipamento_Peso_1_17"); obj.edit360:setName("edit360"); obj.layout107 = gui.fromHandle(_obj_newObject("layout")); obj.layout107:setParent(obj.layout88); obj.layout107:setLeft(0); obj.layout107:setTop(480); obj.layout107:setWidth(300); obj.layout107:setHeight(25); obj.layout107:setName("layout107"); obj.edit361 = gui.fromHandle(_obj_newObject("edit")); obj.edit361:setParent(obj.layout107); obj.edit361:setLeft(5); obj.edit361:setTop(0); obj.edit361:setWidth(190); obj.edit361:setHeight(25); obj.edit361:setField("Equipamento_1_18"); obj.edit361:setName("edit361"); obj.edit362 = gui.fromHandle(_obj_newObject("edit")); obj.edit362:setParent(obj.layout107); obj.edit362:setLeft(195); obj.edit362:setTop(0); obj.edit362:setWidth(50); obj.edit362:setHeight(25); obj.edit362:setField("Equipamento_Custo_1_18"); obj.edit362:setName("edit362"); obj.edit363 = gui.fromHandle(_obj_newObject("edit")); obj.edit363:setParent(obj.layout107); obj.edit363:setLeft(245); obj.edit363:setTop(0); obj.edit363:setWidth(50); obj.edit363:setHeight(25); obj.edit363:setField("Equipamento_Peso_1_18"); obj.edit363:setName("edit363"); obj.layout108 = gui.fromHandle(_obj_newObject("layout")); obj.layout108:setParent(obj.layout88); obj.layout108:setLeft(0); obj.layout108:setTop(505); obj.layout108:setWidth(300); obj.layout108:setHeight(25); obj.layout108:setName("layout108"); obj.edit364 = gui.fromHandle(_obj_newObject("edit")); obj.edit364:setParent(obj.layout108); obj.edit364:setLeft(5); obj.edit364:setTop(0); obj.edit364:setWidth(190); obj.edit364:setHeight(25); obj.edit364:setField("Equipamento_1_19"); obj.edit364:setName("edit364"); obj.edit365 = gui.fromHandle(_obj_newObject("edit")); obj.edit365:setParent(obj.layout108); obj.edit365:setLeft(195); obj.edit365:setTop(0); obj.edit365:setWidth(50); obj.edit365:setHeight(25); obj.edit365:setField("Equipamento_Custo_1_19"); obj.edit365:setName("edit365"); obj.edit366 = gui.fromHandle(_obj_newObject("edit")); obj.edit366:setParent(obj.layout108); obj.edit366:setLeft(245); obj.edit366:setTop(0); obj.edit366:setWidth(50); obj.edit366:setHeight(25); obj.edit366:setField("Equipamento_Peso_1_19"); obj.edit366:setName("edit366"); obj.layout109 = gui.fromHandle(_obj_newObject("layout")); obj.layout109:setParent(obj.layout88); obj.layout109:setLeft(0); obj.layout109:setTop(530); obj.layout109:setWidth(300); obj.layout109:setHeight(25); obj.layout109:setName("layout109"); obj.edit367 = gui.fromHandle(_obj_newObject("edit")); obj.edit367:setParent(obj.layout109); obj.edit367:setLeft(5); obj.edit367:setTop(0); obj.edit367:setWidth(190); obj.edit367:setHeight(25); obj.edit367:setField("Equipamento_1_20"); obj.edit367:setName("edit367"); obj.edit368 = gui.fromHandle(_obj_newObject("edit")); obj.edit368:setParent(obj.layout109); obj.edit368:setLeft(195); obj.edit368:setTop(0); obj.edit368:setWidth(50); obj.edit368:setHeight(25); obj.edit368:setField("Equipamento_Custo_1_20"); obj.edit368:setName("edit368"); obj.edit369 = gui.fromHandle(_obj_newObject("edit")); obj.edit369:setParent(obj.layout109); obj.edit369:setLeft(245); obj.edit369:setTop(0); obj.edit369:setWidth(50); obj.edit369:setHeight(25); obj.edit369:setField("Equipamento_Peso_1_20"); obj.edit369:setName("edit369"); obj.layout110 = gui.fromHandle(_obj_newObject("layout")); obj.layout110:setParent(obj.layout88); obj.layout110:setLeft(0); obj.layout110:setTop(555); obj.layout110:setWidth(300); obj.layout110:setHeight(25); obj.layout110:setName("layout110"); obj.edit370 = gui.fromHandle(_obj_newObject("edit")); obj.edit370:setParent(obj.layout110); obj.edit370:setLeft(5); obj.edit370:setTop(0); obj.edit370:setWidth(190); obj.edit370:setHeight(25); obj.edit370:setField("Equipamento_1_21"); obj.edit370:setName("edit370"); obj.edit371 = gui.fromHandle(_obj_newObject("edit")); obj.edit371:setParent(obj.layout110); obj.edit371:setLeft(195); obj.edit371:setTop(0); obj.edit371:setWidth(50); obj.edit371:setHeight(25); obj.edit371:setField("Equipamento_Custo_1_21"); obj.edit371:setName("edit371"); obj.edit372 = gui.fromHandle(_obj_newObject("edit")); obj.edit372:setParent(obj.layout110); obj.edit372:setLeft(245); obj.edit372:setTop(0); obj.edit372:setWidth(50); obj.edit372:setHeight(25); obj.edit372:setField("Equipamento_Peso_1_21"); obj.edit372:setName("edit372"); obj.layout111 = gui.fromHandle(_obj_newObject("layout")); obj.layout111:setParent(obj.layout88); obj.layout111:setLeft(0); obj.layout111:setTop(580); obj.layout111:setWidth(300); obj.layout111:setHeight(25); obj.layout111:setName("layout111"); obj.edit373 = gui.fromHandle(_obj_newObject("edit")); obj.edit373:setParent(obj.layout111); obj.edit373:setLeft(5); obj.edit373:setTop(0); obj.edit373:setWidth(190); obj.edit373:setHeight(25); obj.edit373:setField("Equipamento_1_22"); obj.edit373:setName("edit373"); obj.edit374 = gui.fromHandle(_obj_newObject("edit")); obj.edit374:setParent(obj.layout111); obj.edit374:setLeft(195); obj.edit374:setTop(0); obj.edit374:setWidth(50); obj.edit374:setHeight(25); obj.edit374:setField("Equipamento_Custo_1_22"); obj.edit374:setName("edit374"); obj.edit375 = gui.fromHandle(_obj_newObject("edit")); obj.edit375:setParent(obj.layout111); obj.edit375:setLeft(245); obj.edit375:setTop(0); obj.edit375:setWidth(50); obj.edit375:setHeight(25); obj.edit375:setField("Equipamento_Peso_1_22"); obj.edit375:setName("edit375"); obj.layout112 = gui.fromHandle(_obj_newObject("layout")); obj.layout112:setParent(obj.scrollBox3); obj.layout112:setLeft(310); obj.layout112:setTop(0); obj.layout112:setWidth(300); obj.layout112:setHeight(610); obj.layout112:setName("layout112"); obj.rectangle18 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle18:setParent(obj.layout112); obj.rectangle18:setAlign("client"); obj.rectangle18:setColor("black"); obj.rectangle18:setXradius(5); obj.rectangle18:setYradius(5); obj.rectangle18:setCornerType("round"); obj.rectangle18:setName("rectangle18"); obj.label134 = gui.fromHandle(_obj_newObject("label")); obj.label134:setParent(obj.layout112); obj.label134:setLeft(0); obj.label134:setTop(5); obj.label134:setWidth(300); obj.label134:setHeight(20); obj.label134:setText("EQUIPAMENTOS"); obj.label134:setHorzTextAlign("center"); obj.label134:setName("label134"); obj.layout113 = gui.fromHandle(_obj_newObject("layout")); obj.layout113:setParent(obj.layout112); obj.layout113:setLeft(0); obj.layout113:setTop(30); obj.layout113:setWidth(300); obj.layout113:setHeight(25); obj.layout113:setName("layout113"); obj.label135 = gui.fromHandle(_obj_newObject("label")); obj.label135:setParent(obj.layout113); obj.label135:setLeft(5); obj.label135:setTop(0); obj.label135:setWidth(190); obj.label135:setHeight(25); obj.label135:setHorzTextAlign("center"); obj.label135:setText("Item"); obj.label135:setName("label135"); obj.label136 = gui.fromHandle(_obj_newObject("label")); obj.label136:setParent(obj.layout113); obj.label136:setLeft(195); obj.label136:setTop(0); obj.label136:setWidth(50); obj.label136:setHeight(25); obj.label136:setHorzTextAlign("center"); obj.label136:setText("Custo"); obj.label136:setName("label136"); obj.label137 = gui.fromHandle(_obj_newObject("label")); obj.label137:setParent(obj.layout113); obj.label137:setLeft(245); obj.label137:setTop(0); obj.label137:setWidth(50); obj.label137:setHeight(25); obj.label137:setHorzTextAlign("center"); obj.label137:setText("Peso"); obj.label137:setName("label137"); obj.layout114 = gui.fromHandle(_obj_newObject("layout")); obj.layout114:setParent(obj.layout112); obj.layout114:setLeft(0); obj.layout114:setTop(55); obj.layout114:setWidth(300); obj.layout114:setHeight(25); obj.layout114:setName("layout114"); obj.edit376 = gui.fromHandle(_obj_newObject("edit")); obj.edit376:setParent(obj.layout114); obj.edit376:setLeft(5); obj.edit376:setTop(0); obj.edit376:setWidth(190); obj.edit376:setHeight(25); obj.edit376:setField("Equipamento_2_1"); obj.edit376:setName("edit376"); obj.edit377 = gui.fromHandle(_obj_newObject("edit")); obj.edit377:setParent(obj.layout114); obj.edit377:setLeft(195); obj.edit377:setTop(0); obj.edit377:setWidth(50); obj.edit377:setHeight(25); obj.edit377:setField("Equipamento_Custo_2_1"); obj.edit377:setName("edit377"); obj.edit378 = gui.fromHandle(_obj_newObject("edit")); obj.edit378:setParent(obj.layout114); obj.edit378:setLeft(245); obj.edit378:setTop(0); obj.edit378:setWidth(50); obj.edit378:setHeight(25); obj.edit378:setField("Equipamento_Peso_2_1"); obj.edit378:setName("edit378"); obj.layout115 = gui.fromHandle(_obj_newObject("layout")); obj.layout115:setParent(obj.layout112); obj.layout115:setLeft(0); obj.layout115:setTop(80); obj.layout115:setWidth(300); obj.layout115:setHeight(25); obj.layout115:setName("layout115"); obj.edit379 = gui.fromHandle(_obj_newObject("edit")); obj.edit379:setParent(obj.layout115); obj.edit379:setLeft(5); obj.edit379:setTop(0); obj.edit379:setWidth(190); obj.edit379:setHeight(25); obj.edit379:setField("Equipamento_2_2"); obj.edit379:setName("edit379"); obj.edit380 = gui.fromHandle(_obj_newObject("edit")); obj.edit380:setParent(obj.layout115); obj.edit380:setLeft(195); obj.edit380:setTop(0); obj.edit380:setWidth(50); obj.edit380:setHeight(25); obj.edit380:setField("Equipamento_Custo_2_2"); obj.edit380:setName("edit380"); obj.edit381 = gui.fromHandle(_obj_newObject("edit")); obj.edit381:setParent(obj.layout115); obj.edit381:setLeft(245); obj.edit381:setTop(0); obj.edit381:setWidth(50); obj.edit381:setHeight(25); obj.edit381:setField("Equipamento_Peso_2_2"); obj.edit381:setName("edit381"); obj.layout116 = gui.fromHandle(_obj_newObject("layout")); obj.layout116:setParent(obj.layout112); obj.layout116:setLeft(0); obj.layout116:setTop(105); obj.layout116:setWidth(300); obj.layout116:setHeight(25); obj.layout116:setName("layout116"); obj.edit382 = gui.fromHandle(_obj_newObject("edit")); obj.edit382:setParent(obj.layout116); obj.edit382:setLeft(5); obj.edit382:setTop(0); obj.edit382:setWidth(190); obj.edit382:setHeight(25); obj.edit382:setField("Equipamento_2_3"); obj.edit382:setName("edit382"); obj.edit383 = gui.fromHandle(_obj_newObject("edit")); obj.edit383:setParent(obj.layout116); obj.edit383:setLeft(195); obj.edit383:setTop(0); obj.edit383:setWidth(50); obj.edit383:setHeight(25); obj.edit383:setField("Equipamento_Custo_2_3"); obj.edit383:setName("edit383"); obj.edit384 = gui.fromHandle(_obj_newObject("edit")); obj.edit384:setParent(obj.layout116); obj.edit384:setLeft(245); obj.edit384:setTop(0); obj.edit384:setWidth(50); obj.edit384:setHeight(25); obj.edit384:setField("Equipamento_Peso_2_3"); obj.edit384:setName("edit384"); obj.layout117 = gui.fromHandle(_obj_newObject("layout")); obj.layout117:setParent(obj.layout112); obj.layout117:setLeft(0); obj.layout117:setTop(130); obj.layout117:setWidth(300); obj.layout117:setHeight(25); obj.layout117:setName("layout117"); obj.edit385 = gui.fromHandle(_obj_newObject("edit")); obj.edit385:setParent(obj.layout117); obj.edit385:setLeft(5); obj.edit385:setTop(0); obj.edit385:setWidth(190); obj.edit385:setHeight(25); obj.edit385:setField("Equipamento_2_4"); obj.edit385:setName("edit385"); obj.edit386 = gui.fromHandle(_obj_newObject("edit")); obj.edit386:setParent(obj.layout117); obj.edit386:setLeft(195); obj.edit386:setTop(0); obj.edit386:setWidth(50); obj.edit386:setHeight(25); obj.edit386:setField("Equipamento_Custo_2_4"); obj.edit386:setName("edit386"); obj.edit387 = gui.fromHandle(_obj_newObject("edit")); obj.edit387:setParent(obj.layout117); obj.edit387:setLeft(245); obj.edit387:setTop(0); obj.edit387:setWidth(50); obj.edit387:setHeight(25); obj.edit387:setField("Equipamento_Peso_2_4"); obj.edit387:setName("edit387"); obj.layout118 = gui.fromHandle(_obj_newObject("layout")); obj.layout118:setParent(obj.layout112); obj.layout118:setLeft(0); obj.layout118:setTop(155); obj.layout118:setWidth(300); obj.layout118:setHeight(25); obj.layout118:setName("layout118"); obj.edit388 = gui.fromHandle(_obj_newObject("edit")); obj.edit388:setParent(obj.layout118); obj.edit388:setLeft(5); obj.edit388:setTop(0); obj.edit388:setWidth(190); obj.edit388:setHeight(25); obj.edit388:setField("Equipamento_2_5"); obj.edit388:setName("edit388"); obj.edit389 = gui.fromHandle(_obj_newObject("edit")); obj.edit389:setParent(obj.layout118); obj.edit389:setLeft(195); obj.edit389:setTop(0); obj.edit389:setWidth(50); obj.edit389:setHeight(25); obj.edit389:setField("Equipamento_Custo_2_5"); obj.edit389:setName("edit389"); obj.edit390 = gui.fromHandle(_obj_newObject("edit")); obj.edit390:setParent(obj.layout118); obj.edit390:setLeft(245); obj.edit390:setTop(0); obj.edit390:setWidth(50); obj.edit390:setHeight(25); obj.edit390:setField("Equipamento_Peso_2_5"); obj.edit390:setName("edit390"); obj.layout119 = gui.fromHandle(_obj_newObject("layout")); obj.layout119:setParent(obj.layout112); obj.layout119:setLeft(0); obj.layout119:setTop(180); obj.layout119:setWidth(300); obj.layout119:setHeight(25); obj.layout119:setName("layout119"); obj.edit391 = gui.fromHandle(_obj_newObject("edit")); obj.edit391:setParent(obj.layout119); obj.edit391:setLeft(5); obj.edit391:setTop(0); obj.edit391:setWidth(190); obj.edit391:setHeight(25); obj.edit391:setField("Equipamento_2_6"); obj.edit391:setName("edit391"); obj.edit392 = gui.fromHandle(_obj_newObject("edit")); obj.edit392:setParent(obj.layout119); obj.edit392:setLeft(195); obj.edit392:setTop(0); obj.edit392:setWidth(50); obj.edit392:setHeight(25); obj.edit392:setField("Equipamento_Custo_2_6"); obj.edit392:setName("edit392"); obj.edit393 = gui.fromHandle(_obj_newObject("edit")); obj.edit393:setParent(obj.layout119); obj.edit393:setLeft(245); obj.edit393:setTop(0); obj.edit393:setWidth(50); obj.edit393:setHeight(25); obj.edit393:setField("Equipamento_Peso_2_6"); obj.edit393:setName("edit393"); obj.layout120 = gui.fromHandle(_obj_newObject("layout")); obj.layout120:setParent(obj.layout112); obj.layout120:setLeft(0); obj.layout120:setTop(205); obj.layout120:setWidth(300); obj.layout120:setHeight(25); obj.layout120:setName("layout120"); obj.edit394 = gui.fromHandle(_obj_newObject("edit")); obj.edit394:setParent(obj.layout120); obj.edit394:setLeft(5); obj.edit394:setTop(0); obj.edit394:setWidth(190); obj.edit394:setHeight(25); obj.edit394:setField("Equipamento_2_7"); obj.edit394:setName("edit394"); obj.edit395 = gui.fromHandle(_obj_newObject("edit")); obj.edit395:setParent(obj.layout120); obj.edit395:setLeft(195); obj.edit395:setTop(0); obj.edit395:setWidth(50); obj.edit395:setHeight(25); obj.edit395:setField("Equipamento_Custo_2_7"); obj.edit395:setName("edit395"); obj.edit396 = gui.fromHandle(_obj_newObject("edit")); obj.edit396:setParent(obj.layout120); obj.edit396:setLeft(245); obj.edit396:setTop(0); obj.edit396:setWidth(50); obj.edit396:setHeight(25); obj.edit396:setField("Equipamento_Peso_2_7"); obj.edit396:setName("edit396"); obj.layout121 = gui.fromHandle(_obj_newObject("layout")); obj.layout121:setParent(obj.layout112); obj.layout121:setLeft(0); obj.layout121:setTop(230); obj.layout121:setWidth(300); obj.layout121:setHeight(25); obj.layout121:setName("layout121"); obj.edit397 = gui.fromHandle(_obj_newObject("edit")); obj.edit397:setParent(obj.layout121); obj.edit397:setLeft(5); obj.edit397:setTop(0); obj.edit397:setWidth(190); obj.edit397:setHeight(25); obj.edit397:setField("Equipamento_2_8"); obj.edit397:setName("edit397"); obj.edit398 = gui.fromHandle(_obj_newObject("edit")); obj.edit398:setParent(obj.layout121); obj.edit398:setLeft(195); obj.edit398:setTop(0); obj.edit398:setWidth(50); obj.edit398:setHeight(25); obj.edit398:setField("Equipamento_Custo_2_8"); obj.edit398:setName("edit398"); obj.edit399 = gui.fromHandle(_obj_newObject("edit")); obj.edit399:setParent(obj.layout121); obj.edit399:setLeft(245); obj.edit399:setTop(0); obj.edit399:setWidth(50); obj.edit399:setHeight(25); obj.edit399:setField("Equipamento_Peso_2_8"); obj.edit399:setName("edit399"); obj.layout122 = gui.fromHandle(_obj_newObject("layout")); obj.layout122:setParent(obj.layout112); obj.layout122:setLeft(0); obj.layout122:setTop(255); obj.layout122:setWidth(300); obj.layout122:setHeight(25); obj.layout122:setName("layout122"); obj.edit400 = gui.fromHandle(_obj_newObject("edit")); obj.edit400:setParent(obj.layout122); obj.edit400:setLeft(5); obj.edit400:setTop(0); obj.edit400:setWidth(190); obj.edit400:setHeight(25); obj.edit400:setField("Equipamento_2_9"); obj.edit400:setName("edit400"); obj.edit401 = gui.fromHandle(_obj_newObject("edit")); obj.edit401:setParent(obj.layout122); obj.edit401:setLeft(195); obj.edit401:setTop(0); obj.edit401:setWidth(50); obj.edit401:setHeight(25); obj.edit401:setField("Equipamento_Custo_2_9"); obj.edit401:setName("edit401"); obj.edit402 = gui.fromHandle(_obj_newObject("edit")); obj.edit402:setParent(obj.layout122); obj.edit402:setLeft(245); obj.edit402:setTop(0); obj.edit402:setWidth(50); obj.edit402:setHeight(25); obj.edit402:setField("Equipamento_Peso_2_9"); obj.edit402:setName("edit402"); obj.layout123 = gui.fromHandle(_obj_newObject("layout")); obj.layout123:setParent(obj.layout112); obj.layout123:setLeft(0); obj.layout123:setTop(280); obj.layout123:setWidth(300); obj.layout123:setHeight(25); obj.layout123:setName("layout123"); obj.edit403 = gui.fromHandle(_obj_newObject("edit")); obj.edit403:setParent(obj.layout123); obj.edit403:setLeft(5); obj.edit403:setTop(0); obj.edit403:setWidth(190); obj.edit403:setHeight(25); obj.edit403:setField("Equipamento_2_10"); obj.edit403:setName("edit403"); obj.edit404 = gui.fromHandle(_obj_newObject("edit")); obj.edit404:setParent(obj.layout123); obj.edit404:setLeft(195); obj.edit404:setTop(0); obj.edit404:setWidth(50); obj.edit404:setHeight(25); obj.edit404:setField("Equipamento_Custo_2_10"); obj.edit404:setName("edit404"); obj.edit405 = gui.fromHandle(_obj_newObject("edit")); obj.edit405:setParent(obj.layout123); obj.edit405:setLeft(245); obj.edit405:setTop(0); obj.edit405:setWidth(50); obj.edit405:setHeight(25); obj.edit405:setField("Equipamento_Peso_2_10"); obj.edit405:setName("edit405"); obj.layout124 = gui.fromHandle(_obj_newObject("layout")); obj.layout124:setParent(obj.layout112); obj.layout124:setLeft(0); obj.layout124:setTop(305); obj.layout124:setWidth(300); obj.layout124:setHeight(25); obj.layout124:setName("layout124"); obj.edit406 = gui.fromHandle(_obj_newObject("edit")); obj.edit406:setParent(obj.layout124); obj.edit406:setLeft(5); obj.edit406:setTop(0); obj.edit406:setWidth(190); obj.edit406:setHeight(25); obj.edit406:setField("Equipamento_2_11"); obj.edit406:setName("edit406"); obj.edit407 = gui.fromHandle(_obj_newObject("edit")); obj.edit407:setParent(obj.layout124); obj.edit407:setLeft(195); obj.edit407:setTop(0); obj.edit407:setWidth(50); obj.edit407:setHeight(25); obj.edit407:setField("Equipamento_Custo_2_11"); obj.edit407:setName("edit407"); obj.edit408 = gui.fromHandle(_obj_newObject("edit")); obj.edit408:setParent(obj.layout124); obj.edit408:setLeft(245); obj.edit408:setTop(0); obj.edit408:setWidth(50); obj.edit408:setHeight(25); obj.edit408:setField("Equipamento_Peso_2_11"); obj.edit408:setName("edit408"); obj.layout125 = gui.fromHandle(_obj_newObject("layout")); obj.layout125:setParent(obj.layout112); obj.layout125:setLeft(0); obj.layout125:setTop(330); obj.layout125:setWidth(300); obj.layout125:setHeight(25); obj.layout125:setName("layout125"); obj.edit409 = gui.fromHandle(_obj_newObject("edit")); obj.edit409:setParent(obj.layout125); obj.edit409:setLeft(5); obj.edit409:setTop(0); obj.edit409:setWidth(190); obj.edit409:setHeight(25); obj.edit409:setField("Equipamento_2_12"); obj.edit409:setName("edit409"); obj.edit410 = gui.fromHandle(_obj_newObject("edit")); obj.edit410:setParent(obj.layout125); obj.edit410:setLeft(195); obj.edit410:setTop(0); obj.edit410:setWidth(50); obj.edit410:setHeight(25); obj.edit410:setField("Equipamento_Custo_2_12"); obj.edit410:setName("edit410"); obj.edit411 = gui.fromHandle(_obj_newObject("edit")); obj.edit411:setParent(obj.layout125); obj.edit411:setLeft(245); obj.edit411:setTop(0); obj.edit411:setWidth(50); obj.edit411:setHeight(25); obj.edit411:setField("Equipamento_Peso_2_12"); obj.edit411:setName("edit411"); obj.layout126 = gui.fromHandle(_obj_newObject("layout")); obj.layout126:setParent(obj.layout112); obj.layout126:setLeft(0); obj.layout126:setTop(355); obj.layout126:setWidth(300); obj.layout126:setHeight(25); obj.layout126:setName("layout126"); obj.edit412 = gui.fromHandle(_obj_newObject("edit")); obj.edit412:setParent(obj.layout126); obj.edit412:setLeft(5); obj.edit412:setTop(0); obj.edit412:setWidth(190); obj.edit412:setHeight(25); obj.edit412:setField("Equipamento_2_13"); obj.edit412:setName("edit412"); obj.edit413 = gui.fromHandle(_obj_newObject("edit")); obj.edit413:setParent(obj.layout126); obj.edit413:setLeft(195); obj.edit413:setTop(0); obj.edit413:setWidth(50); obj.edit413:setHeight(25); obj.edit413:setField("Equipamento_Custo_2_13"); obj.edit413:setName("edit413"); obj.edit414 = gui.fromHandle(_obj_newObject("edit")); obj.edit414:setParent(obj.layout126); obj.edit414:setLeft(245); obj.edit414:setTop(0); obj.edit414:setWidth(50); obj.edit414:setHeight(25); obj.edit414:setField("Equipamento_Peso_2_13"); obj.edit414:setName("edit414"); obj.layout127 = gui.fromHandle(_obj_newObject("layout")); obj.layout127:setParent(obj.layout112); obj.layout127:setLeft(0); obj.layout127:setTop(380); obj.layout127:setWidth(300); obj.layout127:setHeight(25); obj.layout127:setName("layout127"); obj.edit415 = gui.fromHandle(_obj_newObject("edit")); obj.edit415:setParent(obj.layout127); obj.edit415:setLeft(5); obj.edit415:setTop(0); obj.edit415:setWidth(190); obj.edit415:setHeight(25); obj.edit415:setField("Equipamento_2_14"); obj.edit415:setName("edit415"); obj.edit416 = gui.fromHandle(_obj_newObject("edit")); obj.edit416:setParent(obj.layout127); obj.edit416:setLeft(195); obj.edit416:setTop(0); obj.edit416:setWidth(50); obj.edit416:setHeight(25); obj.edit416:setField("Equipamento_Custo_2_14"); obj.edit416:setName("edit416"); obj.edit417 = gui.fromHandle(_obj_newObject("edit")); obj.edit417:setParent(obj.layout127); obj.edit417:setLeft(245); obj.edit417:setTop(0); obj.edit417:setWidth(50); obj.edit417:setHeight(25); obj.edit417:setField("Equipamento_Peso_2_14"); obj.edit417:setName("edit417"); obj.layout128 = gui.fromHandle(_obj_newObject("layout")); obj.layout128:setParent(obj.layout112); obj.layout128:setLeft(0); obj.layout128:setTop(405); obj.layout128:setWidth(300); obj.layout128:setHeight(25); obj.layout128:setName("layout128"); obj.edit418 = gui.fromHandle(_obj_newObject("edit")); obj.edit418:setParent(obj.layout128); obj.edit418:setLeft(5); obj.edit418:setTop(0); obj.edit418:setWidth(190); obj.edit418:setHeight(25); obj.edit418:setField("Equipamento_2_15"); obj.edit418:setName("edit418"); obj.edit419 = gui.fromHandle(_obj_newObject("edit")); obj.edit419:setParent(obj.layout128); obj.edit419:setLeft(195); obj.edit419:setTop(0); obj.edit419:setWidth(50); obj.edit419:setHeight(25); obj.edit419:setField("Equipamento_Custo_2_15"); obj.edit419:setName("edit419"); obj.edit420 = gui.fromHandle(_obj_newObject("edit")); obj.edit420:setParent(obj.layout128); obj.edit420:setLeft(245); obj.edit420:setTop(0); obj.edit420:setWidth(50); obj.edit420:setHeight(25); obj.edit420:setField("Equipamento_Peso_2_15"); obj.edit420:setName("edit420"); obj.layout129 = gui.fromHandle(_obj_newObject("layout")); obj.layout129:setParent(obj.layout112); obj.layout129:setLeft(0); obj.layout129:setTop(430); obj.layout129:setWidth(300); obj.layout129:setHeight(25); obj.layout129:setName("layout129"); obj.edit421 = gui.fromHandle(_obj_newObject("edit")); obj.edit421:setParent(obj.layout129); obj.edit421:setLeft(5); obj.edit421:setTop(0); obj.edit421:setWidth(190); obj.edit421:setHeight(25); obj.edit421:setField("Equipamento_2_16"); obj.edit421:setName("edit421"); obj.edit422 = gui.fromHandle(_obj_newObject("edit")); obj.edit422:setParent(obj.layout129); obj.edit422:setLeft(195); obj.edit422:setTop(0); obj.edit422:setWidth(50); obj.edit422:setHeight(25); obj.edit422:setField("Equipamento_Custo_2_16"); obj.edit422:setName("edit422"); obj.edit423 = gui.fromHandle(_obj_newObject("edit")); obj.edit423:setParent(obj.layout129); obj.edit423:setLeft(245); obj.edit423:setTop(0); obj.edit423:setWidth(50); obj.edit423:setHeight(25); obj.edit423:setField("Equipamento_Peso_2_16"); obj.edit423:setName("edit423"); obj.layout130 = gui.fromHandle(_obj_newObject("layout")); obj.layout130:setParent(obj.layout112); obj.layout130:setLeft(0); obj.layout130:setTop(455); obj.layout130:setWidth(300); obj.layout130:setHeight(25); obj.layout130:setName("layout130"); obj.edit424 = gui.fromHandle(_obj_newObject("edit")); obj.edit424:setParent(obj.layout130); obj.edit424:setLeft(5); obj.edit424:setTop(0); obj.edit424:setWidth(190); obj.edit424:setHeight(25); obj.edit424:setField("Equipamento_2_17"); obj.edit424:setName("edit424"); obj.edit425 = gui.fromHandle(_obj_newObject("edit")); obj.edit425:setParent(obj.layout130); obj.edit425:setLeft(195); obj.edit425:setTop(0); obj.edit425:setWidth(50); obj.edit425:setHeight(25); obj.edit425:setField("Equipamento_Custo_2_17"); obj.edit425:setName("edit425"); obj.edit426 = gui.fromHandle(_obj_newObject("edit")); obj.edit426:setParent(obj.layout130); obj.edit426:setLeft(245); obj.edit426:setTop(0); obj.edit426:setWidth(50); obj.edit426:setHeight(25); obj.edit426:setField("Equipamento_Peso_2_17"); obj.edit426:setName("edit426"); obj.layout131 = gui.fromHandle(_obj_newObject("layout")); obj.layout131:setParent(obj.layout112); obj.layout131:setLeft(0); obj.layout131:setTop(480); obj.layout131:setWidth(300); obj.layout131:setHeight(25); obj.layout131:setName("layout131"); obj.edit427 = gui.fromHandle(_obj_newObject("edit")); obj.edit427:setParent(obj.layout131); obj.edit427:setLeft(5); obj.edit427:setTop(0); obj.edit427:setWidth(190); obj.edit427:setHeight(25); obj.edit427:setField("Equipamento_2_18"); obj.edit427:setName("edit427"); obj.edit428 = gui.fromHandle(_obj_newObject("edit")); obj.edit428:setParent(obj.layout131); obj.edit428:setLeft(195); obj.edit428:setTop(0); obj.edit428:setWidth(50); obj.edit428:setHeight(25); obj.edit428:setField("Equipamento_Custo_2_18"); obj.edit428:setName("edit428"); obj.edit429 = gui.fromHandle(_obj_newObject("edit")); obj.edit429:setParent(obj.layout131); obj.edit429:setLeft(245); obj.edit429:setTop(0); obj.edit429:setWidth(50); obj.edit429:setHeight(25); obj.edit429:setField("Equipamento_Peso_2_18"); obj.edit429:setName("edit429"); obj.layout132 = gui.fromHandle(_obj_newObject("layout")); obj.layout132:setParent(obj.layout112); obj.layout132:setLeft(0); obj.layout132:setTop(505); obj.layout132:setWidth(300); obj.layout132:setHeight(25); obj.layout132:setName("layout132"); obj.edit430 = gui.fromHandle(_obj_newObject("edit")); obj.edit430:setParent(obj.layout132); obj.edit430:setLeft(5); obj.edit430:setTop(0); obj.edit430:setWidth(190); obj.edit430:setHeight(25); obj.edit430:setField("Equipamento_2_19"); obj.edit430:setName("edit430"); obj.edit431 = gui.fromHandle(_obj_newObject("edit")); obj.edit431:setParent(obj.layout132); obj.edit431:setLeft(195); obj.edit431:setTop(0); obj.edit431:setWidth(50); obj.edit431:setHeight(25); obj.edit431:setField("Equipamento_Custo_2_19"); obj.edit431:setName("edit431"); obj.edit432 = gui.fromHandle(_obj_newObject("edit")); obj.edit432:setParent(obj.layout132); obj.edit432:setLeft(245); obj.edit432:setTop(0); obj.edit432:setWidth(50); obj.edit432:setHeight(25); obj.edit432:setField("Equipamento_Peso_2_19"); obj.edit432:setName("edit432"); obj.layout133 = gui.fromHandle(_obj_newObject("layout")); obj.layout133:setParent(obj.layout112); obj.layout133:setLeft(0); obj.layout133:setTop(530); obj.layout133:setWidth(300); obj.layout133:setHeight(25); obj.layout133:setName("layout133"); obj.edit433 = gui.fromHandle(_obj_newObject("edit")); obj.edit433:setParent(obj.layout133); obj.edit433:setLeft(5); obj.edit433:setTop(0); obj.edit433:setWidth(190); obj.edit433:setHeight(25); obj.edit433:setField("Equipamento_2_20"); obj.edit433:setName("edit433"); obj.edit434 = gui.fromHandle(_obj_newObject("edit")); obj.edit434:setParent(obj.layout133); obj.edit434:setLeft(195); obj.edit434:setTop(0); obj.edit434:setWidth(50); obj.edit434:setHeight(25); obj.edit434:setField("Equipamento_Custo_2_20"); obj.edit434:setName("edit434"); obj.edit435 = gui.fromHandle(_obj_newObject("edit")); obj.edit435:setParent(obj.layout133); obj.edit435:setLeft(245); obj.edit435:setTop(0); obj.edit435:setWidth(50); obj.edit435:setHeight(25); obj.edit435:setField("Equipamento_Peso_2_20"); obj.edit435:setName("edit435"); obj.layout134 = gui.fromHandle(_obj_newObject("layout")); obj.layout134:setParent(obj.layout112); obj.layout134:setLeft(0); obj.layout134:setTop(555); obj.layout134:setWidth(300); obj.layout134:setHeight(25); obj.layout134:setName("layout134"); obj.edit436 = gui.fromHandle(_obj_newObject("edit")); obj.edit436:setParent(obj.layout134); obj.edit436:setLeft(5); obj.edit436:setTop(0); obj.edit436:setWidth(190); obj.edit436:setHeight(25); obj.edit436:setField("Equipamento_2_21"); obj.edit436:setName("edit436"); obj.edit437 = gui.fromHandle(_obj_newObject("edit")); obj.edit437:setParent(obj.layout134); obj.edit437:setLeft(195); obj.edit437:setTop(0); obj.edit437:setWidth(50); obj.edit437:setHeight(25); obj.edit437:setField("Equipamento_Custo_2_21"); obj.edit437:setName("edit437"); obj.edit438 = gui.fromHandle(_obj_newObject("edit")); obj.edit438:setParent(obj.layout134); obj.edit438:setLeft(245); obj.edit438:setTop(0); obj.edit438:setWidth(50); obj.edit438:setHeight(25); obj.edit438:setField("Equipamento_Peso_2_21"); obj.edit438:setName("edit438"); obj.layout135 = gui.fromHandle(_obj_newObject("layout")); obj.layout135:setParent(obj.layout112); obj.layout135:setLeft(0); obj.layout135:setTop(580); obj.layout135:setWidth(300); obj.layout135:setHeight(25); obj.layout135:setName("layout135"); obj.edit439 = gui.fromHandle(_obj_newObject("edit")); obj.edit439:setParent(obj.layout135); obj.edit439:setLeft(5); obj.edit439:setTop(0); obj.edit439:setWidth(190); obj.edit439:setHeight(25); obj.edit439:setField("Equipamento_2_22"); obj.edit439:setName("edit439"); obj.edit440 = gui.fromHandle(_obj_newObject("edit")); obj.edit440:setParent(obj.layout135); obj.edit440:setLeft(195); obj.edit440:setTop(0); obj.edit440:setWidth(50); obj.edit440:setHeight(25); obj.edit440:setField("Equipamento_Custo_2_22"); obj.edit440:setName("edit440"); obj.edit441 = gui.fromHandle(_obj_newObject("edit")); obj.edit441:setParent(obj.layout135); obj.edit441:setLeft(245); obj.edit441:setTop(0); obj.edit441:setWidth(50); obj.edit441:setHeight(25); obj.edit441:setField("Equipamento_Peso_2_22"); obj.edit441:setName("edit441"); obj.layout136 = gui.fromHandle(_obj_newObject("layout")); obj.layout136:setParent(obj.scrollBox3); obj.layout136:setLeft(620); obj.layout136:setTop(0); obj.layout136:setWidth(300); obj.layout136:setHeight(610); obj.layout136:setName("layout136"); obj.rectangle19 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle19:setParent(obj.layout136); obj.rectangle19:setAlign("client"); obj.rectangle19:setColor("black"); obj.rectangle19:setXradius(5); obj.rectangle19:setYradius(5); obj.rectangle19:setCornerType("round"); obj.rectangle19:setName("rectangle19"); obj.label138 = gui.fromHandle(_obj_newObject("label")); obj.label138:setParent(obj.layout136); obj.label138:setLeft(0); obj.label138:setTop(5); obj.label138:setWidth(300); obj.label138:setHeight(20); obj.label138:setText("EQUIPAMENTOS"); obj.label138:setHorzTextAlign("center"); obj.label138:setName("label138"); obj.layout137 = gui.fromHandle(_obj_newObject("layout")); obj.layout137:setParent(obj.layout136); obj.layout137:setLeft(0); obj.layout137:setTop(30); obj.layout137:setWidth(300); obj.layout137:setHeight(25); obj.layout137:setName("layout137"); obj.label139 = gui.fromHandle(_obj_newObject("label")); obj.label139:setParent(obj.layout137); obj.label139:setLeft(5); obj.label139:setTop(0); obj.label139:setWidth(190); obj.label139:setHeight(25); obj.label139:setHorzTextAlign("center"); obj.label139:setText("Item"); obj.label139:setName("label139"); obj.label140 = gui.fromHandle(_obj_newObject("label")); obj.label140:setParent(obj.layout137); obj.label140:setLeft(195); obj.label140:setTop(0); obj.label140:setWidth(50); obj.label140:setHeight(25); obj.label140:setHorzTextAlign("center"); obj.label140:setText("Custo"); obj.label140:setName("label140"); obj.label141 = gui.fromHandle(_obj_newObject("label")); obj.label141:setParent(obj.layout137); obj.label141:setLeft(245); obj.label141:setTop(0); obj.label141:setWidth(50); obj.label141:setHeight(25); obj.label141:setHorzTextAlign("center"); obj.label141:setText("Peso"); obj.label141:setName("label141"); obj.layout138 = gui.fromHandle(_obj_newObject("layout")); obj.layout138:setParent(obj.layout136); obj.layout138:setLeft(0); obj.layout138:setTop(55); obj.layout138:setWidth(300); obj.layout138:setHeight(25); obj.layout138:setName("layout138"); obj.edit442 = gui.fromHandle(_obj_newObject("edit")); obj.edit442:setParent(obj.layout138); obj.edit442:setLeft(5); obj.edit442:setTop(0); obj.edit442:setWidth(190); obj.edit442:setHeight(25); obj.edit442:setField("Equipamento_3_1"); obj.edit442:setName("edit442"); obj.edit443 = gui.fromHandle(_obj_newObject("edit")); obj.edit443:setParent(obj.layout138); obj.edit443:setLeft(195); obj.edit443:setTop(0); obj.edit443:setWidth(50); obj.edit443:setHeight(25); obj.edit443:setField("Equipamento_Custo_3_1"); obj.edit443:setName("edit443"); obj.edit444 = gui.fromHandle(_obj_newObject("edit")); obj.edit444:setParent(obj.layout138); obj.edit444:setLeft(245); obj.edit444:setTop(0); obj.edit444:setWidth(50); obj.edit444:setHeight(25); obj.edit444:setField("Equipamento_Peso_3_1"); obj.edit444:setName("edit444"); obj.layout139 = gui.fromHandle(_obj_newObject("layout")); obj.layout139:setParent(obj.layout136); obj.layout139:setLeft(0); obj.layout139:setTop(80); obj.layout139:setWidth(300); obj.layout139:setHeight(25); obj.layout139:setName("layout139"); obj.edit445 = gui.fromHandle(_obj_newObject("edit")); obj.edit445:setParent(obj.layout139); obj.edit445:setLeft(5); obj.edit445:setTop(0); obj.edit445:setWidth(190); obj.edit445:setHeight(25); obj.edit445:setField("Equipamento_3_2"); obj.edit445:setName("edit445"); obj.edit446 = gui.fromHandle(_obj_newObject("edit")); obj.edit446:setParent(obj.layout139); obj.edit446:setLeft(195); obj.edit446:setTop(0); obj.edit446:setWidth(50); obj.edit446:setHeight(25); obj.edit446:setField("Equipamento_Custo_3_2"); obj.edit446:setName("edit446"); obj.edit447 = gui.fromHandle(_obj_newObject("edit")); obj.edit447:setParent(obj.layout139); obj.edit447:setLeft(245); obj.edit447:setTop(0); obj.edit447:setWidth(50); obj.edit447:setHeight(25); obj.edit447:setField("Equipamento_Peso_3_2"); obj.edit447:setName("edit447"); obj.layout140 = gui.fromHandle(_obj_newObject("layout")); obj.layout140:setParent(obj.layout136); obj.layout140:setLeft(0); obj.layout140:setTop(105); obj.layout140:setWidth(300); obj.layout140:setHeight(25); obj.layout140:setName("layout140"); obj.edit448 = gui.fromHandle(_obj_newObject("edit")); obj.edit448:setParent(obj.layout140); obj.edit448:setLeft(5); obj.edit448:setTop(0); obj.edit448:setWidth(190); obj.edit448:setHeight(25); obj.edit448:setField("Equipamento_3_3"); obj.edit448:setName("edit448"); obj.edit449 = gui.fromHandle(_obj_newObject("edit")); obj.edit449:setParent(obj.layout140); obj.edit449:setLeft(195); obj.edit449:setTop(0); obj.edit449:setWidth(50); obj.edit449:setHeight(25); obj.edit449:setField("Equipamento_Custo_3_3"); obj.edit449:setName("edit449"); obj.edit450 = gui.fromHandle(_obj_newObject("edit")); obj.edit450:setParent(obj.layout140); obj.edit450:setLeft(245); obj.edit450:setTop(0); obj.edit450:setWidth(50); obj.edit450:setHeight(25); obj.edit450:setField("Equipamento_Peso_3_3"); obj.edit450:setName("edit450"); obj.layout141 = gui.fromHandle(_obj_newObject("layout")); obj.layout141:setParent(obj.layout136); obj.layout141:setLeft(0); obj.layout141:setTop(130); obj.layout141:setWidth(300); obj.layout141:setHeight(25); obj.layout141:setName("layout141"); obj.edit451 = gui.fromHandle(_obj_newObject("edit")); obj.edit451:setParent(obj.layout141); obj.edit451:setLeft(5); obj.edit451:setTop(0); obj.edit451:setWidth(190); obj.edit451:setHeight(25); obj.edit451:setField("Equipamento_3_4"); obj.edit451:setName("edit451"); obj.edit452 = gui.fromHandle(_obj_newObject("edit")); obj.edit452:setParent(obj.layout141); obj.edit452:setLeft(195); obj.edit452:setTop(0); obj.edit452:setWidth(50); obj.edit452:setHeight(25); obj.edit452:setField("Equipamento_Custo_3_4"); obj.edit452:setName("edit452"); obj.edit453 = gui.fromHandle(_obj_newObject("edit")); obj.edit453:setParent(obj.layout141); obj.edit453:setLeft(245); obj.edit453:setTop(0); obj.edit453:setWidth(50); obj.edit453:setHeight(25); obj.edit453:setField("Equipamento_Peso_3_4"); obj.edit453:setName("edit453"); obj.layout142 = gui.fromHandle(_obj_newObject("layout")); obj.layout142:setParent(obj.layout136); obj.layout142:setLeft(0); obj.layout142:setTop(155); obj.layout142:setWidth(300); obj.layout142:setHeight(25); obj.layout142:setName("layout142"); obj.edit454 = gui.fromHandle(_obj_newObject("edit")); obj.edit454:setParent(obj.layout142); obj.edit454:setLeft(5); obj.edit454:setTop(0); obj.edit454:setWidth(190); obj.edit454:setHeight(25); obj.edit454:setField("Equipamento_3_5"); obj.edit454:setName("edit454"); obj.edit455 = gui.fromHandle(_obj_newObject("edit")); obj.edit455:setParent(obj.layout142); obj.edit455:setLeft(195); obj.edit455:setTop(0); obj.edit455:setWidth(50); obj.edit455:setHeight(25); obj.edit455:setField("Equipamento_Custo_3_5"); obj.edit455:setName("edit455"); obj.edit456 = gui.fromHandle(_obj_newObject("edit")); obj.edit456:setParent(obj.layout142); obj.edit456:setLeft(245); obj.edit456:setTop(0); obj.edit456:setWidth(50); obj.edit456:setHeight(25); obj.edit456:setField("Equipamento_Peso_3_5"); obj.edit456:setName("edit456"); obj.layout143 = gui.fromHandle(_obj_newObject("layout")); obj.layout143:setParent(obj.layout136); obj.layout143:setLeft(0); obj.layout143:setTop(180); obj.layout143:setWidth(300); obj.layout143:setHeight(25); obj.layout143:setName("layout143"); obj.edit457 = gui.fromHandle(_obj_newObject("edit")); obj.edit457:setParent(obj.layout143); obj.edit457:setLeft(5); obj.edit457:setTop(0); obj.edit457:setWidth(190); obj.edit457:setHeight(25); obj.edit457:setField("Equipamento_3_6"); obj.edit457:setName("edit457"); obj.edit458 = gui.fromHandle(_obj_newObject("edit")); obj.edit458:setParent(obj.layout143); obj.edit458:setLeft(195); obj.edit458:setTop(0); obj.edit458:setWidth(50); obj.edit458:setHeight(25); obj.edit458:setField("Equipamento_Custo_3_6"); obj.edit458:setName("edit458"); obj.edit459 = gui.fromHandle(_obj_newObject("edit")); obj.edit459:setParent(obj.layout143); obj.edit459:setLeft(245); obj.edit459:setTop(0); obj.edit459:setWidth(50); obj.edit459:setHeight(25); obj.edit459:setField("Equipamento_Peso_3_6"); obj.edit459:setName("edit459"); obj.layout144 = gui.fromHandle(_obj_newObject("layout")); obj.layout144:setParent(obj.layout136); obj.layout144:setLeft(0); obj.layout144:setTop(205); obj.layout144:setWidth(300); obj.layout144:setHeight(25); obj.layout144:setName("layout144"); obj.edit460 = gui.fromHandle(_obj_newObject("edit")); obj.edit460:setParent(obj.layout144); obj.edit460:setLeft(5); obj.edit460:setTop(0); obj.edit460:setWidth(190); obj.edit460:setHeight(25); obj.edit460:setField("Equipamento_3_7"); obj.edit460:setName("edit460"); obj.edit461 = gui.fromHandle(_obj_newObject("edit")); obj.edit461:setParent(obj.layout144); obj.edit461:setLeft(195); obj.edit461:setTop(0); obj.edit461:setWidth(50); obj.edit461:setHeight(25); obj.edit461:setField("Equipamento_Custo_3_7"); obj.edit461:setName("edit461"); obj.edit462 = gui.fromHandle(_obj_newObject("edit")); obj.edit462:setParent(obj.layout144); obj.edit462:setLeft(245); obj.edit462:setTop(0); obj.edit462:setWidth(50); obj.edit462:setHeight(25); obj.edit462:setField("Equipamento_Peso_3_7"); obj.edit462:setName("edit462"); obj.layout145 = gui.fromHandle(_obj_newObject("layout")); obj.layout145:setParent(obj.layout136); obj.layout145:setLeft(0); obj.layout145:setTop(230); obj.layout145:setWidth(300); obj.layout145:setHeight(25); obj.layout145:setName("layout145"); obj.edit463 = gui.fromHandle(_obj_newObject("edit")); obj.edit463:setParent(obj.layout145); obj.edit463:setLeft(5); obj.edit463:setTop(0); obj.edit463:setWidth(190); obj.edit463:setHeight(25); obj.edit463:setField("Equipamento_3_8"); obj.edit463:setName("edit463"); obj.edit464 = gui.fromHandle(_obj_newObject("edit")); obj.edit464:setParent(obj.layout145); obj.edit464:setLeft(195); obj.edit464:setTop(0); obj.edit464:setWidth(50); obj.edit464:setHeight(25); obj.edit464:setField("Equipamento_Custo_3_8"); obj.edit464:setName("edit464"); obj.edit465 = gui.fromHandle(_obj_newObject("edit")); obj.edit465:setParent(obj.layout145); obj.edit465:setLeft(245); obj.edit465:setTop(0); obj.edit465:setWidth(50); obj.edit465:setHeight(25); obj.edit465:setField("Equipamento_Peso_3_8"); obj.edit465:setName("edit465"); obj.layout146 = gui.fromHandle(_obj_newObject("layout")); obj.layout146:setParent(obj.layout136); obj.layout146:setLeft(0); obj.layout146:setTop(255); obj.layout146:setWidth(300); obj.layout146:setHeight(25); obj.layout146:setName("layout146"); obj.edit466 = gui.fromHandle(_obj_newObject("edit")); obj.edit466:setParent(obj.layout146); obj.edit466:setLeft(5); obj.edit466:setTop(0); obj.edit466:setWidth(190); obj.edit466:setHeight(25); obj.edit466:setField("Equipamento_3_9"); obj.edit466:setName("edit466"); obj.edit467 = gui.fromHandle(_obj_newObject("edit")); obj.edit467:setParent(obj.layout146); obj.edit467:setLeft(195); obj.edit467:setTop(0); obj.edit467:setWidth(50); obj.edit467:setHeight(25); obj.edit467:setField("Equipamento_Custo_3_9"); obj.edit467:setName("edit467"); obj.edit468 = gui.fromHandle(_obj_newObject("edit")); obj.edit468:setParent(obj.layout146); obj.edit468:setLeft(245); obj.edit468:setTop(0); obj.edit468:setWidth(50); obj.edit468:setHeight(25); obj.edit468:setField("Equipamento_Peso_3_9"); obj.edit468:setName("edit468"); obj.layout147 = gui.fromHandle(_obj_newObject("layout")); obj.layout147:setParent(obj.layout136); obj.layout147:setLeft(0); obj.layout147:setTop(280); obj.layout147:setWidth(300); obj.layout147:setHeight(25); obj.layout147:setName("layout147"); obj.edit469 = gui.fromHandle(_obj_newObject("edit")); obj.edit469:setParent(obj.layout147); obj.edit469:setLeft(5); obj.edit469:setTop(0); obj.edit469:setWidth(190); obj.edit469:setHeight(25); obj.edit469:setField("Equipamento_3_10"); obj.edit469:setName("edit469"); obj.edit470 = gui.fromHandle(_obj_newObject("edit")); obj.edit470:setParent(obj.layout147); obj.edit470:setLeft(195); obj.edit470:setTop(0); obj.edit470:setWidth(50); obj.edit470:setHeight(25); obj.edit470:setField("Equipamento_Custo_3_10"); obj.edit470:setName("edit470"); obj.edit471 = gui.fromHandle(_obj_newObject("edit")); obj.edit471:setParent(obj.layout147); obj.edit471:setLeft(245); obj.edit471:setTop(0); obj.edit471:setWidth(50); obj.edit471:setHeight(25); obj.edit471:setField("Equipamento_Peso_3_10"); obj.edit471:setName("edit471"); obj.layout148 = gui.fromHandle(_obj_newObject("layout")); obj.layout148:setParent(obj.layout136); obj.layout148:setLeft(0); obj.layout148:setTop(305); obj.layout148:setWidth(300); obj.layout148:setHeight(25); obj.layout148:setName("layout148"); obj.edit472 = gui.fromHandle(_obj_newObject("edit")); obj.edit472:setParent(obj.layout148); obj.edit472:setLeft(5); obj.edit472:setTop(0); obj.edit472:setWidth(190); obj.edit472:setHeight(25); obj.edit472:setField("Equipamento_3_11"); obj.edit472:setName("edit472"); obj.edit473 = gui.fromHandle(_obj_newObject("edit")); obj.edit473:setParent(obj.layout148); obj.edit473:setLeft(195); obj.edit473:setTop(0); obj.edit473:setWidth(50); obj.edit473:setHeight(25); obj.edit473:setField("Equipamento_Custo_3_11"); obj.edit473:setName("edit473"); obj.edit474 = gui.fromHandle(_obj_newObject("edit")); obj.edit474:setParent(obj.layout148); obj.edit474:setLeft(245); obj.edit474:setTop(0); obj.edit474:setWidth(50); obj.edit474:setHeight(25); obj.edit474:setField("Equipamento_Peso_3_11"); obj.edit474:setName("edit474"); obj.layout149 = gui.fromHandle(_obj_newObject("layout")); obj.layout149:setParent(obj.layout136); obj.layout149:setLeft(0); obj.layout149:setTop(330); obj.layout149:setWidth(300); obj.layout149:setHeight(25); obj.layout149:setName("layout149"); obj.edit475 = gui.fromHandle(_obj_newObject("edit")); obj.edit475:setParent(obj.layout149); obj.edit475:setLeft(5); obj.edit475:setTop(0); obj.edit475:setWidth(190); obj.edit475:setHeight(25); obj.edit475:setField("Equipamento_3_12"); obj.edit475:setName("edit475"); obj.edit476 = gui.fromHandle(_obj_newObject("edit")); obj.edit476:setParent(obj.layout149); obj.edit476:setLeft(195); obj.edit476:setTop(0); obj.edit476:setWidth(50); obj.edit476:setHeight(25); obj.edit476:setField("Equipamento_Custo_3_12"); obj.edit476:setName("edit476"); obj.edit477 = gui.fromHandle(_obj_newObject("edit")); obj.edit477:setParent(obj.layout149); obj.edit477:setLeft(245); obj.edit477:setTop(0); obj.edit477:setWidth(50); obj.edit477:setHeight(25); obj.edit477:setField("Equipamento_Peso_3_12"); obj.edit477:setName("edit477"); obj.layout150 = gui.fromHandle(_obj_newObject("layout")); obj.layout150:setParent(obj.layout136); obj.layout150:setLeft(0); obj.layout150:setTop(355); obj.layout150:setWidth(300); obj.layout150:setHeight(25); obj.layout150:setName("layout150"); obj.edit478 = gui.fromHandle(_obj_newObject("edit")); obj.edit478:setParent(obj.layout150); obj.edit478:setLeft(5); obj.edit478:setTop(0); obj.edit478:setWidth(190); obj.edit478:setHeight(25); obj.edit478:setField("Equipamento_3_13"); obj.edit478:setName("edit478"); obj.edit479 = gui.fromHandle(_obj_newObject("edit")); obj.edit479:setParent(obj.layout150); obj.edit479:setLeft(195); obj.edit479:setTop(0); obj.edit479:setWidth(50); obj.edit479:setHeight(25); obj.edit479:setField("Equipamento_Custo_3_13"); obj.edit479:setName("edit479"); obj.edit480 = gui.fromHandle(_obj_newObject("edit")); obj.edit480:setParent(obj.layout150); obj.edit480:setLeft(245); obj.edit480:setTop(0); obj.edit480:setWidth(50); obj.edit480:setHeight(25); obj.edit480:setField("Equipamento_Peso_3_13"); obj.edit480:setName("edit480"); obj.layout151 = gui.fromHandle(_obj_newObject("layout")); obj.layout151:setParent(obj.layout136); obj.layout151:setLeft(0); obj.layout151:setTop(380); obj.layout151:setWidth(300); obj.layout151:setHeight(25); obj.layout151:setName("layout151"); obj.edit481 = gui.fromHandle(_obj_newObject("edit")); obj.edit481:setParent(obj.layout151); obj.edit481:setLeft(5); obj.edit481:setTop(0); obj.edit481:setWidth(190); obj.edit481:setHeight(25); obj.edit481:setField("Equipamento_3_14"); obj.edit481:setName("edit481"); obj.edit482 = gui.fromHandle(_obj_newObject("edit")); obj.edit482:setParent(obj.layout151); obj.edit482:setLeft(195); obj.edit482:setTop(0); obj.edit482:setWidth(50); obj.edit482:setHeight(25); obj.edit482:setField("Equipamento_Custo_3_14"); obj.edit482:setName("edit482"); obj.edit483 = gui.fromHandle(_obj_newObject("edit")); obj.edit483:setParent(obj.layout151); obj.edit483:setLeft(245); obj.edit483:setTop(0); obj.edit483:setWidth(50); obj.edit483:setHeight(25); obj.edit483:setField("Equipamento_Peso_3_14"); obj.edit483:setName("edit483"); obj.layout152 = gui.fromHandle(_obj_newObject("layout")); obj.layout152:setParent(obj.layout136); obj.layout152:setLeft(0); obj.layout152:setTop(405); obj.layout152:setWidth(300); obj.layout152:setHeight(25); obj.layout152:setName("layout152"); obj.edit484 = gui.fromHandle(_obj_newObject("edit")); obj.edit484:setParent(obj.layout152); obj.edit484:setLeft(5); obj.edit484:setTop(0); obj.edit484:setWidth(190); obj.edit484:setHeight(25); obj.edit484:setField("Equipamento_3_15"); obj.edit484:setName("edit484"); obj.edit485 = gui.fromHandle(_obj_newObject("edit")); obj.edit485:setParent(obj.layout152); obj.edit485:setLeft(195); obj.edit485:setTop(0); obj.edit485:setWidth(50); obj.edit485:setHeight(25); obj.edit485:setField("Equipamento_Custo_3_15"); obj.edit485:setName("edit485"); obj.edit486 = gui.fromHandle(_obj_newObject("edit")); obj.edit486:setParent(obj.layout152); obj.edit486:setLeft(245); obj.edit486:setTop(0); obj.edit486:setWidth(50); obj.edit486:setHeight(25); obj.edit486:setField("Equipamento_Peso_3_15"); obj.edit486:setName("edit486"); obj.layout153 = gui.fromHandle(_obj_newObject("layout")); obj.layout153:setParent(obj.layout136); obj.layout153:setLeft(0); obj.layout153:setTop(430); obj.layout153:setWidth(300); obj.layout153:setHeight(25); obj.layout153:setName("layout153"); obj.edit487 = gui.fromHandle(_obj_newObject("edit")); obj.edit487:setParent(obj.layout153); obj.edit487:setLeft(5); obj.edit487:setTop(0); obj.edit487:setWidth(190); obj.edit487:setHeight(25); obj.edit487:setField("Equipamento_3_16"); obj.edit487:setName("edit487"); obj.edit488 = gui.fromHandle(_obj_newObject("edit")); obj.edit488:setParent(obj.layout153); obj.edit488:setLeft(195); obj.edit488:setTop(0); obj.edit488:setWidth(50); obj.edit488:setHeight(25); obj.edit488:setField("Equipamento_Custo_3_16"); obj.edit488:setName("edit488"); obj.edit489 = gui.fromHandle(_obj_newObject("edit")); obj.edit489:setParent(obj.layout153); obj.edit489:setLeft(245); obj.edit489:setTop(0); obj.edit489:setWidth(50); obj.edit489:setHeight(25); obj.edit489:setField("Equipamento_Peso_3_16"); obj.edit489:setName("edit489"); obj.layout154 = gui.fromHandle(_obj_newObject("layout")); obj.layout154:setParent(obj.layout136); obj.layout154:setLeft(0); obj.layout154:setTop(455); obj.layout154:setWidth(300); obj.layout154:setHeight(25); obj.layout154:setName("layout154"); obj.edit490 = gui.fromHandle(_obj_newObject("edit")); obj.edit490:setParent(obj.layout154); obj.edit490:setLeft(5); obj.edit490:setTop(0); obj.edit490:setWidth(190); obj.edit490:setHeight(25); obj.edit490:setField("Equipamento_3_17"); obj.edit490:setName("edit490"); obj.edit491 = gui.fromHandle(_obj_newObject("edit")); obj.edit491:setParent(obj.layout154); obj.edit491:setLeft(195); obj.edit491:setTop(0); obj.edit491:setWidth(50); obj.edit491:setHeight(25); obj.edit491:setField("Equipamento_Custo_3_17"); obj.edit491:setName("edit491"); obj.edit492 = gui.fromHandle(_obj_newObject("edit")); obj.edit492:setParent(obj.layout154); obj.edit492:setLeft(245); obj.edit492:setTop(0); obj.edit492:setWidth(50); obj.edit492:setHeight(25); obj.edit492:setField("Equipamento_Peso_3_17"); obj.edit492:setName("edit492"); obj.layout155 = gui.fromHandle(_obj_newObject("layout")); obj.layout155:setParent(obj.layout136); obj.layout155:setLeft(0); obj.layout155:setTop(480); obj.layout155:setWidth(300); obj.layout155:setHeight(25); obj.layout155:setName("layout155"); obj.edit493 = gui.fromHandle(_obj_newObject("edit")); obj.edit493:setParent(obj.layout155); obj.edit493:setLeft(5); obj.edit493:setTop(0); obj.edit493:setWidth(190); obj.edit493:setHeight(25); obj.edit493:setField("Equipamento_3_18"); obj.edit493:setName("edit493"); obj.edit494 = gui.fromHandle(_obj_newObject("edit")); obj.edit494:setParent(obj.layout155); obj.edit494:setLeft(195); obj.edit494:setTop(0); obj.edit494:setWidth(50); obj.edit494:setHeight(25); obj.edit494:setField("Equipamento_Custo_3_18"); obj.edit494:setName("edit494"); obj.edit495 = gui.fromHandle(_obj_newObject("edit")); obj.edit495:setParent(obj.layout155); obj.edit495:setLeft(245); obj.edit495:setTop(0); obj.edit495:setWidth(50); obj.edit495:setHeight(25); obj.edit495:setField("Equipamento_Peso_3_18"); obj.edit495:setName("edit495"); obj.layout156 = gui.fromHandle(_obj_newObject("layout")); obj.layout156:setParent(obj.layout136); obj.layout156:setLeft(0); obj.layout156:setTop(505); obj.layout156:setWidth(300); obj.layout156:setHeight(25); obj.layout156:setName("layout156"); obj.edit496 = gui.fromHandle(_obj_newObject("edit")); obj.edit496:setParent(obj.layout156); obj.edit496:setLeft(5); obj.edit496:setTop(0); obj.edit496:setWidth(190); obj.edit496:setHeight(25); obj.edit496:setField("Equipamento_3_19"); obj.edit496:setName("edit496"); obj.edit497 = gui.fromHandle(_obj_newObject("edit")); obj.edit497:setParent(obj.layout156); obj.edit497:setLeft(195); obj.edit497:setTop(0); obj.edit497:setWidth(50); obj.edit497:setHeight(25); obj.edit497:setField("Equipamento_Custo_3_19"); obj.edit497:setName("edit497"); obj.edit498 = gui.fromHandle(_obj_newObject("edit")); obj.edit498:setParent(obj.layout156); obj.edit498:setLeft(245); obj.edit498:setTop(0); obj.edit498:setWidth(50); obj.edit498:setHeight(25); obj.edit498:setField("Equipamento_Peso_3_19"); obj.edit498:setName("edit498"); obj.layout157 = gui.fromHandle(_obj_newObject("layout")); obj.layout157:setParent(obj.layout136); obj.layout157:setLeft(0); obj.layout157:setTop(530); obj.layout157:setWidth(300); obj.layout157:setHeight(25); obj.layout157:setName("layout157"); obj.edit499 = gui.fromHandle(_obj_newObject("edit")); obj.edit499:setParent(obj.layout157); obj.edit499:setLeft(5); obj.edit499:setTop(0); obj.edit499:setWidth(190); obj.edit499:setHeight(25); obj.edit499:setField("Equipamento_3_20"); obj.edit499:setName("edit499"); obj.edit500 = gui.fromHandle(_obj_newObject("edit")); obj.edit500:setParent(obj.layout157); obj.edit500:setLeft(195); obj.edit500:setTop(0); obj.edit500:setWidth(50); obj.edit500:setHeight(25); obj.edit500:setField("Equipamento_Custo_3_20"); obj.edit500:setName("edit500"); obj.edit501 = gui.fromHandle(_obj_newObject("edit")); obj.edit501:setParent(obj.layout157); obj.edit501:setLeft(245); obj.edit501:setTop(0); obj.edit501:setWidth(50); obj.edit501:setHeight(25); obj.edit501:setField("Equipamento_Peso_3_20"); obj.edit501:setName("edit501"); obj.layout158 = gui.fromHandle(_obj_newObject("layout")); obj.layout158:setParent(obj.layout136); obj.layout158:setLeft(0); obj.layout158:setTop(555); obj.layout158:setWidth(300); obj.layout158:setHeight(25); obj.layout158:setName("layout158"); obj.edit502 = gui.fromHandle(_obj_newObject("edit")); obj.edit502:setParent(obj.layout158); obj.edit502:setLeft(5); obj.edit502:setTop(0); obj.edit502:setWidth(190); obj.edit502:setHeight(25); obj.edit502:setField("Equipamento_3_21"); obj.edit502:setName("edit502"); obj.edit503 = gui.fromHandle(_obj_newObject("edit")); obj.edit503:setParent(obj.layout158); obj.edit503:setLeft(195); obj.edit503:setTop(0); obj.edit503:setWidth(50); obj.edit503:setHeight(25); obj.edit503:setField("Equipamento_Custo_3_21"); obj.edit503:setName("edit503"); obj.edit504 = gui.fromHandle(_obj_newObject("edit")); obj.edit504:setParent(obj.layout158); obj.edit504:setLeft(245); obj.edit504:setTop(0); obj.edit504:setWidth(50); obj.edit504:setHeight(25); obj.edit504:setField("Equipamento_Peso_3_21"); obj.edit504:setName("edit504"); obj.layout159 = gui.fromHandle(_obj_newObject("layout")); obj.layout159:setParent(obj.layout136); obj.layout159:setLeft(0); obj.layout159:setTop(580); obj.layout159:setWidth(300); obj.layout159:setHeight(25); obj.layout159:setName("layout159"); obj.edit505 = gui.fromHandle(_obj_newObject("edit")); obj.edit505:setParent(obj.layout159); obj.edit505:setLeft(5); obj.edit505:setTop(0); obj.edit505:setWidth(190); obj.edit505:setHeight(25); obj.edit505:setField("Equipamento_3_22"); obj.edit505:setName("edit505"); obj.edit506 = gui.fromHandle(_obj_newObject("edit")); obj.edit506:setParent(obj.layout159); obj.edit506:setLeft(195); obj.edit506:setTop(0); obj.edit506:setWidth(50); obj.edit506:setHeight(25); obj.edit506:setField("Equipamento_Custo_3_22"); obj.edit506:setName("edit506"); obj.edit507 = gui.fromHandle(_obj_newObject("edit")); obj.edit507:setParent(obj.layout159); obj.edit507:setLeft(245); obj.edit507:setTop(0); obj.edit507:setWidth(50); obj.edit507:setHeight(25); obj.edit507:setField("Equipamento_Peso_3_22"); obj.edit507:setName("edit507"); obj.layout160 = gui.fromHandle(_obj_newObject("layout")); obj.layout160:setParent(obj.scrollBox3); obj.layout160:setLeft(930); obj.layout160:setTop(0); obj.layout160:setWidth(300); obj.layout160:setHeight(115); obj.layout160:setName("layout160"); obj.rectangle20 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle20:setParent(obj.layout160); obj.rectangle20:setAlign("client"); obj.rectangle20:setColor("black"); obj.rectangle20:setXradius(5); obj.rectangle20:setYradius(5); obj.rectangle20:setCornerType("round"); obj.rectangle20:setName("rectangle20"); obj.label142 = gui.fromHandle(_obj_newObject("label")); obj.label142:setParent(obj.layout160); obj.label142:setLeft(0); obj.label142:setTop(5); obj.label142:setWidth(300); obj.label142:setHeight(20); obj.label142:setText("DINHEIRO E CARGA"); obj.label142:setHorzTextAlign("center"); obj.label142:setName("label142"); obj.label143 = gui.fromHandle(_obj_newObject("label")); obj.label143:setParent(obj.layout160); obj.label143:setLeft(5); obj.label143:setTop(55); obj.label143:setWidth(60); obj.label143:setHeight(20); obj.label143:setText("CARGA"); obj.label143:setHorzTextAlign("trailing"); obj.label143:setName("label143"); obj.rectangle21 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle21:setParent(obj.layout160); obj.rectangle21:setLeft(70); obj.rectangle21:setTop(50); obj.rectangle21:setWidth(40); obj.rectangle21:setHeight(25); obj.rectangle21:setColor("Black"); obj.rectangle21:setStrokeColor("white"); obj.rectangle21:setStrokeSize(1); obj.rectangle21:setName("rectangle21"); obj.label144 = gui.fromHandle(_obj_newObject("label")); obj.label144:setParent(obj.layout160); obj.label144:setLeft(70); obj.label144:setTop(50); obj.label144:setWidth(40); obj.label144:setHeight(25); obj.label144:setField("Peso_Total"); obj.label144:setHorzTextAlign("center"); obj.label144:setName("label144"); obj.label145 = gui.fromHandle(_obj_newObject("label")); obj.label145:setParent(obj.layout160); obj.label145:setLeft(120); obj.label145:setTop(55); obj.label145:setWidth(60); obj.label145:setHeight(20); obj.label145:setText("GASTOS"); obj.label145:setHorzTextAlign("trailing"); obj.label145:setName("label145"); obj.rectangle22 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle22:setParent(obj.layout160); obj.rectangle22:setLeft(185); obj.rectangle22:setTop(50); obj.rectangle22:setWidth(40); obj.rectangle22:setHeight(25); obj.rectangle22:setColor("Black"); obj.rectangle22:setStrokeColor("white"); obj.rectangle22:setStrokeSize(1); obj.rectangle22:setName("rectangle22"); obj.label146 = gui.fromHandle(_obj_newObject("label")); obj.label146:setParent(obj.layout160); obj.label146:setLeft(185); obj.label146:setTop(50); obj.label146:setWidth(40); obj.label146:setHeight(25); obj.label146:setField("Custo_Total"); obj.label146:setHorzTextAlign("center"); obj.label146:setName("label146"); obj.label147 = gui.fromHandle(_obj_newObject("label")); obj.label147:setParent(obj.layout160); obj.label147:setLeft(5); obj.label147:setTop(90); obj.label147:setWidth(20); obj.label147:setHeight(20); obj.label147:setText("PL"); obj.label147:setHorzTextAlign("trailing"); obj.label147:setName("label147"); obj.edit508 = gui.fromHandle(_obj_newObject("edit")); obj.edit508:setParent(obj.layout160); obj.edit508:setLeft(30); obj.edit508:setTop(85); obj.edit508:setWidth(40); obj.edit508:setHeight(25); obj.edit508:setField("PL"); obj.edit508:setName("edit508"); obj.label148 = gui.fromHandle(_obj_newObject("label")); obj.label148:setParent(obj.layout160); obj.label148:setLeft(70); obj.label148:setTop(90); obj.label148:setWidth(20); obj.label148:setHeight(20); obj.label148:setText("PO"); obj.label148:setHorzTextAlign("trailing"); obj.label148:setName("label148"); obj.edit509 = gui.fromHandle(_obj_newObject("edit")); obj.edit509:setParent(obj.layout160); obj.edit509:setLeft(95); obj.edit509:setTop(85); obj.edit509:setWidth(40); obj.edit509:setHeight(25); obj.edit509:setField("PO"); obj.edit509:setName("edit509"); obj.label149 = gui.fromHandle(_obj_newObject("label")); obj.label149:setParent(obj.layout160); obj.label149:setLeft(135); obj.label149:setTop(90); obj.label149:setWidth(20); obj.label149:setHeight(20); obj.label149:setText("PP"); obj.label149:setHorzTextAlign("trailing"); obj.label149:setName("label149"); obj.edit510 = gui.fromHandle(_obj_newObject("edit")); obj.edit510:setParent(obj.layout160); obj.edit510:setLeft(160); obj.edit510:setTop(85); obj.edit510:setWidth(40); obj.edit510:setHeight(25); obj.edit510:setField("PP"); obj.edit510:setName("edit510"); obj.label150 = gui.fromHandle(_obj_newObject("label")); obj.label150:setParent(obj.layout160); obj.label150:setLeft(200); obj.label150:setTop(90); obj.label150:setWidth(20); obj.label150:setHeight(20); obj.label150:setText("PC"); obj.label150:setHorzTextAlign("trailing"); obj.label150:setName("label150"); obj.edit511 = gui.fromHandle(_obj_newObject("edit")); obj.edit511:setParent(obj.layout160); obj.edit511:setLeft(225); obj.edit511:setTop(85); obj.edit511:setWidth(40); obj.edit511:setHeight(25); obj.edit511:setField("PC"); obj.edit511:setName("edit511"); obj.layout161 = gui.fromHandle(_obj_newObject("layout")); obj.layout161:setParent(obj.scrollBox3); obj.layout161:setLeft(930); obj.layout161:setTop(120); obj.layout161:setWidth(300); obj.layout161:setHeight(490); obj.layout161:setName("layout161"); obj.rectangle23 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle23:setParent(obj.layout161); obj.rectangle23:setAlign("client"); obj.rectangle23:setColor("black"); obj.rectangle23:setXradius(5); obj.rectangle23:setYradius(5); obj.rectangle23:setCornerType("round"); obj.rectangle23:setName("rectangle23"); obj.label151 = gui.fromHandle(_obj_newObject("label")); obj.label151:setParent(obj.layout161); obj.label151:setLeft(0); obj.label151:setTop(5); obj.label151:setWidth(300); obj.label151:setHeight(20); obj.label151:setText("OUTROS"); obj.label151:setHorzTextAlign("center"); obj.label151:setName("label151"); obj.textEditor5 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor5:setParent(obj.layout161); obj.textEditor5:setLeft(5); obj.textEditor5:setTop(30); obj.textEditor5:setWidth(290); obj.textEditor5:setHeight(450); obj.textEditor5:setField("Equipamentos_Outros"); obj.textEditor5:setName("textEditor5"); obj.image5 = gui.fromHandle(_obj_newObject("image")); obj.image5:setParent(obj.scrollBox3); obj.image5:setAlign("client"); obj.image5:setSRC("https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/imagens/block.png"); obj.image5:setStyle("autoFit"); obj.image5:setName("image5"); obj.tab4 = gui.fromHandle(_obj_newObject("tab")); obj.tab4:setParent(obj.tabControl1); obj.tab4:setTitle("Magias"); obj.tab4:setName("tab4"); obj.frmADnD4 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD4:setParent(obj.tab4); obj.frmADnD4:setName("frmADnD4"); obj.frmADnD4:setAlign("client"); obj.frmADnD4:setTheme("dark"); obj.frmADnD4:setMargins({top=1}); obj.scrollBox4 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox4:setParent(obj.frmADnD4); obj.scrollBox4:setAlign("client"); obj.scrollBox4:setName("scrollBox4"); obj.layout162 = gui.fromHandle(_obj_newObject("layout")); obj.layout162:setParent(obj.scrollBox4); obj.layout162:setLeft(0); obj.layout162:setTop(0); obj.layout162:setWidth(140); obj.layout162:setHeight(255); obj.layout162:setName("layout162"); obj.rectangle24 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle24:setParent(obj.layout162); obj.rectangle24:setAlign("client"); obj.rectangle24:setColor("black"); obj.rectangle24:setXradius(5); obj.rectangle24:setYradius(5); obj.rectangle24:setCornerType("round"); obj.rectangle24:setName("rectangle24"); obj.label152 = gui.fromHandle(_obj_newObject("label")); obj.label152:setParent(obj.layout162); obj.label152:setLeft(0); obj.label152:setTop(5); obj.label152:setWidth(140); obj.label152:setHeight(20); obj.label152:setText("MAGIAS POR DIA"); obj.label152:setHorzTextAlign("center"); obj.label152:setName("label152"); obj.label153 = gui.fromHandle(_obj_newObject("label")); obj.label153:setParent(obj.layout162); obj.label153:setLeft(25); obj.label153:setTop(25); obj.label153:setWidth(60); obj.label153:setHeight(20); obj.label153:setFontSize(13); obj.label153:setHorzTextAlign("center"); obj.label153:setText("1º"); obj.label153:setName("label153"); obj.edit512 = gui.fromHandle(_obj_newObject("edit")); obj.edit512:setParent(obj.layout162); obj.edit512:setLeft(75); obj.edit512:setTop(25); obj.edit512:setWidth(40); obj.edit512:setHeight(25); obj.edit512:setField("Circulo1"); obj.edit512:setName("edit512"); obj.label154 = gui.fromHandle(_obj_newObject("label")); obj.label154:setParent(obj.layout162); obj.label154:setLeft(25); obj.label154:setTop(50); obj.label154:setWidth(60); obj.label154:setHeight(20); obj.label154:setFontSize(13); obj.label154:setHorzTextAlign("center"); obj.label154:setText("2º"); obj.label154:setName("label154"); obj.edit513 = gui.fromHandle(_obj_newObject("edit")); obj.edit513:setParent(obj.layout162); obj.edit513:setLeft(75); obj.edit513:setTop(50); obj.edit513:setWidth(40); obj.edit513:setHeight(25); obj.edit513:setField("Circulo2"); obj.edit513:setName("edit513"); obj.label155 = gui.fromHandle(_obj_newObject("label")); obj.label155:setParent(obj.layout162); obj.label155:setLeft(25); obj.label155:setTop(75); obj.label155:setWidth(60); obj.label155:setHeight(20); obj.label155:setFontSize(13); obj.label155:setHorzTextAlign("center"); obj.label155:setText("3º"); obj.label155:setName("label155"); obj.edit514 = gui.fromHandle(_obj_newObject("edit")); obj.edit514:setParent(obj.layout162); obj.edit514:setLeft(75); obj.edit514:setTop(75); obj.edit514:setWidth(40); obj.edit514:setHeight(25); obj.edit514:setField("Circulo3"); obj.edit514:setName("edit514"); obj.label156 = gui.fromHandle(_obj_newObject("label")); obj.label156:setParent(obj.layout162); obj.label156:setLeft(25); obj.label156:setTop(100); obj.label156:setWidth(60); obj.label156:setHeight(20); obj.label156:setFontSize(13); obj.label156:setHorzTextAlign("center"); obj.label156:setText("4º"); obj.label156:setName("label156"); obj.edit515 = gui.fromHandle(_obj_newObject("edit")); obj.edit515:setParent(obj.layout162); obj.edit515:setLeft(75); obj.edit515:setTop(100); obj.edit515:setWidth(40); obj.edit515:setHeight(25); obj.edit515:setField("Circulo4"); obj.edit515:setName("edit515"); obj.label157 = gui.fromHandle(_obj_newObject("label")); obj.label157:setParent(obj.layout162); obj.label157:setLeft(25); obj.label157:setTop(125); obj.label157:setWidth(60); obj.label157:setHeight(20); obj.label157:setFontSize(13); obj.label157:setHorzTextAlign("center"); obj.label157:setText("5º"); obj.label157:setName("label157"); obj.edit516 = gui.fromHandle(_obj_newObject("edit")); obj.edit516:setParent(obj.layout162); obj.edit516:setLeft(75); obj.edit516:setTop(125); obj.edit516:setWidth(40); obj.edit516:setHeight(25); obj.edit516:setField("Circulo5"); obj.edit516:setName("edit516"); obj.label158 = gui.fromHandle(_obj_newObject("label")); obj.label158:setParent(obj.layout162); obj.label158:setLeft(25); obj.label158:setTop(150); obj.label158:setWidth(60); obj.label158:setHeight(20); obj.label158:setFontSize(13); obj.label158:setHorzTextAlign("center"); obj.label158:setText("6º"); obj.label158:setName("label158"); obj.edit517 = gui.fromHandle(_obj_newObject("edit")); obj.edit517:setParent(obj.layout162); obj.edit517:setLeft(75); obj.edit517:setTop(150); obj.edit517:setWidth(40); obj.edit517:setHeight(25); obj.edit517:setField("Circulo6"); obj.edit517:setName("edit517"); obj.label159 = gui.fromHandle(_obj_newObject("label")); obj.label159:setParent(obj.layout162); obj.label159:setLeft(25); obj.label159:setTop(175); obj.label159:setWidth(60); obj.label159:setHeight(20); obj.label159:setFontSize(13); obj.label159:setHorzTextAlign("center"); obj.label159:setText("7º"); obj.label159:setName("label159"); obj.edit518 = gui.fromHandle(_obj_newObject("edit")); obj.edit518:setParent(obj.layout162); obj.edit518:setLeft(75); obj.edit518:setTop(175); obj.edit518:setWidth(40); obj.edit518:setHeight(25); obj.edit518:setField("Circulo7"); obj.edit518:setName("edit518"); obj.label160 = gui.fromHandle(_obj_newObject("label")); obj.label160:setParent(obj.layout162); obj.label160:setLeft(25); obj.label160:setTop(200); obj.label160:setWidth(60); obj.label160:setHeight(20); obj.label160:setFontSize(13); obj.label160:setHorzTextAlign("center"); obj.label160:setText("8º"); obj.label160:setName("label160"); obj.edit519 = gui.fromHandle(_obj_newObject("edit")); obj.edit519:setParent(obj.layout162); obj.edit519:setLeft(75); obj.edit519:setTop(200); obj.edit519:setWidth(40); obj.edit519:setHeight(25); obj.edit519:setField("Circulo8"); obj.edit519:setName("edit519"); obj.label161 = gui.fromHandle(_obj_newObject("label")); obj.label161:setParent(obj.layout162); obj.label161:setLeft(25); obj.label161:setTop(225); obj.label161:setWidth(60); obj.label161:setHeight(20); obj.label161:setFontSize(13); obj.label161:setHorzTextAlign("center"); obj.label161:setText("9º"); obj.label161:setName("label161"); obj.edit520 = gui.fromHandle(_obj_newObject("edit")); obj.edit520:setParent(obj.layout162); obj.edit520:setLeft(75); obj.edit520:setTop(225); obj.edit520:setWidth(40); obj.edit520:setHeight(25); obj.edit520:setField("Circulo9"); obj.edit520:setName("edit520"); obj.layout163 = gui.fromHandle(_obj_newObject("layout")); obj.layout163:setParent(obj.scrollBox4); obj.layout163:setLeft(150); obj.layout163:setTop(0); obj.layout163:setWidth(150); obj.layout163:setHeight(255); obj.layout163:setName("layout163"); obj.rectangle25 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle25:setParent(obj.layout163); obj.rectangle25:setAlign("client"); obj.rectangle25:setColor("black"); obj.rectangle25:setXradius(5); obj.rectangle25:setYradius(5); obj.rectangle25:setCornerType("round"); obj.rectangle25:setName("rectangle25"); obj.label162 = gui.fromHandle(_obj_newObject("label")); obj.label162:setParent(obj.layout163); obj.label162:setLeft(0); obj.label162:setTop(5); obj.label162:setWidth(140); obj.label162:setHeight(20); obj.label162:setText("GRIMÓRIO"); obj.label162:setHorzTextAlign("center"); obj.label162:setName("label162"); obj.label163 = gui.fromHandle(_obj_newObject("label")); obj.label163:setParent(obj.layout163); obj.label163:setLeft(5); obj.label163:setTop(30); obj.label163:setWidth(45); obj.label163:setHeight(20); obj.label163:setFontSize(13); obj.label163:setHorzTextAlign("center"); obj.label163:setText("Total"); obj.label163:setName("label163"); obj.label164 = gui.fromHandle(_obj_newObject("label")); obj.label164:setParent(obj.layout163); obj.label164:setLeft(50); obj.label164:setTop(30); obj.label164:setWidth(45); obj.label164:setHeight(20); obj.label164:setFontSize(13); obj.label164:setHorzTextAlign("center"); obj.label164:setText("Usadas"); obj.label164:setName("label164"); obj.label165 = gui.fromHandle(_obj_newObject("label")); obj.label165:setParent(obj.layout163); obj.label165:setLeft(95); obj.label165:setTop(30); obj.label165:setWidth(45); obj.label165:setHeight(20); obj.label165:setFontSize(13); obj.label165:setHorzTextAlign("center"); obj.label165:setText("Vazias"); obj.label165:setName("label165"); obj.edit521 = gui.fromHandle(_obj_newObject("edit")); obj.edit521:setParent(obj.layout163); obj.edit521:setLeft(5); obj.edit521:setTop(50); obj.edit521:setWidth(45); obj.edit521:setHeight(25); obj.edit521:setField("Grimorio_total_1"); obj.edit521:setName("edit521"); obj.edit522 = gui.fromHandle(_obj_newObject("edit")); obj.edit522:setParent(obj.layout163); obj.edit522:setLeft(50); obj.edit522:setTop(50); obj.edit522:setWidth(45); obj.edit522:setHeight(25); obj.edit522:setField("Grimorio_usadas_1"); obj.edit522:setName("edit522"); obj.edit523 = gui.fromHandle(_obj_newObject("edit")); obj.edit523:setParent(obj.layout163); obj.edit523:setLeft(95); obj.edit523:setTop(50); obj.edit523:setWidth(45); obj.edit523:setHeight(25); obj.edit523:setField("Grimorio_vazias_1"); obj.edit523:setName("edit523"); obj.edit524 = gui.fromHandle(_obj_newObject("edit")); obj.edit524:setParent(obj.layout163); obj.edit524:setLeft(5); obj.edit524:setTop(75); obj.edit524:setWidth(45); obj.edit524:setHeight(25); obj.edit524:setField("Grimorio_total_2"); obj.edit524:setName("edit524"); obj.edit525 = gui.fromHandle(_obj_newObject("edit")); obj.edit525:setParent(obj.layout163); obj.edit525:setLeft(50); obj.edit525:setTop(75); obj.edit525:setWidth(45); obj.edit525:setHeight(25); obj.edit525:setField("Grimorio_usadas_2"); obj.edit525:setName("edit525"); obj.edit526 = gui.fromHandle(_obj_newObject("edit")); obj.edit526:setParent(obj.layout163); obj.edit526:setLeft(95); obj.edit526:setTop(75); obj.edit526:setWidth(45); obj.edit526:setHeight(25); obj.edit526:setField("Grimorio_vazias_2"); obj.edit526:setName("edit526"); obj.edit527 = gui.fromHandle(_obj_newObject("edit")); obj.edit527:setParent(obj.layout163); obj.edit527:setLeft(5); obj.edit527:setTop(100); obj.edit527:setWidth(45); obj.edit527:setHeight(25); obj.edit527:setField("Grimorio_total_3"); obj.edit527:setName("edit527"); obj.edit528 = gui.fromHandle(_obj_newObject("edit")); obj.edit528:setParent(obj.layout163); obj.edit528:setLeft(50); obj.edit528:setTop(100); obj.edit528:setWidth(45); obj.edit528:setHeight(25); obj.edit528:setField("Grimorio_usadas_3"); obj.edit528:setName("edit528"); obj.edit529 = gui.fromHandle(_obj_newObject("edit")); obj.edit529:setParent(obj.layout163); obj.edit529:setLeft(95); obj.edit529:setTop(100); obj.edit529:setWidth(45); obj.edit529:setHeight(25); obj.edit529:setField("Grimorio_vazias_3"); obj.edit529:setName("edit529"); obj.edit530 = gui.fromHandle(_obj_newObject("edit")); obj.edit530:setParent(obj.layout163); obj.edit530:setLeft(5); obj.edit530:setTop(125); obj.edit530:setWidth(45); obj.edit530:setHeight(25); obj.edit530:setField("Grimorio_total_4"); obj.edit530:setName("edit530"); obj.edit531 = gui.fromHandle(_obj_newObject("edit")); obj.edit531:setParent(obj.layout163); obj.edit531:setLeft(50); obj.edit531:setTop(125); obj.edit531:setWidth(45); obj.edit531:setHeight(25); obj.edit531:setField("Grimorio_usadas_4"); obj.edit531:setName("edit531"); obj.edit532 = gui.fromHandle(_obj_newObject("edit")); obj.edit532:setParent(obj.layout163); obj.edit532:setLeft(95); obj.edit532:setTop(125); obj.edit532:setWidth(45); obj.edit532:setHeight(25); obj.edit532:setField("Grimorio_vazias_4"); obj.edit532:setName("edit532"); obj.edit533 = gui.fromHandle(_obj_newObject("edit")); obj.edit533:setParent(obj.layout163); obj.edit533:setLeft(5); obj.edit533:setTop(150); obj.edit533:setWidth(45); obj.edit533:setHeight(25); obj.edit533:setField("Grimorio_total_5"); obj.edit533:setName("edit533"); obj.edit534 = gui.fromHandle(_obj_newObject("edit")); obj.edit534:setParent(obj.layout163); obj.edit534:setLeft(50); obj.edit534:setTop(150); obj.edit534:setWidth(45); obj.edit534:setHeight(25); obj.edit534:setField("Grimorio_usadas_5"); obj.edit534:setName("edit534"); obj.edit535 = gui.fromHandle(_obj_newObject("edit")); obj.edit535:setParent(obj.layout163); obj.edit535:setLeft(95); obj.edit535:setTop(150); obj.edit535:setWidth(45); obj.edit535:setHeight(25); obj.edit535:setField("Grimorio_vazias_5"); obj.edit535:setName("edit535"); obj.edit536 = gui.fromHandle(_obj_newObject("edit")); obj.edit536:setParent(obj.layout163); obj.edit536:setLeft(5); obj.edit536:setTop(175); obj.edit536:setWidth(45); obj.edit536:setHeight(25); obj.edit536:setField("Grimorio_total_6"); obj.edit536:setName("edit536"); obj.edit537 = gui.fromHandle(_obj_newObject("edit")); obj.edit537:setParent(obj.layout163); obj.edit537:setLeft(50); obj.edit537:setTop(175); obj.edit537:setWidth(45); obj.edit537:setHeight(25); obj.edit537:setField("Grimorio_usadas_6"); obj.edit537:setName("edit537"); obj.edit538 = gui.fromHandle(_obj_newObject("edit")); obj.edit538:setParent(obj.layout163); obj.edit538:setLeft(95); obj.edit538:setTop(175); obj.edit538:setWidth(45); obj.edit538:setHeight(25); obj.edit538:setField("Grimorio_vazias_6"); obj.edit538:setName("edit538"); obj.edit539 = gui.fromHandle(_obj_newObject("edit")); obj.edit539:setParent(obj.layout163); obj.edit539:setLeft(5); obj.edit539:setTop(200); obj.edit539:setWidth(45); obj.edit539:setHeight(25); obj.edit539:setField("Grimorio_total_7"); obj.edit539:setName("edit539"); obj.edit540 = gui.fromHandle(_obj_newObject("edit")); obj.edit540:setParent(obj.layout163); obj.edit540:setLeft(50); obj.edit540:setTop(200); obj.edit540:setWidth(45); obj.edit540:setHeight(25); obj.edit540:setField("Grimorio_usadas_7"); obj.edit540:setName("edit540"); obj.edit541 = gui.fromHandle(_obj_newObject("edit")); obj.edit541:setParent(obj.layout163); obj.edit541:setLeft(95); obj.edit541:setTop(200); obj.edit541:setWidth(45); obj.edit541:setHeight(25); obj.edit541:setField("Grimorio_vazias_7"); obj.edit541:setName("edit541"); obj.edit542 = gui.fromHandle(_obj_newObject("edit")); obj.edit542:setParent(obj.layout163); obj.edit542:setLeft(5); obj.edit542:setTop(225); obj.edit542:setWidth(45); obj.edit542:setHeight(25); obj.edit542:setField("Grimorio_total_8"); obj.edit542:setName("edit542"); obj.edit543 = gui.fromHandle(_obj_newObject("edit")); obj.edit543:setParent(obj.layout163); obj.edit543:setLeft(50); obj.edit543:setTop(225); obj.edit543:setWidth(45); obj.edit543:setHeight(25); obj.edit543:setField("Grimorio_usadas_8"); obj.edit543:setName("edit543"); obj.edit544 = gui.fromHandle(_obj_newObject("edit")); obj.edit544:setParent(obj.layout163); obj.edit544:setLeft(95); obj.edit544:setTop(225); obj.edit544:setWidth(45); obj.edit544:setHeight(25); obj.edit544:setField("Grimorio_vazias_8"); obj.edit544:setName("edit544"); obj.layout164 = gui.fromHandle(_obj_newObject("layout")); obj.layout164:setParent(obj.scrollBox4); obj.layout164:setLeft(0); obj.layout164:setTop(260); obj.layout164:setWidth(300); obj.layout164:setHeight(340); obj.layout164:setName("layout164"); obj.rectangle26 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle26:setParent(obj.layout164); obj.rectangle26:setAlign("client"); obj.rectangle26:setColor("black"); obj.rectangle26:setXradius(5); obj.rectangle26:setYradius(5); obj.rectangle26:setCornerType("round"); obj.rectangle26:setName("rectangle26"); obj.label166 = gui.fromHandle(_obj_newObject("label")); obj.label166:setParent(obj.layout164); obj.label166:setLeft(0); obj.label166:setTop(5); obj.label166:setWidth(300); obj.label166:setHeight(20); obj.label166:setText("ITENS DE MAGIA"); obj.label166:setHorzTextAlign("center"); obj.label166:setName("label166"); obj.layout165 = gui.fromHandle(_obj_newObject("layout")); obj.layout165:setParent(obj.layout164); obj.layout165:setLeft(0); obj.layout165:setTop(30); obj.layout165:setWidth(300); obj.layout165:setHeight(25); obj.layout165:setName("layout165"); obj.label167 = gui.fromHandle(_obj_newObject("label")); obj.label167:setParent(obj.layout165); obj.label167:setLeft(5); obj.label167:setTop(0); obj.label167:setWidth(190); obj.label167:setHeight(25); obj.label167:setHorzTextAlign("center"); obj.label167:setText("Item"); obj.label167:setName("label167"); obj.label168 = gui.fromHandle(_obj_newObject("label")); obj.label168:setParent(obj.layout165); obj.label168:setLeft(195); obj.label168:setTop(0); obj.label168:setWidth(50); obj.label168:setHeight(25); obj.label168:setHorzTextAlign("center"); obj.label168:setText("Custo"); obj.label168:setName("label168"); obj.label169 = gui.fromHandle(_obj_newObject("label")); obj.label169:setParent(obj.layout165); obj.label169:setLeft(245); obj.label169:setTop(0); obj.label169:setWidth(50); obj.label169:setHeight(25); obj.label169:setHorzTextAlign("center"); obj.label169:setText("Quantidade"); obj.label169:setFontSize(9); obj.label169:setName("label169"); obj.layout166 = gui.fromHandle(_obj_newObject("layout")); obj.layout166:setParent(obj.layout164); obj.layout166:setLeft(0); obj.layout166:setTop(55); obj.layout166:setWidth(300); obj.layout166:setHeight(25); obj.layout166:setName("layout166"); obj.edit545 = gui.fromHandle(_obj_newObject("edit")); obj.edit545:setParent(obj.layout166); obj.edit545:setLeft(5); obj.edit545:setTop(0); obj.edit545:setWidth(190); obj.edit545:setHeight(25); obj.edit545:setField("ItemMagico_1_1"); obj.edit545:setName("edit545"); obj.edit546 = gui.fromHandle(_obj_newObject("edit")); obj.edit546:setParent(obj.layout166); obj.edit546:setLeft(195); obj.edit546:setTop(0); obj.edit546:setWidth(50); obj.edit546:setHeight(25); obj.edit546:setField("ItemMagico_Custo_1_1"); obj.edit546:setName("edit546"); obj.edit547 = gui.fromHandle(_obj_newObject("edit")); obj.edit547:setParent(obj.layout166); obj.edit547:setLeft(245); obj.edit547:setTop(0); obj.edit547:setWidth(50); obj.edit547:setHeight(25); obj.edit547:setField("ItemMagico_Quantia_1_1"); obj.edit547:setName("edit547"); obj.layout167 = gui.fromHandle(_obj_newObject("layout")); obj.layout167:setParent(obj.layout164); obj.layout167:setLeft(0); obj.layout167:setTop(80); obj.layout167:setWidth(300); obj.layout167:setHeight(25); obj.layout167:setName("layout167"); obj.edit548 = gui.fromHandle(_obj_newObject("edit")); obj.edit548:setParent(obj.layout167); obj.edit548:setLeft(5); obj.edit548:setTop(0); obj.edit548:setWidth(190); obj.edit548:setHeight(25); obj.edit548:setField("ItemMagico_1_2"); obj.edit548:setName("edit548"); obj.edit549 = gui.fromHandle(_obj_newObject("edit")); obj.edit549:setParent(obj.layout167); obj.edit549:setLeft(195); obj.edit549:setTop(0); obj.edit549:setWidth(50); obj.edit549:setHeight(25); obj.edit549:setField("ItemMagico_Custo_1_2"); obj.edit549:setName("edit549"); obj.edit550 = gui.fromHandle(_obj_newObject("edit")); obj.edit550:setParent(obj.layout167); obj.edit550:setLeft(245); obj.edit550:setTop(0); obj.edit550:setWidth(50); obj.edit550:setHeight(25); obj.edit550:setField("ItemMagico_Quantia_1_2"); obj.edit550:setName("edit550"); obj.layout168 = gui.fromHandle(_obj_newObject("layout")); obj.layout168:setParent(obj.layout164); obj.layout168:setLeft(0); obj.layout168:setTop(105); obj.layout168:setWidth(300); obj.layout168:setHeight(25); obj.layout168:setName("layout168"); obj.edit551 = gui.fromHandle(_obj_newObject("edit")); obj.edit551:setParent(obj.layout168); obj.edit551:setLeft(5); obj.edit551:setTop(0); obj.edit551:setWidth(190); obj.edit551:setHeight(25); obj.edit551:setField("ItemMagico_1_3"); obj.edit551:setName("edit551"); obj.edit552 = gui.fromHandle(_obj_newObject("edit")); obj.edit552:setParent(obj.layout168); obj.edit552:setLeft(195); obj.edit552:setTop(0); obj.edit552:setWidth(50); obj.edit552:setHeight(25); obj.edit552:setField("ItemMagico_Custo_1_3"); obj.edit552:setName("edit552"); obj.edit553 = gui.fromHandle(_obj_newObject("edit")); obj.edit553:setParent(obj.layout168); obj.edit553:setLeft(245); obj.edit553:setTop(0); obj.edit553:setWidth(50); obj.edit553:setHeight(25); obj.edit553:setField("ItemMagico_Quantia_1_3"); obj.edit553:setName("edit553"); obj.layout169 = gui.fromHandle(_obj_newObject("layout")); obj.layout169:setParent(obj.layout164); obj.layout169:setLeft(0); obj.layout169:setTop(130); obj.layout169:setWidth(300); obj.layout169:setHeight(25); obj.layout169:setName("layout169"); obj.edit554 = gui.fromHandle(_obj_newObject("edit")); obj.edit554:setParent(obj.layout169); obj.edit554:setLeft(5); obj.edit554:setTop(0); obj.edit554:setWidth(190); obj.edit554:setHeight(25); obj.edit554:setField("ItemMagico_1_4"); obj.edit554:setName("edit554"); obj.edit555 = gui.fromHandle(_obj_newObject("edit")); obj.edit555:setParent(obj.layout169); obj.edit555:setLeft(195); obj.edit555:setTop(0); obj.edit555:setWidth(50); obj.edit555:setHeight(25); obj.edit555:setField("ItemMagico_Custo_1_4"); obj.edit555:setName("edit555"); obj.edit556 = gui.fromHandle(_obj_newObject("edit")); obj.edit556:setParent(obj.layout169); obj.edit556:setLeft(245); obj.edit556:setTop(0); obj.edit556:setWidth(50); obj.edit556:setHeight(25); obj.edit556:setField("ItemMagico_Quantia_1_4"); obj.edit556:setName("edit556"); obj.layout170 = gui.fromHandle(_obj_newObject("layout")); obj.layout170:setParent(obj.layout164); obj.layout170:setLeft(0); obj.layout170:setTop(155); obj.layout170:setWidth(300); obj.layout170:setHeight(25); obj.layout170:setName("layout170"); obj.edit557 = gui.fromHandle(_obj_newObject("edit")); obj.edit557:setParent(obj.layout170); obj.edit557:setLeft(5); obj.edit557:setTop(0); obj.edit557:setWidth(190); obj.edit557:setHeight(25); obj.edit557:setField("ItemMagico_1_5"); obj.edit557:setName("edit557"); obj.edit558 = gui.fromHandle(_obj_newObject("edit")); obj.edit558:setParent(obj.layout170); obj.edit558:setLeft(195); obj.edit558:setTop(0); obj.edit558:setWidth(50); obj.edit558:setHeight(25); obj.edit558:setField("ItemMagico_Custo_1_5"); obj.edit558:setName("edit558"); obj.edit559 = gui.fromHandle(_obj_newObject("edit")); obj.edit559:setParent(obj.layout170); obj.edit559:setLeft(245); obj.edit559:setTop(0); obj.edit559:setWidth(50); obj.edit559:setHeight(25); obj.edit559:setField("ItemMagico_Quantia_1_5"); obj.edit559:setName("edit559"); obj.layout171 = gui.fromHandle(_obj_newObject("layout")); obj.layout171:setParent(obj.layout164); obj.layout171:setLeft(0); obj.layout171:setTop(180); obj.layout171:setWidth(300); obj.layout171:setHeight(25); obj.layout171:setName("layout171"); obj.edit560 = gui.fromHandle(_obj_newObject("edit")); obj.edit560:setParent(obj.layout171); obj.edit560:setLeft(5); obj.edit560:setTop(0); obj.edit560:setWidth(190); obj.edit560:setHeight(25); obj.edit560:setField("ItemMagico_1_6"); obj.edit560:setName("edit560"); obj.edit561 = gui.fromHandle(_obj_newObject("edit")); obj.edit561:setParent(obj.layout171); obj.edit561:setLeft(195); obj.edit561:setTop(0); obj.edit561:setWidth(50); obj.edit561:setHeight(25); obj.edit561:setField("ItemMagico_Custo_1_6"); obj.edit561:setName("edit561"); obj.edit562 = gui.fromHandle(_obj_newObject("edit")); obj.edit562:setParent(obj.layout171); obj.edit562:setLeft(245); obj.edit562:setTop(0); obj.edit562:setWidth(50); obj.edit562:setHeight(25); obj.edit562:setField("ItemMagico_Quantia_1_6"); obj.edit562:setName("edit562"); obj.layout172 = gui.fromHandle(_obj_newObject("layout")); obj.layout172:setParent(obj.layout164); obj.layout172:setLeft(0); obj.layout172:setTop(205); obj.layout172:setWidth(300); obj.layout172:setHeight(25); obj.layout172:setName("layout172"); obj.edit563 = gui.fromHandle(_obj_newObject("edit")); obj.edit563:setParent(obj.layout172); obj.edit563:setLeft(5); obj.edit563:setTop(0); obj.edit563:setWidth(190); obj.edit563:setHeight(25); obj.edit563:setField("ItemMagico_1_7"); obj.edit563:setName("edit563"); obj.edit564 = gui.fromHandle(_obj_newObject("edit")); obj.edit564:setParent(obj.layout172); obj.edit564:setLeft(195); obj.edit564:setTop(0); obj.edit564:setWidth(50); obj.edit564:setHeight(25); obj.edit564:setField("ItemMagico_Custo_1_7"); obj.edit564:setName("edit564"); obj.edit565 = gui.fromHandle(_obj_newObject("edit")); obj.edit565:setParent(obj.layout172); obj.edit565:setLeft(245); obj.edit565:setTop(0); obj.edit565:setWidth(50); obj.edit565:setHeight(25); obj.edit565:setField("ItemMagico_Quantia_1_7"); obj.edit565:setName("edit565"); obj.layout173 = gui.fromHandle(_obj_newObject("layout")); obj.layout173:setParent(obj.layout164); obj.layout173:setLeft(0); obj.layout173:setTop(230); obj.layout173:setWidth(300); obj.layout173:setHeight(25); obj.layout173:setName("layout173"); obj.edit566 = gui.fromHandle(_obj_newObject("edit")); obj.edit566:setParent(obj.layout173); obj.edit566:setLeft(5); obj.edit566:setTop(0); obj.edit566:setWidth(190); obj.edit566:setHeight(25); obj.edit566:setField("ItemMagico_1_8"); obj.edit566:setName("edit566"); obj.edit567 = gui.fromHandle(_obj_newObject("edit")); obj.edit567:setParent(obj.layout173); obj.edit567:setLeft(195); obj.edit567:setTop(0); obj.edit567:setWidth(50); obj.edit567:setHeight(25); obj.edit567:setField("ItemMagico_Custo_1_8"); obj.edit567:setName("edit567"); obj.edit568 = gui.fromHandle(_obj_newObject("edit")); obj.edit568:setParent(obj.layout173); obj.edit568:setLeft(245); obj.edit568:setTop(0); obj.edit568:setWidth(50); obj.edit568:setHeight(25); obj.edit568:setField("ItemMagico_Quantia_1_8"); obj.edit568:setName("edit568"); obj.layout174 = gui.fromHandle(_obj_newObject("layout")); obj.layout174:setParent(obj.layout164); obj.layout174:setLeft(0); obj.layout174:setTop(255); obj.layout174:setWidth(300); obj.layout174:setHeight(25); obj.layout174:setName("layout174"); obj.edit569 = gui.fromHandle(_obj_newObject("edit")); obj.edit569:setParent(obj.layout174); obj.edit569:setLeft(5); obj.edit569:setTop(0); obj.edit569:setWidth(190); obj.edit569:setHeight(25); obj.edit569:setField("ItemMagico_1_9"); obj.edit569:setName("edit569"); obj.edit570 = gui.fromHandle(_obj_newObject("edit")); obj.edit570:setParent(obj.layout174); obj.edit570:setLeft(195); obj.edit570:setTop(0); obj.edit570:setWidth(50); obj.edit570:setHeight(25); obj.edit570:setField("ItemMagico_Custo_1_9"); obj.edit570:setName("edit570"); obj.edit571 = gui.fromHandle(_obj_newObject("edit")); obj.edit571:setParent(obj.layout174); obj.edit571:setLeft(245); obj.edit571:setTop(0); obj.edit571:setWidth(50); obj.edit571:setHeight(25); obj.edit571:setField("ItemMagico_Quantia_1_9"); obj.edit571:setName("edit571"); obj.layout175 = gui.fromHandle(_obj_newObject("layout")); obj.layout175:setParent(obj.layout164); obj.layout175:setLeft(0); obj.layout175:setTop(280); obj.layout175:setWidth(300); obj.layout175:setHeight(25); obj.layout175:setName("layout175"); obj.edit572 = gui.fromHandle(_obj_newObject("edit")); obj.edit572:setParent(obj.layout175); obj.edit572:setLeft(5); obj.edit572:setTop(0); obj.edit572:setWidth(190); obj.edit572:setHeight(25); obj.edit572:setField("ItemMagico_1_10"); obj.edit572:setName("edit572"); obj.edit573 = gui.fromHandle(_obj_newObject("edit")); obj.edit573:setParent(obj.layout175); obj.edit573:setLeft(195); obj.edit573:setTop(0); obj.edit573:setWidth(50); obj.edit573:setHeight(25); obj.edit573:setField("ItemMagico_Custo_1_10"); obj.edit573:setName("edit573"); obj.edit574 = gui.fromHandle(_obj_newObject("edit")); obj.edit574:setParent(obj.layout175); obj.edit574:setLeft(245); obj.edit574:setTop(0); obj.edit574:setWidth(50); obj.edit574:setHeight(25); obj.edit574:setField("ItemMagico_Quantia_1_10"); obj.edit574:setName("edit574"); obj.layout176 = gui.fromHandle(_obj_newObject("layout")); obj.layout176:setParent(obj.layout164); obj.layout176:setLeft(0); obj.layout176:setTop(305); obj.layout176:setWidth(300); obj.layout176:setHeight(25); obj.layout176:setName("layout176"); obj.edit575 = gui.fromHandle(_obj_newObject("edit")); obj.edit575:setParent(obj.layout176); obj.edit575:setLeft(5); obj.edit575:setTop(0); obj.edit575:setWidth(190); obj.edit575:setHeight(25); obj.edit575:setField("ItemMagico_1_11"); obj.edit575:setName("edit575"); obj.edit576 = gui.fromHandle(_obj_newObject("edit")); obj.edit576:setParent(obj.layout176); obj.edit576:setLeft(195); obj.edit576:setTop(0); obj.edit576:setWidth(50); obj.edit576:setHeight(25); obj.edit576:setField("ItemMagico_Custo_1_11"); obj.edit576:setName("edit576"); obj.edit577 = gui.fromHandle(_obj_newObject("edit")); obj.edit577:setParent(obj.layout176); obj.edit577:setLeft(245); obj.edit577:setTop(0); obj.edit577:setWidth(50); obj.edit577:setHeight(25); obj.edit577:setField("ItemMagico_Quantia_1_11"); obj.edit577:setName("edit577"); obj.layout177 = gui.fromHandle(_obj_newObject("layout")); obj.layout177:setParent(obj.scrollBox4); obj.layout177:setLeft(310); obj.layout177:setTop(0); obj.layout177:setWidth(300); obj.layout177:setHeight(200); obj.layout177:setName("layout177"); obj.rectangle27 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle27:setParent(obj.layout177); obj.rectangle27:setAlign("client"); obj.rectangle27:setColor("black"); obj.rectangle27:setXradius(5); obj.rectangle27:setYradius(5); obj.rectangle27:setCornerType("round"); obj.rectangle27:setName("rectangle27"); obj.label170 = gui.fromHandle(_obj_newObject("label")); obj.label170:setParent(obj.layout177); obj.label170:setLeft(0); obj.label170:setTop(5); obj.label170:setWidth(300); obj.label170:setHeight(20); obj.label170:setText("1º CIRCULO"); obj.label170:setHorzTextAlign("center"); obj.label170:setName("label170"); obj.textEditor6 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor6:setParent(obj.layout177); obj.textEditor6:setLeft(5); obj.textEditor6:setTop(30); obj.textEditor6:setWidth(290); obj.textEditor6:setHeight(165); obj.textEditor6:setField("magia1"); obj.textEditor6:setName("textEditor6"); obj.layout178 = gui.fromHandle(_obj_newObject("layout")); obj.layout178:setParent(obj.scrollBox4); obj.layout178:setLeft(620); obj.layout178:setTop(0); obj.layout178:setWidth(300); obj.layout178:setHeight(200); obj.layout178:setName("layout178"); obj.rectangle28 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle28:setParent(obj.layout178); obj.rectangle28:setAlign("client"); obj.rectangle28:setColor("black"); obj.rectangle28:setXradius(5); obj.rectangle28:setYradius(5); obj.rectangle28:setCornerType("round"); obj.rectangle28:setName("rectangle28"); obj.label171 = gui.fromHandle(_obj_newObject("label")); obj.label171:setParent(obj.layout178); obj.label171:setLeft(0); obj.label171:setTop(5); obj.label171:setWidth(300); obj.label171:setHeight(20); obj.label171:setText("2º CIRCULO"); obj.label171:setHorzTextAlign("center"); obj.label171:setName("label171"); obj.textEditor7 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor7:setParent(obj.layout178); obj.textEditor7:setLeft(5); obj.textEditor7:setTop(30); obj.textEditor7:setWidth(290); obj.textEditor7:setHeight(165); obj.textEditor7:setField("magia2"); obj.textEditor7:setName("textEditor7"); obj.layout179 = gui.fromHandle(_obj_newObject("layout")); obj.layout179:setParent(obj.scrollBox4); obj.layout179:setLeft(930); obj.layout179:setTop(0); obj.layout179:setWidth(300); obj.layout179:setHeight(200); obj.layout179:setName("layout179"); obj.rectangle29 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle29:setParent(obj.layout179); obj.rectangle29:setAlign("client"); obj.rectangle29:setColor("black"); obj.rectangle29:setXradius(5); obj.rectangle29:setYradius(5); obj.rectangle29:setCornerType("round"); obj.rectangle29:setName("rectangle29"); obj.label172 = gui.fromHandle(_obj_newObject("label")); obj.label172:setParent(obj.layout179); obj.label172:setLeft(0); obj.label172:setTop(5); obj.label172:setWidth(300); obj.label172:setHeight(20); obj.label172:setText("3º CIRCULO"); obj.label172:setHorzTextAlign("center"); obj.label172:setName("label172"); obj.textEditor8 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor8:setParent(obj.layout179); obj.textEditor8:setLeft(5); obj.textEditor8:setTop(30); obj.textEditor8:setWidth(290); obj.textEditor8:setHeight(165); obj.textEditor8:setField("magia3"); obj.textEditor8:setName("textEditor8"); obj.layout180 = gui.fromHandle(_obj_newObject("layout")); obj.layout180:setParent(obj.scrollBox4); obj.layout180:setLeft(310); obj.layout180:setTop(205); obj.layout180:setWidth(300); obj.layout180:setHeight(200); obj.layout180:setName("layout180"); obj.rectangle30 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle30:setParent(obj.layout180); obj.rectangle30:setAlign("client"); obj.rectangle30:setColor("black"); obj.rectangle30:setXradius(5); obj.rectangle30:setYradius(5); obj.rectangle30:setCornerType("round"); obj.rectangle30:setName("rectangle30"); obj.label173 = gui.fromHandle(_obj_newObject("label")); obj.label173:setParent(obj.layout180); obj.label173:setLeft(0); obj.label173:setTop(5); obj.label173:setWidth(300); obj.label173:setHeight(20); obj.label173:setText("4º CIRCULO"); obj.label173:setHorzTextAlign("center"); obj.label173:setName("label173"); obj.textEditor9 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor9:setParent(obj.layout180); obj.textEditor9:setLeft(5); obj.textEditor9:setTop(30); obj.textEditor9:setWidth(290); obj.textEditor9:setHeight(165); obj.textEditor9:setField("magia4"); obj.textEditor9:setName("textEditor9"); obj.layout181 = gui.fromHandle(_obj_newObject("layout")); obj.layout181:setParent(obj.scrollBox4); obj.layout181:setLeft(620); obj.layout181:setTop(205); obj.layout181:setWidth(300); obj.layout181:setHeight(200); obj.layout181:setName("layout181"); obj.rectangle31 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle31:setParent(obj.layout181); obj.rectangle31:setAlign("client"); obj.rectangle31:setColor("black"); obj.rectangle31:setXradius(5); obj.rectangle31:setYradius(5); obj.rectangle31:setCornerType("round"); obj.rectangle31:setName("rectangle31"); obj.label174 = gui.fromHandle(_obj_newObject("label")); obj.label174:setParent(obj.layout181); obj.label174:setLeft(0); obj.label174:setTop(5); obj.label174:setWidth(300); obj.label174:setHeight(20); obj.label174:setText("5º CIRCULO"); obj.label174:setHorzTextAlign("center"); obj.label174:setName("label174"); obj.textEditor10 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor10:setParent(obj.layout181); obj.textEditor10:setLeft(5); obj.textEditor10:setTop(30); obj.textEditor10:setWidth(290); obj.textEditor10:setHeight(165); obj.textEditor10:setField("magia5"); obj.textEditor10:setName("textEditor10"); obj.layout182 = gui.fromHandle(_obj_newObject("layout")); obj.layout182:setParent(obj.scrollBox4); obj.layout182:setLeft(930); obj.layout182:setTop(205); obj.layout182:setWidth(300); obj.layout182:setHeight(200); obj.layout182:setName("layout182"); obj.rectangle32 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle32:setParent(obj.layout182); obj.rectangle32:setAlign("client"); obj.rectangle32:setColor("black"); obj.rectangle32:setXradius(5); obj.rectangle32:setYradius(5); obj.rectangle32:setCornerType("round"); obj.rectangle32:setName("rectangle32"); obj.label175 = gui.fromHandle(_obj_newObject("label")); obj.label175:setParent(obj.layout182); obj.label175:setLeft(0); obj.label175:setTop(5); obj.label175:setWidth(300); obj.label175:setHeight(20); obj.label175:setText("6º CIRCULO"); obj.label175:setHorzTextAlign("center"); obj.label175:setName("label175"); obj.textEditor11 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor11:setParent(obj.layout182); obj.textEditor11:setLeft(5); obj.textEditor11:setTop(30); obj.textEditor11:setWidth(290); obj.textEditor11:setHeight(165); obj.textEditor11:setField("magia6"); obj.textEditor11:setName("textEditor11"); obj.layout183 = gui.fromHandle(_obj_newObject("layout")); obj.layout183:setParent(obj.scrollBox4); obj.layout183:setLeft(310); obj.layout183:setTop(410); obj.layout183:setWidth(300); obj.layout183:setHeight(200); obj.layout183:setName("layout183"); obj.rectangle33 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle33:setParent(obj.layout183); obj.rectangle33:setAlign("client"); obj.rectangle33:setColor("black"); obj.rectangle33:setXradius(5); obj.rectangle33:setYradius(5); obj.rectangle33:setCornerType("round"); obj.rectangle33:setName("rectangle33"); obj.label176 = gui.fromHandle(_obj_newObject("label")); obj.label176:setParent(obj.layout183); obj.label176:setLeft(0); obj.label176:setTop(5); obj.label176:setWidth(300); obj.label176:setHeight(20); obj.label176:setText("7º CIRCULO"); obj.label176:setHorzTextAlign("center"); obj.label176:setName("label176"); obj.textEditor12 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor12:setParent(obj.layout183); obj.textEditor12:setLeft(5); obj.textEditor12:setTop(30); obj.textEditor12:setWidth(290); obj.textEditor12:setHeight(165); obj.textEditor12:setField("magia7"); obj.textEditor12:setName("textEditor12"); obj.layout184 = gui.fromHandle(_obj_newObject("layout")); obj.layout184:setParent(obj.scrollBox4); obj.layout184:setLeft(620); obj.layout184:setTop(410); obj.layout184:setWidth(300); obj.layout184:setHeight(200); obj.layout184:setName("layout184"); obj.rectangle34 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle34:setParent(obj.layout184); obj.rectangle34:setAlign("client"); obj.rectangle34:setColor("black"); obj.rectangle34:setXradius(5); obj.rectangle34:setYradius(5); obj.rectangle34:setCornerType("round"); obj.rectangle34:setName("rectangle34"); obj.label177 = gui.fromHandle(_obj_newObject("label")); obj.label177:setParent(obj.layout184); obj.label177:setLeft(0); obj.label177:setTop(5); obj.label177:setWidth(300); obj.label177:setHeight(20); obj.label177:setText("8º CIRCULO"); obj.label177:setHorzTextAlign("center"); obj.label177:setName("label177"); obj.textEditor13 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor13:setParent(obj.layout184); obj.textEditor13:setLeft(5); obj.textEditor13:setTop(30); obj.textEditor13:setWidth(290); obj.textEditor13:setHeight(165); obj.textEditor13:setField("magia8"); obj.textEditor13:setName("textEditor13"); obj.layout185 = gui.fromHandle(_obj_newObject("layout")); obj.layout185:setParent(obj.scrollBox4); obj.layout185:setLeft(930); obj.layout185:setTop(410); obj.layout185:setWidth(300); obj.layout185:setHeight(200); obj.layout185:setName("layout185"); obj.rectangle35 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle35:setParent(obj.layout185); obj.rectangle35:setAlign("client"); obj.rectangle35:setColor("black"); obj.rectangle35:setXradius(5); obj.rectangle35:setYradius(5); obj.rectangle35:setCornerType("round"); obj.rectangle35:setName("rectangle35"); obj.label178 = gui.fromHandle(_obj_newObject("label")); obj.label178:setParent(obj.layout185); obj.label178:setLeft(0); obj.label178:setTop(5); obj.label178:setWidth(300); obj.label178:setHeight(20); obj.label178:setText("9º CIRCULO"); obj.label178:setHorzTextAlign("center"); obj.label178:setName("label178"); obj.textEditor14 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor14:setParent(obj.layout185); obj.textEditor14:setLeft(5); obj.textEditor14:setTop(30); obj.textEditor14:setWidth(290); obj.textEditor14:setHeight(165); obj.textEditor14:setField("magia9"); obj.textEditor14:setName("textEditor14"); obj.image6 = gui.fromHandle(_obj_newObject("image")); obj.image6:setParent(obj.scrollBox4); obj.image6:setAlign("client"); obj.image6:setSRC("https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/imagens/block.png"); obj.image6:setStyle("autoFit"); obj.image6:setName("image6"); obj.tab5 = gui.fromHandle(_obj_newObject("tab")); obj.tab5:setParent(obj.tabControl1); obj.tab5:setTitle("Descrições"); obj.tab5:setName("tab5"); obj.frmADnD5 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD5:setParent(obj.tab5); obj.frmADnD5:setName("frmADnD5"); obj.frmADnD5:setAlign("client"); obj.frmADnD5:setTheme("dark"); obj.scrollBox5 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox5:setParent(obj.frmADnD5); obj.scrollBox5:setAlign("client"); obj.scrollBox5:setName("scrollBox5"); obj.layout186 = gui.fromHandle(_obj_newObject("layout")); obj.layout186:setParent(obj.scrollBox5); obj.layout186:setLeft(0); obj.layout186:setTop(0); obj.layout186:setWidth(960); obj.layout186:setHeight(70); obj.layout186:setName("layout186"); obj.rectangle36 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle36:setParent(obj.layout186); obj.rectangle36:setLeft(5); obj.rectangle36:setTop(0); obj.rectangle36:setWidth(950); obj.rectangle36:setHeight(70); obj.rectangle36:setColor("black"); obj.rectangle36:setXradius(15); obj.rectangle36:setYradius(15); obj.rectangle36:setCornerType("round"); obj.rectangle36:setName("rectangle36"); obj.layout187 = gui.fromHandle(_obj_newObject("layout")); obj.layout187:setParent(obj.layout186); obj.layout187:setLeft(5); obj.layout187:setTop(5); obj.layout187:setWidth(310); obj.layout187:setHeight(25); obj.layout187:setName("layout187"); obj.label179 = gui.fromHandle(_obj_newObject("label")); obj.label179:setParent(obj.layout187); obj.label179:setLeft(0); obj.label179:setTop(5); obj.label179:setWidth(100); obj.label179:setHeight(20); obj.label179:setText("Sexo"); obj.label179:setHorzTextAlign("trailing"); obj.label179:setName("label179"); obj.edit578 = gui.fromHandle(_obj_newObject("edit")); obj.edit578:setParent(obj.layout187); obj.edit578:setLeft(110); obj.edit578:setTop(0); obj.edit578:setWidth(200); obj.edit578:setHeight(25); obj.edit578:setField("desc_sexo"); obj.edit578:setName("edit578"); obj.layout188 = gui.fromHandle(_obj_newObject("layout")); obj.layout188:setParent(obj.layout186); obj.layout188:setLeft(320); obj.layout188:setTop(5); obj.layout188:setWidth(310); obj.layout188:setHeight(25); obj.layout188:setName("layout188"); obj.label180 = gui.fromHandle(_obj_newObject("label")); obj.label180:setParent(obj.layout188); obj.label180:setLeft(0); obj.label180:setTop(5); obj.label180:setWidth(100); obj.label180:setHeight(20); obj.label180:setText("Altura"); obj.label180:setHorzTextAlign("trailing"); obj.label180:setName("label180"); obj.edit579 = gui.fromHandle(_obj_newObject("edit")); obj.edit579:setParent(obj.layout188); obj.edit579:setLeft(110); obj.edit579:setTop(0); obj.edit579:setWidth(200); obj.edit579:setHeight(25); obj.edit579:setField("desc_altura"); obj.edit579:setName("edit579"); obj.layout189 = gui.fromHandle(_obj_newObject("layout")); obj.layout189:setParent(obj.layout186); obj.layout189:setLeft(585); obj.layout189:setTop(5); obj.layout189:setWidth(310); obj.layout189:setHeight(25); obj.layout189:setName("layout189"); obj.label181 = gui.fromHandle(_obj_newObject("label")); obj.label181:setParent(obj.layout189); obj.label181:setLeft(0); obj.label181:setTop(5); obj.label181:setWidth(100); obj.label181:setHeight(20); obj.label181:setText("Olhos"); obj.label181:setHorzTextAlign("trailing"); obj.label181:setName("label181"); obj.edit580 = gui.fromHandle(_obj_newObject("edit")); obj.edit580:setParent(obj.layout189); obj.edit580:setLeft(110); obj.edit580:setTop(0); obj.edit580:setWidth(200); obj.edit580:setHeight(25); obj.edit580:setField("desc_olhos"); obj.edit580:setName("edit580"); obj.layout190 = gui.fromHandle(_obj_newObject("layout")); obj.layout190:setParent(obj.layout186); obj.layout190:setLeft(5); obj.layout190:setTop(35); obj.layout190:setWidth(310); obj.layout190:setHeight(25); obj.layout190:setName("layout190"); obj.label182 = gui.fromHandle(_obj_newObject("label")); obj.label182:setParent(obj.layout190); obj.label182:setLeft(0); obj.label182:setTop(5); obj.label182:setWidth(100); obj.label182:setHeight(20); obj.label182:setText("Idade"); obj.label182:setHorzTextAlign("trailing"); obj.label182:setName("label182"); obj.edit581 = gui.fromHandle(_obj_newObject("edit")); obj.edit581:setParent(obj.layout190); obj.edit581:setLeft(110); obj.edit581:setTop(0); obj.edit581:setWidth(200); obj.edit581:setHeight(25); obj.edit581:setField("desc_idade"); obj.edit581:setName("edit581"); obj.layout191 = gui.fromHandle(_obj_newObject("layout")); obj.layout191:setParent(obj.layout186); obj.layout191:setLeft(320); obj.layout191:setTop(35); obj.layout191:setWidth(310); obj.layout191:setHeight(25); obj.layout191:setName("layout191"); obj.label183 = gui.fromHandle(_obj_newObject("label")); obj.label183:setParent(obj.layout191); obj.label183:setLeft(0); obj.label183:setTop(5); obj.label183:setWidth(100); obj.label183:setHeight(20); obj.label183:setText("Peso"); obj.label183:setHorzTextAlign("trailing"); obj.label183:setName("label183"); obj.edit582 = gui.fromHandle(_obj_newObject("edit")); obj.edit582:setParent(obj.layout191); obj.edit582:setLeft(110); obj.edit582:setTop(0); obj.edit582:setWidth(200); obj.edit582:setHeight(25); obj.edit582:setField("desc_peso"); obj.edit582:setName("edit582"); obj.layout192 = gui.fromHandle(_obj_newObject("layout")); obj.layout192:setParent(obj.layout186); obj.layout192:setLeft(585); obj.layout192:setTop(35); obj.layout192:setWidth(310); obj.layout192:setHeight(25); obj.layout192:setName("layout192"); obj.label184 = gui.fromHandle(_obj_newObject("label")); obj.label184:setParent(obj.layout192); obj.label184:setLeft(0); obj.label184:setTop(5); obj.label184:setWidth(100); obj.label184:setHeight(20); obj.label184:setText("Cabelo"); obj.label184:setHorzTextAlign("trailing"); obj.label184:setName("label184"); obj.edit583 = gui.fromHandle(_obj_newObject("edit")); obj.edit583:setParent(obj.layout192); obj.edit583:setLeft(110); obj.edit583:setTop(0); obj.edit583:setWidth(200); obj.edit583:setHeight(25); obj.edit583:setField("desc_cabelo"); obj.edit583:setName("edit583"); obj.layout193 = gui.fromHandle(_obj_newObject("layout")); obj.layout193:setParent(obj.scrollBox5); obj.layout193:setLeft(0); obj.layout193:setTop(80); obj.layout193:setWidth(400); obj.layout193:setHeight(175); obj.layout193:setName("layout193"); obj.rectangle37 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle37:setParent(obj.layout193); obj.rectangle37:setLeft(0); obj.rectangle37:setTop(0); obj.rectangle37:setWidth(400); obj.rectangle37:setHeight(175); obj.rectangle37:setColor("black"); obj.rectangle37:setXradius(15); obj.rectangle37:setYradius(15); obj.rectangle37:setCornerType("round"); obj.rectangle37:setName("rectangle37"); obj.label185 = gui.fromHandle(_obj_newObject("label")); obj.label185:setParent(obj.layout193); obj.label185:setLeft(0); obj.label185:setTop(0); obj.label185:setWidth(400); obj.label185:setHeight(20); obj.label185:setText("Aparencia"); obj.label185:setHorzTextAlign("center"); obj.label185:setName("label185"); obj.textEditor15 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor15:setParent(obj.layout193); obj.textEditor15:setLeft(10); obj.textEditor15:setTop(25); obj.textEditor15:setWidth(380); obj.textEditor15:setHeight(135); obj.textEditor15:setField("aparencia"); obj.textEditor15:setName("textEditor15"); obj.layout194 = gui.fromHandle(_obj_newObject("layout")); obj.layout194:setParent(obj.scrollBox5); obj.layout194:setLeft(0); obj.layout194:setTop(260); obj.layout194:setWidth(400); obj.layout194:setHeight(175); obj.layout194:setName("layout194"); obj.rectangle38 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle38:setParent(obj.layout194); obj.rectangle38:setLeft(0); obj.rectangle38:setTop(0); obj.rectangle38:setWidth(400); obj.rectangle38:setHeight(175); obj.rectangle38:setColor("black"); obj.rectangle38:setXradius(15); obj.rectangle38:setYradius(15); obj.rectangle38:setCornerType("round"); obj.rectangle38:setName("rectangle38"); obj.label186 = gui.fromHandle(_obj_newObject("label")); obj.label186:setParent(obj.layout194); obj.label186:setLeft(0); obj.label186:setTop(0); obj.label186:setWidth(400); obj.label186:setHeight(20); obj.label186:setText("Personalidade"); obj.label186:setHorzTextAlign("center"); obj.label186:setName("label186"); obj.textEditor16 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor16:setParent(obj.layout194); obj.textEditor16:setLeft(10); obj.textEditor16:setTop(25); obj.textEditor16:setWidth(380); obj.textEditor16:setHeight(135); obj.textEditor16:setField("personalidade"); obj.textEditor16:setName("textEditor16"); obj.layout195 = gui.fromHandle(_obj_newObject("layout")); obj.layout195:setParent(obj.scrollBox5); obj.layout195:setLeft(0); obj.layout195:setTop(440); obj.layout195:setWidth(400); obj.layout195:setHeight(175); obj.layout195:setName("layout195"); obj.rectangle39 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle39:setParent(obj.layout195); obj.rectangle39:setLeft(0); obj.rectangle39:setTop(0); obj.rectangle39:setWidth(400); obj.rectangle39:setHeight(175); obj.rectangle39:setColor("black"); obj.rectangle39:setXradius(15); obj.rectangle39:setYradius(15); obj.rectangle39:setCornerType("round"); obj.rectangle39:setName("rectangle39"); obj.label187 = gui.fromHandle(_obj_newObject("label")); obj.label187:setParent(obj.layout195); obj.label187:setLeft(0); obj.label187:setTop(0); obj.label187:setWidth(400); obj.label187:setHeight(20); obj.label187:setText("Idiomas"); obj.label187:setHorzTextAlign("center"); obj.label187:setName("label187"); obj.textEditor17 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor17:setParent(obj.layout195); obj.textEditor17:setLeft(10); obj.textEditor17:setTop(25); obj.textEditor17:setWidth(380); obj.textEditor17:setHeight(135); obj.textEditor17:setField("idiomas"); obj.textEditor17:setName("textEditor17"); obj.layout196 = gui.fromHandle(_obj_newObject("layout")); obj.layout196:setParent(obj.scrollBox5); obj.layout196:setLeft(410); obj.layout196:setTop(80); obj.layout196:setWidth(600); obj.layout196:setHeight(535); obj.layout196:setName("layout196"); obj.rectangle40 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle40:setParent(obj.layout196); obj.rectangle40:setLeft(0); obj.rectangle40:setTop(0); obj.rectangle40:setWidth(600); obj.rectangle40:setHeight(535); obj.rectangle40:setColor("black"); obj.rectangle40:setXradius(15); obj.rectangle40:setYradius(15); obj.rectangle40:setCornerType("round"); obj.rectangle40:setName("rectangle40"); obj.label188 = gui.fromHandle(_obj_newObject("label")); obj.label188:setParent(obj.layout196); obj.label188:setLeft(0); obj.label188:setTop(0); obj.label188:setWidth(600); obj.label188:setHeight(20); obj.label188:setText("Historia"); obj.label188:setHorzTextAlign("center"); obj.label188:setName("label188"); obj.textEditor18 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor18:setParent(obj.layout196); obj.textEditor18:setLeft(10); obj.textEditor18:setTop(25); obj.textEditor18:setWidth(580); obj.textEditor18:setHeight(495); obj.textEditor18:setField("historia"); obj.textEditor18:setName("textEditor18"); obj.tab6 = gui.fromHandle(_obj_newObject("tab")); obj.tab6:setParent(obj.tabControl1); obj.tab6:setTitle("Anotações"); obj.tab6:setName("tab6"); obj.frmADnD6 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD6:setParent(obj.tab6); obj.frmADnD6:setName("frmADnD6"); obj.frmADnD6:setAlign("client"); obj.frmADnD6:setTheme("dark"); obj.scrollBox6 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox6:setParent(obj.frmADnD6); obj.scrollBox6:setAlign("client"); obj.scrollBox6:setName("scrollBox6"); obj.layout197 = gui.fromHandle(_obj_newObject("layout")); obj.layout197:setParent(obj.scrollBox6); obj.layout197:setLeft(0); obj.layout197:setTop(0); obj.layout197:setWidth(400); obj.layout197:setHeight(580); obj.layout197:setName("layout197"); obj.rectangle41 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle41:setParent(obj.layout197); obj.rectangle41:setLeft(0); obj.rectangle41:setTop(0); obj.rectangle41:setWidth(400); obj.rectangle41:setHeight(580); obj.rectangle41:setColor("black"); obj.rectangle41:setXradius(5); obj.rectangle41:setYradius(5); obj.rectangle41:setCornerType("round"); obj.rectangle41:setName("rectangle41"); obj.label189 = gui.fromHandle(_obj_newObject("label")); obj.label189:setParent(obj.layout197); obj.label189:setLeft(0); obj.label189:setTop(0); obj.label189:setWidth(400); obj.label189:setHeight(20); obj.label189:setText("Anotações"); obj.label189:setHorzTextAlign("center"); obj.label189:setName("label189"); obj.textEditor19 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor19:setParent(obj.layout197); obj.textEditor19:setLeft(10); obj.textEditor19:setTop(25); obj.textEditor19:setWidth(380); obj.textEditor19:setHeight(540); obj.textEditor19:setField("anotacoes1"); obj.textEditor19:setName("textEditor19"); obj.layout198 = gui.fromHandle(_obj_newObject("layout")); obj.layout198:setParent(obj.scrollBox6); obj.layout198:setLeft(410); obj.layout198:setTop(0); obj.layout198:setWidth(400); obj.layout198:setHeight(580); obj.layout198:setName("layout198"); obj.rectangle42 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle42:setParent(obj.layout198); obj.rectangle42:setLeft(0); obj.rectangle42:setTop(0); obj.rectangle42:setWidth(400); obj.rectangle42:setHeight(580); obj.rectangle42:setColor("black"); obj.rectangle42:setXradius(5); obj.rectangle42:setYradius(5); obj.rectangle42:setCornerType("round"); obj.rectangle42:setName("rectangle42"); obj.label190 = gui.fromHandle(_obj_newObject("label")); obj.label190:setParent(obj.layout198); obj.label190:setLeft(0); obj.label190:setTop(0); obj.label190:setWidth(400); obj.label190:setHeight(20); obj.label190:setText("Anotações"); obj.label190:setHorzTextAlign("center"); obj.label190:setName("label190"); obj.textEditor20 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor20:setParent(obj.layout198); obj.textEditor20:setLeft(10); obj.textEditor20:setTop(25); obj.textEditor20:setWidth(380); obj.textEditor20:setHeight(540); obj.textEditor20:setField("anotacoes2"); obj.textEditor20:setName("textEditor20"); obj.layout199 = gui.fromHandle(_obj_newObject("layout")); obj.layout199:setParent(obj.scrollBox6); obj.layout199:setLeft(820); obj.layout199:setTop(0); obj.layout199:setWidth(400); obj.layout199:setHeight(580); obj.layout199:setName("layout199"); obj.rectangle43 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle43:setParent(obj.layout199); obj.rectangle43:setLeft(0); obj.rectangle43:setTop(0); obj.rectangle43:setWidth(400); obj.rectangle43:setHeight(580); obj.rectangle43:setColor("black"); obj.rectangle43:setXradius(5); obj.rectangle43:setYradius(5); obj.rectangle43:setCornerType("round"); obj.rectangle43:setName("rectangle43"); obj.label191 = gui.fromHandle(_obj_newObject("label")); obj.label191:setParent(obj.layout199); obj.label191:setLeft(0); obj.label191:setTop(0); obj.label191:setWidth(400); obj.label191:setHeight(20); obj.label191:setText("Anotações"); obj.label191:setHorzTextAlign("center"); obj.label191:setName("label191"); obj.textEditor21 = gui.fromHandle(_obj_newObject("textEditor")); obj.textEditor21:setParent(obj.layout199); obj.textEditor21:setLeft(10); obj.textEditor21:setTop(25); obj.textEditor21:setWidth(380); obj.textEditor21:setHeight(540); obj.textEditor21:setField("anotacoes3"); obj.textEditor21:setName("textEditor21"); obj.tab7 = gui.fromHandle(_obj_newObject("tab")); obj.tab7:setParent(obj.tabControl1); obj.tab7:setTitle("Creditos"); obj.tab7:setName("tab7"); obj.frmADnD7 = gui.fromHandle(_obj_newObject("form")); obj.frmADnD7:setParent(obj.tab7); obj.frmADnD7:setName("frmADnD7"); obj.frmADnD7:setAlign("client"); obj.frmADnD7:setTheme("dark"); obj.scrollBox7 = gui.fromHandle(_obj_newObject("scrollBox")); obj.scrollBox7:setParent(obj.frmADnD7); obj.scrollBox7:setAlign("client"); obj.scrollBox7:setName("scrollBox7"); obj.image7 = gui.fromHandle(_obj_newObject("image")); obj.image7:setParent(obj.scrollBox7); obj.image7:setLeft(0); obj.image7:setTop(0); obj.image7:setWidth(500); obj.image7:setHeight(250); obj.image7:setStyle("stretch"); obj.image7:setSRC("/Ficha ADnD 2e/images/ADnD.png"); obj.image7:setName("image7"); obj.image8 = gui.fromHandle(_obj_newObject("image")); obj.image8:setParent(obj.scrollBox7); obj.image8:setLeft(550); obj.image8:setTop(0); obj.image8:setWidth(250); obj.image8:setHeight(250); obj.image8:setStyle("stretch"); obj.image8:setSRC("/Ficha ADnD 2e/images/RPGmeister.jpg"); obj.image8:setName("image8"); obj.layout200 = gui.fromHandle(_obj_newObject("layout")); obj.layout200:setParent(obj.scrollBox7); obj.layout200:setLeft(550); obj.layout200:setTop(300); obj.layout200:setWidth(200); obj.layout200:setHeight(150); obj.layout200:setName("layout200"); obj.rectangle44 = gui.fromHandle(_obj_newObject("rectangle")); obj.rectangle44:setParent(obj.layout200); obj.rectangle44:setLeft(0); obj.rectangle44:setTop(0); obj.rectangle44:setWidth(200); obj.rectangle44:setHeight(150); obj.rectangle44:setColor("black"); obj.rectangle44:setXradius(15); obj.rectangle44:setYradius(15); obj.rectangle44:setCornerType("round"); obj.rectangle44:setName("rectangle44"); obj.label192 = gui.fromHandle(_obj_newObject("label")); obj.label192:setParent(obj.layout200); obj.label192:setLeft(0); obj.label192:setTop(10); obj.label192:setWidth(200); obj.label192:setHeight(20); obj.label192:setText("Programador: Vinny (Ambesek)"); obj.label192:setHorzTextAlign("center"); obj.label192:setName("label192"); obj.label193 = gui.fromHandle(_obj_newObject("label")); obj.label193:setParent(obj.layout200); obj.label193:setLeft(0); obj.label193:setTop(35); obj.label193:setWidth(200); obj.label193:setHeight(20); obj.label193:setText("Arte: Nefer (Nefertyne)"); obj.label193:setHorzTextAlign("center"); obj.label193:setName("label193"); obj.label194 = gui.fromHandle(_obj_newObject("label")); obj.label194:setParent(obj.layout200); obj.label194:setLeft(0); obj.label194:setTop(60); obj.label194:setWidth(200); obj.label194:setHeight(20); obj.label194:setText("Consultor: KONDAKJR (Kondak)"); obj.label194:setHorzTextAlign("center"); obj.label194:setName("label194"); obj.label195 = gui.fromHandle(_obj_newObject("label")); obj.label195:setParent(obj.layout200); obj.label195:setLeft(0); obj.label195:setTop(95); obj.label195:setWidth(200); obj.label195:setHeight(20); obj.label195:setText("Ficha feita para a mesa AD&D"); obj.label195:setHorzTextAlign("center"); obj.label195:setName("label195"); obj.label196 = gui.fromHandle(_obj_newObject("label")); obj.label196:setParent(obj.layout200); obj.label196:setLeft(0); obj.label196:setTop(120); obj.label196:setWidth(200); obj.label196:setHeight(20); obj.label196:setText("Sistema: AD&D 2e"); obj.label196:setHorzTextAlign("center"); obj.label196:setName("label196"); obj.label197 = gui.fromHandle(_obj_newObject("label")); obj.label197:setParent(obj.scrollBox7); obj.label197:setLeft(755); obj.label197:setTop(300); obj.label197:setWidth(100); obj.label197:setHeight(20); obj.label197:setText("Versão Atual: "); obj.label197:setHorzTextAlign("center"); obj.label197:setName("label197"); obj.image9 = gui.fromHandle(_obj_newObject("image")); obj.image9:setParent(obj.scrollBox7); obj.image9:setLeft(867); obj.image9:setTop(300); obj.image9:setWidth(100); obj.image9:setHeight(20); obj.image9:setStyle("autoFit"); obj.image9:setSRC("https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/versao01.png"); obj.image9:setName("image9"); obj.label198 = gui.fromHandle(_obj_newObject("label")); obj.label198:setParent(obj.scrollBox7); obj.label198:setLeft(755); obj.label198:setTop(325); obj.label198:setWidth(100); obj.label198:setHeight(20); obj.label198:setText("Ultima Versão: "); obj.label198:setHorzTextAlign("center"); obj.label198:setName("label198"); obj.image10 = gui.fromHandle(_obj_newObject("image")); obj.image10:setParent(obj.scrollBox7); obj.image10:setLeft(867); obj.image10:setTop(325); obj.image10:setWidth(100); obj.image10:setHeight(20); obj.image10:setStyle("autoFit"); obj.image10:setSRC("https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/release.png"); obj.image10:setName("image10"); obj.button1 = gui.fromHandle(_obj_newObject("button")); obj.button1:setParent(obj.scrollBox7); obj.button1:setLeft(755); obj.button1:setTop(350); obj.button1:setWidth(100); obj.button1:setText("Change Log"); obj.button1:setName("button1"); obj.button2 = gui.fromHandle(_obj_newObject("button")); obj.button2:setParent(obj.scrollBox7); obj.button2:setLeft(867); obj.button2:setTop(350); obj.button2:setWidth(100); obj.button2:setText("Atualizar"); obj.button2:setName("button2"); obj.label199 = gui.fromHandle(_obj_newObject("label")); obj.label199:setParent(obj.scrollBox7); obj.label199:setLeft(755); obj.label199:setTop(400); obj.label199:setWidth(200); obj.label199:setHeight(20); obj.label199:setText("Conheça as Mesas:"); obj.label199:setName("label199"); obj.button3 = gui.fromHandle(_obj_newObject("button")); obj.button3:setParent(obj.scrollBox7); obj.button3:setLeft(755); obj.button3:setTop(425); obj.button3:setWidth(100); obj.button3:setText("RPGmeister"); obj.button3:setName("button3"); obj.button4 = gui.fromHandle(_obj_newObject("button")); obj.button4:setParent(obj.scrollBox7); obj.button4:setLeft(867); obj.button4:setTop(425); obj.button4:setWidth(100); obj.button4:setText("ADnD 2e"); obj.button4:setName("button4"); obj._e_event0 = obj.edit69:addEventListener("onChange", function (self) sumCA(); end, obj); obj._e_event1 = obj.edit70:addEventListener("onChange", function (self) sumCA(); end, obj); obj._e_event2 = obj.edit71:addEventListener("onChange", function (self) sumCA(); end, obj); obj._e_event3 = obj.edit72:addEventListener("onChange", function (self) sumCA(); end, obj); obj._e_event4 = obj.edit311:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event5 = obj.edit312:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event6 = obj.edit314:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event7 = obj.edit315:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event8 = obj.edit317:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event9 = obj.edit318:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event10 = obj.edit320:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event11 = obj.edit321:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event12 = obj.edit323:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event13 = obj.edit324:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event14 = obj.edit326:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event15 = obj.edit327:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event16 = obj.edit329:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event17 = obj.edit330:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event18 = obj.edit332:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event19 = obj.edit333:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event20 = obj.edit335:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event21 = obj.edit336:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event22 = obj.edit338:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event23 = obj.edit339:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event24 = obj.edit341:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event25 = obj.edit342:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event26 = obj.edit344:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event27 = obj.edit345:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event28 = obj.edit347:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event29 = obj.edit348:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event30 = obj.edit350:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event31 = obj.edit351:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event32 = obj.edit353:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event33 = obj.edit354:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event34 = obj.edit356:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event35 = obj.edit357:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event36 = obj.edit359:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event37 = obj.edit360:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event38 = obj.edit362:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event39 = obj.edit363:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event40 = obj.edit365:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event41 = obj.edit366:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event42 = obj.edit368:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event43 = obj.edit369:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event44 = obj.edit371:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event45 = obj.edit372:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event46 = obj.edit374:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event47 = obj.edit375:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event48 = obj.edit377:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event49 = obj.edit378:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event50 = obj.edit380:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event51 = obj.edit381:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event52 = obj.edit383:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event53 = obj.edit384:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event54 = obj.edit386:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event55 = obj.edit387:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event56 = obj.edit389:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event57 = obj.edit390:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event58 = obj.edit392:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event59 = obj.edit393:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event60 = obj.edit395:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event61 = obj.edit396:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event62 = obj.edit398:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event63 = obj.edit399:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event64 = obj.edit401:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event65 = obj.edit402:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event66 = obj.edit404:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event67 = obj.edit405:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event68 = obj.edit407:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event69 = obj.edit408:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event70 = obj.edit410:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event71 = obj.edit411:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event72 = obj.edit413:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event73 = obj.edit414:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event74 = obj.edit416:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event75 = obj.edit417:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event76 = obj.edit419:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event77 = obj.edit420:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event78 = obj.edit422:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event79 = obj.edit423:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event80 = obj.edit425:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event81 = obj.edit426:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event82 = obj.edit428:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event83 = obj.edit429:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event84 = obj.edit431:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event85 = obj.edit432:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event86 = obj.edit434:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event87 = obj.edit435:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event88 = obj.edit437:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event89 = obj.edit438:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event90 = obj.edit440:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event91 = obj.edit441:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event92 = obj.edit443:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event93 = obj.edit444:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event94 = obj.edit446:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event95 = obj.edit447:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event96 = obj.edit449:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event97 = obj.edit450:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event98 = obj.edit452:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event99 = obj.edit453:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event100 = obj.edit455:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event101 = obj.edit456:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event102 = obj.edit458:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event103 = obj.edit459:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event104 = obj.edit461:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event105 = obj.edit462:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event106 = obj.edit464:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event107 = obj.edit465:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event108 = obj.edit467:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event109 = obj.edit468:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event110 = obj.edit470:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event111 = obj.edit471:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event112 = obj.edit473:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event113 = obj.edit474:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event114 = obj.edit476:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event115 = obj.edit477:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event116 = obj.edit479:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event117 = obj.edit480:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event118 = obj.edit482:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event119 = obj.edit483:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event120 = obj.edit485:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event121 = obj.edit486:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event122 = obj.edit488:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event123 = obj.edit489:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event124 = obj.edit491:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event125 = obj.edit492:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event126 = obj.edit494:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event127 = obj.edit495:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event128 = obj.edit497:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event129 = obj.edit498:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event130 = obj.edit500:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event131 = obj.edit501:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event132 = obj.edit503:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event133 = obj.edit504:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event134 = obj.edit506:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event135 = obj.edit507:addEventListener("onChange", function (self) sumPeso(); end, obj); obj._e_event136 = obj.edit546:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event137 = obj.edit549:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event138 = obj.edit552:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event139 = obj.edit555:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event140 = obj.edit558:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event141 = obj.edit561:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event142 = obj.edit564:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event143 = obj.edit567:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event144 = obj.edit570:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event145 = obj.edit573:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event146 = obj.edit576:addEventListener("onChange", function (self) sumCusto(); end, obj); obj._e_event147 = obj.button1:addEventListener("onClick", function (self) gui.openInBrowser('https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/Change%20Log.txt') end, obj); obj._e_event148 = obj.button2:addEventListener("onClick", function (self) gui.openInBrowser('https://dl.dropboxusercontent.com/u/31086811/Plugins/Ficha%20ADnD%20releases/Ficha%20AD%26D%202e.rpk') end, obj); obj._e_event149 = obj.button3:addEventListener("onClick", function (self) gui.openInBrowser('http://firecast.rrpg.com.br:90/a?a=pagRWEMesaInfo.actInfoMesa&mesaid=64070'); end, obj); obj._e_event150 = obj.button4:addEventListener("onClick", function (self) gui.openInBrowser('http://firecast.rrpg.com.br:90/a?a=pagRWEMesaInfo.actInfoMesa&mesaid=116028'); end, obj); function obj:_releaseEvents() __o_rrpgObjs.removeEventListenerById(self._e_event150); __o_rrpgObjs.removeEventListenerById(self._e_event149); __o_rrpgObjs.removeEventListenerById(self._e_event148); __o_rrpgObjs.removeEventListenerById(self._e_event147); __o_rrpgObjs.removeEventListenerById(self._e_event146); __o_rrpgObjs.removeEventListenerById(self._e_event145); __o_rrpgObjs.removeEventListenerById(self._e_event144); __o_rrpgObjs.removeEventListenerById(self._e_event143); __o_rrpgObjs.removeEventListenerById(self._e_event142); __o_rrpgObjs.removeEventListenerById(self._e_event141); __o_rrpgObjs.removeEventListenerById(self._e_event140); __o_rrpgObjs.removeEventListenerById(self._e_event139); __o_rrpgObjs.removeEventListenerById(self._e_event138); __o_rrpgObjs.removeEventListenerById(self._e_event137); __o_rrpgObjs.removeEventListenerById(self._e_event136); __o_rrpgObjs.removeEventListenerById(self._e_event135); __o_rrpgObjs.removeEventListenerById(self._e_event134); __o_rrpgObjs.removeEventListenerById(self._e_event133); __o_rrpgObjs.removeEventListenerById(self._e_event132); __o_rrpgObjs.removeEventListenerById(self._e_event131); __o_rrpgObjs.removeEventListenerById(self._e_event130); __o_rrpgObjs.removeEventListenerById(self._e_event129); __o_rrpgObjs.removeEventListenerById(self._e_event128); __o_rrpgObjs.removeEventListenerById(self._e_event127); __o_rrpgObjs.removeEventListenerById(self._e_event126); __o_rrpgObjs.removeEventListenerById(self._e_event125); __o_rrpgObjs.removeEventListenerById(self._e_event124); __o_rrpgObjs.removeEventListenerById(self._e_event123); __o_rrpgObjs.removeEventListenerById(self._e_event122); __o_rrpgObjs.removeEventListenerById(self._e_event121); __o_rrpgObjs.removeEventListenerById(self._e_event120); __o_rrpgObjs.removeEventListenerById(self._e_event119); __o_rrpgObjs.removeEventListenerById(self._e_event118); __o_rrpgObjs.removeEventListenerById(self._e_event117); __o_rrpgObjs.removeEventListenerById(self._e_event116); __o_rrpgObjs.removeEventListenerById(self._e_event115); __o_rrpgObjs.removeEventListenerById(self._e_event114); __o_rrpgObjs.removeEventListenerById(self._e_event113); __o_rrpgObjs.removeEventListenerById(self._e_event112); __o_rrpgObjs.removeEventListenerById(self._e_event111); __o_rrpgObjs.removeEventListenerById(self._e_event110); __o_rrpgObjs.removeEventListenerById(self._e_event109); __o_rrpgObjs.removeEventListenerById(self._e_event108); __o_rrpgObjs.removeEventListenerById(self._e_event107); __o_rrpgObjs.removeEventListenerById(self._e_event106); __o_rrpgObjs.removeEventListenerById(self._e_event105); __o_rrpgObjs.removeEventListenerById(self._e_event104); __o_rrpgObjs.removeEventListenerById(self._e_event103); __o_rrpgObjs.removeEventListenerById(self._e_event102); __o_rrpgObjs.removeEventListenerById(self._e_event101); __o_rrpgObjs.removeEventListenerById(self._e_event100); __o_rrpgObjs.removeEventListenerById(self._e_event99); __o_rrpgObjs.removeEventListenerById(self._e_event98); __o_rrpgObjs.removeEventListenerById(self._e_event97); __o_rrpgObjs.removeEventListenerById(self._e_event96); __o_rrpgObjs.removeEventListenerById(self._e_event95); __o_rrpgObjs.removeEventListenerById(self._e_event94); __o_rrpgObjs.removeEventListenerById(self._e_event93); __o_rrpgObjs.removeEventListenerById(self._e_event92); __o_rrpgObjs.removeEventListenerById(self._e_event91); __o_rrpgObjs.removeEventListenerById(self._e_event90); __o_rrpgObjs.removeEventListenerById(self._e_event89); __o_rrpgObjs.removeEventListenerById(self._e_event88); __o_rrpgObjs.removeEventListenerById(self._e_event87); __o_rrpgObjs.removeEventListenerById(self._e_event86); __o_rrpgObjs.removeEventListenerById(self._e_event85); __o_rrpgObjs.removeEventListenerById(self._e_event84); __o_rrpgObjs.removeEventListenerById(self._e_event83); __o_rrpgObjs.removeEventListenerById(self._e_event82); __o_rrpgObjs.removeEventListenerById(self._e_event81); __o_rrpgObjs.removeEventListenerById(self._e_event80); __o_rrpgObjs.removeEventListenerById(self._e_event79); __o_rrpgObjs.removeEventListenerById(self._e_event78); __o_rrpgObjs.removeEventListenerById(self._e_event77); __o_rrpgObjs.removeEventListenerById(self._e_event76); __o_rrpgObjs.removeEventListenerById(self._e_event75); __o_rrpgObjs.removeEventListenerById(self._e_event74); __o_rrpgObjs.removeEventListenerById(self._e_event73); __o_rrpgObjs.removeEventListenerById(self._e_event72); __o_rrpgObjs.removeEventListenerById(self._e_event71); __o_rrpgObjs.removeEventListenerById(self._e_event70); __o_rrpgObjs.removeEventListenerById(self._e_event69); __o_rrpgObjs.removeEventListenerById(self._e_event68); __o_rrpgObjs.removeEventListenerById(self._e_event67); __o_rrpgObjs.removeEventListenerById(self._e_event66); __o_rrpgObjs.removeEventListenerById(self._e_event65); __o_rrpgObjs.removeEventListenerById(self._e_event64); __o_rrpgObjs.removeEventListenerById(self._e_event63); __o_rrpgObjs.removeEventListenerById(self._e_event62); __o_rrpgObjs.removeEventListenerById(self._e_event61); __o_rrpgObjs.removeEventListenerById(self._e_event60); __o_rrpgObjs.removeEventListenerById(self._e_event59); __o_rrpgObjs.removeEventListenerById(self._e_event58); __o_rrpgObjs.removeEventListenerById(self._e_event57); __o_rrpgObjs.removeEventListenerById(self._e_event56); __o_rrpgObjs.removeEventListenerById(self._e_event55); __o_rrpgObjs.removeEventListenerById(self._e_event54); __o_rrpgObjs.removeEventListenerById(self._e_event53); __o_rrpgObjs.removeEventListenerById(self._e_event52); __o_rrpgObjs.removeEventListenerById(self._e_event51); __o_rrpgObjs.removeEventListenerById(self._e_event50); __o_rrpgObjs.removeEventListenerById(self._e_event49); __o_rrpgObjs.removeEventListenerById(self._e_event48); __o_rrpgObjs.removeEventListenerById(self._e_event47); __o_rrpgObjs.removeEventListenerById(self._e_event46); __o_rrpgObjs.removeEventListenerById(self._e_event45); __o_rrpgObjs.removeEventListenerById(self._e_event44); __o_rrpgObjs.removeEventListenerById(self._e_event43); __o_rrpgObjs.removeEventListenerById(self._e_event42); __o_rrpgObjs.removeEventListenerById(self._e_event41); __o_rrpgObjs.removeEventListenerById(self._e_event40); __o_rrpgObjs.removeEventListenerById(self._e_event39); __o_rrpgObjs.removeEventListenerById(self._e_event38); __o_rrpgObjs.removeEventListenerById(self._e_event37); __o_rrpgObjs.removeEventListenerById(self._e_event36); __o_rrpgObjs.removeEventListenerById(self._e_event35); __o_rrpgObjs.removeEventListenerById(self._e_event34); __o_rrpgObjs.removeEventListenerById(self._e_event33); __o_rrpgObjs.removeEventListenerById(self._e_event32); __o_rrpgObjs.removeEventListenerById(self._e_event31); __o_rrpgObjs.removeEventListenerById(self._e_event30); __o_rrpgObjs.removeEventListenerById(self._e_event29); __o_rrpgObjs.removeEventListenerById(self._e_event28); __o_rrpgObjs.removeEventListenerById(self._e_event27); __o_rrpgObjs.removeEventListenerById(self._e_event26); __o_rrpgObjs.removeEventListenerById(self._e_event25); __o_rrpgObjs.removeEventListenerById(self._e_event24); __o_rrpgObjs.removeEventListenerById(self._e_event23); __o_rrpgObjs.removeEventListenerById(self._e_event22); __o_rrpgObjs.removeEventListenerById(self._e_event21); __o_rrpgObjs.removeEventListenerById(self._e_event20); __o_rrpgObjs.removeEventListenerById(self._e_event19); __o_rrpgObjs.removeEventListenerById(self._e_event18); __o_rrpgObjs.removeEventListenerById(self._e_event17); __o_rrpgObjs.removeEventListenerById(self._e_event16); __o_rrpgObjs.removeEventListenerById(self._e_event15); __o_rrpgObjs.removeEventListenerById(self._e_event14); __o_rrpgObjs.removeEventListenerById(self._e_event13); __o_rrpgObjs.removeEventListenerById(self._e_event12); __o_rrpgObjs.removeEventListenerById(self._e_event11); __o_rrpgObjs.removeEventListenerById(self._e_event10); __o_rrpgObjs.removeEventListenerById(self._e_event9); __o_rrpgObjs.removeEventListenerById(self._e_event8); __o_rrpgObjs.removeEventListenerById(self._e_event7); __o_rrpgObjs.removeEventListenerById(self._e_event6); __o_rrpgObjs.removeEventListenerById(self._e_event5); __o_rrpgObjs.removeEventListenerById(self._e_event4); __o_rrpgObjs.removeEventListenerById(self._e_event3); __o_rrpgObjs.removeEventListenerById(self._e_event2); __o_rrpgObjs.removeEventListenerById(self._e_event1); __o_rrpgObjs.removeEventListenerById(self._e_event0); end; obj._oldLFMDestroy = obj.destroy; function obj:destroy() self:_releaseEvents(); if (self.handle ~= 0) and (self.setNodeDatabase ~= nil) then self:setNodeDatabase(nil); end; if self.edit273 ~= nil then self.edit273:destroy(); self.edit273 = nil; end; if self.layout83 ~= nil then self.layout83:destroy(); self.layout83 = nil; end; if self.label119 ~= nil then self.label119:destroy(); self.label119 = nil; end; if self.edit233 ~= nil then self.edit233:destroy(); self.edit233 = nil; end; if self.edit226 ~= nil then self.edit226:destroy(); self.edit226 = nil; end; if self.layout15 ~= nil then self.layout15:destroy(); self.layout15 = nil; end; if self.edit172 ~= nil then self.edit172:destroy(); self.edit172 = nil; end; if self.layout10 ~= nil then self.layout10:destroy(); self.layout10 = nil; end; if self.layout64 ~= nil then self.layout64:destroy(); self.layout64 = nil; end; if self.edit9 ~= nil then self.edit9:destroy(); self.edit9 = nil; end; if self.label97 ~= nil then self.label97:destroy(); self.label97 = nil; end; if self.label77 ~= nil then self.label77:destroy(); self.label77 = nil; end; if self.edit573 ~= nil then self.edit573:destroy(); self.edit573 = nil; end; if self.label128 ~= nil then self.label128:destroy(); self.label128 = nil; end; if self.layout17 ~= nil then self.layout17:destroy(); self.layout17 = nil; end; if self.edit262 ~= nil then self.edit262:destroy(); self.edit262 = nil; end; if self.label45 ~= nil then self.label45:destroy(); self.label45 = nil; end; if self.layout47 ~= nil then self.layout47:destroy(); self.layout47 = nil; end; if self.edit568 ~= nil then self.edit568:destroy(); self.edit568 = nil; end; if self.label75 ~= nil then self.label75:destroy(); self.label75 = nil; end; if self.edit480 ~= nil then self.edit480:destroy(); self.edit480 = nil; end; if self.label158 ~= nil then self.label158:destroy(); self.label158 = nil; end; if self.edit76 ~= nil then self.edit76:destroy(); self.edit76 = nil; end; if self.label70 ~= nil then self.label70:destroy(); self.label70 = nil; end; if self.layout24 ~= nil then self.layout24:destroy(); self.layout24 = nil; end; if self.edit431 ~= nil then self.edit431:destroy(); self.edit431 = nil; end; if self.label143 ~= nil then self.label143:destroy(); self.label143 = nil; end; if self.label35 ~= nil then self.label35:destroy(); self.label35 = nil; end; if self.layout123 ~= nil then self.layout123:destroy(); self.layout123 = nil; end; if self.edit457 ~= nil then self.edit457:destroy(); self.edit457 = nil; end; if self.edit82 ~= nil then self.edit82:destroy(); self.edit82 = nil; end; if self.edit462 ~= nil then self.edit462:destroy(); self.edit462 = nil; end; if self.edit508 ~= nil then self.edit508:destroy(); self.edit508 = nil; end; if self.label164 ~= nil then self.label164:destroy(); self.label164 = nil; end; if self.edit523 ~= nil then self.edit523:destroy(); self.edit523 = nil; end; if self.edit570 ~= nil then self.edit570:destroy(); self.edit570 = nil; end; if self.label192 ~= nil then self.label192:destroy(); self.label192 = nil; end; if self.edit366 ~= nil then self.edit366:destroy(); self.edit366 = nil; end; if self.label186 ~= nil then self.label186:destroy(); self.label186 = nil; end; if self.label8 ~= nil then self.label8:destroy(); self.label8 = nil; end; if self.label125 ~= nil then self.label125:destroy(); self.label125 = nil; end; if self.edit11 ~= nil then self.edit11:destroy(); self.edit11 = nil; end; if self.edit429 ~= nil then self.edit429:destroy(); self.edit429 = nil; end; if self.image1 ~= nil then self.image1:destroy(); self.image1 = nil; end; if self.layout88 ~= nil then self.layout88:destroy(); self.layout88 = nil; end; if self.rectangle17 ~= nil then self.rectangle17:destroy(); self.rectangle17 = nil; end; if self.edit442 ~= nil then self.edit442:destroy(); self.edit442 = nil; end; if self.layout32 ~= nil then self.layout32:destroy(); self.layout32 = nil; end; if self.label49 ~= nil then self.label49:destroy(); self.label49 = nil; end; if self.edit464 ~= nil then self.edit464:destroy(); self.edit464 = nil; end; if self.edit156 ~= nil then self.edit156:destroy(); self.edit156 = nil; end; if self.edit466 ~= nil then self.edit466:destroy(); self.edit466 = nil; end; if self.layout37 ~= nil then self.layout37:destroy(); self.layout37 = nil; end; if self.edit267 ~= nil then self.edit267:destroy(); self.edit267 = nil; end; if self.edit504 ~= nil then self.edit504:destroy(); self.edit504 = nil; end; if self.label163 ~= nil then self.label163:destroy(); self.label163 = nil; end; if self.edit532 ~= nil then self.edit532:destroy(); self.edit532 = nil; end; if self.textEditor15 ~= nil then self.textEditor15:destroy(); self.textEditor15 = nil; end; if self.edit519 ~= nil then self.edit519:destroy(); self.edit519 = nil; end; if self.label162 ~= nil then self.label162:destroy(); self.label162 = nil; end; if self.layout194 ~= nil then self.layout194:destroy(); self.layout194 = nil; end; if self.label195 ~= nil then self.label195:destroy(); self.label195 = nil; end; if self.label52 ~= nil then self.label52:destroy(); self.label52 = nil; end; if self.edit312 ~= nil then self.edit312:destroy(); self.edit312 = nil; end; if self.edit115 ~= nil then self.edit115:destroy(); self.edit115 = nil; end; if self.edit400 ~= nil then self.edit400:destroy(); self.edit400 = nil; end; if self.layout174 ~= nil then self.layout174:destroy(); self.layout174 = nil; end; if self.label48 ~= nil then self.label48:destroy(); self.label48 = nil; end; if self.edit214 ~= nil then self.edit214:destroy(); self.edit214 = nil; end; if self.edit339 ~= nil then self.edit339:destroy(); self.edit339 = nil; end; if self.edit260 ~= nil then self.edit260:destroy(); self.edit260 = nil; end; if self.textEditor4 ~= nil then self.textEditor4:destroy(); self.textEditor4 = nil; end; if self.edit159 ~= nil then self.edit159:destroy(); self.edit159 = nil; end; if self.edit518 ~= nil then self.edit518:destroy(); self.edit518 = nil; end; if self.layout106 ~= nil then self.layout106:destroy(); self.layout106 = nil; end; if self.label1 ~= nil then self.label1:destroy(); self.label1 = nil; end; if self.edit404 ~= nil then self.edit404:destroy(); self.edit404 = nil; end; if self.image9 ~= nil then self.image9:destroy(); self.image9 = nil; end; if self.edit510 ~= nil then self.edit510:destroy(); self.edit510 = nil; end; if self.edit235 ~= nil then self.edit235:destroy(); self.edit235 = nil; end; if self.edit446 ~= nil then self.edit446:destroy(); self.edit446 = nil; end; if self.edit347 ~= nil then self.edit347:destroy(); self.edit347 = nil; end; if self.edit465 ~= nil then self.edit465:destroy(); self.edit465 = nil; end; if self.edit475 ~= nil then self.edit475:destroy(); self.edit475 = nil; end; if self.layout126 ~= nil then self.layout126:destroy(); self.layout126 = nil; end; if self.layout5 ~= nil then self.layout5:destroy(); self.layout5 = nil; end; if self.edit343 ~= nil then self.edit343:destroy(); self.edit343 = nil; end; if self.layout55 ~= nil then self.layout55:destroy(); self.layout55 = nil; end; if self.edit129 ~= nil then self.edit129:destroy(); self.edit129 = nil; end; if self.edit142 ~= nil then self.edit142:destroy(); self.edit142 = nil; end; if self.rectangle2 ~= nil then self.rectangle2:destroy(); self.rectangle2 = nil; end; if self.edit251 ~= nil then self.edit251:destroy(); self.edit251 = nil; end; if self.layout78 ~= nil then self.layout78:destroy(); self.layout78 = nil; end; if self.label111 ~= nil then self.label111:destroy(); self.label111 = nil; end; if self.edit549 ~= nil then self.edit549:destroy(); self.edit549 = nil; end; if self.edit304 ~= nil then self.edit304:destroy(); self.edit304 = nil; end; if self.image10 ~= nil then self.image10:destroy(); self.image10 = nil; end; if self.label19 ~= nil then self.label19:destroy(); self.label19 = nil; end; if self.edit182 ~= nil then self.edit182:destroy(); self.edit182 = nil; end; if self.layout103 ~= nil then self.layout103:destroy(); self.layout103 = nil; end; if self.label116 ~= nil then self.label116:destroy(); self.label116 = nil; end; if self.edit309 ~= nil then self.edit309:destroy(); self.edit309 = nil; end; if self.edit67 ~= nil then self.edit67:destroy(); self.edit67 = nil; end; if self.rectangle12 ~= nil then self.rectangle12:destroy(); self.rectangle12 = nil; end; if self.edit369 ~= nil then self.edit369:destroy(); self.edit369 = nil; end; if self.label139 ~= nil then self.label139:destroy(); self.label139 = nil; end; if self.edit176 ~= nil then self.edit176:destroy(); self.edit176 = nil; end; if self.edit440 ~= nil then self.edit440:destroy(); self.edit440 = nil; end; if self.layout35 ~= nil then self.layout35:destroy(); self.layout35 = nil; end; if self.edit501 ~= nil then self.edit501:destroy(); self.edit501 = nil; end; if self.edit221 ~= nil then self.edit221:destroy(); self.edit221 = nil; end; if self.edit572 ~= nil then self.edit572:destroy(); self.edit572 = nil; end; if self.layout191 ~= nil then self.layout191:destroy(); self.layout191 = nil; end; if self.edit258 ~= nil then self.edit258:destroy(); self.edit258 = nil; end; if self.layout183 ~= nil then self.layout183:destroy(); self.layout183 = nil; end; if self.edit348 ~= nil then self.edit348:destroy(); self.edit348 = nil; end; if self.layout186 ~= nil then self.layout186:destroy(); self.layout186 = nil; end; if self.edit513 ~= nil then self.edit513:destroy(); self.edit513 = nil; end; if self.label184 ~= nil then self.label184:destroy(); self.label184 = nil; end; if self.label2 ~= nil then self.label2:destroy(); self.label2 = nil; end; if self.label38 ~= nil then self.label38:destroy(); self.label38 = nil; end; if self.edit476 ~= nil then self.edit476:destroy(); self.edit476 = nil; end; if self.edit27 ~= nil then self.edit27:destroy(); self.edit27 = nil; end; if self.layout14 ~= nil then self.layout14:destroy(); self.layout14 = nil; end; if self.label115 ~= nil then self.label115:destroy(); self.label115 = nil; end; if self.scrollBox5 ~= nil then self.scrollBox5:destroy(); self.scrollBox5 = nil; end; if self.edit161 ~= nil then self.edit161:destroy(); self.edit161 = nil; end; if self.edit241 ~= nil then self.edit241:destroy(); self.edit241 = nil; end; if self.edit62 ~= nil then self.edit62:destroy(); self.edit62 = nil; end; if self.label185 ~= nil then self.label185:destroy(); self.label185 = nil; end; if self.edit247 ~= nil then self.edit247:destroy(); self.edit247 = nil; end; if self.edit134 ~= nil then self.edit134:destroy(); self.edit134 = nil; end; if self.edit419 ~= nil then self.edit419:destroy(); self.edit419 = nil; end; if self.layout146 ~= nil then self.layout146:destroy(); self.layout146 = nil; end; if self.label142 ~= nil then self.label142:destroy(); self.label142 = nil; end; if self.layout162 ~= nil then self.layout162:destroy(); self.layout162 = nil; end; if self.textEditor9 ~= nil then self.textEditor9:destroy(); self.textEditor9 = nil; end; if self.edit163 ~= nil then self.edit163:destroy(); self.edit163 = nil; end; if self.scrollBox7 ~= nil then self.scrollBox7:destroy(); self.scrollBox7 = nil; end; if self.edit360 ~= nil then self.edit360:destroy(); self.edit360 = nil; end; if self.layout30 ~= nil then self.layout30:destroy(); self.layout30 = nil; end; if self.edit542 ~= nil then self.edit542:destroy(); self.edit542 = nil; end; if self.edit373 ~= nil then self.edit373:destroy(); self.edit373 = nil; end; if self.edit332 ~= nil then self.edit332:destroy(); self.edit332 = nil; end; if self.layout135 ~= nil then self.layout135:destroy(); self.layout135 = nil; end; if self.label73 ~= nil then self.label73:destroy(); self.label73 = nil; end; if self.layout59 ~= nil then self.layout59:destroy(); self.layout59 = nil; end; if self.edit489 ~= nil then self.edit489:destroy(); self.edit489 = nil; end; if self.edit499 ~= nil then self.edit499:destroy(); self.edit499 = nil; end; if self.edit92 ~= nil then self.edit92:destroy(); self.edit92 = nil; end; if self.label32 ~= nil then self.label32:destroy(); self.label32 = nil; end; if self.label24 ~= nil then self.label24:destroy(); self.label24 = nil; end; if self.edit54 ~= nil then self.edit54:destroy(); self.edit54 = nil; end; if self.edit313 ~= nil then self.edit313:destroy(); self.edit313 = nil; end; if self.rectangle10 ~= nil then self.rectangle10:destroy(); self.rectangle10 = nil; end; if self.edit287 ~= nil then self.edit287:destroy(); self.edit287 = nil; end; if self.tab2 ~= nil then self.tab2:destroy(); self.tab2 = nil; end; if self.frmADnD7 ~= nil then self.frmADnD7:destroy(); self.frmADnD7 = nil; end; if self.edit358 ~= nil then self.edit358:destroy(); self.edit358 = nil; end; if self.edit24 ~= nil then self.edit24:destroy(); self.edit24 = nil; end; if self.edit59 ~= nil then self.edit59:destroy(); self.edit59 = nil; end; if self.rectangle38 ~= nil then self.rectangle38:destroy(); self.rectangle38 = nil; end; if self.edit249 ~= nil then self.edit249:destroy(); self.edit249 = nil; end; if self.edit252 ~= nil then self.edit252:destroy(); self.edit252 = nil; end; if self.edit4 ~= nil then self.edit4:destroy(); self.edit4 = nil; end; if self.layout25 ~= nil then self.layout25:destroy(); self.layout25 = nil; end; if self.edit520 ~= nil then self.edit520:destroy(); self.edit520 = nil; end; if self.label6 ~= nil then self.label6:destroy(); self.label6 = nil; end; if self.edit128 ~= nil then self.edit128:destroy(); self.edit128 = nil; end; if self.edit355 ~= nil then self.edit355:destroy(); self.edit355 = nil; end; if self.label129 ~= nil then self.label129:destroy(); self.label129 = nil; end; if self.edit473 ~= nil then self.edit473:destroy(); self.edit473 = nil; end; if self.layout200 ~= nil then self.layout200:destroy(); self.layout200 = nil; end; if self.edit490 ~= nil then self.edit490:destroy(); self.edit490 = nil; end; if self.edit187 ~= nil then self.edit187:destroy(); self.edit187 = nil; end; if self.edit483 ~= nil then self.edit483:destroy(); self.edit483 = nil; end; if self.edit127 ~= nil then self.edit127:destroy(); self.edit127 = nil; end; if self.edit218 ~= nil then self.edit218:destroy(); self.edit218 = nil; end; if self.edit165 ~= nil then self.edit165:destroy(); self.edit165 = nil; end; if self.edit208 ~= nil then self.edit208:destroy(); self.edit208 = nil; end; if self.layout26 ~= nil then self.layout26:destroy(); self.layout26 = nil; end; if self.edit8 ~= nil then self.edit8:destroy(); self.edit8 = nil; end; if self.label196 ~= nil then self.label196:destroy(); self.label196 = nil; end; if self.edit145 ~= nil then self.edit145:destroy(); self.edit145 = nil; end; if self.label53 ~= nil then self.label53:destroy(); self.label53 = nil; end; if self.label133 ~= nil then self.label133:destroy(); self.label133 = nil; end; if self.edit21 ~= nil then self.edit21:destroy(); self.edit21 = nil; end; if self.edit302 ~= nil then self.edit302:destroy(); self.edit302 = nil; end; if self.edit390 ~= nil then self.edit390:destroy(); self.edit390 = nil; end; if self.label42 ~= nil then self.label42:destroy(); self.label42 = nil; end; if self.edit250 ~= nil then self.edit250:destroy(); self.edit250 = nil; end; if self.edit261 ~= nil then self.edit261:destroy(); self.edit261 = nil; end; if self.edit133 ~= nil then self.edit133:destroy(); self.edit133 = nil; end; if self.rectangle20 ~= nil then self.rectangle20:destroy(); self.rectangle20 = nil; end; if self.edit308 ~= nil then self.edit308:destroy(); self.edit308 = nil; end; if self.edit559 ~= nil then self.edit559:destroy(); self.edit559 = nil; end; if self.edit300 ~= nil then self.edit300:destroy(); self.edit300 = nil; end; if self.edit13 ~= nil then self.edit13:destroy(); self.edit13 = nil; end; if self.edit225 ~= nil then self.edit225:destroy(); self.edit225 = nil; end; if self.edit81 ~= nil then self.edit81:destroy(); self.edit81 = nil; end; if self.label181 ~= nil then self.label181:destroy(); self.label181 = nil; end; if self.label81 ~= nil then self.label81:destroy(); self.label81 = nil; end; if self.label166 ~= nil then self.label166:destroy(); self.label166 = nil; end; if self.layout130 ~= nil then self.layout130:destroy(); self.layout130 = nil; end; if self.edit166 ~= nil then self.edit166:destroy(); self.edit166 = nil; end; if self.label199 ~= nil then self.label199:destroy(); self.label199 = nil; end; if self.edit184 ~= nil then self.edit184:destroy(); self.edit184 = nil; end; if self.edit398 ~= nil then self.edit398:destroy(); self.edit398 = nil; end; if self.edit529 ~= nil then self.edit529:destroy(); self.edit529 = nil; end; if self.layout70 ~= nil then self.layout70:destroy(); self.layout70 = nil; end; if self.edit389 ~= nil then self.edit389:destroy(); self.edit389 = nil; end; if self.textEditor10 ~= nil then self.textEditor10:destroy(); self.textEditor10 = nil; end; if self.edit314 ~= nil then self.edit314:destroy(); self.edit314 = nil; end; if self.edit17 ~= nil then self.edit17:destroy(); self.edit17 = nil; end; if self.edit170 ~= nil then self.edit170:destroy(); self.edit170 = nil; end; if self.edit439 ~= nil then self.edit439:destroy(); self.edit439 = nil; end; if self.edit553 ~= nil then self.edit553:destroy(); self.edit553 = nil; end; if self.layout181 ~= nil then self.layout181:destroy(); self.layout181 = nil; end; if self.layout67 ~= nil then self.layout67:destroy(); self.layout67 = nil; end; if self.edit87 ~= nil then self.edit87:destroy(); self.edit87 = nil; end; if self.layout29 ~= nil then self.layout29:destroy(); self.layout29 = nil; end; if self.label79 ~= nil then self.label79:destroy(); self.label79 = nil; end; if self.edit581 ~= nil then self.edit581:destroy(); self.edit581 = nil; end; if self.edit113 ~= nil then self.edit113:destroy(); self.edit113 = nil; end; if self.label11 ~= nil then self.label11:destroy(); self.label11 = nil; end; if self.edit15 ~= nil then self.edit15:destroy(); self.edit15 = nil; end; if self.label20 ~= nil then self.label20:destroy(); self.label20 = nil; end; if self.edit211 ~= nil then self.edit211:destroy(); self.edit211 = nil; end; if self.rectangle36 ~= nil then self.rectangle36:destroy(); self.rectangle36 = nil; end; if self.edit393 ~= nil then self.edit393:destroy(); self.edit393 = nil; end; if self.label7 ~= nil then self.label7:destroy(); self.label7 = nil; end; if self.label50 ~= nil then self.label50:destroy(); self.label50 = nil; end; if self.edit543 ~= nil then self.edit543:destroy(); self.edit543 = nil; end; if self.edit547 ~= nil then self.edit547:destroy(); self.edit547 = nil; end; if self.edit154 ~= nil then self.edit154:destroy(); self.edit154 = nil; end; if self.layout170 ~= nil then self.layout170:destroy(); self.layout170 = nil; end; if self.edit278 ~= nil then self.edit278:destroy(); self.edit278 = nil; end; if self.scrollBox4 ~= nil then self.scrollBox4:destroy(); self.scrollBox4 = nil; end; if self.layout22 ~= nil then self.layout22:destroy(); self.layout22 = nil; end; if self.edit281 ~= nil then self.edit281:destroy(); self.edit281 = nil; end; if self.edit556 ~= nil then self.edit556:destroy(); self.edit556 = nil; end; if self.edit135 ~= nil then self.edit135:destroy(); self.edit135 = nil; end; if self.edit191 ~= nil then self.edit191:destroy(); self.edit191 = nil; end; if self.edit32 ~= nil then self.edit32:destroy(); self.edit32 = nil; end; if self.edit359 ~= nil then self.edit359:destroy(); self.edit359 = nil; end; if self.edit500 ~= nil then self.edit500:destroy(); self.edit500 = nil; end; if self.layout75 ~= nil then self.layout75:destroy(); self.layout75 = nil; end; if self.edit459 ~= nil then self.edit459:destroy(); self.edit459 = nil; end; if self.edit215 ~= nil then self.edit215:destroy(); self.edit215 = nil; end; if self.edit528 ~= nil then self.edit528:destroy(); self.edit528 = nil; end; if self.edit567 ~= nil then self.edit567:destroy(); self.edit567 = nil; end; if self.rectangle34 ~= nil then self.rectangle34:destroy(); self.rectangle34 = nil; end; if self.label110 ~= nil then self.label110:destroy(); self.label110 = nil; end; if self.edit222 ~= nil then self.edit222:destroy(); self.edit222 = nil; end; if self.edit333 ~= nil then self.edit333:destroy(); self.edit333 = nil; end; if self.edit310 ~= nil then self.edit310:destroy(); self.edit310 = nil; end; if self.rectangle37 ~= nil then self.rectangle37:destroy(); self.rectangle37 = nil; end; if self.layout58 ~= nil then self.layout58:destroy(); self.layout58 = nil; end; if self.label151 ~= nil then self.label151:destroy(); self.label151 = nil; end; if self.label138 ~= nil then self.label138:destroy(); self.label138 = nil; end; if self.edit561 ~= nil then self.edit561:destroy(); self.edit561 = nil; end; if self.layout110 ~= nil then self.layout110:destroy(); self.layout110 = nil; end; if self.label40 ~= nil then self.label40:destroy(); self.label40 = nil; end; if self.edit492 ~= nil then self.edit492:destroy(); self.edit492 = nil; end; if self.edit544 ~= nil then self.edit544:destroy(); self.edit544 = nil; end; if self.image5 ~= nil then self.image5:destroy(); self.image5 = nil; end; if self.layout114 ~= nil then self.layout114:destroy(); self.layout114 = nil; end; if self.edit28 ~= nil then self.edit28:destroy(); self.edit28 = nil; end; if self.label57 ~= nil then self.label57:destroy(); self.label57 = nil; end; if self.label188 ~= nil then self.label188:destroy(); self.label188 = nil; end; if self.image7 ~= nil then self.image7:destroy(); self.image7 = nil; end; if self.edit557 ~= nil then self.edit557:destroy(); self.edit557 = nil; end; if self.edit71 ~= nil then self.edit71:destroy(); self.edit71 = nil; end; if self.label71 ~= nil then self.label71:destroy(); self.label71 = nil; end; if self.edit416 ~= nil then self.edit416:destroy(); self.edit416 = nil; end; if self.edit85 ~= nil then self.edit85:destroy(); self.edit85 = nil; end; if self.edit201 ~= nil then self.edit201:destroy(); self.edit201 = nil; end; if self.edit479 ~= nil then self.edit479:destroy(); self.edit479 = nil; end; if self.layout38 ~= nil then self.layout38:destroy(); self.layout38 = nil; end; if self.label177 ~= nil then self.label177:destroy(); self.label177 = nil; end; if self.layout13 ~= nil then self.layout13:destroy(); self.layout13 = nil; end; if self.edit192 ~= nil then self.edit192:destroy(); self.edit192 = nil; end; if self.layout156 ~= nil then self.layout156:destroy(); self.layout156 = nil; end; if self.label144 ~= nil then self.label144:destroy(); self.label144 = nil; end; if self.layout8 ~= nil then self.layout8:destroy(); self.layout8 = nil; end; if self.edit246 ~= nil then self.edit246:destroy(); self.edit246 = nil; end; if self.label27 ~= nil then self.label27:destroy(); self.label27 = nil; end; if self.label68 ~= nil then self.label68:destroy(); self.label68 = nil; end; if self.edit382 ~= nil then self.edit382:destroy(); self.edit382 = nil; end; if self.edit454 ~= nil then self.edit454:destroy(); self.edit454 = nil; end; if self.edit298 ~= nil then self.edit298:destroy(); self.edit298 = nil; end; if self.edit526 ~= nil then self.edit526:destroy(); self.edit526 = nil; end; if self.label67 ~= nil then self.label67:destroy(); self.label67 = nil; end; if self.edit169 ~= nil then self.edit169:destroy(); self.edit169 = nil; end; if self.layout68 ~= nil then self.layout68:destroy(); self.layout68 = nil; end; if self.edit530 ~= nil then self.edit530:destroy(); self.edit530 = nil; end; if self.edit244 ~= nil then self.edit244:destroy(); self.edit244 = nil; end; if self.layout105 ~= nil then self.layout105:destroy(); self.layout105 = nil; end; if self.label140 ~= nil then self.label140:destroy(); self.label140 = nil; end; if self.edit120 ~= nil then self.edit120:destroy(); self.edit120 = nil; end; if self.label69 ~= nil then self.label69:destroy(); self.label69 = nil; end; if self.layout171 ~= nil then self.layout171:destroy(); self.layout171 = nil; end; if self.edit114 ~= nil then self.edit114:destroy(); self.edit114 = nil; end; if self.edit397 ~= nil then self.edit397:destroy(); self.edit397 = nil; end; if self.label105 ~= nil then self.label105:destroy(); self.label105 = nil; end; if self.layout177 ~= nil then self.layout177:destroy(); self.layout177 = nil; end; if self.label154 ~= nil then self.label154:destroy(); self.label154 = nil; end; if self.label34 ~= nil then self.label34:destroy(); self.label34 = nil; end; if self.edit5 ~= nil then self.edit5:destroy(); self.edit5 = nil; end; if self.edit204 ~= nil then self.edit204:destroy(); self.edit204 = nil; end; if self.edit467 ~= nil then self.edit467:destroy(); self.edit467 = nil; end; if self.label145 ~= nil then self.label145:destroy(); self.label145 = nil; end; if self.tab5 ~= nil then self.tab5:destroy(); self.tab5 = nil; end; if self.label88 ~= nil then self.label88:destroy(); self.label88 = nil; end; if self.layout199 ~= nil then self.layout199:destroy(); self.layout199 = nil; end; if self.rectangle15 ~= nil then self.rectangle15:destroy(); self.rectangle15 = nil; end; if self.edit365 ~= nil then self.edit365:destroy(); self.edit365 = nil; end; if self.edit540 ~= nil then self.edit540:destroy(); self.edit540 = nil; end; if self.edit451 ~= nil then self.edit451:destroy(); self.edit451 = nil; end; if self.edit68 ~= nil then self.edit68:destroy(); self.edit68 = nil; end; if self.edit72 ~= nil then self.edit72:destroy(); self.edit72 = nil; end; if self.layout92 ~= nil then self.layout92:destroy(); self.layout92 = nil; end; if self.textEditor5 ~= nil then self.textEditor5:destroy(); self.textEditor5 = nil; end; if self.label131 ~= nil then self.label131:destroy(); self.label131 = nil; end; if self.label16 ~= nil then self.label16:destroy(); self.label16 = nil; end; if self.edit391 ~= nil then self.edit391:destroy(); self.edit391 = nil; end; if self.edit158 ~= nil then self.edit158:destroy(); self.edit158 = nil; end; if self.edit256 ~= nil then self.edit256:destroy(); self.edit256 = nil; end; if self.layout178 ~= nil then self.layout178:destroy(); self.layout178 = nil; end; if self.edit582 ~= nil then self.edit582:destroy(); self.edit582 = nil; end; if self.edit1 ~= nil then self.edit1:destroy(); self.edit1 = nil; end; if self.edit79 ~= nil then self.edit79:destroy(); self.edit79 = nil; end; if self.textEditor17 ~= nil then self.textEditor17:destroy(); self.textEditor17 = nil; end; if self.edit283 ~= nil then self.edit283:destroy(); self.edit283 = nil; end; if self.label101 ~= nil then self.label101:destroy(); self.label101 = nil; end; if self.edit353 ~= nil then self.edit353:destroy(); self.edit353 = nil; end; if self.edit402 ~= nil then self.edit402:destroy(); self.edit402 = nil; end; if self.layout4 ~= nil then self.layout4:destroy(); self.layout4 = nil; end; if self.edit291 ~= nil then self.edit291:destroy(); self.edit291 = nil; end; if self.edit101 ~= nil then self.edit101:destroy(); self.edit101 = nil; end; if self.edit349 ~= nil then self.edit349:destroy(); self.edit349 = nil; end; if self.edit264 ~= nil then self.edit264:destroy(); self.edit264 = nil; end; if self.edit231 ~= nil then self.edit231:destroy(); self.edit231 = nil; end; if self.edit164 ~= nil then self.edit164:destroy(); self.edit164 = nil; end; if self.edit326 ~= nil then self.edit326:destroy(); self.edit326 = nil; end; if self.label58 ~= nil then self.label58:destroy(); self.label58 = nil; end; if self.rectangle44 ~= nil then self.rectangle44:destroy(); self.rectangle44 = nil; end; if self.layout20 ~= nil then self.layout20:destroy(); self.layout20 = nil; end; if self.edit558 ~= nil then self.edit558:destroy(); self.edit558 = nil; end; if self.label155 ~= nil then self.label155:destroy(); self.label155 = nil; end; if self.layout173 ~= nil then self.layout173:destroy(); self.layout173 = nil; end; if self.layout18 ~= nil then self.layout18:destroy(); self.layout18 = nil; end; if self.edit449 ~= nil then self.edit449:destroy(); self.edit449 = nil; end; if self.edit338 ~= nil then self.edit338:destroy(); self.edit338 = nil; end; if self.edit139 ~= nil then self.edit139:destroy(); self.edit139 = nil; end; if self.rectangle6 ~= nil then self.rectangle6:destroy(); self.rectangle6 = nil; end; if self.edit354 ~= nil then self.edit354:destroy(); self.edit354 = nil; end; if self.label21 ~= nil then self.label21:destroy(); self.label21 = nil; end; if self.label120 ~= nil then self.label120:destroy(); self.label120 = nil; end; if self.edit293 ~= nil then self.edit293:destroy(); self.edit293 = nil; end; if self.edit481 ~= nil then self.edit481:destroy(); self.edit481 = nil; end; if self.edit515 ~= nil then self.edit515:destroy(); self.edit515 = nil; end; if self.layout138 ~= nil then self.layout138:destroy(); self.layout138 = nil; end; if self.layout151 ~= nil then self.layout151:destroy(); self.layout151 = nil; end; if self.edit86 ~= nil then self.edit86:destroy(); self.edit86 = nil; end; if self.edit143 ~= nil then self.edit143:destroy(); self.edit143 = nil; end; if self.layout129 ~= nil then self.layout129:destroy(); self.layout129 = nil; end; if self.edit105 ~= nil then self.edit105:destroy(); self.edit105 = nil; end; if self.edit421 ~= nil then self.edit421:destroy(); self.edit421 = nil; end; if self.edit239 ~= nil then self.edit239:destroy(); self.edit239 = nil; end; if self.edit361 ~= nil then self.edit361:destroy(); self.edit361 = nil; end; if self.layout153 ~= nil then self.layout153:destroy(); self.layout153 = nil; end; if self.textEditor20 ~= nil then self.textEditor20:destroy(); self.textEditor20 = nil; end; if self.edit230 ~= nil then self.edit230:destroy(); self.edit230 = nil; end; if self.edit428 ~= nil then self.edit428:destroy(); self.edit428 = nil; end; if self.edit90 ~= nil then self.edit90:destroy(); self.edit90 = nil; end; if self.label18 ~= nil then self.label18:destroy(); self.label18 = nil; end; if self.frmADnD4 ~= nil then self.frmADnD4:destroy(); self.frmADnD4 = nil; end; if self.textEditor8 ~= nil then self.textEditor8:destroy(); self.textEditor8 = nil; end; if self.edit3 ~= nil then self.edit3:destroy(); self.edit3 = nil; end; if self.layout33 ~= nil then self.layout33:destroy(); self.layout33 = nil; end; if self.layout117 ~= nil then self.layout117:destroy(); self.layout117 = nil; end; if self.label117 ~= nil then self.label117:destroy(); self.label117 = nil; end; if self.edit329 ~= nil then self.edit329:destroy(); self.edit329 = nil; end; if self.layout21 ~= nil then self.layout21:destroy(); self.layout21 = nil; end; if self.edit311 ~= nil then self.edit311:destroy(); self.edit311 = nil; end; if self.edit140 ~= nil then self.edit140:destroy(); self.edit140 = nil; end; if self.scrollBox1 ~= nil then self.scrollBox1:destroy(); self.scrollBox1 = nil; end; if self.edit270 ~= nil then self.edit270:destroy(); self.edit270 = nil; end; if self.label33 ~= nil then self.label33:destroy(); self.label33 = nil; end; if self.rectangle11 ~= nil then self.rectangle11:destroy(); self.rectangle11 = nil; end; if self.edit371 ~= nil then self.edit371:destroy(); self.edit371 = nil; end; if self.label44 ~= nil then self.label44:destroy(); self.label44 = nil; end; if self.layout142 ~= nil then self.layout142:destroy(); self.layout142 = nil; end; if self.edit46 ~= nil then self.edit46:destroy(); self.edit46 = nil; end; if self.label95 ~= nil then self.label95:destroy(); self.label95 = nil; end; if self.edit276 ~= nil then self.edit276:destroy(); self.edit276 = nil; end; if self.label179 ~= nil then self.label179:destroy(); self.label179 = nil; end; if self.edit426 ~= nil then self.edit426:destroy(); self.edit426 = nil; end; if self.edit474 ~= nil then self.edit474:destroy(); self.edit474 = nil; end; if self.label83 ~= nil then self.label83:destroy(); self.label83 = nil; end; if self.edit288 ~= nil then self.edit288:destroy(); self.edit288 = nil; end; if self.label98 ~= nil then self.label98:destroy(); self.label98 = nil; end; if self.layout149 ~= nil then self.layout149:destroy(); self.layout149 = nil; end; if self.layout80 ~= nil then self.layout80:destroy(); self.layout80 = nil; end; if self.edit207 ~= nil then self.edit207:destroy(); self.edit207 = nil; end; if self.edit384 ~= nil then self.edit384:destroy(); self.edit384 = nil; end; if self.edit560 ~= nil then self.edit560:destroy(); self.edit560 = nil; end; if self.layout82 ~= nil then self.layout82:destroy(); self.layout82 = nil; end; if self.label55 ~= nil then self.label55:destroy(); self.label55 = nil; end; if self.edit12 ~= nil then self.edit12:destroy(); self.edit12 = nil; end; if self.label66 ~= nil then self.label66:destroy(); self.label66 = nil; end; if self.edit80 ~= nil then self.edit80:destroy(); self.edit80 = nil; end; if self.edit341 ~= nil then self.edit341:destroy(); self.edit341 = nil; end; if self.rectangle21 ~= nil then self.rectangle21:destroy(); self.rectangle21 = nil; end; if self.edit186 ~= nil then self.edit186:destroy(); self.edit186 = nil; end; if self.textEditor19 ~= nil then self.textEditor19:destroy(); self.textEditor19 = nil; end; if self.label112 ~= nil then self.label112:destroy(); self.label112 = nil; end; if self.edit57 ~= nil then self.edit57:destroy(); self.edit57 = nil; end; if self.image2 ~= nil then self.image2:destroy(); self.image2 = nil; end; if self.edit147 ~= nil then self.edit147:destroy(); self.edit147 = nil; end; if self.label65 ~= nil then self.label65:destroy(); self.label65 = nil; end; if self.layout3 ~= nil then self.layout3:destroy(); self.layout3 = nil; end; if self.layout95 ~= nil then self.layout95:destroy(); self.layout95 = nil; end; if self.edit63 ~= nil then self.edit63:destroy(); self.edit63 = nil; end; if self.layout93 ~= nil then self.layout93:destroy(); self.layout93 = nil; end; if self.edit342 ~= nil then self.edit342:destroy(); self.edit342 = nil; end; if self.label169 ~= nil then self.label169:destroy(); self.label169 = nil; end; if self.rectangle29 ~= nil then self.rectangle29:destroy(); self.rectangle29 = nil; end; if self.image6 ~= nil then self.image6:destroy(); self.image6 = nil; end; if self.edit522 ~= nil then self.edit522:destroy(); self.edit522 = nil; end; if self.layout122 ~= nil then self.layout122:destroy(); self.layout122 = nil; end; if self.label60 ~= nil then self.label60:destroy(); self.label60 = nil; end; if self.edit340 ~= nil then self.edit340:destroy(); self.edit340 = nil; end; if self.layout77 ~= nil then self.layout77:destroy(); self.layout77 = nil; end; if self.edit277 ~= nil then self.edit277:destroy(); self.edit277 = nil; end; if self.edit502 ~= nil then self.edit502:destroy(); self.edit502 = nil; end; if self.edit88 ~= nil then self.edit88:destroy(); self.edit88 = nil; end; if self.frmADnD1 ~= nil then self.frmADnD1:destroy(); self.frmADnD1 = nil; end; if self.edit44 ~= nil then self.edit44:destroy(); self.edit44 = nil; end; if self.layout56 ~= nil then self.layout56:destroy(); self.layout56 = nil; end; if self.label150 ~= nil then self.label150:destroy(); self.label150 = nil; end; if self.label4 ~= nil then self.label4:destroy(); self.label4 = nil; end; if self.layout66 ~= nil then self.layout66:destroy(); self.layout66 = nil; end; if self.edit539 ~= nil then self.edit539:destroy(); self.edit539 = nil; end; if self.edit368 ~= nil then self.edit368:destroy(); self.edit368 = nil; end; if self.edit350 ~= nil then self.edit350:destroy(); self.edit350 = nil; end; if self.label189 ~= nil then self.label189:destroy(); self.label189 = nil; end; if self.frmADnD6 ~= nil then self.frmADnD6:destroy(); self.frmADnD6 = nil; end; if self.label180 ~= nil then self.label180:destroy(); self.label180 = nil; end; if self.label172 ~= nil then self.label172:destroy(); self.label172 = nil; end; if self.layout27 ~= nil then self.layout27:destroy(); self.layout27 = nil; end; if self.rectangle43 ~= nil then self.rectangle43:destroy(); self.rectangle43 = nil; end; if self.edit53 ~= nil then self.edit53:destroy(); self.edit53 = nil; end; if self.edit180 ~= nil then self.edit180:destroy(); self.edit180 = nil; end; if self.layout44 ~= nil then self.layout44:destroy(); self.layout44 = nil; end; if self.edit536 ~= nil then self.edit536:destroy(); self.edit536 = nil; end; if self.edit408 ~= nil then self.edit408:destroy(); self.edit408 = nil; end; if self.label28 ~= nil then self.label28:destroy(); self.label28 = nil; end; if self.edit107 ~= nil then self.edit107:destroy(); self.edit107 = nil; end; if self.edit444 ~= nil then self.edit444:destroy(); self.edit444 = nil; end; if self.edit237 ~= nil then self.edit237:destroy(); self.edit237 = nil; end; if self.layout74 ~= nil then self.layout74:destroy(); self.layout74 = nil; end; if self.edit321 ~= nil then self.edit321:destroy(); self.edit321 = nil; end; if self.layout104 ~= nil then self.layout104:destroy(); self.layout104 = nil; end; if self.edit403 ~= nil then self.edit403:destroy(); self.edit403 = nil; end; if self.edit331 ~= nil then self.edit331:destroy(); self.edit331 = nil; end; if self.edit56 ~= nil then self.edit56:destroy(); self.edit56 = nil; end; if self.label137 ~= nil then self.label137:destroy(); self.label137 = nil; end; if self.label80 ~= nil then self.label80:destroy(); self.label80 = nil; end; if self.layout124 ~= nil then self.layout124:destroy(); self.layout124 = nil; end; if self.layout144 ~= nil then self.layout144:destroy(); self.layout144 = nil; end; if self.layout159 ~= nil then self.layout159:destroy(); self.layout159 = nil; end; if self.edit141 ~= nil then self.edit141:destroy(); self.edit141 = nil; end; if self.tab4 ~= nil then self.tab4:destroy(); self.tab4 = nil; end; if self.edit541 ~= nil then self.edit541:destroy(); self.edit541 = nil; end; if self.edit43 ~= nil then self.edit43:destroy(); self.edit43 = nil; end; if self.edit545 ~= nil then self.edit545:destroy(); self.edit545 = nil; end; if self.layout197 ~= nil then self.layout197:destroy(); self.layout197 = nil; end; if self.edit275 ~= nil then self.edit275:destroy(); self.edit275 = nil; end; if self.label100 ~= nil then self.label100:destroy(); self.label100 = nil; end; if self.edit374 ~= nil then self.edit374:destroy(); self.edit374 = nil; end; if self.edit144 ~= nil then self.edit144:destroy(); self.edit144 = nil; end; if self.edit346 ~= nil then self.edit346:destroy(); self.edit346 = nil; end; if self.edit507 ~= nil then self.edit507:destroy(); self.edit507 = nil; end; if self.rectangle27 ~= nil then self.rectangle27:destroy(); self.rectangle27 = nil; end; if self.label187 ~= nil then self.label187:destroy(); self.label187 = nil; end; if self.rectangle3 ~= nil then self.rectangle3:destroy(); self.rectangle3 = nil; end; if self.edit583 ~= nil then self.edit583:destroy(); self.edit583 = nil; end; if self.edit376 ~= nil then self.edit376:destroy(); self.edit376 = nil; end; if self.edit399 ~= nil then self.edit399:destroy(); self.edit399 = nil; end; if self.edit436 ~= nil then self.edit436:destroy(); self.edit436 = nil; end; if self.edit461 ~= nil then self.edit461:destroy(); self.edit461 = nil; end; if self.edit219 ~= nil then self.edit219:destroy(); self.edit219 = nil; end; if self.edit51 ~= nil then self.edit51:destroy(); self.edit51 = nil; end; if self.edit524 ~= nil then self.edit524:destroy(); self.edit524 = nil; end; if self.edit579 ~= nil then self.edit579:destroy(); self.edit579 = nil; end; if self.edit48 ~= nil then self.edit48:destroy(); self.edit48 = nil; end; if self.label85 ~= nil then self.label85:destroy(); self.label85 = nil; end; if self.edit190 ~= nil then self.edit190:destroy(); self.edit190 = nil; end; if self.edit395 ~= nil then self.edit395:destroy(); self.edit395 = nil; end; if self.scrollBox6 ~= nil then self.scrollBox6:destroy(); self.scrollBox6 = nil; end; if self.edit345 ~= nil then self.edit345:destroy(); self.edit345 = nil; end; if self.edit352 ~= nil then self.edit352:destroy(); self.edit352 = nil; end; if self.rectangle31 ~= nil then self.rectangle31:destroy(); self.rectangle31 = nil; end; if self.edit257 ~= nil then self.edit257:destroy(); self.edit257 = nil; end; if self.edit380 ~= nil then self.edit380:destroy(); self.edit380 = nil; end; if self.layout121 ~= nil then self.layout121:destroy(); self.layout121 = nil; end; if self.edit259 ~= nil then self.edit259:destroy(); self.edit259 = nil; end; if self.edit487 ~= nil then self.edit487:destroy(); self.edit487 = nil; end; if self.label153 ~= nil then self.label153:destroy(); self.label153 = nil; end; if self.layout40 ~= nil then self.layout40:destroy(); self.layout40 = nil; end; if self.layout87 ~= nil then self.layout87:destroy(); self.layout87 = nil; end; if self.textEditor14 ~= nil then self.textEditor14:destroy(); self.textEditor14 = nil; end; if self.edit202 ~= nil then self.edit202:destroy(); self.edit202 = nil; end; if self.edit303 ~= nil then self.edit303:destroy(); self.edit303 = nil; end; if self.layout157 ~= nil then self.layout157:destroy(); self.layout157 = nil; end; if self.edit70 ~= nil then self.edit70:destroy(); self.edit70 = nil; end; if self.edit268 ~= nil then self.edit268:destroy(); self.edit268 = nil; end; if self.edit248 ~= nil then self.edit248:destroy(); self.edit248 = nil; end; if self.layout163 ~= nil then self.layout163:destroy(); self.layout163 = nil; end; if self.rectangle39 ~= nil then self.rectangle39:destroy(); self.rectangle39 = nil; end; if self.edit282 ~= nil then self.edit282:destroy(); self.edit282 = nil; end; if self.textEditor18 ~= nil then self.textEditor18:destroy(); self.textEditor18 = nil; end; if self.rectangle41 ~= nil then self.rectangle41:destroy(); self.rectangle41 = nil; end; if self.edit516 ~= nil then self.edit516:destroy(); self.edit516 = nil; end; if self.edit136 ~= nil then self.edit136:destroy(); self.edit136 = nil; end; if self.edit434 ~= nil then self.edit434:destroy(); self.edit434 = nil; end; if self.edit212 ~= nil then self.edit212:destroy(); self.edit212 = nil; end; if self.edit173 ~= nil then self.edit173:destroy(); self.edit173 = nil; end; if self.label134 ~= nil then self.label134:destroy(); self.label134 = nil; end; if self.edit495 ~= nil then self.edit495:destroy(); self.edit495 = nil; end; if self.edit470 ~= nil then self.edit470:destroy(); self.edit470 = nil; end; if self.rectangle24 ~= nil then self.rectangle24:destroy(); self.rectangle24 = nil; end; if self.edit578 ~= nil then self.edit578:destroy(); self.edit578 = nil; end; if self.edit396 ~= nil then self.edit396:destroy(); self.edit396 = nil; end; if self.edit213 ~= nil then self.edit213:destroy(); self.edit213 = nil; end; if self.edit394 ~= nil then self.edit394:destroy(); self.edit394 = nil; end; if self.edit150 ~= nil then self.edit150:destroy(); self.edit150 = nil; end; if self.edit551 ~= nil then self.edit551:destroy(); self.edit551 = nil; end; if self.label14 ~= nil then self.label14:destroy(); self.label14 = nil; end; if self.edit64 ~= nil then self.edit64:destroy(); self.edit64 = nil; end; if self.edit41 ~= nil then self.edit41:destroy(); self.edit41 = nil; end; if self.edit195 ~= nil then self.edit195:destroy(); self.edit195 = nil; end; if self.edit36 ~= nil then self.edit36:destroy(); self.edit36 = nil; end; if self.label43 ~= nil then self.label43:destroy(); self.label43 = nil; end; if self.edit33 ~= nil then self.edit33:destroy(); self.edit33 = nil; end; if self.edit29 ~= nil then self.edit29:destroy(); self.edit29 = nil; end; if self.edit334 ~= nil then self.edit334:destroy(); self.edit334 = nil; end; if self.edit430 ~= nil then self.edit430:destroy(); self.edit430 = nil; end; if self.rectangle35 ~= nil then self.rectangle35:destroy(); self.rectangle35 = nil; end; if self.layout94 ~= nil then self.layout94:destroy(); self.layout94 = nil; end; if self.edit580 ~= nil then self.edit580:destroy(); self.edit580 = nil; end; if self.label96 ~= nil then self.label96:destroy(); self.label96 = nil; end; if self.label92 ~= nil then self.label92:destroy(); self.label92 = nil; end; if self.edit571 ~= nil then self.edit571:destroy(); self.edit571 = nil; end; if self.edit456 ~= nil then self.edit456:destroy(); self.edit456 = nil; end; if self.edit576 ~= nil then self.edit576:destroy(); self.edit576 = nil; end; if self.edit296 ~= nil then self.edit296:destroy(); self.edit296 = nil; end; if self.rectangle16 ~= nil then self.rectangle16:destroy(); self.rectangle16 = nil; end; if self.label148 ~= nil then self.label148:destroy(); self.label148 = nil; end; if self.layout189 ~= nil then self.layout189:destroy(); self.layout189 = nil; end; if self.layout195 ~= nil then self.layout195:destroy(); self.layout195 = nil; end; if self.label63 ~= nil then self.label63:destroy(); self.label63 = nil; end; if self.edit265 ~= nil then self.edit265:destroy(); self.edit265 = nil; end; if self.edit445 ~= nil then self.edit445:destroy(); self.edit445 = nil; end; if self.edit488 ~= nil then self.edit488:destroy(); self.edit488 = nil; end; if self.edit236 ~= nil then self.edit236:destroy(); self.edit236 = nil; end; if self.layout23 ~= nil then self.layout23:destroy(); self.layout23 = nil; end; if self.edit386 ~= nil then self.edit386:destroy(); self.edit386 = nil; end; if self.label122 ~= nil then self.label122:destroy(); self.label122 = nil; end; if self.layout187 ~= nil then self.layout187:destroy(); self.layout187 = nil; end; if self.rectangle5 ~= nil then self.rectangle5:destroy(); self.rectangle5 = nil; end; if self.layout62 ~= nil then self.layout62:destroy(); self.layout62 = nil; end; if self.layout89 ~= nil then self.layout89:destroy(); self.layout89 = nil; end; if self.edit412 ~= nil then self.edit412:destroy(); self.edit412 = nil; end; if self.layout125 ~= nil then self.layout125:destroy(); self.layout125 = nil; end; if self.layout196 ~= nil then self.layout196:destroy(); self.layout196 = nil; end; if self.label146 ~= nil then self.label146:destroy(); self.label146 = nil; end; if self.edit297 ~= nil then self.edit297:destroy(); self.edit297 = nil; end; if self.layout9 ~= nil then self.layout9:destroy(); self.layout9 = nil; end; if self.layout140 ~= nil then self.layout140:destroy(); self.layout140 = nil; end; if self.edit413 ~= nil then self.edit413:destroy(); self.edit413 = nil; end; if self.layout71 ~= nil then self.layout71:destroy(); self.layout71 = nil; end; if self.edit183 ~= nil then self.edit183:destroy(); self.edit183 = nil; end; if self.label15 ~= nil then self.label15:destroy(); self.label15 = nil; end; if self.label99 ~= nil then self.label99:destroy(); self.label99 = nil; end; if self.label107 ~= nil then self.label107:destroy(); self.label107 = nil; end; if self.label161 ~= nil then self.label161:destroy(); self.label161 = nil; end; if self.edit245 ~= nil then self.edit245:destroy(); self.edit245 = nil; end; if self.edit546 ~= nil then self.edit546:destroy(); self.edit546 = nil; end; if self.label82 ~= nil then self.label82:destroy(); self.label82 = nil; end; if self.rectangle33 ~= nil then self.rectangle33:destroy(); self.rectangle33 = nil; end; if self.edit472 ~= nil then self.edit472:destroy(); self.edit472 = nil; end; if self.layout36 ~= nil then self.layout36:destroy(); self.layout36 = nil; end; if self.edit69 ~= nil then self.edit69:destroy(); self.edit69 = nil; end; if self.edit452 ~= nil then self.edit452:destroy(); self.edit452 = nil; end; if self.layout119 ~= nil then self.layout119:destroy(); self.layout119 = nil; end; if self.edit255 ~= nil then self.edit255:destroy(); self.edit255 = nil; end; if self.layout52 ~= nil then self.layout52:destroy(); self.layout52 = nil; end; if self.edit228 ~= nil then self.edit228:destroy(); self.edit228 = nil; end; if self.layout141 ~= nil then self.layout141:destroy(); self.layout141 = nil; end; if self.layout158 ~= nil then self.layout158:destroy(); self.layout158 = nil; end; if self.edit16 ~= nil then self.edit16:destroy(); self.edit16 = nil; end; if self.label47 ~= nil then self.label47:destroy(); self.label47 = nil; end; if self.edit205 ~= nil then self.edit205:destroy(); self.edit205 = nil; end; if self.edit534 ~= nil then self.edit534:destroy(); self.edit534 = nil; end; if self.edit116 ~= nil then self.edit116:destroy(); self.edit116 = nil; end; if self.label76 ~= nil then self.label76:destroy(); self.label76 = nil; end; if self.edit77 ~= nil then self.edit77:destroy(); self.edit77 = nil; end; if self.edit52 ~= nil then self.edit52:destroy(); self.edit52 = nil; end; if self.edit196 ~= nil then self.edit196:destroy(); self.edit196 = nil; end; if self.layout34 ~= nil then self.layout34:destroy(); self.layout34 = nil; end; if self.edit316 ~= nil then self.edit316:destroy(); self.edit316 = nil; end; if self.button4 ~= nil then self.button4:destroy(); self.button4 = nil; end; if self.rectangle7 ~= nil then self.rectangle7:destroy(); self.rectangle7 = nil; end; if self.label176 ~= nil then self.label176:destroy(); self.label176 = nil; end; if self.edit220 ~= nil then self.edit220:destroy(); self.edit220 = nil; end; if self.layout166 ~= nil then self.layout166:destroy(); self.layout166 = nil; end; if self.edit460 ~= nil then self.edit460:destroy(); self.edit460 = nil; end; if self.edit58 ~= nil then self.edit58:destroy(); self.edit58 = nil; end; if self.layout42 ~= nil then self.layout42:destroy(); self.layout42 = nil; end; if self.layout61 ~= nil then self.layout61:destroy(); self.layout61 = nil; end; if self.label109 ~= nil then self.label109:destroy(); self.label109 = nil; end; if self.label106 ~= nil then self.label106:destroy(); self.label106 = nil; end; if self.edit423 ~= nil then self.edit423:destroy(); self.edit423 = nil; end; if self.label103 ~= nil then self.label103:destroy(); self.label103 = nil; end; if self.edit66 ~= nil then self.edit66:destroy(); self.edit66 = nil; end; if self.edit441 ~= nil then self.edit441:destroy(); self.edit441 = nil; end; if self.frmADnD5 ~= nil then self.frmADnD5:destroy(); self.frmADnD5 = nil; end; if self.layout176 ~= nil then self.layout176:destroy(); self.layout176 = nil; end; if self.label94 ~= nil then self.label94:destroy(); self.label94 = nil; end; if self.edit575 ~= nil then self.edit575:destroy(); self.edit575 = nil; end; if self.edit295 ~= nil then self.edit295:destroy(); self.edit295 = nil; end; if self.label29 ~= nil then self.label29:destroy(); self.label29 = nil; end; if self.layout137 ~= nil then self.layout137:destroy(); self.layout137 = nil; end; if self.layout185 ~= nil then self.layout185:destroy(); self.layout185 = nil; end; if self.rectangle23 ~= nil then self.rectangle23:destroy(); self.rectangle23 = nil; end; if self.label91 ~= nil then self.label91:destroy(); self.label91 = nil; end; if self.label30 ~= nil then self.label30:destroy(); self.label30 = nil; end; if self.tabControl1 ~= nil then self.tabControl1:destroy(); self.tabControl1 = nil; end; if self.edit493 ~= nil then self.edit493:destroy(); self.edit493 = nil; end; if self.label51 ~= nil then self.label51:destroy(); self.label51 = nil; end; if self.edit385 ~= nil then self.edit385:destroy(); self.edit385 = nil; end; if self.edit99 ~= nil then self.edit99:destroy(); self.edit99 = nil; end; if self.edit566 ~= nil then self.edit566:destroy(); self.edit566 = nil; end; if self.edit401 ~= nil then self.edit401:destroy(); self.edit401 = nil; end; if self.edit410 ~= nil then self.edit410:destroy(); self.edit410 = nil; end; if self.edit324 ~= nil then self.edit324:destroy(); self.edit324 = nil; end; if self.edit420 ~= nil then self.edit420:destroy(); self.edit420 = nil; end; if self.layout11 ~= nil then self.layout11:destroy(); self.layout11 = nil; end; if self.edit362 ~= nil then self.edit362:destroy(); self.edit362 = nil; end; if self.layout108 ~= nil then self.layout108:destroy(); self.layout108 = nil; end; if self.rectangle18 ~= nil then self.rectangle18:destroy(); self.rectangle18 = nil; end; if self.rectangle14 ~= nil then self.rectangle14:destroy(); self.rectangle14 = nil; end; if self.label147 ~= nil then self.label147:destroy(); self.label147 = nil; end; if self.edit124 ~= nil then self.edit124:destroy(); self.edit124 = nil; end; if self.edit157 ~= nil then self.edit157:destroy(); self.edit157 = nil; end; if self.edit301 ~= nil then self.edit301:destroy(); self.edit301 = nil; end; if self.label89 ~= nil then self.label89:destroy(); self.label89 = nil; end; if self.edit284 ~= nil then self.edit284:destroy(); self.edit284 = nil; end; if self.edit83 ~= nil then self.edit83:destroy(); self.edit83 = nil; end; if self.rectangle42 ~= nil then self.rectangle42:destroy(); self.rectangle42 = nil; end; if self.edit223 ~= nil then self.edit223:destroy(); self.edit223 = nil; end; if self.label159 ~= nil then self.label159:destroy(); self.label159 = nil; end; if self.layout51 ~= nil then self.layout51:destroy(); self.layout51 = nil; end; if self.edit330 ~= nil then self.edit330:destroy(); self.edit330 = nil; end; if self.edit74 ~= nil then self.edit74:destroy(); self.edit74 = nil; end; if self.layout100 ~= nil then self.layout100:destroy(); self.layout100 = nil; end; if self.edit388 ~= nil then self.edit388:destroy(); self.edit388 = nil; end; if self.edit577 ~= nil then self.edit577:destroy(); self.edit577 = nil; end; if self.edit491 ~= nil then self.edit491:destroy(); self.edit491 = nil; end; if self.layout7 ~= nil then self.layout7:destroy(); self.layout7 = nil; end; if self.edit60 ~= nil then self.edit60:destroy(); self.edit60 = nil; end; if self.label127 ~= nil then self.label127:destroy(); self.label127 = nil; end; if self.layout132 ~= nil then self.layout132:destroy(); self.layout132 = nil; end; if self.layout145 ~= nil then self.layout145:destroy(); self.layout145 = nil; end; if self.edit565 ~= nil then self.edit565:destroy(); self.edit565 = nil; end; if self.label170 ~= nil then self.label170:destroy(); self.label170 = nil; end; if self.label194 ~= nil then self.label194:destroy(); self.label194 = nil; end; if self.layout39 ~= nil then self.layout39:destroy(); self.layout39 = nil; end; if self.tab3 ~= nil then self.tab3:destroy(); self.tab3 = nil; end; if self.layout136 ~= nil then self.layout136:destroy(); self.layout136 = nil; end; if self.layout154 ~= nil then self.layout154:destroy(); self.layout154 = nil; end; if self.edit574 ~= nil then self.edit574:destroy(); self.edit574 = nil; end; if self.edit435 ~= nil then self.edit435:destroy(); self.edit435 = nil; end; if self.layout69 ~= nil then self.layout69:destroy(); self.layout69 = nil; end; if self.rectangle9 ~= nil then self.rectangle9:destroy(); self.rectangle9 = nil; end; if self.edit121 ~= nil then self.edit121:destroy(); self.edit121 = nil; end; if self.edit263 ~= nil then self.edit263:destroy(); self.edit263 = nil; end; if self.edit199 ~= nil then self.edit199:destroy(); self.edit199 = nil; end; if self.edit469 ~= nil then self.edit469:destroy(); self.edit469 = nil; end; if self.label198 ~= nil then self.label198:destroy(); self.label198 = nil; end; if self.edit285 ~= nil then self.edit285:destroy(); self.edit285 = nil; end; if self.layout152 ~= nil then self.layout152:destroy(); self.layout152 = nil; end; if self.layout60 ~= nil then self.layout60:destroy(); self.layout60 = nil; end; if self.textEditor3 ~= nil then self.textEditor3:destroy(); self.textEditor3 = nil; end; if self.layout72 ~= nil then self.layout72:destroy(); self.layout72 = nil; end; if self.label23 ~= nil then self.label23:destroy(); self.label23 = nil; end; if self.label90 ~= nil then self.label90:destroy(); self.label90 = nil; end; if self.layout118 ~= nil then self.layout118:destroy(); self.layout118 = nil; end; if self.edit409 ~= nil then self.edit409:destroy(); self.edit409 = nil; end; if self.layout90 ~= nil then self.layout90:destroy(); self.layout90 = nil; end; if self.edit336 ~= nil then self.edit336:destroy(); self.edit336 = nil; end; if self.label61 ~= nil then self.label61:destroy(); self.label61 = nil; end; if self.edit100 ~= nil then self.edit100:destroy(); self.edit100 = nil; end; if self.layout1 ~= nil then self.layout1:destroy(); self.layout1 = nil; end; if self.edit61 ~= nil then self.edit61:destroy(); self.edit61 = nil; end; if self.edit84 ~= nil then self.edit84:destroy(); self.edit84 = nil; end; if self.edit224 ~= nil then self.edit224:destroy(); self.edit224 = nil; end; if self.label93 ~= nil then self.label93:destroy(); self.label93 = nil; end; if self.edit274 ~= nil then self.edit274:destroy(); self.edit274 = nil; end; if self.edit289 ~= nil then self.edit289:destroy(); self.edit289 = nil; end; if self.layout111 ~= nil then self.layout111:destroy(); self.layout111 = nil; end; if self.layout12 ~= nil then self.layout12:destroy(); self.layout12 = nil; end; if self.edit14 ~= nil then self.edit14:destroy(); self.edit14 = nil; end; if self.textEditor16 ~= nil then self.textEditor16:destroy(); self.textEditor16 = nil; end; if self.edit198 ~= nil then self.edit198:destroy(); self.edit198 = nil; end; if self.layout193 ~= nil then self.layout193:destroy(); self.layout193 = nil; end; if self.frmADnD2 ~= nil then self.frmADnD2:destroy(); self.frmADnD2 = nil; end; if self.textEditor11 ~= nil then self.textEditor11:destroy(); self.textEditor11 = nil; end; if self.edit200 ~= nil then self.edit200:destroy(); self.edit200 = nil; end; if self.textEditor2 ~= nil then self.textEditor2:destroy(); self.textEditor2 = nil; end; if self.layout107 ~= nil then self.layout107:destroy(); self.layout107 = nil; end; if self.edit103 ~= nil then self.edit103:destroy(); self.edit103 = nil; end; if self.edit370 ~= nil then self.edit370:destroy(); self.edit370 = nil; end; if self.layout116 ~= nil then self.layout116:destroy(); self.layout116 = nil; end; if self.edit424 ~= nil then self.edit424:destroy(); self.edit424 = nil; end; if self.label37 ~= nil then self.label37:destroy(); self.label37 = nil; end; if self.frmADnD3 ~= nil then self.frmADnD3:destroy(); self.frmADnD3 = nil; end; if self.edit378 ~= nil then self.edit378:destroy(); self.edit378 = nil; end; if self.layout101 ~= nil then self.layout101:destroy(); self.layout101 = nil; end; if self.edit415 ~= nil then self.edit415:destroy(); self.edit415 = nil; end; if self.edit45 ~= nil then self.edit45:destroy(); self.edit45 = nil; end; if self.edit387 ~= nil then self.edit387:destroy(); self.edit387 = nil; end; if self.layout168 ~= nil then self.layout168:destroy(); self.layout168 = nil; end; if self.label86 ~= nil then self.label86:destroy(); self.label86 = nil; end; if self.edit181 ~= nil then self.edit181:destroy(); self.edit181 = nil; end; if self.edit96 ~= nil then self.edit96:destroy(); self.edit96 = nil; end; if self.edit2 ~= nil then self.edit2:destroy(); self.edit2 = nil; end; if self.edit323 ~= nil then self.edit323:destroy(); self.edit323 = nil; end; if self.edit109 ~= nil then self.edit109:destroy(); self.edit109 = nil; end; if self.layout148 ~= nil then self.layout148:destroy(); self.layout148 = nil; end; if self.button3 ~= nil then self.button3:destroy(); self.button3 = nil; end; if self.edit328 ~= nil then self.edit328:destroy(); self.edit328 = nil; end; if self.edit174 ~= nil then self.edit174:destroy(); self.edit174 = nil; end; if self.layout76 ~= nil then self.layout76:destroy(); self.layout76 = nil; end; if self.edit418 ~= nil then self.edit418:destroy(); self.edit418 = nil; end; if self.edit152 ~= nil then self.edit152:destroy(); self.edit152 = nil; end; if self.label102 ~= nil then self.label102:destroy(); self.label102 = nil; end; if self.edit93 ~= nil then self.edit93:destroy(); self.edit93 = nil; end; if self.edit126 ~= nil then self.edit126:destroy(); self.edit126 = nil; end; if self.label132 ~= nil then self.label132:destroy(); self.label132 = nil; end; if self.edit512 ~= nil then self.edit512:destroy(); self.edit512 = nil; end; if self.layout128 ~= nil then self.layout128:destroy(); self.layout128 = nil; end; if self.edit177 ~= nil then self.edit177:destroy(); self.edit177 = nil; end; if self.layout97 ~= nil then self.layout97:destroy(); self.layout97 = nil; end; if self.edit531 ~= nil then self.edit531:destroy(); self.edit531 = nil; end; if self.edit525 ~= nil then self.edit525:destroy(); self.edit525 = nil; end; if self.edit37 ~= nil then self.edit37:destroy(); self.edit37 = nil; end; if self.edit533 ~= nil then self.edit533:destroy(); self.edit533 = nil; end; if self.layout165 ~= nil then self.layout165:destroy(); self.layout165 = nil; end; if self.layout198 ~= nil then self.layout198:destroy(); self.layout198 = nil; end; if self.layout31 ~= nil then self.layout31:destroy(); self.layout31 = nil; end; if self.edit269 ~= nil then self.edit269:destroy(); self.edit269 = nil; end; if self.label10 ~= nil then self.label10:destroy(); self.label10 = nil; end; if self.edit363 ~= nil then self.edit363:destroy(); self.edit363 = nil; end; if self.layout120 ~= nil then self.layout120:destroy(); self.layout120 = nil; end; if self.layout2 ~= nil then self.layout2:destroy(); self.layout2 = nil; end; if self.rectangle30 ~= nil then self.rectangle30:destroy(); self.rectangle30 = nil; end; if self.label175 ~= nil then self.label175:destroy(); self.label175 = nil; end; if self.edit155 ~= nil then self.edit155:destroy(); self.edit155 = nil; end; if self.edit162 ~= nil then self.edit162:destroy(); self.edit162 = nil; end; if self.edit194 ~= nil then self.edit194:destroy(); self.edit194 = nil; end; if self.label39 ~= nil then self.label39:destroy(); self.label39 = nil; end; if self.layout164 ~= nil then self.layout164:destroy(); self.layout164 = nil; end; if self.edit299 ~= nil then self.edit299:destroy(); self.edit299 = nil; end; if self.rectangle40 ~= nil then self.rectangle40:destroy(); self.rectangle40 = nil; end; if self.label3 ~= nil then self.label3:destroy(); self.label3 = nil; end; if self.layout113 ~= nil then self.layout113:destroy(); self.layout113 = nil; end; if self.edit240 ~= nil then self.edit240:destroy(); self.edit240 = nil; end; if self.label108 ~= nil then self.label108:destroy(); self.label108 = nil; end; if self.edit379 ~= nil then self.edit379:destroy(); self.edit379 = nil; end; if self.edit138 ~= nil then self.edit138:destroy(); self.edit138 = nil; end; if self.edit42 ~= nil then self.edit42:destroy(); self.edit42 = nil; end; if self.edit209 ~= nil then self.edit209:destroy(); self.edit209 = nil; end; if self.edit118 ~= nil then self.edit118:destroy(); self.edit118 = nil; end; if self.layout109 ~= nil then self.layout109:destroy(); self.layout109 = nil; end; if self.edit432 ~= nil then self.edit432:destroy(); self.edit432 = nil; end; if self.edit254 ~= nil then self.edit254:destroy(); self.edit254 = nil; end; if self.edit438 ~= nil then self.edit438:destroy(); self.edit438 = nil; end; if self.layout98 ~= nil then self.layout98:destroy(); self.layout98 = nil; end; if self.rectangle4 ~= nil then self.rectangle4:destroy(); self.rectangle4 = nil; end; if self.layout48 ~= nil then self.layout48:destroy(); self.layout48 = nil; end; if self.layout73 ~= nil then self.layout73:destroy(); self.layout73 = nil; end; if self.label124 ~= nil then self.label124:destroy(); self.label124 = nil; end; if self.label84 ~= nil then self.label84:destroy(); self.label84 = nil; end; if self.image4 ~= nil then self.image4:destroy(); self.image4 = nil; end; if self.edit178 ~= nil then self.edit178:destroy(); self.edit178 = nil; end; if self.tab1 ~= nil then self.tab1:destroy(); self.tab1 = nil; end; if self.edit102 ~= nil then self.edit102:destroy(); self.edit102 = nil; end; if self.layout115 ~= nil then self.layout115:destroy(); self.layout115 = nil; end; if self.edit117 ~= nil then self.edit117:destroy(); self.edit117 = nil; end; if self.edit286 ~= nil then self.edit286:destroy(); self.edit286 = nil; end; if self.edit216 ~= nil then self.edit216:destroy(); self.edit216 = nil; end; if self.edit527 ~= nil then self.edit527:destroy(); self.edit527 = nil; end; if self.edit305 ~= nil then self.edit305:destroy(); self.edit305 = nil; end; if self.layout134 ~= nil then self.layout134:destroy(); self.layout134 = nil; end; if self.edit73 ~= nil then self.edit73:destroy(); self.edit73 = nil; end; if self.edit98 ~= nil then self.edit98:destroy(); self.edit98 = nil; end; if self.edit320 ~= nil then self.edit320:destroy(); self.edit320 = nil; end; if self.edit185 ~= nil then self.edit185:destroy(); self.edit185 = nil; end; if self.edit335 ~= nil then self.edit335:destroy(); self.edit335 = nil; end; if self.layout63 ~= nil then self.layout63:destroy(); self.layout63 = nil; end; if self.edit511 ~= nil then self.edit511:destroy(); self.edit511 = nil; end; if self.edit111 ~= nil then self.edit111:destroy(); self.edit111 = nil; end; if self.layout188 ~= nil then self.layout188:destroy(); self.layout188 = nil; end; if self.layout190 ~= nil then self.layout190:destroy(); self.layout190 = nil; end; if self.edit463 ~= nil then self.edit463:destroy(); self.edit463 = nil; end; if self.layout41 ~= nil then self.layout41:destroy(); self.layout41 = nil; end; if self.edit450 ~= nil then self.edit450:destroy(); self.edit450 = nil; end; if self.edit243 ~= nil then self.edit243:destroy(); self.edit243 = nil; end; if self.label160 ~= nil then self.label160:destroy(); self.label160 = nil; end; if self.label193 ~= nil then self.label193:destroy(); self.label193 = nil; end; if self.edit521 ~= nil then self.edit521:destroy(); self.edit521 = nil; end; if self.label22 ~= nil then self.label22:destroy(); self.label22 = nil; end; if self.edit555 ~= nil then self.edit555:destroy(); self.edit555 = nil; end; if self.button2 ~= nil then self.button2:destroy(); self.button2 = nil; end; if self.edit478 ~= nil then self.edit478:destroy(); self.edit478 = nil; end; if self.edit564 ~= nil then self.edit564:destroy(); self.edit564 = nil; end; if self.edit447 ~= nil then self.edit447:destroy(); self.edit447 = nil; end; if self.label13 ~= nil then self.label13:destroy(); self.label13 = nil; end; if self.edit367 ~= nil then self.edit367:destroy(); self.edit367 = nil; end; if self.edit153 ~= nil then self.edit153:destroy(); self.edit153 = nil; end; if self.label59 ~= nil then self.label59:destroy(); self.label59 = nil; end; if self.edit411 ~= nil then self.edit411:destroy(); self.edit411 = nil; end; if self.edit131 ~= nil then self.edit131:destroy(); self.edit131 = nil; end; if self.layout160 ~= nil then self.layout160:destroy(); self.layout160 = nil; end; if self.edit47 ~= nil then self.edit47:destroy(); self.edit47 = nil; end; if self.edit149 ~= nil then self.edit149:destroy(); self.edit149 = nil; end; if self.edit517 ~= nil then self.edit517:destroy(); self.edit517 = nil; end; if self.button1 ~= nil then self.button1:destroy(); self.button1 = nil; end; if self.edit160 ~= nil then self.edit160:destroy(); self.edit160 = nil; end; if self.edit496 ~= nil then self.edit496:destroy(); self.edit496 = nil; end; if self.edit26 ~= nil then self.edit26:destroy(); self.edit26 = nil; end; if self.edit112 ~= nil then self.edit112:destroy(); self.edit112 = nil; end; if self.edit34 ~= nil then self.edit34:destroy(); self.edit34 = nil; end; if self.label31 ~= nil then self.label31:destroy(); self.label31 = nil; end; if self.edit19 ~= nil then self.edit19:destroy(); self.edit19 = nil; end; if self.edit422 ~= nil then self.edit422:destroy(); self.edit422 = nil; end; if self.layout54 ~= nil then self.layout54:destroy(); self.layout54 = nil; end; if self.edit210 ~= nil then self.edit210:destroy(); self.edit210 = nil; end; if self.label126 ~= nil then self.label126:destroy(); self.label126 = nil; end; if self.edit279 ~= nil then self.edit279:destroy(); self.edit279 = nil; end; if self.layout127 ~= nil then self.layout127:destroy(); self.layout127 = nil; end; if self.layout50 ~= nil then self.layout50:destroy(); self.layout50 = nil; end; if self.label41 ~= nil then self.label41:destroy(); self.label41 = nil; end; if self.edit537 ~= nil then self.edit537:destroy(); self.edit537 = nil; end; if self.scrollBox2 ~= nil then self.scrollBox2:destroy(); self.scrollBox2 = nil; end; if self.label72 ~= nil then self.label72:destroy(); self.label72 = nil; end; if self.edit357 ~= nil then self.edit357:destroy(); self.edit357 = nil; end; if self.layout169 ~= nil then self.layout169:destroy(); self.layout169 = nil; end; if self.label12 ~= nil then self.label12:destroy(); self.label12 = nil; end; if self.edit538 ~= nil then self.edit538:destroy(); self.edit538 = nil; end; if self.label190 ~= nil then self.label190:destroy(); self.label190 = nil; end; if self.edit294 ~= nil then self.edit294:destroy(); self.edit294 = nil; end; if self.edit179 ~= nil then self.edit179:destroy(); self.edit179 = nil; end; if self.layout192 ~= nil then self.layout192:destroy(); self.layout192 = nil; end; if self.rectangle28 ~= nil then self.rectangle28:destroy(); self.rectangle28 = nil; end; if self.layout143 ~= nil then self.layout143:destroy(); self.layout143 = nil; end; if self.edit417 ~= nil then self.edit417:destroy(); self.edit417 = nil; end; if self.textEditor7 ~= nil then self.textEditor7:destroy(); self.textEditor7 = nil; end; if self.edit10 ~= nil then self.edit10:destroy(); self.edit10 = nil; end; if self.edit106 ~= nil then self.edit106:destroy(); self.edit106 = nil; end; if self.edit31 ~= nil then self.edit31:destroy(); self.edit31 = nil; end; if self.edit125 ~= nil then self.edit125:destroy(); self.edit125 = nil; end; if self.edit448 ~= nil then self.edit448:destroy(); self.edit448 = nil; end; if self.edit506 ~= nil then self.edit506:destroy(); self.edit506 = nil; end; if self.layout172 ~= nil then self.layout172:destroy(); self.layout172 = nil; end; if self.layout180 ~= nil then self.layout180:destroy(); self.layout180 = nil; end; if self.edit381 ~= nil then self.edit381:destroy(); self.edit381 = nil; end; if self.rectangle26 ~= nil then self.rectangle26:destroy(); self.rectangle26 = nil; end; if self.label78 ~= nil then self.label78:destroy(); self.label78 = nil; end; if self.edit468 ~= nil then self.edit468:destroy(); self.edit468 = nil; end; if self.edit175 ~= nil then self.edit175:destroy(); self.edit175 = nil; end; if self.edit315 ~= nil then self.edit315:destroy(); self.edit315 = nil; end; if self.label167 ~= nil then self.label167:destroy(); self.label167 = nil; end; if self.image3 ~= nil then self.image3:destroy(); self.image3 = nil; end; if self.edit242 ~= nil then self.edit242:destroy(); self.edit242 = nil; end; if self.image8 ~= nil then self.image8:destroy(); self.image8 = nil; end; if self.label114 ~= nil then self.label114:destroy(); self.label114 = nil; end; if self.layout167 ~= nil then self.layout167:destroy(); self.layout167 = nil; end; if self.layout147 ~= nil then self.layout147:destroy(); self.layout147 = nil; end; if self.edit253 ~= nil then self.edit253:destroy(); self.edit253 = nil; end; if self.edit554 ~= nil then self.edit554:destroy(); self.edit554 = nil; end; if self.edit266 ~= nil then self.edit266:destroy(); self.edit266 = nil; end; if self.label135 ~= nil then self.label135:destroy(); self.label135 = nil; end; if self.edit23 ~= nil then self.edit23:destroy(); self.edit23 = nil; end; if self.edit327 ~= nil then self.edit327:destroy(); self.edit327 = nil; end; if self.layout133 ~= nil then self.layout133:destroy(); self.layout133 = nil; end; if self.edit437 ~= nil then self.edit437:destroy(); self.edit437 = nil; end; if self.edit443 ~= nil then self.edit443:destroy(); self.edit443 = nil; end; if self.label197 ~= nil then self.label197:destroy(); self.label197 = nil; end; if self.tab7 ~= nil then self.tab7:destroy(); self.tab7 = nil; end; if self.edit319 ~= nil then self.edit319:destroy(); self.edit319 = nil; end; if self.label56 ~= nil then self.label56:destroy(); self.label56 = nil; end; if self.edit494 ~= nil then self.edit494:destroy(); self.edit494 = nil; end; if self.edit280 ~= nil then self.edit280:destroy(); self.edit280 = nil; end; if self.layout112 ~= nil then self.layout112:destroy(); self.layout112 = nil; end; if self.edit433 ~= nil then self.edit433:destroy(); self.edit433 = nil; end; if self.edit122 ~= nil then self.edit122:destroy(); self.edit122 = nil; end; if self.edit40 ~= nil then self.edit40:destroy(); self.edit40 = nil; end; if self.textEditor6 ~= nil then self.textEditor6:destroy(); self.textEditor6 = nil; end; if self.edit110 ~= nil then self.edit110:destroy(); self.edit110 = nil; end; if self.textEditor12 ~= nil then self.textEditor12:destroy(); self.textEditor12 = nil; end; if self.edit325 ~= nil then self.edit325:destroy(); self.edit325 = nil; end; if self.edit38 ~= nil then self.edit38:destroy(); self.edit38 = nil; end; if self.edit123 ~= nil then self.edit123:destroy(); self.edit123 = nil; end; if self.label130 ~= nil then self.label130:destroy(); self.label130 = nil; end; if self.layout49 ~= nil then self.layout49:destroy(); self.layout49 = nil; end; if self.edit322 ~= nil then self.edit322:destroy(); self.edit322 = nil; end; if self.edit206 ~= nil then self.edit206:destroy(); self.edit206 = nil; end; if self.label54 ~= nil then self.label54:destroy(); self.label54 = nil; end; if self.edit485 ~= nil then self.edit485:destroy(); self.edit485 = nil; end; if self.label191 ~= nil then self.label191:destroy(); self.label191 = nil; end; if self.scrollBox3 ~= nil then self.scrollBox3:destroy(); self.scrollBox3 = nil; end; if self.edit137 ~= nil then self.edit137:destroy(); self.edit137 = nil; end; if self.textEditor1 ~= nil then self.textEditor1:destroy(); self.textEditor1 = nil; end; if self.edit146 ~= nil then self.edit146:destroy(); self.edit146 = nil; end; if self.label152 ~= nil then self.label152:destroy(); self.label152 = nil; end; if self.label182 ~= nil then self.label182:destroy(); self.label182 = nil; end; if self.edit6 ~= nil then self.edit6:destroy(); self.edit6 = nil; end; if self.layout179 ~= nil then self.layout179:destroy(); self.layout179 = nil; end; if self.textEditor21 ~= nil then self.textEditor21:destroy(); self.textEditor21 = nil; end; if self.edit238 ~= nil then self.edit238:destroy(); self.edit238 = nil; end; if self.edit49 ~= nil then self.edit49:destroy(); self.edit49 = nil; end; if self.label62 ~= nil then self.label62:destroy(); self.label62 = nil; end; if self.edit406 ~= nil then self.edit406:destroy(); self.edit406 = nil; end; if self.rectangle32 ~= nil then self.rectangle32:destroy(); self.rectangle32 = nil; end; if self.layout16 ~= nil then self.layout16:destroy(); self.layout16 = nil; end; if self.edit271 ~= nil then self.edit271:destroy(); self.edit271 = nil; end; if self.layout102 ~= nil then self.layout102:destroy(); self.layout102 = nil; end; if self.edit455 ~= nil then self.edit455:destroy(); self.edit455 = nil; end; if self.edit453 ~= nil then self.edit453:destroy(); self.edit453 = nil; end; if self.edit18 ~= nil then self.edit18:destroy(); self.edit18 = nil; end; if self.edit25 ~= nil then self.edit25:destroy(); self.edit25 = nil; end; if self.edit189 ~= nil then self.edit189:destroy(); self.edit189 = nil; end; if self.edit94 ~= nil then self.edit94:destroy(); self.edit94 = nil; end; if self.edit167 ~= nil then self.edit167:destroy(); self.edit167 = nil; end; if self.layout79 ~= nil then self.layout79:destroy(); self.layout79 = nil; end; if self.label171 ~= nil then self.label171:destroy(); self.label171 = nil; end; if self.tab6 ~= nil then self.tab6:destroy(); self.tab6 = nil; end; if self.label123 ~= nil then self.label123:destroy(); self.label123 = nil; end; if self.edit484 ~= nil then self.edit484:destroy(); self.edit484 = nil; end; if self.label178 ~= nil then self.label178:destroy(); self.label178 = nil; end; if self.layout43 ~= nil then self.layout43:destroy(); self.layout43 = nil; end; if self.edit563 ~= nil then self.edit563:destroy(); self.edit563 = nil; end; if self.edit229 ~= nil then self.edit229:destroy(); self.edit229 = nil; end; if self.textEditor13 ~= nil then self.textEditor13:destroy(); self.textEditor13 = nil; end; if self.edit505 ~= nil then self.edit505:destroy(); self.edit505 = nil; end; if self.label165 ~= nil then self.label165:destroy(); self.label165 = nil; end; if self.label174 ~= nil then self.label174:destroy(); self.label174 = nil; end; if self.edit104 ~= nil then self.edit104:destroy(); self.edit104 = nil; end; if self.label113 ~= nil then self.label113:destroy(); self.label113 = nil; end; if self.layout139 ~= nil then self.layout139:destroy(); self.layout139 = nil; end; if self.edit7 ~= nil then self.edit7:destroy(); self.edit7 = nil; end; if self.layout57 ~= nil then self.layout57:destroy(); self.layout57 = nil; end; if self.edit108 ~= nil then self.edit108:destroy(); self.edit108 = nil; end; if self.edit95 ~= nil then self.edit95:destroy(); self.edit95 = nil; end; if self.edit35 ~= nil then self.edit35:destroy(); self.edit35 = nil; end; if self.edit171 ~= nil then self.edit171:destroy(); self.edit171 = nil; end; if self.label26 ~= nil then self.label26:destroy(); self.label26 = nil; end; if self.layout65 ~= nil then self.layout65:destroy(); self.layout65 = nil; end; if self.edit351 ~= nil then self.edit351:destroy(); self.edit351 = nil; end; if self.edit97 ~= nil then self.edit97:destroy(); self.edit97 = nil; end; if self.rectangle19 ~= nil then self.rectangle19:destroy(); self.rectangle19 = nil; end; if self.label121 ~= nil then self.label121:destroy(); self.label121 = nil; end; if self.layout99 ~= nil then self.layout99:destroy(); self.layout99 = nil; end; if self.rectangle22 ~= nil then self.rectangle22:destroy(); self.rectangle22 = nil; end; if self.layout81 ~= nil then self.layout81:destroy(); self.layout81 = nil; end; if self.rectangle1 ~= nil then self.rectangle1:destroy(); self.rectangle1 = nil; end; if self.edit50 ~= nil then self.edit50:destroy(); self.edit50 = nil; end; if self.layout45 ~= nil then self.layout45:destroy(); self.layout45 = nil; end; if self.edit356 ~= nil then self.edit356:destroy(); self.edit356 = nil; end; if self.label64 ~= nil then self.label64:destroy(); self.label64 = nil; end; if self.edit344 ~= nil then self.edit344:destroy(); self.edit344 = nil; end; if self.edit425 ~= nil then self.edit425:destroy(); self.edit425 = nil; end; if self.edit427 ~= nil then self.edit427:destroy(); self.edit427 = nil; end; if self.layout150 ~= nil then self.layout150:destroy(); self.layout150 = nil; end; if self.edit497 ~= nil then self.edit497:destroy(); self.edit497 = nil; end; if self.edit509 ~= nil then self.edit509:destroy(); self.edit509 = nil; end; if self.layout46 ~= nil then self.layout46:destroy(); self.layout46 = nil; end; if self.layout175 ~= nil then self.layout175:destroy(); self.layout175 = nil; end; if self.label173 ~= nil then self.label173:destroy(); self.label173 = nil; end; if self.edit89 ~= nil then self.edit89:destroy(); self.edit89 = nil; end; if self.edit317 ~= nil then self.edit317:destroy(); self.edit317 = nil; end; if self.label136 ~= nil then self.label136:destroy(); self.label136 = nil; end; if self.edit548 ~= nil then self.edit548:destroy(); self.edit548 = nil; end; if self.edit318 ~= nil then self.edit318:destroy(); self.edit318 = nil; end; if self.edit535 ~= nil then self.edit535:destroy(); self.edit535 = nil; end; if self.edit569 ~= nil then self.edit569:destroy(); self.edit569 = nil; end; if self.rectangle25 ~= nil then self.rectangle25:destroy(); self.rectangle25 = nil; end; if self.label74 ~= nil then self.label74:destroy(); self.label74 = nil; end; if self.label149 ~= nil then self.label149:destroy(); self.label149 = nil; end; if self.edit148 ~= nil then self.edit148:destroy(); self.edit148 = nil; end; if self.edit414 ~= nil then self.edit414:destroy(); self.edit414 = nil; end; if self.edit405 ~= nil then self.edit405:destroy(); self.edit405 = nil; end; if self.edit486 ~= nil then self.edit486:destroy(); self.edit486 = nil; end; if self.edit364 ~= nil then self.edit364:destroy(); self.edit364 = nil; end; if self.layout28 ~= nil then self.layout28:destroy(); self.layout28 = nil; end; if self.edit482 ~= nil then self.edit482:destroy(); self.edit482 = nil; end; if self.edit232 ~= nil then self.edit232:destroy(); self.edit232 = nil; end; if self.layout19 ~= nil then self.layout19:destroy(); self.layout19 = nil; end; if self.edit306 ~= nil then self.edit306:destroy(); self.edit306 = nil; end; if self.label9 ~= nil then self.label9:destroy(); self.label9 = nil; end; if self.rectangle8 ~= nil then self.rectangle8:destroy(); self.rectangle8 = nil; end; if self.edit217 ~= nil then self.edit217:destroy(); self.edit217 = nil; end; if self.edit234 ~= nil then self.edit234:destroy(); self.edit234 = nil; end; if self.edit477 ~= nil then self.edit477:destroy(); self.edit477 = nil; end; if self.edit272 ~= nil then self.edit272:destroy(); self.edit272 = nil; end; if self.label157 ~= nil then self.label157:destroy(); self.label157 = nil; end; if self.edit383 ~= nil then self.edit383:destroy(); self.edit383 = nil; end; if self.edit552 ~= nil then self.edit552:destroy(); self.edit552 = nil; end; if self.edit30 ~= nil then self.edit30:destroy(); self.edit30 = nil; end; if self.edit290 ~= nil then self.edit290:destroy(); self.edit290 = nil; end; if self.edit197 ~= nil then self.edit197:destroy(); self.edit197 = nil; end; if self.edit550 ~= nil then self.edit550:destroy(); self.edit550 = nil; end; if self.edit55 ~= nil then self.edit55:destroy(); self.edit55 = nil; end; if self.edit307 ~= nil then self.edit307:destroy(); self.edit307 = nil; end; if self.label118 ~= nil then self.label118:destroy(); self.label118 = nil; end; if self.label17 ~= nil then self.label17:destroy(); self.label17 = nil; end; if self.label156 ~= nil then self.label156:destroy(); self.label156 = nil; end; if self.edit75 ~= nil then self.edit75:destroy(); self.edit75 = nil; end; if self.edit193 ~= nil then self.edit193:destroy(); self.edit193 = nil; end; if self.edit65 ~= nil then self.edit65:destroy(); self.edit65 = nil; end; if self.edit130 ~= nil then self.edit130:destroy(); self.edit130 = nil; end; if self.layout53 ~= nil then self.layout53:destroy(); self.layout53 = nil; end; if self.edit39 ~= nil then self.edit39:destroy(); self.edit39 = nil; end; if self.edit337 ~= nil then self.edit337:destroy(); self.edit337 = nil; end; if self.label168 ~= nil then self.label168:destroy(); self.label168 = nil; end; if self.layout184 ~= nil then self.layout184:destroy(); self.layout184 = nil; end; if self.layout161 ~= nil then self.layout161:destroy(); self.layout161 = nil; end; if self.layout131 ~= nil then self.layout131:destroy(); self.layout131 = nil; end; if self.label36 ~= nil then self.label36:destroy(); self.label36 = nil; end; if self.edit203 ~= nil then self.edit203:destroy(); self.edit203 = nil; end; if self.edit292 ~= nil then self.edit292:destroy(); self.edit292 = nil; end; if self.edit151 ~= nil then self.edit151:destroy(); self.edit151 = nil; end; if self.edit132 ~= nil then self.edit132:destroy(); self.edit132 = nil; end; if self.layout182 ~= nil then self.layout182:destroy(); self.layout182 = nil; end; if self.edit188 ~= nil then self.edit188:destroy(); self.edit188 = nil; end; if self.layout155 ~= nil then self.layout155:destroy(); self.layout155 = nil; end; if self.edit119 ~= nil then self.edit119:destroy(); self.edit119 = nil; end; if self.label46 ~= nil then self.label46:destroy(); self.label46 = nil; end; if self.edit168 ~= nil then self.edit168:destroy(); self.edit168 = nil; end; if self.edit375 ~= nil then self.edit375:destroy(); self.edit375 = nil; end; if self.edit392 ~= nil then self.edit392:destroy(); self.edit392 = nil; end; if self.edit514 ~= nil then self.edit514:destroy(); self.edit514 = nil; end; if self.label183 ~= nil then self.label183:destroy(); self.label183 = nil; end; if self.edit562 ~= nil then self.edit562:destroy(); self.edit562 = nil; end; if self.edit78 ~= nil then self.edit78:destroy(); self.edit78 = nil; end; if self.layout84 ~= nil then self.layout84:destroy(); self.layout84 = nil; end; if self.label87 ~= nil then self.label87:destroy(); self.label87 = nil; end; if self.label104 ~= nil then self.label104:destroy(); self.label104 = nil; end; if self.layout96 ~= nil then self.layout96:destroy(); self.layout96 = nil; end; if self.edit91 ~= nil then self.edit91:destroy(); self.edit91 = nil; end; if self.label25 ~= nil then self.label25:destroy(); self.label25 = nil; end; if self.edit372 ~= nil then self.edit372:destroy(); self.edit372 = nil; end; if self.edit377 ~= nil then self.edit377:destroy(); self.edit377 = nil; end; if self.edit22 ~= nil then self.edit22:destroy(); self.edit22 = nil; end; if self.label5 ~= nil then self.label5:destroy(); self.label5 = nil; end; if self.layout6 ~= nil then self.layout6:destroy(); self.layout6 = nil; end; if self.rectangle13 ~= nil then self.rectangle13:destroy(); self.rectangle13 = nil; end; if self.label141 ~= nil then self.label141:destroy(); self.label141 = nil; end; if self.edit471 ~= nil then self.edit471:destroy(); self.edit471 = nil; end; if self.edit503 ~= nil then self.edit503:destroy(); self.edit503 = nil; end; if self.edit498 ~= nil then self.edit498:destroy(); self.edit498 = nil; end; if self.edit407 ~= nil then self.edit407:destroy(); self.edit407 = nil; end; if self.layout86 ~= nil then self.layout86:destroy(); self.layout86 = nil; end; if self.layout85 ~= nil then self.layout85:destroy(); self.layout85 = nil; end; if self.edit227 ~= nil then self.edit227:destroy(); self.edit227 = nil; end; if self.layout91 ~= nil then self.layout91:destroy(); self.layout91 = nil; end; if self.edit458 ~= nil then self.edit458:destroy(); self.edit458 = nil; end; if self.edit20 ~= nil then self.edit20:destroy(); self.edit20 = nil; end; self:_oldLFMDestroy(); end; obj:endUpdate(); __o_rrpgObjs.endObjectsLoading(); return obj; end; local _frmFichaACN = { newEditor = newfrmFichaACN, new = newfrmFichaACN, name = "frmFichaACN", dataType = "Ambesek.Nefertyne.FichaADnD2e", formType = "sheetTemplate", formComponentName = "form", title = "Ficha AD&D 2e", description=""}; frmFichaACN = _frmFichaACN; rrpg.registrarForm(_frmFichaACN); rrpg.registrarDataType(_frmFichaACN); return _frmFichaACN;
local args = ... local g = args[1] local map_data = args[2][1] -- ----------------------------------- -- variables you might want to configure to your liking -- starting values (these can be manipulated later as needed) local num_particles = 200 -- particle size in pixels local min_size = 12 local max_size = 35 -- particle velocity in pixels per second local min_vx = -7 local max_vx = 7 local min_vy = 55 local max_vy = 85 local path_to_texture = THEME:GetPathB("ScreenHereInTheDarkness", "overlay/19/Snow/snowflake.png") ----------------- -- taro local SNOW_MAX_TIME = 120 local SNOW_BEGIN_TIME = 15 local wrap_buffer = 100 --how far offscreen should it be before it wraps local snow_growth = 32 --how much larger is the biggest snowflake (towards the end of the file) than the smallest one local speed_increase = 15 --how much faster the snow is falling at the end vs the start local sine_amount = 20 --strength of sine effect -- snow amount should be slightly exponential local inCubic = function(t, b, c, d) t = t / d return c * math.pow(t, 3) + b end local inQuad = function(t, b, c, d) t = t / d return c * math.pow(t, 2) + b end --we will need these later local dbk_snow = {} --recycling is good for the environment local dbk_sptr = 0 --it's a ''''pointer'''' to a snow object local make_snow = function(obj) table.insert( dbk_snow, {actor = obj, xspd = 0, yspd = 0, size = 0, active = false} ) --shovel snow end local af = Def.ActorFrame{ OnCommand=function(self) self:sleep(0.02):queuecommand("Make"); end, MakeCommand=function(self) for i=1,table.getn(dbk_snow) do local a = dbk_snow[i] if a then a.active = false a.xspd = math.random( min_vx, max_vx ) a.yspd = math.random( min_vy, max_vy ) a.size = math.random(min_size,max_size)+(snow_growth*(i/table.getn(dbk_snow))) --configurable at top of file local b = a.actor if b then b:x( math.random( -40, math.floor(_screen.w)+40 ) ) b:y( math.random( -40, math.floor(_screen.h)+40 ) ) b:zoomto( a.size, a.size ) end end end end, UpdateAMVCommand=function(self, params) local delta = params[1] local activepercent = math.min( math.max( (g.RunTime()-SNOW_BEGIN_TIME)/(SNOW_MAX_TIME-SNOW_BEGIN_TIME), 0 ), 1 ) --Trace( g.RunTime() ..' ' ..activepercent ) for i=1,table.getn(dbk_snow) do local a = dbk_snow[i] if a then if i < (0.01+0.99*inCubic(activepercent,0,1,1))*table.getn(dbk_snow) then a.active = true end end if a and a.active then local b = a.actor if b then b:visible(true) if b:getaux() < 1 then b:aux( b:getaux() + delta ) b:diffusealpha( b:getaux() ) end b:addx( (a.size/25)*(a.xspd*delta)*(1 - activepercent*0.5) - (a.size/25)*(speed_increase/2)*activepercent*delta ) b:addy( a.yspd*delta*( 1 + activepercent*(speed_increase/100) ) + speed_increase*activepercent*delta ) b:addx( (a.size/25)*(sine_amount*(1-0.25*activepercent))*math.sin( g.RunTime()*6 + i*12.345 )*delta ) --some sine motion that lessens as the snow falls more intensely if b:GetY() < -g.map.af:GetY() - wrap_buffer then b:addy( (_screen.h + wrap_buffer*2) ) elseif b:GetY() > -g.map.af:GetY() + _screen.h + wrap_buffer then b:addy( -(_screen.h + wrap_buffer*2) ) end if b:GetX() < -g.map.af:GetX() - wrap_buffer then b:addx( (_screen.w + wrap_buffer*2) ) elseif b:GetX() > -g.map.af:GetX() + _screen.w + wrap_buffer then b:addx( -(_screen.w + wrap_buffer*2) ) end end end end end } for i=1,num_particles do af[#af+1] = LoadActor( path_to_texture )..{ OnCommand=function(self) self:visible(false):queuecommand("Make") end, HideCommand=function(self) self:visible(false) end, MakeCommand=function(self) make_snow(self) end --use our function from earlier! } end return af
-- https://github.com/phaazon/hop.nvim local vimp = require("vimp") require("hop").setup({ keys = "etovxqpdygfblzhckisuran", term_seq_bias = 0.5 }) vimp.nnoremap("$", "<cmd>lua require('hop').hint_words()<CR>")
constants = { }
-- Read, parse and dump a torrent into a string; -- Ensure that the string is identical to what was originally read. -- If not, either the file was broken (e.g. unsorted keys) or there is a bug. local b = require 'bencode' local numfail, total = 0,0 for _,v in ipairs(arg) do local fd, t1, t2 fd = io.open(v) t1 = fd:read("*a") fd:close() t2 = b.encode(b.decode(t1)) if t1 ~= t2 then print(v, "FAIL") numfail = numfail + 1 else print(v, "OK") end total = total + 1 end return numfail, total
local floatBallDiskItem = require(ViewPath .. "hall/floatBall/floatBallDiskItem"); local FloatBallDiskItem = class(CommonGameLayer,false); FloatBallDiskItem.Delegate = { onFloatBallDiskItemClick = "onFloatBallDiskItemClick"; } FloatBallDiskItem.ctor = function(self, data,p_privateScoller) super(self, floatBallDiskItem); self:declareLayoutVar(ViewPath.."hall/floatBall/floatBallDiskItem".."_layout_var"); CommonGameLayer.setSize(self,self.m_root:getSize() ); self.m_data = data; self.mm_privateScoller = p_privateScoller; self:_init(); end FloatBallDiskItem._init = function(self) --self:updateRemainTime(); self.m_lightImage = self:findViewById(self.s_controls.Image_light); self.m_Image_bg = self:findViewById(self.s_controls.Image_bg); self.m_Image_ads = self:findViewById(self.s_controls.Image_ads); self.m_lightImage:setVisible(false); if not string.isEmpty(self.m_data.image) then ImageCache.getInstance():request(self.m_data.image, self, self.__onIconDownloaded); end end FloatBallDiskItem.setSize = function(self,p_w,p_h) CommonGameLayer.setSize(self,p_w,p_h); CommonGameLayer.setSize(self.m_Image_bg,p_w,p_h); CommonGameLayer.setSize(self.m_Image_ads,p_w,p_h); CommonGameLayer.setSize(self.m_lightImage,p_w,p_h); end FloatBallDiskItem.setColor = function(self,r,g,b) CommonGameLayer.setColor(self.m_Image_bg,r,g,b); CommonGameLayer.setColor(self.m_Image_ads,r,g,b); CommonGameLayer.setColor(self.m_lightImage,r,g,b); end --@brief 刷新剩余时间 --@return true 代表时间已经超出,需要将这个item移除 -- false 代表刷新成功 -- FloatBallDiskItem.updateRemainTime = function(self) -- local desc = self.m_data.desc -- local endtime = self.m_data.starttime -- local nowtime = kAppData:getRightTimeWithServer() -- local timespan = os.difftime(endtime, nowtime) -- local subDesc = "" -- local bTimeEnd = false; -- if endtime > 0 then -- --截止时间大于0,才代表存在倒计时 -- if timespan > 0 then -- local hour = math.floor(timespan / 3600) -- if hour < 24 then -- local minute = math.floor(timespan % 3600 / 60) -- local second = math.floor(timespan % 3600 % 60) -- subDesc = string.format("%02d:%02d:%02d", hour, minute, second) -- else -- subDesc = string.format("还剩%s天", ToolKit.getDayInterval(nowtime, endtime)) -- end -- else -- bTimeEnd = true; -- end -- end -- desc = string.format("%s\n%s", desc, subDesc) -- self:findViewById(self.m_ctrl.desc):setText(desc) -- return bTimeEnd -- end FloatBallDiskItem.__onIconDownloaded = function(self, url,fileName) if not string.isEmpty(fileName) then self:findViewById(self.s_controls.Image_ads):setFile(fileName); end end FloatBallDiskItem.onItemBoxBtnClick = function(self, finger_action, x, y, drawing_id_first, drawing_id_current) Log.v("FloatBallDiskItem.onItemBoxBtnClick", self.m_data.jumpcode); if finger_action == kFingerDown then self.m_max_move = 0; self.m_startX = x; self.m_startY = y; elseif finger_action == kFingerMove then local __movY = y - self.m_startY; local __movX = x - self.m_startX; local __move_distance = math.sqrt(__movY*__movY + __movX*__movX); self.m_max_move = __move_distance > self.m_max_move and __move_distance or self.m_max_move; else if self.m_max_move < 2 then local __object = self.mm_privateScoller:getMiddleObject(); if __object ~= self then self.mm_privateScoller:setMiddleByObject(self); return; end UBReport.getInstance():report(UBConfig.kFloatBallItemClick, string.format("itemId%s", self.m_data.sortNum)); local name = FloatBallDataInterface:getInstance():getSceneName(); UBReport.getInstance():report(UBConfig.kFloatBallJumpClick, string.format("scene:%s",name)); local jumpcode = json.decode(self.m_data.jumpcode); self:execDelegate(FloatBallDiskItem.Delegate.onFloatBallDiskItemClick, jumpcode); end end end return FloatBallDiskItem;
-- armfurie_fire_explosion return { ["armfurie_fire_explosion"] = { usedefaultexplosions = false, groundflash = { circlealpha = 0.25, circlegrowth = 0.001, flashalpha = 0.82, flashsize = 16, ttl = 16, color = { [1] = 0.99599999189377, [2] = 0.98000001907349, [3] = 0.56599998474121, }, }, foom = { air = true, class = [[heatcloud]], count = 1, ground = true, unit = 1, properties = { heat = 10, heatfalloff = .25, maxheat = 15, pos = [[dir]], size = 17, sizegrowth = 0.7, speed = [[dir]], texture = [[flare1]], }, }, burn = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 0.98, colormap = [[1 0.5 0 .01 0.5 0.4 0.4 0.02 1 0.5 0 .01 0 0 0 0.01]], directional = true, emitrot = 0, emitrotspread = 0, emitvector = [[0, 0.1, 0]], gravity = [[0, 0, 0]], numparticles = 1, particlelife = 20, particlelifespread = 10, particlesize = 13, particlesizespread = 4, particlespeed = [[0 r0.2 i-0.05]], particlespeedspread = 1.5, pos = [[0, 5, 0]], sizegrowth = [[0.50 r-.50]], sizemod = 1.0, texture = [[flare1]], useairlos = true, }, }, spark = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 1.0, colormap = [[1 0.5 0 .01 0.6 .24 0.05 .008 0 0 0 0.01]], directional = true, emitrot = 0, emitrotspread = 180, emitvector = [[0, 1, 0]], gravity = [[0, 0, 0]], numparticles = 4, particlelife = 10, particlelifespread = 10, particlesize = 3.2, particlesizespread = 1, particlespeed = 1.5, particlespeedspread = 1, pos = [[0, 20, 0]], sizegrowth = -0.01, sizemod = 1.0, texture = [[Plasma]], useairlos = true, }, }, }, ["super_armfurie_fire_explosion"] = { usedefaultexplosions = false, groundflash = { circlealpha = 0.25, circlegrowth = 0.001, flashalpha = 0.82, flashsize = 20, ttl = 16, color = { [1] = 0.99599999189377, [2] = 0.98000001907349, [3] = 0.56599998474121, }, }, foom = { air = true, class = [[heatcloud]], count = 1, ground = true, unit = 1, properties = { heat = 10, heatfalloff = .25, maxheat = 15, pos = [[dir]], size = 28, sizegrowth = 0.7, speed = [[dir]], texture = [[flare1]], }, }, burn = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 0.98, colormap = [[1 0.5 0 .01 0.5 0.4 0.4 0.02 1 0.5 0 .01 0 0 0 0.01]], directional = true, emitrot = 0, emitrotspread = 0, emitvector = [[0, 0.1, 0]], gravity = [[0, 0, 0]], numparticles = 3, particlelife = 20, particlelifespread = 10, particlesize = 28, particlesizespread = 4, particlespeed = [[0 r0.2 i-0.05]], particlespeedspread = 1.5, pos = [[0, 5, 0]], sizegrowth = [[0.50 r-.50]], sizemod = 1.0, texture = [[flare1]], useairlos = true, }, }, spark = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, water = true, properties = { airdrag = 1.0, colormap = [[1 0.5 0 .01 0.6 .24 0.05 .008 0 0 0 0.01]], directional = true, emitrot = 0, emitrotspread = 180, emitvector = [[0, 1, 0]], gravity = [[0, 0, 0]], numparticles = 6, particlelife = 16, particlelifespread = 10, particlesize = 5.2, particlesizespread = 1, particlespeed = 1.5, particlespeedspread = 1, pos = [[0, 20, 0]], sizegrowth = -0.01, sizemod = 1.0, texture = [[Plasma]], useairlos = true, }, }, }, }
local shell = require("shell") local transfer = require("tools/transfer") local args, options = shell.parse(...) options.h = options.h or options.help if #args < 2 or options.h then io.write([[Usage: cp [OPTIONS] <from...> <to> -i: prompt before overwrite (overrides -n option). -n: do not overwrite an existing file. -r: copy directories recursively. -u: copy only when the SOURCE file differs from the destination file or when the destination file is missing. -P: preserve attributes, e.g. symbolic links. -v: verbose output. -x: stay on original source file system. --skip=P: skip files matching lua regex P ]]) return not not options.h end -- clean options for copy (as opposed to move) options = { cmd = "cp", i = options.i, f = options.f, n = options.n, r = options.r, u = options.u, P = options.P, v = options.v, x = options.x, skip = options.skip, } return transfer.batch(args, options)
local Util = {} function Util.clipMask(data, mask) assert(type(data) == "table", "Attempt to mask on a non-table!") local clippedData = {} for k, v in pairs(data) do if mask[k] == true then clippedData[k] = v elseif type(mask[k]) == "table" then clippedData[k] = Util.clipMask(data[k], mask[k]) end end return clippedData end function Util.find(array, value) for i, v in ipairs(array) do if v == value then return i end end end return Util
function rev(t) local reversedTable = {} local itemCount = #t for k, v in ipairs(t) do reversedTable[itemCount + 1 - k] = v end return reversedTable end Buffer = {} Buffer.__index = Buffer function Buffer:new(array) local buff = {} if array == nil then buff.data = {} else if type(array) == string then for i = 1, #array do buff.data[i] = string.byte(array, i) end else buff.data = array end end buff.wpos = #buff.data + 1 buff.rpos = 1 setmetatable(buff, Buffer) return buff end function Buffer:readByte() ch = self.data[self.rpos] self.rpos = self.rpos + 1 return ch end function Buffer:readBytes(i) out = {} for x = 1, i do table.insert(out, self:readByte()) end return out end function Buffer:writeBytes(v) for x = 1, (#v+1) do print("writing byte", x) self:writeByte(v[x]) end end function Buffer:writeByte(ch) if self.wpos == #self.data then table.insert(self.data, ch) else self.data[self.wpos] = ch end self.wpos = self.wpos + 1 print("wrote byte ", self.data[self.wpos - 1]) end function Buffer:writeUint(x) c = x while c > 127 do print(c) self:writeByte(bit.band(bit.bor(c, 0x80), 0xFF)) c = bit.brshift(c, 7) end self:writeByte(bit.band(c, 0xFF)) end function Buffer:readUint() b = self:readByte() if b < 128 then return b end value = bit.band(bit.band(b, 0xFF), 0x7F) shift = 7 while b >= 128 do b = self:readByte() value = bit.bor(value, bit.blshift(bit.band(bit.band(b, 0xFF), 0x7F), shift)) shift = shift + 7 end return value end function Buffer:readDouble() bytes = rev(self:readBytes(8)) local sign = 1 local mantissa = bytes[2] % 2^4 for i = 3, 8 do mantissa = mantissa * 256 + bytes[i] end if bytes[1] > 127 then sign = -1 end local exponent = (bytes[1] % 128) * 2^4 + math.floor(bytes[2] / 2^4) if exponent == 0 then return 0 end mantissa = (math.ldexp(mantissa, -52) + 1) * sign return math.ldexp(mantissa, exponent - 1023) end function Buffer:writeDouble(num) local bytes = {0,0,0,0, 0,0,0,0} if num == 0 then return bytes end local anum = math.abs(num) local mantissa, exponent = math.frexp(anum) exponent = exponent - 1 mantissa = mantissa * 2 - 1 local sign = num ~= anum and 128 or 0 exponent = exponent + 1023 bytes[1] = sign + math.floor(exponent / 2^4) mantissa = mantissa * 2^4 local currentmantissa = math.floor(mantissa) mantissa = mantissa - currentmantissa bytes[2] = (exponent % 2^4) * 2^4 + currentmantissa for i = 3, 8 do mantissa = mantissa * 2^8 currentmantissa = math.floor(mantissa) mantissa = mantissa - currentmantissa bytes[i] = currentmantissa end self:writeBytes(rev(bytes)) end -- Does not quite work right. Produces mildly inaccurate floats. Use float64 for now. function Buffer:readFloat() local xStream = rev(self:readBytes(4)) local x = "" for i = 1, 4 do x = x .. string.char(xStream[i]) end local n = 4 local sign = 1 local mantissa = string.byte(x, (opt == 'd') and 7 or 3) % ((opt == 'd') and 16 or 128) for i = n - 2, 1, -1 do mantissa = mantissa * (2 ^ 8) + string.byte(x, i) end if string.byte(x, n) > 127 then sign = -1 end local exponent = (string.byte(x, n) % 128) * ((opt == 'd') and 16 or 2) + math.floor(string.byte(x, n - 1) / ((opt == 'd') and 16 or 128)) if exponent == 0 then return 0.0 else mantissa = (math.ldexp(mantissa, (opt == 'd') and -52 or -23) + 1) * sign return math.ldexp(mantissa, exponent - ((opt == 'd') and 1023 or 127)) end end function fch(c) return bit.band(c, 0xFF) end function Buffer:writeFloat(n) local bytes = {} local val = n local sign = 0 if val < 0 then sign = 1 val = -val end local mantissa, exponent = math.frexp(val) if val == 0 then mantissa = 0 exponent = 0 else mantissa = (mantissa * 2 - 1) * math.ldexp(0.5, (opt == 'd') and 53 or 24) exponent = exponent + ((opt == 'd') and 1022 or 126) end local bytes = {} table.insert(bytes, fch(math.floor(mantissa) % (2 ^ 8))) val = math.floor(mantissa / (2 ^ 8)) table.insert(bytes, fch(math.floor(val) % (2 ^ 8))) val = math.floor(val / (2 ^ 8)) table.insert(bytes, fch(math.floor(exponent * ((opt == 'd') and 16 or 128) + val) % (2 ^ 8))) val = math.floor((exponent * ((opt == 'd') and 16 or 128) + val) / (2 ^ 8)) table.insert(bytes, fch(math.floor(sign * 128 + val) % (2 ^ 8))) val = math.floor((sign * 128 + val) / (2 ^ 8)) self:writeBytes(rev(bytes)) end function Buffer:readBinaryString(x) s = "" for i = 1, (x) do print(i) s = s .. string.char(self:readByte()) end return s end function Buffer:writeBinaryString(x) for i = 1, #x do self:writeByte(string.byte(x, i)) end end function Buffer:readString() print(type(self)) local i = self:readUint() local str = self:readBinaryString(i) return str end function Buffer:writeString(v) self:writeUint(#v) self:writeBinaryString(v) end -- cleave export return Buffer
------------------------------------------------------------------------ --[[ Sequential ]]-- -- Model, Adapter, Composite -- Replaces nn.Sequential such that it can be used for both -- optimzation and evaluation. ------------------------------------------------------------------------ local Sequential, parent = torch.class("dp.Sequential", "dp.Container") Sequential.isSequential = true function Sequential:__init(config) config = config or {} assert(torch.type(config) == 'table' and not config[1], "Constructor requires key-value arguments") config.typename = config.typename or 'sequential' parent.__init(self, config) end function Sequential:setup(config) parent.setup(self, config) config.container = self for i, model in ipairs(self._models) do config.id = self:id():create('s'..i) model:setup(config) end end function Sequential:_forward(carry) local input = self.input for i=1,#self._models do if carry:getObj('evaluate') then input, carry = self._models[i]:evaluate(input, carry) else input, carry = self._models[i]:forward(input, carry) end end self.output = input return carry end function Sequential:_backward(carry) local output = self.output for i=#self._models,1,-1 do output, carry = self._models[i]:backward(output, carry) end self.input = output return carry end function Sequential:inputType(input_type) if not input_type then assert(#self._models > 1, "No models to get input type") return self._models[1]:inputType() end end function Sequential:outputType(output_type) if not output_type then assert(#self._models > 1, "No models to get input type") return self._models[#self._models]:outputType() end end function Sequential:__tostring__() local tab = ' ' local line = '\n' local next = ' -> ' local str = 'dp.Sequential' str = str .. ' {' .. line .. tab .. '[input' for i=1,#self._models do str = str .. next .. '(' .. i .. ')' end str = str .. next .. 'output]' for i=1,#self._models do str = str .. line .. tab .. '(' .. i .. '): ' .. tostring(self._models[i]):gsub(line, line .. tab) end str = str .. line .. '}' return str end function Sequential:_toModule() for i=#self._models,1,-1 do self._models[i]:_toModule() end end
-- oUF_Orbs: core/init -- zork, 2018 ----------------------------- -- Variables ----------------------------- local A, L = ... L.addonName = A L.dragFrames = {} L.addonColor = "00FF3300" L.addonShortcut = "ouf_orbs" --get the config L.C = oUF_OrbsConfig --mediapath L.C.mediapath = "interface\\addons\\"..A.."\\media\\" --size L.C.size = 256 ----------------------------- -- rLib slash command ----------------------------- --create slash commands rLib:CreateSlashCmd(L.addonName, L.addonShortcut, L.dragFrames, L.addonColor)
pedestal = class("pedestal") function pedestal:init(x, y, r) self.cox = x self.coy = y self.x = x-12/16 self.y = y-1 self.progress = 0 self.pickedup = false self.blue = false self.orange = false self.r = {unpack(r)} if #r >= 4 then self.blue = r[3] == "true" self.orange = r[4] == "true" end end function pedestal:update(dt) if not self.pickedup then local col = checkrect(self.x, self.y, 8/16, 8/16, {"player"}) if #col > 0 then for i = 2, #col, 2 do print("!") if self.blue then if not objects["player"][col[i]].portalsavailable[1] then self.pickedup = true objects["player"][col[i]]:portalpickup(1) end end if self.orange then if not objects["player"][col[i]].portalsavailable[2] then self.pickedup = true objects["player"][col[i]]:portalpickup(2) end end if self.pickedup then break end end end elseif self.progress < pedestaltime then self.progress = math.min(pedestaltime, self.progress + dt) end end function pedestal:draw() love.graphics.setColor(255, 255, 255) if self.pickedup then local prog = self.progress / pedestaltime love.graphics.setScissor(math.floor((self.cox-1-xscroll)*16*scale), math.floor((self.coy-1.5-yscroll)*16*scale)+14*prog*scale, 16*scale, (14*(1-prog)+2)*scale) end love.graphics.draw(pedestalbaseimg, math.floor((self.cox-1-xscroll)*16*scale), math.floor((self.coy-1.5-yscroll)*16*scale), 0, scale, scale) love.graphics.setScissor() if not self.pickedup then love.graphics.draw(pedestalgunimg, math.floor((self.cox-1-xscroll)*16*scale), math.floor((self.coy-1.5-yscroll)*16*scale), 0, scale, scale) if self.blue or self.orange then if self.blue then love.graphics.setColor(objects["player"][1].portal1color) elseif self.orange then love.graphics.setColor(objects["player"][1].portal2color) end love.graphics.rectangle("fill", math.floor((self.cox-1-xscroll+7/16)*16*scale), math.floor((self.coy-1.5-yscroll+2/16)*16*scale), scale, scale) end end end
--[[ Tests for correctness of data writing & reading. ]] require 'hdf5' local dir = require 'pl.dir' local path = require 'pl.path' local stringx = require 'pl.stringx' local totem = require 'totem' local tester = totem.Tester() local myTests = {} local testUtils = hdf5._testUtils local function writeAndReread(data) local got local typeIn = torch.typename(data) testUtils.withTmpDir(function(tmpDir) local filename = path.join(tmpDir, "test.h5") local writeFile = hdf5.open(filename, 'w') tester:assertne(writeFile, nil, "hdf5.open returned nil") writeFile:write('data', data) writeFile:close() local readFile = hdf5.open(filename, 'r') tester:assertne(readFile, nil, "hdf5.open returned nil") local dataset = readFile:read('data') tester:assertne(dataset, nil, "dataset is nil") got = dataset:all() readFile:close() tester:assertne(got, nil, "hdf5.read returned nil") local typeOut = torch.typename(got) tester:asserteq(typeIn, typeOut, "type read not the same as type written: was " .. typeIn .. "; is " .. typeOut) end) return got end local function intTensorEqual(typename, a, b) if torch.typename(a) ~= typename or torch.typename(b) ~= typename then error("Expected two tensors of type " .. typename .. "; got " .. torch.typename(a) .. ", " .. torch.typename(b)) end return a:add(-b):apply(function(x) return math.abs(tonumber(x)) end):sum() == 0 end --[[ Not supported yet function myTests:testCharTensor() local k = 0 local testData = torch.CharTensor(4, 6):apply(function() k = k + 1; return k end) local got = writeAndReread(testData) tester:assert(intTensorEqual("torch.CharTensor", got, testData), "Data read does not match data written!") end ]] function myTests:testByteTensor() local k = 0 local testData = torch.ByteTensor(4, 6):apply(function() k = k + 1; return k end) local got = writeAndReread(testData) tester:assert(intTensorEqual("torch.ByteTensor", got, testData), "Data read does not match data written!") end function myTests:testIntTensor() local k = 0 local testData = torch.IntTensor(4, 6):apply(function() k = k + 1; return k end) local got = writeAndReread(testData) tester:assert(intTensorEqual("torch.IntTensor", got, testData), "Data read does not match data written!") end function myTests:testShortTensor() local k = 0 local testData = torch.ShortTensor(4, 6):apply(function() k = k + 1; return k end) local got = writeAndReread(testData) tester:assert(intTensorEqual("torch.ShortTensor", got, testData), "Data read does not match data written!") end function myTests:testLongTensor() local k = 0 local testData = torch.LongTensor(4, 6):apply(function() k = k + 1; return k end) local got = writeAndReread(testData) tester:assert(intTensorEqual("torch.LongTensor", got, testData), "Data read does not match data written!") end function myTests:testFloatTensor() local k = 0 local testData = torch.FloatTensor(4, 6):apply(function() k = k + math.pi; return k end) testData:div(7) local got = writeAndReread(testData) tester:assertTensorEq(got, testData, 1e-32, "Data read does not match data written!") end function myTests:testDoubleTensor() local k = 0 local testData = torch.DoubleTensor(4, 6):apply(function() k = k + math.pi; return k end) testData:div(7) local got = writeAndReread(testData) tester:assertTensorEq(got, testData, 1e-32, "Data read does not match data written!") end function myTests:testNonContiguous() local k = 0 local testData = torch.DoubleTensor(4, 6):apply(function() k = k + math.pi; return k end) testData:div(7) testData = testData:t() local got = writeAndReread(testData) tester:assertTensorEq(got, testData, 1e-32, "Data read does not match data written!") end return tester:add(myTests):run()
-- THIS SCRIPT SOMEHOW DISABLES FIRST-PERSON Citizen.CreateThread(function () local context = GetHashKey("MINI_PROSTITUTE_LOW_RESTRICTED_PASSENGER") while true do ped = PlayerPedId() vehicle = GetVehiclePedIsIn(ped, false) -- Ped is in vehicle if DoesEntityExist(vehicle) then local engine = GetIsVehicleEngineRunning(vehicle) empty, driver_group = AddRelationshipGroup("bus_driver") SetRelationshipBetweenGroups(0, driver_group, GetHashKey("PLAYER")) SetRelationshipBetweenGroups(0, GetHashKey("PLAYER"), driver_group) SetPedRelationshipGroupHash(GetPedInVehicleSeat(vehicle, -1), driver_group) SetPedInVehicleContext(GetPedInVehicleSeat(vehicle, -1), GetHashKey("MISS_ARMENIAN3_FRANKLIN_TENSE")) --SetVehicleDoorsLocked(vehicle, 2) -- Ped is in drivers seat if GetPedInVehicleSeat(vehicle, -1) == ped then -- Listen for vehicle exit if IsControlJustPressed(0, 23) then local held = 0 while GetIsTaskActive(ped, 159) do -- Accumulate held if IsControlPressed(0, 23) then held = held + 1 else held = 0 end -- Held - turn engine off if held > 20 then SetVehicleEngineOn(vehicle, false, false, false) SetVehicleJetEngineOn(vehicle, false) break -- Don't let the engine shut off else SetVehicleEngineOn(vehicle, true, false, false) SetVehicleJetEngineOn(vehicle, true) end Wait(0) end ResetPedInVehicleContext(ped) -- Engine is off | Prevent default engine on elseif not engine then SetPedInVehicleContext(ped, context) -- Listen for engine on if IsControlJustPressed(0, 32) then ResetPedInVehicleContext(ped) SetVehicleEngineOn(vehicle, true, false, false) SetVehicleJetEngineOn(vehicle, true) end end end -- Passenger if GetPedInVehicleSeat(vehicle, 0) == ped or GetPedInVehicleSeat(vehicle, 1) == ped or GetPedInVehicleSeat(vehicle, 2) == ped then SetPedInVehicleContext(ped, context) --SetPedConfigFlag(ped, PED_FLAG_IS_STILL, true) --ShowNotification("??") end end Wait(0) end end) Citizen.CreateThread(function () local b = false local ped = PlayerPedId() -- FIXME local VehicleInteractions = { { --[[bone = "door_dside_f",]] door = 0, seat = -1 }, -- Door left front (driver) { --[[bone = "door_pside_f",]] door = 1, seat = 0 }, -- Door right front { --[[bone = "door_dside_r",]] door = 2, seat = 1 }, -- Door left back { --[[bone = "door_pside_r",]] door = 3, seat = 2 }, -- Door right back { bone = "bonnet", door = 4, range = 1.5 }, -- Vehicle hood - May not always be a door? { bone = "boot", door = 5, range = 1.5 }, -- Vehicle trunk { door = 6 }, -- Back | Trunk2 ? { door = 7 }, -- Back2 ? { bone = 'seat_dside_r2', seat = 3 }, -- seat in vehicle back or on vehicle side { bone = 'seat_pside_r2', seat = 4 }, -- .. bone may not correspond to seat { bone = 'seat_dside_r1', seat = 5 },-- .. { bone = 'seat_pside_r1', seat = 6 }, -- .. } while true do ped = PlayerPedId() if IsControlJustPressed(0, 23, true) then -- 23 INPUT_ENTER if GetIsTaskActive(ped, 160) then local nearest local dist = math.huge local ppos = GetEntityCoords(ped) local vehicle = GetVehiclePedIsTryingToEnter(ped) -- Override entering the drivers seat with the nearest interaction if DoesEntityExist(vehicle) and GetSeatPedIsTryingToEnter(ped) == -1 then local bone local len local coords for i, v in ipairs(VehicleInteractions) do coords = false -- Use bone coords if v.bone then bone = GetEntityBoneIndexByName(vehicle, v.bone) if bone ~= -1 then coords = GetWorldPositionOfEntityBone(vehicle, bone) end -- Use entry position elseif v.door and DoesVehicleHaveDoor(vehicle, v.door) then coords = GetEntryPositionOfDoor(vehicle, v.door) end -- Is interaction is nearest if coords then len = GetDistanceBetweenCoords(vector3(ppos.x, ppos.y, ppos.z), coords) -- Ignore out of interaction range if v.range and len > v.range then elseif len < dist then dist = len nearest = i end end end end if nearest then nearest = VehicleInteractions[nearest] -- If there's not a seat if not nearest.seat then local door = nearest.door if door then -- open the door specified ClearPedTasks(ped) ClearPedTasksImmediately(ped) if GetVehicleDoorAngleRatio(vehicle, door) > 0.0 then SetVehicleDoorShut(vehicle, door, false) PlayVehicleDoorCloseSound(vehicle, 1) else -- TODO task and check if task starts otherwise SetVehicleDoorOpen --TaskOpenVehicleDoor(ped, vehicle, -1, door, 1.0) SetVehicleDoorOpen(vehicle, door, true, false) PlayVehicleDoorOpenSound(vehicle, 0) end end else local seat = nearest.seat local occupant = GetPedInVehicleSeat(vehicle, seat) if DoesEntityExist(occupant) then local rel1 = GetRelationshipBetweenPeds(ped, occupant) if seat ~= -1 then ClearPedTasks(ped) end if rel1 >= 3 and rel1 <= 5 or rel1 == 255 then end else ClearPedTasks(ped) CanShuffleSeat(vehicle, false) TaskEnterVehicle(ped, vehicle, 5000, seat, 1.0, 1, 0) end ---- Failed to gain enter task -- Wait(0) -- if GetVehiclePedIsTryingToEnter(ped) == 0 then end end end end end Wait(0) end end)
require("lspconfig").terraformls.setup { cmd = { DATA_PATH .. "/lsp_servers/terraform/terraform-ls", "serve" }, on_attach = require("lsp").common_on_attach, filetypes = { "tf", "terraform", "hcl" }, }
return {[1]={stats={[1]="attack_speed_+%"},name="attack_speed_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Attack Speed"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Attack Speed",limit={[1]={[1]="#",[2]=-1}}}}}},[2]={stats={[1]="accuracy_rating"},name="accuracy_rating",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1% additional Accuracy Rating"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have -%1% Accuracy Rating",limit={[1]={[1]="#",[2]=-1}}}}}},[3]={stats={[1]="accuracy_rating_+%"},name="accuracy_rating_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Accuracy Rating"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Accuracy Rating",limit={[1]={[1]="#",[2]=-1}}}}}},[4]={stats={[1]="critical_strike_chance_+%"},name="critical_strike_chance_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Critical Strike Chance"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Critical Strike Chance",limit={[1]={[1]="#",[2]=-1}}}}}},[5]={stats={[1]="base_critical_strike_multiplier_+"},name="critical_strike_multiplier_incr",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Attack and Minions have %1$+d%% to Critical Strike Multiplier"}}}},[6]={stats={[1]="global_reduce_enemy_block_%"},name="reduce_block",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="Enemy Block Chance reduced by %1%%% against this Skill and Minions"}}}},[7]={stats={[1]="life_gain_per_target"},name="life_gain_per_target",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions gain %1% Life for each enemy Hit"}}}},[8]={stats={[1]="life_leech_from_any_damage_permyriad"},name="life_leech_from_any",lang={English={[1]={[1]={k="divide_by_one_hundred",v=1},[2]={k="reminderstring",v="ReminderTextLifeLeech"},text="This Attack and Minions Leech %1%%% of Damage as Life",limit={[1]={[1]=1,[2]="#"}}}}}},[9]={stats={[1]="mana_leech_from_any_damage_permyriad"},name="mana_leech_from_any",lang={English={[1]={[1]={k="divide_by_one_hundred",v=1},[2]={k="reminderstring",v="ReminderTextManaLeech"},text="This Attack and Minions Leech %1%%% of Damage as Mana",limit={[1]={[1]=1,[2]="#"}}}}}},[10]={stats={[1]="energy_shield_leech_from_any_damage_permyriad"},name="energy_shield_leech_from_any",lang={English={[1]={[1]={k="divide_by_one_hundred",v=1},[2]={k="reminderstring",v="ReminderTextEnergyShieldLeech"},text="This Attack and Minions Leech %1%%% of Damage as Energy Shield",limit={[1]={[1]=1,[2]="#"}}}}}},[11]={stats={[1]="base_global_chance_to_knockback_%"},name="knockback_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextKnockback"},text="This Attack and Minions have an additional %1%%% chance to Knock Enemies Back on Hit",limit={[1]={[1]=1,[2]=99}}},[2]={[1]={k="reminderstring",v="ReminderTextKnockback"},text="This Attack and Minions Knock Enemies back on Hit",limit={[1]={[1]=100,[2]="#"}}}}}},[12]={stats={[1]="knockback_distance_+%"},name="knockback_distance",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Knockback Distance"},[2]={limit={[1]={[1]="#",[2]=-1}},text="This Attack and Minions have %1%%% reduced Knockback Distance"}}}},[13]={stats={[1]="base_stun_threshold_reduction_+%"},name="stun_threshold_reduction_incr",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextStunThreshold"},text="This Attack and Minions have %1%%% reduced Enemy Stun Threshold",limit={[1]={[1]=1,[2]="#"}}},[2]={[1]={k="negate",v=1},[2]={k="reminderstring",v="ReminderTextStunThreshold"},text="This Attack and Minions have %1%%% increased Enemy Stun Threshold",limit={[1]={[1]="#",[2]=-1}}}}}},[14]={stats={[1]="killed_monster_dropped_item_rarity_+%"},name="killed_monster_dropped_item_rarity_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="%1%%% increased Rarity of Items Dropped by enemies Slain by Minions or This Attack"},[2]={[1]={k="negate",v=1},text="%1%%% reduced Rarity of Items Dropped by enemies Slain by Minions or This Attack",limit={[1]={[1]="#",[2]=-1}}}}}},[15]={stats={[1]="killed_monster_dropped_item_quantity_+%"},name="killed_monster_dropped_item_quantity_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="%1%%% increased Quantity of Items Dropped by enemies Slain by Minions or This Attack"},[2]={[1]={k="negate",v=1},text="%1%%% reduced Quantity of Items Dropped by enemies Slain by Minions or This Attack",limit={[1]={[1]="#",[2]=-1}}}}}},[16]={stats={[1]="base_chance_to_freeze_%",[2]="always_freeze"},name="freeze_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextFreeze"},text="This Attack and Minions always Freeze Enemies",limit={[1]={[1]="#",[2]="#"},[2]={[1]=1,[2]="#"}}},[2]={[1]={k="reminderstring",v="ReminderTextFreeze"},text="This Attack and Minions have %1%%% chance to Freeze enemies",limit={[1]={[1]=1,[2]=99},[2]={[1]=0,[2]=0}}}}}},[17]={stats={[1]="base_chance_to_shock_%"},name="shock_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextShock"},text="This Attack and Minions have %1%%% chance to Shock enemies",limit={[1]={[1]=1,[2]="#"}}}}}},[18]={stats={[1]="base_chance_to_ignite_%"},name="burn_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextIgnite"},text="This Attack and Minions have %1%%% chance to Ignite enemies",limit={[1]={[1]=1,[2]="#"}}}}}},[19]={stats={[1]="global_hit_causes_monster_flee_%"},name="chance_to_flee",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% chance to cause Monsters to Flee when Hit"}}}},[20]={stats={[1]="base_stun_duration_+%"},name="stun_duration_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Stun Duration on enemies"},[2]={limit={[1]={[1]="#",[2]=-1}},text="This Attack and Minions have %1%%% reduced Stun Duration on enemies"}}}},[21]={stats={[1]="ignite_duration_+%"},name="burn_duration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Ignite Duration on Enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Ignite Duration on Enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[22]={stats={[1]="chill_effect_+%"},name="chill_effect",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Chill Effect on enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Chill Effect on enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[23]={stats={[1]="chill_duration_+%"},name="chill_duration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Chill Duration on enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Chill Duration on enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[24]={stats={[1]="freeze_duration_+%"},name="freeze_duration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Freeze Duration on enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Freeze Duration on enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[25]={stats={[1]="shock_duration_+%"},name="shock_duration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Shock Duration on enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Shock Duration on enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[26]={stats={[1]="elemental_status_effect_aura_radius"},name="elemental_status_aura",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextElementalStatusAilments"},text="Elemental Ailments caused by this Attack or Minions spread to other nearby Enemies",limit={[1]={[1]="#",[2]="#"}}}}}},[27]={stats={[1]="support_ignite_proliferation_radius"},name="ignite_aura",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Ignites caused by this Attack or Minions spread to other nearby Enemies"}}}},[28]={stats={[1]="kill_enemy_on_hit_if_under_10%_life"},name="culling_strike",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextCullingStrike"},text="This Attack and Minions have Culling Strike",limit={[1]={[1]=1,[2]="#"}}}}}},[29]={stats={[1]="keystone_point_blank"},name="point_blank",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Attack and Minions have Point Blank"}}}},[30]={stats={[1]="base_reduce_enemy_fire_resistance_%"},name="fire_penetration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions Penetrate %1%%% Fire Resistance"}}}},[31]={stats={[1]="base_reduce_enemy_cold_resistance_%"},name="cold_penetration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions Penetrate %1%%% Cold Resistance"}}}},[32]={stats={[1]="reduce_enemy_elemental_resistance_%"},name="elemental_penetration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions Penetrate %1%%% Elemental Resistances"}}}},[33]={stats={[1]="base_reduce_enemy_lightning_resistance_%"},name="lightning_penetration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions Penetrate %1%%% Lightning Resistance"}}}},[34]={stats={[1]="global_chance_to_blind_on_hit_%"},name="chance_to_blind",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextBlind"},text="This Attack and Minions have %1%%% chance to Blind enemies on hit",limit={[1]={[1]="#",[2]="#"}}}}}},[35]={stats={[1]="blind_duration_+%"},name="blind_duration_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Blinding duration"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Blinding duration",limit={[1]={[1]="#",[2]=-1}}}}}},[36]={stats={[1]="melee_splash"},name="melee_splash",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Attack and Minion's single-target Melee attacks deal Splash Damage to surrounding targets"}}}},[37]={stats={[1]="add_power_charge_on_critical_strike_%"},name="power_charge_on_crit_chance",lang={English={[1]={limit={[1]={[1]=1,[2]=99}},text="This Attack and Minions have %1%%% chance to gain a Power Charge on Critical Strike"},[2]={limit={[1]={[1]=100,[2]="#"}},text="This Attack and Minoins gain a Power Charge on Critical Strike"}}}},[38]={stats={[1]="support_multiple_attacks_melee_attack_speed_+%_final"},name="multiple_attacks_speed",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% more Melee Attack Speed"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% less Melee Attack Speed",limit={[1]={[1]="#",[2]=-1}}}}}},[39]={stats={[1]="base_skill_area_of_effect_+%"},name="area_of_effect_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Area of Effect"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Area of Effect",limit={[1]={[1]="#",[2]=-1}}}}}},[40]={stats={[1]="support_concentrated_effect_skill_area_of_effect_+%_final"},name="concentrated_area_of_effect",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% more Area of Effect"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% less Area of Effect",limit={[1]={[1]="#",[2]=-1}}}}}},[41]={stats={[1]="burn_damage_+%"},name="burn_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Burning Damage"},[2]={[1]={k="negate",v=1},text="This Attack and Minions have %1%%% reduced Burning Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[42]={stats={[1]="gain_endurance_charge_on_melee_stun",[2]="gain_endurance_charge_on_melee_stun_%"},name="endurance_charge_on_stun",lang={English={[1]={limit={[1]={[1]=0,[2]=0},[2]={[1]=0,[2]=99}},text="This Attack and Minions have %1%%% chance to gain Endurance Charges when Stunning Enemies with Melee Damage"},[2]={limit={[1]={[1]=0,[2]=0},[2]={[1]=100,[2]="#"}},text="This Attack and Minions gain Endurance Charges when Stunning Enemies with Melee Damage"},[3]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}},text="This Attack and Minions gain Endurance Charges when Stunning Enemies with Melee Damage"}}}},[43]={stats={[1]="attack_speed_+%_when_on_low_life"},name="attack_speed_incr_on_low_life",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextLowLife"},text="This Attack and Minions have %1%%% increased Attack Speed when on Low Life",limit={[1]={[1]=1,[2]="#"}}},[2]={[1]={k="negate",v=1},[2]={k="reminderstring",v="ReminderTextLowLife"},text="This Attack and Minions have %1%%% reduced Attack Speed when on Low Life",limit={[1]={[1]="#",[2]=-1}}}}}},[44]={stats={[1]="support_attack_totem_attack_speed_+%_final"},name="totem_attack_speed",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% more Attack Speed"},[2]={limit={[1]={[1]="#",[2]=-1}},text="This Attack and Minions have %1%%% less Attack Speed"}}}},[45]={stats={[1]="support_bloodlust_melee_physical_damage_+%_final_vs_bleeding_enemies"},name="bloodlust_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Melee Physical Damage against Bleeding Enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Melee Physical Damage against Bleeding Enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[46]={stats={[1]="melee_damage_vs_bleeding_enemies_+%"},name="bloodlust_damage_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% increased Melee Damage against Bleeding Enemies"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% reduced Melee Damage against Bleeding Enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[47]={stats={[1]="chance_to_fortify_on_melee_hit_+%"},name="chance_to_fortify_on_melee_hit",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextFortify"},text="This Attack and Minions have %1%%% chance to Fortify on Melee hit",limit={[1]={[1]=1,[2]=99}}},[2]={[1]={k="reminderstring",v="ReminderTextFortify"},text="This Attack and Minions gain Fortify on Melee hit",limit={[1]={[1]=100,[2]="#"}}}}}},[48]={stats={[1]="additional_chance_to_freeze_chilled_enemies_%"},name="freeze_chance_vs_chilled",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextFreeze"},text="This Attack and Minions have %1$d%% chance to Freeze Enemies which are Chilled",limit={[1]={[1]="#",[2]="#"}}}}}},[49]={stats={[1]="support_hypothermia_damage_+%_vs_chilled_enemies_final"},name="hypothermia_damage",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextDamagingAilments"},text="This Attack and Minions deal %1%%% more Damage with Hits and Ailments against Chilled Enemies",limit={[1]={[1]=1,[2]="#"}}},[2]={[1]={k="negate",v=1},[2]={k="reminderstring",v="ReminderTextDamagingAilments"},text="This Attack and Minions deal %1%%% less Damage with Hits and Ailments against Chilled Enemies",limit={[1]={[1]="#",[2]=-1}}}}}},[50]={stats={[1]="support_spirit_strike_damage_+%_final"},lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Skill and Minions deal %1%%% more Damage"},[2]={[1]={k="negate",v=1},text="This Skill and Minions deal %1%%% less Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[51]={stats={[1]="support_trap_and_mine_damage_+%_final"},lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Trap and Mine Damage"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Trap and Mine Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[52]={stats={[1]="support_better_ailments_ailment_damage_+%_final"},name="support_better_ailments_bonus",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextDamagingAilments"},text="This Attack and Minions deal %1%%% more Damage with Ailments",limit={[1]={[1]=1,[2]="#"}}},[2]={[1]={k="negate",v=1},[2]={k="reminderstring",v="ReminderTextDamagingAilments"},text="This Attack and Minions deal %1%%% less Damage with Ailments",limit={[1]={[1]="#",[2]=-1}}}}}},[53]={stats={[1]="support_better_ailments_hit_damage_+%_final"},name="support_better_ailments_malus",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage with Hits"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage with Hits",limit={[1]={[1]="#",[2]=-1}}}}}},[54]={stats={[1]="support_chance_to_ignite_fire_damage_+%_final"},name="support_chance_to_ignite_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Fire Damage"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Fire Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[55]={stats={[1]="support_ignite_prolif_ignite_damage_+%_final"},name="ignite_prolif_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage with Ignite"},[2]={limit={[1]={[1]="#",[2]=-1}},text="This Attack and Minions deal %1%%% less Damage with Ignite"}}}},[56]={stats={[1]="support_rapid_decay_damage_over_time_+%_final"},name="rapid_decay",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage over Time"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage over Time",limit={[1]={[1]="#",[2]=-1}}}}}},[57]={stats={[1]="support_debilitate_hit_damage_+%_final_per_poison_stack",[2]="support_debilitate_hit_damage_max_poison_stacks"},name="support_debilitate_hit_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"},[2]={[1]="#",[2]="#"}},text="This Attack and Minions deal %1%%% more Damage with Hits for each Poison on the Enemy, up to %2%"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage with Hits for each Poison on the Enemy, up to %2%",limit={[1]={[1]="#",[2]=-1},[2]={[1]="#",[2]="#"}}}}}},[58]={stats={[1]="support_debilitate_poison_damage_+%_final"},name="support_debilitate_poison_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage with Poison"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage with Poison",limit={[1]={[1]="#",[2]=-1}}}}}},[59]={stats={[1]="support_efficacy_damage_over_time_+%_final"},name="support_efficacy_dot",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage over Time"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage over Time",limit={[1]={[1]="#",[2]=-1}}}}}},[60]={stats={[1]="support_poison_poison_damage_+%_final"},name="support_poison_poison_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage with Poison"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage with Poison",limit={[1]={[1]="#",[2]=-1}}}}}},[61]={stats={[1]="support_gem_elemental_damage_+%_final"},name="elemental_focus_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Elemental Damage"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Elemental Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[62]={stats={[1]="cannot_inflict_status_ailments"},name="cannot_inflict_ailments",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextElementalStatusAilments"},text="This Attack and Minions cannot inflict Elemental Ailments",limit={[1]={[1]="#",[2]="#"}}}}}},[63]={stats={[1]="damage_over_time_+%"},name="damage_over_time_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% increased Damage over Time"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% reduced Damage over Time",limit={[1]={[1]="#",[2]=-1}}}}}},[64]={stats={[1]="global_poison_on_hit"},name="poison_on_hit",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextPoison"},text="This Attack and Minions Poison Enemies on Hit",limit={[1]={[1]="#",[2]="#"}}}}}},[65]={stats={[1]="base_poison_damage_+%"},name="poison_damage",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextPoison"},text="This Attack and Minions have %1%%% increased Damage with Poison",limit={[1]={[1]=1,[2]="#"}}},[2]={[1]={k="reminderstring",v="ReminderTextPoison"},text="This Attack and Minions have %1%%% reduced Damage with Poison",limit={[1]={[1]="#",[2]=-1}}}}}},[66]={stats={[1]="base_poison_duration_+%"},name="poison_duration",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% increased Poison Duration"},[2]={limit={[1]={[1]="#",[2]=-1}},text="This Attack and Minions have %1%%% reduced Poison Duration"}}}},[67]={stats={[1]="melee_splash_area_of_effect_+%_final"},name="melee_splash_radius",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions have %1%%% more Melee Splash Area of Effect"},[2]={limit={[1]={[1]="#",[2]=-1}},text="This Attack and Minions have %1%%% less Melee Splash Area of Effect"}}}},[68]={stats={[1]="chance_to_summon_support_ghost_on_killing_blow_%"},name="ghost_chance",lang={English={[1]={limit={[1]={[1]=1,[2]=99}},text="%1%%% chance to Summon a Phantasm when this Skill, or Non-Phantasm Minions, deal a Killing Blow"},[2]={limit={[1]={[1]=100,[2]="#"}},text="Summon a Phantasm when this Skill, or Non-Phantasm Minions, deal a Killing Blow"}}}},[69]={stats={[1]="max_number_of_dominated_normal_monsters"},name="num_normal_dominated",lang={English={[1]={limit={[1]={[1]=1,[2]=1}},text="Maximum %1% Summoned Normal Sentinel of Dominance"},[2]={limit={[1]={[1]=2,[2]="#"}},text="Maximum %1% Summoned Normal Sentinels of Dominance"}}}},[70]={stats={[1]="max_number_of_dominated_magic_monsters"},name="num_magic_dominated",lang={English={[1]={limit={[1]={[1]=1,[2]=1}},text="Maximum %1% Summoned Magic Sentinel of Dominance"},[2]={limit={[1]={[1]=2,[2]="#"}},text="Maximum %1% Summoned Magic Sentinels of Dominance"}}}},[71]={stats={[1]="max_number_of_dominated_rare_monsters"},name="num_rare_dominated",lang={English={[1]={limit={[1]={[1]=1,[2]=1}},text="Maximum %1% Summoned Rare Sentinel of Dominance"},[2]={limit={[1]={[1]=2,[2]="#"}},text="Maximum %1% Summoned Rare Sentinels of Dominance"}}}},[72]={stats={[1]="support_ruthless_big_hit_max_count"},name="support_ruthless_count",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Every third use of This Attack or Minion's Attacks deals a Ruthless Blow with Melee Hits"}}}},[73]={stats={[1]="support_ruthless_big_hit_damage_+%_final"},name="support_ruthless_damage",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Ruthless Blows from this Attack or Minions deal %1%%% more Melee Damage"}}}},[74]={stats={[1]="support_ruthless_blow_bleeding_damage_from_melee_hits_+%_final"},name="support_ruthless_bleeding_damage",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Ruthless Blows from this Attack or Minions deal %1%%% more Damage with Bleeding caused by Melee Hits"}}}},[75]={stats={[1]="support_ruthless_big_hit_stun_base_duration_override_ms"},name="support_ruthless_stun",lang={English={[1]={[1]={k="milliseconds_to_seconds",v=1},text="Ruthless Blows from this Attack or Minions have a base Stun Duration of %1% seconds",limit={[1]={[1]="#",[2]="#"}}}}}},[76]={stats={[1]="base_chance_to_poison_on_hit_%"},name="poison_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextPoison"},text="This Attack and Minions have %1%%% chance to Poison on Hit",limit={[1]={[1]=1,[2]=99}}},[2]={[1]={k="reminderstring",v="ReminderTextPoison"},text="This Attack and Minions always Poison on Hit",limit={[1]={[1]=100,[2]="#"}}}}}},[77]={stats={[1]="base_deal_no_chaos_damage"},name="deal_no_chaos",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Attack and Minions deal no Chaos Damage"}}}},[78]={stats={[1]="bleed_on_hit_with_attacks_%",[2]="global_bleed_on_hit",[3]="cannot_cause_bleeding"},name="bleeding_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextBleeding"},text="This Attack and Minions have %1%%% chance to cause Bleeding",limit={[1]={[1]=1,[2]=99},[2]={[1]=0,[2]=0},[3]={[1]=0,[2]=0}}},[2]={[1]={k="reminderstring",v="ReminderTextBleeding"},text="This Attack and Minions cause Bleeding",limit={[1]={[1]=100,[2]="#"},[2]={[1]=0,[2]=0},[3]={[1]=0,[2]=0}}},[3]={[1]={k="reminderstring",v="ReminderTextBleeding"},text="This Attack and Minions cause Bleeding",limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"},[3]={[1]=0,[2]=0}}},[4]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"},[3]={[1]="#",[2]="#"}},text="This Attack and Minions cannot cause Bleeding"}}}},[79]={stats={[1]="damage_+%_while_es_leeching"},name="damage_while_es_leeching",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% increased Damage while Leeching Energy Shield"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% reduced Damage while Leeching Energy Shield",limit={[1]={[1]="#",[2]=-1}}}}}},[80]={stats={[1]="damage_+%_while_life_leeching"},name="damage_while_life_leeching",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% increased Damage while Leeching Life"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% reduced Damage while Leeching Life",limit={[1]={[1]="#",[2]=-1}}}}}},[81]={stats={[1]="damage_+%_while_mana_leeching"},name="damage_while_mana_leeching",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% increased Damage while Leeching Mana"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% reduced Damage while Leeching Mana",limit={[1]={[1]="#",[2]=-1}}}}}},[82]={stats={[1]="deal_chaos_damage_per_second_for_10_seconds_on_hit"},name="decay_on_hit",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Attack and Minions inflict Decay on Hit, dealing %1% Chaos Damage per second for 8 seconds"}}}},[83]={stats={[1]="deal_no_elemental_damage"},name="deal_no_elemental",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Attack and Minions deal no Elemental Damage"}}}},[84]={stats={[1]="dominating_blow_chance_to_summon_on_hitting_unqiue_%"},name="dom_blow_unique_chance",lang={English={[1]={limit={[1]={[1]=1,[2]=99}},text="%1%%% Chance to Summon a Normal Sentinel of Dominance when you Hit a Unique Monster"},[2]={limit={[1]={[1]=100,[2]="#"}},text="Summon a Normal Sentinel of Dominance when you Hit a Unique Monster"}}}},[85]={stats={[1]="ignites_apply_fire_resistance_+"},name="ignites_apply_fire_res",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Enemies Ignited by this Attack or Minions have %1$+d%% to Fire Resistance"}}}},[86]={stats={[1]="maim_on_hit_%"},name="maim_chance",lang={English={[1]={limit={[1]={[1]=1,[2]=99}},text="This Attack and Minions Attacks have %1%%% chance to Maim on Hit"},[2]={limit={[1]={[1]=100,[2]="#"}},text="This Attack and Minions Attacks always Maim on Hit"}}}},[87]={stats={[1]="melee_attack_number_of_spirit_strikes"},name="number_of_spirit_strikes",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="This Skill also targets %1% nearby Enemies"}}}},[88]={stats={[1]="support_brutality_physical_damage_+%_final"},name="brutality_phys_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Physical Damage"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Physical Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[89]={stats={[1]="support_chills_also_grant_cold_damage_taken_per_minute_+%"},name="support_chills_incr_cold_dot_taken",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="Enemies Chilled by this Skill or Minions take %1%%% increased Cold Damage over Time"},[2]={[1]={k="negate",v=1},text="Enemies Chilled by this Skill or Minions take %1%%% reduced Cold Damage over Time",limit={[1]={[1]="#",[2]=-1}}}}}},[90]={stats={[1]="support_chills_also_grant_cold_damage_taken_+%_equal_to_slow_amount"},name="support_chills_incr_cold_damage_taken",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Enemies Chilled by this Skill or Minions have Cold Damage taken increased by Chill Effect"}}}},[91]={stats={[1]="support_energy_shield_leech_damage_+%_while_leeching_energy_shield_final"},name="damage_while_es_leeching_more",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage while Leeching Energy Shield"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage while Leeching Energy Shield",limit={[1]={[1]="#",[2]=-1}}}}}},[92]={stats={[1]="support_hypothermia_cold_damage_over_time_+%_final"},name="hypothermia_cold_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Cold Damage Over Time"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Cold Damage Over Time",limit={[1]={[1]="#",[2]=-1}}}}}},[93]={stats={[1]="support_maimed_enemies_physical_damage_taken_+%"},name="maimed_phys_damage_taken_incr",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="Enemies Maimed by this Attack and Minions take %1%%% increased Physical Damage"},[2]={[1]={k="negate",v=1},text="Enemies Maimed by this Attack and Minions take %1%%% reduced Physical Damage",limit={[1]={[1]="#",[2]=-1}}}}}},[94]={stats={[1]="global_minimum_added_fire_damage_vs_burning_enemies",[2]="global_maximum_added_fire_damage_vs_burning_enemies"},name="added_fire_against_burning",lang={English={[1]={limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}},text="This Attack and Minions deal %1% to %2% added Fire Damage against Burning Enemies"}}}},[95]={stats={[1]="support_power_charge_on_crit_damage_+%_final_per_power_charge"},name="power_charge_on_crit_damage",lang={English={[1]={limit={[1]={[1]=1,[2]="#"}},text="This Attack and Minions deal %1%%% more Damage per Power Charge"},[2]={[1]={k="negate",v=1},text="This Attack and Minions deal %1%%% less Damage per Power Charge",limit={[1]={[1]="#",[2]=-1}}}}}},[96]={stats={[1]="support_reduce_enemy_block_and_spell_block_%"},name="support_reduced_block_chance",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Enemies have -%1%%% chance to Block Attack or Spell Damage from this Skill or Minions"}}}},[97]={stats={[1]="support_reduce_enemy_dodge_and_spell_dodge_%"},name="support_reduced_dodge_chance",lang={English={[1]={limit={[1]={[1]="#",[2]="#"}},text="Enemies have -%1%%% chance to Dodge Attack or Spell Hits from this Skill or Minions"}}}},[98]={stats={[1]="support_scion_onslaught_for_3_seconds_on_hitting_unique_enemy_%_chance"},name="support_scion_unique_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextOnslaught"},text="This Skill and Minions have %1%%% chance to gain Onslaught for 3 seconds when you Hit a Unique Enemy",limit={[1]={[1]="#",[2]="#"}}}}}},[99]={stats={[1]="support_scion_onslaught_on_killing_blow_%_chance",[2]="support_scion_onslaught_on_killing_blow_duration_ms"},name="support_scion_chance",lang={English={[1]={[1]={k="milliseconds_to_seconds",v=2},[2]={k="reminderstring",v="ReminderTextOnslaught"},text="This Attack and Minions have %1%%% chance to gain Onslaught for %2% seconds on\ndealing a Killing Blow",limit={[1]={[1]="#",[2]="#"},[2]={[1]="#",[2]="#"}}}}}},[100]={stats={[1]="withered_on_hit_chance_%"},name="withered_on_hit_chance",lang={English={[1]={[1]={k="reminderstring",v="ReminderTextWithered"},text="This Attack and Minions have %1%%% chance to inflict Withered on Hit",limit={[1]={[1]=1,[2]=99}}},[2]={[1]={k="reminderstring",v="ReminderTextWithered"},text="This Attack and Minions inflict Withered on Hit",limit={[1]={[1]=100,[2]="#"}}}}}},["dominating_blow_chance_to_summon_on_hitting_unqiue_%"]=84,parent="minion_skill_stat_descriptions",["max_number_of_dominated_magic_monsters"]=70,["support_better_ailments_ailment_damage_+%_final"]=52,["support_gem_elemental_damage_+%_final"]=61,["support_concentrated_effect_skill_area_of_effect_+%_final"]=40,["support_ruthless_blow_bleeding_damage_from_melee_hits_+%_final"]=74,["base_skill_area_of_effect_+%"]=39,["support_chance_to_ignite_fire_damage_+%_final"]=54,["support_better_ailments_hit_damage_+%_final"]=53,["global_reduce_enemy_block_%"]=6,["gain_endurance_charge_on_melee_stun"]=42,["support_brutality_physical_damage_+%_final"]=88,["life_gain_per_target"]=7,["killed_monster_dropped_item_quantity_+%"]=15,["support_debilitate_hit_damage_+%_final_per_poison_stack"]=57,["keystone_point_blank"]=29,["support_hypothermia_cold_damage_over_time_+%_final"]=92,["global_bleed_on_hit"]=78,["damage_+%_while_life_leeching"]=80,["withered_on_hit_chance_%"]=100,["support_ignite_prolif_ignite_damage_+%_final"]=55,["accuracy_rating_+%"]=3,["additional_chance_to_freeze_chilled_enemies_%"]=48,["gain_endurance_charge_on_melee_stun_%"]=42,["base_chance_to_ignite_%"]=18,["melee_splash"]=36,["base_chance_to_shock_%"]=17,["support_scion_onslaught_on_killing_blow_%_chance"]=99,["global_maximum_added_fire_damage_vs_burning_enemies"]=94,["support_reduce_enemy_dodge_and_spell_dodge_%"]=97,["support_reduce_enemy_block_and_spell_block_%"]=96,["critical_strike_chance_+%"]=4,["ignites_apply_fire_resistance_+"]=85,["support_chills_also_grant_cold_damage_taken_+%_equal_to_slow_amount"]=90,["damage_over_time_+%"]=63,["support_scion_onslaught_for_3_seconds_on_hitting_unique_enemy_%_chance"]=98,["global_minimum_added_fire_damage_vs_burning_enemies"]=94,["accuracy_rating"]=2,["support_ignite_proliferation_radius"]=27,["cannot_inflict_status_ailments"]=62,["reduce_enemy_elemental_resistance_%"]=32,["support_poison_poison_damage_+%_final"]=60,["base_chance_to_poison_on_hit_%"]=76,["energy_shield_leech_from_any_damage_permyriad"]=10,["life_leech_from_any_damage_permyriad"]=8,["attack_speed_+%_when_on_low_life"]=43,["knockback_distance_+%"]=12,["base_reduce_enemy_fire_resistance_%"]=30,["chance_to_fortify_on_melee_hit_+%"]=47,["burn_damage_+%"]=41,["kill_enemy_on_hit_if_under_10%_life"]=28,["base_critical_strike_multiplier_+"]=5,["global_chance_to_blind_on_hit_%"]=34,["ignite_duration_+%"]=21,["support_hypothermia_damage_+%_vs_chilled_enemies_final"]=49,["melee_damage_vs_bleeding_enemies_+%"]=46,["shock_duration_+%"]=25,["support_bloodlust_melee_physical_damage_+%_final_vs_bleeding_enemies"]=45,["bleed_on_hit_with_attacks_%"]=78,["chill_duration_+%"]=23,["base_global_chance_to_knockback_%"]=11,["add_power_charge_on_critical_strike_%"]=37,["support_scion_onslaught_on_killing_blow_duration_ms"]=99,["base_reduce_enemy_lightning_resistance_%"]=33,["support_maimed_enemies_physical_damage_taken_+%"]=93,["freeze_duration_+%"]=24,["blind_duration_+%"]=35,["support_debilitate_poison_damage_+%_final"]=58,["support_rapid_decay_damage_over_time_+%_final"]=56,["mana_leech_from_any_damage_permyriad"]=9,["deal_no_elemental_damage"]=83,["support_attack_totem_attack_speed_+%_final"]=44,["support_efficacy_damage_over_time_+%_final"]=59,["support_debilitate_hit_damage_max_poison_stacks"]=57,["base_stun_threshold_reduction_+%"]=13,["support_spirit_strike_damage_+%_final"]=50,["chill_effect_+%"]=22,["killed_monster_dropped_item_rarity_+%"]=14,["attack_speed_+%"]=1,["support_power_charge_on_crit_damage_+%_final_per_power_charge"]=95,["deal_chaos_damage_per_second_for_10_seconds_on_hit"]=82,["base_poison_duration_+%"]=66,["support_trap_and_mine_damage_+%_final"]=51,["melee_splash_area_of_effect_+%_final"]=67,["base_reduce_enemy_cold_resistance_%"]=31,["cannot_cause_bleeding"]=78,["melee_attack_number_of_spirit_strikes"]=87,["chance_to_summon_support_ghost_on_killing_blow_%"]=68,["max_number_of_dominated_rare_monsters"]=71,["support_ruthless_big_hit_max_count"]=72,["support_ruthless_big_hit_damage_+%_final"]=73,["global_poison_on_hit"]=64,["global_hit_causes_monster_flee_%"]=19,["maim_on_hit_%"]=86,["max_number_of_dominated_normal_monsters"]=69,["always_freeze"]=16,["support_multiple_attacks_melee_attack_speed_+%_final"]=38,["base_poison_damage_+%"]=65,["support_energy_shield_leech_damage_+%_while_leeching_energy_shield_final"]=91,["support_chills_also_grant_cold_damage_taken_per_minute_+%"]=89,["damage_+%_while_es_leeching"]=79,["elemental_status_effect_aura_radius"]=26,["base_chance_to_freeze_%"]=16,["damage_+%_while_mana_leeching"]=81,["support_ruthless_big_hit_stun_base_duration_override_ms"]=75,["base_deal_no_chaos_damage"]=77,["base_stun_duration_+%"]=20}
local clang = require "clang" local ffi = require "ffi" local lib = ffi.C local header = [[ typedef int LLVMBool; typedef struct LLVMOpaqueContext *LLVMContextRef; typedef struct LLVMOpaqueModule *LLVMModuleRef; typedef struct LLVMOpaqueType *LLVMTypeRef; typedef struct LLVMOpaqueTypeHandle *LLVMTypeHandleRef; typedef struct LLVMOpaqueValue *LLVMValueRef; typedef struct LLVMOpaqueBasicBlock *LLVMBasicBlockRef; typedef struct LLVMOpaqueBuilder *LLVMBuilderRef; typedef struct LLVMOpaqueModuleProvider *LLVMModuleProviderRef; typedef struct LLVMOpaqueMemoryBuffer *LLVMMemoryBufferRef; typedef struct LLVMOpaquePassManager *LLVMPassManagerRef; typedef struct LLVMOpaquePassRegistry *LLVMPassRegistryRef; typedef struct LLVMOpaquePassManagerBuilder *LLVMPassManagerBuilderRef; typedef struct LLVMOpaqueUse *LLVMUseRef; typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef; typedef struct LLVMStructLayout *LLVMStructLayoutRef; typedef struct LLVMOpaqueGenericValue *LLVMGenericValueRef; typedef struct LLVMOpaqueExecutionEngine *LLVMExecutionEngineRef; enum LLVMByteOrdering { LLVMBigEndian, LLVMLittleEndian }; typedef enum { LLVMZExtAttribute = 1<<0, LLVMSExtAttribute = 1<<1, LLVMNoReturnAttribute = 1<<2, LLVMInRegAttribute = 1<<3, LLVMStructRetAttribute = 1<<4, LLVMNoUnwindAttribute = 1<<5, LLVMNoAliasAttribute = 1<<6, LLVMByValAttribute = 1<<7, LLVMNestAttribute = 1<<8, LLVMReadNoneAttribute = 1<<9, LLVMReadOnlyAttribute = 1<<10, LLVMNoInlineAttribute = 1<<11, LLVMAlwaysInlineAttribute = 1<<12, LLVMOptimizeForSizeAttribute = 1<<13, LLVMStackProtectAttribute = 1<<14, LLVMStackProtectReqAttribute = 1<<15, LLVMAlignment = 31<<16, LLVMNoCaptureAttribute = 1<<21, LLVMNoRedZoneAttribute = 1<<22, LLVMNoImplicitFloatAttribute = 1<<23, LLVMNakedAttribute = 1<<24, LLVMInlineHintAttribute = 1<<25, LLVMStackAlignment = 7<<26 } LLVMAttribute; typedef enum { LLVMRet = 1, LLVMBr = 2, LLVMSwitch = 3, LLVMIndirectBr = 4, LLVMInvoke = 5, LLVMUnwind = 6, LLVMUnreachable = 7, LLVMAdd = 8, LLVMFAdd = 9, LLVMSub = 10, LLVMFSub = 11, LLVMMul = 12, LLVMFMul = 13, LLVMUDiv = 14, LLVMSDiv = 15, LLVMFDiv = 16, LLVMURem = 17, LLVMSRem = 18, LLVMFRem = 19, LLVMShl = 20, LLVMLShr = 21, LLVMAShr = 22, LLVMAnd = 23, LLVMOr = 24, LLVMXor = 25, LLVMAlloca = 26, LLVMLoad = 27, LLVMStore = 28, LLVMGetElementPtr = 29, LLVMTrunc = 30, LLVMZExt = 31, LLVMSExt = 32, LLVMFPToUI = 33, LLVMFPToSI = 34, LLVMUIToFP = 35, LLVMSIToFP = 36, LLVMFPTrunc = 37, LLVMFPExt = 38, LLVMPtrToInt = 39, LLVMIntToPtr = 40, LLVMBitCast = 41, LLVMICmp = 42, LLVMFCmp = 43, LLVMPHI = 44, LLVMCall = 45, LLVMSelect = 46, LLVMVAArg = 49, LLVMExtractElement = 50, LLVMInsertElement = 51, LLVMShuffleVector = 52, LLVMExtractValue = 53, LLVMInsertValue = 54 } LLVMOpcode; typedef enum { LLVMVoidTypeKind, LLVMFloatTypeKind, LLVMDoubleTypeKind, LLVMX86_FP80TypeKind, LLVMFP128TypeKind, LLVMPPC_FP128TypeKind, LLVMLabelTypeKind, LLVMIntegerTypeKind, LLVMFunctionTypeKind, LLVMStructTypeKind, LLVMArrayTypeKind, LLVMPointerTypeKind, LLVMOpaqueTypeKind, LLVMVectorTypeKind, LLVMMetadataTypeKind, LLVMX86_MMXTypeKind } LLVMTypeKind; typedef enum { LLVMExternalLinkage, LLVMAvailableExternallyLinkage, LLVMLinkOnceAnyLinkage, LLVMLinkOnceODRLinkage, LLVMWeakAnyLinkage, LLVMWeakODRLinkage, LLVMAppendingLinkage, LLVMInternalLinkage, LLVMPrivateLinkage, LLVMDLLImportLinkage, LLVMDLLExportLinkage, LLVMExternalWeakLinkage, LLVMGhostLinkage, LLVMCommonLinkage, LLVMLinkerPrivateLinkage, LLVMLinkerPrivateWeakLinkage, LLVMLinkerPrivateWeakDefAutoLinkage } LLVMLinkage; typedef enum { LLVMDefaultVisibility, LLVMHiddenVisibility, LLVMProtectedVisibility } LLVMVisibility; typedef enum { LLVMCCallConv = 0, LLVMFastCallConv = 8, LLVMColdCallConv = 9, LLVMX86StdcallCallConv = 64, LLVMX86FastcallCallConv = 65 } LLVMCallConv; typedef enum { LLVMIntEQ = 32, LLVMIntNE, LLVMIntUGT, LLVMIntUGE, LLVMIntULT, LLVMIntULE, LLVMIntSGT, LLVMIntSGE, LLVMIntSLT, LLVMIntSLE } LLVMIntPredicate; typedef enum { LLVMRealPredicateFalse, LLVMRealOEQ, LLVMRealOGT, LLVMRealOGE, LLVMRealOLT, LLVMRealOLE, LLVMRealONE, LLVMRealORD, LLVMRealUNO, LLVMRealUEQ, LLVMRealUGT, LLVMRealUGE, LLVMRealULT, LLVMRealULE, LLVMRealUNE, LLVMRealPredicateTrue } LLVMRealPredicate; void LLVMDisposeMessage(char *Message); LLVMContextRef LLVMContextCreate(void); LLVMContextRef LLVMGetGlobalContext(void); void LLVMContextDispose(LLVMContextRef C); unsigned LLVMGetMDKindIDInContext(LLVMContextRef C, const char* Name, unsigned SLen); unsigned LLVMGetMDKindID(const char* Name, unsigned SLen); LLVMModuleRef LLVMModuleCreateWithName(const char *ModuleID); LLVMModuleRef LLVMModuleCreateWithNameInContext(const char *ModuleID, LLVMContextRef C); void LLVMDisposeModule(LLVMModuleRef M); const char *LLVMGetDataLayout(LLVMModuleRef M); void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple); const char *LLVMGetTarget(LLVMModuleRef M); void LLVMSetTarget(LLVMModuleRef M, const char *Triple); LLVMTypeRef LLVMGetTypeByName(LLVMModuleRef M, const char *Name); void LLVMDumpModule(LLVMModuleRef M); void LLVMSetModuleInlineAsm(LLVMModuleRef M, const char *Asm); LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M); LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty); LLVMBool LLVMTypeIsSized(LLVMTypeRef Ty); LLVMContextRef LLVMGetTypeContext(LLVMTypeRef Ty); LLVMTypeRef LLVMInt1TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMInt8TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMInt16TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMInt32TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMInt64TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMIntTypeInContext(LLVMContextRef C, unsigned NumBits); LLVMTypeRef LLVMInt1Type(void); LLVMTypeRef LLVMInt8Type(void); LLVMTypeRef LLVMInt16Type(void); LLVMTypeRef LLVMInt32Type(void); LLVMTypeRef LLVMInt64Type(void); LLVMTypeRef LLVMIntType(unsigned NumBits); unsigned LLVMGetIntTypeWidth(LLVMTypeRef IntegerTy); LLVMTypeRef LLVMFloatTypeInContext(LLVMContextRef C); LLVMTypeRef LLVMDoubleTypeInContext(LLVMContextRef C); LLVMTypeRef LLVMX86FP80TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMFP128TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMPPCFP128TypeInContext(LLVMContextRef C); LLVMTypeRef LLVMFloatType(void); LLVMTypeRef LLVMDoubleType(void); LLVMTypeRef LLVMX86FP80Type(void); LLVMTypeRef LLVMFP128Type(void); LLVMTypeRef LLVMPPCFP128Type(void); LLVMTypeRef LLVMFunctionType(LLVMTypeRef ReturnType, LLVMTypeRef *ParamTypes, unsigned ParamCount, LLVMBool IsVarArg); LLVMBool LLVMIsFunctionVarArg(LLVMTypeRef FunctionTy); LLVMTypeRef LLVMGetReturnType(LLVMTypeRef FunctionTy); unsigned LLVMCountParamTypes(LLVMTypeRef FunctionTy); void LLVMGetParamTypes(LLVMTypeRef FunctionTy, LLVMTypeRef *Dest); LLVMTypeRef LLVMStructTypeInContext(LLVMContextRef C, LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed); LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed); LLVMTypeRef LLVMStructCreateNamed(LLVMContextRef C, const char *Name); const char *LLVMGetStructName(LLVMTypeRef Ty); void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, unsigned ElementCount, LLVMBool Packed); unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy); void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest); LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy); LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, unsigned ElementCount); LLVMTypeRef LLVMPointerType(LLVMTypeRef ElementType, unsigned AddressSpace); LLVMTypeRef LLVMVectorType(LLVMTypeRef ElementType, unsigned ElementCount); LLVMTypeRef LLVMGetElementType(LLVMTypeRef Ty); unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy); unsigned LLVMGetPointerAddressSpace(LLVMTypeRef PointerTy); unsigned LLVMGetVectorSize(LLVMTypeRef VectorTy); LLVMTypeRef LLVMVoidTypeInContext(LLVMContextRef C); LLVMTypeRef LLVMLabelTypeInContext(LLVMContextRef C); LLVMTypeRef LLVMX86MMXTypeInContext(LLVMContextRef C); LLVMTypeRef LLVMVoidType(void); LLVMTypeRef LLVMLabelType(void); LLVMTypeRef LLVMOpaqueType(void); LLVMTypeRef LLVMX86MMXType(void); LLVMTypeRef LLVMResolveTypeHandle(LLVMTypeHandleRef TypeHandle); void LLVMDisposeTypeHandle(LLVMTypeHandleRef TypeHandle); LLVMTypeRef LLVMTypeOf(LLVMValueRef Val); const char *LLVMGetValueName(LLVMValueRef Val); void LLVMSetValueName(LLVMValueRef Val, const char *Name); void LLVMDumpValue(LLVMValueRef Val); void LLVMReplaceAllUsesWith(LLVMValueRef OldVal, LLVMValueRef NewVal); int LLVMHasMetadata(LLVMValueRef Val); LLVMValueRef LLVMGetMetadata(LLVMValueRef Val, unsigned KindID); void LLVMSetMetadata(LLVMValueRef Val, unsigned KindID, LLVMValueRef Node); LLVMValueRef LLVMIsAArgument(LLVMValueRef Val); LLVMValueRef LLVMIsABasicBlock(LLVMValueRef Val); LLVMValueRef LLVMIsAInlineAsm(LLVMValueRef Val); LLVMValueRef LLVMIsAUser(LLVMValueRef Val); LLVMValueRef LLVMIsAConstant(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantAggregateZero(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantArray(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantExpr(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantFP(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantInt(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantPointerNull(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantStruct(LLVMValueRef Val); LLVMValueRef LLVMIsAConstantVector(LLVMValueRef Val); LLVMValueRef LLVMIsAGlobalValue(LLVMValueRef Val); LLVMValueRef LLVMIsAFunction(LLVMValueRef Val); LLVMValueRef LLVMIsAGlobalAlias(LLVMValueRef Val); LLVMValueRef LLVMIsAGlobalVariable(LLVMValueRef Val); LLVMValueRef LLVMIsAUndefValue(LLVMValueRef Val); LLVMValueRef LLVMIsAInstruction(LLVMValueRef Val); LLVMValueRef LLVMIsABinaryOperator(LLVMValueRef Val); LLVMValueRef LLVMIsACallInst(LLVMValueRef Val); LLVMValueRef LLVMIsAIntrinsicInst(LLVMValueRef Val); LLVMValueRef LLVMIsADbgInfoIntrinsic(LLVMValueRef Val); LLVMValueRef LLVMIsADbgDeclareInst(LLVMValueRef Val); LLVMValueRef LLVMIsAEHSelectorInst(LLVMValueRef Val); LLVMValueRef LLVMIsAMemIntrinsic(LLVMValueRef Val); LLVMValueRef LLVMIsAMemCpyInst(LLVMValueRef Val); LLVMValueRef LLVMIsAMemMoveInst(LLVMValueRef Val); LLVMValueRef LLVMIsAMemSetInst(LLVMValueRef Val); LLVMValueRef LLVMIsACmpInst(LLVMValueRef Val); LLVMValueRef LLVMIsAFCmpInst(LLVMValueRef Val); LLVMValueRef LLVMIsAICmpInst(LLVMValueRef Val); LLVMValueRef LLVMIsAExtractElementInst(LLVMValueRef Val); LLVMValueRef LLVMIsAGetElementPtrInst(LLVMValueRef Val); LLVMValueRef LLVMIsAInsertElementInst(LLVMValueRef Val); LLVMValueRef LLVMIsAInsertValueInst(LLVMValueRef Val); LLVMValueRef LLVMIsAPHINode(LLVMValueRef Val); LLVMValueRef LLVMIsASelectInst(LLVMValueRef Val); LLVMValueRef LLVMIsAShuffleVectorInst(LLVMValueRef Val); LLVMValueRef LLVMIsAStoreInst(LLVMValueRef Val); LLVMValueRef LLVMIsATerminatorInst(LLVMValueRef Val); LLVMValueRef LLVMIsABranchInst(LLVMValueRef Val); LLVMValueRef LLVMIsAInvokeInst(LLVMValueRef Val); LLVMValueRef LLVMIsAReturnInst(LLVMValueRef Val); LLVMValueRef LLVMIsASwitchInst(LLVMValueRef Val); LLVMValueRef LLVMIsAUnreachableInst(LLVMValueRef Val); LLVMValueRef LLVMIsAUnaryInstruction(LLVMValueRef Val); LLVMValueRef LLVMIsAAllocaInst(LLVMValueRef Val); LLVMValueRef LLVMIsACastInst(LLVMValueRef Val); LLVMValueRef LLVMIsABitCastInst(LLVMValueRef Val); LLVMValueRef LLVMIsAFPExtInst(LLVMValueRef Val); LLVMValueRef LLVMIsAFPToSIInst(LLVMValueRef Val); LLVMValueRef LLVMIsAFPToUIInst(LLVMValueRef Val); LLVMValueRef LLVMIsAFPTruncInst(LLVMValueRef Val); LLVMValueRef LLVMIsAIntToPtrInst(LLVMValueRef Val); LLVMValueRef LLVMIsAPtrToIntInst(LLVMValueRef Val); LLVMValueRef LLVMIsASExtInst(LLVMValueRef Val); LLVMValueRef LLVMIsASIToFPInst(LLVMValueRef Val); LLVMValueRef LLVMIsATruncInst(LLVMValueRef Val); LLVMValueRef LLVMIsAUIToFPInst(LLVMValueRef Val); LLVMValueRef LLVMIsAZExtInst(LLVMValueRef Val); LLVMValueRef LLVMIsAExtractValueInst(LLVMValueRef Val); LLVMValueRef LLVMIsALoadInst(LLVMValueRef Val); LLVMValueRef LLVMIsAVAArgInst(LLVMValueRef Val); LLVMUseRef LLVMGetFirstUse(LLVMValueRef Val); LLVMUseRef LLVMGetNextUse(LLVMUseRef U); LLVMValueRef LLVMGetUser(LLVMUseRef U); LLVMValueRef LLVMGetUsedValue(LLVMUseRef U); LLVMValueRef LLVMGetOperand(LLVMValueRef Val, unsigned Index); void LLVMSetOperand(LLVMValueRef User, unsigned Index, LLVMValueRef Val); int LLVMGetNumOperands(LLVMValueRef Val); LLVMValueRef LLVMConstNull(LLVMTypeRef Ty); LLVMValueRef LLVMConstAllOnes(LLVMTypeRef Ty); LLVMValueRef LLVMGetUndef(LLVMTypeRef Ty); LLVMBool LLVMIsConstant(LLVMValueRef Val); LLVMBool LLVMIsNull(LLVMValueRef Val); LLVMBool LLVMIsUndef(LLVMValueRef Val); LLVMValueRef LLVMConstPointerNull(LLVMTypeRef Ty); LLVMValueRef LLVMMDStringInContext(LLVMContextRef C, const char *Str, unsigned SLen); LLVMValueRef LLVMMDString(const char *Str, unsigned SLen); LLVMValueRef LLVMMDNodeInContext(LLVMContextRef C, LLVMValueRef *Vals, unsigned Count); LLVMValueRef LLVMMDNode(LLVMValueRef *Vals, unsigned Count); LLVMValueRef LLVMConstInt(LLVMTypeRef IntTy, unsigned long long N, LLVMBool SignExtend); LLVMValueRef LLVMConstIntOfArbitraryPrecision(LLVMTypeRef IntTy, unsigned NumWords, const uint64_t Words[]); LLVMValueRef LLVMConstIntOfString(LLVMTypeRef IntTy, const char *Text, uint8_t Radix); LLVMValueRef LLVMConstIntOfStringAndSize(LLVMTypeRef IntTy, const char *Text, unsigned SLen, uint8_t Radix); LLVMValueRef LLVMConstReal(LLVMTypeRef RealTy, double N); LLVMValueRef LLVMConstRealOfString(LLVMTypeRef RealTy, const char *Text); LLVMValueRef LLVMConstRealOfStringAndSize(LLVMTypeRef RealTy, const char *Text, unsigned SLen); unsigned long long LLVMConstIntGetZExtValue(LLVMValueRef ConstantVal); long long LLVMConstIntGetSExtValue(LLVMValueRef ConstantVal); LLVMValueRef LLVMConstStringInContext(LLVMContextRef C, const char *Str, unsigned Length, LLVMBool DontNullTerminate); LLVMValueRef LLVMConstStructInContext(LLVMContextRef C, LLVMValueRef *ConstantVals, unsigned Count, LLVMBool Packed); LLVMValueRef LLVMConstString(const char *Str, unsigned Length, LLVMBool DontNullTerminate); LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, LLVMValueRef *ConstantVals, unsigned Length); LLVMValueRef LLVMConstStruct(LLVMValueRef *ConstantVals, unsigned Count, LLVMBool Packed); LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size); LLVMOpcode LLVMGetConstOpcode(LLVMValueRef ConstantVal); LLVMValueRef LLVMAlignOf(LLVMTypeRef Ty); LLVMValueRef LLVMSizeOf(LLVMTypeRef Ty); LLVMValueRef LLVMConstNeg(LLVMValueRef ConstantVal); LLVMValueRef LLVMConstNSWNeg(LLVMValueRef ConstantVal); LLVMValueRef LLVMConstNUWNeg(LLVMValueRef ConstantVal); LLVMValueRef LLVMConstFNeg(LLVMValueRef ConstantVal); LLVMValueRef LLVMConstNot(LLVMValueRef ConstantVal); LLVMValueRef LLVMConstAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstNSWAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstNUWAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstFAdd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstNSWSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstNUWSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstFSub(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstMul(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstNSWMul(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstNUWMul(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstFMul(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstUDiv(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstSDiv(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstExactSDiv(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstFDiv(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstURem(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstSRem(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstFRem(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstAnd(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstOr(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstXor(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstICmp(LLVMIntPredicate Predicate, LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstFCmp(LLVMRealPredicate Predicate, LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstShl(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstLShr(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstAShr(LLVMValueRef LHSConstant, LLVMValueRef RHSConstant); LLVMValueRef LLVMConstGEP(LLVMValueRef ConstantVal, LLVMValueRef *ConstantIndices, unsigned NumIndices); LLVMValueRef LLVMConstInBoundsGEP(LLVMValueRef ConstantVal, LLVMValueRef *ConstantIndices, unsigned NumIndices); LLVMValueRef LLVMConstTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstSExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstZExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstFPTrunc(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstFPExt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstUIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstSIToFP(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstFPToUI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstFPToSI(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstPtrToInt(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstIntToPtr(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstZExtOrBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstSExtOrBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstTruncOrBitCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstPointerCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstIntCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType, LLVMBool isSigned); LLVMValueRef LLVMConstFPCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); LLVMValueRef LLVMConstSelect(LLVMValueRef ConstantCondition, LLVMValueRef ConstantIfTrue, LLVMValueRef ConstantIfFalse); LLVMValueRef LLVMConstExtractElement(LLVMValueRef VectorConstant, LLVMValueRef IndexConstant); LLVMValueRef LLVMConstInsertElement(LLVMValueRef VectorConstant, LLVMValueRef ElementValueConstant, LLVMValueRef IndexConstant); LLVMValueRef LLVMConstShuffleVector(LLVMValueRef VectorAConstant, LLVMValueRef VectorBConstant, LLVMValueRef MaskConstant); LLVMValueRef LLVMConstExtractValue(LLVMValueRef AggConstant, unsigned *IdxList, unsigned NumIdx); LLVMValueRef LLVMConstInsertValue(LLVMValueRef AggConstant, LLVMValueRef ElementValueConstant, unsigned *IdxList, unsigned NumIdx); LLVMValueRef LLVMConstInlineAsm(LLVMTypeRef Ty, const char *AsmString, const char *Constraints, LLVMBool HasSideEffects, LLVMBool IsAlignStack); LLVMValueRef LLVMBlockAddress(LLVMValueRef F, LLVMBasicBlockRef BB); LLVMModuleRef LLVMGetGlobalParent(LLVMValueRef Global); LLVMBool LLVMIsDeclaration(LLVMValueRef Global); LLVMLinkage LLVMGetLinkage(LLVMValueRef Global); void LLVMSetLinkage(LLVMValueRef Global, LLVMLinkage Linkage); const char *LLVMGetSection(LLVMValueRef Global); void LLVMSetSection(LLVMValueRef Global, const char *Section); LLVMVisibility LLVMGetVisibility(LLVMValueRef Global); void LLVMSetVisibility(LLVMValueRef Global, LLVMVisibility Viz); unsigned LLVMGetAlignment(LLVMValueRef Global); void LLVMSetAlignment(LLVMValueRef Global, unsigned Bytes); LLVMValueRef LLVMAddGlobal(LLVMModuleRef M, LLVMTypeRef Ty, const char *Name); LLVMValueRef LLVMAddGlobalInAddressSpace(LLVMModuleRef M, LLVMTypeRef Ty, const char *Name, unsigned AddressSpace); LLVMValueRef LLVMGetNamedGlobal(LLVMModuleRef M, const char *Name); LLVMValueRef LLVMGetFirstGlobal(LLVMModuleRef M); LLVMValueRef LLVMGetLastGlobal(LLVMModuleRef M); LLVMValueRef LLVMGetNextGlobal(LLVMValueRef GlobalVar); LLVMValueRef LLVMGetPreviousGlobal(LLVMValueRef GlobalVar); void LLVMDeleteGlobal(LLVMValueRef GlobalVar); LLVMValueRef LLVMGetInitializer(LLVMValueRef GlobalVar); void LLVMSetInitializer(LLVMValueRef GlobalVar, LLVMValueRef ConstantVal); LLVMBool LLVMIsThreadLocal(LLVMValueRef GlobalVar); void LLVMSetThreadLocal(LLVMValueRef GlobalVar, LLVMBool IsThreadLocal); LLVMBool LLVMIsGlobalConstant(LLVMValueRef GlobalVar); void LLVMSetGlobalConstant(LLVMValueRef GlobalVar, LLVMBool IsConstant); LLVMValueRef LLVMAddAlias(LLVMModuleRef M, LLVMTypeRef Ty, LLVMValueRef Aliasee, const char *Name); LLVMValueRef LLVMAddFunction(LLVMModuleRef M, const char *Name, LLVMTypeRef FunctionTy); LLVMValueRef LLVMGetNamedFunction(LLVMModuleRef M, const char *Name); LLVMValueRef LLVMGetFirstFunction(LLVMModuleRef M); LLVMValueRef LLVMGetLastFunction(LLVMModuleRef M); LLVMValueRef LLVMGetNextFunction(LLVMValueRef Fn); LLVMValueRef LLVMGetPreviousFunction(LLVMValueRef Fn); void LLVMDeleteFunction(LLVMValueRef Fn); unsigned LLVMGetIntrinsicID(LLVMValueRef Fn); unsigned LLVMGetFunctionCallConv(LLVMValueRef Fn); void LLVMSetFunctionCallConv(LLVMValueRef Fn, unsigned CC); const char *LLVMGetGC(LLVMValueRef Fn); void LLVMSetGC(LLVMValueRef Fn, const char *Name); void LLVMAddFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA); LLVMAttribute LLVMGetFunctionAttr(LLVMValueRef Fn); void LLVMRemoveFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA); unsigned LLVMCountParams(LLVMValueRef Fn); void LLVMGetParams(LLVMValueRef Fn, LLVMValueRef *Params); LLVMValueRef LLVMGetParam(LLVMValueRef Fn, unsigned Index); LLVMValueRef LLVMGetParamParent(LLVMValueRef Inst); LLVMValueRef LLVMGetFirstParam(LLVMValueRef Fn); LLVMValueRef LLVMGetLastParam(LLVMValueRef Fn); LLVMValueRef LLVMGetNextParam(LLVMValueRef Arg); LLVMValueRef LLVMGetPreviousParam(LLVMValueRef Arg); void LLVMAddAttribute(LLVMValueRef Arg, LLVMAttribute PA); void LLVMRemoveAttribute(LLVMValueRef Arg, LLVMAttribute PA); LLVMAttribute LLVMGetAttribute(LLVMValueRef Arg); void LLVMSetParamAlignment(LLVMValueRef Arg, unsigned align); LLVMValueRef LLVMBasicBlockAsValue(LLVMBasicBlockRef BB); LLVMBool LLVMValueIsBasicBlock(LLVMValueRef Val); LLVMBasicBlockRef LLVMValueAsBasicBlock(LLVMValueRef Val); LLVMValueRef LLVMGetBasicBlockParent(LLVMBasicBlockRef BB); unsigned LLVMCountBasicBlocks(LLVMValueRef Fn); void LLVMGetBasicBlocks(LLVMValueRef Fn, LLVMBasicBlockRef *BasicBlocks); LLVMBasicBlockRef LLVMGetFirstBasicBlock(LLVMValueRef Fn); LLVMBasicBlockRef LLVMGetLastBasicBlock(LLVMValueRef Fn); LLVMBasicBlockRef LLVMGetNextBasicBlock(LLVMBasicBlockRef BB); LLVMBasicBlockRef LLVMGetPreviousBasicBlock(LLVMBasicBlockRef BB); LLVMBasicBlockRef LLVMGetEntryBasicBlock(LLVMValueRef Fn); LLVMBasicBlockRef LLVMAppendBasicBlockInContext(LLVMContextRef C, LLVMValueRef Fn, const char *Name); LLVMBasicBlockRef LLVMInsertBasicBlockInContext(LLVMContextRef C, LLVMBasicBlockRef BB, const char *Name); LLVMBasicBlockRef LLVMAppendBasicBlock(LLVMValueRef Fn, const char *Name); LLVMBasicBlockRef LLVMInsertBasicBlock(LLVMBasicBlockRef InsertBeforeBB, const char *Name); void LLVMDeleteBasicBlock(LLVMBasicBlockRef BB); void LLVMMoveBasicBlockBefore(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos); void LLVMMoveBasicBlockAfter(LLVMBasicBlockRef BB, LLVMBasicBlockRef MovePos); LLVMBasicBlockRef LLVMGetInstructionParent(LLVMValueRef Inst); LLVMValueRef LLVMGetFirstInstruction(LLVMBasicBlockRef BB); LLVMValueRef LLVMGetLastInstruction(LLVMBasicBlockRef BB); LLVMValueRef LLVMGetNextInstruction(LLVMValueRef Inst); LLVMValueRef LLVMGetPreviousInstruction(LLVMValueRef Inst); void LLVMSetInstructionCallConv(LLVMValueRef Instr, unsigned CC); unsigned LLVMGetInstructionCallConv(LLVMValueRef Instr); void LLVMAddInstrAttribute(LLVMValueRef Instr, unsigned index, LLVMAttribute); void LLVMRemoveInstrAttribute(LLVMValueRef Instr, unsigned index, LLVMAttribute); void LLVMSetInstrParamAlignment(LLVMValueRef Instr, unsigned index, unsigned align); LLVMBool LLVMIsTailCall(LLVMValueRef CallInst); void LLVMSetTailCall(LLVMValueRef CallInst, LLVMBool IsTailCall); void LLVMAddIncoming(LLVMValueRef PhiNode, LLVMValueRef *IncomingValues, LLVMBasicBlockRef *IncomingBlocks, unsigned Count); unsigned LLVMCountIncoming(LLVMValueRef PhiNode); LLVMValueRef LLVMGetIncomingValue(LLVMValueRef PhiNode, unsigned Index); LLVMBasicBlockRef LLVMGetIncomingBlock(LLVMValueRef PhiNode, unsigned Index); LLVMBuilderRef LLVMCreateBuilderInContext(LLVMContextRef C); LLVMBuilderRef LLVMCreateBuilder(void); void LLVMPositionBuilder(LLVMBuilderRef Builder, LLVMBasicBlockRef Block, LLVMValueRef Instr); void LLVMPositionBuilderBefore(LLVMBuilderRef Builder, LLVMValueRef Instr); void LLVMPositionBuilderAtEnd(LLVMBuilderRef Builder, LLVMBasicBlockRef Block); LLVMBasicBlockRef LLVMGetInsertBlock(LLVMBuilderRef Builder); void LLVMClearInsertionPosition(LLVMBuilderRef Builder); void LLVMInsertIntoBuilder(LLVMBuilderRef Builder, LLVMValueRef Instr); void LLVMInsertIntoBuilderWithName(LLVMBuilderRef Builder, LLVMValueRef Instr, const char *Name); void LLVMDisposeBuilder(LLVMBuilderRef Builder); void LLVMSetCurrentDebugLocation(LLVMBuilderRef Builder, LLVMValueRef L); LLVMValueRef LLVMGetCurrentDebugLocation(LLVMBuilderRef Builder); void LLVMSetInstDebugLocation(LLVMBuilderRef Builder, LLVMValueRef Inst); LLVMValueRef LLVMBuildRetVoid(LLVMBuilderRef); LLVMValueRef LLVMBuildRet(LLVMBuilderRef, LLVMValueRef V); LLVMValueRef LLVMBuildAggregateRet(LLVMBuilderRef, LLVMValueRef *RetVals, unsigned N); LLVMValueRef LLVMBuildBr(LLVMBuilderRef, LLVMBasicBlockRef Dest); LLVMValueRef LLVMBuildCondBr(LLVMBuilderRef, LLVMValueRef If, LLVMBasicBlockRef Then, LLVMBasicBlockRef Else); LLVMValueRef LLVMBuildSwitch(LLVMBuilderRef, LLVMValueRef V, LLVMBasicBlockRef Else, unsigned NumCases); LLVMValueRef LLVMBuildIndirectBr(LLVMBuilderRef B, LLVMValueRef Addr, unsigned NumDests); LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, const char *Name); LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef); void LLVMAddCase(LLVMValueRef Switch, LLVMValueRef OnVal, LLVMBasicBlockRef Dest); void LLVMAddDestination(LLVMValueRef IndirectBr, LLVMBasicBlockRef Dest); LLVMValueRef LLVMBuildAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNSWAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNUWAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildFAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNSWSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNUWSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildFSub(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNSWMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNUWMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildFMul(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildUDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildSDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildExactSDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildFDiv(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildURem(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildSRem(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildFRem(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildShl(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildLShr(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildAShr(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildAnd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildOr(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildXor(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildBinOp(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildNeg(LLVMBuilderRef, LLVMValueRef V, const char *Name); LLVMValueRef LLVMBuildNSWNeg(LLVMBuilderRef B, LLVMValueRef V, const char *Name); LLVMValueRef LLVMBuildNUWNeg(LLVMBuilderRef B, LLVMValueRef V, const char *Name); LLVMValueRef LLVMBuildFNeg(LLVMBuilderRef, LLVMValueRef V, const char *Name); LLVMValueRef LLVMBuildNot(LLVMBuilderRef, LLVMValueRef V, const char *Name); LLVMValueRef LLVMBuildMalloc(LLVMBuilderRef, LLVMTypeRef Ty, const char *Name); LLVMValueRef LLVMBuildArrayMalloc(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char *Name); LLVMValueRef LLVMBuildAlloca(LLVMBuilderRef, LLVMTypeRef Ty, const char *Name); LLVMValueRef LLVMBuildArrayAlloca(LLVMBuilderRef, LLVMTypeRef Ty, LLVMValueRef Val, const char *Name); LLVMValueRef LLVMBuildFree(LLVMBuilderRef, LLVMValueRef PointerVal); LLVMValueRef LLVMBuildLoad(LLVMBuilderRef, LLVMValueRef PointerVal, const char *Name); LLVMValueRef LLVMBuildStore(LLVMBuilderRef, LLVMValueRef Val, LLVMValueRef Ptr); LLVMValueRef LLVMBuildGEP(LLVMBuilderRef B, LLVMValueRef Pointer, LLVMValueRef *Indices, unsigned NumIndices, const char *Name); LLVMValueRef LLVMBuildInBoundsGEP(LLVMBuilderRef B, LLVMValueRef Pointer, LLVMValueRef *Indices, unsigned NumIndices, const char *Name); LLVMValueRef LLVMBuildStructGEP(LLVMBuilderRef B, LLVMValueRef Pointer, unsigned Idx, const char *Name); LLVMValueRef LLVMBuildGlobalString(LLVMBuilderRef B, const char *Str, const char *Name); LLVMValueRef LLVMBuildGlobalStringPtr(LLVMBuilderRef B, const char *Str, const char *Name); LLVMValueRef LLVMBuildTrunc(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildZExt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildSExt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildFPToUI(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildFPToSI(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildUIToFP(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildSIToFP(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildFPTrunc(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildFPExt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildPtrToInt(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildIntToPtr(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildZExtOrBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildSExtOrBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildTruncOrBitCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildCast(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildPointerCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildIntCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildFPCast(LLVMBuilderRef, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name); LLVMValueRef LLVMBuildICmp(LLVMBuilderRef, LLVMIntPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildFCmp(LLVMBuilderRef, LLVMRealPredicate Op, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMValueRef LLVMBuildPhi(LLVMBuilderRef, LLVMTypeRef Ty, const char *Name); LLVMValueRef LLVMBuildCall(LLVMBuilderRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, const char *Name); LLVMValueRef LLVMBuildSelect(LLVMBuilderRef, LLVMValueRef If, LLVMValueRef Then, LLVMValueRef Else, const char *Name); LLVMValueRef LLVMBuildVAArg(LLVMBuilderRef, LLVMValueRef List, LLVMTypeRef Ty, const char *Name); LLVMValueRef LLVMBuildExtractElement(LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef Index, const char *Name); LLVMValueRef LLVMBuildInsertElement(LLVMBuilderRef, LLVMValueRef VecVal, LLVMValueRef EltVal, LLVMValueRef Index, const char *Name); LLVMValueRef LLVMBuildShuffleVector(LLVMBuilderRef, LLVMValueRef V1, LLVMValueRef V2, LLVMValueRef Mask, const char *Name); LLVMValueRef LLVMBuildExtractValue(LLVMBuilderRef, LLVMValueRef AggVal, unsigned Index, const char *Name); LLVMValueRef LLVMBuildInsertValue(LLVMBuilderRef, LLVMValueRef AggVal, LLVMValueRef EltVal, unsigned Index, const char *Name); LLVMValueRef LLVMBuildIsNull(LLVMBuilderRef, LLVMValueRef Val, const char *Name); LLVMValueRef LLVMBuildIsNotNull(LLVMBuilderRef, LLVMValueRef Val, const char *Name); LLVMValueRef LLVMBuildPtrDiff(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); LLVMModuleProviderRef LLVMCreateModuleProviderForExistingModule(LLVMModuleRef M); void LLVMDisposeModuleProvider(LLVMModuleProviderRef M); LLVMBool LLVMCreateMemoryBufferWithContentsOfFile(const char *Path, LLVMMemoryBufferRef *OutMemBuf, char **OutMessage); LLVMBool LLVMCreateMemoryBufferWithSTDIN(LLVMMemoryBufferRef *OutMemBuf, char **OutMessage); void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf); LLVMPassRegistryRef LLVMGetGlobalPassRegistry(void); LLVMPassManagerRef LLVMCreatePassManager(void); LLVMPassManagerRef LLVMCreateFunctionPassManagerForModule(LLVMModuleRef M); LLVMPassManagerRef LLVMCreateFunctionPassManager(LLVMModuleProviderRef MP); LLVMBool LLVMRunPassManager(LLVMPassManagerRef PM, LLVMModuleRef M); LLVMBool LLVMInitializeFunctionPassManager(LLVMPassManagerRef FPM); LLVMBool LLVMRunFunctionPassManager(LLVMPassManagerRef FPM, LLVMValueRef F); LLVMBool LLVMFinalizeFunctionPassManager(LLVMPassManagerRef FPM); void LLVMDisposePassManager(LLVMPassManagerRef PM); typedef enum { LLVMAbortProcessAction, LLVMPrintMessageAction, LLVMReturnStatusAction } LLVMVerifierFailureAction; LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action, char **OutMessage); LLVMBool LLVMVerifyFunction(LLVMValueRef Fn, LLVMVerifierFailureAction Action); void LLVMViewFunctionCFG(LLVMValueRef Fn); void LLVMViewFunctionCFGOnly(LLVMValueRef Fn); LLVMBool LLVMParseBitcode(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage); LLVMBool LLVMParseBitcodeInContext(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutModule, char **OutMessage); LLVMBool LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage); LLVMBool LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf, LLVMModuleRef *OutM, char **OutMessage); LLVMBool LLVMGetBitcodeModuleProviderInContext(LLVMContextRef ContextRef, LLVMMemoryBufferRef MemBuf, LLVMModuleProviderRef *OutMP, char **OutMessage); LLVMBool LLVMGetBitcodeModuleProvider(LLVMMemoryBufferRef MemBuf, LLVMModuleProviderRef *OutMP, char **OutMessage); int LLVMWriteBitcodeToFile(LLVMModuleRef M, const char *Path); int LLVMWriteBitcodeToFD(LLVMModuleRef M, int FD, int ShouldClose, int Unbuffered); int LLVMWriteBitcodeToFileHandle(LLVMModuleRef M, int Handle); void LLVMInitializeX86TargetInfo(void); void LLVMInitializeX86Target(void); void LLVMInitializeX86TargetMC(void); LLVMTargetDataRef LLVMCreateTargetData(const char *StringRep); void LLVMAddTargetData(LLVMTargetDataRef, LLVMPassManagerRef); char *LLVMCopyStringRepOfTargetData(LLVMTargetDataRef); enum LLVMByteOrdering LLVMByteOrder(LLVMTargetDataRef); unsigned LLVMPointerSize(LLVMTargetDataRef); LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef); unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef, LLVMTypeRef); unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef, LLVMTypeRef); unsigned long long LLVMABISizeOfType(LLVMTargetDataRef, LLVMTypeRef); unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef); unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef); unsigned LLVMPreferredAlignmentOfType(LLVMTargetDataRef, LLVMTypeRef); unsigned LLVMPreferredAlignmentOfGlobal(LLVMTargetDataRef, LLVMValueRef GlobalVar); unsigned LLVMElementAtOffset(LLVMTargetDataRef, LLVMTypeRef StructTy, unsigned long long Offset); unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef, LLVMTypeRef StructTy, unsigned Element); void LLVMDisposeTargetData(LLVMTargetDataRef); void LLVMLinkInJIT(void); void LLVMLinkInInterpreter(void); LLVMGenericValueRef LLVMCreateGenericValueOfInt(LLVMTypeRef Ty, unsigned long long N, LLVMBool IsSigned); LLVMGenericValueRef LLVMCreateGenericValueOfPointer(void *P); LLVMGenericValueRef LLVMCreateGenericValueOfFloat(LLVMTypeRef Ty, double N); unsigned LLVMGenericValueIntWidth(LLVMGenericValueRef GenValRef); unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal, LLVMBool IsSigned); void *LLVMGenericValueToPointer(LLVMGenericValueRef GenVal); double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal); void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal); LLVMBool LLVMCreateExecutionEngineForModule(LLVMExecutionEngineRef *OutEE, LLVMModuleRef M, char **OutError); LLVMBool LLVMCreateInterpreterForModule(LLVMExecutionEngineRef *OutInterp, LLVMModuleRef M, char **OutError); LLVMBool LLVMCreateJITCompilerForModule(LLVMExecutionEngineRef *OutJIT, LLVMModuleRef M, unsigned OptLevel, char **OutError); LLVMBool LLVMCreateExecutionEngine(LLVMExecutionEngineRef *OutEE, LLVMModuleProviderRef MP, char **OutError); LLVMBool LLVMCreateInterpreter(LLVMExecutionEngineRef *OutInterp, LLVMModuleProviderRef MP, char **OutError); LLVMBool LLVMCreateJITCompiler(LLVMExecutionEngineRef *OutJIT, LLVMModuleProviderRef MP, unsigned OptLevel, char **OutError); void LLVMDisposeExecutionEngine(LLVMExecutionEngineRef EE); void LLVMRunStaticConstructors(LLVMExecutionEngineRef EE); void LLVMRunStaticDestructors(LLVMExecutionEngineRef EE); int LLVMRunFunctionAsMain(LLVMExecutionEngineRef EE, LLVMValueRef F, unsigned ArgC, const char * const *ArgV, const char * const *EnvP); LLVMGenericValueRef LLVMRunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F, unsigned NumArgs, LLVMGenericValueRef *Args); void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F); void LLVMAddModule(LLVMExecutionEngineRef EE, LLVMModuleRef M); void LLVMAddModuleProvider(LLVMExecutionEngineRef EE, LLVMModuleProviderRef MP); LLVMBool LLVMRemoveModule(LLVMExecutionEngineRef EE, LLVMModuleRef M, LLVMModuleRef *OutMod, char **OutError); LLVMBool LLVMRemoveModuleProvider(LLVMExecutionEngineRef EE, LLVMModuleProviderRef MP, LLVMModuleRef *OutMod, char **OutError); LLVMBool LLVMFindFunction(LLVMExecutionEngineRef EE, const char *Name, LLVMValueRef *OutFn); void *LLVMRecompileAndRelinkFunction(LLVMExecutionEngineRef EE, LLVMValueRef Fn); LLVMTargetDataRef LLVMGetExecutionEngineTargetData(LLVMExecutionEngineRef EE); void LLVMAddGlobalMapping(LLVMExecutionEngineRef EE, LLVMValueRef Global, void* Addr); void *LLVMGetPointerToGlobal(LLVMExecutionEngineRef EE, LLVMValueRef Global); void LLVMInitializeCore(LLVMPassRegistryRef R); void LLVMInitializeTransformUtils(LLVMPassRegistryRef R); void LLVMInitializeScalarOpts(LLVMPassRegistryRef R); void LLVMInitializeInstCombine(LLVMPassRegistryRef R); void LLVMInitializeIPO(LLVMPassRegistryRef R); void LLVMInitializeAnalysis(LLVMPassRegistryRef R); void LLVMInitializeIPA(LLVMPassRegistryRef R); void LLVMInitializeCodeGen(LLVMPassRegistryRef R); void LLVMInitializeTarget(LLVMPassRegistryRef R); void LLVMAddArgumentPromotionPass(LLVMPassManagerRef PM); void LLVMAddConstantMergePass(LLVMPassManagerRef PM); void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM); void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM); void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM); void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM); void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM); void LLVMAddIPConstantPropagationPass(LLVMPassManagerRef PM); void LLVMAddPruneEHPass(LLVMPassManagerRef PM); void LLVMAddIPSCCPPass(LLVMPassManagerRef PM); void LLVMAddInternalizePass(LLVMPassManagerRef, unsigned AllButMain); void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM); void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM); void LLVMAddAggressiveDCEPass(LLVMPassManagerRef PM); void LLVMAddCFGSimplificationPass(LLVMPassManagerRef PM); void LLVMAddDeadStoreEliminationPass(LLVMPassManagerRef PM); void LLVMAddGVNPass(LLVMPassManagerRef PM); void LLVMAddIndVarSimplifyPass(LLVMPassManagerRef PM); void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM); void LLVMAddJumpThreadingPass(LLVMPassManagerRef PM); void LLVMAddLICMPass(LLVMPassManagerRef PM); void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM); void LLVMAddLoopRotatePass(LLVMPassManagerRef PM); void LLVMAddLoopUnrollPass(LLVMPassManagerRef PM); void LLVMAddLoopUnswitchPass(LLVMPassManagerRef PM); void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM); void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM); void LLVMAddReassociatePass(LLVMPassManagerRef PM); void LLVMAddSCCPPass(LLVMPassManagerRef PM); void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM); void LLVMAddScalarReplAggregatesPassWithThreshold(LLVMPassManagerRef PM, int Threshold); void LLVMAddSimplifyLibCallsPass(LLVMPassManagerRef PM); void LLVMAddTailCallEliminationPass(LLVMPassManagerRef PM); void LLVMAddConstantPropagationPass(LLVMPassManagerRef PM); void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM); void LLVMAddVerifierPass(LLVMPassManagerRef PM); LLVMPassManagerBuilderRef LLVMPassManagerBuilderCreate(void); void LLVMPassManagerBuilderDispose(LLVMPassManagerBuilderRef PMB); void LLVMPassManagerBuilderSetOptLevel(LLVMPassManagerBuilderRef PMB, unsigned OptLevel); void LLVMPassManagerBuilderSetSizeLevel(LLVMPassManagerBuilderRef PMB, unsigned SizeLevel); void LLVMPassManagerBuilderSetDisableUnitAtATime(LLVMPassManagerBuilderRef PMB, LLVMBool Value); void LLVMPassManagerBuilderSetDisableUnrollLoops(LLVMPassManagerBuilderRef PMB, LLVMBool Value); void LLVMPassManagerBuilderSetDisableSimplifyLibCalls(LLVMPassManagerBuilderRef PMB, LLVMBool Value); void LLVMPassManagerBuilderUseInlinerWithThreshold(LLVMPassManagerBuilderRef PMB, unsigned Threshold); void LLVMPassManagerBuilderPopulateFunctionPassManager(LLVMPassManagerBuilderRef PMB, LLVMPassManagerRef PM); void LLVMPassManagerBuilderPopulateModulePassManager(LLVMPassManagerBuilderRef PMB, LLVMPassManagerRef PM); void LLVMPassManagerBuilderPopulateLTOPassManager(LLVMPassManagerBuilderRef PMB, LLVMPassManagerRef PM, bool Internalize, bool RunInliner); ]] ffi.cdef(header) if false then -- generate metatype bindings by parsing the header for known types as first arguments: local objs = { "Context", "Module", "Type", "Value", "BasicBlock", "Builder", "ModuleProvider", "MemoryBuffer", "PassManager", "PassRegistry", "Use", "TargetData", "GenericValue", "ExecutionEngine", } for i, obj in ipairs(objs) do print(string.format("\nlocal %s = {", obj)) local patt = "LLVM(%w+)%(LLVM" .. obj .. "Ref" for m in header:gmatch(patt) do print(string.format("\t%s = lib.LLVM%s,", m, m)) end print("}") print(string.format("%s.__index = %s", obj, obj)) end print("-- no modifications to metatables after this point:") for i, obj in ipairs(objs) do print(string.format('ffi.metatype("struct LLVMOpaque%s", %s)\n', obj, obj)) end os.exit() end local llvm = {} ---- METATYPES ---- local Context = { ContextDispose = lib.LLVMContextDispose, GetMDKindIDInContext = lib.LLVMGetMDKindIDInContext, Int1TypeInContext = lib.LLVMInt1TypeInContext, Int8TypeInContext = lib.LLVMInt8TypeInContext, Int16TypeInContext = lib.LLVMInt16TypeInContext, Int32TypeInContext = lib.LLVMInt32TypeInContext, Int64TypeInContext = lib.LLVMInt64TypeInContext, IntTypeInContext = lib.LLVMIntTypeInContext, FloatTypeInContext = lib.LLVMFloatTypeInContext, DoubleTypeInContext = lib.LLVMDoubleTypeInContext, X86FP80TypeInContext = lib.LLVMX86FP80TypeInContext, FP128TypeInContext = lib.LLVMFP128TypeInContext, PPCFP128TypeInContext = lib.LLVMPPCFP128TypeInContext, StructTypeInContext = lib.LLVMStructTypeInContext, StructCreateNamed = lib.LLVMStructCreateNamed, VoidTypeInContext = lib.LLVMVoidTypeInContext, LabelTypeInContext = lib.LLVMLabelTypeInContext, X86MMXTypeInContext = lib.LLVMX86MMXTypeInContext, MDStringInContext = lib.LLVMMDStringInContext, MDNodeInContext = lib.LLVMMDNodeInContext, ConstStringInContext = lib.LLVMConstStringInContext, ConstStructInContext = lib.LLVMConstStructInContext, AppendBasicBlockInContext = lib.LLVMAppendBasicBlockInContext, InsertBasicBlockInContext = lib.LLVMInsertBasicBlockInContext, CreateBuilderInContext = lib.LLVMCreateBuilderInContext, ParseBitcodeInContext = lib.LLVMParseBitcodeInContext, GetBitcodeModuleInContext = lib.LLVMGetBitcodeModuleInContext, GetBitcodeModuleProviderInContext = lib.LLVMGetBitcodeModuleProviderInContext, } Context.__index = Context local Module = { DisposeModule = lib.LLVMDisposeModule, GetDataLayout = lib.LLVMGetDataLayout, SetDataLayout = lib.LLVMSetDataLayout, GetTarget = lib.LLVMGetTarget, SetTarget = lib.LLVMSetTarget, GetTypeByName = lib.LLVMGetTypeByName, DumpModule = lib.LLVMDumpModule, SetModuleInlineAsm = lib.LLVMSetModuleInlineAsm, GetModuleContext = lib.LLVMGetModuleContext, AddGlobal = lib.LLVMAddGlobal, AddGlobalInAddressSpace = lib.LLVMAddGlobalInAddressSpace, GetNamedGlobal = lib.LLVMGetNamedGlobal, GetFirstGlobal = lib.LLVMGetFirstGlobal, GetLastGlobal = lib.LLVMGetLastGlobal, AddAlias = lib.LLVMAddAlias, AddFunction = lib.LLVMAddFunction, GetNamedFunction = lib.LLVMGetNamedFunction, GetFirstFunction = lib.LLVMGetFirstFunction, GetLastFunction = lib.LLVMGetLastFunction, CreateModuleProviderForExistingModule = lib.LLVMCreateModuleProviderForExistingModule, CreateFunctionPassManagerForModule = lib.LLVMCreateFunctionPassManagerForModule, VerifyModule = lib.LLVMVerifyModule, WriteBitcodeToFile = lib.LLVMWriteBitcodeToFile, WriteBitcodeToFD = lib.LLVMWriteBitcodeToFD, WriteBitcodeToFileHandle = lib.LLVMWriteBitcodeToFileHandle, } Module.__index = Module local Type = { GetTypeKind = lib.LLVMGetTypeKind, TypeIsSized = lib.LLVMTypeIsSized, GetTypeContext = lib.LLVMGetTypeContext, GetIntTypeWidth = lib.LLVMGetIntTypeWidth, FunctionType = lib.LLVMFunctionType, IsFunctionVarArg = lib.LLVMIsFunctionVarArg, GetReturnType = lib.LLVMGetReturnType, CountParamTypes = lib.LLVMCountParamTypes, GetParamTypes = lib.LLVMGetParamTypes, StructType = lib.LLVMStructType, GetStructName = lib.LLVMGetStructName, StructSetBody = lib.LLVMStructSetBody, CountStructElementTypes = lib.LLVMCountStructElementTypes, GetStructElementTypes = lib.LLVMGetStructElementTypes, IsPackedStruct = lib.LLVMIsPackedStruct, ArrayType = lib.LLVMArrayType, PointerType = lib.LLVMPointerType, VectorType = lib.LLVMVectorType, GetElementType = lib.LLVMGetElementType, GetArrayLength = lib.LLVMGetArrayLength, GetPointerAddressSpace = lib.LLVMGetPointerAddressSpace, GetVectorSize = lib.LLVMGetVectorSize, ConstNull = lib.LLVMConstNull, ConstAllOnes = lib.LLVMConstAllOnes, GetUndef = lib.LLVMGetUndef, ConstPointerNull = lib.LLVMConstPointerNull, ConstInt = lib.LLVMConstInt, ConstIntOfArbitraryPrecision = lib.LLVMConstIntOfArbitraryPrecision, ConstIntOfString = lib.LLVMConstIntOfString, ConstIntOfStringAndSize = lib.LLVMConstIntOfStringAndSize, ConstReal = lib.LLVMConstReal, ConstRealOfString = lib.LLVMConstRealOfString, ConstRealOfStringAndSize = lib.LLVMConstRealOfStringAndSize, ConstArray = lib.LLVMConstArray, AlignOf = lib.LLVMAlignOf, SizeOf = lib.LLVMSizeOf, ConstInlineAsm = lib.LLVMConstInlineAsm, CreateGenericValueOfInt = lib.LLVMCreateGenericValueOfInt, CreateGenericValueOfFloat = lib.LLVMCreateGenericValueOfFloat, GenericValueToFloat = lib.LLVMGenericValueToFloat, } Type.__index = Type local Value = { TypeOf = lib.LLVMTypeOf, GetValueName = lib.LLVMGetValueName, SetValueName = lib.LLVMSetValueName, DumpValue = lib.LLVMDumpValue, ReplaceAllUsesWith = lib.LLVMReplaceAllUsesWith, HasMetadata = lib.LLVMHasMetadata, GetMetadata = lib.LLVMGetMetadata, SetMetadata = lib.LLVMSetMetadata, IsAArgument = lib.LLVMIsAArgument, IsABasicBlock = lib.LLVMIsABasicBlock, IsAInlineAsm = lib.LLVMIsAInlineAsm, IsAUser = lib.LLVMIsAUser, IsAConstant = lib.LLVMIsAConstant, IsAConstantAggregateZero = lib.LLVMIsAConstantAggregateZero, IsAConstantArray = lib.LLVMIsAConstantArray, IsAConstantExpr = lib.LLVMIsAConstantExpr, IsAConstantFP = lib.LLVMIsAConstantFP, IsAConstantInt = lib.LLVMIsAConstantInt, IsAConstantPointerNull = lib.LLVMIsAConstantPointerNull, IsAConstantStruct = lib.LLVMIsAConstantStruct, IsAConstantVector = lib.LLVMIsAConstantVector, IsAGlobalValue = lib.LLVMIsAGlobalValue, IsAFunction = lib.LLVMIsAFunction, IsAGlobalAlias = lib.LLVMIsAGlobalAlias, IsAGlobalVariable = lib.LLVMIsAGlobalVariable, IsAUndefValue = lib.LLVMIsAUndefValue, IsAInstruction = lib.LLVMIsAInstruction, IsABinaryOperator = lib.LLVMIsABinaryOperator, IsACallInst = lib.LLVMIsACallInst, IsAIntrinsicInst = lib.LLVMIsAIntrinsicInst, IsADbgInfoIntrinsic = lib.LLVMIsADbgInfoIntrinsic, IsADbgDeclareInst = lib.LLVMIsADbgDeclareInst, IsAEHSelectorInst = lib.LLVMIsAEHSelectorInst, IsAMemIntrinsic = lib.LLVMIsAMemIntrinsic, IsAMemCpyInst = lib.LLVMIsAMemCpyInst, IsAMemMoveInst = lib.LLVMIsAMemMoveInst, IsAMemSetInst = lib.LLVMIsAMemSetInst, IsACmpInst = lib.LLVMIsACmpInst, IsAFCmpInst = lib.LLVMIsAFCmpInst, IsAICmpInst = lib.LLVMIsAICmpInst, IsAExtractElementInst = lib.LLVMIsAExtractElementInst, IsAGetElementPtrInst = lib.LLVMIsAGetElementPtrInst, IsAInsertElementInst = lib.LLVMIsAInsertElementInst, IsAInsertValueInst = lib.LLVMIsAInsertValueInst, IsAPHINode = lib.LLVMIsAPHINode, IsASelectInst = lib.LLVMIsASelectInst, IsAShuffleVectorInst = lib.LLVMIsAShuffleVectorInst, IsAStoreInst = lib.LLVMIsAStoreInst, IsATerminatorInst = lib.LLVMIsATerminatorInst, IsABranchInst = lib.LLVMIsABranchInst, IsAInvokeInst = lib.LLVMIsAInvokeInst, IsAReturnInst = lib.LLVMIsAReturnInst, IsASwitchInst = lib.LLVMIsASwitchInst, IsAUnreachableInst = lib.LLVMIsAUnreachableInst, IsAUnaryInstruction = lib.LLVMIsAUnaryInstruction, IsAAllocaInst = lib.LLVMIsAAllocaInst, IsACastInst = lib.LLVMIsACastInst, IsABitCastInst = lib.LLVMIsABitCastInst, IsAFPExtInst = lib.LLVMIsAFPExtInst, IsAFPToSIInst = lib.LLVMIsAFPToSIInst, IsAFPToUIInst = lib.LLVMIsAFPToUIInst, IsAFPTruncInst = lib.LLVMIsAFPTruncInst, IsAIntToPtrInst = lib.LLVMIsAIntToPtrInst, IsAPtrToIntInst = lib.LLVMIsAPtrToIntInst, IsASExtInst = lib.LLVMIsASExtInst, IsASIToFPInst = lib.LLVMIsASIToFPInst, IsATruncInst = lib.LLVMIsATruncInst, IsAUIToFPInst = lib.LLVMIsAUIToFPInst, IsAZExtInst = lib.LLVMIsAZExtInst, IsAExtractValueInst = lib.LLVMIsAExtractValueInst, IsALoadInst = lib.LLVMIsALoadInst, IsAVAArgInst = lib.LLVMIsAVAArgInst, GetFirstUse = lib.LLVMGetFirstUse, GetOperand = lib.LLVMGetOperand, SetOperand = lib.LLVMSetOperand, GetNumOperands = lib.LLVMGetNumOperands, IsConstant = lib.LLVMIsConstant, IsNull = lib.LLVMIsNull, IsUndef = lib.LLVMIsUndef, MDNode = lib.LLVMMDNode, ConstIntGetZExtValue = lib.LLVMConstIntGetZExtValue, ConstIntGetSExtValue = lib.LLVMConstIntGetSExtValue, ConstStruct = lib.LLVMConstStruct, ConstVector = lib.LLVMConstVector, GetConstOpcode = lib.LLVMGetConstOpcode, ConstNeg = lib.LLVMConstNeg, ConstNSWNeg = lib.LLVMConstNSWNeg, ConstNUWNeg = lib.LLVMConstNUWNeg, ConstFNeg = lib.LLVMConstFNeg, ConstNot = lib.LLVMConstNot, ConstAdd = lib.LLVMConstAdd, ConstNSWAdd = lib.LLVMConstNSWAdd, ConstNUWAdd = lib.LLVMConstNUWAdd, ConstFAdd = lib.LLVMConstFAdd, ConstSub = lib.LLVMConstSub, ConstNSWSub = lib.LLVMConstNSWSub, ConstNUWSub = lib.LLVMConstNUWSub, ConstFSub = lib.LLVMConstFSub, ConstMul = lib.LLVMConstMul, ConstNSWMul = lib.LLVMConstNSWMul, ConstNUWMul = lib.LLVMConstNUWMul, ConstFMul = lib.LLVMConstFMul, ConstUDiv = lib.LLVMConstUDiv, ConstSDiv = lib.LLVMConstSDiv, ConstExactSDiv = lib.LLVMConstExactSDiv, ConstFDiv = lib.LLVMConstFDiv, ConstURem = lib.LLVMConstURem, ConstSRem = lib.LLVMConstSRem, ConstFRem = lib.LLVMConstFRem, ConstAnd = lib.LLVMConstAnd, ConstOr = lib.LLVMConstOr, ConstXor = lib.LLVMConstXor, ConstShl = lib.LLVMConstShl, ConstLShr = lib.LLVMConstLShr, ConstAShr = lib.LLVMConstAShr, ConstGEP = lib.LLVMConstGEP, ConstInBoundsGEP = lib.LLVMConstInBoundsGEP, ConstTrunc = lib.LLVMConstTrunc, ConstSExt = lib.LLVMConstSExt, ConstZExt = lib.LLVMConstZExt, ConstFPTrunc = lib.LLVMConstFPTrunc, ConstFPExt = lib.LLVMConstFPExt, ConstUIToFP = lib.LLVMConstUIToFP, ConstSIToFP = lib.LLVMConstSIToFP, ConstFPToUI = lib.LLVMConstFPToUI, ConstFPToSI = lib.LLVMConstFPToSI, ConstPtrToInt = lib.LLVMConstPtrToInt, ConstIntToPtr = lib.LLVMConstIntToPtr, ConstBitCast = lib.LLVMConstBitCast, ConstZExtOrBitCast = lib.LLVMConstZExtOrBitCast, ConstSExtOrBitCast = lib.LLVMConstSExtOrBitCast, ConstTruncOrBitCast = lib.LLVMConstTruncOrBitCast, ConstPointerCast = lib.LLVMConstPointerCast, ConstIntCast = lib.LLVMConstIntCast, ConstFPCast = lib.LLVMConstFPCast, ConstSelect = lib.LLVMConstSelect, ConstExtractElement = lib.LLVMConstExtractElement, ConstInsertElement = lib.LLVMConstInsertElement, ConstShuffleVector = lib.LLVMConstShuffleVector, ConstExtractValue = lib.LLVMConstExtractValue, ConstInsertValue = lib.LLVMConstInsertValue, BlockAddress = lib.LLVMBlockAddress, GetGlobalParent = lib.LLVMGetGlobalParent, IsDeclaration = lib.LLVMIsDeclaration, GetLinkage = lib.LLVMGetLinkage, SetLinkage = lib.LLVMSetLinkage, GetSection = lib.LLVMGetSection, SetSection = lib.LLVMSetSection, GetVisibility = lib.LLVMGetVisibility, SetVisibility = lib.LLVMSetVisibility, GetAlignment = lib.LLVMGetAlignment, SetAlignment = lib.LLVMSetAlignment, GetNextGlobal = lib.LLVMGetNextGlobal, GetPreviousGlobal = lib.LLVMGetPreviousGlobal, DeleteGlobal = lib.LLVMDeleteGlobal, GetInitializer = lib.LLVMGetInitializer, SetInitializer = lib.LLVMSetInitializer, IsThreadLocal = lib.LLVMIsThreadLocal, SetThreadLocal = lib.LLVMSetThreadLocal, IsGlobalConstant = lib.LLVMIsGlobalConstant, SetGlobalConstant = lib.LLVMSetGlobalConstant, GetNextFunction = lib.LLVMGetNextFunction, GetPreviousFunction = lib.LLVMGetPreviousFunction, DeleteFunction = lib.LLVMDeleteFunction, GetIntrinsicID = lib.LLVMGetIntrinsicID, GetFunctionCallConv = lib.LLVMGetFunctionCallConv, SetFunctionCallConv = lib.LLVMSetFunctionCallConv, GetGC = lib.LLVMGetGC, SetGC = lib.LLVMSetGC, AddFunctionAttr = lib.LLVMAddFunctionAttr, GetFunctionAttr = lib.LLVMGetFunctionAttr, RemoveFunctionAttr = lib.LLVMRemoveFunctionAttr, CountParams = lib.LLVMCountParams, GetParams = lib.LLVMGetParams, GetParam = lib.LLVMGetParam, GetParamParent = lib.LLVMGetParamParent, GetFirstParam = lib.LLVMGetFirstParam, GetLastParam = lib.LLVMGetLastParam, GetNextParam = lib.LLVMGetNextParam, GetPreviousParam = lib.LLVMGetPreviousParam, AddAttribute = lib.LLVMAddAttribute, RemoveAttribute = lib.LLVMRemoveAttribute, GetAttribute = lib.LLVMGetAttribute, SetParamAlignment = lib.LLVMSetParamAlignment, ValueIsBasicBlock = lib.LLVMValueIsBasicBlock, ValueAsBasicBlock = lib.LLVMValueAsBasicBlock, CountBasicBlocks = lib.LLVMCountBasicBlocks, GetBasicBlocks = lib.LLVMGetBasicBlocks, GetFirstBasicBlock = lib.LLVMGetFirstBasicBlock, GetLastBasicBlock = lib.LLVMGetLastBasicBlock, GetEntryBasicBlock = lib.LLVMGetEntryBasicBlock, AppendBasicBlock = lib.LLVMAppendBasicBlock, GetInstructionParent = lib.LLVMGetInstructionParent, GetNextInstruction = lib.LLVMGetNextInstruction, GetPreviousInstruction = lib.LLVMGetPreviousInstruction, SetInstructionCallConv = lib.LLVMSetInstructionCallConv, GetInstructionCallConv = lib.LLVMGetInstructionCallConv, AddInstrAttribute = lib.LLVMAddInstrAttribute, RemoveInstrAttribute = lib.LLVMRemoveInstrAttribute, SetInstrParamAlignment = lib.LLVMSetInstrParamAlignment, IsTailCall = lib.LLVMIsTailCall, SetTailCall = lib.LLVMSetTailCall, AddIncoming = lib.LLVMAddIncoming, CountIncoming = lib.LLVMCountIncoming, GetIncomingValue = lib.LLVMGetIncomingValue, GetIncomingBlock = lib.LLVMGetIncomingBlock, AddCase = lib.LLVMAddCase, AddDestination = lib.LLVMAddDestination, VerifyFunction = lib.LLVMVerifyFunction, ViewFunctionCFG = lib.LLVMViewFunctionCFG, ViewFunctionCFGOnly = lib.LLVMViewFunctionCFGOnly, } Value.__index = Value local BasicBlock = { BasicBlockAsValue = lib.LLVMBasicBlockAsValue, GetBasicBlockParent = lib.LLVMGetBasicBlockParent, GetNextBasicBlock = lib.LLVMGetNextBasicBlock, GetPreviousBasicBlock = lib.LLVMGetPreviousBasicBlock, InsertBasicBlock = lib.LLVMInsertBasicBlock, DeleteBasicBlock = lib.LLVMDeleteBasicBlock, MoveBasicBlockBefore = lib.LLVMMoveBasicBlockBefore, MoveBasicBlockAfter = lib.LLVMMoveBasicBlockAfter, GetFirstInstruction = lib.LLVMGetFirstInstruction, GetLastInstruction = lib.LLVMGetLastInstruction, } BasicBlock.__index = BasicBlock local Builder = { PositionBuilder = lib.LLVMPositionBuilder, PositionBuilderBefore = lib.LLVMPositionBuilderBefore, PositionBuilderAtEnd = lib.LLVMPositionBuilderAtEnd, GetInsertBlock = lib.LLVMGetInsertBlock, ClearInsertionPosition = lib.LLVMClearInsertionPosition, InsertIntoBuilder = lib.LLVMInsertIntoBuilder, InsertIntoBuilderWithName = lib.LLVMInsertIntoBuilderWithName, DisposeBuilder = lib.LLVMDisposeBuilder, SetCurrentDebugLocation = lib.LLVMSetCurrentDebugLocation, GetCurrentDebugLocation = lib.LLVMGetCurrentDebugLocation, SetInstDebugLocation = lib.LLVMSetInstDebugLocation, BuildRetVoid = lib.LLVMBuildRetVoid, BuildRet = lib.LLVMBuildRet, BuildAggregateRet = lib.LLVMBuildAggregateRet, BuildBr = lib.LLVMBuildBr, BuildCondBr = lib.LLVMBuildCondBr, BuildSwitch = lib.LLVMBuildSwitch, BuildIndirectBr = lib.LLVMBuildIndirectBr, BuildInvoke = lib.LLVMBuildInvoke, BuildUnreachable = lib.LLVMBuildUnreachable, BuildAdd = lib.LLVMBuildAdd, BuildNSWAdd = lib.LLVMBuildNSWAdd, BuildNUWAdd = lib.LLVMBuildNUWAdd, BuildFAdd = lib.LLVMBuildFAdd, BuildSub = lib.LLVMBuildSub, BuildNSWSub = lib.LLVMBuildNSWSub, BuildNUWSub = lib.LLVMBuildNUWSub, BuildFSub = lib.LLVMBuildFSub, BuildMul = lib.LLVMBuildMul, BuildNSWMul = lib.LLVMBuildNSWMul, BuildNUWMul = lib.LLVMBuildNUWMul, BuildFMul = lib.LLVMBuildFMul, BuildUDiv = lib.LLVMBuildUDiv, BuildSDiv = lib.LLVMBuildSDiv, BuildExactSDiv = lib.LLVMBuildExactSDiv, BuildFDiv = lib.LLVMBuildFDiv, BuildURem = lib.LLVMBuildURem, BuildSRem = lib.LLVMBuildSRem, BuildFRem = lib.LLVMBuildFRem, BuildShl = lib.LLVMBuildShl, BuildLShr = lib.LLVMBuildLShr, BuildAShr = lib.LLVMBuildAShr, BuildAnd = lib.LLVMBuildAnd, BuildOr = lib.LLVMBuildOr, BuildXor = lib.LLVMBuildXor, BuildBinOp = lib.LLVMBuildBinOp, BuildNeg = lib.LLVMBuildNeg, BuildNSWNeg = lib.LLVMBuildNSWNeg, BuildNUWNeg = lib.LLVMBuildNUWNeg, BuildFNeg = lib.LLVMBuildFNeg, BuildNot = lib.LLVMBuildNot, BuildMalloc = lib.LLVMBuildMalloc, BuildArrayMalloc = lib.LLVMBuildArrayMalloc, BuildAlloca = lib.LLVMBuildAlloca, BuildArrayAlloca = lib.LLVMBuildArrayAlloca, BuildFree = lib.LLVMBuildFree, BuildLoad = lib.LLVMBuildLoad, BuildStore = lib.LLVMBuildStore, BuildGEP = lib.LLVMBuildGEP, BuildInBoundsGEP = lib.LLVMBuildInBoundsGEP, BuildStructGEP = lib.LLVMBuildStructGEP, BuildGlobalString = lib.LLVMBuildGlobalString, BuildGlobalStringPtr = lib.LLVMBuildGlobalStringPtr, BuildTrunc = lib.LLVMBuildTrunc, BuildZExt = lib.LLVMBuildZExt, BuildSExt = lib.LLVMBuildSExt, BuildFPToUI = lib.LLVMBuildFPToUI, BuildFPToSI = lib.LLVMBuildFPToSI, BuildUIToFP = lib.LLVMBuildUIToFP, BuildSIToFP = lib.LLVMBuildSIToFP, BuildFPTrunc = lib.LLVMBuildFPTrunc, BuildFPExt = lib.LLVMBuildFPExt, BuildPtrToInt = lib.LLVMBuildPtrToInt, BuildIntToPtr = lib.LLVMBuildIntToPtr, BuildBitCast = lib.LLVMBuildBitCast, BuildZExtOrBitCast = lib.LLVMBuildZExtOrBitCast, BuildSExtOrBitCast = lib.LLVMBuildSExtOrBitCast, BuildTruncOrBitCast = lib.LLVMBuildTruncOrBitCast, BuildCast = lib.LLVMBuildCast, BuildPointerCast = lib.LLVMBuildPointerCast, BuildIntCast = lib.LLVMBuildIntCast, BuildFPCast = lib.LLVMBuildFPCast, BuildICmp = lib.LLVMBuildICmp, BuildFCmp = lib.LLVMBuildFCmp, BuildPhi = lib.LLVMBuildPhi, BuildCall = lib.LLVMBuildCall, BuildSelect = lib.LLVMBuildSelect, BuildVAArg = lib.LLVMBuildVAArg, BuildExtractElement = lib.LLVMBuildExtractElement, BuildInsertElement = lib.LLVMBuildInsertElement, BuildShuffleVector = lib.LLVMBuildShuffleVector, BuildExtractValue = lib.LLVMBuildExtractValue, BuildInsertValue = lib.LLVMBuildInsertValue, BuildIsNull = lib.LLVMBuildIsNull, BuildIsNotNull = lib.LLVMBuildIsNotNull, BuildPtrDiff = lib.LLVMBuildPtrDiff, } Builder.__index = Builder local ModuleProvider = { DisposeModuleProvider = lib.LLVMDisposeModuleProvider, CreateFunctionPassManager = lib.LLVMCreateFunctionPassManager, } ModuleProvider.__index = ModuleProvider local MemoryBuffer = { CreateMemoryBufferWithSTDIN = lib.LLVMCreateMemoryBufferWithSTDIN, DisposeMemoryBuffer = lib.LLVMDisposeMemoryBuffer, ParseBitcode = lib.LLVMParseBitcode, GetBitcodeModule = lib.LLVMGetBitcodeModule, GetBitcodeModuleProvider = lib.LLVMGetBitcodeModuleProvider, } MemoryBuffer.__index = MemoryBuffer local PassManager = { RunPassManager = lib.LLVMRunPassManager, InitializeFunctionPassManager = lib.LLVMInitializeFunctionPassManager, RunFunctionPassManager = lib.LLVMRunFunctionPassManager, FinalizeFunctionPassManager = lib.LLVMFinalizeFunctionPassManager, DisposePassManager = lib.LLVMDisposePassManager, AddArgumentPromotionPass = lib.LLVMAddArgumentPromotionPass, AddConstantMergePass = lib.LLVMAddConstantMergePass, AddDeadArgEliminationPass = lib.LLVMAddDeadArgEliminationPass, AddFunctionAttrsPass = lib.LLVMAddFunctionAttrsPass, AddFunctionInliningPass = lib.LLVMAddFunctionInliningPass, AddGlobalDCEPass = lib.LLVMAddGlobalDCEPass, AddGlobalOptimizerPass = lib.LLVMAddGlobalOptimizerPass, AddIPConstantPropagationPass = lib.LLVMAddIPConstantPropagationPass, AddPruneEHPass = lib.LLVMAddPruneEHPass, AddIPSCCPPass = lib.LLVMAddIPSCCPPass, AddInternalizePass = lib.LLVMAddInternalizePass, AddStripDeadPrototypesPass = lib.LLVMAddStripDeadPrototypesPass, AddStripSymbolsPass = lib.LLVMAddStripSymbolsPass, AddAggressiveDCEPass = lib.LLVMAddAggressiveDCEPass, AddCFGSimplificationPass = lib.LLVMAddCFGSimplificationPass, AddDeadStoreEliminationPass = lib.LLVMAddDeadStoreEliminationPass, AddGVNPass = lib.LLVMAddGVNPass, AddIndVarSimplifyPass = lib.LLVMAddIndVarSimplifyPass, AddInstructionCombiningPass = lib.LLVMAddInstructionCombiningPass, AddJumpThreadingPass = lib.LLVMAddJumpThreadingPass, AddLICMPass = lib.LLVMAddLICMPass, AddLoopDeletionPass = lib.LLVMAddLoopDeletionPass, AddLoopRotatePass = lib.LLVMAddLoopRotatePass, AddLoopUnrollPass = lib.LLVMAddLoopUnrollPass, AddLoopUnswitchPass = lib.LLVMAddLoopUnswitchPass, AddMemCpyOptPass = lib.LLVMAddMemCpyOptPass, AddPromoteMemoryToRegisterPass = lib.LLVMAddPromoteMemoryToRegisterPass, AddReassociatePass = lib.LLVMAddReassociatePass, AddSCCPPass = lib.LLVMAddSCCPPass, AddScalarReplAggregatesPass = lib.LLVMAddScalarReplAggregatesPass, AddScalarReplAggregatesPassWithThreshold = lib.LLVMAddScalarReplAggregatesPassWithThreshold, AddSimplifyLibCallsPass = lib.LLVMAddSimplifyLibCallsPass, AddTailCallEliminationPass = lib.LLVMAddTailCallEliminationPass, AddConstantPropagationPass = lib.LLVMAddConstantPropagationPass, AddDemoteMemoryToRegisterPass = lib.LLVMAddDemoteMemoryToRegisterPass, AddVerifierPass = lib.LLVMAddVerifierPass, } PassManager.__index = PassManager local PassManagerBuilder = { SetOptLevel = lib.LLVMPassManagerBuilderSetOptLevel, SetSizeLevel = lib.LLVMPassManagerBuilderSetSizeLevel, SetDisableUnitAtATime = lib.LLVMPassManagerBuilderSetDisableUnitAtATime, SetDisableUnrollLoops = lib.LLVMPassManagerBuilderSetDisableUnrollLoops, SetDisableSimplifyLibCalls = lib.LLVMPassManagerBuilderSetDisableSimplifyLibCalls, UseInlinerWithThreshold = lib.LLVMPassManagerBuilderUseInlinerWithThreshold, PopulateFunctionPassManager = lib.LLVMPassManagerBuilderPopulateFunctionPassManager, PopulateModulePassManager = lib.LLVMPassManagerBuilderPopulateModulePassManager, PopulateLTOPassManager = lib.LLVMPassManagerBuilderPopulateLTOPassManager, } PassManagerBuilder.__index = PassManagerBuilder local PassRegistry = { InitializeCore = lib.LLVMInitializeCore, InitializeTransformUtils = lib.LLVMInitializeTransformUtils, InitializeScalarOpts = lib.LLVMInitializeScalarOpts, InitializeInstCombine = lib.LLVMInitializeInstCombine, InitializeIPO = lib.LLVMInitializeIPO, InitializeAnalysis = lib.LLVMInitializeAnalysis, InitializeIPA = lib.LLVMInitializeIPA, InitializeCodeGen = lib.LLVMInitializeCodeGen, InitializeTarget = lib.LLVMInitializeTarget, } PassRegistry.__index = PassRegistry local Use = { GetNextUse = lib.LLVMGetNextUse, GetUser = lib.LLVMGetUser, GetUsedValue = lib.LLVMGetUsedValue, } Use.__index = Use local TargetData = { AddTargetData = lib.LLVMAddTargetData, CopyStringRepOfTargetData = lib.LLVMCopyStringRepOfTargetData, ByteOrder = lib.LLVMByteOrder, PointerSize = lib.LLVMPointerSize, IntPtrType = lib.LLVMIntPtrType, SizeOfTypeInBits = lib.LLVMSizeOfTypeInBits, StoreSizeOfType = lib.LLVMStoreSizeOfType, ABISizeOfType = lib.LLVMABISizeOfType, ABIAlignmentOfType = lib.LLVMABIAlignmentOfType, CallFrameAlignmentOfType = lib.LLVMCallFrameAlignmentOfType, PreferredAlignmentOfType = lib.LLVMPreferredAlignmentOfType, PreferredAlignmentOfGlobal = lib.LLVMPreferredAlignmentOfGlobal, ElementAtOffset = lib.LLVMElementAtOffset, OffsetOfElement = lib.LLVMOffsetOfElement, DisposeTargetData = lib.LLVMDisposeTargetData, } TargetData.__index = TargetData local GenericValue = { GenericValueIntWidth = lib.LLVMGenericValueIntWidth, GenericValueToInt = lib.LLVMGenericValueToInt, GenericValueToPointer = lib.LLVMGenericValueToPointer, DisposeGenericValue = lib.LLVMDisposeGenericValue, } GenericValue.__index = GenericValue local ExecutionEngine = { CreateExecutionEngineForModule = lib.LLVMCreateExecutionEngineForModule, CreateInterpreterForModule = lib.LLVMCreateInterpreterForModule, CreateJITCompilerForModule = lib.LLVMCreateJITCompilerForModule, CreateExecutionEngine = lib.LLVMCreateExecutionEngine, CreateInterpreter = lib.LLVMCreateInterpreter, CreateJITCompiler = lib.LLVMCreateJITCompiler, DisposeExecutionEngine = lib.LLVMDisposeExecutionEngine, RunStaticConstructors = lib.LLVMRunStaticConstructors, RunStaticDestructors = lib.LLVMRunStaticDestructors, RunFunctionAsMain = lib.LLVMRunFunctionAsMain, RunFunction = lib.LLVMRunFunction, FreeMachineCodeForFunction = lib.LLVMFreeMachineCodeForFunction, AddModule = lib.LLVMAddModule, AddModuleProvider = lib.LLVMAddModuleProvider, RemoveModule = lib.LLVMRemoveModule, RemoveModuleProvider = lib.LLVMRemoveModuleProvider, FindFunction = lib.LLVMFindFunction, RecompileAndRelinkFunction = lib.LLVMRecompileAndRelinkFunction, GetExecutionEngineTargetData = lib.LLVMGetExecutionEngineTargetData, AddGlobalMapping = lib.LLVMAddGlobalMapping, GetPointerToGlobal = lib.LLVMGetPointerToGlobal, } ExecutionEngine.__index = ExecutionEngine -- <add methods here> -- olevel is an integer to specify -O0, -O1, -O2, -O3 -- returns zero if no changes were made function Module:optimize(olevel) local pm = llvm.PassManager() local pmb = llvm.PassManagerBuilder() pmb:SetOptLevel(olevel or 2) pmb:PopulateModulePassManager(pm) local modified = pm:RunPassManager(self) return modified end function Builder:Call(F, outname, ...) local args = llvm.ValueArray(...) return self:BuildCall(F, args, select("#", ...), outname) end -- special case of creating lua_CFunction types and pushing on the current stack -- (a bit of an ugly hack...) function ExecutionEngine:GetLuaFunction(F) -- allocate a lua_CFunction ** in C: local bf = clang.make_function_box() -- copy in the ffi'd function: ffi.cast("void **", bf)[0] = self:GetPointerToGlobal(F) -- use C to push this as a lua_CFunction: -- stash the EE as an upvalue to prevent it being collected return clang.unbox_function_box(bf, self) end ffi.metatype("struct LLVMOpaqueContext", Context) ffi.metatype("struct LLVMOpaqueModule", Module) ffi.metatype("struct LLVMOpaqueType", Type) ffi.metatype("struct LLVMOpaqueValue", Value) ffi.metatype("struct LLVMOpaqueBasicBlock", BasicBlock) ffi.metatype("struct LLVMOpaqueBuilder", Builder) ffi.metatype("struct LLVMOpaqueModuleProvider", ModuleProvider) ffi.metatype("struct LLVMOpaqueMemoryBuffer", MemoryBuffer) ffi.metatype("struct LLVMOpaquePassManager", PassManager) ffi.metatype("struct LLVMOpaquePassRegistry", PassRegistry) ffi.metatype("struct LLVMOpaquePassManagerBuilder", PassManagerBuilder) ffi.metatype("struct LLVMOpaqueUse", Use) ffi.metatype("struct LLVMOpaqueTargetData", TargetData) ffi.metatype("struct LLVMOpaqueGenericValue", GenericValue) ffi.metatype("struct LLVMOpaqueExecutionEngine", ExecutionEngine) ---- END OF METATYPES --- -- initialize native target: lib.LLVMInitializeX86TargetInfo() lib.LLVMInitializeX86Target() lib.LLVMInitializeX86TargetMC() -- Friendly API: function llvm.Context(name, Ctx) local o = lib.LLVMContextCreate() ffi.gc(o, lib.LLVMContextDispose) return o end function llvm.Module(name, Ctx) local o = Ctx and lib.LLVMModuleCreateWithNameInContext(name, Ctx) or lib.LLVMModuleCreateWithName(name) ffi.gc(o, lib.LLVMDisposeModule) return o end function llvm.FunctionType(ret, args, isvarargs) local numargs = 1 if type(args) == "table" then numargs = #args end local argsTypes = ffi.new("LLVMTypeRef[?]", numargs, args) return lib.LLVMFunctionType(ret, argsTypes, numargs, isvarargs and true or false) end function llvm.ValueArray(...) local numargs = select("#", ...) return ffi.new("LLVMValueRef[?]", numargs, ...) end function llvm.Builder(Ctx) local B = Ctx and lib.LLVMCreateBuilderInContext(Ctx) or lib.LLVMCreateBuilder() ffi.gc(B, lib.LLVMDisposeBuilder) return B end function llvm.ExecutionEngine(M, InlineLevel) local EEptr = ffi.new("LLVMExecutionEngineRef[1]") local err = ffi.new("char *[1024]") -- not quite right... assert(lib.LLVMCreateJITCompilerForModule(EEptr, M, InlineLevel or 1, err) == 0, "failed to create execution engine") -- EE takes ownership of Module: ffi.gc(M, nil) local o = EEptr[0] ffi.gc(o, DisposeExecutionEngine) return o end function llvm.PassManager() local o = lib.LLVMCreatePassManager() ffi.gc(o, lib.LLVMDisposePassManager) return o end function llvm.PassManagerBuilder() local o = lib.LLVMPassManagerBuilderCreate() ffi.gc(o, lib.LLVMPassManagerBuilderDispose) return o end -- All other lib.LLVM* functions become llvm.*: setmetatable(llvm, { __index = function(self, k) local prefixed = "LLVM" .. k local v = lib[prefixed] self[k] = v return v end, }) return llvm
local _class={} function class(super) local class_type = { ctor = false, super = super } -- 'ctor' field must be here local vtbl = {} _class[class_type] = vtbl -- class_type is one proxy indeed. (return class type, but operate vtbl) setmetatable(class_type, { __newindex= function(t,k,v) vtbl[k] = v end, __index = function(t,k) return vtbl[k] end, }) -- when first invoke the method belong to parent,retrun value of parent -- and set the value to child if super then setmetatable(vtbl, { __index= function(t, k) if k and _class[super] then local ret = _class[super][k] vtbl[k] = ret -- remove this if lua running on back-end server return ret else return nil end end }) end class_type.new = function(...) local obj = { class = class_type } setmetatable(obj, { __index = _class[class_type] }) -- deal constructor recursively local inherit_list = {} local class_ptr = class_type while class_ptr do if class_ptr.ctor then table.insert(inherit_list, class_ptr) end class_ptr = class_ptr.super end local inherit_length = #inherit_list if inherit_length > 0 then for i = inherit_length, 1, -1 do inherit_list[i].ctor(obj, ...) end end obj.class = class_type -- must be here, because some class constructor change class property. return obj end class_type.is = function(self_ptr, compare_class) if not compare_class or not self_ptr then return false end local raw_class = self_ptr.class while raw_class do if raw_class == compare_class then return true end raw_class = raw_class.super end return false end return class_type end
--############################################### -- RSERVE - Start in its own terminal on debug mode -- default port 6311 --############################################### -- R -- install.packages("Rserve") -- library(Rserve) -- Rserve(debug=T) --############################################### -- TEST STARTS HERE --############################################### -- reload package (for testing) package.loaded.rclient = nil R = require "rclient" R.connect() R("library(survival)") a = R.evaluate('d <- c(1,2,3,NA); e <- c("red", "white", NA, "blue"); f <- c(NA,TRUE,TRUE,FALSE); mydata <- data.frame(d,e,f)') printtable(a) print('----------------') f = frame:new({{1,5,3},{'a','b','c'},{0,1,2}}, {'time','letters','status'}) --f:readCSV(filename) R.f = f R('f$SurvObj <- with(f, Surv(time, status == 2))') printtable(R.f) print('----------------') m = matrix:new({{1,1},{1,-1}}) R.m = m R('m <- solve(m)') printtable(R.m) print('----------------') f = factor:new({'red', 'green', 'blue', 'red'}) printtable(f) R._set(R, 'f', f) printtable(R.f) print('----------------') v = {1,2,3,4} R.v = v printtable(R.v) print('----------------') --R("library(survival)") --R("data(lung)") --a = R("lung") a = R.evaluate('d <- c(1,2,3,NA); e <- c("red", "white", NA, "blue"); f <- c(NA,TRUE,TRUE,FALSE); mydata <- data.frame(d,e,f)') print(a._class) printtable(a) R.a = a printtable(R.a) print('----------------') R.x = a printtable(R.x) b = R.evaluate("replicate(5, rnorm(7))") print(b._class) printtable(b) R.b = b printtable(R.b) print('----------------') c = R.evaluate('gender <- c(rep("male",2), rep("female", 3)); gender <- factor(gender)') print(c._class) printtable(c) R.c = c printtable(R.c) print('----------------') -- ask Rserve for 10 random numbers printtable(R.evaluate("rnorm(10)")) -- ask Rserve for a vector printtable(R.evaluate('a <- c(1, 2, 5.3, 6, -2, 4)')) printtable(R.evaluate('b <- c("one","two","three")')) printtable(R.evaluate('c <- c(TRUE,TRUE,TRUE,FALSE,TRUE,FALSE)')) -- ask Rserve for a matrix printtable(R.evaluate('y <- matrix(1:20, nrow=5, ncol=4)')) printtable(R.evaluate('y <- matrix(1:20, nrow=5, ncol=4, byrow=TRUE)')) -- ask Rserve for a data.frame printtable(R.evaluate('d <- c(1,2,3,4); e <- c("red", "white", "red", NA); f <- c(TRUE,TRUE,TRUE,FALSE); mydata <- data.frame(d,e,f)')) printtable(R.evaluate('d <- c(1,2,3,4); e <- c("red", "white", "red", NA); f <- c(TRUE,TRUE,TRUE,FALSE); mydata <- data.frame(d,e,f); names(mydata) <- c("ID","Color","Passed"); mydata')) -- ask Rserve for a factor c = R.evaluate('gender <- c(rep("male",2), rep("female", 3)); gender <- factor(gender)') print(c._class) printtable(c) printtable(R.evaluate('v <- c(1,3,5,8,2,1,3,5,3,5); x <- factor(v)')) -- ask Rserve for a data.frame a = (R.evaluate('n <- c(2, 3, 5); s <- c("aa", "bb", "cc"); b <- c(TRUE, FALSE, TRUE); df <- data.frame(n, s, b)')) printtable(a) -- ask Rserve for a linear regression printtable(R('library(MASS); data(cats); lm(Hwt ~ Bwt, data=cats[1:5,])'))
local DecodeStream = require("restructure.DecodeStream") local NumberT = {} NumberT.__index = NumberT function NumberT.new(type, endian) endian = endian or "BE" local nt = {} setmetatable(nt, NumberT) nt.type = type nt.endian = endian or "BE" nt.fn = type if string.sub(type, #type) ~= '8' then nt.fn = nt.fn..endian end return nt end function NumberT:size() local fmt = DecodeStream.types[self.type] or DecodeStream.types[self.type..self.endian] return tonumber(string.sub(fmt, #fmt)) end function NumberT:decode(stream) return stream['read'..self.fn](stream) end function NumberT:encode(stream, val) return stream['write'..self.fn](stream,val) end local exports = {} exports.Number = NumberT exports.uint8 = NumberT.new('UInt8') exports.uint16 = NumberT.new('UInt16', 'BE') exports.uint16be = exports.uint16 exports.uint16le = NumberT.new('UInt16', 'LE') exports.uint24 = NumberT.new('UInt24', 'BE') exports.uint24be = exports.uint24 exports.uint24le = NumberT.new('UInt24', 'LE') exports.uint32 = NumberT.new('UInt32', 'BE') exports.uint32be = exports.uint32 exports.uint32le = NumberT.new('UInt32', 'LE') exports.int8 = NumberT.new('Int8') exports.int16 = NumberT.new('Int16', 'BE') exports.int16be = exports.int16 exports.int16le = NumberT.new('Int16', 'LE') exports.int24 = NumberT.new('Int24', 'BE') exports.int24be = exports.int24 exports.int24le = NumberT.new('Int24', 'LE') exports.int32 = NumberT.new('Int32', 'BE') exports.int32be = exports.int32 exports.int32le = NumberT.new('Int32', 'LE') exports.float = NumberT.new('Float', 'BE') exports.floatbe = exports.float exports.floatle = NumberT.new('Float', 'LE') exports.double = NumberT.new('Double', 'BE') exports.doublebe = exports.double exports.doublele = NumberT.new('Double', 'LE') local Fixed = {} Fixed.__index = Fixed setmetatable(Fixed, NumberT) function Fixed.new(size, endian, fracBits) local ft = NumberT.new("Int"..size, endian) setmetatable(ft, Fixed) ft.at_point = bit32.lshift(1, fracBits or bit32.rshift(size, 1)) return ft end function Fixed:decode(stream) return NumberT.decode(self, stream)/ self.at_point end function Fixed:encode(stream,val) NumberT.encode(self,stream, val * self.at_point) end exports.Fixed = Fixed exports.fixed16 = Fixed.new(16, 'BE') exports.fixed16be = exports.fixed16 exports.fixed16le = Fixed.new(16, 'LE') exports.fixed32 =Fixed.new(32, 'BE') exports.fixed32be = exports.fixed32 exports.fixed32le = Fixed.new(32, 'LE') return exports
local mod = yatm_security local fspec = assert(foundation.com.formspec.api) local Rect = assert(foundation.com.Rect) function mod.render_button_bitmap(x, y, cols, rows, data, prefix, w, h) local texture_name local noclip = true local drawborder = false local byte local b local body = "" cols = cols or 8 rows = rows or 8 w = w or 1 h = h or 1 for row = 1,rows do byte = string.byte(data, row) for col = 1,cols do b = byte % 2 byte = math.floor(byte / 2) if b == 0 then texture_name = "yatm_pattern_bits_empty.png" else texture_name = "yatm_pattern_bits_filled.png" end body = body .. fspec.image_button(x + (col - 1) * w, y + (row - 1) * h, w, h, texture_name, prefix .. "_" .. row .. "_" .. col, "", noclip, drawborder) end end return body, Rect.new(x, y, cols * w, rows * h) end
local vim,api = vim,vim.api local M = {} local wrap = require('lspsaga.wrap') -- 1 thin -- 2 radio -- 3 crude local border_style = { {top_left = "┌",top_mid = "─",top_right = "┐",mid = "│",bottom_left = "└",bottom_right= "┘" }; {top_left = "╭",top_mid = "─",top_right = "╮",mid = "│",bottom_left = "╰",bottom_right= "╯" }; {top_left = "┏",top_mid = "━",top_right = "┓",mid = "┃",bottom_left = "┗",bottom_right = "┛"}; } function M.get_max_contents_width(contents) local max_length = 0 for i=1,#contents-1,1 do if #contents[i] > #contents[i+1] then max_length = #contents[i] end end return max_length end function M.make_floating_popup_options(width, height, opts) vim.validate { opts = { opts, 't', true }; } opts = opts or {} vim.validate { ["opts.offset_x"] = { opts.offset_x, 'n', true }; ["opts.offset_y"] = { opts.offset_y, 'n', true }; } local new_option = {} new_option.style = 'minimal' new_option.width = width new_option.height = height if opts.relative ~= nil then new_option.relative = opts.relative else new_option.relative = 'cursor' end if opts.anchor ~= nil then new_option.anchor = opts.anchor end if opts.row == nil and opts.col == nil then local lines_above = vim.fn.winline() - 1 local lines_below = vim.fn.winheight(0) - lines_above new_option.anchor = '' if lines_above < lines_below then new_option.anchor = new_option.anchor..'N' height = math.min(lines_below, height) new_option.row = 1 else new_option.anchor = new_option.anchor..'S' height = math.min(lines_above, height) new_option.row = 0 end if vim.fn.wincol() + width <= api.nvim_get_option('columns') then new_option.anchor = new_option.anchor..'W' new_option.col = 0 else new_option.anchor = new_option.anchor..'E' new_option.col = 1 end else new_option.row = opts.row new_option.col = opts.col end return new_option end local function make_border_option(contents,opts) opts = opts or {} local win_width,win_height = vim.lsp.util._make_floating_popup_size(contents,opts) local border_option = M.make_floating_popup_options(win_width+2, win_height+2, opts) return win_width+2,win_height,border_option end local function get_shadow_config() local opts = { relative= 'editor', style= 'minimal', width= vim.o.columns, height= vim.o.lines, row= 0, col= 0, } return opts end local function open_shadow_win() local opts = get_shadow_config() local shadow_winhl = 'Normal:SagaShadow,NormalNC:SagaShadow,EndOfBuffer:SagaShadow' local shadow_bufnr = api.nvim_create_buf(false,true) local shadow_winid = api.nvim_open_win(shadow_bufnr,true,opts) api.nvim_win_set_option(shadow_winid,'winhl',shadow_winhl) api.nvim_win_set_option(shadow_winid,'winblend',10) api.nvim_command('hi SagaShadow guibg=#000000') return shadow_bufnr,shadow_winid end local function create_float_boder(contents,border,opts) local win_width,win_height,border_option = make_border_option(contents,opts) local top_left = border_style[border].top_left local top_mid = border_style[border].top_mid local top_right = border_style[border].top_right local mid_line = border_style[border].mid local bottom_left= border_style[border].bottom_left local bottom_right = border_style[border].bottom_right -- set border local top = top_left .. vim.fn["repeat"](top_mid, win_width-2) ..top_right local mid = mid_line .. vim.fn["repeat"](" ", win_width-2) .. mid_line local bot = bottom_left .. vim.fn["repeat"](top_mid, win_width-2) .. bottom_right local lines = {top} for _,v in pairs(vim.fn["repeat"]({mid},win_height)) do table.insert(lines,v) end table.insert(lines,bot) local border_bufnr = vim.api.nvim_create_buf(false, true) -- buffer settings for border buffer api.nvim_buf_set_lines(border_bufnr, 0, -1, true, lines) api.nvim_buf_set_option(border_bufnr, 'buftype', 'nofile') api.nvim_buf_set_option(border_bufnr, 'filetype', 'lspwinborder') api.nvim_buf_set_option(border_bufnr, 'modifiable', false) -- create border local border_winid = api.nvim_open_win(border_bufnr, false, border_option) api.nvim_win_set_option(border_winid,"winhl","Normal:LspFloatWinBorder") api.nvim_win_set_option(border_winid,"cursorcolumn",false) return border_bufnr,border_winid end function M.create_float_contents(contents,filetype,enter,opts) -- create contents buffer local contents_bufnr = api.nvim_create_buf(false, true) -- buffer settings for contents buffer -- Clean up input: trim empty lines from the end, pad local content = vim.lsp.util._trim_and_pad(contents,{pad_left=0,pad_right=0}) if filetype then api.nvim_buf_set_option(contents_bufnr, 'filetype', filetype) end api.nvim_buf_set_lines(contents_bufnr,0,-1,true,content) api.nvim_buf_set_option(contents_bufnr, 'modifiable', false) local contents_winid = api.nvim_open_win(contents_bufnr, enter, opts) if filetype == 'markdown' then api.nvim_win_set_option(contents_winid, 'conceallevel', 2) end api.nvim_win_set_option(contents_winid,"winhl","Normal:"..filetype) api.nvim_win_set_option(contents_winid,'winblend',0) return contents_bufnr, contents_winid end function M.create_float_window(contents,filetype,border,enter,opts) local _,_,border_option = make_border_option(contents,opts) local contents_option= border_option contents_option.width = border_option.width - 2 contents_option.height = border_option.height - 2 if border_option.row ~= 0 then contents_option.row = border_option.row + 1 else contents_option.row = border_option.row - 1 end contents_option.col = border_option.col + 1 if not enter then local contents_bufnr,contents_winid = M.create_float_contents(contents,filetype,enter,contents_option) local border_bufnr,border_winid = create_float_boder(contents,border,opts) return contents_bufnr,contents_winid,border_bufnr,border_winid end local border_bufnr,border_winid = create_float_boder(contents,border,opts) local contents_bufnr,contents_winid = M.create_float_contents(contents,filetype,enter,border_option) return contents_bufnr,contents_winid,border_bufnr,border_winid end function M.open_shadow_float_win(contents,filetype,enter,opts) local shadow_bufnr,shadow_winid = open_shadow_win() local contents_bufnr,contents_winid = M.create_float_contents(contents,filetype,enter,opts) return contents_bufnr,contents_winid,shadow_bufnr,shadow_winid end -- use our float window instead of. -- https://github.com/neovim/neovim/blob/master/runtime/lua/vim/lsp/util.lua#L755 function M.fancy_floating_markdown(contents, opts) vim.validate { contents = { contents, 't' }; opts = { opts, 't', true }; } opts = opts or {} local stripped = {} local highlights = {} do local i = 1 while i <= #contents do local line = contents[i] -- TODO(ashkan): use a more strict regex for filetype? local ft = line:match("^```([a-zA-Z0-9_]*)$") -- local ft = line:match("^```(.*)$") -- TODO(ashkan): validate the filetype here. if ft then local start = #stripped i = i + 1 while i <= #contents do line = contents[i] if line == "```" then i = i + 1 break end table.insert(stripped, line) i = i + 1 end table.insert(highlights, { ft = ft; start = start + 1; finish = #stripped + 1 - 1; }) else table.insert(stripped, line) i = i + 1 end end end -- Clean up and add padding stripped = vim.lsp.util._trim_and_pad(stripped, opts) -- Compute size of float needed to show (wrapped) lines opts.wrap_at = opts.wrap_at or (vim.wo["wrap"] and api.nvim_win_get_width(0)) local width, _ = vim.lsp.util._make_floating_popup_size(stripped, opts) if width > #stripped[1] then width = #stripped[1] end stripped = wrap.wrap_contents(stripped,width) local truncate_line = wrap.add_truncate_line(stripped) table.insert(stripped,2,truncate_line) -- Make the floating window. local contents_bufnr,contents_winid,border_bufnr,border_winid = M.create_float_window(stripped,'sagahover',opts.border_style,false,opts) api.nvim_buf_add_highlight(contents_bufnr,-1,'LspSagaDocTruncateLine',1,0,-1) -- Switch to the floating window to apply the syntax highlighting. -- This is because the syntax command doesn't accept a target. local cwin = vim.api.nvim_get_current_win() vim.api.nvim_set_current_win(contents_winid) vim.cmd("ownsyntax markdown") local idx = 1 --@private local function apply_syntax_to_region(ft, start, finish) if ft == '' then return end local name = ft..idx idx = idx + 1 local lang = "@"..ft:upper() -- TODO(ashkan): better validation before this. if not pcall(vim.cmd, string.format("syntax include %s syntax/%s.vim", lang, ft)) then return end vim.cmd(string.format("syntax region %s start=+\\%%%dl+ end=+\\%%%dl+ contains=%s", name, start, finish + 1, lang)) end -- Previous highlight region. -- TODO(ashkan): this wasn't working for some reason, but I would like to -- make sure that regions between code blocks are definitely markdown. -- local ph = {start = 0; finish = 1;} for _, h in ipairs(highlights) do -- apply_syntax_to_region('markdown', ph.finish, h.start) apply_syntax_to_region(h.ft, h.start, h.finish) -- ph = h end vim.api.nvim_set_current_win(cwin) return contents_bufnr, contents_winid,border_bufnr,border_winid end return M
return {'pampus','pamflet','pamfletschrijver','pamflettisme','pamflettist','pamflettistisch','pampa','pampagras','pamper','pamperen','pamflettenoorlog','pam','pamel','pamela','pamfletje','pamfletjes','pamfletschrijvers','pamfletten','pamflettisten','pampas','pamflettistische','pamperde','pampers','pams','pamelas'}
solution "potato" configurations { "Debug", "Release" } project "potato" kind "ConsoleApp" language "C++" includedirs { "libs/glm" } links{ "glfw3", "GL" } --links{ "glfw3", "GL" } files { "./src/**.hpp", "./src/**.cpp" } --defines { "ISPC_USE_OMP" } configuration "Debug" defines { "DEBUG" } flags { "Symbols", "EnableSSE2" } configuration "Release" defines { "NDEBUG" } flags { "OptimizeSpeed", "ExtraWarnings", "EnableSSE2" } configuration { "linux", "gmake" } buildoptions { "-std=c++11" } linkoptions { "-fopenmp" } --linkoptions { "-fopenmp" } links{ "X11", "Xxf86vm", "Xi", "Xrandr", "Xinerama", "Xcursor"} --x11 xrandr xi xxf86vm gl
Minimap = {} -- private variables local minimapWidget local minimapButton local minimapWindow local DEFAULT_ZOOM = 45 minimapFirstLoad = true -- private functions function onMinimapMouseRelease(self, mousePosition, mouseButton) local tile = self:getTile(mousePosition) if tile and mouseButton == MouseLeftButton and self:isPressed() then local dirs = g_map.findPath(g_game.getLocalPlayer():getPosition(), tile:getPosition(), 127) if #dirs == 0 then TextMessage.displayStatus(tr('There is no way.')) return true end g_game.autoWalk(dirs) return true end return false end function onMinimapMouseWheel(self, mousePos, direction) if direction == MouseWheelUp then self:zoomIn() else self:zoomOut() end end --[[ Known Issue (TODO): If you move the minimap compass directions and you change floor it will not update the minimap. ]] -- public functions function Minimap.init() connect(g_game, { onGameStart = Minimap.reset, onForceWalk = Minimap.center }) g_keyboard.bindKeyDown('Ctrl+M', Minimap.toggle) minimapButton = TopMenu.addGameToggleButton('minimapButton', tr('Minimap') .. ' (Ctrl+M)', 'minimap.png', Minimap.toggle) minimapButton:setOn(true) minimapWindow = g_ui.loadUI('minimap.otui', GameInterface.getRightPanel()) minimapWidget = minimapWindow:recursiveGetChildById('minimap') minimapWidget:setAutoViewMode(false) minimapWidget:setViewMode(1) -- mid view minimapWidget:setDrawMinimapColors(true) minimapWidget:setMultifloor(false) minimapWidget:setKeepAspectRatio(false) minimapWidget.onMouseRelease = onMinimapMouseRelease minimapWidget.onMouseWheel = onMinimapMouseWheel Minimap.reset() -- load only the first time (avoid load/save between reloads) if minimapFirstLoad then minimapFirstLoad = false if g_resources.fileExists('/minimap.otcm') then if g_game.isOnline() then perror('cannot load minimap while online') else g_map.loadOtcm('/minimap.otcm') end end -- save only when closing the client connect(g_app, { onTerminate = function() g_map.saveOtcm('/minimap.otcm') end}) end end function Minimap.terminate() disconnect(g_game, { onGameStart = Minimap.reset, onForceWalk = Minimap.center }) g_keyboard.unbindKeyDown('Ctrl+M') minimapButton:destroy() minimapWindow:destroy() minimapWindow = nil minimapWidget = nil minimapButton = nil Minimap = nil end function Minimap.toggle() if minimapButton:isOn() then minimapWindow:close() minimapButton:setOn(false) else minimapWindow:open() minimapButton:setOn(true) end end function Minimap.onMiniWindowClose() minimapButton:setOn(false) end function Minimap.isClickInRange(position, fromPosition, toPosition) return (position.x >= fromPosition.x and position.y >= fromPosition.y and position.x <= toPosition.x and position.y <= toPosition.y) end -- hooked functions local compassZones = {} compassZones.west = {x = 0, y = 30, posx = -1, posy = 0} compassZones.north = {x = 30, y = 0, posx = 0, posy = -1} compassZones.south = {x = 30, y = 57, posx = 0, posy = 1} compassZones.east = {x = 57, y = 30, posx = 1, posy = 0} function Minimap.compassClick(self, mousePos) local compassPos = self:getRect() local pos = {x = mousePos.x-compassPos.x, y = mousePos.y-compassPos.y} local move = {x = 0, y = 0} for i,v in pairs(compassZones) do local lowPos = {x = v.x-15, y = v.y-15} local highPos = {x = v.x+15, y = v.y+15} if Minimap.isClickInRange(pos, lowPos, highPos) then move.x = move.x + v.posx * minimapWidget:getZoom()/10 move.y = move.y + v.posy * minimapWidget:getZoom()/10 break end end local cameraPos = minimapWidget:getCameraPosition() local pos = {x = cameraPos.x + move.x, y = cameraPos.y + move.y, z = cameraPos.z} minimapWidget:setCameraPosition(pos) end function Minimap.onButtonClick(id) if id == "zoomIn" then minimapWidget:setZoom(math.max(minimapWidget:getMaxZoomIn(), minimapWidget:getZoom()-15)) elseif id == "zoomOut" then minimapWidget:setZoom(math.min(minimapWidget:getMaxZoomOut(), minimapWidget:getZoom()+15)) elseif id == "levelUp" then local pos = minimapWidget:getCameraPosition() pos.z = pos.z - 1 minimapWidget:setCameraPosition(pos) elseif id == "levelDown" then local pos = minimapWidget:getCameraPosition() pos.z = pos.z + 1 minimapWidget:setCameraPosition(pos) end end -- hooked events function Minimap.reset() local player = g_game.getLocalPlayer() if not player then return end minimapWidget:followCreature(player) minimapWidget:setZoom(DEFAULT_ZOOM) end function Minimap.center() local player = g_game.getLocalPlayer() if not player then return end minimapWidget:followCreature(player) end
local E, C, L = select(2, ...):unpack() if not C.map.worldmap.enable then return end ---------------------------------------------------------------------------------------- -- WorldMapFrame Styles ---------------------------------------------------------------------------------------- local CreateFrame = CreateFrame local GetNumQuestLogEntries = GetNumQuestLogEntries local CreateVector2D = CreateVector2D local C_QuestLog_GetMaxNumQuestsCanAccept = C_QuestLog.GetMaxNumQuestsCanAccept local C_QuestLog_GetNumQuestLogEntries = C_QuestLog.GetNumQuestLogEntries local C_Map_GetWorldPosFromMapPos = C_Map.GetWorldPosFromMapPos local C_Map_GetBestMapForUnit = C_Map.GetBestMapForUnit local UnitName, UnitPosition = UnitName, UnitPosition local hooksecurefunc = hooksecurefunc local unpack, select = unpack, select local STANDARD_TEXT_FONT = STANDARD_TEXT_FONT local QuestMapFrame = QuestMapFrame local MapQuestInfoRewardsFrame_XPFrame_Name = MapQuestInfoRewardsFrame.XPFrame.Name local WorldMapFrame, CharacterFrame, SpellBookFrame = WorldMapFrame, CharacterFrame, SpellBookFrame local PlayerTalentFrame, ChannelFrame, PVEFrame = PlayerTalentFrame, ChannelFrame, PVEFrame -- Font replacement MapQuestInfoRewardsFrame_XPFrame_Name:SetFont(STANDARD_TEXT_FONT, 12) -- Change position hooksecurefunc(WorldMapFrame, "SynchronizeDisplayState", function() if CharacterFrame:IsShown() or SpellBookFrame:IsShown() or (PlayerTalentFrame and PlayerTalentFrame:IsShown()) or (ChannelFrame and ChannelFrame:IsShown()) or PVEFrame:IsShown() then return end if not WorldMapFrame:IsMaximized() then WorldMapFrame:ClearAllPoints() WorldMapFrame:SetPoint(unpack(C.map.worldmap.position)) end end) WorldMapFrame:SetClampedToScreen(true) -- Creating coordinate local coords = CreateFrame("Frame", "CoordsFrame", WorldMapFrame) coords:SetFrameLevel(WorldMapFrame.BorderFrame:GetFrameLevel() + 2) coords:SetFrameStrata(WorldMapFrame.BorderFrame:GetFrameStrata()) coords.PlayerText = coords:CreateFontString(nil, "ARTWORK", "GameFontNormal") coords.PlayerText:SetPoint("BOTTOMLEFT", WorldMapFrame.ScrollContainer, "BOTTOM", -40, 20) coords.PlayerText:SetJustifyH("LEFT") coords.PlayerText:SetText(UnitName("player") .. ": 0,0") coords.MouseText = coords:CreateFontString(nil, "ARTWORK", "GameFontNormal") coords.MouseText:SetJustifyH("LEFT") coords.MouseText:SetPoint("BOTTOMLEFT", coords.PlayerText, "TOPLEFT", 0, 5) coords.MouseText:SetText(L.MAP_MOUSEOVER .. ": 0,0") local mapRects, tempVec2D = {}, CreateVector2D(0, 0) local function GetPlayerMapPos(mapID) tempVec2D.x, tempVec2D.y = UnitPosition("player") if not tempVec2D.x then return end local mapRect = mapRects[mapID] if not mapRect then mapRect = { select(2, C_Map_GetWorldPosFromMapPos(mapID, CreateVector2D(0, 0))), select(2, C_Map_GetWorldPosFromMapPos(mapID, CreateVector2D(1, 1))) } mapRect[2]:Subtract(mapRect[1]) mapRects[mapID] = mapRect end tempVec2D:Subtract(mapRect[1]) return (tempVec2D.y / mapRect[2].y), (tempVec2D.x / mapRect[2].x) end local int = 0 WorldMapFrame:HookScript("OnUpdate", function() int = int + 1 if int >= 3 then local unitMap = C_Map_GetBestMapForUnit("player") local x, y = 0, 0 if unitMap then x, y = GetPlayerMapPos(unitMap) end if x and y and x >= 0 and y >= 0 then coords.PlayerText:SetFormattedText("%s: %.0f,%.0f", E.name, x * 100, y * 100) else coords.PlayerText:SetText(UnitName("player") .. ": " .. "|cffff0000" .. L.MAP_BOUNDS .. "|r") end if WorldMapFrame.ScrollContainer:IsMouseOver() then local mouseX, mouseY = WorldMapFrame.ScrollContainer:GetNormalizedCursorPosition() if mouseX and mouseY and mouseX >= 0 and mouseY >= 0 then coords.MouseText:SetFormattedText("%s: %.0f,%.0f", L.MAP_MOUSEOVER, mouseX * 100, mouseY * 100) else coords.MouseText:SetText(L.MAP_MOUSEOVER .. "|cffff0000" .. L.MAP_BOUNDS .. "|r") end else coords.MouseText:SetText(L.MAP_MOUSEOVER .. "|cffff0000" .. L.MAP_BOUNDS .. "|r") end WorldMapFrame.BorderFrame:SetTitle(MAP_AND_QUEST_LOG .. " [" .. select(2, C_QuestLog_GetNumQuestLogEntries()) .. "/" .. C_QuestLog_GetMaxNumQuestsCanAccept() .. "]") int = 0 end end)
---@class CS.UnityEngine.Rect : CS.System.ValueType ---@field public zero CS.UnityEngine.Rect ---@field public x number ---@field public y number ---@field public position CS.UnityEngine.Vector2 ---@field public center CS.UnityEngine.Vector2 ---@field public min CS.UnityEngine.Vector2 ---@field public max CS.UnityEngine.Vector2 ---@field public width number ---@field public height number ---@field public size CS.UnityEngine.Vector2 ---@field public xMin number ---@field public yMin number ---@field public xMax number ---@field public yMax number ---@type CS.UnityEngine.Rect CS.UnityEngine.Rect = { } ---@overload fun(source:CS.UnityEngine.Rect): CS.UnityEngine.Rect ---@overload fun(position:CS.UnityEngine.Vector2, size:CS.UnityEngine.Vector2): CS.UnityEngine.Rect ---@return CS.UnityEngine.Rect ---@param x number ---@param optional y number ---@param optional width number ---@param optional height number function CS.UnityEngine.Rect.New(x, y, width, height) end ---@return CS.UnityEngine.Rect ---@param xmin number ---@param ymin number ---@param xmax number ---@param ymax number function CS.UnityEngine.Rect.MinMaxRect(xmin, ymin, xmax, ymax) end ---@param x number ---@param y number ---@param width number ---@param height number function CS.UnityEngine.Rect:Set(x, y, width, height) end ---@overload fun(point:CS.UnityEngine.Vector2): boolean ---@overload fun(point:CS.UnityEngine.Vector3): boolean ---@return boolean ---@param point CS.UnityEngine.Vector3 ---@param optional allowInverse boolean function CS.UnityEngine.Rect:Contains(point, allowInverse) end ---@overload fun(other:CS.UnityEngine.Rect): boolean ---@return boolean ---@param other CS.UnityEngine.Rect ---@param optional allowInverse boolean function CS.UnityEngine.Rect:Overlaps(other, allowInverse) end ---@return CS.UnityEngine.Vector2 ---@param rectangle CS.UnityEngine.Rect ---@param normalizedRectCoordinates CS.UnityEngine.Vector2 function CS.UnityEngine.Rect.NormalizedToPoint(rectangle, normalizedRectCoordinates) end ---@return CS.UnityEngine.Vector2 ---@param rectangle CS.UnityEngine.Rect ---@param point CS.UnityEngine.Vector2 function CS.UnityEngine.Rect.PointToNormalized(rectangle, point) end ---@return boolean ---@param lhs CS.UnityEngine.Rect ---@param rhs CS.UnityEngine.Rect function CS.UnityEngine.Rect.op_Inequality(lhs, rhs) end ---@return boolean ---@param lhs CS.UnityEngine.Rect ---@param rhs CS.UnityEngine.Rect function CS.UnityEngine.Rect.op_Equality(lhs, rhs) end ---@return number function CS.UnityEngine.Rect:GetHashCode() end ---@overload fun(other:CS.System.Object): boolean ---@return boolean ---@param other CS.UnityEngine.Rect function CS.UnityEngine.Rect:Equals(other) end ---@overload fun(): string ---@return string ---@param optional format string function CS.UnityEngine.Rect:ToString(format) end return CS.UnityEngine.Rect
local log = require("null-ls.logger") local s = require("null-ls.state") local u = require("null-ls.utils") local function make_builtin(opts) local method, filetypes, disabled_filetypes, factory, condition, generator_opts, generator = opts.method, opts.filetypes, opts.disabled_filetypes, opts.factory, opts.condition, vim.deepcopy(opts.generator_opts) or {}, vim.deepcopy(opts.generator) or {} factory = factory or function() generator.opts = generator_opts return generator end -- merge valid user opts w/ generator opts generator_opts = vim.tbl_deep_extend("force", generator_opts, { args = opts.args, command = opts.command, cwd = opts.cwd, diagnostics_format = opts.diagnostics_format, dynamic_command = opts.dynamic_command, runtime_condition = opts.runtime_condition, timeout = opts.timeout, }) local builtin = { method = method, filetypes = filetypes, disabled_filetypes = disabled_filetypes, condition = condition, name = opts.name or generator_opts.command, _opts = generator_opts, } setmetatable(builtin, { __index = function(tab, key) return key == "generator" and factory(generator_opts) or rawget(tab, key) end, }) if opts.extra_args then local original_args, original_extra_args = generator_opts.args, opts.extra_args generator_opts.args = function(params) local original_args_copy = u.handle_function_opt(original_args, params) or {} local extra_args_copy = u.handle_function_opt(original_extra_args, params) or {} -- make sure "-" stays last if original_args_copy[#original_args_copy] == "-" then table.remove(original_args_copy) table.insert(extra_args_copy, "-") end return vim.list_extend(original_args_copy, extra_args_copy) end end local prefer_local, only_local = opts.prefer_local, opts.only_local -- override in case both are set if only_local then prefer_local = nil end if prefer_local or only_local then generator_opts.dynamic_command = function(params) local resolved = s.get_resolved_command(params.bufnr, params.command) -- a string means command was resolved on last run -- false means the command already failed to resolve, so don't bother checking again if resolved and (type(resolved.command) == "string" or resolved.command == false) then return resolved.command end local maybe_prefix = prefer_local or only_local local prefix = type(maybe_prefix) == "string" and maybe_prefix local executable_to_find = prefix and u.path.join(prefix, params.command) or params.command log:debug("attempting to find local executable " .. executable_to_find) local root = u.get_root() local found, resolved_cwd u.path.traverse_parents(params.bufname, function(dir) found = u.path.join(dir, executable_to_find) if u.is_executable(found) then resolved_cwd = dir return true end found = nil resolved_cwd = nil -- use cwd as a stopping point to avoid scanning the entire file system if dir == root then return true end end) local resolved_command = found or (prefer_local and params.command) if resolved_command then local is_executable, err_msg = u.is_executable(resolved_command) assert(is_executable, err_msg) end s.set_resolved_command( params.bufnr, params.command, { command = resolved_command or false, cwd = resolved_cwd } ) return resolved_command end generator_opts.cwd = opts.cwd or function(params) local resolved = s.get_resolved_command(params.bufnr, params.command) return resolved and resolved.cwd end end generator_opts._last_command = nil generator_opts._last_args = nil generator_opts._last_cwd = nil builtin.with = function(user_opts) return make_builtin(vim.tbl_extend("force", opts, user_opts)) end return builtin end return make_builtin
-- feeding-timers.lua -- original author: tejón -- rewritten by expwnent -- see repeat.lua for how to run this every so often automatically --[[=begin fix/feeding-timers ================== Reset the GiveWater and GiveFood timers of all units as appropriate. =end]] local args = {...} if args[1] ~= nil then print("fix/feeding-timers usage") print(" fix/feeding-timers") print(" reset the feeding timers of all units as appropriate") print(" fix/feeding-timers help") print(" print this help message") print(" repeat -time [n] [years/months/ticks/days/etc] -command fix/feeding-timers") print(" run this script every n time units") print(" repeat -cancel fix/feeding-timers") print(" stop automatically running this script") return end local fixcount = 0 for _,unit in ipairs(df.global.world.units.all) do if dfhack.units.isCitizen(unit) and not (unit.flags1.dead) then for _,v in pairs(unit.status.misc_traits) do local didfix = 0 if v.id == 0 then -- I think this should have additional conditions... v.value = 0 -- GiveWater cooldown set to zero didfix = 1 end if v.id == 1 then -- I think this should have additional conditions... v.value = 0 -- GiveFood cooldown set to zero didfix = 1 end fixcount = fixcount + didfix end end end print("Fixed feeding timers for " .. fixcount .. " citizens.")
return { attack_spike = { [1] = "target", [26] = "damage", [116] = "recovery", [35] = "spike", [45] = "spike", [55] = "spike", [65] = "spike", [75] = "spike", }, attack_stab = { [2] = "target", [14] = "damage", [20] = "recovery", [32] = "ready", }, attack_sweep = { [29] = "damage", [43] = "recovery", }, attack_spin = { [13] = "damage", [70] = "recovery", }, }
--========================================================================= -- -- Copyright Insight Software Consortium -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0.txt -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- --========================================================================= local sitk = {} sitk = SimpleITK outfile = "sitk-lua-test.png" if #arg>0 then outfile = arg[1] end size = sitk.VectorUInt32(); size:push_back(128); size:push_back(128); sigma = sitk.VectorDouble(); sigma:push_back(32.0); sigma:push_back(32.0); center = sitk.VectorDouble(); center:push_back(64.0); center:push_back(64.0); gauss = sitk.GaussianSource (sitk.sitkFloat32, size, sigma, center); deriv = sitk.Derivative(gauss); result = sitk.RescaleIntensity(deriv, 0, 255.0); result = sitk.Cast(result, sitk.sitkUInt8); sitk.WriteImage(result, outfile);
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0041-appicon-resumption.md -- User story:TBD -- Use case:TBD -- -- Requirement summary: -- TBD -- -- Description: -- In case: -- 1) SDL, HMI are started. -- 2) Mobile app is registered. Sends PutFile and invalid SetAppIcon requests. -- 3) Mobile App received response SetAppIcon(INVALID_DATA). Custom Icon is not set. -- 4) App is re-registered. -- SDL does: -- 1) Successfully register application. -- 2) Register an app successfully, respond to RAI with result code "SUCCESS", "iconResumed" = false. --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local runner = require('user_modules/script_runner') local common = require('test_scripts/API/SetAppIcon/commonIconResumed') --[[ Test Configuration ]] runner.testSettings.isSelfIncluded = false --[[ Local Variables ]] local requestParams = { syncFileName = "123" --invalid type of parameter } local function setAppIcon_INVALID_DATA(params) local mobSession = common.getMobileSession() local cid = mobSession:SendRPC("SetAppIcon", params) EXPECT_HMICALL("UI.SetAppIcon", params.requestUiParams) :Times(0) mobSession:ExpectResponse(cid, { success = false, resultCode = "INVALID_DATA" }) end --[[ Scenario ]] runner.Title("Preconditions") runner.Step("Clean environment", common.preconditions) runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start) runner.Title("Test") runner.Step("App registration with iconResumed = false", common.registerAppWOPTU, { 1, false }) runner.Step("Upload icon file", common.putFile) runner.Step("Gets_INVALID_DATA", setAppIcon_INVALID_DATA, { requestParams } ) runner.Step("App unregistration", common.unregisterAppInterface, { 1 }) runner.Step("App registration with iconResumed = false", common.registerAppWOPTU, { 1, false, true }) runner.Title("Postconditions") runner.Step("Stop SDL", common.postconditions)
return {'het','hetaere','heteluchtballon','heteluchtkanon','heteluchtmotor','heteluchtoven','heteluchtverwarming','heten','heterdaad','heterdaadje','hetero','heterodox','heterodoxie','heterofiel','heterofilie','heterogeen','heterogeniteit','heteromorf','heteroniem','heteronomie','heteronoom','heteroseksualiteit','heteroseksueel','hetgeen','hetwelk','hetze','hetzelfde','hetzelve','hetzij','heteluchtkachel','heteroman','heteren','hette','hetty','hettinga','hettema','hetebrij','hetaeren','hete','heteluchtballonnen','heteluchtballons','heteluchtkanonnen','heteluchtmotoren','heter','heteros','heterodoxe','heterofiele','heterogene','heterogener','heteromannen','heteroseksuele','heteroseksuelen','heteluchtmotors','hetere','heteroniemen','hetzes','heteronome','heterdaadjes','heterofielen','heteluchtkachels','heteromorfe','hettes','hettys'}
-- ========== Globals ========================================================== local log = hs.logger.new("init", "info") -- ========== Utilities ======================================================== -- Executes a command with the user profile (/etc/profile and ~/.profile) so -- that PATH and other environment variables are set correctly. It is slower -- than the other execute functions because of this. In order of time: -- -- os.execute(cmd) < hs.execute(cmd) < executeWithProfile(cmd) -- -- The first option, os.execute(cmd), does not return the output, only the exit -- status. Both of the others return the output and other information. -- -- NOTE: I wrote this instead of using hs.execute(cmd, true) for two reasons. -- First, that function uses $SHELL, but I don't want to use fish for this. -- Second, that function puts double quotes around the command, meaning -- variables are expanded by the *outer* sh invocation that io.popen uses. local function executeWithProfile(cmd) local f = io.popen("/bin/sh -lc '" .. cmd .. "'") local s = f:read('*a') local status, exit_type, rc = f:close() return s, status, exit_type, rc end -- Returns the value of an environment variable after loading the user profile. -- Prefer os.getenv(var) when the user profile is unnecessary (e.g., for $HOME). local function getUserEnv(var) local value = executeWithProfile("echo $" .. var):match("[^\r\n]+") if not value then log.e("Environment variable not defined: " .. var) end return value end -- Returns the path to a binary. Looks in $PATH after loading the user profile. local function getUserBinary(name) local path = executeWithProfile("which " .. name):match("[^\r\n]+") if not path then log.e("Binary not found: " .. name) end return path end -- Creates a temporary file, writes the given text to it, and returns the path. -- If text is nil, does not create a file and simply returns nil. local function tempTextFile(text) if not text then return nil end local path = os.tmpname() local file = io.open(path, "w") if not file then log.e("Failed to open temporary file " .. path) return nil end if not file:write(text) then log.e("Failed to write to temporary file " .. path) end file:flush() return path end -- Returns a function that opens the app to the given target. local function openAppFn(app, target) return function() local cmd = "open -a '" .. app .. "' " .. target log.i("Running command: " .. cmd) if not os.execute(cmd) then log.e("Command failed") end end end -- Directory containing my coding projects. local projectsDir = getUserEnv("PROJECTS") -- ========== SSH ============================================================== local sshConfigFile = os.getenv("HOME") .. "/.ssh/config" -- Array of {alias, user, hostname} records parsed from sshConfigFile. local allSshHosts = {} -- One of the elements of allSshHosts, or nil. local defaultSshHost (function() local file = io.open(sshConfigFile) if not file then log.i("no ssh config file") return end local default, alias, user, hostname local flush = function() if not alias then return end local host = { alias = alias, user = user or os.getenv("USER"), hostname = hostname or alias, } table.insert(allSshHosts, host) if default then defaultSshHost = host end default, alias, user, hostname = false, nil, nil, nil end for line in file:lines() do if line == "# Default" then default = true elseif not alias then alias = line:match("^Host ([^*]+)$") elseif line == "" then flush() else user = user or line:match("^%s*User (%g+)$") hostname = hostname or line:match("^%s*Host[Nn]ame (%g+)$") end end flush() file:close() end)() -- Returns a shell command to ssh into one of the hosts in allSshHosts. local function sshCommand(host) if host then return "ssh " .. host.alias end end -- ========== Kitty ============================================================ -- Kitty files and directories. local kittyBinary = getUserBinary("kitty") local kittyConfigDir = os.getenv("HOME") .. "/.config/kitty" local kittySocketDir = os.getenv("HOME") .. "/.local/share/kitty" os.execute("mkdir -p '" .. kittySocketDir .. "'") local kittyColorsFile = kittyConfigDir .. "/" .. "colors.conf" local kittyColorsDir = projectsDir .. "/base16-kitty/colors" -- Returns a Unix socket to use for the given kitty configuration. local function kittySocketAddress(config) return "unix:" .. kittySocketDir .. "/" .. config .. ".sock" end -- Addresses for all Unix sockets used by kitty instances. local allKittySocketAddresses = { kittySocketAddress("kitty.conf"), kittySocketAddress("tmux.conf"), } -- Launches kitty using the given config and options. Interprets config as a -- path relative to kittyConfigDir. If options.lanchCommand is present, uses it -- when starting the terminal. If options.newInstance is true, starts a new -- instance; otherwise, opens a window in the existing instance for this config -- (which is assumed to exist). If options.hideFromTasks is true, hides the app -- from the macOS Dock and Cmd-Tab task bar. local function launchKitty(config, options) local args = ( "--single-instance --instance-group " .. config .. " --directory ~" .. " --config " .. kittyConfigDir .. "/" .. config .. " --override allow_remote_control=socket-only" ) if options.hideFromTasks then args = args .. " --override macos_hide_from_tasks=yes" end local sessionPath if options.launchCommand then local text = "launch " .. options.launchCommand log.i("Using kitty session: " .. text) sessionPath = tempTextFile(text) if not sessionPath then return end args = args .. " --session " .. sessionPath end local cmd if options.newInstance then args = args .. " --listen-on '" .. kittySocketAddress(config) .. "'" cmd = "open -n -a kitty --args " .. args else cmd = kittyBinary .. " " .. args end log.i("Launching kitty: " .. cmd) -- We *could* use full paths to tmux and ssh, and then use hs.execute -- instead of executeWithProfile. However, we actually need the user profile -- for the kitty process so that it can locate kitty-bell-notify, and for -- the tmux process so that it can locate tmux-session (this won't help a -- remote tmux -- we assume ssh will start a login shell that loads the -- remote user profile and runs tmux in that). local output, success = executeWithProfile(cmd) if not success then log.e("Command failed: " .. output) end if sessionPath then -- Give the app time to read the file before deleting it. hs.timer.doAfter(10, function() os.remove(sessionPath) end) end end -- Cached kitty application instances. local kittyApps = {} -- Returns the kitty application for the given config, or nil if it's not -- running. Interprets config as a path relative to kittyConfigDir local function getKittyApp(config) if not (kittyApps[config] and kittyApps[config]:isRunning()) then log.i("Refreshing kitty application cache for config: " ..config) kittyApps[config] = nil local output, _, _, rc = hs.execute("pgrep -lf kitty.app/Contents/MacOS/kitty") if not (rc == 0 or rc == 1) then log.e("Failed executing pgrep: " .. output) return nil end for line in output:gmatch("[^\r\n]+") do if line:find(config, 1, true) then local pid = line:match("[0-9]+") log.i("Found kitty process with PID " .. pid) kittyApps[config] = hs.application.applicationForPID(tonumber(pid)) if kittyApps[config] then break end log.w("Failed to get application for PID " .. pid) end end end return kittyApps[config] end -- Sends a notification saying the bell rang in kitty. function sendKittyBellNotification(socket, windowID) log.i("Sending bell notification for window " .. windowID) hs.notify.new(function() if not socket or socket == "" then log.e("No socket for bell notification, cannot focus window") return end local cmd = ( kittyBinary .. " @ --to '" .. socket .. "'" .. " focus-window --match=id:" .. windowID ) log.i("Focusing kitty bell window: " .. cmd) if not os.execute(cmd) then log.e("Failed to focus kitty bell window") end end, { title = "Kitty", informativeText = "🔔 The bell rang!", }):send() end -- Shows or hides the main kitty instance (as opposed to the tmux instance). local function showOrHideMainKittyInstance() local config = "kitty.conf" local app = getKittyApp(config) if not app then launchKitty(config, {newInstance = true, hideFromTasks = true}) return end if not app:mainWindow() then log.i("Making a new kitty window") -- Use kitty --single-instance to open a new window. We could also -- select the "New OS Window" menu item, but this doesn't work with the -- macos_hide_from_tasks setting. launchKitty(config, {newInstance = false}) elseif app:isFrontmost() then log.i("Hiding kitty") app:hide() else log.i("Showing kitty") app:activate() end end -- Returns a new command that starts in the given tmux session. local function addTmuxToCommand(sshCommand, tmuxSession) local tmux = "tmux new -A -s " .. tmuxSession if sshCommand then return sshCommand .. " -t '" .. tmux .. "'" end return tmux end -- Opens a fullscreen kitty window attaching to tmux on the default host. The -- default host is the one marked "# Default", or the local machine if none is. local function launchFullScreenTmuxKitty() local config = "tmux.conf" launchKitty(config, { launchCommand = addTmuxToCommand(sshCommand(defaultSshHost), "0"), newInstance = not getKittyApp(config), }) -- When launching for the first time, wait for the window to be ready. if app and app:mainWindow() then app:mainWindow():setFullScreen(true) else hs.timer.doAfter(1, function() local app = getKittyApp(config) if not app then log.e("Still no tmux kitty app after 1s") return end if not app:mainWindow() then log.e("Still no tmux kitty main window after 1s") return end app:mainWindow():setFullScreen(true) end) end end -- List of terminal host choices, to be used with hs.chooser. local hostChoices = (function () local choices = { { text = "localhost", subText = os.getenv("SHELL"), remote = false, command = nil, }, } for _, host in ipairs(allSshHosts) do table.insert(choices, { text = host.alias, subText = "ssh " .. host.user .. "@" .. host.hostname, remote = true, command = sshCommand(host), }) end return choices end)() -- Returns a list of terminal session choices for the given host choice (one of -- the items from hostChoices), to be used with hs.chooser. local function getSessionChoices(host) local function text(localText, remoteText) return host.remote and remoteText or localText end return { { text = "Default", subText = text( "Create a window", "Connect to remote host" ), config = "kitty.conf", command = host.command, }, { text = text("Local tmux", "Remote tmux"), subText = text( "Create or attach to local tmux session 0", "Create or attach to remote tmux session 0" ), config = "tmux.conf", command = addTmuxToCommand(host.command, "0"), }, { text = text("Local tmux (detached)", "Remote tmux (detached)"), subText = text( "Create a window with tmux keybindings", "Connect to remote host with tmux keybindings" ), config = "tmux.conf", command = host.command, }, } end -- Launches a new kitty window, prompting the user with chooser menus for the -- host machine and the session type. local function displayKittyLaunchChooser() local showChooser, onChooseHost, onChooseSession function showChooser() local chooser = hs.chooser.new(onChooseHost) chooser:choices(hostChoices) chooser:placeholderText("Choose a host") chooser:show() end function onChooseHost(choice) if not choice then log.i("No choice made for kitty host") return end log.i("Got host choice: text = " .. choice.text .. ", command = " .. (choice.command or "nil")) local chooser = hs.chooser.new(onChooseSession) chooser:choices(getSessionChoices(choice)) chooser:placeholderText("Choose a session") chooser:show() end function onChooseSession(choice) if not choice then log.i("No choice made for kitty session") return end log.i("Got session choice: text = " .. choice.text .. ", config = " .. choice.config .. ", command = " .. (choice.command or "nil")) launchKitty(choice.config, { launchCommand = choice.command, newInstance = not getKittyApp(choice.config), }) end showChooser() end -- Sets the color theme persistently for all current and future kitty instances. local function setKittyColorTheme(theme) local path = kittyColorsDir .. "/base16-" .. theme .. ".conf" local cmd = "" for _, socket in ipairs(allKittySocketAddresses) do -- Run the commands in the background with & so that all kitty instances -- change color simultaneously. cmd = ( cmd .. kittyBinary .. " @ --to '" .. socket .. "'" .. " set-colors -a -c '" .. path .. "' & " ) end log.i("Sending set-colors to all kitty sockets: " .. cmd) if not os.execute(cmd) then log.e("Command failed") end local file = io.open(kittyColorsFile, "w") if not file then log.e("Failed to open file " .. path) return nil end if not file:write("include " .. path .. "\n") then log.e("Failed to write to file " .. path) end file:close() end -- Global storing whether macOS Dark Mode was enabled when last checked. local darkModeEnabled -- Updates the kitty color theme to match the OS Dark Mode setting. local function syncKittyToDarkMode(force) local dark = hs.host.interfaceStyle() == "Dark" if force or dark ~= darkModeEnabled then log.i("Updating kitty for dark mode = " .. (dark and "on" or "off")) setKittyColorTheme(dark and "tomorrow-night-eighties" or "solarized-light") end darkModeEnabled = dark end local function syncKittyToDarkModeLazy() syncKittyToDarkMode(false) end local function syncKittyToDarkModeForce() syncKittyToDarkMode(true) end -- ========== Chimes =========================================================== -- Path to the timidity binary. local timidityBinary = getUserBinary("timidity") -- Flag indicating whether to play chimes every quarter hour. local chimesEnabled = true -- Toggles the chimesEnabled flag and displays a message on screen. local function toggleChimesEnabled() chimesEnabled = not chimesEnabled local onOrOff = chimesEnabled and "on" or "off" log.i("Set chimesEnabled = " .. onOrOff) hs.alert("Chimes " .. onOrOff) if not chimesEnabled then local cmd = "pkill -f 'minster.sh' '" .. timidityBinary .. "'" log.i("Killing minster and timidity: " .. cmd) os.execute(cmd) end end -- If chimesEnabled is true, plays Westminster chimes for the current time. local function playChimes() if chimesEnabled then -- Must use os.execute and & to avoid blocking the main thread. local cmd = ( projectsDir .. "/minster/minster.sh -t '" .. timidityBinary .. "'" .. " >> /tmp/minster.log 2>&1 &" ) log.i("Playing chimes: " .. cmd) os.execute(cmd) else log.i("Not playing chimes because they are turned off") end end -- ========== Shortcuts ======================================================== -- Global modifier combination unlikely to be used by other programs. local hyper = {"cmd", "option", "ctrl"} -- Reload this config file. hs.hotkey.bind(hyper, "R", hs.reload) -- Commonly-used files and projects. hs.hotkey.bind(hyper, "J", openAppFn("iA Writer", projectsDir .. "/journal/Today.txt")) hs.hotkey.bind(hyper, "D", openAppFn("Visual Studio Code", projectsDir .. "/dotfiles")) hs.hotkey.bind(hyper, "S", openAppFn("Visual Studio Code", projectsDir .. "/scripts")) hs.hotkey.bind(hyper, "F", openAppFn("Visual Studio Code", projectsDir .. "/finance")) -- Shortcuts for kitty. hs.hotkey.bind({"ctrl"}, "space", showOrHideMainKittyInstance) hs.hotkey.bind(hyper, "space", launchFullScreenTmuxKitty) hs.hotkey.bind(hyper, "T", displayKittyLaunchChooser) hs.hotkey.bind(hyper, "C", syncKittyToDarkModeForce) -- Toggle Westminster chimes. hs.hotkey.bind(hyper, "M", toggleChimesEnabled) -- ========== Timers =========================================================== -- Note: Recurring timers must be assigned to global variables, otherwise GC -- will reclaim them and they stop working! globalTimers = {} syncKittyToDarkModeForce() table.insert(globalTimers, hs.timer.doEvery(hs.timer.minutes(1), syncKittyToDarkModeLazy)) table.insert(globalTimers, hs.timer.doAt("00:00", hs.timer.minutes(15), playChimes)) -- ========== Misc ============================================================= -- Install the hs binary. This just copies a symlink, so there's no harm in -- repeating it every reload. Doing it in setupmacos.sh is too complicated. hs.ipc.cliInstall(os.getenv("HOME") .. ".local/bin") -- ========== Local config ===================================================== require("local")
local constants = require(script.Parent.Parent.Parent.Parent.constants) local hook = require(script.Parent.Parent.Parent.Parent.hook) local Icon = require(script.Parent.Parent.Parent.Icon) local Llama = require(script.Parent.Parent.Parent.Parent.Packages.Llama) local Roact = require(script.Parent.Parent.Parent.Parent.Packages.Roact) local RoactSpring = require(script.Parent.Parent.Parent.Parent.Packages.RoactSpring) local styles = require(script.Parent.Parent.Parent.Parent.styles) local types = require(script.Parent.Parent.types) local useTheme = require(script.Parent.Parent.Parent.Parent.Hooks.useThemeNew) local e = Roact.createElement type Props = { active: boolean, expanded: boolean, hasChildren: boolean, indentLevel: number?, node: types.Node, onActivated: (types.Node) -> (), } local function deriveIconSize(icon: string): UDim2? if icon == "folder" then return UDim2.fromOffset(14, 10) elseif icon == "story" then return UDim2.fromOffset(14, 14) end return nil end local function NodeDetails(props: Props, hooks: any) local theme = useTheme(hooks) local hovered, setHovered = hooks.useState(false) local style = RoactSpring.useSpring(hooks, { transparency = if hovered or props.active then 0 else 1, background = if props.active then 0 else 1, config = constants.SPRING_CONFIG, }) return e("ImageButton", { AutoButtonColor = false, BackgroundColor3 = style.background:map(function(value) return theme.explorerEntry.selectedBackground:Lerp(theme.explorerEntry.background, value) end), BackgroundTransparency = style.transparency, BorderSizePixel = 0, LayoutOrder = 1, Size = UDim2.new(1, 0, 0, 32), [Roact.Event.Activated] = props.onActivated, [Roact.Event.MouseEnter] = function() setHovered(true) end, [Roact.Event.MouseLeave] = function() setHovered(false) end, }, { UICorner = e("UICorner", { CornerRadius = UDim.new(0, 4), }), UIPadding = e("UIPadding", { PaddingLeft = UDim.new(0, styles.PADDING.Offset * props.indentLevel + 1), }), Icon = e(Icon, { anchorPoint = Vector2.new(0, 0.5), color = theme.icons[props.node.icon], icon = props.node.icon, position = UDim2.new(0, 30, 0.5, 0), size = if props.node.icon then deriveIconSize(props.node.icon) else nil, }), Name = e( "TextLabel", Llama.Dictionary.join(styles.TextLabel, { AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, 55, 0.5, 0), Text = if props.node.name:match(constants.STORY_NAME_PATTERN) then props.node.name:sub(1, #props.node.name - 6) else props.node.name, TextColor3 = style.background:map(function(value) return theme.explorerEntry.selectedText:Lerp(theme.explorerEntry.text, value) end), TextSize = 12, }) ), ArrowWrapper = props.hasChildren and e("Frame", { AnchorPoint = Vector2.new(0, 0.5), BackgroundTransparency = 1, Position = UDim2.new(0, 10, 0.5, 0), Size = UDim2.fromOffset(16, 16), }, { Arrow = e(Icon, { anchorPoint = Vector2.new(0.5, 0.5), color = theme.icons.arrow, icon = "chevron-right", position = UDim2.fromScale(0.5, 0.5), rotation = if props.expanded then 90 else 0, size = 6, }), }), }) end return hook(NodeDetails)
TUTORIALS['en'][#TUTORIALS['en'] + 1] = { name = "Catching Pokemon", contents = { {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/backpack_empty_poke_ball.png"}, {type = CONTENT_TYPES.TEXT, value = "One of the most fun activities in the Pokemon world is the ability to catch a Pokemon that you defeated. The first thing you need to do is defeat a wild Pokemon, after this you will notice that his body will remain where he was before fainting.\n\nAfter defeat some wild Pokemon, you must use a empty pokeball to start the catch process. When starting the game you will receive 100 empty Pokeballs, that will be inside your backpack. With empty pokeballs in hand, a click with the right mouse button on it and then click the left mouse button in the space where the Pokemon is defeated. You can buy more empty pokeballs in Pokemart shops."}, {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/catch_corpse.png"}, {type = CONTENT_TYPES.TEXT, value = "After this process, an animation will occur to show if you could catch that Pokemon or not.\n\nWhen the capture process fails, the animation will end with a pokeball with a red light in the center. This means that the Pokemon was not catched and you should try again."}, {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/catch_fail.png"}, {type = CONTENT_TYPES.TEXT, value = "When the catch is successful, the pokeball animation will end with a green light in the center. This means that you caught the Pokemon!"}, {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/catch_success.png"}, {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/catch_portrait.png"}, {type = CONTENT_TYPES.TEXT, value = "After caught a Pokemon, it can go straight to your backpack or for the Pokemon Center depot. This will depend on how many Pokemon you are carrying and if have free space in your backpack. Note that you can only carry six Pokemon at a time."}, {type = CONTENT_TYPES.IMAGE, value = "/images/tutorial/catch_ball.png"}, } }
require 'qt' require 'qtcore' if qt and qt.qApp and qt.qApp:runsWithoutGraphics() then print("qlua: not loading module qtgui (running with -nographics)") return end qt.require 'libqtgui'
function onSay(cid, words, param, channel) local tmp = getWorldUpTime() local hours = math.ceil(tmp / 3600) - 1 local minutes = math.ceil((tmp - (3600 * hours)) / 60) if(minutes == 60) then minutes = 0 hours = hours + 1 end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Uptime: " .. hours .. " hours and " .. minutes .. " minutes.") return true end
-- if you don't know how to change it, don't edit this please RLS.Formula = function(level) return 1000*(1.25^level) end RLS.EnableHUD = true RLS.HUDHeight = 50 RLS.SetLevelCommand = "!setlevel" RLS.AddLevelCommand = "!addlevel" RLS.SetExpCommand = "!setexp" RLS.AddExpCommand = "!addexp" RLS.CommandsAccess = { -- Who can run commands ["founder"] = true, ["superadmin"] = true, } -- MODULES CONFIG YOU CAN FIND IN MODULE FILE RLS.DisableModules = { -- Set to 'true' to disable it ["time_exp"] = false, -- Add Exp for playing on server every X minutes ["killing_npc"] = false, -- Add reward for killing NPC ["killing_player"] = false, -- Add reward for killing player ["darkrp_integration"] = true, -- Add integration to darkrp to support level for shop items and jobs ["vrondakis_comp"] = false, -- Add backward compatible, so, addons compitable with vrondakis level system now compitable with that too! ["multiplyer_exp"] = false, -- Add multiplier of Exp for each rank }
local bit = require("bit") local band = bit.band local rshift = bit.rshift local lshift = bit.lshift local i = 1 local A, B, C, D local num = {} for d in string.gmatch(arg[1], "%x%x") do d = tonumber("0x" .. d) num[#num + 1] = d end local sig = band(3, num[1]) A = sig B = rshift(num[1], 2) for i = 2, 4 do B = B + lshift(num[i], 6 * (i - 1)) end if A == 0 then C = num[5] + lshift(num[6], 8) D = num[7] + lshift(num[8], 8) print(string.format("struct:%d, offset: %d, dw: %d, pw: %d", A, B, C, D)) elseif A == 1 then C = band(7, num[5]) D = rshift(num[5], 3) for i = 6, 8 do D = D + lshift(num[i], 5 * (i - 1)) end print(string.format("list:%d, offset: %d, size_type: %d, num: %d", A, B, C, D)) else print("not supported sig:", A) end
--you can make your own custom colors with custom names just change the values of "colors" to Either Color.Premade Or Color(Red,Green,Blue) --change the corresponding colors names to you chosen name Example:"barf_green" (Dont put spaces in you color names!Use underscores instead) --setting up the color values for use with premade colors colorsValue={} colorsValue[1]=Color.Red colorsValue[2]=Color.Blue colorsValue[3]=Color.Orange colorsValue[4]=Color.Pink colorsValue[5]=Color.Purple colorsValue[6]=Color.Aqua colorsValue[7]=Color.White colorsValue[8]=Color.DeepPink colorsValue[9]=Color.ForestGreen colorsValue[10]=Color.Yellow colorsValue[11]=Color.Red colorsValue[12]=Color.Green colorsValue[13]=Color.Blue --setting the list of inputs for colors colorsNames={} colorsNames[1]="red" colorsNames[2]="blue" colorsNames[3]="orange" colorsNames[4]="pink" colorsNames[5]="purple" colorsNames[6]="aqua" colorsNames[7]="white" colorsNames[8]="deep_pink" colorsNames[9]="forest_green" colorsNames[10]="yellow" colorsNames[11]="custom (red value) (green value) (blue value)" --[WARNING] Dont edit this area unless you know what your doing --tells player the sript is installed when they join function informPlayer(args) Chat:Send(args.player,"This server has ColorChoice installed do /colors to view the colors you can choose from(your chosen color will be your wingsuit color)",Color.Chartreuse) end --when a player chats it cycles through the commands to check for and sets the color accordingly function setColor(args) PlayerInp=args.text:split(" ") if(PlayerInp[1]=="/color") then for i=1,10 do if(PlayerInp[2]==colorsNames[i]) then args.player:SetColor(colorsValue[i]) Chat:Send(args.player,"Color Set To:"..colorsNames[i],colorsValue[i]) end end end end --prints all the commands when /colors is used function help(args) if(args.text=="/colors") then Chat:Send(args.player,"Use /color with these colors to set your name color",Color.Chartreuse) for j=1,11,1 do Chat:Send(args.player,colorsNames[j],colorsValue[j]) end end end --allows player to insert r g b values for their name --has saftey for dumb players wont try to set their color if they cont use the command correctly "PlayerInp[5]~=nil function customC(args) PlayerInp=args.text:split(" ") if(PlayerInp[1]=="/color" and PlayerInp[2]=="custom" and PlayerInp[5]~=nil) then args.player:SetColor(Color(tonumber(PlayerInp[3]),tonumber(PlayerInp[4]),tonumber(PlayerInp[5]))) Chat:Send(args.player,"Color Set To:Custom Color",Color(tonumber(PlayerInp[3]),tonumber(PlayerInp[4]),tonumber(PlayerInp[5]))) end end Events:Subscribe("PlayerChat",setColor) Events:Subscribe("PlayerChat",customC) Events:Subscribe("PlayerChat",help) Events:Subscribe("PlayerJoin",informPlayer)
local ibh = require"util.indexedbheap"; local function verify_heap_property(priorities) for k in ipairs(priorities) do local parent = priorities[k]; local childA = priorities[2*k]; local childB = priorities[2*k+1]; -- print("-", parent, childA, childB) assert(childA == nil or childA > parent, "heap property violated"); assert(childB == nil or childB > parent, "heap property violated"); end end local h setup(function () h = ibh.create(); end) describe("util.indexedbheap", function () it("item can be moved from end to top", function () verify_heap_property(h); h:insert("a", 1); verify_heap_property(h); h:insert("b", 2); verify_heap_property(h); h:insert("c", 3); verify_heap_property(h); local id = h:insert("*", 10); verify_heap_property(h); h:reprioritize(id, 0); verify_heap_property(h); assert.same({ 0, "*", id }, { h:pop() }); end) end);
---@meta ---@diagnostic disable ---@class EventDataPlayerSelectedArea : EventData ---@field item string ---@field player_index uint ---@field entities LuaEntity[] ---@field tiles LuaTile[] ---@field surface LuaSurface ---@class EventDataPlayerCreated : EventData ---@field player_index uint ---@class EventDataGuiCheckedStateChanged : EventData ---@field player_index uint ---@field element LuaGuiElement ---@class EventDataGuiClick : EventData ---@field player_index uint ---@field element LuaGuiElement ---@field button defines.mouse_button_type ---@field alt boolean ---@field control boolean ---@field shift boolean ---@class EventDataGuiSelectionStateChanged : EventData ---@field player_index uint ---@field element LuaGuiElement ---@class PoleCharacteristics ---@field width number The entity width ---@field reach number Wire connection reach ---@field area number Supply area width ---@class Layout ---@field name string ---@field starting_state string Initial ---@field restrictions Restrictions ---@class Restrictions ---@field miner_near_radius number[] #Supported near radius of a miner ---@field miner_far_radius number[] #Supported far radius of a miner ---@field pole_width number[] ---@field pole_length number[] ---@field pole_supply_area number[] ---@field lamp boolean #Enable lamp placement option table.deepcopy = function(t) end
print("Bee Swarm Simulator Gui Created by LuckyMMB @ V3rmillion.net") print("Discord https://discord.gg/GKzJnUC") print("V2.0a 08th Oct 2018") print("\nEnabling the Avoid Vicious Bee button when doing an Auto Farm will tp you to a safe\nfield if a vicious bee is detected nearby while farming. When it leaves the field\nyou will tp back and continue farming.") print("\nHunt Vicious Bee will put you in God Mode when the bee is detected and tp spam the bees\nlocation so your bees can attack it. When the bee has been defeated you will tp back to\nyour original location and God Mode will be disabled.") print("\nFarm Sprout mode will put you in God Mode when the Sprout spawns and tp you to it so\nyour bees can farm it. Token pickup is also enabled. When the sprout has been farmed you will\nstay in that location for 20 seconds to pick up all the goodies then God Mode will be disabled.") print("\nIn God Mode you cannot be hurt but cannot use any tools. Turning God Mode Off will put\nyou back to normal so you can use your tools and farm properly again.\nTIP: When you enter God Mode your tool will be dropped. Someone else can then pick up\nthat tool and use it until they leave the game. Useful for friends with low power tools.\nWARNING:Leaving God Mode is glitchy at best. If it doesn't work you will have to rejoin.") print("\nPress the j key when fireflys are in a field to farm Moon Tokens. You will tp to each\nfirefly and then pick up the moon token when dropped. If you dont get one press the key\nagain to make sure all the fireflys were touched. Keep doing this until the Fireflys leave.") print("\nPress the h key to toggle Token Auto Gathering to pick up tokens near you.") print("\nPress the y key to tp back to your hive and make honey from your gathered pollen.") local plr = game:GetService("Players").LocalPlayer local mouse = game.Players.LocalPlayer:GetMouse() local UIS = game:GetService'UserInputService' sproutstarted = false sproutsafety = false pausehumcheck = false SproutFarmActive = false FieldBoostActive = false TreatActive = false WealthClockActive = false infjumpactive = false antchallengeescape = false AutoDigActive = false PollenFarmActive = false Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false godmodeactivated = false resethive = false HuntViciousActive = false AvoidViciousActive = false viciousbeenear = false viciousbeedetected = false viciousdistance1 = "" switchlocationmsg = false tokenfarmactive = false tokenfarmactive2 = false GodModeActive = false moontokenfarmactive = false farmzoneswitchback = false switchingzone = false FarmTempOFF = false AvoidTempOFF = false -- Anti Idle local VirtualUser=game:service'VirtualUser' game:service'Players'.LocalPlayer.Idled:connect(function() VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end) -- Objects local MainGUI = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Close = Instance.new("TextButton") local WayPoints = Instance.new("TextButton") local WayPointsFrame = Instance.new("Frame") local ShowLocation = Instance.new("TextLabel") local SetLocation = Instance.new("TextButton") local TPLocation = Instance.new("TextButton") local ReturnToHive = Instance.new("TextButton") local BlackBear = Instance.new("TextButton") local BrownBear = Instance.new("TextButton") local SunBear = Instance.new("TextButton") local PandaBear = Instance.new("TextButton") local PolarBear = Instance.new("TextButton") local ScienceBear = Instance.new("TextButton") local MotherBear = Instance.new("TextButton") local TunnelBear = Instance.new("TextButton") local TravelingBear = Instance.new("TextButton") local RedBoost = Instance.new("TextButton") local BlueBoost = Instance.new("TextButton") local MountainBoost = Instance.new("TextButton") local RedCannon = Instance.new("TextButton") local BlueCannon = Instance.new("TextButton") local YellowCannon = Instance.new("TextButton") local Slingshot = Instance.new("TextButton") local BeeShop = Instance.new("TextButton") local TPShop = Instance.new("TextButton") local TPShop2 = Instance.new("TextButton") local MountainTopShop = Instance.new("TextButton") local TentShop = Instance.new("TextButton") local RedClubhouse = Instance.new("TextButton") local BlueClubhouse = Instance.new("TextButton") local TicketShop = Instance.new("TextButton") local ClubHoney = Instance.new("TextButton") local RoyalJellyShop = Instance.new("TextButton") local TicketRoyalJelly = Instance.new("TextButton") local Honeystorm = Instance.new("TextButton") local HoneyConvertor = Instance.new("TextButton") local StrawBerryField = Instance.new("TextButton") local PumpkinField = Instance.new("TextButton") local SunflowerField = Instance.new("TextButton") local CloverField = Instance.new("TextButton") local SpiderField = Instance.new("TextButton") local MushRoomField = Instance.new("TextButton") local BamBooField = Instance.new("TextButton") local DandelionField = Instance.new("TextButton") local PineappleField = Instance.new("TextButton") local BlueField = Instance.new("TextButton") local RoseField = Instance.new("TextButton") local CactusField = Instance.new("TextButton") local PineTreeField = Instance.new("TextButton") local MountainTopField = Instance.new("TextButton") local KingbeetlesLair = Instance.new("TextButton") local AntChallenge = Instance.new("TextButton") local Onett = Instance.new("TextButton") local TreatDispenser = Instance.new("TextButton") local TicketDispenser = Instance.new("TextButton") local WealthClock = Instance.new("TextButton") local StarHut = Instance.new("TextButton") local GumdropDispenser = Instance.new("TextButton") local BlueberryDispenser = Instance.new("TextButton") local StrawberryDispenser = Instance.new("TextButton") local TreatShop = Instance.new("TextButton") local SproutDispenser = Instance.new("TextButton") local AvoidViciousBee = Instance.new("TextButton") local Field1AF = Instance.new("TextButton") local Field2AF = Instance.new("TextButton") local Field3AF = Instance.new("TextButton") local Field4AF = Instance.new("TextButton") local Field5AF = Instance.new("TextButton") local Field6AF = Instance.new("TextButton") local Field7AF = Instance.new("TextButton") local Field8AF = Instance.new("TextButton") local Field9AF = Instance.new("TextButton") local Field10AF = Instance.new("TextButton") local Field11AF = Instance.new("TextButton") local Field12AF = Instance.new("TextButton") local Field13AF = Instance.new("TextButton") local Field14AF = Instance.new("TextButton") local TimeLabel = Instance.new("TextLabel") local Players = Instance.new("TextButton") local PlayerFrame = Instance.new("Frame") local PlayerList = Instance.new("Frame") local PlayerListBox = Instance.new("Frame") local PlyrSel = Instance.new("TextLabel") local Player1 = Instance.new("TextButton") local Player2 = Instance.new("TextButton") local Player3 = Instance.new("TextButton") local Player4 = Instance.new("TextButton") local Player5 = Instance.new("TextButton") local TpPlayer = Instance.new("TextButton") local FindTreasures = Instance.new("TextButton") local FindTreasuresText1 = Instance.new("TextLabel") local ExtrasScreen = Instance.new("TextButton") local ExtrasFrame = Instance.new("Frame") local ViciousBeeFrame = Instance.new("Frame") local InfoScreen = Instance.new("TextButton") local InfoFrame = Instance.new("Frame") local TPTool = Instance.new("TextButton") local BTool = Instance.new("TextButton") local ReJoinServer = Instance.new("TextButton") local NoClip = Instance.new("TextButton") local InfoText1 = Instance.new("TextLabel") local God = Instance.new("TextButton") local HuntViciousBee = Instance.new("TextButton") local ViciousBeeDetect = Instance.new("TextLabel") local FireflyDetect = Instance.new("TextLabel") local SproutDetect = Instance.new("TextLabel") local PollenFarm = Instance.new("TextButton") local FarmFrame = Instance.new("Frame") local StartFarm = Instance.new("TextButton") local AutoDig = Instance.new("TextButton") local TokenToggleLabel = Instance.new("TextLabel") local TokenToggle = Instance.new("TextBox") local FireflyToggleLabel = Instance.new("TextLabel") local FireflyToggle = Instance.new("TextBox") local HoneyToggleLabel = Instance.new("TextLabel") local HoneyToggle = Instance.new("TextBox") local InfJumpToggle = Instance.new("TextButton") local WealthClockToggle = Instance.new("TextButton") local FieldBoostToggle = Instance.new("TextButton") local TreatToggle = Instance.new("TextButton") local SproutFarmToggle = Instance.new("TextButton") local InfBackpack = Instance.new("TextButton") -- Properties MainGUI.Name = "MainGUI" MainGUI.Parent = game.CoreGui local MainCORE = game.CoreGui["MainGUI"] MainFrame.Name = "MainFrame" MainFrame.Parent = MainGUI MainFrame.BackgroundColor3 = Color3.new(0, 0, 0) MainFrame.BackgroundTransparency = 0.3 MainFrame.BorderColor3 = Color3.new(0, 0, 0) MainFrame.Position = UDim2.new(0.5, -319, 0, -32) MainFrame.Size = UDim2.new(0, 638, 0, 30) Close.Name = "Close" Close.Parent = MainFrame Close.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Close.BorderColor3 = Color3.new(0, 1, 0) Close.Position = UDim2.new(0, 5, 0, 5) Close.Size = UDim2.new(0, 20, 0, 20) Close.Font = Enum.Font.Fantasy Close.Text = "X" Close.TextColor3 = Color3.new(1, 0, 0) Close.TextSize = 17 Close.TextScaled = true Close.TextWrapped = true WayPoints.Name = "WayPoints" WayPoints.Parent = MainFrame WayPoints.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) WayPoints.BorderColor3 = Color3.new(0, 1, 0) WayPoints.Position = UDim2.new(0, 30, 0, 5) WayPoints.Size = UDim2.new(0, 83, 0, 20) WayPoints.Font = Enum.Font.Fantasy WayPoints.TextColor3 = Color3.new(1, 1, 1) WayPoints.Text = "WayPoints" WayPoints.TextSize = 17 WayPoints.TextWrapped = true WayPointsFrame.Name = "WayPointsFrame" WayPointsFrame.Parent = MainFrame WayPointsFrame.BackgroundColor3 = Color3.new(0, 0, 0) WayPointsFrame.BorderColor3 = Color3.new(0, 0, 0) WayPointsFrame.BackgroundTransparency = 0.3 WayPointsFrame.Position = UDim2.new(0, 0, 0, 34) WayPointsFrame.Size = UDim2.new(0, 600, 0, 530) WayPointsFrame.Visible = false ShowLocation.Name = "ShowLocation" ShowLocation.Parent = WayPointsFrame ShowLocation.BackgroundColor3 = Color3.new(1, 1, 1) ShowLocation.TextColor3 = Color3.new(0, 0, 0) ShowLocation.BorderColor3 = Color3.new(0, 0, 0) ShowLocation.Position = UDim2.new(0, 190, 0, 5) ShowLocation.Size = UDim2.new(0, 180, 0, 20) ShowLocation.Font = Enum.Font.Fantasy ShowLocation.Text = "Current Location" ShowLocation.TextWrapped = true ShowLocation.TextSize = 15 SetLocation.Name = "SetLocation" SetLocation.Parent = WayPointsFrame SetLocation.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SetLocation.TextColor3 = Color3.new(1, 1, 1) SetLocation.BorderColor3 = Color3.new(0.5, 0.5, 0.5) SetLocation.Position = UDim2.new(0, 375, 0, 5) SetLocation.Size = UDim2.new(0, 150, 0, 20) SetLocation.Font = Enum.Font.Fantasy SetLocation.Text = "Set Location" SetLocation.TextWrapped = true SetLocation.TextSize = 16 TPLocation.Name = "TPLocation" TPLocation.Parent = WayPointsFrame TPLocation.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TPLocation.TextColor3 = Color3.new(1, 1, 1) TPLocation.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TPLocation.Position = UDim2.new(0, 530, 0, 5) TPLocation.Size = UDim2.new(0, 65, 0, 20) TPLocation.Font = Enum.Font.Fantasy TPLocation.Text = "Move to" TPLocation.TextWrapped = true TPLocation.TextSize = 16 ReturnToHive.Name = "ReturnToHive" ReturnToHive.Parent = WayPointsFrame ReturnToHive.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) ReturnToHive.BorderColor3 = Color3.new(0.5, 0.5, 0.5) ReturnToHive.Position = UDim2.new(0, 5, 0, 5) ReturnToHive.Size = UDim2.new(0, 180, 0, 20) ReturnToHive.TextColor3 = Color3.new(1, 1, 1) ReturnToHive.Font = Enum.Font.Fantasy ReturnToHive.Text = "Return To Hive" ReturnToHive.TextSize = 16 BlackBear.Name = "BlackBear" BlackBear.Parent = WayPointsFrame BlackBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BlackBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BlackBear.Position = UDim2.new(0, 5, 0, 30) BlackBear.Size = UDim2.new(0, 180, 0, 20) BlackBear.TextColor3 = Color3.new(1, 1, 1) BlackBear.Font = Enum.Font.Fantasy BlackBear.Text = "Black Bear" BlackBear.TextSize = 16 BrownBear.Name = "BrownBear" BrownBear.Parent = WayPointsFrame BrownBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BrownBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BrownBear.Position = UDim2.new(0, 5, 0, 55) BrownBear.Size = UDim2.new(0, 180, 0, 20) BrownBear.TextColor3 = Color3.new(1, 1, 1) BrownBear.Font = Enum.Font.Fantasy BrownBear.Text = "Brown Bear" BrownBear.TextSize = 16 PandaBear.Name = "PandaBear" PandaBear.Parent = WayPointsFrame PandaBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) PandaBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) PandaBear.Position = UDim2.new(0, 5, 0, 80) PandaBear.Size = UDim2.new(0, 180, 0, 20) PandaBear.TextColor3 = Color3.new(1, 1, 1) PandaBear.Font = Enum.Font.Fantasy PandaBear.Text = "Panda Bear" PandaBear.TextSize = 16 PolarBear.Name = "PolarBear" PolarBear.Parent = WayPointsFrame PolarBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) PolarBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) PolarBear.Position = UDim2.new(0, 5, 0, 105) PolarBear.Size = UDim2.new(0, 180, 0, 20) PolarBear.TextColor3 = Color3.new(1, 1, 1) PolarBear.Font = Enum.Font.Fantasy PolarBear.Text = "Polar Bear" PolarBear.TextSize = 16 ScienceBear.Name = "ScienceBear" ScienceBear.Parent = WayPointsFrame ScienceBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) ScienceBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) ScienceBear.Position = UDim2.new(0, 5, 0, 130) ScienceBear.Size = UDim2.new(0, 180, 0, 20) ScienceBear.TextColor3 = Color3.new(1, 1, 1) ScienceBear.Font = Enum.Font.Fantasy ScienceBear.Text = "Science Bear" ScienceBear.TextSize = 16 TravelingBear.Name = "TravelingBear" TravelingBear.Parent = WayPointsFrame TravelingBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TravelingBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TravelingBear.Position = UDim2.new(0, 5, 0, 155) TravelingBear.Size = UDim2.new(0, 180, 0, 20) TravelingBear.TextColor3 = Color3.new(1, 1, 1) TravelingBear.Font = Enum.Font.Fantasy TravelingBear.Text = "Traveling Bear" TravelingBear.TextSize = 16 MotherBear.Name = "MotherBear" MotherBear.Parent = WayPointsFrame MotherBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) MotherBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) MotherBear.Position = UDim2.new(0, 5, 0, 180) MotherBear.Size = UDim2.new(0, 180, 0, 20) MotherBear.TextColor3 = Color3.new(1, 1, 1) MotherBear.Font = Enum.Font.Fantasy MotherBear.Text = "Mother Bear" MotherBear.TextSize = 16 TunnelBear.Name = "TunnelBear" TunnelBear.Parent = WayPointsFrame TunnelBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TunnelBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TunnelBear.Position = UDim2.new(0, 5, 0, 205) TunnelBear.Size = UDim2.new(0, 180, 0, 20) TunnelBear.TextColor3 = Color3.new(1, 1, 1) TunnelBear.Font = Enum.Font.Fantasy TunnelBear.Text = "Tunnel Bear" TunnelBear.TextSize = 16 SunBear.Name = "SunBear" SunBear.Parent = WayPointsFrame SunBear.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SunBear.BorderColor3 = Color3.new(0.5, 0.5, 0.5) SunBear.Position = UDim2.new(0, 5, 0, 230) SunBear.Size = UDim2.new(0, 180, 0, 20) SunBear.TextColor3 = Color3.new(1, 1, 1) SunBear.Font = Enum.Font.Fantasy SunBear.Text = "Sun Bear" SunBear.TextSize = 16 Onett.Name = "Onett" Onett.Parent = WayPointsFrame Onett.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Onett.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Onett.Position = UDim2.new(0, 5, 0, 255) Onett.Size = UDim2.new(0, 180, 0, 20) Onett.TextColor3 = Color3.new(1, 1, 1) Onett.Font = Enum.Font.Fantasy Onett.Text = "Onett" Onett.TextSize = 16 RedBoost.Name = "RedBoost" RedBoost.Parent = WayPointsFrame RedBoost.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) RedBoost.BorderColor3 = Color3.new(0.5, 0.5, 0.5) RedBoost.Position = UDim2.new(0, 5, 0, 280) RedBoost.Size = UDim2.new(0, 180, 0, 20) RedBoost.TextColor3 = Color3.new(1, 1, 1) RedBoost.Font = Enum.Font.Fantasy RedBoost.Text = "Red Field Booster" RedBoost.TextSize = 16 BlueBoost.Name = "BlueBoost" BlueBoost.Parent = WayPointsFrame BlueBoost.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BlueBoost.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BlueBoost.Position = UDim2.new(0, 5, 0, 305) BlueBoost.Size = UDim2.new(0, 180, 0, 20) BlueBoost.TextColor3 = Color3.new(1, 1, 1) BlueBoost.Font = Enum.Font.Fantasy BlueBoost.Text = "Blue Field Booster" BlueBoost.TextSize = 16 MountainBoost.Name = "MountainBoost" MountainBoost.Parent = WayPointsFrame MountainBoost.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) MountainBoost.BorderColor3 = Color3.new(0.5, 0.5, 0.5) MountainBoost.Position = UDim2.new(0, 5, 0, 330) MountainBoost.Size = UDim2.new(0, 180, 0, 20) MountainBoost.TextColor3 = Color3.new(1, 1, 1) MountainBoost.Font = Enum.Font.Fantasy MountainBoost.Text = "MountainTop Booster" MountainBoost.TextSize = 16 RedCannon.Name = "RedCannon" RedCannon.Parent = WayPointsFrame RedCannon.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) RedCannon.BorderColor3 = Color3.new(0.5, 0.5, 0.5) RedCannon.Position = UDim2.new(0, 5, 0, 355) RedCannon.Size = UDim2.new(0, 180, 0, 20) RedCannon.TextColor3 = Color3.new(1, 1, 1) RedCannon.Font = Enum.Font.Fantasy RedCannon.Text = "Red Cannon (22)" RedCannon.TextSize = 16 BlueCannon.Name = "BlueCannon" BlueCannon.Parent = WayPointsFrame BlueCannon.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BlueCannon.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BlueCannon.Position = UDim2.new(0, 5, 0, 380) BlueCannon.Size = UDim2.new(0, 180, 0, 20) BlueCannon.TextColor3 = Color3.new(1, 1, 1) BlueCannon.Font = Enum.Font.Fantasy BlueCannon.Text = "Blue Cannon (16)" BlueCannon.TextSize = 16 YellowCannon.Name = "YellowCannon" YellowCannon.Parent = WayPointsFrame YellowCannon.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) YellowCannon.BorderColor3 = Color3.new(0.5, 0.5, 0.5) YellowCannon.Position = UDim2.new(0, 5, 0, 405) YellowCannon.Size = UDim2.new(0, 180, 0, 20) YellowCannon.TextColor3 = Color3.new(1, 1, 1) YellowCannon.Font = Enum.Font.Fantasy YellowCannon.Text = "Yellow Cannon (12)" YellowCannon.TextSize = 16 Slingshot.Name = "Slingshot" Slingshot.Parent = WayPointsFrame Slingshot.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Slingshot.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Slingshot.Position = UDim2.new(0, 5, 0, 430) Slingshot.Size = UDim2.new(0, 180, 0, 20) Slingshot.TextColor3 = Color3.new(1, 1, 1) Slingshot.Font = Enum.Font.Fantasy Slingshot.Text = "Slingshot (8)" Slingshot.TextSize = 16 AntChallenge.Name = "AntChallenge" AntChallenge.Parent = WayPointsFrame AntChallenge.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) AntChallenge.BorderColor3 = Color3.new(0.5, 0.5, 0.5) AntChallenge.Position = UDim2.new(0, 5, 0, 455) AntChallenge.Size = UDim2.new(0, 180, 0, 20) AntChallenge.TextColor3 = Color3.new(1, 1, 1) AntChallenge.Font = Enum.Font.Fantasy AntChallenge.Text = "Ant Challenge" AntChallenge.TextSize = 16 KingbeetlesLair.Name = "KingbeetlesLair" KingbeetlesLair.Parent = WayPointsFrame KingbeetlesLair.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) KingbeetlesLair.BorderColor3 = Color3.new(0.5, 0.5, 0.5) KingbeetlesLair.Position = UDim2.new(0, 5, 0, 480) KingbeetlesLair.Size = UDim2.new(0, 180, 0, 20) KingbeetlesLair.TextColor3 = Color3.new(1, 1, 1) KingbeetlesLair.Font = Enum.Font.Fantasy KingbeetlesLair.Text = "King Beetles Lair" KingbeetlesLair.TextSize = 16 HoneyConvertor.Name = "HoneyConvertor" HoneyConvertor.Parent = WayPointsFrame HoneyConvertor.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) HoneyConvertor.BorderColor3 = Color3.new(0.5, 0.5, 0.5) HoneyConvertor.Position = UDim2.new(0, 5, 0, 505) HoneyConvertor.Size = UDim2.new(0, 180, 0, 20) HoneyConvertor.TextColor3 = Color3.new(1, 1, 1) HoneyConvertor.Font = Enum.Font.Fantasy HoneyConvertor.Text = "Instant Honey Converter" HoneyConvertor.TextSize = 16 BeeShop.Name = "BeeShop" BeeShop.Parent = WayPointsFrame BeeShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BeeShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BeeShop.Position = UDim2.new(0, 190, 0, 30) BeeShop.Size = UDim2.new(0, 180, 0, 20) BeeShop.TextColor3 = Color3.new(1, 1, 1) BeeShop.Font = Enum.Font.Fantasy BeeShop.Text = "Bees Shop" BeeShop.TextSize = 16 TPShop.Name = "TPShop" TPShop.Parent = WayPointsFrame TPShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TPShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TPShop.Position = UDim2.new(0, 190, 0, 55) TPShop.Size = UDim2.new(0, 180, 0, 20) TPShop.TextColor3 = Color3.new(1, 1, 1) TPShop.Font = Enum.Font.Fantasy TPShop.Text = "Basic Tools Shop" TPShop.TextSize = 16 TPShop2.Name = "TPShop2" TPShop2.Parent = WayPointsFrame TPShop2.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TPShop2.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TPShop2.Position = UDim2.new(0, 190, 0, 80) TPShop2.Size = UDim2.new(0, 180, 0, 20) TPShop2.TextColor3 = Color3.new(1, 1, 1) TPShop2.Font = Enum.Font.Fantasy TPShop2.Text = "Advanced Tools Shop" TPShop2.TextSize = 16 MountainTopShop.Name = "MountainTopShop" MountainTopShop.Parent = WayPointsFrame MountainTopShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) MountainTopShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) MountainTopShop.Position = UDim2.new(0, 190, 0, 105) MountainTopShop.Size = UDim2.new(0, 180, 0, 20) MountainTopShop.TextColor3 = Color3.new(1, 1, 1) MountainTopShop.Font = Enum.Font.Fantasy MountainTopShop.Text = "Mountain Top Shop" MountainTopShop.TextSize = 16 TentShop.Name = "TentShop" TentShop.Parent = WayPointsFrame TentShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TentShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TentShop.Position = UDim2.new(0, 190, 0, 130) TentShop.Size = UDim2.new(0, 180, 0, 20) TentShop.TextColor3 = Color3.new(1, 1, 1) TentShop.Font = Enum.Font.Fantasy TentShop.Text = "Ticket Tent Shop" TentShop.TextSize = 16 TreatShop.Name = "TreatShop" TreatShop.Parent = WayPointsFrame TreatShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TreatShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TreatShop.Position = UDim2.new(0, 190, 0, 155) TreatShop.Size = UDim2.new(0, 180, 0, 20) TreatShop.TextColor3 = Color3.new(1, 1, 1) TreatShop.Font = Enum.Font.Fantasy TreatShop.Text = "Treat Shop" TreatShop.TextSize = 16 RedClubhouse.Name = "RedClubhouse" RedClubhouse.Parent = WayPointsFrame RedClubhouse.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) RedClubhouse.BorderColor3 = Color3.new(0.5, 0.5, 0.5) RedClubhouse.Position = UDim2.new(0, 190, 0, 180) RedClubhouse.Size = UDim2.new(0, 180, 0, 20) RedClubhouse.TextColor3 = Color3.new(1, 1, 1) RedClubhouse.Font = Enum.Font.Fantasy RedClubhouse.Text = "Red Clubhouse" RedClubhouse.TextSize = 16 BlueClubhouse.Name = "BlueClubhouse" BlueClubhouse.Parent = WayPointsFrame BlueClubhouse.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BlueClubhouse.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BlueClubhouse.Position = UDim2.new(0, 190, 0, 205) BlueClubhouse.Size = UDim2.new(0, 180, 0, 20) BlueClubhouse.TextColor3 = Color3.new(1, 1, 1) BlueClubhouse.Font = Enum.Font.Fantasy BlueClubhouse.Text = "Blue Clubhouse" BlueClubhouse.TextSize = 16 TicketShop.Name = "TicketShop" TicketShop.Parent = WayPointsFrame TicketShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TicketShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TicketShop.Position = UDim2.new(0, 190, 0, 230) TicketShop.Size = UDim2.new(0, 180, 0, 20) TicketShop.TextColor3 = Color3.new(1, 1, 1) TicketShop.Font = Enum.Font.Fantasy TicketShop.Text = "Ticket Dispenser" TicketShop.TextSize = 16 ClubHoney.Name = "ClubHoney" ClubHoney.Parent = WayPointsFrame ClubHoney.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) ClubHoney.BorderColor3 = Color3.new(0.5, 0.5, 0.5) ClubHoney.Position = UDim2.new(0, 190, 0, 255) ClubHoney.Size = UDim2.new(0, 180, 0, 20) ClubHoney.TextColor3 = Color3.new(1, 1, 1) ClubHoney.Font = Enum.Font.Fantasy ClubHoney.Text = "Club Honey Dispenser" ClubHoney.TextSize = 16 RoyalJellyShop.Name = "RoyalJellyShop" RoyalJellyShop.Parent = WayPointsFrame RoyalJellyShop.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) RoyalJellyShop.BorderColor3 = Color3.new(0.5, 0.5, 0.5) RoyalJellyShop.Position = UDim2.new(0, 190, 0, 280) RoyalJellyShop.Size = UDim2.new(0, 180, 0, 20) RoyalJellyShop.TextColor3 = Color3.new(1, 1, 1) RoyalJellyShop.Font = Enum.Font.Fantasy RoyalJellyShop.Text = "Royal Jelly Dispenser" RoyalJellyShop.TextSize = 16 TicketRoyalJelly.Name = "TicketRoyalJelly" TicketRoyalJelly.Parent = WayPointsFrame TicketRoyalJelly.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TicketRoyalJelly.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TicketRoyalJelly.Position = UDim2.new(0, 190, 0, 305) TicketRoyalJelly.Size = UDim2.new(0, 180, 0, 20) TicketRoyalJelly.TextColor3 = Color3.new(1, 1, 1) TicketRoyalJelly.Font = Enum.Font.Fantasy TicketRoyalJelly.Text = "Ticket Royal Jelly Dispenser" TicketRoyalJelly.TextSize = 16 GumdropDispenser.Name = "GumdropDispenser" GumdropDispenser.Parent = WayPointsFrame GumdropDispenser.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) GumdropDispenser.BorderColor3 = Color3.new(0.5, 0.5, 0.5) GumdropDispenser.Position = UDim2.new(0, 190, 0, 330) GumdropDispenser.Size = UDim2.new(0, 180, 0, 20) GumdropDispenser.TextColor3 = Color3.new(1, 1, 1) GumdropDispenser.Font = Enum.Font.Fantasy GumdropDispenser.Text = "Gumdrop Dispenser" GumdropDispenser.TextSize = 16 BlueberryDispenser.Name = "BlueberryDispenser" BlueberryDispenser.Parent = WayPointsFrame BlueberryDispenser.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BlueberryDispenser.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BlueberryDispenser.Position = UDim2.new(0, 190, 0, 355) BlueberryDispenser.Size = UDim2.new(0, 180, 0, 20) BlueberryDispenser.TextColor3 = Color3.new(1, 1, 1) BlueberryDispenser.Font = Enum.Font.Fantasy BlueberryDispenser.Text = "Blueberry Dispenser" BlueberryDispenser.TextSize = 16 StrawberryDispenser.Name = "StrawberryDispenser" StrawberryDispenser.Parent = WayPointsFrame StrawberryDispenser.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StrawberryDispenser.BorderColor3 = Color3.new(0.5, 0.5, 0.5) StrawberryDispenser.Position = UDim2.new(0, 190, 0, 380) StrawberryDispenser.Size = UDim2.new(0, 180, 0, 20) StrawberryDispenser.TextColor3 = Color3.new(1, 1, 1) StrawberryDispenser.Font = Enum.Font.Fantasy StrawberryDispenser.Text = "Strawberry Dispenser" StrawberryDispenser.TextSize = 16 TreatDispenser.Name = "TreatDispenser" TreatDispenser.Parent = WayPointsFrame TreatDispenser.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TreatDispenser.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TreatDispenser.Position = UDim2.new(0, 190, 0, 405) TreatDispenser.Size = UDim2.new(0, 180, 0, 20) TreatDispenser.TextColor3 = Color3.new(1, 1, 1) TreatDispenser.Font = Enum.Font.Fantasy TreatDispenser.Text = "Treat Dispenser" TreatDispenser.TextSize = 16 StarHut.Name = "StarHut" StarHut.Parent = WayPointsFrame StarHut.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StarHut.BorderColor3 = Color3.new(0.5, 0.5, 0.5) StarHut.Position = UDim2.new(0, 190, 0, 430) StarHut.Size = UDim2.new(0, 180, 0, 20) StarHut.TextColor3 = Color3.new(1, 1, 1) StarHut.Font = Enum.Font.Fantasy StarHut.Text = "Star Hall" StarHut.TextSize = 16 WealthClock.Name = "WealthClock" WealthClock.Parent = WayPointsFrame WealthClock.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) WealthClock.BorderColor3 = Color3.new(0.5, 0.5, 0.5) WealthClock.Position = UDim2.new(0, 190, 0, 455) WealthClock.Size = UDim2.new(0, 180, 0, 20) WealthClock.TextColor3 = Color3.new(1, 1, 1) WealthClock.Font = Enum.Font.Fantasy WealthClock.Text = "Wealth Clock" WealthClock.TextSize = 16 Honeystorm.Name = "Honeystorm" Honeystorm.Parent = WayPointsFrame Honeystorm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Honeystorm.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Honeystorm.Position = UDim2.new(0, 190, 0, 480) Honeystorm.Size = UDim2.new(0, 180, 0, 20) Honeystorm.TextColor3 = Color3.new(1, 1, 1) Honeystorm.Font = Enum.Font.Fantasy Honeystorm.Text = "Summon a Honeystorm" Honeystorm.TextSize = 16 SproutDispenser.Name = "SproutDispenser" SproutDispenser.Parent = WayPointsFrame SproutDispenser.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SproutDispenser.BorderColor3 = Color3.new(0.5, 0.5, 0.5) SproutDispenser.Position = UDim2.new(0, 190, 0, 505) SproutDispenser.Size = UDim2.new(0, 180, 0, 20) SproutDispenser.TextColor3 = Color3.new(1, 1, 1) SproutDispenser.Font = Enum.Font.Fantasy SproutDispenser.Text = "Summon a Sprout" SproutDispenser.TextSize = 16 SunflowerField.Name = "SunflowerField" SunflowerField.Parent = WayPointsFrame SunflowerField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SunflowerField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) SunflowerField.Position = UDim2.new(0, 375, 0, 30) SunflowerField.Size = UDim2.new(0, 180, 0, 20) SunflowerField.TextColor3 = Color3.new(1, 1, 1) SunflowerField.Font = Enum.Font.Fantasy SunflowerField.Text = "Sunflower Field" SunflowerField.TextSize = 16 MushRoomField.Name = "MushRoomField" MushRoomField.Parent = WayPointsFrame MushRoomField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) MushRoomField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) MushRoomField.Position = UDim2.new(0, 375, 0, 55) MushRoomField.Size = UDim2.new(0, 180, 0, 20) MushRoomField.TextColor3 = Color3.new(1, 1, 1) MushRoomField.Font = Enum.Font.Fantasy MushRoomField.Text = "MushRoom Field" MushRoomField.TextSize = 16 DandelionField.Name = "DandelionField" DandelionField.Parent = WayPointsFrame DandelionField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) DandelionField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) DandelionField.Position = UDim2.new(0, 375, 0, 80) DandelionField.Size = UDim2.new(0, 180, 0, 20) DandelionField.TextColor3 = Color3.new(1, 1, 1) DandelionField.Font = Enum.Font.Fantasy DandelionField.Text = "Dandelion Field" DandelionField.TextSize = 16 BlueField.Name = "BlueField" BlueField.Parent = WayPointsFrame BlueField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BlueField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BlueField.Position = UDim2.new(0, 375, 0, 105) BlueField.Size = UDim2.new(0, 180, 0, 20) BlueField.TextColor3 = Color3.new(1, 1, 1) BlueField.Font = Enum.Font.Fantasy BlueField.Text = "Blue Flower Field" BlueField.TextSize = 16 CloverField.Name = "CloverField" CloverField.Parent = WayPointsFrame CloverField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) CloverField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) CloverField.Position = UDim2.new(0, 375, 0, 130) CloverField.Size = UDim2.new(0, 180, 0, 20) CloverField.TextColor3 = Color3.new(1, 1, 1) CloverField.Font = Enum.Font.Fantasy CloverField.Text = "Clover Field" CloverField.TextSize = 16 StrawBerryField.Name = "StrawBerryField" StrawBerryField.Parent = WayPointsFrame StrawBerryField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StrawBerryField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) StrawBerryField.Position = UDim2.new(0, 375, 0, 155) StrawBerryField.Size = UDim2.new(0, 180, 0, 20) StrawBerryField.TextColor3 = Color3.new(1, 1, 1) StrawBerryField.Font = Enum.Font.Fantasy StrawBerryField.Text = "StrawBerry Field" StrawBerryField.TextSize = 16 SpiderField.Name = "SpiderField" SpiderField.Parent = WayPointsFrame SpiderField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SpiderField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) SpiderField.Position = UDim2.new(0, 375, 0, 180) SpiderField.Size = UDim2.new(0, 180, 0, 20) SpiderField.TextColor3 = Color3.new(1, 1, 1) SpiderField.Font = Enum.Font.Fantasy SpiderField.Text = "Spider Field" SpiderField.TextSize = 16 BamBooField.Name = "BamBooField" BamBooField.Parent = WayPointsFrame BamBooField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BamBooField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BamBooField.Position = UDim2.new(0, 375, 0, 205) BamBooField.Size = UDim2.new(0, 180, 0, 20) BamBooField.TextColor3 = Color3.new(1, 1, 1) BamBooField.Font = Enum.Font.Fantasy BamBooField.Text = "BamBoo Field" BamBooField.TextSize = 16 RoseField.Name = "RoseField" RoseField.Parent = WayPointsFrame RoseField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) RoseField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) RoseField.Position = UDim2.new(0, 375, 0, 230) RoseField.Size = UDim2.new(0, 180, 0, 20) RoseField.TextColor3 = Color3.new(1, 1, 1) RoseField.Font = Enum.Font.Fantasy RoseField.Text = "Rose Field" RoseField.TextSize = 16 PineTreeField.Name = "PineTreeField" PineTreeField.Parent = WayPointsFrame PineTreeField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) PineTreeField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) PineTreeField.Position = UDim2.new(0, 375, 0, 255) PineTreeField.Size = UDim2.new(0, 180, 0, 20) PineTreeField.TextColor3 = Color3.new(1, 1, 1) PineTreeField.Font = Enum.Font.Fantasy PineTreeField.Text = "Pine Tree Forest" PineTreeField.TextSize = 16 CactusField.Name = "CactusField" CactusField.Parent = WayPointsFrame CactusField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) CactusField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) CactusField.Position = UDim2.new(0, 375, 0, 280) CactusField.Size = UDim2.new(0, 180, 0, 20) CactusField.TextColor3 = Color3.new(1, 1, 1) CactusField.Font = Enum.Font.Fantasy CactusField.Text = "Cactus Field" CactusField.TextSize = 16 PumpkinField.Name = "PumpkinField" PumpkinField.Parent = WayPointsFrame PumpkinField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) PumpkinField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) PumpkinField.Position = UDim2.new(0, 375, 0, 305) PumpkinField.Size = UDim2.new(0, 180, 0, 20) PumpkinField.TextColor3 = Color3.new(1, 1, 1) PumpkinField.Font = Enum.Font.Fantasy PumpkinField.Text = "Pumpkin Patch" PumpkinField.TextSize = 16 PineappleField.Name = "PineappleField" PineappleField.Parent = WayPointsFrame PineappleField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) PineappleField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) PineappleField.Position = UDim2.new(0, 375, 0, 330) PineappleField.Size = UDim2.new(0, 180, 0, 20) PineappleField.TextColor3 = Color3.new(1, 1, 1) PineappleField.Font = Enum.Font.Fantasy PineappleField.Text = "Pineapple Patch" PineappleField.TextSize = 16 MountainTopField.Name = "MountainTopField" MountainTopField.Parent = WayPointsFrame MountainTopField.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) MountainTopField.BorderColor3 = Color3.new(0.5, 0.5, 0.5) MountainTopField.Position = UDim2.new(0, 375, 0, 355) MountainTopField.Size = UDim2.new(0, 180, 0, 20) MountainTopField.TextColor3 = Color3.new(1, 1, 1) MountainTopField.Font = Enum.Font.Fantasy MountainTopField.Text = "Mountain Top Field" MountainTopField.TextSize = 16 Field1AF.Name = "Field1AF" Field1AF.Parent = WayPointsFrame Field1AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field1AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field1AF.Position = UDim2.new(0, 555, 0, 30) Field1AF.Size = UDim2.new(0, 40, 0, 20) Field1AF.TextColor3 = Color3.new(1, 1, 1) Field1AF.Font = Enum.Font.Fantasy Field1AF.Text = "Farm" Field1AF.TextSize = 16 Field2AF.Name = "Field2AF" Field2AF.Parent = WayPointsFrame Field2AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field2AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field2AF.Position = UDim2.new(0, 555, 0, 55) Field2AF.Size = UDim2.new(0, 40, 0, 20) Field2AF.TextColor3 = Color3.new(1, 1, 1) Field2AF.Font = Enum.Font.Fantasy Field2AF.Text = "Farm" Field2AF.TextSize = 16 Field3AF.Name = "Field3AF" Field3AF.Parent = WayPointsFrame Field3AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field3AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field3AF.Position = UDim2.new(0, 555, 0, 80) Field3AF.Size = UDim2.new(0, 40, 0, 20) Field3AF.TextColor3 = Color3.new(1, 1, 1) Field3AF.Font = Enum.Font.Fantasy Field3AF.Text = "Farm" Field3AF.TextSize = 16 Field4AF.Name = "Field4AF" Field4AF.Parent = WayPointsFrame Field4AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field4AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field4AF.Position = UDim2.new(0, 555, 0, 105) Field4AF.Size = UDim2.new(0, 40, 0, 20) Field4AF.TextColor3 = Color3.new(1, 1, 1) Field4AF.Font = Enum.Font.Fantasy Field4AF.Text = "Farm" Field4AF.TextSize = 16 Field5AF.Name = "Field5AF" Field5AF.Parent = WayPointsFrame Field5AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field5AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field5AF.Position = UDim2.new(0, 555, 0, 130) Field5AF.Size = UDim2.new(0, 40, 0, 20) Field5AF.TextColor3 = Color3.new(1, 1, 1) Field5AF.Font = Enum.Font.Fantasy Field5AF.Text = "Farm" Field5AF.TextSize = 16 Field6AF.Name = "Field6AF" Field6AF.Parent = WayPointsFrame Field6AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field6AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field6AF.Position = UDim2.new(0, 555, 0, 155) Field6AF.Size = UDim2.new(0, 40, 0, 20) Field6AF.TextColor3 = Color3.new(1, 1, 1) Field6AF.Font = Enum.Font.Fantasy Field6AF.Text = "Farm" Field6AF.TextSize = 16 Field7AF.Name = "Field7AF" Field7AF.Parent = WayPointsFrame Field7AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field7AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field7AF.Position = UDim2.new(0, 555, 0, 180) Field7AF.Size = UDim2.new(0, 40, 0, 20) Field7AF.TextColor3 = Color3.new(1, 1, 1) Field7AF.Font = Enum.Font.Fantasy Field7AF.Text = "Farm" Field7AF.TextSize = 16 Field8AF.Name = "Field8AF" Field8AF.Parent = WayPointsFrame Field8AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field8AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field8AF.Position = UDim2.new(0, 555, 0, 205) Field8AF.Size = UDim2.new(0, 40, 0, 20) Field8AF.TextColor3 = Color3.new(1, 1, 1) Field8AF.Font = Enum.Font.Fantasy Field8AF.Text = "Farm" Field8AF.TextSize = 16 Field9AF.Name = "Field9AF" Field9AF.Parent = WayPointsFrame Field9AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field9AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field9AF.Position = UDim2.new(0, 555, 0, 230) Field9AF.Size = UDim2.new(0, 40, 0, 20) Field9AF.TextColor3 = Color3.new(1, 1, 1) Field9AF.Font = Enum.Font.Fantasy Field9AF.Text = "Farm" Field9AF.TextSize = 16 Field10AF.Name = "Field10AF" Field10AF.Parent = WayPointsFrame Field10AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field10AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field10AF.Position = UDim2.new(0, 555, 0, 255) Field10AF.Size = UDim2.new(0, 40, 0, 20) Field10AF.TextColor3 = Color3.new(1, 1, 1) Field10AF.Font = Enum.Font.Fantasy Field10AF.Text = "Farm" Field10AF.TextSize = 16 Field11AF.Name = "Field11AF" Field11AF.Parent = WayPointsFrame Field11AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field11AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field11AF.Position = UDim2.new(0, 555, 0, 280) Field11AF.Size = UDim2.new(0, 40, 0, 20) Field11AF.TextColor3 = Color3.new(1, 1, 1) Field11AF.Font = Enum.Font.Fantasy Field11AF.Text = "Farm" Field11AF.TextSize = 16 Field12AF.Name = "Field12AF" Field12AF.Parent = WayPointsFrame Field12AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field12AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field12AF.Position = UDim2.new(0, 555, 0, 305) Field12AF.Size = UDim2.new(0, 40, 0, 20) Field12AF.TextColor3 = Color3.new(1, 1, 1) Field12AF.Font = Enum.Font.Fantasy Field12AF.Text = "Farm" Field12AF.TextSize = 16 Field13AF.Name = "Field13AF" Field13AF.Parent = WayPointsFrame Field13AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field13AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field13AF.Position = UDim2.new(0, 555, 0, 330) Field13AF.Size = UDim2.new(0, 40, 0, 20) Field13AF.TextColor3 = Color3.new(1, 1, 1) Field13AF.Font = Enum.Font.Fantasy Field13AF.Text = "Farm" Field13AF.TextSize = 16 Field14AF.Name = "Field14AF" Field14AF.Parent = WayPointsFrame Field14AF.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Field14AF.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Field14AF.Position = UDim2.new(0, 555, 0, 355) Field14AF.Size = UDim2.new(0, 40, 0, 20) Field14AF.TextColor3 = Color3.new(1, 1, 1) Field14AF.Font = Enum.Font.Fantasy Field14AF.Text = "Farm" Field14AF.TextSize = 16 Players.Name = "Players" Players.Parent = MainFrame Players.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Players.BorderColor3 = Color3.new(0, 1, 0) Players.Position = UDim2.new(0, 118, 0, 5) Players.Size = UDim2.new(0, 60, 0, 20) Players.BackgroundTransparency = 0 Players.Font = Enum.Font.Fantasy Players.TextColor3 = Color3.new(1, 1, 1) Players.Text = "Players" Players.TextSize = 17 Players.TextWrapped = true PlayerFrame.Name = "PlayerFrame" PlayerFrame.Parent = MainFrame PlayerFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) PlayerFrame.BackgroundTransparency = 0.3 PlayerFrame.BorderColor3 = Color3.new(0, 0, 0) PlayerFrame.Position = UDim2.new(0, 63, 0, 34) PlayerFrame.Size = UDim2.new(0, 170, 0, 200) PlayerFrame.Visible = false PlyrSel.Name = "PlyrSel" PlyrSel.Parent = PlayerFrame PlyrSel.BackgroundColor3 = Color3.new(1, 1, 1) PlyrSel.BackgroundTransparency = 0.15 PlyrSel.BorderColor3 = Color3.new(0, 0, 0) PlyrSel.Position = UDim2.new(0, 5, 0, 5) PlyrSel.Size = UDim2.new(0, 160, 0, 20) PlyrSel.Font = Enum.Font.SourceSans PlyrSel.Text = "SELECT A PLAYER" PlyrSel.TextColor3 = Color3.new(0, 0, 0) PlyrSel.TextScaled = true PlyrSel.TextSize = 17 PlyrSel.TextWrapped = true Player1.Name = "Player1" Player1.Parent = PlayerFrame Player1.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Player1.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Player1.Position = UDim2.new(0, 5, 0, 35) Player1.Size = UDim2.new(0, 160, 0, 20) Player1.Font = Enum.Font.Fantasy Player1.Text = "" Player1.TextColor3 = Color3.new(1, 1, 1) Player1.TextSize = 15 Player1.TextWrapped = true Player2.Name = "Player2" Player2.Parent = PlayerFrame Player2.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Player2.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Player2.Position = UDim2.new(0, 5, 0, 60) Player2.Size = UDim2.new(0, 160, 0, 20) Player2.Font = Enum.Font.Fantasy Player2.Text = "" Player2.TextColor3 = Color3.new(1, 1, 1) Player2.TextSize = 15 Player2.TextWrapped = true Player3.Name = "Player3" Player3.Parent = PlayerFrame Player3.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Player3.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Player3.Position = UDim2.new(0, 5, 0, 85) Player3.Size = UDim2.new(0, 160, 0, 20) Player3.Font = Enum.Font.Fantasy Player3.Text = "" Player3.TextColor3 = Color3.new(1, 1, 1) Player3.TextSize = 15 Player3.TextWrapped = true Player4.Name = "Player4" Player4.Parent = PlayerFrame Player4.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Player4.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Player4.Position = UDim2.new(0, 5, 0, 110) Player4.Size = UDim2.new(0, 160, 0, 20) Player4.Font = Enum.Font.Fantasy Player4.Text = "" Player4.TextColor3 = Color3.new(1, 1, 1) Player4.TextSize = 15 Player4.TextWrapped = true Player5.Name = "Player5" Player5.Parent = PlayerFrame Player5.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) Player5.BorderColor3 = Color3.new(0.5, 0.5, 0.5) Player5.Position = UDim2.new(0, 5, 0, 135) Player5.Size = UDim2.new(0, 160, 0, 20) Player5.Font = Enum.Font.Fantasy Player5.Text = "" Player5.TextColor3 = Color3.new(1, 1, 1) Player5.TextSize = 15 Player5.TextWrapped = true TpPlayer.Name = "TpPlayer" TpPlayer.Parent = PlayerFrame TpPlayer.BackgroundColor3 = Color3.new(0.18, 0.18, 0.18) TpPlayer.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TpPlayer.Position = UDim2.new(0, 5, 0, 165) TpPlayer.Size = UDim2.new(0, 160, 0, 30) TpPlayer.Font = Enum.Font.Fantasy TpPlayer.Text = "Teleport to Player" TpPlayer.TextColor3 = Color3.new(1, 1, 1) TpPlayer.TextWrapped = true TpPlayer.TextSize = 17 PollenFarm.Name = "PollenFarm" PollenFarm.Parent = MainFrame PollenFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) PollenFarm.BorderColor3 = Color3.new(0, 1, 0) PollenFarm.Position = UDim2.new(0, 183, 0, 5) PollenFarm.Size = UDim2.new(0, 90, 0, 20) PollenFarm.Font = Enum.Font.Fantasy PollenFarm.TextColor3 = Color3.new(1, 1, 1) PollenFarm.Text = "Farm Pollen" PollenFarm.TextSize = 17 PollenFarm.TextWrapped = true FarmFrame.Name = "FarmFrame" FarmFrame.Parent = MainFrame FarmFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) FarmFrame.BorderColor3 = Color3.new(0, 0, 0) FarmFrame.BackgroundTransparency = 0 FarmFrame.Position = UDim2.new(0, 138, 0, 34) FarmFrame.Size = UDim2.new(0, 180, 0, 55) FarmFrame.ZIndex = 7 FarmFrame.Visible = false AvoidViciousBee.Name = "AvoidViciousBee" AvoidViciousBee.Parent = FarmFrame AvoidViciousBee.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) AvoidViciousBee.BorderColor3 = Color3.new(0.5, 0.5, 0.5) AvoidViciousBee.BackgroundTransparency = 0 AvoidViciousBee.Position = UDim2.new(0, 5, 0, 5) AvoidViciousBee.Size = UDim2.new(0, 170, 0, 20) AvoidViciousBee.Font = Enum.Font.Fantasy AvoidViciousBee.TextColor3 = Color3.new(1, 1, 1) AvoidViciousBee.Text = "Avoid Vicious Bee: OFF" AvoidViciousBee.TextSize = 17 AvoidViciousBee.ZIndex = 7 AvoidViciousBee.TextWrapped = true StartFarm.Name = "StartFarm" StartFarm.Parent = FarmFrame StartFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StartFarm.BorderColor3 = Color3.new(0.5, 0.5, 0.5) StartFarm.BackgroundTransparency = 0 StartFarm.Position = UDim2.new(0, 5, 0, 30) StartFarm.Size = UDim2.new(0, 170, 0, 20) StartFarm.Font = Enum.Font.Fantasy StartFarm.TextColor3 = Color3.new(1, 1, 1) StartFarm.Text = "Pollen Farm: OFF" StartFarm.TextSize = 17 StartFarm.ZIndex = 7 StartFarm.TextWrapped = true AutoDig.Name = "AutoDig" AutoDig.Parent = MainFrame AutoDig.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) AutoDig.BorderColor3 = Color3.new(0, 1, 0) AutoDig.Position = UDim2.new(0, 278, 0, 5) AutoDig.Size = UDim2.new(0, 70, 0, 20) AutoDig.Font = Enum.Font.Fantasy AutoDig.TextColor3 = Color3.new(1, 1, 1) AutoDig.Text = "Auto Dig" AutoDig.TextSize = 17 AutoDig.TextWrapped = true God.Name = "God" God.Parent = MainFrame God.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) God.BorderColor3 = Color3.new(0, 1, 0) God.Position = UDim2.new(0, 353, 0, 5) God.Size = UDim2.new(0, 115, 0, 20) God.Font = Enum.Font.Fantasy God.TextColor3 = Color3.new(1, 1, 1) God.Text = "God Mode: OFF" God.TextSize = 17 God.TextWrapped = true ExtrasScreen.Name = "ExtrasScreen" ExtrasScreen.Parent = MainFrame ExtrasScreen.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) ExtrasScreen.BorderColor3 = Color3.new(0, 1, 0) ExtrasScreen.Position = UDim2.new(0, 473, 0, 5) ExtrasScreen.Size = UDim2.new(0, 50, 0, 20) ExtrasScreen.Font = Enum.Font.Fantasy ExtrasScreen.TextColor3 = Color3.new(1, 1, 1) ExtrasScreen.Text = "Extras" ExtrasScreen.TextSize = 17 ExtrasScreen.TextWrapped = true ExtrasFrame.Name = "ExtrasFrame" ExtrasFrame.Parent = MainFrame ExtrasFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2) ExtrasFrame.BorderColor3 = Color3.new(0, 0, 0) ExtrasFrame.BackgroundTransparency = 0 ExtrasFrame.Position = UDim2.new(0, 413, 0, 34) ExtrasFrame.Size = UDim2.new(0, 170, 0, 330) ExtrasFrame.ZIndex = 7 ExtrasFrame.Visible = false HuntViciousBee.Name = "HuntViciousBee" HuntViciousBee.Parent = ExtrasFrame HuntViciousBee.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) HuntViciousBee.BorderColor3 = Color3.new(0.5, 0.5, 0.5) HuntViciousBee.Position = UDim2.new(0, 5, 0, 5) HuntViciousBee.Size = UDim2.new(0, 160, 0, 20) HuntViciousBee.Font = Enum.Font.Fantasy HuntViciousBee.TextColor3 = Color3.new(1, 1, 1) HuntViciousBee.Text = "Hunt Vicious Bee: OFF" HuntViciousBee.TextSize = 17 HuntViciousBee.ZIndex = 7 HuntViciousBee.TextWrapped = true SproutFarmToggle.Name = "SproutFarmToggle" SproutFarmToggle.Parent = ExtrasFrame SproutFarmToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SproutFarmToggle.BorderColor3 = Color3.new(0.5, 0.5, 0.5) SproutFarmToggle.Position = UDim2.new(0, 5, 0, 30) SproutFarmToggle.Size = UDim2.new(0, 160, 0, 20) SproutFarmToggle.Font = Enum.Font.Fantasy SproutFarmToggle.TextColor3 = Color3.new(1, 1, 1) SproutFarmToggle.Text = "Farm Sprout: OFF" SproutFarmToggle.TextSize = 17 SproutFarmToggle.ZIndex = 7 SproutFarmToggle.TextWrapped = true WealthClockToggle.Name = "WealthClockToggle" WealthClockToggle.Parent = ExtrasFrame WealthClockToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) WealthClockToggle.BorderColor3 = Color3.new(0.5, 0.5, 0.5) WealthClockToggle.Position = UDim2.new(0, 5, 0, 55) WealthClockToggle.Size = UDim2.new(0, 160, 0, 20) WealthClockToggle.TextColor3 = Color3.new(1, 1, 1) WealthClockToggle.Font = Enum.Font.Fantasy WealthClockToggle.Text = "Wealth Clock: OFF" WealthClockToggle.ZIndex = 7 WealthClockToggle.TextSize = 16 FieldBoostToggle.Name = "FieldBoostToggle" FieldBoostToggle.Parent = ExtrasFrame FieldBoostToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) FieldBoostToggle.BorderColor3 = Color3.new(0.5, 0.5, 0.5) FieldBoostToggle.Position = UDim2.new(0, 5, 0, 80) FieldBoostToggle.Size = UDim2.new(0, 160, 0, 20) FieldBoostToggle.TextColor3 = Color3.new(1, 1, 1) FieldBoostToggle.Font = Enum.Font.Fantasy FieldBoostToggle.Text = "Auto Field Boost: OFF" FieldBoostToggle.ZIndex = 7 FieldBoostToggle.TextSize = 16 TreatToggle.Name = "TreatToggle" TreatToggle.Parent = ExtrasFrame TreatToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TreatToggle.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TreatToggle.Position = UDim2.new(0, 5, 0, 105) TreatToggle.Size = UDim2.new(0, 160, 0, 20) TreatToggle.TextColor3 = Color3.new(1, 1, 1) TreatToggle.Font = Enum.Font.Fantasy TreatToggle.Text = "Auto Treats: OFF" TreatToggle.ZIndex = 7 TreatToggle.TextSize = 16 NoClip.Name = "NoClip" NoClip.Parent = ExtrasFrame NoClip.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) NoClip.BorderColor3 = Color3.new(0.5, 0.5, 0.5) NoClip.Position = UDim2.new(0, 5, 0, 130) NoClip.Size = UDim2.new(0, 160, 0, 20) NoClip.Font = Enum.Font.Fantasy NoClip.TextColor3 = Color3.new(1, 1, 1) NoClip.Text = "NoClip Mode: OFF" NoClip.TextSize = 17 NoClip.ZIndex = 7 NoClip.TextWrapped = true FindTreasures.Name = "FindTreasures" FindTreasures.Parent = ExtrasFrame FindTreasures.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) FindTreasures.BorderColor3 = Color3.new(0.5, 0.5, 0.5) FindTreasures.Position = UDim2.new(0, 5, 0, 155) FindTreasures.Size = UDim2.new(0, 160, 0, 20) FindTreasures.BackgroundTransparency = 0 FindTreasures.Font = Enum.Font.Fantasy FindTreasures.TextColor3 = Color3.new(1, 1, 1) FindTreasures.Text = "Tp to all Treasures" FindTreasures.TextSize = 17 FindTreasures.ZIndex = 7 FindTreasures.TextWrapped = true FindTreasuresText1.Name = "FindTreasuresText1" FindTreasuresText1.Parent = MainFrame FindTreasuresText1.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) FindTreasuresText1.BorderColor3 = Color3.new(0, 0, 0) FindTreasuresText1.BackgroundTransparency = 0.1 FindTreasuresText1.Position = UDim2.new(0, 221, 0, 130) FindTreasuresText1.Size = UDim2.new(0, 190, 0, 84) FindTreasuresText1.TextColor3 = Color3.new(1, 1, 1) FindTreasuresText1.Font = Enum.Font.Fantasy FindTreasuresText1.Text = "This will Teleport you to all the hidden treasures on the map. It will only work once\nas the treasures do not respawn." FindTreasuresText1.TextSize = 16 FindTreasuresText1.TextWrapped = true FindTreasuresText1.ZIndex = 7 FindTreasuresText1.Visible = false FindTreasuresText1.TextYAlignment = Enum.TextYAlignment.Top TPTool.Name = "TPTool" TPTool.Parent = ExtrasFrame TPTool.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TPTool.BorderColor3 = Color3.new(0.5, 0.5, 0.5) TPTool.Position = UDim2.new(0, 5, 0, 180) TPTool.Size = UDim2.new(0, 160, 0, 20) TPTool.TextColor3 = Color3.new(1, 1, 1) TPTool.Font = Enum.Font.Fantasy TPTool.Text = "Add TPTool" TPTool.ZIndex = 7 TPTool.TextSize = 16 BTool.Name = "BTool" BTool.Parent = ExtrasFrame BTool.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) BTool.BorderColor3 = Color3.new(0.5, 0.5, 0.5) BTool.Position = UDim2.new(0, 5, 0, 205) BTool.Size = UDim2.new(0, 160, 0, 20) BTool.TextColor3 = Color3.new(1, 1, 1) BTool.Font = Enum.Font.Fantasy BTool.Text = "Add BTools" BTool.ZIndex = 7 BTool.TextSize = 16 ReJoinServer.Name = "ReJoinServer" ReJoinServer.Parent = ExtrasFrame ReJoinServer.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) ReJoinServer.BorderColor3 = Color3.new(0.5, 0.5, 0.5) ReJoinServer.Position = UDim2.new(0, 5, 0, 230) ReJoinServer.Size = UDim2.new(0, 160, 0, 20) ReJoinServer.TextColor3 = Color3.new(1, 1, 1) ReJoinServer.Font = Enum.Font.Fantasy ReJoinServer.Text = "ReJoin a Server" ReJoinServer.TextSize = 16 ReJoinServer.ZIndex = 7 ReJoinServer.TextWrapped = true TokenToggleLabel.Name = "TokenToggleLabel" TokenToggleLabel.Parent = ExtrasFrame TokenToggleLabel.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TokenToggleLabel.BorderSizePixel = 0 TokenToggleLabel.Position = UDim2.new(0, 5, 0, 254) TokenToggleLabel.Size = UDim2.new(0, 132, 0, 22) TokenToggleLabel.TextColor3 = Color3.new(1, 1, 1) TokenToggleLabel.Font = Enum.Font.Fantasy TokenToggleLabel.Text = "Token Pickup kb" TokenToggleLabel.TextSize = 16 TokenToggleLabel.ZIndex = 7 TokenToggleLabel.TextWrapped = true TokenToggle.Name = "TokenToggle" TokenToggle.Parent = ExtrasFrame TokenToggle.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) TokenToggle.BorderColor3 = Color3.new(0.8, 0.8, 0.8) TokenToggle.Position = UDim2.new(0, 137, 0, 255) TokenToggle.Size = UDim2.new(0, 28, 0, 20) TokenToggle.TextColor3 = Color3.new(1, 1, 1) TokenToggle.Font = Enum.Font.Fantasy TokenToggle.Text = "h" TokenToggle.TextSize = 16 TokenToggle.ZIndex = 7 TokenToggle.TextWrapped = true FireflyToggleLabel.Name = "FireflyToggleLabel" FireflyToggleLabel.Parent = ExtrasFrame FireflyToggleLabel.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) FireflyToggleLabel.BorderSizePixel = 0 FireflyToggleLabel.Position = UDim2.new(0, 5, 0, 279) FireflyToggleLabel.Size = UDim2.new(0, 132, 0, 22) FireflyToggleLabel.TextColor3 = Color3.new(1, 1, 1) FireflyToggleLabel.Font = Enum.Font.Fantasy FireflyToggleLabel.Text = "Firefly Touch kb" FireflyToggleLabel.TextSize = 16 FireflyToggleLabel.ZIndex = 7 FireflyToggleLabel.TextWrapped = true FireflyToggle.Name = "FireflyToggle" FireflyToggle.Parent = ExtrasFrame FireflyToggle.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) FireflyToggle.BorderColor3 = Color3.new(0.8, 0.8, 0.8) FireflyToggle.Position = UDim2.new(0, 137, 0, 280) FireflyToggle.Size = UDim2.new(0, 28, 0, 20) FireflyToggle.TextColor3 = Color3.new(1, 1, 1) FireflyToggle.Font = Enum.Font.Fantasy FireflyToggle.Text = "j" FireflyToggle.TextSize = 16 FireflyToggle.ZIndex = 7 FireflyToggle.TextWrapped = true HoneyToggleLabel.Name = "HoneyToggleLabel" HoneyToggleLabel.Parent = ExtrasFrame HoneyToggleLabel.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) HoneyToggleLabel.BorderSizePixel = 0 HoneyToggleLabel.Position = UDim2.new(0, 5, 0, 304) HoneyToggleLabel.Size = UDim2.new(0, 132, 0, 22) HoneyToggleLabel.TextColor3 = Color3.new(1, 1, 1) HoneyToggleLabel.Font = Enum.Font.Fantasy HoneyToggleLabel.Text = "Make Honey kb" HoneyToggleLabel.TextSize = 16 HoneyToggleLabel.ZIndex = 7 HoneyToggleLabel.TextWrapped = true HoneyToggle.Name = "HoneyToggle" HoneyToggle.Parent = ExtrasFrame HoneyToggle.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) HoneyToggle.BorderColor3 = Color3.new(0.8, 0.8, 0.8) HoneyToggle.Position = UDim2.new(0, 137, 0, 305) HoneyToggle.Size = UDim2.new(0, 28, 0, 20) HoneyToggle.TextColor3 = Color3.new(1, 1, 1) HoneyToggle.Font = Enum.Font.Fantasy HoneyToggle.Text = "y" HoneyToggle.TextSize = 16 HoneyToggle.ZIndex = 7 HoneyToggle.TextWrapped = true InfoScreen.Name = "InfoScreen" InfoScreen.Parent = MainFrame InfoScreen.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) InfoScreen.BorderColor3 = Color3.new(0, 1, 0) InfoScreen.Position = UDim2.new(0, 528, 0, 5) InfoScreen.Size = UDim2.new(0, 40, 0, 20) InfoScreen.BackgroundTransparency = 0 InfoScreen.Font = Enum.Font.Fantasy InfoScreen.TextColor3 = Color3.new(1, 1, 1) InfoScreen.Text = "Info" InfoScreen.TextSize = 17 InfoScreen.TextWrapped = true InfoFrame.Name = "InfoFrame" InfoFrame.Parent = MainFrame InfoFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) InfoFrame.BorderColor3 = Color3.new(0, 0, 0) InfoFrame.BackgroundTransparency = 0 InfoFrame.Position = UDim2.new(0, 437, 0, 34) InfoFrame.Size = UDim2.new(0, 200, 0, 190) InfoFrame.ZIndex = 7 InfoFrame.Visible = false InfoText1.Name = "InfoText1" InfoText1.Parent = InfoFrame InfoText1.BackgroundColor3 = Color3.new(0, 0, 0) InfoText1.BorderColor3 = Color3.new(0, 0, 0) InfoText1.BackgroundTransparency = 1 InfoText1.Position = UDim2.new(0, 5, 0, 5) InfoText1.Size = UDim2.new(0, 190, 0, 210) InfoText1.TextColor3 = Color3.new(1, 1, 1) InfoText1.Font = Enum.Font.Fantasy InfoText1.Text = "This Gui was created by LuckyMMB@V3rmillion.net\nDiscord https://discord.gg/GKzJnUC\n\nCredits:\nsirelKilla @ v3rmillion for the pollen farming script\nTechnoDaft for adding Btools and Waypoints\nnewdarkt for adding the King Beetles Lair location" InfoText1.ZIndex = 7 InfoText1.TextSize = 15 InfoText1.TextWrapped = true InfoText1.TextYAlignment = Enum.TextYAlignment.Top TimeLabel.Name = "TimeLabel" TimeLabel.Parent = MainFrame TimeLabel.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TimeLabel.BorderColor3 = Color3.new(0.15, 0.15, 0.15) TimeLabel.Position = UDim2.new(0, 573, 0, 5) TimeLabel.Size = UDim2.new(0, 60, 0, 20) TimeLabel.BackgroundTransparency = 0 TimeLabel.Font = Enum.Font.Fantasy TimeLabel.TextColor3 = Color3.new(1, 1, 1) TimeLabel.Text = "" TimeLabel.TextSize = 17 TimeLabel.TextWrapped = true SproutDetect.Name = "SproutDetect" SproutDetect.Parent = MainFrame SproutDetect.BackgroundColor3 = Color3.new(0, 0.5, 0) SproutDetect.BorderColor3 = Color3.new(0.15, 0.15, 0.15) SproutDetect.Position = UDim2.new(0, 180, 0, 33) SproutDetect.Size = UDim2.new(0, 150, 0, 35) SproutDetect.Font = Enum.Font.Fantasy SproutDetect.TextColor3 = Color3.new(1, 1, 1) SproutDetect.Text = "Sprout Detected\nDistance: " SproutDetect.TextSize = 17 SproutDetect.TextWrapped = true SproutDetect.ZIndex = 4 SproutDetect.Visible = false FireflyDetect.Name = "FireflyDetect" FireflyDetect.Parent = MainFrame FireflyDetect.BackgroundColor3 = Color3.new(0, 0, 0.5) FireflyDetect.BorderColor3 = Color3.new(0.15, 0.15, 0.15) FireflyDetect.Position = UDim2.new(0, 334, 0, 33) FireflyDetect.Size = UDim2.new(0, 150, 0, 35) FireflyDetect.Font = Enum.Font.Fantasy FireflyDetect.TextColor3 = Color3.new(1, 1, 1) FireflyDetect.Text = "Firefly's Detected\nDistance: " FireflyDetect.TextSize = 17 FireflyDetect.TextWrapped = true FireflyDetect.ZIndex = 4 FireflyDetect.Visible = false ViciousBeeDetect.Name = "ViciousBeeDetect" ViciousBeeDetect.Parent = MainFrame ViciousBeeDetect.BackgroundColor3 = Color3.new(0.5, 0, 0) ViciousBeeDetect.BorderColor3 = Color3.new(0.15, 0.15, 0.15) ViciousBeeDetect.Position = UDim2.new(0, 488, 0, 33) ViciousBeeDetect.Size = UDim2.new(0, 150, 0, 35) ViciousBeeDetect.Font = Enum.Font.Fantasy ViciousBeeDetect.TextColor3 = Color3.new(1, 1, 1) ViciousBeeDetect.Text = "Vicious Bee Detected\nDistance: " ViciousBeeDetect.TextSize = 17 ViciousBeeDetect.TextWrapped = true ViciousBeeDetect.ZIndex = 4 ViciousBeeDetect.Visible = false -- notify -- function notify(msg) game.StarterGui:SetCore('SendNotification', { Title = 'Bee Swarm LuckyGUI'; Text = msg; Duration = 5; }) end --- Close --- Close.MouseButton1Down:connect(function() MainGUI:Destroy() end) --- Menus --- local Menus = { [WayPoints] = WayPointsFrame; [ExtrasScreen] = ExtrasFrame; [InfoScreen] = InfoFrame; [PollenFarm] = FarmFrame; [Players] = PlayerFrame; } for button,frame in pairs(Menus) do button.MouseButton1Click:connect(function() if frame.Visible then frame.Visible = false return end for k,v in pairs(Menus) do v.Visible = v == frame end end) end -- Time -- spawn(function() while true do if tostring(game.Lighting.TimeOfDay) == "13:39:00" or tostring(game.Lighting.TimeOfDay) == "13:51:36" then TimeLabel.BackgroundColor3 = Color3.new(120/255, 1, 235/255) TimeLabel.BorderColor3 = Color3.new(120/255, 1, 235/255) TimeLabel.Text = "Day" TimeLabel.TextColor3 = Color3.new(0, 0, 0) else TimeLabel.BackgroundColor3 = Color3.new(59/255, 41/255, 86/255) TimeLabel.BorderColor3 = Color3.new(59/255, 41/255, 86/255) TimeLabel.Text = "Night" TimeLabel.TextColor3 = Color3.new(1, 1, 1) end wait(1) end end) --- Snow Menus Show Hide --- FindTreasures.MouseEnter:connect(function() FindTreasuresText1.Visible = true end) FindTreasures.MouseLeave:connect(function() FindTreasuresText1.Visible = false end) -- Check Health -- spawn(function() while true do if not pausehumcheck then local PlrChar = game.Players.LocalPlayer.Character local FindHum = PlrChar:FindFirstChildOfClass("Humanoid") if FindHum then plrHealth = string.format("%.0f", FindHum.Health) end end wait(0.5) end end) -- Round value to x decimal places -- function round(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / mult end -- Check for Sprout -- spawn(function() while true do sproutdistance1 = nil sproutdetected = false SproutDetect.Visible = false repeat for i,v in pairs(workspace.Particles:GetChildren()) do for x in string.gmatch(v.Name, "Sprout") do if not pausehumcheck and v.Name == "Sprout" then sproutdetected = true local player = game:GetService'Players'.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local head = character:WaitForChild'Head' local hum = player.Character.HumanoidRootPart sproutdistance = (v.Position-hum.Position).magnitude sproutdistance1 = round(sproutdistance, 2) --print("Sprout Detected. Distance: " ..tostring(sproutdistance))-- SproutDetect.Text = "Sprout Detected\nDistance: " ..tostring(sproutdistance1).. "" SproutDetect.Visible = true end end end wait(0.3) until v == nil wait(0.1) end end) -- check for fireflys -- spawn(function() while true do fireflydistance1 = nil fireflydetected = false FireflyDetect.Visible = false repeat for i,v in pairs(workspace.NPCBees:GetChildren()) do for x in string.gmatch(v.Name, "Firefly") do if not pausehumcheck and v.Name == "Firefly" then fireflydetected = true local player = game:GetService'Players'.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local head = character:WaitForChild'Head' local hum = player.Character.HumanoidRootPart firelfydistance = (v.Position-hum.Position).magnitude fireflydistance1 = round(firelfydistance, 2) --print("Fireflys Detected. Distance: " ..tostring(firelfydistance))-- FireflyDetect.Text = "Firefly Detected\nDistance: " ..tostring(fireflydistance1).. "" FireflyDetect.Visible = true end end end wait(0.4) until v == nil wait(0.1) end end) -- check for vicious bee -- spawn(function() while true do viciousdistance1 = nil viciousbeedetected = false ViciousBeeDetect.Visible = false repeat for i,v in pairs(workspace.Particles:GetChildren()) do for x in string.gmatch(v.Name, "Vicious") do if not pausehumcheck and v.Name == "Vicious" then viciousbeedetected = true local player = game:GetService'Players'.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local head = character:WaitForChild'Head' local hum = player.Character.HumanoidRootPart viciousdistance = (v.Position-hum.Position).magnitude viciousdistance1 = round(viciousdistance, 2) --print("Vicious Bee Detected. Distance: " ..tostring(viciousdistance))-- ViciousBeeDetect.Text = "Vicious Bee Detected\nDistance: " ..tostring(viciousdistance1).. "" ViciousBeeDetect.Visible = true end end end if viciousbeedetected and viciousdistance < 80 then viciousbeenear = true if viciousbeenear and not beenearmsg and not godmodeactivated then print("WARNING!! Vicious Bee Near") beenearmsg=true end else viciousbeenear = false beenearmsg = false end wait(0.5) until v == nil wait(0.1) end end) spawn(function() while true do if PollenFarmActive then if AvoidViciousActive and viciousbeenear then if not farmzoneswitched then if not switchlocationmsg then print("Vicious Bee Near. Switching to Safe Farming Zone") notify'Switching to safe Farming Zone' switchlocationmsg = true end switchingzone = true PollenFarmActive = false wait(1) if Field5AFActive then originalzone = "Clover" Field5AFActive = false Field3AFActive = true elseif Field7AFActive then originalzone = "Spider" Field7AFActive = false Field3AFActive = true elseif Field9AFActive then originalzone = "Rose" Field9AFActive = false Field3AFActive = true elseif Field11AFActive then originalzone = "Cactus" Field11AFActive = false Field3AFActive = true else originalzone = "MountainTop" Field3AFActive = true end farmzoneswitched = true switchingzone = false PollenFarmActive = true end end end wait(0.5) end end) spawn(function() while true do wait(0.5) if farmzoneswitchback then if switchlocationmsg then print("Vicious Bee has gone. Switching back to original location") notify'Switching back to original location' switchlocationmsg = false end switchingzone = true PollenFarmActive = false wait(1) if originalzone == "Clover" then Field3AFActive = false Field5AFActive = true elseif originalzone == "Spider" then Field3AFActive = false Field7AFActive = true elseif originalzone == "Rose" then Field3AFActive = false Field9AFActive = true elseif originalzone == "Cactus" then Field3AFActive = false Field11AFActive = true elseif originalzone == "MountainTop" then Field3AFActive = false end farmzoneswitched = false farmzoneswitchback = false switchingzone = false PollenFarmActive = true end end end) -- Pollen Farming -- spawn (function() while true do wait(0.5) if resethive then print("Waiting 35 seconds before AutoFarm resumes") wait(35) resethive = false PollenFarmActive = true end if PollenFarmActive then local player = game:GetService("Players").LocalPlayer while player == nil do wait(0.5) end local root = player.Character.HumanoidRootPart if farmzoneswitched and not viciousbeedetected then PollenFarmActive = false farmzoneswitchback = true end player = game:GetService("Players").LocalPlayer local currp player.Character.Humanoid.Died:connect(function() resethive = true PollenFarmActive = false print("Player: " ..tostring(player.Name).. " has died") end) local pollenLbl = player.Character:FindFirstChild("ProgressLabel",true) if not pollenLbl then print("Backpack not found") end local maxpollen = tonumber(pollenLbl.Text:match("%d+$")) local pollenTool = player.Character:FindFirstChildOfClass("Tool") or player.Backpack:FindFirstChildOfClass("Tool") if pollenTool==nil or pollenTool:FindFirstChild("ClickEvent")==nil then print("Tool not found") end --print("Backpack size: " .. maxpollen) if PollenFarmActive then if Field1AFActive == true then fieldpos = {Vector3.new(-204,3.4,142),Vector3.new(-210,3.4,174),Vector3.new(-210,3.4,200)} print("Farming Sunflower Field") elseif Field2AFActive == true then fieldpos = {Vector3.new(-98, 3.4, 129),Vector3.new(-80, 3.35, 129)} print("Farming Mushroom Field") elseif Field3AFActive == true then fieldpos = {Vector3.new(-70.35,3.4,219),Vector3.new(-35,3.4,219),Vector3.new(0,3.4,219)} print("Farming Dandelion Field") elseif Field4AFActive == true then fieldpos = {Vector3.new(100,3.4,96),Vector3.new(140,3.4,96),Vector3.new(185,3.4,96)} print("Farming Blue Flower Field") elseif Field5AFActive == true then fieldpos = {Vector3.new(179,32.9,216),Vector3.new(160,32.9,189),Vector3.new(138,32.9,167)} print("Farming Clover Field") elseif Field6AFActive == true then fieldpos = {Vector3.new(-193,19.4,11),Vector3.new(-181,19.4,-10),Vector3.new(-162,19.4,-29)} print("Farming StrawBerry Field") elseif Field7AFActive == true then fieldpos = {Vector3.new(-73,19.4,2),Vector3.new(-44,19.4,-21),Vector3.new(-16,19.4,7)} print("Farming Spider Field") elseif Field8AFActive == true then fieldpos = {Vector3.new(92.9,20,-25.6),Vector3.new(132.9,20,-25.6),Vector3.new(172.9,20,-25.6)} print("Farming BamBoo Field") elseif Field9AFActive == true then fieldpos = {Vector3.new(-300,20,129),Vector3.new(-322.835,20,129),Vector3.new(-350,20,129)} print("Farming Rose Field") elseif Field10AFActive == true then fieldpos = {Vector3.new(-310.1,65.5,-128.1),Vector3.new(-310.1,65.5,-168.1),Vector3.new(-310.1,65.5,-208.1)} print("Farming Pine Tree Forest") elseif Field11AFActive == true then fieldpos = {Vector3.new(-159.5,68,-101.5),Vector3.new(-194.5,68,-112.5),Vector3.new(-229.5,68,-101.5)} print("Farming Cactus Field") elseif Field12AFActive == true then fieldpos = {Vector3.new(-169,67,-183.8),Vector3.new(-186.5,67,-186.8),Vector3.new(-222,67,-183.8)} print("Farming Pumpkin Patch") elseif Field13AFActive == true then fieldpos = {Vector3.new(285.3,70.2,-200),Vector3.new(260.3,70.2,-220),Vector3.new(225.3,70.2,-200)} print("Farming Pineapple Patch") elseif Field14AFActive == true then fieldpos = {Vector3.new(93.2, 175.35, -188.49),Vector3.new(93.2, 175.35, -141.98),Vector3.new(59.12, 175.35, -141.98),Vector3.new(59.12, 175.35, -188.49)} print("Farming Mountain Top Field") else if maxpollen < 9999 then fieldpos = {Vector3.new(-220,3.3,220),Vector3.new(-220,4,180),Vector3.new(-220,4,140),Vector3.new(-220,4,100),Vector3.new(-190,4,126),Vector3.new(-190, 4, 166),Vector3.new(-190, 4, 206)} print("Farming Sunflower Field") else fieldpos = {Vector3.new(93.2, 175.35, -188.49),Vector3.new(93.2, 175.35, -141.98),Vector3.new(59.12, 175.35, -141.98),Vector3.new(59.12, 175.35, -188.49)} print("Farming Mountain Top Field") end end end --collect pollen --print("Farming pollen") local posIndex = 0 pollenTool.Parent = player.Character workspace.Collectibles.ChildAdded:Connect(function(part) if PollenFarmActive then local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart if tostring(part) == tostring(game.Players.LocalPlayer.Name) or tostring(part) == "C" then -- print("token position: " ..tostring(part.Position)) -- -- print("player position: " ..tostring(root.Position)) -- -- print("Distance: " ..tostring((part.Position - root.Position).magnitude)) -- if currp and (part.Position-root.Position).magnitude <= 60 then root.CFrame = CFrame.new(part.Position.x, root.Position.y, part.Position.z) wait(0.07) root.CFrame = CFrame.new(currp) wait(0.05) end end end end) wait(0.1) while PollenFarmActive and tonumber(player.CoreStats.Pollen.Value) < tonumber(maxpollen) do wait(0.05) posIndex=posIndex+1 if posIndex>#fieldpos then posIndex=1 end for rot=1,4 do local angle = CFrame.Angles(0,math.pi*.5*rot,0) currp = fieldpos[posIndex]+angle.lookVector*10 local newrootpos = CFrame.new(currp)*angle root.CFrame = newrootpos for i=1,25 do if farmzoneswitched and not viciousbeedetected then PollenFarmActive = false farmzoneswitchback = true end if not PollenFarmActive then break end wait(0.2) pollenTool.ClickEvent:FireServer(currp) end player = game:GetService("Players").LocalPlayer if tonumber(player.CoreStats.Pollen.Value+1) > tonumber(maxpollen) then print("Total Honey: " ..tostring(player.CoreStats.Honey.Value).. ". Bag Full: " ..tostring(player.CoreStats.Pollen.Value)) break end end end -- turn pollen to honey -- currp = nil --print("Teleporting back to Hive to make Honey") wait(0.1) game:GetService("Players").LocalPlayer.Character:MoveTo(game:GetService("Players").LocalPlayer.SpawnPos.Value.p) if not switchingzone then wait(1) game:GetService("ReplicatedStorage").Events.PlayerHiveCommand:FireServer("ToggleHoneyMaking") if PollenFarmActive then repeat wait(0.5) until game:GetService("Players").LocalPlayer.CoreStats.Pollen.Value < 1 wait(8) end end end end end) -- Trigger Wealth Clock every 30 minutes -- WealthClockToggle.MouseButton1Click:connect(function() if WealthClockActive ~= true then WealthClockActive = true notify'Wealth Clock Started' print("Wealth Clock Started. The Wealth Clock will be triggered every 30 minutes.") WealthClockToggle.BackgroundColor3 = Color3.new(0.5, 0, 0) WealthClockToggle.Text = "Wealth Clock: ON" else WealthClockActive = false notify'Wealth Clock Stopped' WealthClockToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) WealthClockToggle.Text = "Wealth Clock: OFF" end end) spawn(function() while true do if WealthClockActive then while WealthClockActive do game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Wealth Clock") print("Wealth Clock activated") wcwaittime = 1830 repeat WealthClockToggle.Text = "Wealth Clock: " ..tostring(wcwaittime).. "sec" wait(1) wcwaittime = wcwaittime - 1 until wcwaittime == 0 or not WealthClockActive end end wait(1) end end) -- Trigger Field Boosts every 2 hours -- FieldBoostToggle.MouseButton1Click:connect(function() if FieldBoostActive ~= true then FieldBoostActive = true notify'Auto Field Boost Started' print("Auto Field Boost Started. Field Boosts will be triggered every 2 hours.") FieldBoostToggle.BackgroundColor3 = Color3.new(0.5, 0, 0) FieldBoostToggle.Text = "Auto Field Boost: ON" else FieldBoostActive = false notify'Auto Field Boost Stopped' FieldBoostToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) FieldBoostToggle.Text = "Auto Field Boost: OFF" end end) spawn(function() while true do if FieldBoostActive then while FieldBoostActive do print("Field Boosts activated") game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Red Field Booster") wait(0.5) game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Blue Field Booster") wait(0.5) game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Field Booster") fbwaittime = 7259 repeat FieldBoostToggle.Text = "Field Boosts: " ..tostring(fbwaittime).. "sec" wait(1) fbwaittime = fbwaittime - 1 until fbwaittime == 0 or not FieldBoostActive end end wait(1) end end) -- Trigger Treats every 4 hours -- TreatToggle.MouseButton1Click:connect(function() if TreatActive ~= true then TreatActive = true notify'Auto Treats Started' print("Treats will be given every 1 hour (4 hours for Blueberry and Strawberry).") TreatToggle.BackgroundColor3 = Color3.new(0.5, 0, 0) TreatToggle.Text = "Auto Treats: ON" else TreatActive = false notify'Auto Treats Stopped' TreatToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) TreatToggle.Text = "Auto Treats: OFF" end end) spawn(function() while true do if TreatActive then while TreatActive do print("Strawberry and Blueberry Treats given") game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Blueberry Dispenser") wait(0.5) game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Strawberry Dispenser") ttwaittime = 14600 repeat TreatToggle.Text = "Auto Treats: " ..tostring(ttwaittime).. "sec" wait(1) ttwaittime = ttwaittime - 1 until ttwaittime == 0 or not TreatActive end end wait(1) end end) spawn(function() while true do if TreatActive then while TreatActive do print("Treats given") game:GetService("ReplicatedStorage").Events.ToyEvent:FireServer("Treat Dispenser") tdwaittime = 3660 repeat wait(1) tdwaittime = tdwaittime - 1 until tdwaittime == 0 or not TreatActive end end wait(1) end end) --- WayPoints --- local WayPoints = { ["Black Bear"] = CFrame.new(-258.1, 5, 299.7), ["Brown Bear"] = CFrame.new(282, 46, 236), ["Panda Bear"] = CFrame.new(106.3, 35, 50.1), ["Polar Bear"] = CFrame.new(-106, 119, -77), ["Science Bear"] = CFrame.new(267, 103, 20), ["Traveling Bear"] = CFrame.new(23.9, 14, 359.9), ["Mother Bear"] = CFrame.new(-183.8, 4.6, 87.5), ["Tunnel Bear"] = CFrame.new(507.3, 5.7, -45.7), ["Sun Bear"] = CFrame.new(23.25, 14, 360.26), ["Redfield Boost"] = CFrame.new(-332, 20, 244), ["Bluefield Boost"] = CFrame.new(319, 58, 103), ["MountainTop Boost"] = CFrame.new(-40, 176, -191.7), ["Red Cannon (22)"] = CFrame.new(-240, 17, 345), ["Blue Cannon (16)"] = CFrame.new(-287, 73, 22), ["Yellow Cannon (12)"] = CFrame.new(266, 109, -25), ["Slingshot (8)"] = CFrame.new(78, 23, 149), ["Bee Shop"] = CFrame.new(-136.8, 4.6, 243.4), ["Tool Shop"] = CFrame.new(86, 4.6, 294), ["Tool Shop 2"] = CFrame.new(165, 69, -161), ["MountainTop Shop"] = CFrame.new(-18, 176, -137), ["Ticket Tent"] = CFrame.new(-234, 17, 398), ["Red Clubhouse"] = CFrame.new(-334, 21, 216), ["Blue Clubhouse"] = CFrame.new(292, 4, 98), ["Ticket Shop"] = CFrame.new(-12.8, 184, -222.2), ["Club Honey"] = CFrame.new(44.8, 5, 319.6), ["RoyalJelly Shop"] = CFrame.new(-297, 53, 68), ["Ticket RoyalJelly Shop"] = CFrame.new(81, 18, 240), ["Honeystorm Dispensor"] = CFrame.new(238.4, 33.3, 165.6), ["Blueberry Dispenser"] = CFrame.new(313.3, 58, 86.9), ["Strawberry Dispenser"] = CFrame.new(-320.5, 46, 272.5), ["Sprout Dispenser"] = CFrame.new(-269.26, 26.56, 267.31), ["Instant Honey Convertor"] = CFrame.new(282, 68, -62), ["King Beetles Lair"] = CFrame.new(218, 3, 140), ["Clover Field"] = CFrame.new(174, 34, 189), ["Mushroom Field"] = CFrame.new(-258.1, 5, 299.7), ["Spider Field"] = CFrame.new(-57.2, 20, -5.3), ["Blue Field"] = CFrame.new(113.7, 4, 101.5), ["Sunflower Field"] = CFrame.new(-208, 4, 185), ["StrawBerry Field"] = CFrame.new(-169.3, 20, -3.2), ["Red Field"] = CFrame.new(-258.1, 5, 299.7), ["Dandelion Field"] = CFrame.new(-30, 4, 225), ["BamBoo Field"] = CFrame.new(93, 20, -25), ["Rose Field"] = CFrame.new(-322, 20, 124), ["Mushroom Field"] = CFrame.new(-94, 5, 116), ["Cactus Field"] = CFrame.new(-194, 68, -107), ["Pumpkin Field"] = CFrame.new(-194, 68, -182), ["MountainTop Field"] = CFrame.new(76, 176, -181), ["PineTree Field"] = CFrame.new(-318, 68, -150), ["Pineapple Field"] = CFrame.new(262, 68, -201), ["Onett"] = CFrame.new(-8.4, 234, -517.9), ["Gumdrop Dispenser"] = CFrame.new(63, 20.7, 38.7), ["Treat Dispenser"] = CFrame.new(193.9, 68, -123), ["Treat Shop"] = CFrame.new(-228.2, 5, 89.4), ["Star Hut"] = CFrame.new(135.9, 64.6, 322.1), ["Wealth Clock"] = CFrame.new(310.5, 47.6, 190), ["Ant Challenge"] = CFrame.new(90.6, 32.6, 501) } ReturnToHive.MouseButton1Down:connect(function() local player = game:GetService("Players").LocalPlayer player.Character:MoveTo(player.SpawnPos.Value.p) WayPointsFrame.Visible = false notify'Teleported to Hive' end) BlackBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Black Bear"] WayPointsFrame.Visible = false notify'Teleported to Black Bear' end) BrownBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Brown Bear"] WayPointsFrame.Visible = false notify'Teleported to Brown Bear' end) PandaBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Panda Bear"] WayPointsFrame.Visible = false notify'Teleported to Panda Bear' end) PolarBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Polar Bear"] WayPointsFrame.Visible = false notify'Teleported to Polar Bear' end) ScienceBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Science Bear"] WayPointsFrame.Visible = false notify'Teleported to Science Bear' end) TravelingBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Traveling Bear"] WayPointsFrame.Visible = false notify'Teleported to Traveling Bear' end) MotherBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Mother Bear"] WayPointsFrame.Visible = false notify'Teleported to Mother Bear' end) TunnelBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Tunnel Bear"] WayPointsFrame.Visible = false notify'Teleported to Tunnel Bear' end) SunBear.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Sun Bear"] WayPointsFrame.Visible = false notify'Teleported to Sun Bear' end) RedBoost.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Redfield Boost"] WayPointsFrame.Visible = false notify'Teleported to RedField Booster' end) BlueBoost.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Bluefield Boost"] WayPointsFrame.Visible = false notify'Teleported to BlueField Booster' end) MountainBoost.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["MountainTop Boost"] WayPointsFrame.Visible = false notify'Teleported to MountainTop Boost' end) RedCannon.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Red Cannon (22)"] WayPointsFrame.Visible = false notify'Teleported to Red Cannon (22)' end) BlueCannon.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Blue Cannon (16)"] WayPointsFrame.Visible = false notify'Teleported to Blue Cannon (16)' end) YellowCannon.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Yellow Cannon (12)"] WayPointsFrame.Visible = false notify'Teleported to Yellow Cannon (12)' end) Slingshot.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Slingshot (8)"] WayPointsFrame.Visible = false notify'Teleported to Slingshot (8)' end) BeeShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Bee Shop"] WayPointsFrame.Visible = false notify'Teleported to Bee Shop' end) TPShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Tool Shop"] WayPointsFrame.Visible = false notify'Teleported to Basic Tool Shop' end) TPShop2.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Tool Shop 2"] WayPointsFrame.Visible = false notify'Teleported to Advanced Tool Shop' end) MountainTopShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["MountainTop Shop"] WayPointsFrame.Visible = false notify'Teleported to MountainTop Shop' end) TentShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Ticket Tent"] WayPointsFrame.Visible = false notify'Teleported to Ticket Tent Shop' end) RedClubhouse.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Red Clubhouse"] WayPointsFrame.Visible = false notify'Teleported to Red ClubHouse' end) BlueClubhouse.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Blue Clubhouse"] WayPointsFrame.Visible = false notify'Teleported to Blue ClubHouse' end) TicketShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Ticket Shop"] WayPointsFrame.Visible = false notify'Teleported to Ticket Dispenser' end) ClubHoney.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Club Honey"] WayPointsFrame.Visible = false notify'Teleported to Club Honey Dispenser' end) RoyalJellyShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["RoyalJelly Shop"] WayPointsFrame.Visible = false notify'Teleported to RoyalJelly Shop' end) TicketRoyalJelly.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Ticket RoyalJelly Shop"] WayPointsFrame.Visible = false notify'Teleported to Ticket Royal Jelly Shop' end) Honeystorm.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Honeystorm Dispensor"] WayPointsFrame.Visible = false notify'Teleported to Honeystorm' end) HoneyConvertor.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Instant Honey Convertor"] WayPointsFrame.Visible = false notify'Teleported to Instant Honey Convertor' end) TreatDispenser.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Treat Dispenser"] WayPointsFrame.Visible = false notify'Teleported to Treat Dispenser' end) SproutDispenser.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Sprout Dispenser"] WayPointsFrame.Visible = false notify'Teleported to Sprout Dispenser' end) KingbeetlesLair.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["King Beetles Lair"] WayPointsFrame.Visible = false notify'Teleported to King Beetles Lair' end) MushRoomField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Mushroom Field"] WayPointsFrame.Visible = false notify'Teleported to Mushroom Field' end) StrawBerryField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["StrawBerry Field"] WayPointsFrame.Visible = false notify'Teleported to StrawBerry Field' end) CloverField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Clover Field"] WayPointsFrame.Visible = false notify'Teleported to Clover Field' end) SpiderField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Spider Field"] WayPointsFrame.Visible = false notify'Teleported to Spider Field' end) BlueField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Blue Field"] WayPointsFrame.Visible = false notify'Teleported to Blue Field' end) SunflowerField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Sunflower Field"] WayPointsFrame.Visible = false notify'Teleported to Sunflower Field' end) DandelionField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Dandelion Field"] WayPointsFrame.Visible = false notify'Teleported to Dandelion Field' end) BamBooField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["BamBoo Field"] WayPointsFrame.Visible = false notify'Teleported to BamBoo Field' end) RoseField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Rose Field"] WayPointsFrame.Visible = false notify'Teleported to Rose Field' end) CactusField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Cactus Field"] WayPointsFrame.Visible = false notify'Teleported to BamBoo Field' end) PumpkinField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Pumpkin Field"] WayPointsFrame.Visible = false notify'Teleported to BamBoo Field' end) PineTreeField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["PineTree Field"] WayPointsFrame.Visible = false notify'Teleported to BamBoo Field' end) MountainTopField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["MountainTop Field"] WayPointsFrame.Visible = false notify'Teleported to Mountain Top Field' end) PineappleField.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Pineapple Field"] WayPointsFrame.Visible = false notify'Teleported to Pineapple Field' end) GumdropDispenser.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Gumdrop Dispenser"] WayPointsFrame.Visible = false notify'Teleported to Gumdrop Dispenser' end) TreatShop.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Treat Shop"] WayPointsFrame.Visible = false notify'Teleported to Treat Shop' end) WealthClock.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Wealth Clock"] WayPointsFrame.Visible = false notify'Teleported to Wealth Clock' end) StarHut.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Star Hut"] WayPointsFrame.Visible = false notify'Teleported to Star Hut' end) Onett.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Onett"] WayPointsFrame.Visible = false notify'Teleported to Onett' end) AntChallenge.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Ant Challenge"] WayPointsFrame.Visible = false notify'Teleported to Ant Challenge' end) BlueberryDispenser.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Blueberry Dispenser"] WayPointsFrame.Visible = false notify'Teleported to Blueberry Dispenser' end) StrawberryDispenser.MouseButton1Down:connect(function() local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = WayPoints["Strawberry Dispenser"] WayPointsFrame.Visible = false notify'Teleported to Strawberry Dispenser' end) -- Show Location -- spawn (function() while true do if not pausehumcheck then local player = game:GetService'Players'.LocalPlayer local character = player.Character or player.CharacterAdded:wait() local head = character:WaitForChild'Head' local hum = player.Character.HumanoidRootPart LocationX = round(hum.Position.x, 1) LocationY = round(hum.Position.y, 1) LocationZ = round(hum.Position.z, 1) ShowLocation.Text = "Coords: "..LocationX..", "..LocationY..", "..LocationZ end wait(0.5) end end) SetLocation.MouseButton1Down:connect(function() setlocationx = round(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.x, 0) setlocationy = round(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y, 0) setlocationz = round(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.z, 0) print("Set Custom Location: "..setlocationx..", "..setlocationy..", "..setlocationz) SetLocation.Text = "Set: " ..setlocationx..","..setlocationy..","..setlocationz CustomLocationSet = true end) --- TP to custom location --- TPLocation.MouseButton1Down:connect(function() if CustomLocationSet and not pausehumcheck then local uTorso = workspace:WaitForChild(game.Players.LocalPlayer.Name).HumanoidRootPart uTorso.CFrame = CFrame.new(setlocationx, setlocationy, setlocationz) end end) --- Player Teleport --- local buttons = { Player1, Player2, Player3, Player4, Player5 } spawn (function() while true do Player1.Text = "" Player2.Text = "" Player3.Text = "" Player4.Text = "" Player5.Text = "" for i, v in pairs(game.Players:GetChildren()) do buttons[i].Text = v.Name buttons[i].Visible = true end wait(0.5) end end) Player1.MouseButton1Down:connect(function() PlyrSel.Text = Player1.Text end) Player2.MouseButton1Down:connect(function() PlyrSel.Text = Player2.Text end) Player3.MouseButton1Down:connect(function() PlyrSel.Text = Player3.Text end) Player4.MouseButton1Down:connect(function() PlyrSel.Text = Player4.Text end) Player5.MouseButton1Down:connect(function() PlyrSel.Text = Player5.Text end) TpPlayer.MouseButton1Down:connect(function() if PlyrSel.Text == "SELECT A PLAYER" then warn("No Player Selected") else game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace[PlyrSel.Text].HumanoidRootPart.CFrame end end) -- Find Hidden Treasures -- FindTreasures.MouseButton1Down:connect(function() local player = game:GetService("Players").LocalPlayer local function collecttreasure(treasure) for i,v in ipairs(treasure:GetChildren()) do if v.Parent then player.Character:MoveTo(v.Position) end wait(1) end end collecttreasure(workspace.TreasureCollectibles) wait(1) player.Character:MoveTo(player.SpawnPos.Value.p) end) --- NoClip --- noclip = false NoClip.MouseButton1Down:connect(function() noclip = not noclip if noclip then NoClip.Text = "NoClip Mode: ON" NoClip.BackgroundColor3 = Color3.new(0.5, 0, 0) else NoClip.Text = "NoClip Mode: OFF" NoClip.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) end end) game:GetService('RunService').Stepped:connect(function() if noclip then game.Players.LocalPlayer.Character.Humanoid:ChangeState(11) end end) --- TP Tool --- TPTool.MouseButton1Down:connect(function() local Tele = Instance.new("Tool", game.Players.LocalPlayer.Backpack) Tele.RequiresHandle = false Tele.RobloxLocked = true Tele.Name = "TPTool" Tele.ToolTip = "Teleport Tool" Tele.Equipped:connect(function(Mouse) Mouse.Button1Down:connect(function() if Mouse.Target then game.Workspace:FindFirstChild(game.Players.LocalPlayer.Name).HumanoidRootPart.CFrame = (CFrame.new(Mouse.Hit.x, Mouse.Hit.y + 5, Mouse.Hit.z)) end end) end) notify'TP Tool added to your Backpack' end) --- Builder Tool --- BTool.MouseButton1Down:connect(function() local tool1 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack) local tool2 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack) local tool3 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack) local tool4 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack) local tool5 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack) tool1.BinType = "Clone" tool2.BinType = "GameTool" tool3.BinType = "Hammer" tool4.BinType = "Script" tool5.BinType = "Grab" notify'BTools added to your Backpack' end) --- Pollen Farm --- StartFarm.MouseButton1Click:connect(function() if PollenFarmActive ~= true then PollenFarmActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Started' else PollenFarmActive = false Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false farmzoneswitched = false resethive = false print("Pollen Farming Ended") notify'Pollen Farming Ended' StartFarm.Text = "Pollen Farm: OFF" PollenFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StartFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) local player = game:GetService("Players").LocalPlayer currp=nil player.Character:MoveTo(player.SpawnPos.Value.p) end end) Field1AF.MouseButton1Down:connect(function() PollenFarmActive = true Field1AFActive = true Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 1 Started' WayPointsFrame.Visible = false end) Field2AF.MouseButton1Down:connect(function() PollenFarmActive = true Field2AFActive = true Field1AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 2 Started' WayPointsFrame.Visible = false end) Field3AF.MouseButton1Down:connect(function() PollenFarmActive = true Field3AFActive = true Field1AFActive = false Field2AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 3 Started' WayPointsFrame.Visible = false end) Field4AF.MouseButton1Down:connect(function() PollenFarmActive = true Field4AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 4 Started' WayPointsFrame.Visible = false end) Field5AF.MouseButton1Down:connect(function() PollenFarmActive = true Field5AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 5 Started' WayPointsFrame.Visible = false end) Field6AF.MouseButton1Down:connect(function() PollenFarmActive = true Field6AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 6 Started' WayPointsFrame.Visible = false end) Field7AF.MouseButton1Down:connect(function() PollenFarmActive = true Field7AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 7 Started' WayPointsFrame.Visible = false end) Field8AF.MouseButton1Down:connect(function() PollenFarmActive = true Field8AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 8 Started' WayPointsFrame.Visible = false end) Field9AF.MouseButton1Down:connect(function() PollenFarmActive = true Field9AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 9 Started' WayPointsFrame.Visible = false end) Field10AF.MouseButton1Down:connect(function() PollenFarmActive = true Field10AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 10 Started' WayPointsFrame.Visible = false end) Field11AF.MouseButton1Down:connect(function() PollenFarmActive = true Field11AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field12AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 11 Started' WayPointsFrame.Visible = false end) Field12AF.MouseButton1Down:connect(function() PollenFarmActive = true Field12AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field13AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 12 Started' WayPointsFrame.Visible = false end) Field13AF.MouseButton1Down:connect(function() PollenFarmActive = true Field13AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field14AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 13 Started' WayPointsFrame.Visible = false end) Field14AF.MouseButton1Down:connect(function() PollenFarmActive = true Field14AFActive = true Field1AFActive = false Field2AFActive = false Field3AFActive = false Field4AFActive = false Field5AFActive = false Field6AFActive = false Field7AFActive = false Field8AFActive = false Field9AFActive = false Field10AFActive = false Field11AFActive = false Field12AFActive = false Field13AFActive = false resethive = false switchlocationmsg = false StartFarm.Text = "Pollen Farm: ON" PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) notify'Pollen Farming Zone 14 Started' WayPointsFrame.Visible = false end) -- Avoid Vicious Bee -- AvoidViciousBee.MouseButton1Click:connect(function() if AvoidViciousActive ~= true then AvoidViciousActive = true AvoidViciousBee.BackgroundColor3 = Color3.new(0.5, 0, 0) AvoidViciousBee.Text = "Avoid Vicious Bee: ON" else AvoidViciousActive = false AvoidViciousBee.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) AvoidViciousBee.Text = "Avoid Vicious Bee: OFF" end end) -- Hunt Vicious Bee -- HuntViciousBee.MouseButton1Click:connect(function() if HuntViciousActive ~= true then HuntViciousActive = true HuntViciousBee.BackgroundColor3 = Color3.new(0.5, 0, 0) HuntViciousBee.Text = "Hunt Vicious Bee: ON" ExtrasScreen.BackgroundColor3 = Color3.new(0.5, 0, 0) else HuntViciousActive = false HuntViciousBee.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) HuntViciousBee.Text = "Hunt Vicious Bee: OFF" ExtrasScreen.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) end end) spawn(function() while true do wait(1) if HuntViciousActive and viciousbeedetected then print("Vicous Bee has Appeared. Hunting Time!!") notify'Vicous Bee has Appeared. Hunting Time!!' if AvoidViciousActive then AvoidTempOFF = true AvoidViciousActive = false AvoidViciousBee.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) AvoidViciousBee.Text = "Avoid ViciousBee: OFF" end if PollenFarmActive then FarmTempOFF = true PollenFarmActive = false StartFarm.Text = "Pollen Farm: OFF" PollenFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StartFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) end print("God Mode activated. After defeating the bee you will respawn to exit God Mode.") God.BackgroundColor3 = Color3.new(0.5, 0, 0) God.Text = "God Mode: ON" GodModeActive = true game.Players.LocalPlayer.Character.Humanoid.Name = 1 local l = game.Players.LocalPlayer.Character["1"]:Clone() l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid" wait(0.1) game.Players.LocalPlayer.Character["1"]:Destroy() game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character.Animate.Disabled = true wait(0.1) game.Players.LocalPlayer.Character.Animate.Disabled = false game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None" godmodeactivated = true wait(1) local hum = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart for i,v in pairs(workspace.Particles:GetChildren()) do for x in string.gmatch(v.Name, "Vicious") do while HuntViciousActive and viciousbeedetected do if v.Name == "Vicious" then hum.CFrame = CFrame.new(v.Position.x, v.Position.y, v.Position.z) wait(1) end end end end wait(1) location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame pausehumcheck = true wait() local prt = Instance.new("Model", workspace); Instance.new("Part", prt).Name="Torso"; Instance.new("Part", prt).Name="Head"; Instance.new("Humanoid", prt).Name="Humanoid"; game.Players.LocalPlayer.Character=prt God.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) God.Text = "God Mode: OFF" GodModeActive = false wait(6) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = location pausehumcheck = false if AvoidTempOFF then AvoidTempOFF = false AvoidViciousBee.BackgroundColor3 = Color3.new(0.5, 0, 0) AvoidViciousBee.Text = "Avoid ViciousBee: ON" AvoidViciousActive = true end if FarmTempOFF then FarmTempOFF = false PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.Text = "Pollen Farm: ON" PollenFarmActive = true end end end end) -- Farm Sprouts -- SproutFarmToggle.MouseButton1Click:connect(function() if SproutFarmActive ~= true then SproutFarmActive = true SproutFarmToggle.BackgroundColor3 = Color3.new(0.5, 0, 0) SproutFarmToggle.Text = "Farm Sprout: ON" ExtrasScreen.BackgroundColor3 = Color3.new(0.5, 0, 0) else SproutFarmActive = false SproutFarmToggle.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) SproutFarmToggle.Text = "Farm Sprout: OFF" ExtrasScreen.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) end end) spawn(function() while true do startpos = nil wait(1) if SproutFarmActive and sproutdetected then player = game:GetService("Players").LocalPlayer local pollenLbl = player.Character:FindFirstChild("ProgressLabel",true) if not pollenLbl then print("Backpack not found") end local maxpollen = tonumber(pollenLbl.Text:match("%d+$")) print("A Sprout has Appeared. Farming Time!!") notify'A Sprout has Appeared. Farming Time!!' if PollenFarmActive then FarmTempOFF = true PollenFarmActive = false StartFarm.Text = "Pollen Farm: OFF" PollenFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) StartFarm.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) wait(1) end while SproutFarmActive and sproutdetected do if viciousbeenear and not godmodeactivated or tonumber(plrHealth) <= 30 and not godmodeactivated then print("God Mode activated.") God.BackgroundColor3 = Color3.new(0.5, 0, 0) God.Text = "God Mode: ON" GodModeActive = true game.Players.LocalPlayer.Character.Humanoid.Name = 1 local l = game.Players.LocalPlayer.Character["1"]:Clone() l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid" wait(0.1) game.Players.LocalPlayer.Character["1"]:Destroy() game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character.Animate.Disabled = true wait(0.1) game.Players.LocalPlayer.Character.Animate.Disabled = false game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None" godmodeactivated = true wait(1) end local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart for i,v in pairs(workspace.Particles:GetChildren()) do for x in string.gmatch(v.Name, "Sprout") do if v.Name == "Sprout" then if SproutFarmActive and sproutdetected then if not sproutsafety then local setstartpos = root.CFrame for a = 1, 120 do root.CFrame = v.CFrame * CFrame.new(0, 30, 0) wait(0.1) end wait(1) root.CFrame = v.CFrame * CFrame.new(3, 10, 3) wait(1) local startpos = root.CFrame AutoDigActive = true sproutsafety = true sproutstarted = true end end end end end workspace.Collectibles.ChildAdded:Connect(function(part) if SproutFarmActive and sproutstarted then local rootpos = root.CFrame if tostring(part) == tostring(game.Players.LocalPlayer.Name) or tostring(part) == "C" then if (part.Position-root.Position).magnitude <= 80 then root.CFrame = CFrame.new(part.Position.x, root.Position.y, part.Position.z) wait(0.07) root.CFrame = rootpos wait(0.05) end end end end) if tonumber(player.CoreStats.Pollen.Value+1) > tonumber(maxpollen) then print("Bag Full: " ..tostring(player.CoreStats.Pollen.Value)) SproutFarmActive = false wait(0.1) game:GetService("Players").LocalPlayer.Character:MoveTo(game:GetService("Players").LocalPlayer.SpawnPos.Value.p) wait(1) game:GetService("ReplicatedStorage").Events.PlayerHiveCommand:FireServer("ToggleHoneyMaking") repeat wait(0.5) until game:GetService("Players").LocalPlayer.CoreStats.Pollen.Value < 1 wait(4) SproutFarmActive = true end wait(2) root.CFrame = startpos end print("Finished farming Sprout") wait(20) AutoDigActive = false sproutstarted = false if godmodeactivated then location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame pausehumcheck = true wait() local prt = Instance.new("Model", workspace); Instance.new("Part", prt).Name="Torso"; Instance.new("Part", prt).Name="Head"; Instance.new("Humanoid", prt).Name="Humanoid"; game.Players.LocalPlayer.Character=prt wait(6) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = location godmodeactivated = false pausehumcheck = false God.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) God.Text = "God Mode: OFF" GodModeActive = false end if FarmTempOFF then FarmTempOFF = false PollenFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.BackgroundColor3 = Color3.new(0.5, 0, 0) StartFarm.Text = "Pollen Farm: ON" PollenFarmActive = true end sproutsafety = false root.CFrame = rootpos end end end) -- God Mode -- God.MouseButton1Click:connect(function() if GodModeActive ~= true then GodModeActive = true God.BackgroundColor3 = Color3.new(0.5, 0, 0) God.Text = "God Mode: ON" game.Players.LocalPlayer.Character.Humanoid.Name = 1 local l = game.Players.LocalPlayer.Character["1"]:Clone() l.Parent = game.Players.LocalPlayer.Character l.Name = "Humanoid" wait(0.1) game.Players.LocalPlayer.Character["1"]:Destroy() game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character game.Players.LocalPlayer.Character.Animate.Disabled = true wait(0.1) game.Players.LocalPlayer.Character.Animate.Disabled = false game.Players.LocalPlayer.Character.Humanoid.DisplayDistanceType = "None" else GodModeActive = false God.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) God.Text = "God Mode: OFF" location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame --pausehumcheck = true wait() local prt = Instance.new("Model", workspace); Instance.new("Part", prt).Name="Torso"; Instance.new("Part", prt).Name="Head"; Instance.new("Humanoid", prt).Name="Humanoid"; game.Players.LocalPlayer.Character=prt wait(6) game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = location --pausehumcheck = false end end) -- Auto Dig -- AutoDig.MouseButton1Click:connect(function() if AutoDigActive ~= true then AutoDigActive = true AutoDig.BackgroundColor3 = Color3.new(0.5, 0, 0) else AutoDigActive = false notify'Auto Dig Stopped' AutoDig.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) end end) spawn(function() while true do wait(1) if AutoDigActive then local player = game:GetService("Players").LocalPlayer local pollenTool = player.Character:FindFirstChildOfClass("Tool") or player.Backpack:FindFirstChildOfClass("Tool") if pollenTool==nil or pollenTool:FindFirstChild("ClickEvent")==nil then AutoDigActive = false AutoDig.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1) print("Tool not found") else pollenTool.Parent = player.Character while AutoDigActive do wait(0.05) pollenTool.ClickEvent:FireServer(CFrame.new()) end end end end end) --- ReJoin Server --- ReJoinServer.MouseButton1Down:connect(function() local placeId = 1537690962 game:GetService("TeleportService"):Teleport(placeId) end) -- Auto Token Gather -- mouse.KeyDown:connect(function(key) if key == TokenToggle.Text then if not tokenfarmactive then tokenfarmactive = true notify'Auto Token Gather Enabled' else tokenfarmactive = false notify'Auto Token Gather Disabled' end end end) spawn(function() while true do wait(0.5) if tokenfarmactive then workspace.Collectibles.ChildAdded:Connect(function(part) if tokenfarmactive then local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart local rootpos = root.CFrame if tostring(part) == tostring(game.Players.LocalPlayer.Name) or tostring(part) == "C" then -- print("token position: " ..tostring(part.Position)) -- -- print("player position: " ..tostring(root.Position)) -- -- print("Distance: " ..tostring((part.Position - root.Position).magnitude)) -- if (part.Position-root.Position).magnitude <= 50 then root.CFrame = CFrame.new(part.Position.x, part.Position.y, part.Position.z) wait(0.07) root.CFrame = rootpos wait(0.05) end end end end) end end end) spawn(function() while true do wait(0.5) if tokenfarmactive2 then local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart while tokenfarmactive2 do local rootpos = root.CFrame for k,v in pairs(workspace.Collectibles:GetChildren()) do if v.Name == game.Players.LocalPlayer.Name and not v:FindFirstChild("farmed") or tonumber((v.Position - root.Position).magnitude) <= 50 and not v:FindFirstChild("farmed") then local intvalue = Instance.new("IntValue",v) intvalue.Name = "farmed" root.CFrame = v.CFrame wait(.07) end end wait(0.1) root.CFrame = rootpos end end end end) -- Make Honey -- mouse.KeyDown:connect(function(key) if key == HoneyToggle.Text then notify'Making Honey' game:GetService("Players").LocalPlayer.Character:MoveTo(game:GetService("Players").LocalPlayer.SpawnPos.Value.p) wait(1.5) game:GetService("ReplicatedStorage").Events.PlayerHiveCommand:FireServer("ToggleHoneyMaking") end end) -- Farm Moon Amulet Tokens mouse.KeyDown:connect(function(key) if key == FireflyToggle.Text then notify'Moon Token Gather Enabled' count = 0 if fireflydetected then local root = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart for i,v in pairs(workspace.NPCBees:GetChildren()) do if v.Name == "Firefly" then wait(0.2) count = count + 1 --print("Teleporting to Firefly " ..tostring(count))-- root.CFrame = CFrame.new(v.Position.x, v.Position.y, v.Position.z) end end wait(1) for i,v in pairs(workspace.Collectibles:GetChildren()) do if v.Name == "C" then if (v.Position-root.Position).magnitude <= 50 then root.CFrame = CFrame.new(v.Position.x, v.Position.y, v.Position.z) wait(0.1) end end end end end end) InfBackpack.MouseButton1Down:connect(function() game.ReplicatedStorage.Events.ItemPackageEvent:InvokeServer("Purchase",{["Mute"] = true,["Type"] = "Debug-Bag",["Category"] = "Backpack"}) end)
-- -- Copyright (c) 2018 Milos Tosic. All rights reserved. -- License: http://www.opensource.org/licenses/BSD-2-Clause -- -- https://github.com/turbulenz/NvTriStrip local params = { ... } local NVTRISTRIP_ROOT = params[1] local NVTRISTRIP_FILES = { NVTRISTRIP_ROOT .. "NvTriStrip/src/NvTriStrip.cpp", NVTRISTRIP_ROOT .. "NvTriStrip/src/NvTriStripObjects.cpp", NVTRISTRIP_ROOT .. "NvTriStrip/src/NvTriStripObjects.h", NVTRISTRIP_ROOT .. "NvTriStrip/src/VertexCache.h" } function projectExtraConfig_NvTriStrip() includedirs { NVTRISTRIP_ROOT .. "NvTriStrip/include" } end function projectAdd_NvTriStrip() addProject_3rdParty_lib("NvTriStrip", NVTRISTRIP_FILES) end
ENT.Type = "anim" ENT.PrintName = "Subway Train Base" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Category = "Metrostroi" ENT.Spawnable = true ENT.AdminSpawnable = false -------------------------------------------------------------------------------- -- Default initializer only loads up DURA -------------------------------------------------------------------------------- function ENT:InitializeSystems() self:LoadSystem("DURA") self:LoadSystem("ALS_ARS") end function ENT:PassengerCapacity() return 0 end function ENT:GetStandingArea() return Vector(-64,-64,0),Vector(64,64,0) end function ENT:BoardPassengers(delta) self:SetNW2Float("PassengerCount", math.max(0,math.min(self:PassengerCapacity(),self:GetNW2Float("PassengerCount") + delta))) end -------------------------------------------------------------------------------- -- Load/define basic sounds -------------------------------------------------------------------------------- function ENT:InitializeSounds() self.SoundPositions = {} -- Positions (used clientside) self.SoundNames = {} self.SoundNames["zombie"] = { "npc/zombie/zombie_voice_idle1.wav", "npc/zombie/zombie_voice_idle2.wav", "npc/zombie/zombie_voice_idle3.wav", "npc/zombie/zombie_voice_idle4.wav", "npc/zombie/zombie_voice_idle5.wav", "npc/zombie/zombie_voice_idle6.wav", "npc/zombie/zombie_voice_idle7.wav", "npc/zombie/zombie_voice_idle8.wav", "npc/zombie/zombie_voice_idle9.wav", "npc/zombie/zombie_voice_idle10.wav", "npc/zombie/zombie_voice_idle11.wav", "npc/zombie/zombie_voice_idle12.wav", "npc/zombie/zombie_voice_idle13.wav", "npc/zombie/zombie_voice_idle14.wav", } self.SoundNames["zombie_loop"] = "npc/zombie/moan_loop4.wav" self.SoundPositions["zombie_loop"] = "cabin" self.SoundNames["switch"] = "subway_trains/switch_1.wav" self.SoundNames["switch1"] = "subway_trains/switch_1.wav" self.SoundNames["switch2"] = { "subway_trains/new/switch_1.wav", "subway_trains/new/switch_2.wav", "subway_trains/new/switch_3.wav", "subway_trains/new/switch_4.wav", "subway_trains/new/switch_5.wav", } self.SoundNames["switch_off"] = { "subway_trains/new/switch_1.wav", "subway_trains/new/switch_3.wav", "subway_trains/new/switch_5.wav", } self.SoundNames["switch_on"] = { "subway_trains/new/switch_2.wav", "subway_trains/new/switch_4.wav", } self.SoundNames["switch3"] = { "subway_trains/switch_5.wav", "subway_trains/switch_6.wav", "subway_trains/switch_7.wav", } self.SoundNames["igla_on"] = "subway_trains/igla_on1.mp3" self.SoundNames["igla_off"] = "subway_trains/igla_off2.mp3" self.SoundNames["igla_start1"] = "subway_trains/igla_start.mp3" self.SoundNames["igla_start2"] = "subway_trains/igla_on2.mp3" ----- --E ----- self.SoundNames["auto_on"] = "subway_trains/vu_on.wav" self.SoundNames["auto_off"] = "subway_trains/vu_off.wav" self.SoundNames["mainauto_on"] = { "subway_trains/kv1_4.wav", "subway_trains/kv1_5.wav", "subway_trains/kv1_3.wav", } self.SoundNames["mainauto_off"] = { "subway_trains/kv1_2.wav", "subway_trains/kv1_10.wav", } ----- self.SoundNames["kurlik"] = "subway_trains/new/kurlik.wav" self.SoundNames["switch4"] = "subway_trains/switch_4.wav" self.SoundNames["switch5"] = "subway_trains/switch_8.wav" self.SoundNames["switch6"] = "subway_trains/pb_on.wav" self.SoundNames["switch6_off"] = "subway_trains/pb_off.wav" self.SoundNames["vu22_on"] = "subway_trains/vu22_down.wav" self.SoundNames["vu22_off"] = "subway_trains/vu22_up.wav" self.SoundNames["vu22b_off"] = "subway_trains/vu22_3_off.wav" self.SoundNames["vu22b_on"] = "subway_trains/vu22_3_on.wav" self.SoundNames["button_press"] = { "subway_trains/but_on1.wav", "subway_trains/but_on2.wav", "subway_trains/but_on3.wav", "subway_trains/but_on4.wav", "subway_trains/but_on5.wav", "subway_trains/but_on6.wav", --"subway_trains/button_1_on.wav", } self.SoundNames["button_release"] = { --"subway_trains/button_1_off.wav", --"subway_trains/button_2_off.wav", "subway_trains/but_off1.wav", "subway_trains/but_off2.wav", "subway_trains/but_off3.wav", "subway_trains/but_off4.wav", "subway_trains/but_off5.wav", "subway_trains/but_off6.wav", "subway_trains/but_off7.wav", } self.SoundNames["epv_on"] = "subway_trains/epv_on.wav" self.SoundNames["epv_off"] = "subway_trains/epv_off.wav" self.SoundNames["epv_start"] = "subway_trains/epv_start.wav" self.SoundNames["kr_open"] = "subway_trains/kr_open.wav" self.SoundNames["kr_close"] = "subway_trains/kr_close.wav" self.SoundNames["kru_in"] = "subway_trains/new/kru_in.wav" self.SoundNames["kru_out"] = "subway_trains/new/kru_out.wav" self.SoundNames["revers_in"] = "subway_trains/revers_in.wav" self.SoundNames["revers_out"] = "subway_trains/revers_out.wav" --FIXME --self.SoundNames["av_on"] = "subway_trains/av_on.wav" --self.SoundNames["av_off"] = "subway_trains/av_off.wav" self.SoundNames["av_on"] = { "subway_trains/va21_1_on.wav", "subway_trains/va21_2_on.wav", "subway_trains/va21_3_on.wav", "subway_trains/va21_4_on.wav", } self.SoundNames["av_off"] = { "subway_trains/va21_1_off.wav", "subway_trains/va21_2_off.wav", "subway_trains/va21_3_off.wav", "subway_trains/va21_4_off.wav", } self.SoundNames["pak_on"] = "subway_trains/pak_on.wav" self.SoundNames["pak_off"] = "subway_trains/pak_off.wav" self.SoundNames["bpsn1"] = "subway_trains/bpsn_1.wav" self.SoundNames["bpsn2"] = "subway_trains/bpsn3.wav" self.SoundNames["bpsn3"] = "subway_trains/bpsn_4.wav" self.SoundNames["bpsn4"] = "subway_trains/bpsn_5.wav" self.SoundNames["bpsn5"] = "subway_trains/bpsn_6.wav" self.SoundNames["bpsn6"] = "subway_trains/bpsn_7.wav" self.SoundNames["bpsn_ann_pnm"] = "subway_announcer_pnm/00_07.wav" self.SoundNames["bpsn_ann_pnm_cab"] = "subway_announcer_pnm/00_07.wav" self.SoundPositions["bpsn_ann_pnm_cab"] = "cabin" self.SoundNames["bpsn_ann"] = "subway_announcer/00_07.wav" self.SoundNames["bpsn_ann_cab"] = "subway_announcer/00_07.wav" self.SoundPositions["bpsn_ann_cab"] = "cabin" self.SoundNames["release1"] = "subway_trains/new/release_1.wav" self.SoundNames["release2"] = "subway_trains/brake_02.wav" self.SoundNames["release3"] = "subway_trains/brake_03.wav" self.SoundPositions["release2"] = "cabin" self.SoundPositions["release3"] = "cabin" self.SoundNames["cran1"] = "subway_trains/pneumo_idle.wav" self.SoundPositions["cran1"] = "cabin" self.SoundNames["release2_w"] = "subway_trains/brake_02.wav" self.SoundNames["release3_w"] = "subway_trains/brake_03.wav" self.SoundNames["horn2"] = "subway_trains/horn_3a.wav" self.SoundNames["horn2_end"] = "subway_trains/horn_4a.wav" self.SoundNames["horn3"] = "subway_trains/horn_5.wav" self.SoundNames["horn3_end"] = "subway_trains/horn_6.wav" self.SoundPositions["horn1"] = "cabin" self.SoundPositions["horn2"] = "cabin" self.SoundPositions["horn3"] = "cabin" self.SoundNames["ring"] = "subway_trains/ring_loop.wav" self.SoundNames["ring_end"] = "subway_trains/ring_end.wav" self.SoundPositions["ring"] = "cabin" self.SoundPositions["ring_end"] = "cabin" self.SoundNames["ring1"] = "subway_trains/ring1.wav" self.SoundNames["ring1_end"] = "subway_trains/ring2.wav" self.SoundPositions["ring1"] = "cabin" self.SoundPositions["ring1_end"]= "cabin" self.SoundNames["ring2"] = "subway_trains/ring_3.wav" self.SoundNames["ring2_end"] = "subway_trains/ring_4.wav" self.SoundPositions["ring2"] = "cabin" self.SoundPositions["ring2_end"]= "cabin" self.SoundNames["ring3"] = "subway_trains/new/ring5.wav" self.SoundNames["ring3_end"] = "subway_trains/new/ring6.wav" self.SoundPositions["ring3"] = "cabin" self.SoundPositions["ring3_end"]= "cabin" self.SoundNames["ring4"] = "subway_trains/new/ring7.wav" self.SoundNames["ring4_end"] = "subway_trains/new/ring8.wav" self.SoundPositions["ring4"] = "cabin" self.SoundPositions["ring4_end"]= "cabin" self.SoundNames["upps"] = "subway_trains/upps.wav" self.SoundNames["dura1"] = "subway_trains/dura_alarm_1.wav" self.SoundNames["dura2"] = "subway_trains/dura_alarm_2.wav" self.SoundNames["rk_spin"] = "subway_trains/rk_spin.wav" self.SoundNames["rk_stop"] = "subway_trains/rk_stop.wav" self.SoundNames["lk2_on"] = "subway_trains/lk2_on.wav" self.SoundNames["lk2_off"] = "subway_trains/lk2_off.wav" self.SoundNames["lk3_on"] = "subway_trains/lk3_on.wav" self.SoundNames["lk3_off"] = "subway_trains/lk3_off.wav" self.SoundNames["pkg"] = {"subway_trains/pkg1.wav","subway_trains/pkg2.wav"} self.SoundNames["inf_on"] = "subway_trains/program_on.wav" self.SoundNames["inf_off"] = "subway_trains/program_0.wav" self.SoundNames["vpr"] = "subway_trains/vpr.wav" self.SoundNames["vpr_end"] = "subway_trains/vpr_off.wav" self.SoundPositions["vpr"] = "cabin" self.SoundPositions["vpr_end"]= "cabin" self.SoundNames["br_334"] = { "subway_trains/new/334_1.wav", "subway_trains/new/334_2.wav", "subway_trains/new/334_3.wav", "subway_trains/new/334_4.wav", } self.SoundNames["br_013"] = { --"subway_trains/switch_1.wav", "subway_trains/013_1.wav", "subway_trains/013_2.wav", "subway_trains/013_3.wav", "subway_trains/013_4.wav", } self.SoundNames["pneumo_switch"] = { "subway_trains/pneumo_1.wav", "subway_trains/pneumo_2.wav", } self.SoundNames["pneumo_disconnect1"] = { "subway_trains/pneumo_3.wav", } self.SoundNames["pneumo_disconnect2"] = { "subway_trains/pneumo_4.wav", "subway_trains/pneumo_5.wav", } self.SoundNames["pneumo_reverser"] = "subway_trains/pneumo_6.wav" self.SoundNames["pneumo_switch_on"] = "subway_trains/pneumo_7.wav" self.SoundNames["relay_open"] = { "subway_trains/relay_1.wav", } self.SoundNames["relay_close"] = { "subway_trains/relay_2.wav", "subway_trains/relay_3.wav", } self.SoundNames["relay_close2"] = "subway_trains/new/relay_4.wav" self.SoundNames["relay_close3"] = "subway_trains/new/relay_5.wav" self.SoundNames["relay_close4"] = { --"subway_trains/new/lsd_1.wav", --"subway_trains/new/lsd_2.wav", --"subway_trains/new/lsd_3.wav", --"subway_trains/new/lsd_4.wav", --"subway_trains/new/lsd_5.wav", --"subway_trains/new/lsd_6.wav", --"subway_trains/new/lsd_7.wav", "subway_trains/sd.wav", } self.SoundNames["rvt_close"] = { "subway_trains/brake_on.wav", --"subway_trains/new/brake_on1.wav", --"subway_trains/new/brake_on2.wav", --"subway_trains/new/brake_on3.wav", } self.SoundNames["r1_5_close"] = { "subway_trains/new/drive_on1.wav", "subway_trains/new/drive_on2.wav", "subway_trains/new/drive_on3.wav", --"subway_trains/drive_on2.wav", --"subway_trains/drive_on3.wav", --"subway_trains/drive_on4.wav", } self.SoundNames["rvt_open"] = { "subway_trains/new/brake_off1.wav", "subway_trains/new/brake_off2.wav", "subway_trains/new/brake_off3.wav" } self.SoundNames["r1_5_open"] = "subway_trains/new/drive_off1.wav" self.SoundNames["relay_close5"] = "subway_trains/new/relay_3.wav" self.SoundNames["door_close1"] = { "subway_trains/door_close_7.wav", "subway_trains/door_close_8.wav", --"subway_trains/doorsclose_new.wav", } self.SoundNames["door_open1"] = { "subway_trains/door_open_4.wav", "subway_trains/door_open_5.wav", "subway_trains/door_open_6.wav", } self.SoundNames["door_fail1"] = { "subway_trains/door_fail_1.wav", "subway_trains/door_fail_2.wav", } self.SoundNames["door_close2"] = { "subway_trains/door_close_2.wav", "subway_trains/door_close_3.wav", "subway_trains/door_close_4.wav", "subway_trains/door_close_5.wav", } self.SoundNames["door_open2"] = { "subway_trains/door_open_1.wav", "subway_trains/door_open_2.wav", "subway_trains/door_open_3.wav", } self.SoundNames["plomb"] = { "subway_trains/new/plomb1.wav", "subway_trains/new/plomb2.wav", } self.SoundNames["door_open_tor"] = "subway_trains/door_t_open.wav" self.SoundNames["door_close_tor"] = "subway_trains/door_t_close.wav" self.SoundNames["compressor_717"] = "subway_trains/compressor_717_loop.wav" self.SoundNames["compressor_717_end"] = "subway_trains/compressor_717_end.wav" self.SoundNames["compressor_ezh"] = "subway_trains/compressor_ezh_loop.wav" self.SoundNames["compressor_ezh_end"] = "subway_trains/compressor_ezh_end.wav" self.SoundNames["compressor_e"] = "subway_trains/compressor_e_loop.wav" self.SoundNames["compressor_e_end"] = "subway_trains/compressor_e_end.wav" self.SoundNames["revers_f"] = "subway_trains/revers_f.wav" self.SoundNames["revers_0"] = "subway_trains/revers_0.wav" self.SoundNames["revers_b"] = "subway_trains/revers_f.wav" self.SoundNames["kru_0_1"] = "subway_trains/new/kru_0_1.wav" self.SoundNames["kru_1_2"] = "subway_trains/new/kru_1_2.wav" self.SoundNames["kru_2_1"] = "subway_trains/new/kru_2_1.wav" self.SoundNames["kru_1_0"] = "subway_trains/new/kru_1_0.wav" self.SoundNames["kv_0_t1"] = "subway_trains/kv1/kv_0_t1.wav" self.SoundNames["kv_t1_0"] = "subway_trains/kv1/kv_t1_0.wav" self.SoundNames["kv_t1_t1a"] = "subway_trains/kv1/kv_t1_t1a.wav" self.SoundNames["kv_t1a_t1"] = "subway_trains/kv1/kv_t1a_t1.wav" self.SoundNames["kv_t1a_t2"] = "subway_trains/kv1/kv_t1a_t2.wav" self.SoundNames["kv_t2_t1a"] = "subway_trains/kv1/kv_t2_t1a.wav" self.SoundNames["kv_0_x1"] = "subway_trains/kv1/kv_0_x1.wav" self.SoundNames["kv_x1_0"] = "subway_trains/kv1/kv_x1_0.wav" self.SoundNames["kv_x1_x2"] = "subway_trains/kv1/kv_x1_x2.wav" self.SoundNames["kv_x2_x1"] = "subway_trains/kv1/kv_x2_x1.wav" self.SoundNames["kv_x2_x3"] = "subway_trains/kv1/kv_x2_x3.wav" self.SoundNames["kv_x3_x2"] = "subway_trains/kv1/kv_x3_x2.wav" self.SoundNames["ezh_kv_0_t1"] = "subway_trains/kve1/kv_0_t1.wav" self.SoundNames["ezh_kv_t1_0"] = "subway_trains/kve1/kv_t1_0.wav" self.SoundNames["ezh_kv_t1_t1a"] = "subway_trains/kve1/kv_t1_t1a.wav" self.SoundNames["ezh_kv_t1a_t1"] = "subway_trains/kve1/kv_t1a_t1.wav" self.SoundNames["ezh_kv_t1a_t2"] = "subway_trains/kve1/kv_t1a_t2.wav" self.SoundNames["ezh_kv_t2_t1a"] = "subway_trains/kve1/kv_t2_t1a.wav" self.SoundNames["ezh_kv_0_x1"] = "subway_trains/kve1/kv_0_x1.wav" self.SoundNames["ezh_kv_x1_0"] = "subway_trains/kve1/kv_x1_0.wav" self.SoundNames["ezh_kv_x1_x2"] = "subway_trains/kve1/kv_x1_x2.wav" self.SoundNames["ezh_kv_x2_x1"] = "subway_trains/kve1/kv_x2_x1.wav" self.SoundNames["ezh_kv_x2_x3"] = "subway_trains/kve1/kv_x2_x3.wav" self.SoundNames["ezh_kv_x3_x2"] = "subway_trains/kve1/kv_x3_x2.wav" for i = 1,10 do self.SoundNames["st"..i.."a"] = "subway_trains/new/st"..i.."a.wav" self.SoundNames["st"..i.."b"] = "subway_trains/new/st"..i.."b.wav" end self.SoundNames["tr"] = { "subway_trains/tr_1.wav", "subway_trains/tr_2.wav", "subway_trains/tr_3.wav", "subway_trains/tr_4.wav", "subway_trains/tr_5.wav", } self.SoundNames["zap"] = { "ambient/energy/zap1.wav", "ambient/energy/zap2.wav", "ambient/energy/zap3.wav", } self.SoundNames["spark"] = { "ambient/energy/spark1.wav", "ambient/energy/spark2.wav", "ambient/energy/spark3.wav", "ambient/energy/spark4.wav", "ambient/energy/spark5.wav", } self.SoundNames["uava_on"] = "subway_trains/new/uava_on.wav" self.SoundNames["uava_off"] = "subway_trains/new/uava_off.wav" self.SoundNames["paksd"] = "subway_trains/new/paksd.wav" self.SoundTimeout = {} end -------------------------------------------------------------------------------- -- Sound functions -------------------------------------------------------------------------------- function ENT:SetSoundState(sound,volume,pitch,timeout,range) --if not self.Sounds[sound] then return end --if sound == "ring" then sound = "zombie_loop" end if not self.Sounds[sound] then if self.SoundNames and self.SoundNames[sound] then local name = self.SoundNames[sound] if self.SoundPositions[sound] then local ent_nwID if self.SoundPositions[sound] == "cabin" then ent_nwID = "seat_driver" end local ent = self:GetNW2Entity(ent_nwID) if IsValid(ent) then self.Sounds[sound] = CreateSound(ent, Sound(name)) else return end else self.Sounds[sound] = CreateSound(self, Sound(name)) end else return end end local default_range = 0.80 if (volume <= 0) or (pitch <= 0) then self.Sounds[sound]:SetSoundLevel(100*(range or default_range)) self.Sounds[sound]:Stop() return end if soundid == "switch" then default_range = 0.50 end local pch = math.floor(math.max(0,math.min(255,100*pitch)) + math.random()) self.Sounds[sound]:SetSoundLevel(100*(range or default_range)) self.Sounds[sound]:Play() self.Sounds[sound]:ChangeVolume(math.max(0,math.min(255,2.55*volume)) + (0.001/2.55) + (0.001/2.55)*math.random(),timeout or 0) self.Sounds[sound]:ChangePitch(pch+1,timeout or 0) self.Sounds[sound]:SetSoundLevel(100*(range or default_range)) end --[[function ENT:CheckActionTimeout(action,timeout) self.LastActionTime = self.LastActionTime or {} self.LastActionTime[action] = self.LastActionTime[action] or (CurTime()-1000) if CurTime() - self.LastActionTime[action] < timeout then return true end self.LastActionTime[action] = CurTime() return false end ]]-- function ENT:PlayOnce(soundid,location,range,pitch,randoff) --soundid = "zombie" --if self:CheckActionTimeout(soundid,self.SoundTimeout[soundid] or 0.0) then return end -- Pick wav file local sound = self.SoundNames[soundid] if not sound then return end if type(sound) == "table" then sound = table.Random(sound) end -- Setup range local default_range = 0.80 if soundid == "switch" then default_range = 0.50 end -- Emit sound from right location if not location then self:EmitSound(sound, 100*(range or default_range), pitch or (not randoff) and math.random(95,105) or nil) elseif (location == true) or (location == "cabin") then if CLIENT then self.DriverSeat = self:GetNW2Entity("seat_driver") end if IsValid(self.DriverSeat) then self.DriverSeat:EmitSound(sound, 100*(range or default_range),pitch or (not randoff) and math.random(95,105) or nil) end elseif (location == true) or (location == "instructor") then if CLIENT then self.InstructorsSeat = self:GetNW2Entity("seat_instructor") end if IsValid(self.InstructorsSeat) then self.InstructorsSeat:EmitSound(sound, 100*(range or default_range),pitch or (not randoff) and math.random(95,105) or nil) end elseif location == "front_bogey" then if IsValid(self.FrontBogey) then self.FrontBogey:EmitSound(sound, 100*(range or default_range),pitch or (not randoff) and math.random(95,105) or nil) end elseif location == "rear_bogey" then if IsValid(self.RearBogey) then self.RearBogey:EmitSound(sound, 100*(range or default_range),pitch or (not randoff) and math.random(95,105) or nil) end end end -------------------------------------------------------------------------------- -- Load a single system with given name -------------------------------------------------------------------------------- function ENT:LoadSystem(a,b,...) local name local sys_name if b then name = b sys_name = a else name = a sys_name = a end if not Metrostroi.Systems[name] then ErrorNoHalt("No system defined: "..name) return end if self.Systems[sys_name] then ErrorNoHalt("System already defined: "..sys_name) return end local no_acceleration = Metrostroi.BaseSystems[name].DontAccelerateSimulation local run_everywhere = Metrostroi.BaseSystems[name].RunEverywhere if SERVER and Turbostroi then -- Load system into turbostroi if (not GLOBAL_SKIP_TRAIN_SYSTEMS) then Turbostroi.LoadSystem(sys_name,name,...) end -- Load system locally (this may load any systems nested in the initializer) GLOBAL_SKIP_TRAIN_SYSTEMS = GLOBAL_SKIP_TRAIN_SYSTEMS or 0 if GLOBAL_SKIP_TRAIN_SYSTEMS then GLOBAL_SKIP_TRAIN_SYSTEMS = GLOBAL_SKIP_TRAIN_SYSTEMS + 1 end self[sys_name] = Metrostroi.Systems[name](self,...) GLOBAL_SKIP_TRAIN_SYSTEMS = GLOBAL_SKIP_TRAIN_SYSTEMS - 1 if GLOBAL_SKIP_TRAIN_SYSTEMS == 0 then GLOBAL_SKIP_TRAIN_SYSTEMS = nil end -- Setup nice name as normal --if (name ~= sys_name) or (b) then self[sys_name].Name = sys_name end self[sys_name].Name = sys_name self.Systems[sys_name] = self[sys_name] -- Create fake placeholder if not no_acceleration then if run_everywhere then local old_func = self[sys_name].TriggerInput self[sys_name].TriggerInput = function(system,name,value) old_func(self,sys_name,name,value) Turbostroi.TriggerInput(self,sys_name,name,value) end else self[sys_name].TriggerInput = function(system,name,value) Turbostroi.TriggerInput(self,sys_name,name,value) end end self[sys_name].Think = function() end end else -- Load system like normal self[sys_name] = Metrostroi.Systems[name](self,...) --if (name ~= sys_name) or (b) then self[sys_name].Name = sys_name end self[sys_name].Name = sys_name self.Systems[sys_name] = self[sys_name] --if SERVER then --[[self[sys_name].TriggerOutput = function(sys,name,value) local varname = (sys.Name or "")..name --self:TriggerOutput(varname, tonumber(value) or 0) self.DebugVars[varname] = value end]]-- --end end end function ENT:SetupDataTables() self._NetData = {{},{}} end --------------------------------------------------------------------------------------- -- Sends and get float via NWVars --------------------------------------------------------------------------------------- function ENT:SetPackedRatio(idx,value) local idx = type(idx) == "number" and 999-idx or idx if self._NetData[2][idx] ~= nil and self._NetData[2][idx] == math.floor(value*100) then return end self:SetNW2Int(idx,math.floor(value*500)) end function ENT:GetPackedRatio(idx) return self:GetNW2Int(type(idx) == "number" and 999-idx or idx)/500 end -------------------------------------------------------------------------------- -- Sends and get bool via NWVars -------------------------------------------------------------------------------- function ENT:SetPackedBool(idx,value) if self._NetData[1][idx] ~= nil and self._NetData[1][idx] == value then return end self:SetNW2Bool(idx,value) end function ENT:GetPackedBool(idx) return self:GetNW2Bool(idx) end
local BuildPSD = require(game.ReplicatedStorage:WaitForChild("BuildPSD")) BuildPSD(script.JSON.Value)
--[[ MIT License Copyright (c) 2019 Mitchell Davis <coding.jackalope@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --]] local Cursor = require(SLAB_PATH .. '.Internal.Core.Cursor') local DrawCommands = require(SLAB_PATH .. '.Internal.Core.DrawCommands') local Image = require(SLAB_PATH .. '.Internal.UI.Image') local Mouse = require(SLAB_PATH .. '.Internal.Input.Mouse') local Region = require(SLAB_PATH .. '.Internal.UI.Region') local Stats = require(SLAB_PATH .. '.Internal.Core.Stats') local Style = require(SLAB_PATH .. '.Style') local Text = require(SLAB_PATH .. '.Internal.UI.Text') local Tooltip = require(SLAB_PATH .. '.Internal.UI.Tooltip') local Window = require(SLAB_PATH .. '.Internal.UI.Window') local Tree = {} local Instances = {} local Hierarchy = {} local Radius = 4.0 local function GetInstance(Id) if #Hierarchy > 0 then local Top = Hierarchy[1] Id = Top.Id .. "." .. Id end if Instances[Id] == nil then local Instance = {} Instance.X = 0.0 Instance.Y = 0.0 Instance.H = 0.0 Instance.IsOpen = false Instance.WasOpen = false Instance.Id = Id Instances[Id] = Instance end return Instances[Id] end function Tree.Begin(Id, Options) Stats.Push('Tree') Options = Options == nil and {} or Options Options.Label = Options.Label == nil and Id or Options.Label Options.Tooltip = Options.Tooltip == nil and "" or Options.Tooltip Options.OpenWithHighlight = Options.OpenWithHighlight == nil and true or OpenWithHighlight Options.Icon = Options.Icon == nil and nil or Options.Icon Options.IconPath = Options.IconPath == nil and nil or Options.IconPath Options.IsSelected = Options.IsSelected == nil and false or Options.IsSelected Options.IsOpen = Options.IsOpen == nil and false or Options.IsOpen local Instance = GetInstance(Id) Instance.WasOpen = Instance.IsOpen local WinItemId = Window.GetItemId(Instance.Id) local X, Y = Cursor.GetPosition() local H = math.max(Style.Font:getHeight(), Instance.H) local TriX, TriY = X + Radius, Y + H * 0.5 local Diameter = Radius * 2.0 local MouseX, MouseY = Mouse.Position() local TMouseX, TMouseY = Region.InverseTransform(nil, MouseX, MouseY) local WinX, WinY, WinW, WinH = Region.GetBounds() local ContentW, ContentH = Region.GetContentSize() WinW = math.max(WinW, ContentW) local IsObstructed = Window.IsObstructedAtMouse() or Region.IsHoverScrollBar() local IsHot = not IsObstructed and WinX <= TMouseX and TMouseX <= WinX + WinW and Y <= TMouseY and TMouseY <= Y + H and Region.Contains(MouseX, MouseY) if IsHot or Options.IsSelected then DrawCommands.Rectangle('fill', WinX, Y, WinW, H, Style.TextHoverBgColor) end if IsHot then if Mouse.IsClicked(1) and not Options.IsLeaf and Options.OpenWithHighlight then Instance.IsOpen = not Instance.IsOpen end end local IsExpanderClicked = false if not Options.IsLeaf then if not IsObstructed and X <= TMouseX and TMouseX <= X + Diameter and Y <= TMouseY and TMouseY <= Y + H then if Mouse.IsClicked(1) and not Options.OpenWithHighlight then Instance.IsOpen = not Instance.IsOpen Window.SetHotItem(nil) IsExpanderClicked = true end end local Dir = Instance.IsOpen and 'south' or 'east' DrawCommands.Triangle('fill', TriX, TriY, Radius, Dir, Style.TextColor) end if not Instance.IsOpen and Instance.WasOpen then Window.ResetContentSize() Region.ResetContentSize() end Cursor.AdvanceX(Radius * 2.0) Instance.X = Cursor.GetX() Instance.Y = Cursor.GetY() if Options.Icon ~= nil or Options.IconPath ~= nil then Image.Begin(Instance.Id .. '_Icon', { Image = Options.Icon, Path = Options.IconPath }) local ItemX, ItemY, ItemW, ItemH = Cursor.GetItemBounds() Instance.H = math.max(Instance.H, ItemH) Cursor.SameLine({CenterY = true}) end Text.Begin(Options.Label) Cursor.SetY(Instance.Y) Cursor.AdvanceY(H) if Options.IsOpen then Instance.IsOpen = true end if Instance.IsOpen then table.insert(Hierarchy, 1, Instance) Cursor.SetX(Instance.X) else Cursor.SetX(X) end if IsHot then Tooltip.Begin(Options.Tooltip) if not IsExpanderClicked then Window.SetHotItem(WinItemId) end end Window.AddItem(X, Y, (WinW + WinX) - Instance.X, H, WinItemId) if not Instance.IsOpen then Stats.Pop() end return Instance.IsOpen end function Tree.End() table.remove(Hierarchy, 1) local Instance = Hierarchy[1] if Instance ~= nil then Cursor.SetX(Instance.X) else Cursor.SetX(Cursor.GetAnchorX()) end Stats.Pop() end return Tree
local this = inherit.NewSubOf() this.Name = "FloorCylinder" this.Radius = 512 this.InnerBound = 64 this.HeightOffset = 256 //if CLIENT then function this:Draw(duration) for yaw = 0, 360, 45 do debugoverlay.Axis( self.Pos, Angle(0, yaw, 0), self.Radius, duration or 0.017, false ) debugoverlay.Axis( self.Pos + Vector(0, 0, self.HeightOffset / 2), Angle(0, yaw, 180), self.InnerBound, duration or 0.017, false ) debugoverlay.Axis( self.Pos + Vector(0, 0, self.HeightOffset), Angle(0, yaw, 180), self.Radius, duration or 0.017, false ) end end //end function this:Init() end function this:GetSpawn(ply, spawn) local randDir = Angle(0, math.random() * 360, 0):Forward() local randDist = (self.Radius - self.InnerBound) * math.sqrt(math.random()) + self.InnerBound local projectPos = self.Pos + Vector(0,0,self.HeightOffset) + randDir * randDist local trace = util.TraceLine({ start = projectPos, endpos = projectPos + Vector(0, 0, -self.HeightOffset), mask = MASK_PLAYERSOLID }) //print("floorcyl:", randDir, ":", randDist, ":", trace.HitPos - self.Pos) return trace.HitPos, (-randDir):Angle() end function this:PostSpawn(ply, spawn) end local gm = gminfo.GetGamemodeTable() gm.SpawnVolume.Register(this)
local control4 = scene:getObjects("control4_ph")[1]:findPlaceholderComponent(); local control5 = scene:getObjects("control5_ph")[1]:findPlaceholderComponent(); local uselessPanel = false; local keyl = scene:getObjects("keyl")[1]; local keylHack1 = false; -- main makeDoor("door15", false); makeDoorTrigger("door15_cp", "door15"); makeDoor("door16", false); makeDoorTrigger("door16_cp", "door16"); makeDoor("door17", false); makeDoor("door18", false); makeDoor("door19", false); makeDoor("door20", false); makeDoorTrigger("door20_cp", "door20"); makeDoor("door22", false); makeDoorTrigger("door22_cp", "door22"); makeDoor("door23", false); makeDoorTrigger("door23_cp", "door23"); makeDoor("door21", false); makeLever("lever12", true, nil, function() disableLever("lever12"); local objs = scene:getObjects("laser12"); for _, obj in pairs(objs) do obj:addComponent(FadeOutComponent(1.0)); end audio:playSound("alarm_off.ogg"); end); makeKeyDoor("blue_door", "blue_key_ph", function() openDoor("door21"); end); local function control45Func(other) scene.player.linearDamping = 6.0; scene.cutscene = true; addTimeoutOnce(1.0, function() if uselessPanel then showLowerDialog( { {"player", tr.dialog46.str1}, }, function () scene.cutscene = false; end); else showLowerDialog( { {"player", tr.dialog47.str1}, }, function () uselessPanel = true; scene.cutscene = false; end); end end); end control4.listener = createSensorEnterListener(true, control45Func); control5.listener = createSensorEnterListener(true, control45Func); setSensorEnterListener("keyl1_cp", true, function(other) scene.player.linearDamping = 6.0; scene.cutscene = true; showLowerDialog( { {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog48.str1}, {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog48.str2}, {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog48.str3}, }, function () scene.cutscene = false; end); end); setSensorEnterListener("backpack_cp", true, function(other) scene.player.linearDamping = 6.0; scene.cutscene = true; showLowerDialog( { {"player", tr.dialog49.str1}, {"player", tr.dialog49.str2}, }, function () scene.cutscene = false; end); end); setSensorEnterListener("keyl2_cp", true, function(other) scene.player.linearDamping = 6.0; scene.cutscene = true; showLowerDialog( { {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog50.str1}, }, function () control4.listener = nil; control5.listener = nil; scene.cutscene = false; local p = scene:getObjects("keyl1_path")[1]; keyl.roamBehavior:reset(); keyl.roamBehavior.linearVelocity = 13.0; keyl.roamBehavior.linearDamping = 4.0; keyl.roamBehavior.dampDistance = 3.0; keyl.roamBehavior:changePath(p:findPathComponent().path, p:getTransform()); keyl.roamBehavior:start(); scene:getObjects("keyl4_cp")[1].active = true; end); end); local function keylHack1Func() scene:getObjects("keyl4_cp")[1].active = false; scene.player.linearDamping = 6.0; scene.cutscene = true; showLowerDialog( { {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog51.str1}, {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog51.str2}, {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog51.str3}, }, function () addTimeoutOnce(1.5, function() openDoor("door18", true); end); scene.cutscene = false; end); end setSensorEnterListener("keyl3_cp", true, function(other) if keylHack1 then keylHack1Func(); end keylHack1 = true; end); setSensorListener("keyl4_cp", function(other) if keylHack1 then keylHack1Func(); end keylHack1 = true; end, function (other) keylHack1 = false; end); setSensorEnterListener("keyl5_cp", true, function(other) scene:getObjects("keyl6_cp")[1].active = true; end); setSensorEnterListener("keyl6_cp", true, function(other) scene.player.linearDamping = 6.0; scene.cutscene = true; showLowerDialog( { {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog52.str1}, {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog52.str2}, }, function () scene.cutscene = false; openDoor("door17",true); end); end); setSensorEnterListener("exit1_cp", true, function(other) scene.respawnPoint = scene:getObjects("exit1_cp")[1]:getTransform(); scene.player.linearDamping = 6.0; scene.cutscene = true; setAmbientMusic("ambient8.ogg"); startAmbientMusic(true); closeDoor("door17", true); local p = scene:getObjects("keyl2_path")[1]; keyl.roamBehavior:reset(); keyl.roamBehavior.linearVelocity = 13.0; keyl.roamBehavior.linearDamping = 4.0; keyl.roamBehavior.dampDistance = 3.0; keyl.roamBehavior:changePath(p:findPathComponent().path, p:getTransform()); keyl.roamBehavior:start(); end); setSensorEnterListener("exit2_cp", true, function(other) addTimeoutOnce(0.5, function() showUpperDialog( { {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog53.str1}, {"ally", tr.str6, "common2/portrait_keyl.png", tr.dialog53.str2}, }, function () scene.cutscene = false; addTimeoutOnce(0.5, function() local p = scene:getObjects("keyl3_path")[1]; keyl.roamBehavior:reset(); keyl.roamBehavior.linearVelocity = 13.0; keyl.roamBehavior.linearDamping = 4.0; keyl.roamBehavior.dampDistance = 3.0; keyl.roamBehavior:changePath(p:findPathComponent().path, p:getTransform()); keyl.roamBehavior:start(); end); end); end); end);
local service = require 'service' local workspace = require 'workspace' local fs = require 'bee.filesystem' local core = require 'core' local uric = require 'uri' rawset(_G, 'TEST', true) local EXISTS = {} local function eq(a, b) if a == EXISTS and b ~= nil then return true end local tp1, tp2 = type(a), type(b) if tp1 ~= tp2 then return false end if tp1 == 'table' then local mark = {} for k in pairs(a) do if not eq(a[k], b[k]) then return false end mark[k] = true end for k in pairs(b) do if not mark[k] then return false end end return true end return a == b end local function catch_target(script, sep) local list = {} local cur = 1 local cut = 0 while true do local start, finish = script:find(('<%%%s.-%%%s>'):format(sep, sep), cur) if not start then break end list[#list+1] = { start - cut, finish - 4 - cut } cur = finish + 1 cut = cut + 4 end local new_script = script:gsub(('<%%%s(.-)%%%s>'):format(sep, sep), '%1') return new_script, list end function TEST(data) local lsp = service() local ws = workspace(lsp, 'test') lsp.workspace = ws ws.root = ROOT local targetScript = data[1].content local targetUri = uric.encode(fs.path(data[1].path)) local sourceScript, sourceList = catch_target(data[2].content, '?') local sourceUri = uric.encode(fs.path(data[2].path)) lsp:saveText(targetUri, 1, targetScript) ws:addFile(uric.decode(targetUri)) lsp:compileVM(targetUri) lsp:saveText(sourceUri, 1, sourceScript) ws:addFile(uric.decode(sourceUri)) lsp:compileVM(sourceUri) local sourceVM = lsp:loadVM(sourceUri) assert(sourceVM) local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2 local source = core.findSource(sourceVM, sourcePos) local hover = core.hover(source, lsp) assert(hover) if data.hover.description then local uriROOT = uric.encode(ROOT):gsub('%%', '%%%%') data.hover.description = data.hover.description:gsub('%$ROOT%$', uriROOT) end if hover.label then hover.label = hover.label:gsub('\r\n', '\n') end assert(eq(hover, data.hover)) end TEST { { path = 'a.lua', content = '', }, { path = 'b.lua', content = 'require <?"a"?>', }, hover = { description = [[[a.lua]($ROOT$/a.lua)]], } } TEST { { path = 'a.lua', content = [[ local function f(a, b) end return f ]], }, { path = 'b.lua', content = [[ local x = require 'a' <?x?>() ]] }, hover = { label = 'function f(a: any, b: any)', name = 'f', } } TEST { { path = 'a.lua', content = [[ return function (a, b) end ]], }, { path = 'b.lua', content = [[ local f = require 'a' <?f?>() ]] }, hover = { label = 'function (a: any, b: any)', name = '', } } TEST { { path = 'a.lua', content = [[ local mt = {} mt.__index = mt function mt:add(a, b) end return function () return setmetatable({}, mt) end ]], }, { path = 'b.lua', content = [[ local m = require 'a' local obj = m() obj:<?add?>() ]] }, hover = { label = 'function mt:add(a: any, b: any)', name = 'mt:add', }, } TEST { { path = 'a.lua', content = [[ t = { [{}] = 1, } ]], }, { path = 'b.lua', content = [[ <?t?>[{}] = 2 ]] }, hover = { label = [[ global t: { [*table]: number = 1, [*table]: number = 2, }]], name = 't', }, } TEST { { path = 'a.lua', content = [[ t = { [{}] = 1, } ]], }, { path = 'a.lua', content = [[ <?t?>[{}] = 2 ]] }, hover = { label = [[ global t: { [*table]: number = 2, }]], name = 't', }, }
-- Configuration for Neovim's native LSP functions. -- Must source this file after the `nvim-lspconfig` plugin loads. local fs = require("tjdot.fs") local lspconfig = require("lspconfig") local util = require("lspconfig.util") -- nvim-cmp completion capabilities for Neovim's LSP. local capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()) -- Function called when a buffer attaches to a language server. local on_attach = function(client, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end -- Aerial code browser config. require("aerial").on_attach(client, bufnr) buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") -- Mappings local opts = {noremap = true, silent = true} buf_set_keymap("n", "gD", "<Cmd>lua vim.lsp.buf.declaration()<CR>", opts) buf_set_keymap("n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", opts) buf_set_keymap("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts) buf_set_keymap("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) buf_set_keymap("n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts) buf_set_keymap("n", "<leader>lwa", "<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>", opts) buf_set_keymap("n", "<leader>lwr", "<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>", opts) buf_set_keymap("n", "<leader>wl", "<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>", opts) buf_set_keymap("n", "<leader>lD", "<cmd>lua vim.lsp.buf.type_definition()<CR>", opts) buf_set_keymap("n", "<leader>lr", "<cmd>lua vim.lsp.buf.rename()<CR>", opts) buf_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts) buf_set_keymap("n", "<leader>le", "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", opts) buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts) buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts) buf_set_keymap("n", "<leader>lq", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts) buf_set_keymap("n", "<leader>la", "<cmd>lua vim.lsp.buf.code_action()<CR>", opts) -- Set some keybinds conditional on server capabilities if client.resolved_capabilities.document_formatting then buf_set_keymap("n", "<leader>lf", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts) elseif client.resolved_capabilities.document_range_formatting then buf_set_keymap("n", "<leader>lf", "<cmd>lua vim.lsp.buf.range_formatting()<CR>", opts) end -- Set autocommands conditional on server_capabilities if client.resolved_capabilities.document_highlight then vim.api.nvim_exec( [[ hi LspReferenceRead cterm=bold ctermbg=red guibg=LightYellow hi LspReferenceText cterm=bold ctermbg=red guibg=LightYellow hi LspReferenceWrite cterm=bold ctermbg=red guibg=LightYellow augroup lsp_document_highlight autocmd! * <buffer> autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight() autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references() augroup END ]], false ) end end -- Language servers -- bash-language-server lspconfig.bashls.setup { capabilities = capabilities, on_attach = on_attach } -- clangd -- NOTE: Clang >= 9 is recommended! See this issue for more. -- -- clangd relies on a JSON compilation database specified as -- compile_commands.json or, for simpler projects, a compile_flags.txt. -- For details on how to automatically generate one using CMake look here. lspconfig.clangd.setup { capabilities = capabilities, on_attach = on_attach } -- clojure-lsp lspconfig.clojure_lsp.setup { capabilities = capabilities, on_attach = on_attach } -- cmake-ls lspconfig.cmake.setup { capabilities = capabilities, on_attach = on_attach } -- cssls -- Currently disabled in favor of tailwindcss --[[ lspconfig.cssls.setup { capabilities = capabilities, on_attach = on_attach } ]] -- cssmodules-language-server lspconfig.cssmodules_ls.setup { capabilities = capabilities, on_attach = on_attach } -- dartls lspconfig.dartls.setup { capabilities = capabilities, on_attach = on_attach } -- dockerfile-ls lspconfig.dockerls.setup { capabilities = capabilities, on_attach = on_attach } -- dot-language-server lspconfig.dotls.setup { capabilities = capabilities, on_attach = on_attach } -- efm-language-server -- Not currently used because EFM requires a lot of setup, and is not terribly -- useful. --[[ lspconfig.efm.setup { capabilities = capabilities, on_attach = on_attach } ]] -- elixir-ls local elixir_ls_bin = fs.os_cmd_to_string("command -v elixir-ls") lspconfig.elixirls.setup { capabilities = capabilities, cmd = {elixir_ls_bin}, on_attach = on_attach } -- emmet-ls (for HTML templating/snippet expansion) lspconfig.emmet_ls.setup { capabilities = capabilities, on_attach = on_attach } -- erlang-ls lspconfig.erlangls.setup { capabilities = capabilities, on_attach = on_attach } -- graphql-language-server lspconfig.graphql.setup { capabilities = capabilities, on_attach = on_attach } -- haskell-language-server lspconfig.hls.setup { capabilities = capabilities, on_attach = on_attach } -- html-ls --Enable (broadcasting) snippet capability for completion local html_capabilities = require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities()) html_capabilities.textDocument.completion.completionItem.snippetSupport = true lspconfig.html.setup { capabilities = html_capabilities, on_attach = on_attach } -- intelephense lspconfig.intelephense.setup { capabilities = capabilities, on_attach = on_attach } -- jsonls -- vscode-json-languageserver only provides range formatting. You can map a -- command that applies range formatting to the entire document: lspconfig.jsonls.setup { capabilities = capabilities, commands = { Format = { function() vim.lsp.buf.range_formatting({}, {0, 0}, {vim.fn.line("$"), 0}) end } }, on_attach = on_attach } -- kotlin-language-server -- This server is currently awful. Just terrible. You should not use it if you -- have any other options. Use IntelliJ IDEA, use Android Studio, use VSCode, -- use anything else but this if you can. It is far too slow, and does not -- integrate well with non-VSCode editors. local kotlin_language_server_binary = fs.os_cmd_to_string("command -v kotlin-language-server") lspconfig.kotlin_language_server.setup { capabilities = capabilities, cmd = {kotlin_language_server_binary}, filetypes = {"kotlin"}, on_attach = on_attach, root_dir = util.root_pattern("settings.gradle", "settings.gradle.kts", ".git"), settings = { -- Most of these settings are defaults, but for some reason it was necessary -- to specify them to get the kotlin-language-server to work. kotlin = { compiler = { jvm = { target = "default" } }, completion = { snippets = { enabled = true } }, debounceTime = 250, debugAdapter = { path = "" }, externalSources = { autoConvertToKotlin = true, useKlsScheme = true }, indexing = { enabled = true }, languageServer = { debugAttach = { autoSuspend = false, enabled = false, port = 5005 }, enabled = true, path = kotlin_language_server_binary, port = 0, transport = "stdio" }, linting = { debounceTime = 250 }, snippetsEnabled = true, trace = { server = "off" } } }, single_file_support = true } -- lua-language-server local sumneko_binary = fs.os_cmd_to_string("command -v lua-language-server") local runtime_path = vim.split(package.path, ";") table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?/init.lua") lspconfig.sumneko_lua.setup { capabilities = capabilities, -- cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"}, cmd = {sumneko_binary}, settings = { Lua = { runtime = { -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim) version = "LuaJIT", -- Setup your lua path path = runtime_path }, diagnostics = { -- Get the language server to recognize the `vim` global globals = {"vim"} }, workspace = { -- Make the server aware of Neovim runtime files library = vim.api.nvim_get_runtime_file("", true), -- Neovim does not currently support third party tools checkThirdParty = false }, -- Do not send telemetry data containing a randomized but unique identifier telemetry = { enable = false } } }, on_attach = on_attach } -- Perl-Language-Server -- To use the language server, ensure that you have Perl::LanguageServer -- installed and perl command is on your path. lspconfig.perlls.setup { capabilities = capabilities, on_attach = on_attach } -- pyright lspconfig.pyright.setup { capabilities = capabilities, on_attach = on_attach } -- rls (Rust) lspconfig.rls.setup { capabilities = capabilities, -- Use nightly build cmd = {"rustup", "run", "nightly", "rls"}, on_attach = on_attach } -- sqlls (SQL LanguageServer written in Node.js) --[[ local sql_ls_bin = fs.os_cmd_to_string("command -v sql-language-server") lspconfig.sqlls.setup { capabilities = capabilities, cmd = {sql_ls_bin}, on_attach = on_attach } ]] -- sqls (SQL LanguageServer written in Go) -- To install sqls, run this command: -- go get github.com/lighttiger2505/sqls local sqls_cmd = fs.os_cmd_to_string("command -v sqls") local sqls_config_file = os.getenv("HOME") .. "/.config/sqls/config.yml" lspconfig.sqls.setup { capabilities = capabilities, cmd = {sqls_cmd, "-config", sqls_config_file}, on_attach = on_attach } -- tailwind-css lspconfig.tailwindcss.setup { capabilities = capabilities, on_attach = on_attach } -- terraform-lsp lspconfig.terraform_lsp.setup { capabilities = capabilities, on_attach = on_attach } -- texlab (LaTeX) lspconfig.texlab.setup { capabilities = capabilities, on_attach = on_attach } -- typescript-language-server lspconfig.tsserver.setup { capabilities = capabilities, on_attach = on_attach } -- vim-language-server lspconfig.vimls.setup { capabilities = capabilities, on_attach = on_attach } -- yaml-language-server lspconfig.yamlls.setup { capabilities = capabilities, on_attach = on_attach }
local MIXTURE = {} MIXTURE.ID = 50; MIXTURE.Results = "weapon_smoke_grenade"; MIXTURE.Ingredients = {'weapon_molotov', 'item_chunk_metal'}; MIXTURE.Requires = { {GENE_INTELLIGENCE, 1}, {GENE_DEXTERITY, 2}, {SKILL_CRAFTINESS, 2}, }; MIXTURE.Free = true; MIXTURE.RequiresHeatSource = false; MIXTURE.RequiresWaterSource = false; MIXTURE.RequiresSawHorse = false; function MIXTURE.CanMix ( player, pos ) return true; end GM:RegisterMixture(MIXTURE);
local BulletType = require("app.map.BulletType") local PlayerProperties = {} local defines = {} local player = { maxHp = 1500, -- 最大 HP maxArmor = 40, -- 最大装甲 speed = 200, -- 速度 maxMagic = 200, -- 最大 MP minDamage = 420, -- 火炮的最小伤害 maxDamage = 480, -- 火炮的最大伤害 cooldown = 3.0, -- 火炮冷却时间 critical = 10, -- 暴击率 hitrate = 70, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A01 = 4, A02 = 4, A03 = 4}, godSkills = {GS01 = 1, GS02 = 1, GS03 = 1, GS04 = 1, GS05 = 1}, } defines["Player001"] = player ------------------ local player = { maxHp = 2500, -- 最大 HP maxArmor = 60, -- 最大装甲 speed = 220, -- 速度 maxMagic = 400, -- 最大 MP minDamage = 700, -- 火炮的最小伤害 maxDamage = 900, -- 火炮的最大伤害 cooldown = 2.9, -- 火炮冷却时间 critical = 11, -- 暴击率 hitrate = 69, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A04 = 5, A05 = 5, A06 = 5, A07 = 5}, godSkills = {GS01 = 2, GS02 = 2, GS03 = 2, GS04 = 2, GS05 = 2}, } defines["Player002"] = player -------------------- local player = { maxHp = 4000, -- 最大 HP maxArmor = 100, -- 最大装甲 speed = 240, -- 速度 maxMagic = 600, -- 最大 MP minDamage = 800, -- 火炮的最小伤害 maxDamage = 1000, -- 火炮的最大伤害 cooldown = 2.5, -- 火炮冷却时间 critical = 12, -- 暴击率 hitrate = 68, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 220, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A08 = 6, A09 = 6, A10 = 6, A11 = 6, A12 = 6}, godSkills = {GS01 = 3, GS02 = 3, GS03 = 3, GS04 = 3, GS05 = 3}, } defines["Player003"] = player -------------------- local player = { maxHp = 6000, -- 最大 HP maxArmor = 200, -- 最大装甲 speed = 260, -- 速度 maxMagic = 800, -- 最大 MP minDamage = 1500, -- 火炮的最小伤害 maxDamage = 1900, -- 火炮的最大伤害 cooldown = 2.7, -- 火炮冷却时间 critical = 13, -- 暴击率 hitrate = 67, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A08 = 6, A09 = 6, A10 = 6, A11 = 6, A12 = 6}, godSkills = {GS01 = 4, GS02 = 4, GS03 = 4, GS04 = 4, GS05 = 4}, } defines["Player004"] = player -------------------- local player = { maxHp = 8500, -- 最大 HP maxArmor = 300, -- 最大装甲 speed = 280, -- 速度 maxMagic = 1000, -- 最大 MP minDamage = 2200, -- 火炮的最小伤害 maxDamage = 2600, -- 火炮的最大伤害 cooldown = 2.6, -- 火炮冷却时间 critical = 14, -- 暴击率 hitrate = 66, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A12 = 7, A13 = 7, A14 = 7, A15 = 7, A16 = 7, A17 = 7}, godSkills = {GS01 = 5, GS02 = 5, GS03 = 5, GS04 = 5, GS05 = 5}, } defines["Player005"] = player -------------------- local player = { maxHp = 11500, -- 最大 HP maxArmor = 400, -- 最大装甲 speed = 300, -- 速度 maxMagic = 1200, -- 最大 MP minDamage = 2800, -- 火炮的最小伤害 maxDamage = 3400, -- 火炮的最大伤害 cooldown = 2.5, -- 火炮冷却时间 critical = 15, -- 暴击率 hitrate = 65, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A12 = 7, A13 = 7, A14 = 7, A15 = 7, A16 = 7, A17 = 7}, godSkills = {GS01 = 6, GS02 = 6, GS03 = 6, GS04 = 6, GS05 = 6}, } defines["Player006"] = player -------------------- local player = { maxHp = 15000, -- 最大 HP maxArmor = 520, -- 最大装甲 speed = 320, -- 速度 maxMagic = 1400, -- 最大 MP minDamage = 3400, -- 火炮的最小伤害 maxDamage = 4000, -- 火炮的最大伤害 cooldown = 2.4, -- 火炮冷却时间 critical = 16, -- 暴击率 hitrate = 64, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A12 = 7, A13 = 7, A14 = 7, A15 = 7, A16 = 7, A17 = 7}, godSkills = {GS01 = 7, GS02 = 7, GS03 = 7, GS04 = 7, GS05 = 7}, } defines["Player007"] = player -------------------- local player = { maxHp = 19000, -- 最大 HP maxArmor = 660, -- 最大装甲 speed = 340, -- 速度 maxMagic = 1600, -- 最大 MP minDamage = 4020, -- 火炮的最小伤害 maxDamage = 4820, -- 火炮的最大伤害 cooldown = 2.3, -- 火炮冷却时间 critical = 17, -- 暴击率 hitrate = 63, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A18 = 8, A19 = 8, A20 = 8, A01 = 8, A02 = 8, A03 = 8, A04 = 8}, godSkills = {GS01 = 8, GS02 = 8, GS03 = 8, GS04 = 8, GS05 = 8}, } defines["Player008"] = player -------------------- local player = { maxHp = 23500, -- 最大 HP maxArmor = 820, -- 最大装甲 speed = 360, -- 速度 maxMagic = 1800, -- 最大 MP minDamage = 4680, -- 火炮的最小伤害 maxDamage = 5480, -- 火炮的最大伤害 cooldown = 2.2, -- 火炮冷却时间 critical = 18, -- 暴击率 hitrate = 62, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A04 = 9, A05 = 9, A06 = 9, A08 = 9, A09 = 9, A10 = 9, A12 = 9, A13 = 9}, godSkills = {GS01 = 9, GS02 = 9, GS03 = 9, GS04 = 9, GS05 = 9}, } defines["Player009"] = player -------------------- local player = { maxHp = 29500, -- 最大 HP maxArmor = 1000, -- 最大装甲 speed = 380, -- 速度 maxMagic = 2000, -- 最大 MP minDamage = 5320, -- 火炮的最小伤害 maxDamage = 6120, -- 火炮的最大伤害 cooldown = 2.1, -- 火炮冷却时间 critical = 19, -- 暴击率 hitrate = 61, -- 命中率 heavyArmorDamage = 125, -- 对重甲炮台的伤害(100%) lightArmorDamage = 100, -- 对轻甲炮台的伤害(100%) magicShieldDamage = 80, -- 对魔法炮台的伤害(100%) criticalPower = 1.5, -- 暴击伤害的威力 150% fireRange = 130, -- 射程 bulletType = BulletType.RED_CANNON, genius = {A14 = 10, A11 = 10, A13 = 10, A18 = 10, A09 = 10, A15 = 10, A17 = 10, A10 = 10, A20 = 10}, godSkills = {GS01 = 10, GS02 = 10, GS03 = 10, GS04 = 10, GS05 = 10}, } defines["Player010"] = player -------------------- function PlayerProperties.get(id) return clone(defines[id]) end return PlayerProperties
local user = {} local val = require "valua" local access = require "sailor.access" -- Attributes and their validation rules user.attributes = { --{<attribute> = < "safe" or validation function, requires valua >} {id = "safe"}, {username = val:new().not_empty() }, {password = val:new().not_empty().len(6,10) } } user.db = { key = 'id', table = 'users' } user.relations = { posts = {relation = "HAS_MANY", model = "post", attribute = "author_id"}, comments = {relation = "HAS_MANY", model = "comment", attribute = "author_id"} } -- Public Methods function user.test() return "test" end function user.authenticate(login,password,use_hashing) if use_hashing == nil then use_hashing = true end access.settings({model = 'user', hashing = use_hashing}) return access.login(login,password) end function user.logout() return access.logout() end return user
--[[ @author Ilias-Timon Poulakis (FeedTheCat) @license MIT @version 1.0.0 @about A set of scripts for quick razor editing using arrow keys ]] reaper.Undo_BeginBlock() reaper.PreventUIRefresh(1) -- Set edit cursor to razor edit start pos local has_razor_edit = false local GetSetTrackInfo = reaper.GetSetMediaTrackInfo_String local last_razor_edit for i = 0, reaper.CountTracks(0) - 1 do local track = reaper.GetTrack(0, i) local _, razor_edit = GetSetTrackInfo(track, 'P_RAZOREDITS', '', false) if razor_edit ~= '' then has_razor_edit = true last_razor_edit = razor_edit elseif last_razor_edit then GetSetTrackInfo(track, 'P_RAZOREDITS', last_razor_edit, true) last_razor_edit = nil end end if not has_razor_edit then -- Track: Go to next track reaper.Main_OnCommand(40285, 0) local cursor_pos = reaper.GetCursorPosition() reaper.SelectAllMediaItems(0, false) -- Select all items on selected tracks that cross edit cursor for t = 0, reaper.CountSelectedTracks(0) - 1 do local track = reaper.GetSelectedTrack(0, t) for i = 0, reaper.CountTrackMediaItems(track) - 1 do local item = reaper.GetTrackMediaItem(track, i) local item_length = reaper.GetMediaItemInfo_Value(item, 'D_LENGTH') local item_start_pos = reaper.GetMediaItemInfo_Value(item, 'D_POSITION') local item_end_pos = item_start_pos + item_length -- Check if item crosses start of region if item_start_pos <= cursor_pos and item_end_pos - 0.0001 > cursor_pos then reaper.SetMediaItemSelected(item, true) end if item_start_pos > cursor_pos then break end end end reaper.UpdateArrange() end reaper.PreventUIRefresh(-1) reaper.Undo_EndBlock('Resize razor edit down by one track', -1)
local config = { double_buffer = true, update_interval = 1, alignment = 'bottom_right', gap_x = 00-1920 --[[100 + 320]], gap_y = 00 --[[100 + 200]], own_window = true, own_window_title = 'conky', own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', own_window_argb_visual = true, own_window_transparent = true, own_window_argb_value = 255, border_inner_margin = 8, -- background = true, border_width = 1, cpu_avg_samples = 2, draw_borders = false, draw_graph_borders = true, draw_outline = false, draw_shades = false, use_xft = true, font = 'Quicksand:size=14', minimum_height = 5, minimum_width = 250, net_avg_samples = 2, no_buffers = true, -- Show only actual RAM usage, no buffers or cache out_to_console = false, out_to_stderr = false, extra_newline = false, stippled_borders = 0, uppercase = false, use_spacer = 'none', show_graph_scale = false, show_graph_range = false, } local dark = io.open(os.getenv("HOME").."/.dark") if dark then config.default_color = '#ffffff' config.color1 = "#ffffff" config.color2 = "#aaaaaa" config.color3 = "#df74b1" else config.default_color = '#525564' config.color1 = "#494c5b" config.color2 = "#333333" config.color3 = "#fb006b" end return config
-- require("project_nvim").setup { -- -- your configuration comes here -- -- or leave it empty to use the default settings -- -- refer to the configuration section below -- } -- require('telescope').load_extension('projects') require'telescope'.load_extension('project')
azura_shadowform = class({}) LinkLuaModifier( "modifier_azura_shadowform", "custom_abilities/azura_shadowform/modifier_azura_shadowform", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- Ability Start function azura_shadowform:OnSpellStart() -- get references local duration = self:GetSpecialValueFor("duration_tooltip") -- remove previously cast modifier self:CancelAbility() -- add modifier self:GetCaster():AddNewModifier( self:GetCaster(), self, "modifier_azura_shadowform", { duration = duration } ) -- swap layout self:SetLayout( false ) -- play effects self:PlayEffects() end -------------------------------------------------------------------------------- -- Helper functions azura_shadowform.layout_main = true -- which ability is currently shown azura_shadowform.affected_units = {} -- affected units function azura_shadowform:AddAffectedUnits( unit ) table.insert(self.affected_units,unit) end function azura_shadowform:CancelAbility() -- release units under buffs for _,unit in pairs(self.affected_units) do local modifier = unit:FindModifierByNameAndCaster("modifier_azura_shadowform", self:GetCaster()) if modifier~=nil then modifier:Destroy() end end self.affected_units = {} -- reset layout self:SetLayout( true ) -- stop effects -- self:StopEffects() end function azura_shadowform:SetLayout( main ) -- if different ability is shown, swap if self.layout_main~=main then local ability_main = "azura_shadowform" local ability_sub = "azura_shadowform_cancel" -- swap self:GetCaster():SwapAbilities( ability_main, ability_sub, main, (not main) ) self.layout_main = main end end -------------------------------------------------------------------------------- -- Effects function azura_shadowform:PlayEffects() -- get resources local sound_cast = "Hero_Necrolyte.SpiritForm.Cast" -- play effects -- local nFXIndex = ParticleManager:CreateParticle( particle_target, PATTACH_WORLDORIGIN, nil ) -- ParticleManager:SetParticleControl( nFXIndex, 0, target:GetOrigin() ) -- ParticleManager:SetParticleControl( nFXIndex, 1, target:GetOrigin() ) -- ParticleManager:ReleaseParticleIndex( nFXIndex ) -- play sounds EmitSoundOn( sound_cast, self:GetCaster() ) end function azura_shadowform:StopEffects() -- get resources local sound_cast = "Hero_Necrolyte.SpiritForm.Cast" -- play effects -- local nFXIndex = ParticleManager:CreateParticle( particle_target, PATTACH_WORLDORIGIN, nil ) -- ParticleManager:SetParticleControl( nFXIndex, 0, target:GetOrigin() ) -- ParticleManager:SetParticleControl( nFXIndex, 1, target:GetOrigin() ) -- ParticleManager:ReleaseParticleIndex( nFXIndex ) -- play sounds StopSoundOn( sound_cast, self:GetCaster() ) end -------------------------------------------------------------------------------- -- Helper Ability azura_shadowform_cancel = class({}) function azura_shadowform_cancel:OnSpellStart() local modifier = self:GetCaster():FindModifierByNameAndCaster( "modifier_azura_shadowform", self:GetCaster() ) if modifier~=nil then modifier:Destroy() end end
class("SubmitWBAwardCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot5 = nowWorld.GetBossProxy(slot4) pg.ConnectionMgr.GetInstance():Send(34511, { boss_id = slot1:getBody().bossId }, 34512, function (slot0) if slot0.result == 0 then slot0:RemoveSelfBoss() slot0:ClearRank(slot1) slot0.ClearRank:sendNotification(GAME.WORLD_BOSS_SUBMIT_AWARD_DONE, { items = PlayerConst.addTranDrop(slot0.drops) }) else pg.TipsMgr.GetInstance():ShowTips(i18n1("领取失败") .. slot0.result) end end) end return class("SubmitWBAwardCommand", pm.SimpleCommand)
local skynet = require "skynet" local debugPort = tonumber(skynet.getenv("debugPort")) skynet.start( function() print("------------------------------------") skynet.newservice("debug_console", debugPort) print(string.format("[DebugConsole] Port : %s", debugPort)) local centerSvc = skynet.newservice("center") skynet.call(centerSvc, "lua", "getRoleBaseInfo", 1) -- skynet.newservice("gate_mgr") -- skynet.newservice("auth") -- skynet.newservice("gate_mgr") -- skynet.newservice("gamelog") -- local datacenterd = skynet.newservice("datacenterd") -- skynet.name(SERVICE.DATACENTER, datacenterd) -- skynet.newservice("main_db") -- skynet.newservice("agent_mgr") -- skynet.newservice("sys_storage") -- skynet.newservice("simple_http") -- skynet.newservice("channel_svc") -- skynet.newservice("marquee") -- skynet.newservice("record") -- skynet.newservice("chat") -- skynet.newservice("statistic") -- skynet.newservice("mail_svc") -- skynet.newservice("perfor_monitor") -- skynet.newservice("word_filter") -- skynet.newservice("activity") -- skynet.newservice("game_center") -- skynet.newservice("game_center_pool") -- skynet.newservice("sys_open") -- skynet.newservice("pvp") skynet.exit() end )
--[[ Netherstorm -- Disembodied Exarch.lua This script was written and is protected by the GPL v2. This script was released by BlackHer0 of the BLUA Scripting Project. Please give proper accredidations when re-releasing or sharing this script with others in the emulation community. ~~End of License Agreement -- BlackHer0, July, 24th, 2008. ]] function Exarch_OnEnterCombat(Unit,Event) Unit:RegisterEvent("Exarch_Fortitude",2000,0) Unit:RegisterEvent("Exarch_Devotion",1000,0) end function Exarch_Fortitude(Unit,Event) Unit:CastSpellOnTarget(36004,Unit:GetRandomFriend()) end function Exarch_Devotion(Unit,Event) Unit:CastSpell(8258) end function Exarch_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function Exarch_OnDied(Unit,Event) Unit:RemoveEvents() end RegisterUnitEvent (21058, 1, "Exarch_OnEnterCombat") RegisterUnitEvent (21058, 2, "Exarch_OnLeaveCombat") RegisterUnitEvent (21058, 4, "Exarch_OnDied")
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") -- Local Vars ----------------------------------- local ACF = ACF local Weapons = ACF.Classes.Weapons local AmmoTypes = ACF.Classes.AmmoTypes local TimerCreate = timer.Create local HookRun = hook.Run local EMPTY = { Type = "Empty", PropMass = 0, ProjMass = 0, Tracer = 0 } -- TODO: Replace with CFrame as soon as it's available local function UpdateTotalAmmo(Entity) local Total = 0 for Crate in pairs(Entity.Crates) do if Crate:CanConsume() then Total = Total + Crate.Ammo end end WireLib.TriggerOutput(Entity, "Total Ammo", Total) end do -- Spawn and Update functions -------------------------------- local CheckLegal = ACF_CheckLegal local function VerifyData(Data) if not isstring(Data.Weapon) then Data.Weapon = Data.Id end local Class = ACF.GetClassGroup(Weapons, Data.Weapon) if not Class then Class = ACF.GetClassGroup(Weapons, "C") Data.Destiny = "Weapons" Data.Weapon = "C" Data.Caliber = 50 elseif Class.IsScalable then local Weapon = Class.Lookup[Data.Weapon] if Weapon then Data.Weapon = Class.ID Data.Caliber = Weapon.Caliber end end -- Verifying and clamping caliber value if Class.IsScalable then local Bounds = Class.Caliber local Caliber = ACF.CheckNumber(Data.Caliber, Bounds.Base) Data.Caliber = math.Clamp(Caliber, Bounds.Min, Bounds.Max) end do -- External verifications if Class.VerifyData then Class.VerifyData(Data, Class) end HookRun("ACF_VerifyData", "acf_gun", Data, Class) end end local function CreateInputs(Entity, Data, Class, Weapon) local List = { "Fire (Fires the weapon)", "Unload (Empties the breech/magazine)", "Reload (Forces the weapon to reload)" } if Class.SetupInputs then Class.SetupInputs(List, Entity, Data, Class, Weapon) end HookRun("ACF_OnSetupInputs", "acf_gun", List, Entity, Data, Class, Weapon) if Entity.Inputs then Entity.Inputs = WireLib.AdjustInputs(Entity, List) else Entity.Inputs = WireLib.CreateInputs(Entity, List) end end local function CreateOutputs(Entity, Data, Class, Weapon) local List = { "Ready (Whether the weapon can fire or not)", "Status (Current state of the weapon) [STRING]", "Total Ammo (Rounds immediately available to the weapon)", "Entity (The weapon itself) [ENTITY]", "Shots Left (How many rounds are left before a reload is required)", "Rate of Fire (How fast the weapon can fire)", "Reload Time (How long a reload will take)", "Projectile Mass (The mass of the projectile)", "Muzzle Velocity (The speed of the projectile, leaving the barrel)" } if Class.SetupOutputs then Class.SetupOutputs(List, Entity, Data, Class, Weapon) end HookRun("ACF_OnSetupOutputs", "acf_gun", List, Entity, Data, Class, Weapon) if Entity.Outputs then Entity.Outputs = WireLib.AdjustOutputs(Entity, List) else Entity.Outputs = WireLib.CreateOutputs(Entity, List) end end local function GetSound(Caliber, Class, Weapon) local Result = Weapon and Weapon.Sound or Class.Sound local Sounds = Class.Sounds if Sounds then local Lowest = math.huge for Current, Sound in pairs(Sounds) do if Caliber <= Current and Current <= Lowest then Lowest = Current Result = Sound end end end return Result end local function GetMass(Model, PhysObj, Class, Weapon) if Weapon then return Weapon.Mass end local Volume = PhysObj:GetVolume() local Factor = Volume / ACF.GetModelVolume(Model) return math.Round(Class.Mass * Factor) end local function UpdateWeapon(Entity, Data, Class, Weapon) local Model = Weapon and Weapon.Model or Class.Model local Caliber = Weapon and Weapon.Caliber or Data.Caliber local Scale = Weapon and 1 or Caliber / Class.Caliber.Base local Cyclic = ACF.GetWeaponValue("Cyclic", Caliber, Class, Weapon) local MagSize = ACF.GetWeaponValue("MagSize", Caliber, Class, Weapon) or 1 Entity.ACF.Model = Model Entity:SetModel(Model) Entity:SetScale(Scale) -- Storing all the relevant information on the entity for duping for _, V in ipairs(Entity.DataStore) do Entity[V] = Data[V] end Entity.Name = Weapon and Weapon.Name or (Caliber .. "mm " .. Class.Name) Entity.ShortName = Weapon and Weapon.ID or (Caliber .. "mm" .. Class.ID) Entity.EntType = Class.Name Entity.ClassData = Class Entity.Class = Class.ID -- Needed for custom killicons Entity.Caliber = Caliber Entity.MagReload = ACF.GetWeaponValue("MagReload", Caliber, Class, Weapon) Entity.MagSize = math.floor(MagSize) Entity.Cyclic = Cyclic and 60 / Cyclic Entity.ReloadTime = Entity.Cyclic or 1 Entity.Spread = Class.Spread Entity.DefaultSound = GetSound(Caliber, Class) Entity.SoundPath = Entity.SoundPath or Entity.DefaultSound Entity.HitBoxes = ACF.GetHitboxes(Model, Scale) Entity.Long = Class.LongBarrel Entity.NormalMuzzle = Entity:WorldToLocal(Entity:GetAttachment(Entity:LookupAttachment("muzzle")).Pos) Entity.Muzzle = Entity.NormalMuzzle CreateInputs(Entity, Data, Class) CreateOutputs(Entity, Data, Class) -- Set NWvars Entity:SetNWString("WireName", "ACF " .. Entity.Name) Entity:SetNWString("Sound", Entity.SoundPath) Entity:SetNWString("Class", Entity.Class) -- Adjustable barrel length if Entity.Long then local Attachment = Entity:GetAttachment(Entity:LookupAttachment(Entity.Long.NewPos)) Entity.LongMuzzle = Attachment and Entity:WorldToLocal(Attachment.Pos) end if Entity.Cyclic then -- Automatics don't change their rate of fire WireLib.TriggerOutput(Entity, "Reload Time", Entity.Cyclic) WireLib.TriggerOutput(Entity, "Rate of Fire", 60 / Entity.Cyclic) end ACF.Activate(Entity, true) local PhysObj = Entity.ACF.PhysObj if IsValid(PhysObj) then local Mass = GetMass(Model, PhysObj, Class, Weapon) Entity.ACF.LegalMass = Mass PhysObj:SetMass(Mass) end end hook.Add("ACF_OnSetupInputs", "ACF Weapon Fuze", function(Class, List, Entity) if Class ~= "acf_gun" then return end if Entity.Caliber <= ACF.MinFuzeCaliber then return end List[#List + 1] = "Fuze (The time, in seconds, before force detonating any fuze in the round)" end) ------------------------------------------------------------------------------- function MakeACF_Weapon(Player, Pos, Angle, Data) VerifyData(Data) local Class = ACF.GetClassGroup(Weapons, Data.Weapon) local Limit = Class.LimitConVar.Name if not Player:CheckLimit(Limit) then return false end -- Check gun spawn limits local Entity = ents.Create("acf_gun") if not IsValid(Entity) then return end local Weapon = Class.Lookup[Data.Weapon] Player:AddCleanup(Class.Cleanup, Entity) Player:AddCount(Limit, Entity) -- The model isn't automatically updated, so this is required Entity:SetModel(Weapon and Weapon.Model or Class.Model) Entity:SetPlayer(Player) Entity:SetAngles(Angle) Entity:SetPos(Pos) Entity:Spawn() Entity.ACF = {} Entity.Owner = Player -- MUST be stored on ent for PP Entity.BarrelFilter = { Entity } Entity.State = "Empty" Entity.Crates = {} Entity.CurrentShot = 0 Entity.BulletData = EMPTY Entity.DataStore = ACF.GetEntityArguments("acf_gun") UpdateWeapon(Entity, Data, Class, Weapon) WireLib.TriggerOutput(Entity, "Status", "Empty") WireLib.TriggerOutput(Entity, "Entity", Entity) WireLib.TriggerOutput(Entity, "Projectile Mass", 1000) WireLib.TriggerOutput(Entity, "Muzzle Velocity", 1000) if Class.OnSpawn then Class.OnSpawn(Entity, Data, Class, Weapon) end HookRun("ACF_OnEntitySpawn", "acf_gun", Entity, Data, Class, Weapon) Entity:UpdateOverlay(true) do -- Mass entity mod removal local EntMods = Data and Data.EntityMods if EntMods and EntMods.mass then EntMods.mass = nil end end TimerCreate("ACF Ammo Left " .. Entity:EntIndex(), 1, 0, function() if not IsValid(Entity) then return end UpdateTotalAmmo(Entity) end) CheckLegal(Entity) return Entity end ACF.RegisterEntityClass("acf_gun", MakeACF_Weapon, "Weapon", "Caliber") ACF.RegisterLinkSource("acf_gun", "Crates") ------------------- Updating --------------------- function ENT:Update(Data) if self.Firing then return false, "Stop firing before updating the weapon!" end VerifyData(Data) local Class = ACF.GetClassGroup(Weapons, Data.Weapon) local Weapon = Class.Lookup[Data.Weapon] local OldClass = self.ClassData if self.State ~= "Empty" then self:Unload() end if OldClass.OnLast then OldClass.OnLast(self, OldClass) end HookRun("ACF_OnEntityLast", "acf_gun", self, OldClass) ACF.SaveEntity(self) UpdateWeapon(self, Data, Class, Weapon) ACF.RestoreEntity(self) if Class.OnUpdate then Class.OnUpdate(self, Data, Class, Weapon) end HookRun("ACF_OnEntityUpdate", "acf_gun", self, Data, Class, Weapon) if next(self.Crates) then for Crate in pairs(self.Crates) do self:Unlink(Crate) end end self:UpdateOverlay(true) net.Start("ACF_UpdateEntity") net.WriteEntity(self) net.Broadcast() return true, "Weapon updated successfully!" end end --------------------------------------------- do -- Metamethods -------------------------------- do -- Inputs/Outputs/Linking ---------------- WireLib.AddOutputAlias("AmmoCount", "Total Ammo") WireLib.AddOutputAlias("Muzzle Weight", "Projectile Mass") ACF.RegisterClassLink("acf_gun", "acf_ammo", function(This, Crate) if This.Crates[Crate] then return false, "This weapon is already linked to this crate." end if Crate.Weapons[This] then return false, "This weapon is already linked to this crate." end if Crate.IsRefill then return false, "Refill crates cannot be linked to weapons." end if This.Weapon ~= Crate.Weapon then return false, "Wrong ammo type for this weapon." end if This.Caliber ~= Crate.Caliber then return false, "Wrong ammo type for this weapon." end local Blacklist = Crate.RoundData.Blacklist if Blacklist[This.Class] then return false, "The ammo type in this crate cannot be used for this weapon." end This.Crates[Crate] = true Crate.Weapons[This] = true This:UpdateOverlay(true) Crate:UpdateOverlay(true) if This.State == "Empty" then -- When linked to an empty weapon, attempt to load it timer.Simple(0.5, function() -- Delay by 500ms just in case the wiring isn't applied at the same time or whatever weird dupe shit happens if IsValid(This) and IsValid(Crate) and This.State == "Empty" and Crate:CanConsume() then This:Load() end end) end return true, "Weapon linked successfully." end) ACF.RegisterClassUnlink("acf_gun", "acf_ammo", function(This, Crate) if This.Crates[Crate] or Crate.Weapons[This] then if This.CurrentCrate == Crate then This.CurrentCrate = next(This.Crates, Crate) end This.Crates[Crate] = nil Crate.Weapons[This] = nil This:UpdateOverlay(true) Crate:UpdateOverlay(true) return true, "Weapon unlinked successfully." end return false, "This weapon is not linked to this crate." end) ACF.AddInputAction("acf_gun", "Fire", function(Entity, Value) local Bool = tobool(Value) Entity.Firing = Bool if Bool and Entity:CanFire() then Entity:Shoot() end end) ACF.AddInputAction("acf_gun", "Unload", function(Entity, Value) if tobool(Value) and Entity.State == "Loaded" then Entity:Unload() end end) ACF.AddInputAction("acf_gun", "Reload", function(Entity, Value) if tobool(Value) then if Entity.State == "Loaded" then Entity:Unload(true) -- Unload, then reload elseif Entity.State == "Empty" then Entity:Load() end end end) ACF.AddInputAction("acf_gun", "Fuze", function(Entity, Value) Entity.SetFuze = tobool(Value) and math.abs(Value) end) end ----------------------------------------- do -- Shooting ------------------------------ local Trace = util.TraceLine local TraceRes = {} -- Output for traces local TraceData = { start = true, endpos = true, filter = true, mask = MASK_SOLID, output = TraceRes } function ENT:BarrelCheck(Offset) TraceData.start = self:LocalToWorld(Vector()) + Offset TraceData.endpos = self:LocalToWorld(self.Muzzle) + Offset TraceData.filter = self.BarrelFilter Trace(TraceData) if TraceRes.Hit then local Entity = TraceRes.Entity if Entity == self.CurrentUser or Entity:CPPIGetOwner() == self:GetPlayer() then self.BarrelFilter[#self.BarrelFilter + 1] = Entity return self:BarrelCheck(Offset) end end return TraceRes.HitPos end function ENT:CanFire() if not ACF.GunsCanFire then return false end -- Disabled by the server if not self.Firing then return false end -- Nobody is holding the trigger if self.Disabled then return false end -- Disabled if self.State ~= "Loaded" then -- Weapon is not loaded if self.State == "Empty" and not self.Retry then if not self:Load() then self:EmitSound("weapons/pistol/pistol_empty.wav", 70, 100, ACF.Volume) -- Click! end self.Retry = true timer.Simple(1, function() -- Try again after a second if IsValid(self) then self.Retry = nil if self:CanFire() then self:Shoot() end end end) end return false end if HookRun("ACF_FireShell", self) == false then return false end -- Something hooked into ACF_FireShell said no return true end function ENT:GetSpread() local SpreadScale = ACF.SpreadScale local IaccMult = math.Clamp(((1 - SpreadScale) / 0.5) * ((self.ACF.Health / self.ACF.MaxHealth) - 1) + 1, 1, SpreadScale) return self.Spread * ACF.GunInaccuracyScale * IaccMult end function ENT:Shoot() local Cone = math.tan(math.rad(self:GetSpread())) local randUnitSquare = (self:GetUp() * (2 * math.random() - 1) + self:GetRight() * (2 * math.random() - 1)) local Spread = randUnitSquare:GetNormalized() * Cone * (math.random() ^ (1 / ACF.GunInaccuracyBias)) local Dir = (self:GetForward() + Spread):GetNormalized() local Velocity = ACF_GetAncestor(self):GetVelocity() if self.BulletData.CanFuze and self.SetFuze then local Variance = math.Rand(-0.015, 0.015) * math.max(0, 203 - self.Caliber) * 0.01 self.Fuze = math.max(self.SetFuze, 0.02) + Variance -- If possible, we're gonna update the fuze time else self.Fuze = nil end self.CurrentUser = self:GetUser(self.Inputs.Fire.Src) -- Must be updated on every shot self.BulletData.Owner = self.CurrentUser self.BulletData.Gun = self -- because other guns share this table self.BulletData.Pos = self:BarrelCheck(Velocity * engine.TickInterval()) self.BulletData.Flight = Dir * self.BulletData.MuzzleVel * 39.37 + Velocity self.BulletData.Fuze = self.Fuze -- Must be set when firing as the table is shared self.BulletData.Filter = self.BarrelFilter AmmoTypes[self.BulletData.Type]:Create(self, self.BulletData) -- Spawn projectile self:MuzzleEffect() self:Recoil() local Energy = ACF.Kinetic(self.BulletData.MuzzleVel * 39.37, self.BulletData.ProjMass).Kinetic if Energy > 50 then -- Why yes, this is completely arbitrary! 20mm AC AP puts out about 115, 40mm GL HE puts out about 20 ACF.Overpressure(self:LocalToWorld(self.Muzzle) - self:GetForward() * 5, Energy, self.BulletData.Owner, self, self:GetForward(), 30) end if self.MagSize then -- Mag-fed/Automatically loaded self.CurrentShot = self.CurrentShot - 1 if self.CurrentShot > 0 then -- Not empty self:Chamber(self.Cyclic) else -- Reload the magazine self:Load() end else -- Single-shot/Manually loaded self.CurrentShot = 0 -- We only have one shot, so shooting means we're at 0 self:Chamber() end end function ENT:MuzzleEffect() if not ACF.GunsCanSmoke then return end local Effect = EffectData() Effect:SetEntity(self) Effect:SetScale(self.BulletData.PropMass) Effect:SetMagnitude(self.ReloadTime) util.Effect("ACF_Muzzle_Flash", Effect, true, true) end function ENT:ReloadEffect(Time) local Effect = EffectData() Effect:SetEntity(self) Effect:SetScale(0) Effect:SetMagnitude(Time) util.Effect("ACF_Muzzle_Flash", Effect, true, true) end function ENT:Recoil() if not ACF.RecoilPush then return end local MassCenter = self:LocalToWorld(self:GetPhysicsObject():GetMassCenter()) local Energy = self.BulletData.ProjMass * self.BulletData.MuzzleVel * 39.37 + self.BulletData.PropMass * 3000 * 39.37 ACF.KEShove(self, MassCenter, -self:GetForward(), Energy) end end ----------------------------------------- do -- Loading ------------------------------- local function FindNextCrate(Gun) if not next(Gun.Crates) then return end -- Find the next available crate to pull ammo from -- local Select = next(Gun.Crates, Gun.CurrentCrate) or next(Gun.Crates) local Start = Select repeat if Select:CanConsume() then return Select end -- Return select Select = next(Gun.Crates, Select) or next(Gun.Crates) until Select == Start end function ENT:Unload(Reload) if self.Disabled then return end if IsValid(self.CurrentCrate) then self.CurrentCrate:Consume(-1) end -- Put a shell back in the crate, if possible local Time = self.MagReload or self.ReloadTime self:ReloadEffect(Reload and Time * 2 or Time) self:SetState("Unloading") self:EmitSound("weapons/357/357_reload4.wav", 70, 100, ACF.Volume) self.CurrentShot = 0 self.BulletData = EMPTY WireLib.TriggerOutput(self, "Shots Left", 0) timer.Simple(Time, function() if IsValid(self) then if Reload then self:Load() else self:SetState("Empty") end end end) end function ENT:Chamber(TimeOverride) if self.Disabled then return end local Crate = FindNextCrate(self) if IsValid(Crate) then -- Have a crate, start loading self:SetState("Loading") -- Set our state to loading Crate:Consume() -- Take one round of ammo out of the current crate (Must be called *after* setting the state to loading) local BulletData = Crate.BulletData local Time = TimeOverride or (ACF.BaseReload + (BulletData.CartMass * ACF.MassToTime * 0.666) + (BulletData.ProjLength * ACF.LengthToTime * 0.333)) -- Mass contributes 2/3 of the reload time with length contributing 1/3 self.CurrentCrate = Crate self.ReloadTime = Time self.BulletData = BulletData self.NextFire = ACF.CurTime + Time if not TimeOverride then -- Mag-fed weapons don't change rate of fire WireLib.TriggerOutput(self, "Reload Time", self.ReloadTime) WireLib.TriggerOutput(self, "Rate of Fire", 60 / self.ReloadTime) end WireLib.TriggerOutput(self, "Shots Left", self.CurrentShot) timer.Simple(Time, function() if IsValid(self) then self:SetState("Loaded") self.NextFire = nil if self.CurrentShot == 0 then self.CurrentShot = self.MagSize end WireLib.TriggerOutput(self, "Shots Left", self.CurrentShot) WireLib.TriggerOutput(self, "Projectile Mass", math.Round(self.BulletData.ProjMass * 1000, 2)) WireLib.TriggerOutput(self, "Muzzle Velocity", math.Round(self.BulletData.MuzzleVel * ACF.Scale, 2)) if self:CanFire() then self:Shoot() end end end) else -- No available crate to pull ammo from, out of ammo! self:SetState("Empty") self.CurrentShot = 0 self.BulletData = EMPTY WireLib.TriggerOutput(self, "Shots Left", 0) end end function ENT:Load() if self.Disabled then return false end if not FindNextCrate(self) then -- Can't load without having ammo being provided self:SetState("Empty") self.CurrentShot = 0 self.BulletData = EMPTY WireLib.TriggerOutput(self, "Shots Left", 0) return false end self:SetState("Loading") if self.MagReload then -- Mag-fed/Automatically loaded self:EmitSound("weapons/357/357_reload4.wav", 70, 100, ACF.Volume) self.NextFire = ACF.CurTime + self.MagReload WireLib.TriggerOutput(self, "Shots Left", self.CurrentShot) timer.Simple(self.MagReload, function() -- Reload timer if IsValid(self) then self:Chamber(self.Cyclic) -- One last timer to chamber the round end end) else -- Single-shot/Manually loaded self:Chamber() end return true end end ----------------------------------------- do -- Duplicator Support -------------------- function ENT:PreEntityCopy() if next(self.Crates) then local Entities = {} for Crate in pairs(self.Crates) do Entities[#Entities + 1] = Crate:EntIndex() end duplicator.StoreEntityModifier(self, "ACFCrates", Entities) end -- Wire dupe info self.BaseClass.PreEntityCopy(self) end function ENT:PostEntityPaste(Player, Ent, CreatedEntities) local EntMods = Ent.EntityMods -- Backwards compatibility if EntMods.ACFAmmoLink then local Entities = EntMods.ACFAmmoLink.entities for _, EntID in ipairs(Entities) do self:Link(CreatedEntities[EntID]) end EntMods.ACFAmmoLink = nil end if EntMods.ACFCrates then for _, EntID in pairs(EntMods.ACFCrates) do self:Link(CreatedEntities[EntID]) end EntMods.ACFCrates = nil end self.BaseClass.PostEntityPaste(self, Player, Ent, CreatedEntities) end end ----------------------------------------- do -- Overlay ------------------------------- local Text = "%s\n\nRate of Fire: %s rpm\nShots Left: %s\nAmmo Available: %s" function ENT:UpdateOverlayText() local AmmoType = self.BulletData.Type .. (self.BulletData.Tracer ~= 0 and "-T" or "") local Firerate = math.floor(60 / self.ReloadTime) local CrateAmmo = 0 local Status if not next(self.Crates) then Status = "Not linked to an ammo crate!" else Status = self.State == "Loaded" and "Loaded with " .. AmmoType or self.State end for Crate in pairs(self.Crates) do -- Tally up the amount of ammo being provided by active crates if Crate:CanConsume() then CrateAmmo = CrateAmmo + Crate.Ammo end end return Text:format(Status, Firerate, self.CurrentShot, CrateAmmo) end end ----------------------------------------- do -- Misc ---------------------------------- local MaxDistance = ACF.LinkDistance * ACF.LinkDistance local UnlinkSound = "physics/metal/metal_box_impact_bullet%s.wav" function ENT:ACF_Activate(Recalc) local PhysObj = self.ACF.PhysObj if not self.ACF.Area then self.ACF.Area = PhysObj:GetSurfaceArea() * 6.45 end local Volume = PhysObj:GetVolume() * 2 local Armour = self.Caliber local Health = Volume / ACF.Threshold --Setting the threshold of the prop Area gone local Percent = 1 if Recalc and self.ACF.Health and self.ACF.MaxHealth then Percent = self.ACF.Health / self.ACF.MaxHealth end self.ACF.Health = Health * Percent self.ACF.MaxHealth = Health self.ACF.Armour = Armour * (0.5 + Percent * 0.5) self.ACF.MaxArmour = Armour self.ACF.Type = "Prop" end function ENT:SetState(State) self.State = State self:UpdateOverlay() WireLib.TriggerOutput(self, "Status", State) WireLib.TriggerOutput(self, "Ready", State == "Loaded" and 1 or 0) UpdateTotalAmmo(self) end function ENT:Think() if next(self.Crates) then local Pos = self:GetPos() for Crate in pairs(self.Crates) do if Crate:GetPos():DistToSqr(Pos) > MaxDistance then local Sound = UnlinkSound:format(math.random(1, 3)) Crate:EmitSound(Sound, 70, 100, ACF.Volume) self:EmitSound(Sound, 70, 100, ACF.Volume) self:Unlink(Crate) end end end self:NextThink(ACF.CurTime + 1) return true end function ENT:Enable() self:UpdateOverlay() end function ENT:Disable() self.Firing = false -- Stop firing self:Unload() -- Unload the gun for being a big baddie self:UpdateOverlay() end function ENT:CanProperty(_, Property) if self.Long and Property == "bodygroups" then timer.Simple(0, function() if not IsValid(self) then return end local Long = self.Long local IsLong = self:GetBodygroup(Long.Index) == Long.Submodel self.Muzzle = IsLong and self.LongMuzzle or self.NormalMuzzle end) end return true end function ENT:OnRemove() local Class = self.ClassData if Class.OnLast then Class.OnLast(self, Class) end HookRun("ACF_OnEntityLast", "acf_gun", self, Class) for Crate in pairs(self.Crates) do self:Unlink(Crate) end timer.Remove("ACF Ammo Left " .. self:EntIndex()) WireLib.Remove(self) end end ----------------------------------------- end
object_mobile_dressed_dark_jedi_elder_male_rodian_03 = object_mobile_shared_dressed_dark_jedi_elder_male_rodian_03:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_elder_male_rodian_03, "object/mobile/dressed_dark_jedi_elder_male_rodian_03.iff")
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules local LayeredClothingEnabled = require(Modules.Config.LayeredClothingEnabled) local AvatarExperienceConstants = require(Modules.AvatarExperience.Common.Constants) local HumanoidDescriptionIdToName = { ["2"] = "GraphicTShirt", ["8"] = "HatAccessory", ["41"] = "HairAccessory", ["42"] = "FaceAccessory", ["43"] = "NeckAccessory", ["44"] = "ShouldersAccessory", ["45"] = "FrontAccessory", ["46"] = "BackAccessory", ["47"] = "WaistAccessory", ["11"] = "Shirt", ["12"] = "Pants", ["17"] = "Head", ["18"] = "Face", ["27"] = "Torso", ["28"] = "RightArm", ["29"] = "LeftArm", ["30"] = "LeftLeg", ["31"] = "RightLeg", ["48"] = "ClimbAnimation", ["50"] = "FallAnimation", ["51"] = "IdleAnimation", ["52"] = "JumpAnimation", ["53"] = "RunAnimation", ["54"] = "SwimAnimation", ["55"] = "WalkAnimation", } local function getAssetTypeId(accessoryType) for k, v in pairs(AvatarExperienceConstants.AssetTypeIdToAccessoryTypeEnum) do if v == accessoryType then return k end end end local function buildCostumeInfoFromHumanoidDescription(description) local assetMap = {} for assetTypeId, prop in pairs(HumanoidDescriptionIdToName) do local assets = string.split(description[prop], ",") local filteredAssets = {} for _, v in ipairs(assets) do if v ~= "0" then table.insert(filteredAssets, v) end end if #filteredAssets > 0 then assetMap[assetTypeId] = filteredAssets end end if LayeredClothingEnabled then local layeredAccessories = description:GetAccessories(--[[includeRidgitAccessories = ]] false) for _, metaData in ipairs(layeredAccessories) do local assetTypeId = getAssetTypeId(metaData.AccessoryType) if assetTypeId then if assetMap[assetTypeId] == nil then assetMap[assetTypeId] = {} end table.insert(assetMap[assetTypeId], tostring(metaData.AssetId)) end end end local info = { assets = assetMap, bodyColors = { headColorId = description.HeadColor, torsoColorId = description.TorsoColor, rightArmColorId = description.RightArmColor, leftArmColorId = description.LeftArmColor, rightLegColorId = description.RightLegColor, leftLegColorId = description.LeftLegColor, }, scales = { height = description.HeightScale, width = description.WidthScale, head = description.HeadScale, depth = description.DepthScale, proportion = description.ProportionScale, bodyType = description.BodyTypeScale, }, avatarType = "R15", } return info end return buildCostumeInfoFromHumanoidDescription
ESX = nil local PlayerData = {} local PlayerLoaded = false local blips = {} Citizen.CreateThread(function() TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.TriggerServerCallback('art_odun:server:getConfig', function(sConfig) Jobs = sConfig end) while Jobs == nil or ESX.GetPlayerData().job == nil do Citizen.Wait(10) end PlayerData = ESX.GetPlayerData() PlayerLoaded = true main() refreshBlips() end) RegisterNetEvent('esx:playerLoaded') AddEventHandler('esx:playerLoaded', function(xPlayer) PlayerData = xPlayer PlayerLoaded = true end) RegisterNetEvent('esx:setJob') AddEventHandler('esx:setJob', function(job) PlayerData.job = job deleteBlips() refreshBlips() end) function TriggerAnimation(ped, animDict, animName) RequestAnimDict(animDict) while not HasAnimDictLoaded(animDict) do Citizen.Wait(10) end TaskPlayAnim(ped, animDict, animName, 8.0, -8, -1, 49, 0, 0, 0, 0) end function main() Citizen.CreateThread(function() while true do local wait = 500 if PlayerLoaded and PlayerData.job ~= nil then local ped = PlayerPedId() local coords = GetEntityCoords(ped) for k, v in pairs(Jobs) do for i=1, #v.location do local show = true local distance = #(coords - v.location[i]["coords"]) if v.jobRequired then if PlayerData.job.name ~= v.jobName then show = false end end if show then if v.location[i].marker["enable"] and distance <= v.location[i].marker["farDistance"] then wait = 5 DrawMarker(v.location[i].marker["type"], v.location[i]["coords"], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, v.location[i].marker["size"].x, v.location[i].marker["size"].y, v.location[i].marker["size"].z, v.location[i].marker["color"].r, v.location[i].marker["color"].g, v.location[i].marker["color"].b, 100, false, true, 2, false, nil, nil, false) end if v.location[i].draw3dtext["enable"] and distance <= v.location[i].draw3dtext["distance"] then wait = 5 DrawText3D(v.location[i]["coords"], v.location[i].draw3dtext["text"]) end if IsControlJustPressed(0, 38) and distance <= v.location[i].draw3dtext["distance"] then ESX.TriggerServerCallback('art_odun:checkCount', function(count) if v.location[i].item["process"] == "pickup" or count > v.location[i].item["removeCount"]-1 then if v.location[i].animation["enable"] then TriggerAnimation(ped, v.location[i].animation["animDict"], v.location[i].animation["animName"]) end if v.location[i].progressbar["enable"] then TriggerEvent("mythic_progbar:client:progress", { name = k.."-"..v.location[i].item["process"], duration = v.location[i].progressbar["duration"], label = v.location[i].progressbar["progText"], useWhileDead = false, canCancel = true, controlDisables = { disableMovement = true, disableCarMovement = false, disableMouse = false, disableCombat = true, }, }, function(status) if not status then TriggerServerEvent("art_odun:server:process", coords, k, v, i) else exports["mythic_notify"]:SendAlert("error", "Cancelled.") end ClearPedTasksImmediately(ped) end) else Citizen.CreateThread(function() Citizen.Wait(v.location[i].progressbar["duration"]) ClearPedTasksImmediately(ped) TriggerServerEvent("art_odun:server:process", v.location[i].item) end) end else exports["mythic_notify"]:SendAlert("error", "You don't have enough item!") end end, v.location[i].item["requiredItem"]) end end end end end Citizen.Wait(wait) end end) end function DrawText3D(coords, text) local onScreen,_x,_y=World3dToScreen2d(coords.x, coords.y, coords.z+0.5) local px,py,pz=table.unpack(GetGameplayCamCoords()) SetTextScale(0.35, 0.35) SetTextFont(4) SetTextProportional(1) SetTextColour(255, 255, 255, 215) SetTextEntry('STRING') SetTextCentre(1) AddTextComponentString(text) DrawText(_x,_y) local factor = (string.len(text)) / 370 DrawRect(_x,_y+0.0125, 0.015+ factor, 0.03, 41, 11, 41, 68) end function refreshBlips() Citizen.CreateThread(function() for k, v in pairs(Jobs) do for i = 1, #v.location do if v.location[i].blip["showBlip"] then if v.jobRequired then if PlayerData.job.name == v.jobName then JobBlip = AddBlipForCoord(v.location[i]["coords"]) SetBlipSprite(JobBlip, v.location[i].blip["sprite"]) SetBlipColour(JobBlip, v.location[i].blip["color"]) SetBlipScale(JobBlip, v.location[i].blip["scale"]) SetBlipAsShortRange(JobBlip, true) BeginTextCommandSetBlipName("STRING") AddTextComponentString(v.location[i].blip["blipName"]) EndTextCommandSetBlipName(JobBlip) table.insert(blips, JobBlip) end else JobBlip = AddBlipForCoord(v.location[i]["coords"]) SetBlipSprite(JobBlip, v.location[i].blip["sprite"]) SetBlipColour(JobBlip, v.location[i].blip["color"]) SetBlipScale(JobBlip, v.location[i].blip["scale"]) SetBlipAsShortRange(JobBlip, true) BeginTextCommandSetBlipName("STRING") AddTextComponentString(v.location[i].blip["blipName"]) EndTextCommandSetBlipName(JobBlip) table.insert(blips, JobBlip) end end end end end) end function deleteBlips() for k,v in ipairs(blips) do RemoveBlip(v) blips[k] = nil end end
local InventoryContext = require("api.gui.menu.InventoryContext") local InventoryWrapper = require("api.gui.menu.InventoryWrapper") local InstancedMap = require("api.InstancedMap") local ty_quest = types.table -- TODO data:add_type { name = "quest", fields = { { name = "elona_id", indexed = true, type = types.optional(types.uint) }, { name = "client_chara_type", type = types.uint, }, { name = "reward", type = types.data_id("elona_sys.quest_reward") }, { name = "reward_fix", type = types.uint, }, { name = "min_fame", type = types.uint }, { name = "chance", type = types.some(types.uint, types.callback({"client", types.table, "town", types.class(InstancedMap)}, types.number)), }, { name = "params", type = types.map(types.string, types.type) }, { name = "difficulty", type = types.some(types.number, types.callback({}, types.number)) }, { name = "expiration_hours", type = types.callback({}, types.number) }, { name = "deadline_days", type = types.optional(types.callback({}, types.number)) }, { name = "calc_reward_gold", type = types.optional(types.callback({"quest", ty_quest, "gold", types.uint}, types.uint)) }, { name = "calc_reward_platinum", type = types.optional(types.callback({"quest", ty_quest, "platinum", types.uint}, types.uint)) }, { name = "calc_reward_item_count", type = types.optional(types.callback({"quest", ty_quest, "item_count", types.uint}, types.uint)) }, { name = "reward_count", type = types.optional(types.callback({"quest", ty_quest}, types.uint)) }, { name = "generate", type = types.callback({"quest", ty_quest, "client", types.map_object("base.chara")}, types.boolean) }, { name = "on_accept", type = types.optional(types.callback({"quest", ty_quest}, {types.boolean, types.optional(types.locale_id)})) }, { name = "on_failure", type = types.optional(types.callback("quest", ty_quest)) }, { name = "on_complete", type = types.callback({}, types.locale_id) }, { name = "on_time_expired", type = types.optional(types.callback("quest", ty_quest)) }, { name = "locale_data", type = types.optional(types.callback({"quest", ty_quest}, types.table)) }, { name = "target_chara_uids", type = types.optional(types.callback({"quest", ty_quest}, types.list(types.uint))) }, { name = "prevents_return", type = types.boolean, default = false }, { name = "prevents_pickpocket", type = types.boolean, default = false } } } data:add_type { name = "quest_reward", fields = { { name = "elona_id", indexed = true, type = types.optional(types.uint) }, { name = "generate", type = types.callback({"quest_reward", types.table, "quest", ty_quest}) }, { name = "localize", type = types.optional(types.callback({"self", types.table}, types.string)) }, { name = "params", type = types.map(types.string, types.type), default = {} } } } data:add_type { name = "sidequest", fields = { { name = "elona_id", indexed = true, type = types.optional(types.uint) }, { name = "is_main_quest", type = types.boolean, default = false }, { name = "progress", type = types.map(types.int, types.some(types.locale_id, types.callback({"flag", types.int}, types.string))) } } } -- TODO unify with definition in `base` mod local ty_dice = types.fields_strict { x = types.number, y = types.number, bonus = types.number } local ty_magic_params = types.fields_strict { source = types.optional(types.map_object("any")), target = types.optional(types.map_object("base.chara")), item = types.optional(types.map_object("base.item")), x = types.optional(types.uint), y = types.optional(types.uint) } data:add_type { name = "magic", fields = { { name = "elona_id", indexed = true, type = types.optional(types.uint) }, { name = "params", type = types.list(types.literal("source", "target", "item", "x", "y")), default = { "source" }, template = true, doc = [[ The parameters this magic accepts. Currently used purely for documentation purposes. Might be redundant. ]] }, { name = "dice", type = types.optional(types.callback({"self", types.data_entry("elona_sys.magic"), "params", types.table}, ty_dice)), doc = [[ The dice indicating the relative strength of this magic. Has this format: ```lua function(self, params) local level = params.source:skill_level("my_mod.some_magic") return { x = params.power * 10, y = level * 10, bonus = 50, } end ``` ]] }, { name = "cast", type = types.callback({"self", types.data_entry("elona_sys.magic"), "params", ty_magic_params}, {types.boolean, types.optional(types.fields { obvious = types.boolean })}), template = true, doc = [[ Function run when the magic is cast. ]] }, { name = "related_skill", type = types.data_id("base.skill") }, { name = "alignment", type = types.optional(types.literal("positive", "negative")) }, { name = "cost", type = types.number }, { name = "range", type = types.uint, default = 0, }, { name = "type", type = types.literal("skill", "action", "effect") } }, } data:add_type { name = "buff", fields = { { name = "type", type = types.literal("blessing", "hex", "food"), default = "blessing", template = true, doc = [[ The type of this buff. ]] }, { name = "on_refresh", type = types.callback({"self", types.data_entry("base.buff"), "chara", types.map_object("base.chara")}, types.boolean), template = true, doc = [[ Run the logic for this buff, if any. This can be omitted if the effect is implemented in event handlers, like for Silence. ]] }, { name = "on_add", type = types.optional(types.callback("self", types.data_entry("base.buff"), "params", types.table)), }, { name = "on_remove", type = types.optional(types.callback("self", types.data_entry("base.buff"), "chara", types.map_object("base.chara"))), }, { name = "on_expire", type = types.optional(types.callback("self", types.data_entry("base.buff"), "chara", types.map_object("base.chara"))), }, { name = "params", type = types.callback({"self", types.data_entry("base.buff"), "params", types.table}, types.fields_strict { duration = types.number, power = types.number }) }, { -- TODO needs to be themable name = "image", type = types.uint }, { name = "target_rider", type = types.boolean, default = false }, { name = "no_remove_on_heal", type = types.boolean, default = false } }, } data:add_type { name = "basic_anim", fields = { { name = "elona_id", indexed = true, type = types.optional(types.uint) }, { name = "wait", type = types.number, default = 50, template = true, doc = [[ How much time to wait when running this animation, in milliseconds. ]] }, { name = "frames", type = types.optional(types.int), default = nil, doc = [[ How many frames this animation holds. Omit to default to the asset's `count_x` property. ]] }, { name = "rotation", type = types.optional(types.number), default = 0, doc = [[ How much time to wait between frames. ]] }, { name = "asset", type = types.data_id("base.asset"), template = true, doc = [[ The asset that holds this animation's frames. It should have a `count_x` property. ]] }, { name = "sound", type = types.optional(types.data_id("base.sound")), template = true, doc = [[ A sound to play for this animation, if any. ]] } } } local ty_ctxt_source = types.fields_strict { name = types.string, getter = types.callback({"ctxt", types.class(InventoryContext)}, types.iterator(types.map_object("base.item"))), order = types.uint, get_item_name = types.optional(types.callback({"self", types.table, "name", types.string, "item", types.map_object("base.item"), "menu", types.table}, types.string)), on_draw = types.optional(types.callback("self", types.table, "x", types.number, "y", types.number, "item", types.map_object("base.item"), "menu", types.table)), params = types.map(types.string, types.type) } local ty_ctxt_item = types.fields_strict { item = types.map_object("base.item"), source = ty_ctxt_source } local ty_key_hint = types.fields_strict { action = types.locale_id, keys = types.some(types.string, types.list(types.string)) } data:add_type { name = "inventory_proto", fields = { { name = "elona_id", type = types.optional(types.uint) }, { name = "elona_sub_id", type = types.optional(types.uint) }, { name = "sources", type = types.list(types.literal("chara", "equipment", "target", "target_optional", "container", "shop", "target_equipment", "ground")) }, { name = "shortcuts", type = types.boolean, default = false }, { name = "icon", type = types.optional(types.uint), }, { name = "query_amount", type = types.boolean, default = false }, { name = "show_money", type = types.boolean, default = false, }, { name = "show_target_equip", type = types.boolean, default = false }, { name = "window_title", type = types.locale_id }, { name = "query_text", type = types.some(types.locale_id, types.callback({"ctxt", types.class(InventoryContext), "item", types.map_object("base.item")}, types.string)) }, { name = "window_detail_header", type = types.locale_id }, { name = "default_amount", type = types.optional(types.uint) }, { name = "allow_special_owned", type = types.boolean, default = false }, { name = "params", type = types.map(types.string, types.type) }, { name = "keybinds", type = types.optional(types.callback({"ctxt", types.class(InventoryContext)}, types.map(types.string, types.callback("wrapper", types.class(InventoryWrapper))))) }, { name = "key_hints", type = types.optional( types.some( types.list(ty_key_hint), types.callback({"ctxt", types.class(InventoryContext)}, types.list(ty_key_hint))) ) }, { name = "get_item_name", type = types.optional(types.callback({"name", types.string, "item", types.map_object("base.item")}, types.string)) }, { name = "get_item_detail_text", type = types.optional(types.callback({"name", types.string, "item", types.map_object("base.item")}, types.string)) }, { name = "sort", type = types.optional(types.callback({"ctxt", types.class(InventoryContext), "a", ty_ctxt_item, "b", ty_ctxt_item}, types.boolean)) }, { name = "filter", type = types.optional(types.callback({"ctxt", types.class(InventoryContext), "item", types.map_object("base.item")}, types.boolean)) }, { name = "after_filter", type = types.optional(types.callback({"ctxt", types.class(InventoryContext), "filtered", types.list(ty_ctxt_item)}, types.optional(types.string))) }, { name = "on_query", type = types.optional(types.callback("ctxt", types.class(InventoryContext))) }, { name = "can_select", type = types.optional(types.callback({"ctxt", types.class(InventoryContext), "item", types.map_object("base.item")}, types.boolean)) }, { name = "on_select", type = types.optional(types.callback({"ctxt", types.class(InventoryContext), "item", types.map_object("base.item")}, types.string)) }, { name = "on_shortcut", type = types.optional(types.callback({"ctxt", types.class(InventoryContext), "item", types.map_object("base.item")}, {types.optional(types.string), types.optional(types.string)})) }, { name = "on_menu_exit", type = types.optional(types.callback({"ctxt", types.class(InventoryContext)}, types.string)) }, { name = "hide_weight_text", type = types.boolean, default = false, template = true, doc = [[ If true, hide weight text at the bottom of the inventory menu. Defaults to false. ]] }, } } data:add_type { name = "inventory_group", fields = { { name = "protos", type = types.list(types.data_id("base.inventory_proto")) } } } local ty_scene_entry = types.some( types.fields_strict { [1] = types.literal("wait", "fade", "fadein") }, types.fields_strict { [1] = types.literal("pic"), [2] = types.data_id("base.asset"), }, types.fields_strict { [1] = types.literal("mc"), [2] = types.data_id("base.music"), }, types.fields_strict { [1] = types.literal("se"), [2] = types.data_id("base.sound"), }, types.fields_strict { [1] = types.literal("txt"), [2] = types.string }, types.fields_strict { [1] = types.literal("chat"), [2] = types.uint, [3] = types.string }, types.fields_strict { [1] = types.literal("actor"), [2] = types.uint, name = types.string, portrait = types.data_id("base.portrait") } ) data:add_type { name = "scene", fields = { { name = "content", type = types.map(types.string, types.list(ty_scene_entry)) } } } require("mod.elona_sys.data.event") require("mod.elona_sys.map_tileset.init") require("mod.elona_sys.dialog.init") require("mod.elona_sys.deferred_event.init") require("mod.elona_sys.events") -- -- -- keybinds -- -- local Command = require("mod.elona_sys.api.Command") local Gui = require("api.Gui") local Repl = require("api.Repl") Gui.bind_keys { north = function(_, me, is_repeat) return Command.move(me, "North", is_repeat) end, south = function(_, me, is_repeat) return Command.move(me, "South", is_repeat) end, west = function(_, me, is_repeat) return Command.move(me, "West", is_repeat) end, east = function(_, me, is_repeat) return Command.move(me, "East", is_repeat) end, northwest = function(_, me, is_repeat) return Command.move(me, "Northwest", is_repeat) end, northeast = function(_, me, is_repeat) return Command.move(me, "Northeast", is_repeat) end, southwest = function(_, me, is_repeat) return Command.move(me, "Southwest", is_repeat) end, southeast = function(_, me, is_repeat) return Command.move(me, "Southeast", is_repeat) end, get = function(_, me) return Command.get(me) end, wear = function(_, me) return Command.wear(me) end, drop = function(_, me) return Command.drop(me) end, close = function(_, me) return Command.close(me) end, search = function(_, me) return Command.search(me) end, wait = function(_, me, is_repeat) if is_repeat then Gui.set_scrolling("disabled") end return "turn_end" end, repl = function() Repl.query() return "player_turn_query" end, quit = function() return Command.quit_game() end, help = function() return Command.help() end, quicksave = function() return Command.save_game() end, quickload = function() return Command.load_game() end, chara_info = function(_, me) return Command.chara_info(me) end, cast = function(_, me) return Command.cast(me) end, skill = function(_, me) return Command.skill(me) end, target = function(_, me) return Command.target(me) end, look = function(_, me) return Command.look(me) end, interact = function(_, me) return Command.interact(me) end, quick_menu = function(_, me) return Command.quick_menu(me) end, journal = function(_, me) return Command.journal(me) end, dip = function(_, me) return Command.dip(me) end }
-- Boulder "maze" with wide corridors function t_or_f() return percent(50) and true or false; end des.level_flags("mazelevel", "noflip"); des.level_init({ style = "maze", corrwid = 3 + nh.rn2(3), wallthick = 1, deadends=t_or_f() }); des.region(selection.area(00,00,75,18), "lit"); des.non_diggable(); function replace_wall_boulder(x,y) des.terrain(x, y, "."); des.object("boulder", x, y); end -- replace horizontal and vertical walls local sel = selection.match([[.w.]]) | selection.match(".\nw\n."); sel:iterate(replace_wall_boulder); -- replace the leftover corner walls local sel = selection.match([[.w.]]); sel:iterate(replace_wall_boulder); des.stair("up"); des.stair("down"); for i = 1,15 do des.object(); end for i = 1,6 do des.trap("rolling boulder"); end for i = 1,28 do des.monster(); end
ngx.header['Cache-Control'] = 'max-age=10' ngx.print('this is cache data')
------------------------------------------------------------------ local time = require 'cherry.libs.time' ------------------------------------------------------------------ -- https://stackoverflow.com/a/12646864 -- Randomize array in-place using Durstenfeld shuffle algorithm ------------------------------------------------------------------ -- this function mutates the array ------------------------------------------------------------------ local function shuffleArray(array) local seed = time.getTimeMs() math.randomseed(seed) for i = #array, 1, -1 do local j = math.floor(math.random() * i) + 1 local temp = array[i] array[i] = array[j] array[j] = temp end end ------------------------------------------------------------------ return shuffleArray
-- HardCore Search & Destroy MOD print('You are using') print('HardCore: Search & Destroy') print('by Taokaiser')
--相剣大邪-七星龍淵 -- --Script by KillerDJSH function c101107041.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,nil,aux.NonTuner(Card.IsRace,RACE_WYRM),1) c:EnableReviveLimit() --draw local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101107041,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_MZONE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCountLimit(1,101107041) e1:SetCondition(c101107041.drcon) e1:SetTarget(c101107041.drtg) e1:SetOperation(c101107041.drop) c:RegisterEffect(e1) --remove monster local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(101107041,1)) e2:SetCategory(CATEGORY_REMOVE+CATEGORY_DAMAGE) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetRange(LOCATION_MZONE) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCountLimit(1,101107041+100) e2:SetTarget(c101107041.remtg1) e2:SetOperation(c101107041.remop1) c:RegisterEffect(e2) --remove spell/trap local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(101107041,2)) e3:SetCategory(CATEGORY_REMOVE+CATEGORY_DAMAGE) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetCode(EVENT_CHAINING) e3:SetRange(LOCATION_MZONE) e3:SetCountLimit(1,101107041+200) e3:SetCondition(c101107041.remcon2) e3:SetTarget(c101107041.remtg2) e3:SetOperation(c101107041.remop2) c:RegisterEffect(e3) end function c101107041.drcon(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() return eg:GetCount()==1 and tc~=e:GetHandler() and tc:IsSummonType(SUMMON_TYPE_SYNCHRO) and tc:IsSummonPlayer(tp) and tc:IsRace(RACE_WYRM) end function c101107041.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function c101107041.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) end function c101107041.filter(c,tp) return c:IsSummonPlayer(1-tp) and c:IsOnField() end function c101107041.remtg1(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return eg:IsExists(c101107041.filter,1,nil,tp) end Duel.SetTargetCard(eg) local g=eg:Filter(c101107041.filter,nil,tp) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1200) end function c101107041.remop1(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(c101107041.filter,nil,tp) local tc=g:GetFirst() if not tc then return end if g:GetCount()>1 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) tc=g:Select(tp,1,1,nil):GetFirst() end if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=0 then Duel.Damage(1-tp,1200,REASON_EFFECT) end end function c101107041.remcon2(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() return ep==1-tp and re:GetHandler():IsRelateToEffect(re) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) end function c101107041.remtg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return re:GetHandler():IsAbleToRemove() end Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1200) end function c101107041.remop2(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then if Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT)~=0 then Duel.Damage(1-tp,1200,REASON_EFFECT) end end end
object_mobile_dressed_valarian_thug_arcona = object_mobile_shared_dressed_valarian_thug_arcona:new { } ObjectTemplates:addTemplate(object_mobile_dressed_valarian_thug_arcona, "object/mobile/dressed_valarian_thug_arcona.iff")
RegisterNetEvent("announce") AddEventHandler("announce", function(param) if IsPlayerAceAllowed(source, 'van.announce') then print("^1[Announcement]^5:" .. param) TriggerClientEvent("chat:addMessage", -1, { color = {0,255,0}, multiline = true, args = {'[Announcement]', param} }) else TriggerClientEvent('error', source) end end)
--Made by Michael Hales#0001 [WARNING YOU'RE NOT ALLOWED TO RE-RELEASE THIS AGAIN] fuck u its obfuscated btw. Join this for a better PF script https://discord.gg/kE2vVQbNgP return(function(e,...)local I="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local v=e.zpPH0mi;local W=e["U2TskV"];local p=e[(551615752)];local i=e[(287375399)];local u=e[((#{28;163;}+443170161))];local L=e[(217314505)];local T=e[((536621129-#("psu 60fps, luraph 5fps, xen 0fps")))];local d=e[(691047562)];local Q=e[((137748392-#("psu 60fps, luraph 5fps, xen 0fps")))];local U=e[(278548726)];local b=e[(704071939)];local Y=e[((748143339-#("Luraph v12.6 has been released!: changed absolutely fucking nothing but donate to my patreon!")))];local s=e[(780342223)];local m=e[(698999874)];local F=e['o5gTyni'];local C=e[(569967883)];local f=e['M0iAoNcEjX'];local z=e[((#{130;559;(function(...)return 505,837,437,...;end)(123,751,190)}+562610422))];local X=e[(60901045)];local S=e[(292439318)];local o=e[((#{826;286;919;780;}+589643891))];local k=e[((#{868;464;355;569;(function(...)return 417,75,809;end)()}+367649062))];local J=e[((495277539-#("uh oh everyone watch out pain exist coming in with the backspace method one dot two dot man dot")))];local t=e["bM643lZv9U"];local c=e['BosewOQdB'];local j=e[((242449258-#("@everyone designs are done. luraph website coming.... eta JULY 2020")))];local N=e[((891569750-#("why does psu.dev attract so many ddosing retards wtf")))];local r=e[(400678828)];local D=e[((#{218;917;657;302;(function(...)return 882,726,336,613;end)()}+294940294))];local E=e[(715528698)];local x=e[(630656703)];local M=((getfenv)or(function(...)return(_ENV);end));local n,w,l=({}),(""),(M(o));local a=((l[""..e[c]..e[s].."\116"..e[F]..e["tVCBO"]])or(l["\98"..e[s].."\116"])or({}));local n=(((a)and(a[""..e[c].."\120"..e[u]..e[p]]))or(function(e,l)local o,n=o,d;while((e>d)and(l>d))do local c,a=e%t,l%t;if c~=a then n=n+o;end;e,l,o=(e-c)/t,(l-a)/t,o*t;end;if e<l then e=l;end;while e>d do local l=e%t;if l>d then n=n+o;end;e,o=(e-l)/t,o*t;end;return(n);end));local h=(t^b);local g=(h-o);local A,B,y;local h=(w[""..e["Zg0Wc8w"]..e[C]..e[c]]);local x=(w[""..e[x].."\115"..e[C]..e[c]]);local x=(w["\98\121\116\101"]);local q=(w["\99\104\97"..e[p]]);local _=(l[""..e[v]..e[r].."\105\114"..e['Zg0Wc8w']]);local w=(l[""..e[p]..e[r].."\119\115\101"..e[i]]);local Z=((l["\109"..e[r]..e[i].."\104"]["\108"..e[W].."\101"..e[k].."\112"])or(function(l,e,...)return((l*t)^e);end));local w=(l["\116\121"..e[v].."\101"]);local w=((l[""..e[C].."\110\112"..e[r].."\99"..e["j49o0A"]])or(l[""..e[i].."\97\98"..e[m]..e[f]]["\117"..e['neWUpYz'].."\112"..e[r]..e[D]..e['j49o0A']]));local P=(l["\115"..e[f]..e[i].."\109"..e[f].."\116\97\116"..e[r]..e[c].."\108"..e[f]]);local V=(l["\109\97\116\104"]["\102"..e[m]..e[u]..e[u].."\114"]);local C=(l[""..e[i]..e[u].."\110\117"..e[T].."\98\101\114"]);local v=(l["\115\101\108\101\99\116"]);A=((a["\108"..e.Zg0Wc8w..e["T7oQEvB"].."\105\102\116"])or(function(l,e,...)if(e<d)then return(B(l,-(e)));end;return((l*t^e)%t^b);end));local O=(a["\98\110\111"..e[i]])or(function(e,...)return(g-e);end);B=((a[""..e[p]..e["Zg0Wc8w"].."\104"..e[s]..e[E]..e[i]])or(function(l,e,...)if(e<d)then return(A(l,-(e)));end;return(V(l%t^b/t^e));end));local g=(a[""..e[c]..e[u].."\114"])or(function(e,l,...)return(g-y(g-e,g-l));end);y=(a["\98\97"..e['neWUpYz'].."\100"])or(function(e,l,...)return(((e+l)-n(e,l))/t);end);if((not(l["\98\105\116"..e[F]..e["tVCBO"]]))and(not(l["\98"..e[s].."\116"])))then a["\114"..e.Zg0Wc8w..e["T7oQEvB"].."\105"..e[E].."\116"]=B;a[""..e[c].."\110\111\116"]=O;a[""..e[m].."\115"..e['T7oQEvB']..e[s]..e[E]..e[i]]=A;a[""..e[c]..e[r]..e['neWUpYz']..e[W]]=y;a[""..e[c]..e[u]..e[p]]=g;a["\98"..e[k]..e[u].."\114"]=n;end;local u=(l["\116\97"..e[c]..e[m]..e[f]]["\99"..e[u]..e.neWUpYz..e[D]..e[r]..e[i]]);local W=(((l[""..e[i]..e[r]..e[c].."\108"..e[f]][""..e[D]..e[p].."\101\97"..e[i].."\101"]))or((function(e,...)return({w({},d,e);});end)));local t=(l["\116"..e[r]..e[c].."\108"..e[f]]["\114\101"..e[T].."\111"..e[Y].."\101"]);local t=(l["\116\97\98"..e[m].."\101"][""..e[s]..e.neWUpYz.."\115"..e[f].."\114\116"]);l[""..e[c]..e[s].."\116\51"..e.tVCBO]=a;local l=(N);local t=(#I+X);local i,p=({}),({});for e=d,t-o do local l=q(e);i[e]=l;p[e]=l;p[l]=e;end;local f,a=(function(n)local e,a,c=x(n,o,S);if((e+a+c)~=L)then l=l+J;t=t+Q;end;n=h(n,z);local l,a,c=(""),(""),({});local e=o;local function r()local l=C(h(n,e,e),U);e=e+o;local o=C(h(n,e,e+l-o),U);e=e+l;return(o);end;l=p[r()];c[o]=l;while(e<#n)do local e=r();if i[e]then a=i[e];else a=l..h(l,o,o);end;i[t]=l..h(a,o,o);c[#c+o],l,t=a,a,t+o;end;return(u(c));end)("PSU|24h12102762771F1f2761U1o1627622121A19111T1n23F1L1b2762241Z1c121d21O21o1D1O1s1N2301n1927622f21k1T1P1O131H121623f1T1327622a21F1o22V28F2762321b1I22X27d27621V1521g1J1c1823F1M1827622821r1s1Q1t1t16112341p1729327w27y1N1123128228t217191J1J121n1h2801J1D28T21i29e1n1B1q21J1Y28y1N1j23J151R27621y21B171a21g21D1j1621n1X21o28J21A21Q1t1s1X27h27j1n2152111q1722y1Q1427622V1628Y23F1G1e27F21m21J1x1m1G161b1a151F1q21N21523C1v1127623423d21l21c2761I1H28G1012121e21B1z2c11214141g121p27o1013132c31Y2cF132C11G21D2CI2CF19192cM2cO1315152CS2cj1D1D2cM1X102C816162Ca2CC2762CV2c32102cV152Cl21d2dC2cV2Cq2CM2dh2Dd2dK2dD2cZ1G1h152C8142CV1O1p2dS2c12761f1E122Cj2762By2D82d3142c32112Dt17172cM2EB2c811112eF2dt18182d72cD2DA21b2Dl2dF2Dl2dJ2cB2cd2d52C32132D5162Df2F02D52762dQ17162cF2Ei191R2E72c82Ea2Dt2dF2EG141A1A1N1M2cK2F51016172E32Ed2762FS2fs2c82E023v24H2112762fZ101m21g1Y2762BQ112Cv2761d1C2bq2GD101a1921a219277101824S23t2GN102EI1E1E1k21E21227624k2gs2G42E92gx21f2132761X2eB2cV1c1C2fN2GU2FV2Fr2F8172GI1f23v24p2gT2gi1521a2172GA2gU2gI2gF2gH152761A1b2hy2gE2gg102GI2I12Bq2Go1B13182Dz2761m1m27B29127P215131I22C22p21f1v2372b127622c21D141c23728M1028o28Q28S102282aH2a01q22Y29l1022b21M1e1f1S21L2181j1P23929D27622E21F161N1R1T21t21q25w1o24i23D25I23d26h1c22M27n27p27R27t27v27x27Z2301E1g2IU21n21621c1P191N21F21B191b191M216111221W2Jb22A21n2jF1s2io2Iq2372J428u28W2B62Ij2J529529729929B2k61022721p1R1C2A11l1L2Ld2341r2hZ1021Y2162gf28z2it102b42B629V29x29Z2A12a32A52A72LF21Z1y1H21J2172gc181m2A02342JB28528728928B28D2lX22621b2B62jn2j529G27Z29j2Lx2202192Du23e2Lq2bR1h181R1121D21u2bW171L2go1e1S1s2b92Gu112C31w2EI111H1H2Cm2Nm2Ei2792NR2NN1g1g2fn2gB2i92NJ2772C11Q1p21V21S2Go182Aw2Du151I1I1g25026C2o82i62Lr1k1U1A2h92HB2oD2of2oh2Oj2Di191k1o1C2nB2Nd2Ok2fG2d52NX2nZ2fr27e2gA2hY2Ed2O521O21R2o9215214192Fl2Oe2Og24x2P12fl2Cz1k171J2H92PH2pj2oS24b2pE2Gj1A2c829R2p11i2nc2i01A2nF2Nh2761b1B2c32162QB1B2nP2CM2QE2qB29P2Qi2QF2p51M2BQ2Qb2772ei2Pz2HD2o521p21q2PF21B2jF1f2pk122Q9102nX2C321D2nx1G2ql21d2r92nX2eD2Cm2re1G2EI2rH2Ra2Pk2442562qy102nu1G1i21I2102P02e02e121B2R02RA2nY2Qp2r62Kf2p92RR1F2Np2O521q21P2o927i101k1K2g421121E1j2lm2SH2Cm2sl2Ig2Cf2Dq2fN2Sh2g02552SD2sG2sI2i621721A2Bw1O2oo2sZ2c321H2sH1k2Df2PH2lM2qB2sp1j2Ig2SO21d21j2iG1M2TF29T1M2Sv2rr21a2T92sH2em2p62sH2ig1J111N2Lr1n1N2c321i2u41n2DF2t91O27d161L21g21g1l1P1P2d52uf2TL1Q1q2Ul1k1r1Q2u42E01u1t1c2cq2u41P24D24T2152RY2c11121R2rq23o2491t2Q62V621q2PY23O2451h2d92dE121121t2oj23O23w2922O32vM21s21T2s72IA1G2Aa2g51u2Lx2LZ28Z1K2T622A2131R21p2u7141v1A28d2mT21v2182qq2jR22y2m11022a21j2BH2U11x2131h2Nd1l112302vs2iE27728a1i2qs2NK21b2ns2NW21d2x82ss2xA2nN2c129s172I92Fa112Hd2gA2E32QT102f82O12qA1f2B2"),(#I-j);local function o(e,l,...)if(e==603919423)then return((n((n((l)-870801,359160))-733986,916966))-842944);elseif(e==997904876)then return((n(n(l,165449),482496))-792889);elseif(e==421887521)then return(((n(n(l,944508),597331))-874708)-441238);elseif(e==105954546)then return((n(((n(l,207477))-437047)-226046,166706))-774749);elseif(e==375295271)then return((n((l)-737323,924545))-988807);elseif(e==97762928)then return((n(((l)-829314)-841226,914670))-110653);elseif(e==46435414)then return(n(n(n(l,982784),82140),673360));elseif(e==402493189)then return(((n(l,445453))-895970)-90273);elseif(e==371151587)then return(((n(l,216197))-473975)-657287);elseif(e==526084936)then return(n((n(l,734806))-725889,523530));else end;end;local u=e["bM643lZv9U"];local d=e[((#{808;96;(function(...)return 98,616,174,781;end)()}+417538563))];local o=e[(540195329)];local s=e[((#{244;719;}+414422395))];local i=e[(292439318)];local m=e[(691047562)];local g=e[((#{502;820;425;}+86476835))];local t=e[(589643895)];local function r()local e=n(x(f,a,a),l);l=e%o;a=(a+t);return(e);end;local function c()local t,e,i,c=x(f,a,a+i);t=n(t,l);l=t%o;e=n(e,l);l=e%o;i=n(i,l);l=i%o;c=n(c,l);l=c%o;a=a+d;return((c*s)+(i*g)+(e*o)+t);end;local function i()local t,e=x(f,a,a+u);t=n(t,l);l=t%o;e=n(e,l);l=e%o;a=a+u;return((e*o)+t);end;local function d(l,e,o)if(o)then local e=(l/u^(e-t))%u^((o-t)-(e-t)+t);return(e-(e%t));else local e=u^(e-t);return(((l%(e+e)>=e)and(t))or(m));end;end;local F="\35";local function z(...)return({...}),v(F,...);end;local function L(...)local w=e["CgBADU4"];local O=e[((#{606;384;922;}+693693411))];local k=e[((516968147-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)")))];local b=e[((292439425-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)")))];local L=e[((746127812-#("uh oh everyone watch out pain exist coming in with the backspace method one dot two dot man dot")))];local F=e[(232954854)];local A=e[(417538569)];local m=e.bM643lZv9U;local t=e[(691047562)];local z=e['Dal1ptIw'];local S=e["uceXktR"];local X=e[(595144143)];local Y=e[((796563551-#("woooow u hooked an opcode, congratulations! i do NOT give a fuck.")))];local g=e[((#{137;158;688;888;(function(...)return 831,769,708,...;end)(139)}+562610422))];local P=e[(592235368)];local V=e[((#{701;473;321;2;}+703796068))];local o=e[((589643954-#("LuraphDeobfuscator.zip (oh god DMCA incoming everyone hide)")))];local W=e[((97601951-#("guys someone play Among Us with memcorrupt he is so lonely :(")))];local T=e[((#{46;343;328;}+655271515))];local I=e[(684367873)];local M=e[((335530983-#("why the fuck would we sell a deobfuscator for a product we created.....")))];local C=e['uVQ75N1'];local y=e[(704071939)];local v=e[(161263878)];local B=e[(540195329)];local U=e[(653136414)];local function E(...)local D=({});local e=({});local s=({});for e=t,c(l)-o,o do D[e]=E();end;for i=t,c(l)-o,o do local u=r(l);if(u==Y)then local l=r(l);e[i]=(l~=t);elseif(u==X)then while(true)do local a=c(l);local n=c(l);local c=o;local a=(d(n,o,T)*(m^y))+a;local l=d(n,F,U);local n=((-o)^d(n,y));if(l==t)then if(a==t)then e[i]=(n*t);break;else l=o;c=t;end;elseif(l==I)then e[i]=(a==t)and(n*(o/t))or(n*(t/t));break;end;e[i]=Z(n,l-L)*(c+(a/(m^v)));break;end;elseif(u==z)then while(true)do local c=c(l);if(c==t)then e[i]=('');break;end;if(c>O)then local t,r=(''),(h(f,a,a+c-o));a=a+c;for e=o,#r,o do local e=n(x(h(r,e,e)),l);l=e%B;t=t..p[e];end;e[i]=t;else local o,t=(''),({x(f,a,a+c-o)});a=a+c;for t,e in _(t)do local e=n(e,l);l=e%B;o=o..p[e];end;e[i]=o;end;break;end;else e[i]=(nil);end;end;local n=c(l);for e=t,n-o,o do s[e]=({});end;for B=t,n-o,o do local n=r(l);if(n~=t)then n=n-o;local y,h,p,u,a,f=t,t,t,t,t,t;local x=d(n,o,b);if(x==m)then a=s[(c(l))];u=(i(l));h=(r(l));elseif(x==t)then a=(i(l));u=(i(l));f=(i(l));h=(r(l));elseif(x==g)then a=(c(l));u=(i(l));f=(i(l));h=(r(l));p=({});for e=o,f,o do p[e]=({[t]=r(l),[o]=i(l)});end;elseif(x==o)then a=(c(l));u=(i(l));h=(r(l));elseif(x==b)then a=s[(c(l))];u=(i(l));f=(i(l));h=(r(l));elseif(x==w)then end;if(d(n,C,C)==o)then y=s[c(l)];else y=s[B+o];end;if(d(n,g,g)==o)then a=e[a];end;if(d(n,A,A)==o)then u=e[u];end;if(d(n,w,w)==o)then f=e[f];end;if(d(n,k,k)==o)then p=({});for e=o,r(),o do p[e]=c();end;end;local e=s[B];e['rde8kAJSfe']=a;e[V]=h;e["eCtIWhiI"]=y;e["M2B5UJy"]=p;e[S]=u;e['C6TniXGc']=f;end;end;local o=i(l);local l=r(l);return({[-P]=D;['rtVsw']=e;[-W]=o;[M]=l;[682130.5509315233]=t;["EXJ"]=s;});end;return(E(...));end;local function r(e,f,u,...)local l=e['rtVsw'];local h=e[-772891];local o=e[953970];local i=e[-211583];local l=0;local e=e['EXJ'];return(function(...)local B=741391;local n=(true);local t="rde8kAJSfe";local c=e[l];local e=(474387835);local g={};local n=284012;local a="C6TniXGc";local m="M2B5UJy";local x=(v(F,...)-1);local y="eCtIWhiI";local p={...};local l={};local s=({});local d=-(1);for e=0,x,1 do if(e>=o)then g[e-o]=p[e+1];else l[e]=p[e+1];end;end;local e=x-o+1;while(true)do local e=c;local o=e[B];c=e[y];if(o<=12)then if(o<=5)then if(o<=2)then if(o<=0)then local e=e[n];local n,o=z(l[e](l[e+1]));d=o+e-1;local o=0;for e=e,d do o=o+1;l[e]=n[o];end;elseif(o>1)then if(l[e[n]]~=e[a])then c=e[t];end;elseif(o<2)then local o=e[n];local a=e[a];local n=o+2;local o=({l[o](l[o+1],l[n]);});for e=1,a do l[n+e]=o[e];end;local o=o[1];if(o)then l[n]=o;c=e[t];end;end;elseif(o<=3)then l[e[n]]=r(h[e[t]],(nil),u);elseif(o>4)then if(not(l[e[n]]))then c=e[t];end;elseif(o<5)then l[e[n]]=f[e[t]];end;elseif(o<=8)then if(o<=6)then l[e[n]]=l[e[t]];elseif(o>7)then c=e[t];elseif(o<8)then local o=e[n];l[o](w(l,o+1,e[t]));for e=o+1,i do l[e]=nil;end;end;elseif(o<=10)then if(o>9)then do return(l[e[n]]);end;elseif(o<10)then local o=e[n];local n=e[t];local t=50*(e[a]-1);local a=l[o];local e=0;for n=o+1,n do a[t+e+1]=l[o+(n-o)];e=e+1;end;end;elseif(o==11)then do return;end;elseif(o<=12)then local i=h[e[t]];local c=e[m];local o={};local t=P({},{__index=function(l,e)local e=o[e];return(e[1][e[2]]);end,__newindex=function(n,e,l)local e=o[e];e[1][e[2]]=l;end;});for n=1,e[a],1 do local e=c[n];if(e[0]==0)then o[n-1]=({l,e[1]});else o[n-1]=({f,e[1]});end;s[#s+1]=o;end;l[e[n]]=r(i,t,u);end;elseif(o<=19)then if(o<=15)then if(o<=13)then l[e[n]]=(e[t]~=0);elseif(o==14)then l[e[n]]=u[e[t]];elseif(o<=15)then local o=e[n];l[o]=l[o](w(l,o+1,e[t]));for e=o+1,i do l[e]=nil;end;end;elseif(o<=17)then if(o>16)then l[e[n]]=W(e[t]);elseif(o<17)then l[e[n]]=l[e[t]][e[a]];end;elseif(o==18)then if(l[e[n]]==l[e[a]])then c=e[t];end;elseif(o<=19)then local o=e[n];local t={l[o](l[o+1]);};local n=e[a];local e=0;for o=o,n do e=e+1;l[o]=t[e];end;for e=n+1,i do l[e]=nil;end;end;elseif(o<=22)then if(o<=20)then if(l[e[n]]==e[a])then c=e[t];end;elseif(o>21)then if(l[e[n]]~=l[e[a]])then c=e[t];end;elseif(o<22)then l[e[n]]=l[e[t]]*e[a];end;elseif(o<=24)then if(o==23)then local o=e[n];local n=l[e[t]];l[o+1]=n;l[o]=n[e[a]];elseif(o<=24)then l[e[n]]=l[e[t]]-l[e[a]];end;elseif(o==25)then l[e[n]][e[t]]=l[e[a]];elseif(o<=26)then local o=e[n];local t={l[o](w(l,o+1,d));};local n=e[a];local e=0;for o=o,n do e=e+1;l[o]=t[e];end;for e=n+1,i do l[e]=nil;end;end;end;end);end;return r(L(),{},M())(...);end)(({['tVCBO']=("\50");[(294940302)]=(((#{229;112;912;(function(...)return 181,701,...;end)(88,421,91,493)}+628582951)));[(551615752)]=((577197095));[(684367873)]=((2047));[(115218518)]=("\103");[((691047614-#("why does psu.dev attract so many ddosing retards wtf")))]=((0));["U2TskV"]=((824059759));[(569967883)]=(((314064334-#("why the fuck would we sell a deobfuscator for a product we created....."))));['BosewOQdB']=(((#{246;(function(...)return 248,75;end)()}+391359924)));[((562610552-#("oh Mr. Pools, thats a little close please dont touch me there... please Mr. Pools I am only eight years old please stop...")))]=((5));["bM643lZv9U"]=((2));['M0iAoNcEjX']=((900833731));[((#{646;939;313;}+443170160))]=(((633776868-#("oh Mr. Pools, thats a little close please dont touch me there... please Mr. Pools I am only eight years old please stop..."))));["neWUpYz"]=("\110");[((#{732;472;189;}+232954851))]=((21));[(391359927)]=("\98");[(86476838)]=(((65603-#("i am not wally stop asking me for wally hub support please fuck off"))));[((#{358;479;(function(...)return 275,566,871,271;end)()}+400678822))]=(((914484849-#("ililililililili guys look at me i'm intimidating"))));[((#{468;595;270;(function(...)return 260,268,541,822,...;end)(764,640)}+592235359))]=((772891));[((577197190-#("uh oh everyone watch out pain exist coming in with the backspace method one dot two dot man dot")))]=("\114");[((#{547;}+634478925))]=("\120");[((#{110;74;}+653136412))]=(((109-#("luraph is now down until further notice for an emergency major security update"))));[((746127749-#("'psu > luraph' - memcorrupt 2020")))]=((1023));[(495277444)]=(((#{30;(function(...)return 47,882;end)()}+189)));[(914484801)]=("\97");[((169837028-#("'psu > luraph' - memcorrupt 2020")))]=("\105");[(703796072)]=((741391));[((#{658;(function(...)return 635,430,747,...;end)(891)}+60901040))]=((165));[((698999933-#("LuraphDeobfuscator.zip (oh god DMCA incoming everyone hide)")))]=((40923472));[((780342263-#("still waiting for luci to fix the API :|")))]=((169836996));[((335530994-#("who the fuck looked at synapse xen and said 'yeah this is good enough for release'")))]=((953970));[((#{}+785198837))]=("\116");[((#{}+891569698))]=(((#{513;176;}+161)));[((#{}+715528698))]=(((#{511;95;474;32;}+752968216)));[(314064263)]=("\117");[((#{121;989;410;(function(...)return 849,330,814;end)()}+414422391))]=(((16777264-#("ililililililili guys look at me i'm intimidating"))));["Zg0Wc8w"]=("\115");zpPH0mi=((536923311));[((#{723;(function(...)return 843,295;end)()}+40923469))]=("\108");[(900833731)]=("\101");Dal1ptIw=((30));[((#{}+824059759))]=("\100");[((#{488;210;661;764;}+704071935))]=((32));[((#{105;163;450;(function(...)return 865,267;end)()}+536621092))]=((387903512));[(655271518)]=(((#{(function(...)return 25,921,498,...;end)(774,260,782)}+14)));[(417538569)]=((4));['o5gTyni']=((313730591));[(516968040)]=(((39-#("psu 60fps, luraph 5fps, xen 0fps"))));[(161263878)]=((52));[((#{943;708;557;(function(...)return 976,641,779,422,...;end)(634,768,392)}+367649059))]=(((634479019-#("Luraph v12.6 has been released!: changed absolutely fucking nothing but donate to my patreon!"))));[((#{941;523;(function(...)return...;end)(301,228)}+748143242))]=((664590211));[((633776778-#("psu 60fps, luraph 5fps, xen 0fps")))]=("\111");[((287375584-#("Luraph: Probably considered the worst out of the three, Luraph is another Lua Obfuscator. It isnt remotely as secure as Ironbrew or Synapse Xen, and it isn't as fast as Ironbrew either.")))]=(((#{642;811;742;}+785198834)));j49o0A=("\107");['uceXktR']=((284012));[((#{985;771;578;}+242449188))]=((90));[(595144143)]=(((#{973;106;755;(function(...)return 524,982,...;end)(245,941,591)}+5)));[((278548833-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)")))]=((36));['uVQ75N1']=((8));[(97601890)]=(((#{290;(function(...)return 694,742;end)()}+211580)));['CgBADU4']=((6));[(387903512)]=("\109");[((#{111;850;}+589643893))]=(((62-#("guys someone play Among Us with memcorrupt he is so lonely :("))));[((693693479-#("woooow u hooked an opcode, congratulations! i do NOT give a fuck.")))]=(((5061-#("guys someone play Among Us with memcorrupt he is so lonely :("))));[(796563486)]=((16));[(137748360)]=(((#{(function(...)return 673,48,174,48,...;end)()}+160)));[((536923382-#("why the fuck would we sell a deobfuscator for a product we created.....")))]=("\112");[((#{}+752968220))]=("\102");[(628582960)]=("\99");[((#{659;814;}+664590209))]=("\118");[((#{26;270;683;}+292439315))]=((3));[((630656774-#("why the fuck would we sell a deobfuscator for a product we created.....")))]=(((115218625-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)"))));[(313730591)]=("\51");['T7oQEvB']=("\104");[(217314505)]=((248));[(540195329)]=((256));}),...);
function progressDay() fadeAlpha = 1 triggerFade = true player:resetActions() calendar:goToNextDay() -- special events can be handled by looking at curDate -- TODO: probably add bills to emails here -- check if player has enough money to pay hospital if curDate == 7 then --TODO: logic for ending if player.acceptance >= 35 then debug_text = "acceptance best ending" gameEnd("ending3_good") audio:playGoodEndBGM() elseif player.acceptance < 35 and player.acceptance >= 15 then debug_text = "acceptance average ending" gameEnd("ending3_average") elseif player.acceptance < 15 then debug_text = "acceptance low ending" gameEnd("ending3_bad") audio:playBadEndBGM() end elseif player.stress == 100 then debug_text = "stress ending" gameEnd("ending2") elseif player.cash < bills then if player.latePaymentStrikes == 0 then mail:SendBillsWarningMail() player.latePaymentStrikes = 1 else debug_text = "gameEnd trigger" gameEnd("ending1") end else player:reduceCash(bills) end bills = bills + 5 -- dummy constant now. TODO turn into variable cumulative debt? mail:playNotifSoundIfAny() end function gameEnd(ending) story:setNewStory("dialog/endings/"..ending) storyType = "Ending" story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() love.event.quit("restart") end story.dialogButtons["option2"].onclick = function() audio:playOptionClick() love.event.quit(0) end story:start() end local Scene = { updates = {}, mouseCallbacks = {}, load = function(self) triggerFade = false timeOfDay = "morning" bills = 35 hoverButtonName = "" storyType = "" player = Player:new() portraits = {} portraitPositions = {} portraitDisplayNames = {} for k, v in pairs(LIP.load("config/Portraits.ini")) do portraits[v.name] = Anime:new(v.name, love.graphics.newImage(v.image), v.width, v.height) portraitDisplayNames[v.name] = v.displayName portraitPositions[v.name] = {x = v.x, y = v.y} end map = Map:new(mapConfig) story = Story:new("dialog/hospital_act1", portraits, dialog_font) -- status text to display on button hover status_text = "" audio = Audio:new() audio:playDefaultBGM() phone = Phone:new() calendar = Calendar:new() calendar:load() stats = Stats:new() mail = Mail:new() mail:playNotifSoundIfAny() map.mapButtons["Hospital"].onhover = function() status_text = "Visit your sister at the hospital" end map.mapButtons["Hospital"].onclick = function() -- play sound audio:playLocationClickSFX() -- set story storyType = "Hospital" player:addActions("Hospital", 1) status_text = "" map:hide() if player:actionCount("Hospital") == 1 then story:setNewStory("dialog/hospital_act"..curDate) else if curDate >= 4 then story:setNewStory("dialog/hospital_actx2_awake") else story:setNewStory("dialog/hospital_actx1_comatose") end end story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) if story.dialogButtons["option2"] == nil then story.dialogButtons["option1"].onclick = function() audio:playOptionClick() debug_text = "hopsital option 1 clicked" --handle last action, probably different stat values for certain dates player:addAcceptance(7) story:stop() if player.actions == player.maxActions then progressDay() end map:show() end else story.dialogButtons["option1"].onclick = function() audio:playOptionClick() story:stop() story:setNewStory("dialog/hospital_act"..curDate.."_1") story:start() story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action for hospital option 1 player:addAcceptance(7) story:stop() if player.actions == player.maxActions then progressDay() -- trigger ending if it's day 7 and player visits hospital elseif curDate == 7 then progressDay() end map:show() end end story.dialogButtons["option2"].onclick = function() audio:playOptionClick() story:stop() story:setNewStory("dialog/hospital_act"..curDate.."_2") story:start() story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action for hospital option 2 player:reduceStress(5) story:stop() if player.actions == player.maxActions then progressDay() -- trigger ending if it's day 7 and player visits hospital elseif curDate == 7 then progressDay() end map:show() end end end story:start() end map.mapButtons["Work"].onhover = function() status_text = "Go to work to earn money" end day3_option2_selected = false map.mapButtons["Work"].onclick = function() audio:playLocationClickSFX() storyType = "Work" player:addActions("Work", 1) status_text = "" map:hide() if player:actionCount("Work") == 1 and not (curDate == 4 and player:actionCount("Hospital") == 1) then story:setNewStory("dialog/work_act"..curDate) else random_choice = randomInt(1, 2) debug_text = "random_choice rolled: "..random_choice story:setNewStory("dialog/work_actx"..random_choice) end story:registerCallback("storyend", function() debug_text = story.path.."storyend triggered" end) if story.dialogButtons["option2"] == nil then story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action, probably different values for certain dates if curDate == 4 or curDate == 5 or curDate == 6 then player:addCash(25) -- extra pay and stress if option2 selected on day 3 elseif curDate == 3 and (player:actionCount("Work") == 2 or player:actionCount("Work") == 3) and day3_option2_selected == true then player:addCash(70) player:addStress(5) else player:addCash(50) end player:addStress(13) story:stop() if player.actions == player.maxActions then debug_text = "player actions reached "..player.maxActions progressDay() end map:show() end else story.dialogButtons["option1"].onclick = function() audio:playOptionClick() story:stop() story:setNewStory("dialog/work_act"..curDate.."_1") story:start() story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action for work option 1 if curDate == 5 or curDate == 6 then player:addCash(25) else player:addCash(50) end player:addStress(13) story:stop() if player.actions == player.maxActions then progressDay() end map:show() end end story.dialogButtons["option2"].onclick = function() audio:playOptionClick() story:stop() story:setNewStory("dialog/work_act"..curDate.."_2") story:start() story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action for work option 2 -- half pay for days 5,6 if curDate == 5 or curDate == 6 then player:addCash(25) -- extra pay and stress if option2 selected on day 3 elseif curDate == 3 then day3_option2_selected = true player:addCash(70) player:addStress(5) else player:addCash(50) end player:addStress(13) story:stop() if player.actions == player.maxActions then progressDay() end map:show() end end end story:start() end map.mapButtons["Park"].onhover = function() status_text = "Go to the park to release stress" end map.mapButtons["Park"].onclick = function() audio:playLocationClickSFX() storyType = "Park" -- don't count as action on day 4 (visit the sister instead) if curDate ~= 4 then player:addActions("Park", 1) end status_text = "" map:hide() if player:actionCount("Park") == 1 or curDate == 4 then story:setNewStory("dialog/park_act"..curDate) else random_choice = randomInt(1, 2) debug_text = "random_choice rolled: "..random_choice story:setNewStory("dialog/park_actx"..random_choice) end story:registerCallback("storyend", function() debug_text = story.path.."storyend triggered" end) if story.dialogButtons["option2"] == nil then story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action, probably different values for certain dates -- on day 4, continue shouldn't reduce stress, park is closed if curDate ~= 4 then player:reduceStress(8) end story:stop() if player.actions == player.maxActions then debug_text = "player actions reached "..player.maxActions progressDay() end map:show() end else story.dialogButtons["option1"].onclick = function() audio:playOptionClick() story:stop() story:setNewStory("dialog/park_act"..curDate.."_1") story:start() story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action for park option 1 player:addAcceptance(5) player:reduceStress(8) story:stop() if player.actions == player.maxActions then progressDay() end map:show() end end story.dialogButtons["option2"].onclick = function() audio:playOptionClick() story:stop() story:setNewStory("dialog/park_act"..curDate.."_2") story:start() story:registerCallback("storyend", function() debug_text = story.path.." storyend triggered" end) story.dialogButtons["option1"].onclick = function() audio:playOptionClick() --handle last action for work option 2 player:reduceStress(8) story:stop() if player.actions == player.maxActions then progressDay() end map:show() end end end story:start() end fadeAlpha = 0 end, draw = function(self) love.graphics.setBackgroundColor(238 / 255, 238 / 255, 238 / 255, 1) map:draw() story:draw() phone:draw() stats:draw() love.graphics.setColor(135 / 255, 76 / 255, 71 / 255, 1) love.graphics.printf(status_text, dialog_font, 20, story.backgroundY + 20, story.background.spriteSheet:getWidth() - 20) love.graphics.setColor(255 / 255, 255 / 255, 255 / 205, 1) love.graphics.printf(timeOfDay, font, 995, 280, 200) love.graphics.printf("bill: "..bills, font, 1125, 280, 200) love.graphics.setColor(255 / 255, 255 / 255, 255 / 255, 1) player_stats_text = "cash: "..player.cash.." stress: "..player.stress.."/"..player.maxStress.." acceptance: "..player.acceptance if settings["Misc"].debug == 1 then love.graphics.print(player_stats_text, 1000, 40) love.graphics.print("actions: "..player.actions, 1000, 60) love.graphics.print("curDate: "..curDate, 1000, 80) love.graphics.print("Hospital: "..player.locationActions["Hospital"], 1000, 100) love.graphics.print("Work: "..player.locationActions["Work"], 1000, 120) love.graphics.print("Park: "..player.locationActions["Park"], 1000, 140) love.graphics.print("hoverButtonName: "..hoverButtonName, 1000, 160) end love.graphics.setColor(0 / 255, 0 / 255, 0 / 255, fadeAlpha) love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(),love.graphics.getHeight()) end, update = function(self, dt) if triggerFade == true then fadeAlpha = fadeAlpha - dt if fadeAlpha < 0 then triggerFade = false end end for i, obj in ipairs(self.updates) do if obj ~= nil then obj:update(dt) end end end, mousepressed = function(self, x, y, button) if triggerFade == true then return end for i, obj in pairs(self.mouseCallbacks) do if obj ~= nil and obj.mousepressed ~=nil then obj:mousepressed(x, y, button) end end end, mousemoved = function(self, x, y, dx, dy, istouch) if map.mapButtons["Park"].isHover then hoverButtonName = "Park" elseif map.mapButtons["Hospital"].isHover then hoverButtonName = "Hospital" elseif map.mapButtons["Work"].isHover then hoverButtonName = "Work" elseif story.dialogButtons["option1"] ~= nil then if story.dialogButtons["option1"].isHover then hoverButtonName = "option1" else hoverButtonName = "" end if story.dialogButtons["option2"] ~= nil then if story.dialogButtons["option2"].isHover then hoverButtonName = "option2" else hoverButtonName = "" end end else hoverButtonName = "" end for i, obj in pairs(self.mouseCallbacks) do if obj ~= nil and obj.mousemoved ~=nil then obj:mousemoved(x, y, dx, dy, istouch) end end end } return Scene
loadstring(game:HttpGet("https://hypernite.xyz/Backup/MagmaHub/script.lua"))()
local ffi = require("ffi"); local bit = require("bit"); local bor = bit.bor; local SCManager = require("SCManager"); local test_servicecontrol = function() local mgr, err = SCManager(); if not mgr then print("Error: ", err); return false, err; end local access = bor( ffi.C.SERVICE_INTERROGATE, ffi.C.SERVICE_STOP, ffi.C.SERVICE_PAUSE_CONTINUE, ffi.C.SERVICE_ENUMERATE_DEPENDENTS); local servicehandle, err = mgr:openService("WSearch", access); print("ServiceHandle: ", servicehandle, err); if servicehandle then --print("PAUSE") --print(servicehandle:pause()); print("STOP") print(servicehandle:stop()); -- servicehandle:resume(); end end --test_query(); test_servicecontrol();
-- mod-version:2 -- lite-xl 2.0 local core = require "core" local command = require "core.command" local common = require "core.common" local config = require "core.config" local DocView = require "core.docview" local Doc = require "core.doc" local tokenizer = require "core.tokenizer" local cache = setmetatable({}, { __mode = "k" }) local function add_to_stat(stat, val) for i = 1, #stat do if val == stat[i][1] then stat[i][2] = stat[i][2] + 1 return end end stat[#stat + 1] = {val, 1} end local function optimal_indent_from_stat(stat) if #stat == 0 then return nil, 0 end local bins = {} for k = 1, #stat do local indent = stat[k][1] local score = 0 local mult_prev, lines_prev for i = k, #stat do if stat[i][1] % indent == 0 then local mult = stat[i][1] / indent if not mult_prev or (mult_prev + 1 == mult and lines_prev / stat[i][2] > 0.1) then -- we add the number of lines to the score only if the previous -- multiple of "indent" was populated with enough lines. score = score + stat[i][2] end mult_prev, lines_prev = mult, stat[i][2] end end bins[#bins + 1] = {indent, score} end table.sort(bins, function(a, b) return a[2] > b[2] end) return bins[1][1], bins[1][2] end -- return nil if it is a comment or blank line or the initial part of the -- line otherwise. -- we don't need to have the whole line to detect indentation. local function get_first_line_part(tokens) local i, n = 1, #tokens while i + 1 <= n do local ttype, ttext = tokens[i], tokens[i + 1] if ttype ~= "comment" and ttext:gsub("%s+", "") ~= "" then return ttext end i = i + 2 end end local function get_non_empty_lines(syntax, lines) return coroutine.wrap(function() local tokens, state local i = 0 for _, line in ipairs(lines) do tokens, state = tokenizer.tokenize(syntax, line, state) local line_start = get_first_line_part(tokens) if line_start then i = i + 1 coroutine.yield(i, line_start) end end end) end local auto_detect_max_lines = 100 local function detect_indent_stat(doc) local stat = {} local tab_count = 0 for i, text in get_non_empty_lines(doc.syntax, doc.lines) do local str = text:match("^ %s+%S") if str then add_to_stat(stat, #str - 1) end local str = text:match("^\t+") if str then tab_count = tab_count + 1 end -- Stop parsing when files is very long. Not needed for euristic determination. if i > auto_detect_max_lines then break end end table.sort(stat, function(a, b) return a[1] < b[1] end) local indent, score = optimal_indent_from_stat(stat) if tab_count > score then return "hard", config.indent_size, tab_count else return "soft", indent or config.indent_size, score or 0 end end local function update_cache(doc) local type, size, score = detect_indent_stat(doc) local score_threshold = 4 if score < score_threshold then -- use default values type = config.tab_type size = config.indent_size end cache[doc] = { type = type, size = size, confirmed = (score >= score_threshold) } doc.indent_info = cache[doc] end local new = Doc.new function Doc:new(...) new(self, ...) update_cache(self) end local clean = Doc.clean function Doc:clean(...) clean(self, ...) if not cache[self].confirmed then update_cache(self) end end local function with_indent_override(doc, fn, ...) local c = cache[doc] if not c then return fn(...) end local type, size = config.tab_type, config.indent_size config.tab_type, config.indent_size = c.type, c.size or config.indent_size local r1, r2, r3 = fn(...) config.tab_type, config.indent_size = type, size return r1, r2, r3 end local perform = command.perform function command.perform(...) return with_indent_override(core.active_view.doc, perform, ...) end local draw = DocView.draw function DocView:draw(...) return with_indent_override(self.doc, draw, self, ...) end local function set_indent_type(doc, type) cache[doc] = {type = type, size = cache[doc].value or config.indent_size, confirmed = true} doc.indent_info = cache[doc] end local function set_indent_type_command() core.command_view:enter( "Specify indent style for this file", function(value) -- submit local doc = core.active_view.doc value = value:lower() set_indent_type(doc, value == "tabs" and "hard" or "soft") end, function(text) -- suggest return common.fuzzy_match({"tabs", "spaces"}, text) end, nil, -- cancel function(text) -- validate local t = text:lower() return t == "tabs" or t == "spaces" end ) end local function set_indent_size(doc, size) cache[doc] = {type = cache[doc].type or config.tab_type, size = size, confirmed = true} doc.indent_info = cache[doc] end local function set_indent_size_command() core.command_view:enter( "Specify indent size for current file", function(value) -- submit local value = math.floor(tonumber(value)) local doc = core.active_view.doc set_indent_size(doc, value) end, nil, -- suggest nil, -- cancel function(value) -- validate local value = tonumber(value) return value ~= nil and value >= 1 end ) end command.add("core.docview", { ["indent:set-file-indent-type"] = set_indent_type_command, ["indent:set-file-indent-size"] = set_indent_size_command }) command.add(function() return core.active_view:is(DocView) and cache[core.active_view.doc] and cache[core.active_view.doc].type == "soft" end, { ["indent:switch-file-to-tabs-indentation"] = function() set_indent_type(core.active_view.doc, "hard") end }) command.add(function() return core.active_view:is(DocView) and cache[core.active_view.doc] and cache[core.active_view.doc].type == "hard" end, { ["indent:switch-file-to-spaces-indentation"] = function() set_indent_type(core.active_view.doc, "soft") end })
-- FOOT profile for city walkers - preference for paved underground -- -- require("tags") require("barrier") require("highway") require("transport") -- -- Global variables required by extractor -- ignore_areas = true -- future feature traffic_signal_penalty = 2 u_turn_penalty = 2 use_turn_restrictions = false -- -- Globals for profile definition -- local access_list = { "foot", "access" } --------------------------------------------------------------------------- -- -- NODE FUNCTION -- -- Node in: lat,lon,id,tags -- result out: bollard,traffic_light -- default is forbidden, so add allowed ones only local barrier_access = { ["kerb"] = true, ["block"] = true, ["bollard"] = true, ["border_control"] = true, ["cattle_grid"] = true, ["entrance"] = true, ["sally_port"] = true, ["toll_booth"] = true, ["cycle_barrier"] = true, ["stile"] = true, ["block"] = true, ["kissing_gate"] = true, ["turnstile"] = true, ["hampshire_gate"] = true } function node_function (node, result) barrier.set_bollard(node, result, access_list, barrier_access) -- flag delays if result.bollard or node:get_value_by_key("highway") == "traffic_signals" then result.traffic_light = true end return 1 end --------------------------------------------------------------------------- -- -- WAY FUNCTION -- -- Way in: tags -- result out: String name, -- double forward_speed, -- double backward_speed, -- short type, -- bool access, -- bool roundabout, -- bool is_duration_set, -- bool is_access_restricted, -- bool ignore_in_grid, -- forward_mode { 0, 1, 2 } -- backward_mode { 0, 1, 2 } -- -- Begin of globals local default_speed = 10 local designated_speed = 12 local speed_highway = { ["footway"] = 12, ["cycleway"] = 10, ["primary"] = 7, ["primary_link"] = 7, ["secondary"] = 8, ["secondary_link"] = 8, ["tertiary"] = 9, ["tertiary_link"] = 9, ["residential"] = 10, ["unclassified"] = 10, ["living_street"] = 11, ["road"] = 10, ["service"] = 10, ["path"] = 12, ["pedestrian"] = 12, ["steps"] = 11, } local speed_track = { 11, 11, 10, 9, 9 } local speed_path = { sac_scale = { hiking = 0.5, mountain_hiking = 0, demanding_mountain_hiking = 0, alpine_hiking = 0, demanding_alpine_hiking = 0 }, bicycle = { designated = 0.5, yes = 0.9 } } local surface_penalties = { ["gravel"] = 0.7, ["ground"] = 0.8, ["unpaved"] = 0.8, ["grass"] = 0.5, ["dirt"] = 0.5, ["compacted"] = 0.9, ["grit"] = 0.8, ["sand"] = 0.6 } local name_list = { "ref", "name" } function way_function (way, result) -- Check if we are allowed to access the way if tags.get_access_grade(way, access_list) < -1 then return 0 end -- ferries if transport.is_ferry(way, result, 5) then return 1 end -- is it a valid highway? if not highway.set_base_speed(way, result, speed_highway, speed_track) then -- check for designated access if tags.as_access_grade(way:get_value_by_key('foot')) > 0 then result.forward_speed = default_speed result.backward_speed = default_speed else return 0 end end if not highway.adjust_speed_for_path(way, result, speed_path) then return 0 end if not highway.adjust_speed_by_surface(way, result, surface_penalties, 1.0) then return 0 end -- if there is a sidewalk, the better local sidewalk = way:get_value_by_key('sidewalk') if sidewalk == 'both' or sidewalk == 'left' or sidewalk == 'right' then result.forward_speed = default_speed result.backward_speed = default_speed end local junction = way:get_value_by_key('junction') if junction == "roundabout" then result.roundabout = true end result.name = tags.get_name(way, name_list) result.type = 1 return 1 end
--[[-- zq UIImage控件 -- @classmod UIImage ]] local UIImage = class("UIImage", function() return cc.Sprite:create() end) -------------------------------- -- UIImage构建函数 -- @function ctor function UIImage:ctor() self:setCascadeOpacityEnabled(true) self:setNodeEventEnabled(true) end function UIImage:setContentSize(w, h) if not h then h = w.height w = w.width end local func = tolua.getcfunction(self, "setContentSize") func(self, w, h) end function UIImage:isDestroyed() return self._destroyed or false end function UIImage:onEnter() self._destroyed = false end function UIImage:onExit() self._destroyed = true end return UIImage
local pretty = require 'pl.pretty' local utils = require 'pl.utils' local test = require 'pl.test' local asserteq, assertmatch = test.asserteq, test.assertmatch t1 = { 'one','two','three',{1,2,3}, alpha=1,beta=2,gamma=3,['&']=true,[0]=false, _fred = {true,true}, s = [[ hello dolly you're so fine ]] } s = pretty.write(t1) --,' ',true) t2,err = pretty.read(s) if err then return print(err) end asserteq(t1,t2) res,err = pretty.read [[ { ['function'] = true, ['do'] = true, } ]] assert(res) res,err = pretty.read [[ { ['function'] = true, ['do'] = "no function here...", } ]] assert(res) res,err = pretty.read [[ { ['function'] = true, ['do'] = function() return end } ]] assertmatch(err,'cannot have functions in table definition') res,err = pretty.load([[ -- comments are ok a = 2 bonzo = 'dog' t = {1,2,3} ]]) asserteq(res,{a=2,bonzo='dog',t={1,2,3}}) --- another potential problem is string functions called implicitly as methods-- res,err = pretty.read [[ {s = ('woo'):gsub('w','wwwwww'):gsub('w','wwwwww')} ]] assertmatch(err,(_VERSION ~= "Lua 5.2") and 'attempt to index a string value' or "attempt to index constant 'woo'") ---- pretty.load has a _paranoid_ option res,err = pretty.load([[ k = 0 for i = 1,1e12 do k = k + 1 end ]],{},true) assertmatch(err,'looping not allowed') -- Check to make sure that no spaces exist when write is told not to local tbl = { "a", 2, "c", false, 23, 453, "poot", 34 } asserteq( pretty.write( tbl, "" ), [[{"a",2,"c",false,23,453,"poot",34}]] ) -- Check that write correctly prevents cycles local t1,t2 = {},{} t1[1] = t1 asserteq( pretty.write(t1,""), [[{<cycle>}]] ) t1[1],t1[2],t2[1] = 42,t2,t1 asserteq( pretty.write(t1,""), [[{42,{<cycle>}}]] ) -- Check false positives in write's cycles prevention t2 = {} t1[1],t1[2] = t2,t2 asserteq( pretty.write(t1,""), [[{{},{}}]] ) function testm(x,s) asserteq(pretty.number(x,'M'),s) end testm(123,'123B') testm(1234,'1.2KiB') testm(10*1024,'10.0KiB') testm(1024*1024,'1.0MiB') function testn(x,s) asserteq(pretty.number(x,'N',2),s) end testn(123,'123') testn(1234,'1.23K') testn(10*1024,'10.24K') testn(1024*1024,'1.05M') testn(1024*1024*1024,'1.07B') function testc(x,s) asserteq(pretty.number(x,'T'),s) end testc(123,'123') testc(1234,'1,234') testc(12345,'12,345') testc(123456,'123,456') testc(1234567,'1,234,567') testc(12345678,'12,345,678') asserteq(pretty.number(1e12,'N'),'1000.0B')
net = require('net.box') -- -- gh-2978: field names for tuples received from netbox. -- _ = box.schema.create_space("named", {format = {{name = "id"}, {name="abc"}}}) _ = box.space.named:create_index('id', {parts = {{1, 'unsigned'}}}) box.space.named:insert({1, 1}) box.schema.user.grant('guest', 'read, write, execute', 'space') cn = net.connect(box.cfg.listen) s = cn.space.named s:get{1}.id s:get{1}:tomap() s:insert{2,3}:tomap() s:replace{2,14}:tomap() s:update(1, {{'+', 2, 10}}):tomap() s:select()[1]:tomap() s:delete({2}):tomap() -- Check that formats changes after reload. box.space.named:format({{name = "id2"}, {name="abc2"}}) s:select()[1]:tomap() cn:reload_schema() s:select()[1]:tomap() cn:close() box.space.named:drop() box.schema.user.revoke('guest', 'read, write, execute', 'space')
local Behavior = CreateAIBehavior("EnteringVehicle", "Dumb", { Alertness = -1, Exclusive = 1, -- SYSTEM EVENTS ----- Constructor = function(self, entity) -- assuming that the refpoint is near the seat's place -- entity:SelectPipe(0,"approach_refpoint"); -- entity:InsertSubpipe(0,"do_it_running"); -- entity:InsertSubpipe(0,"do_it_standing"); -- entity:InsertSubpipe(0,"ignore_all"); -- entity:InsertSubpipe(0,"clear_all"); -- entity.AI.theVehicle:EnterVehicle(entity.id,entity.AI.mySeat); -- TEMPORARY - TO DO: remove following line --AI.Signal(SIGNALFILTER_SENDER,0,"REFPOINT_REACHED",entity.id); end, --------------------------------------------- OnVehicleLeaving = function ( self, entity, sender ) -- sent by the CLeader, driver is driving the vehicle away -- cancel the enter action if(entity.AI.theVehicle) then entity.AI.theVehicle:LeaveVehicle(entity.id, true); -- entity:SelectPipe(0,"do_nothing"); end end, --------------------------------------------- OnQueryUseObject = function ( self, entity, sender, extraData ) -- ignore this signal, execute DEFAULT AIBehavior.DEFAULT:OnQueryUseObject( entity, sender, extraData ); end, --------------------------------------------- OnSelected = function( self, entity ) end, --------------------------------------------- OnSpawn = function( self, entity ) end, --------------------------------------------- OnActivate = function( self, entity ) -- called when enemy receives an activate event (from a trigger, for example) end, --------------------------------------------- OnNoTarget = function( self, entity ) -- called when the enemy stops having an attention target end, --------------------------------------------- OnEnemySeen = function( self, entity, fDistance ) end, --------------------------------------------- OnSomethingSeen = function( self, entity, fDistance ) end, --------------------------------------------- OnThreateningSeen = function( self, entity ) end, --------------------------------------------- OnSeenByEnemy = function( self, entity ) end, --------------------------------------------- OnEnemyDamage = function( self, entity ) end, --------------------------------------------- OnFriendlyDamage = function( self, entity ) end, --------------------------------------------- OnDamage = function( self, entity ) end, --------------------------------------------- OnNearMiss = function( self, entity ) end, --------------------------------------------- OnEnemyMemory = function( self, entity ) -- called when the enemy can no longer see its foe, but remembers where it saw it last end, --------------------------------------------- OnInterestingSoundHeard = function( self, entity ) -- called when the enemy hears an interesting sound end, --------------------------------------------- OnThreateningSoundHeard = function( self, entity ) -- called when the enemy hears a scary sound end, --------------------------------------------- OnReload = function( self, entity ) -- called when the enemy goes into automatic reload after its clip is empty end, --------------------------------------------- OnGroupMemberDied = function( self, entity ) -- called when a member of the group dies end, OnGroupMemberDiedNearest = function ( self, entity, sender) end, --------------------------------------------- OnNoHidingPlace = function( self, entity, sender ) -- called when no hiding place can be found with the specified parameters end, -------------------------------------------------- OnNoFormationPoint = function ( self, entity, sender) -- called when the enemy found no formation point end, --------------------------------------------- OnReceivingDamage = function ( self, entity, sender) -- called when the enemy is damaged end, --------------------------------------------- OnCoverRequested = function ( self, entity, sender) -- called when the enemy is damaged end, -------------------------------------------------- OnBulletRain = function ( self, entity, sender) -- called when the enemy detects bullet trails around him end, -------------------------------------------------- OnDeath = function( self,entity ) AI:Signal(SIGNALFILTER_GROUPONLY, 1, "OnGroupMemberDied",entity.id); -- if driver killed - make all the passengers unignorant, get out/stop entering if(entity.AI.theVehicle ) then local tbl = VC.FindUserTable( entity.AI.theVehicle, entity ); if( tbl and tbl.type == PVS_DRIVER ) then AI:Signal(SIGNALFILTER_GROUPONLY, -1, "MAKE_ME_UNIGNORANT",entity.id); end end end, --------------------------------------------- --------------------------------------------- -------------------------------------------------- -- CUSTOM -------------------------------------------- exited_vehicle = function( self,entity, sender ) AI.Signal(SIGNALFILTER_LEADER,10,"ORD_DONE",entity.id); end, exited_vehicle_investigate = function( self,entity, sender ) --AI.Signal(SIGNALFILTER_LEADER,10,"OnUnitResumed",entity.id); end, -------------------------------------------- do_exit_vehicle = function( self,entity, sender ) --AI.Signal(SIGNALFILTER_LEADER,10,"OnUnitResumed",entity.id); end, -------------------------------------------------- ENTER_VEHICLE = function( self,entity, sender ) -- going in vehicle already - don't do anything end, -------------------------------------------------- ENTER_VEHICLE_DRIVER = function( self,entity, sender ) -- in vehicle already - don't do anything end, -------------------------------------------------- ENTER_VEHICLE_NODRIVER = function( self,entity, sender ) -- in vehicle already - don't do anything end, -------------------------------------------- OnVehicleSuggestion = function(self, entity) --Luciano -- I'm already entering a vehicle, I won't change it at any condition! end, -------------------------------------------- desable_me = function( self,entity, sender ) entity:TriggerEvent(AIEVENT_DISABLE); end, -------------------------------------------- -- no need to run away from cars? maybe hide OnVehicleDanger = function(self,entity,sender) end, -------------------------------------------------- HEADS_UP_GUYS = function( self,entity, sender ) -- no matter what, I'll keep my head down to my vehicle seat... end, REFPOINT_REACHED = function(self,entity,sender) -- entity.AI.theVehicle:EnterVehicle(entity.id,entity.AI.mySeat,true); entity:SelectPipe(0,"do_nothing"); end, --------------------------------------------- ORDER_FOLLOW = function(self,entity,sender) end, --------------------------------------------- ORDER_EXIT_VEHICLE = function(self,entity,sender) --AI.LogEvent(entity:GetName().." EXITING VEHICLE"); entity.AI.theVehicle:LeaveVehicle(entity.id,true); entity.AI.theVehicle = nil; AI.Signal(SIGNALFILTER_LEADER, 10,"ORD_DONE",entity.id); entity:SelectPipe(0,"stand_only"); end, --------------------------------------------- CANCEL_CURRENT = function(self,entity,sender) entity:CancelSubpipe(); entity.AI.theVehicle.vehicle:ExitVehicle(entity.id); entity.AI.theVehicle = nil; AI.Signal(SIGNALFILTER_SENDER,1,"do_exit_vehicle",entity.id); end, })
local FASTJUMP_DIR = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] .. "..\\FastJump" local FASTJUMP_BIN_DIR = FASTJUMP_DIR .. "\\bin" local FASTJUMP_BIN = (FASTJUMP_BIN_DIR or clink.get_env("LOCALAPPDATA") .. "\\fastjump\\bin") .. "\\fastjump" function fastjump_add_to_database() os.execute("\"" .. FASTJUMP_BIN .. "\"" .. " --add " .. "\"" .. clink.get_cwd() .. "\"" .. " 2> " .. clink.get_env("TEMP") .. "\\fastjump_error.txt") end clink.prompt.register_filter(fastjump_add_to_database, 99) function fastjump_completion(word) for line in io.popen("\"" .. FASTJUMP_BIN .. "\"" .. " --complete " .. word):lines() do clink.add_match(line) end return {} end local fastjump_parser = clink.arg.new_parser() fastjump_parser:set_arguments({ fastjump_completion }) clink.arg.register_parser("j", fastjump_parser)
--!strict local root = script.Parent.Parent local t = require(root.t) --- -- Equations: https://doi.org/10.1145/965139.807361 local HSB = {} HSB.fromRGB = function(r: number, g: number, b: number): (number, number, number) local br: number = math.max(r, g, b) local x: number = math.min(r, g, b) local s: number = (br ~= 0) and ((br - x) / br) or 0 local h: number local rp: number = (br - r) / (br - x) local gp: number = (br - g) / (br - x) local bp: number = (br - b) / (br - x) if (r == br) then h = (g == x) and (5 + bp) or (1 - gp) elseif (g == br) then h = (b == x) and (1 + rp) or (3 - bp) else h = (r == x) and (3 + gp) or (5 - rp) end return h * 60, s, br end HSB.toRGB = t.wrap(function(h: number, s: number, b: number): (number, number, number) if (s == 0) then return b, b, b else h = (h % 360) / 60 local i: number = math.floor(h) local f: number = h - i local m: number = b * (1 - s) local n: number = b * (1 - (s * f)) local k: number = b * (1 - (s * (1 - f))) if (i == 0) then return b, k, m elseif (i == 1) then return n, b, m elseif (i == 2) then return m, b, k elseif (i == 3) then return m, n, b elseif (i == 4) then return k, m, b elseif (i == 5) then return b, m, n else -- throw an error instead? return 0, 0, 0 end end end, t.tuple(t.union(t.number, t.nan), t.number, t.number)) return HSB
--[[ LuaU - A utility tool for making Lua usable within FFXI. Loads several libraries and makes them available within the global namespace. ]] require 'logger' require 'stringhelper' require 'tablehelper' require 'lists' require 'sets' require 'mathhelper' require 'functools' require 'actionhelper' chat = require 'chat' ffxi = require 'ffxi' files = require 'filehelper' config = require 'config' xml = require 'xml' json = require 'json' collectgarbage()
-- possibly split this up into separate files for each map element (eg: tasks.lua, objectives.lua, etc) -- and call the specific loading functions from here -- compcheck addEvent( "onGamemodeMapStart", false ) function ptpmMapStart( map ) options = {} data = {} currentClass = {} currentPM = false classes = {} miniClass = {} randomSpawns = {} cantDrive = {} cantPassenger = {} cantPickup = {} if isRunning( "ptpm_login" ) then settings.loginActive = true if not settings.loginHandled then addEventHandler( "onResourceStop", getResourceRootElement( getResourceFromName( "ptpm_login" ) ), ptpmLoginResourceStop ) settings.loginHandled = true end -- Send players that haven't logged in to login screen for _, v in ipairs( getElementsByType( "player" ) ) do if v and isElement( v ) and not getElementData( v, "ptpm.loggedIn" ) then exports.ptpm_login:setLoginScreenForPlayer( v ) end end else settings.loginActive = false end runningMap = map runningMapRoot = source runningMapName = getResourceName( map ) for _, v in ipairs( getElementsByType( "player" ) ) do if v and isElement( v ) and isPlayerActive( v ) then triggerClientEvent( v, "onClientMapStart", root, runningMapName ) end end data.roundStartTime = getTickCount() options.boundariesEnabled = true options.roundtime = get( runningMapName .. ".roundtime" ) or 900000 -- 15 mins options.pmHealthBonus = get( runningMapName .. ".pmHealthBonus" ) or false options.medicHealthBonus = get( runningMapName .. ".medicHealthBonus" ) or false options.pocketMoney = get( runningMapName .. ".pocketMoney" ) or 500 options.objectivesToFinish = get( runningMapName .. ".objectivesToFinish" ) or 5 options.vehicleLaunch = get (runningMapName .. ".vehicleLaunch" ) or false options.pmAbandonedHealthPenalty = get( runningMapName .. ".pmAbandonedHealthPenalty" ) or false options.mapType = get( runningMapName .. ".mapType" ) or "city" options.weathers = get( runningMapName .. ".weathers" ) or { 1, 2, 7, 9, 13, 17, 3, 11, 18, 5, 24 } -- city weathers options.pmWaterDeath = get (runningMapName .. ".pmWaterDeath" ) or false options.teamSpecificRadar = get( runningMapName .. ".teamSpecificRadar" ) or false options.disableClouds = get( runningMapName .. ".disableClouds") or false options.vehicleHeightLimit = get( runningMapName .. ".vehicleHeightLimit") or false options.displayDistanceToPM = get( runningMapName .. ".displayDistanceToPM" ) or false options.swapclass = {} if options.disableClouds then setCloudsEnabled( false ) else setCloudsEnabled( true ) end data.wardrobe = {} local warDrobeTable = getElementsByType( "wardrobe", runningMapRoot ) if warDrobeTable and #warDrobeTable ~= 0 then for k, v in pairs( getAllElementData( warDrobeTable[1] ) ) do data.wardrobe[k] = tonumber(v) end else printConsole( "ERROR: No wardrobe in map "..runningMapName ) end -- intel data.safezone = {} local safezoneTable = getElementsByType( "safezone", runningMapRoot ) for _, value in ipairs( safezoneTable ) do data.safezone[value] = {} data.safezone[value].exists = true data.safezone[value].posX = tonumber(getElementData( value, "posX" )) data.safezone[value].posY = tonumber(getElementData( value, "posY" )) data.safezone[value].posZ = tonumber(getElementData( value, "posZ" )) data.safezone[value].exclusion = tonumber(getElementData( value, "exclusion" )) data.safezone[value].enabled = (getElementData( value, "enabled" ) == "true") data.safezone[value].zone = createColSphere( data.safezone[value].posX, data.safezone[value].posY, data.safezone[value].posZ, data.safezone[value].exclusion/2) data.safezone[value].marker = createMarker( data.safezone[value].posX, data.safezone[value].posY, data.safezone[value].posZ, "cylinder", data.safezone[value].exclusion, 0, 0, 170, 128, root ) data.safezone[value].blip = createBlip( data.safezone[value].posX, data.safezone[value].posY, data.safezone[value].posZ, 0, 3, 0, 0, 170, 255, 0, 999, root ) setElementParent( data.safezone[value].marker, value ) setElementParent( data.safezone[value].blip, value ) setElementParent( data.safezone[value].zone, value ) if not data.safezone[value].enabled then setElementVisibleTo ( data.safezone[value].marker, root, false ) setElementVisibleTo ( data.safezone[value].blip, root, false ) end end local spawnGroupTable = getElementsByType( "spawngroup", runningMapRoot ) for _, value in ipairs( spawnGroupTable ) do local classType = getElementData( value, "type" ) for _, class in ipairs ( getElementsByType( "class", value ) ) do local classID = tonumber(getElementID(class)) classes[classID] = {} classes[classID].class = class classes[classID].type = classType classes[classID].medic = (getElementData( class, "medic" ) == "true") classes[classID].initialHP = tonumber(getElementData( class, "initialHP" )) or 100 end randomSpawns[classType] = {} local count = 0 for _, spawn in ipairs( getElementsByType( "spawn", value ) ) do randomSpawns[classType][count] = {} randomSpawns[classType][count].posX = tonumber(getElementData( spawn, "posX" )) randomSpawns[classType][count].posY = tonumber(getElementData( spawn, "posY" )) randomSpawns[classType][count].posZ = tonumber(getElementData( spawn, "posZ" )) randomSpawns[classType][count].rot = tonumber(getElementData( spawn, "rot" )) or tonumber(getElementData( spawn, "rotZ" )) randomSpawns[classType][count].interior = tonumber(getElementData( spawn, "interior" )) or 0 count = count + 1 end local lineSpawnTable = getElementsByType( "linespawn", value ) for _, linespawn in ipairs( lineSpawnTable ) do local startX, startY, startZ = getElementData( linespawn, "startX" ), getElementData( linespawn, "startY" ), getElementData( linespawn, "startZ" ) local endX, endY, endZ = getElementData( linespawn, "endX" ), getElementData( linespawn, "endY" ), getElementData( linespawn, "endZ" ) local seperation, interior = getElementData( linespawn, "seperation" ) or 1.0, getElementData( linespawn, "interior" ) or 0 local length = getDistanceBetweenPoints3D( startX, startY, startZ, endX, endY, endZ ) if length < 1.0 then break end local xv, yv, zv = (endX - startX)/length, (endY - startY)/length, (endZ - startZ)/length local grad, face_angle = math.abs(yv/xv) if xv >= 0 and yv >= 0 then face_angle = 90 - math.atan(grad) elseif xv >= 0 and yv < 0 then face_angle = 90 + math.atan(grad) elseif xv < 0 and yv < 0 then face_angle = 270 - math.atan(grad) elseif xv < 0 and yv >= 0 then face_angle = 270 + math.atan(grad) end face_angle = face_angle - 90.0 if face_angle >= 360.0 then face_angle = face_angle - 360.0 end for i=0, length, seperation do local x, y, z, rot = startX+i*xv, startY+i*yv, startZ+i*zv, 360-face_angle randomSpawns[classType][count] = {} randomSpawns[classType][count].posX = x randomSpawns[classType][count].posY = y randomSpawns[classType][count].posZ = z randomSpawns[classType][count].rot = rot randomSpawns[classType][count].interior = interior count = count + 1 end end cantDrive[classType] = {} for i=400, 612, 1 do cantDrive[classType][i] = false end local cantDriveTable = getElementsByType( "cantdrive", value ) if cantDriveTable and #cantDriveTable ~= 0 then if getElementData( cantDriveTable[1], "models" ) == "any" then for i=400, 612, 1 do cantDrive[classType][i] = true end else local cantDriveTable2 = split( getElementData( cantDriveTable[1], "models" ), 44 ) if cantDriveTable2 then for _, value2 in ipairs ( cantDriveTable2 ) do cantDrive[classType][tonumber(value2)] = true end end end end cantPassenger[classType] = {} for i=400, 612, 1 do cantPassenger[classType][i] = false end local cantPassengerTable = getElementsByType( "cantpassenger", value ) if cantPassengerTable and #cantPassengerTable ~= 0 then if getElementData( cantPassengerTable[1], "models" ) == "any" then for i=400, 612, 1 do cantPassenger[classType][i] = true end else local cantPassengerTable2 = split( getElementData( cantPassengerTable[1], "models" ), 44 ) if cantPassengerTable2 then for _, value2 in ipairs ( cantPassengerTable2 ) do cantPassenger[classType][tonumber(value2)] = true end end end end local cantPickupTable = getElementsByType( "cantpickup", value ) if cantPickupTable and #cantPickupTable ~= 0 then if getElementData( cantPickupTable[1], "models" ) == "any" then cantPickup[classType] = {} for i=1, 45, 1 do cantPickup[classType][i] = true end --cantPickup[classType]["armor"] = true else local cantPickupTable2 = split( getElementData( cantPickupTable[1], "models" ), 44 ) if cantPickupTable2 then cantPickup[classType] = {} for _, value2 in ipairs ( cantPickupTable2 ) do cantPickup[classType][tonumber(value2)] = true end end end end end for i=0, #classes, 1 do miniClass[i] = classes[i] and classes[i].type or "" end data.tasks = {} local taskTable = getElementsByType( "task", runningMapRoot ) for _, value in ipairs( taskTable ) do local taskType = getElementData( value, "type" ) data.tasks[value] = {} data.tasks[value].type = taskType data.tasks[value].time = tonumber(getElementData( value, "time" )) or 60000 data.tasks[value].taskArea = createColTube( tonumber(getElementData( value, "posX" )), tonumber(getElementData( value, "posY" )), tonumber(getElementData( value, "posZ" ))-(tonumber(getElementData( value, "size" ))/2), tonumber(getElementData( value, "size" ))/2, tonumber(getElementData( value, "size" )) ) data.tasks[value].marker = createMarker( tonumber(getElementData( value, "posX" )), tonumber(getElementData( value, "posY" )), tonumber(getElementData( value, "posZ" )), "cylinder", tonumber(getElementData( value, "size" )), 170, 0, 0, 128, root ) data.tasks[value].blip = createBlip( tonumber(getElementData( value, "posX" )), tonumber(getElementData( value, "posY" )), tonumber(getElementData( value, "posZ" )), 0, 3, 170, 0, 0, 255, 0, 9999, root ) data.tasks[value].desc = getElementData( value, "desc" ) or taskDesc[taskType] data.tasks[value].finishText = getElementData( value, "finishText" ) or taskFinishText[taskType] -- setElementVisibleTo ( data.tasks[value].marker, root, true ) -- setElementVisibleTo ( data.tasks[value].blip, root, true ) setElementParent( data.tasks[value].taskArea, value ) setElementParent( data.tasks[value].marker, value ) setElementParent( data.tasks[value].blip, value ) end data.objectives = {} data.objectiveRandomizer = {} data.objectives.finished = 0 local objectiveTable = getElementsByType( "objective", runningMapRoot ) for i, value in ipairs( objectiveTable ) do data.objectives[value] = {} data.objectiveRandomizer[i] = value data.objectives[value].time = tonumber(getElementData( value, "time" )) or 30000 data.objectives[value].objArea = createColSphere( tonumber(getElementData( value, "posX" )), tonumber(getElementData( value, "posY" )), tonumber(getElementData( value, "posZ" )), tonumber(getElementData( value, "size" ))*0.5 ) data.objectives[value].marker = createMarker( tonumber(getElementData( value, "posX" )), tonumber(getElementData( value, "posY" )), tonumber(getElementData( value, "posZ" )), "cylinder", tonumber(getElementData( value, "size" )), 170, 0, 0, 128, root ) data.objectives[value].blip = createBlip( tonumber(getElementData( value, "posX" )), tonumber(getElementData( value, "posY" )), tonumber(getElementData( value, "posZ" )), 0, 3, 170, 0, 0, 255, 0, 9999, root ) data.objectives[value].desc = getElementData( value, "desc" ) or false setElementVisibleTo ( data.objectives[value].marker, root, false ) setElementVisibleTo ( data.objectives[value].blip, root, false ) setElementParent( data.objectives[value].objArea, value ) setElementParent( data.objectives[value].marker, value ) setElementParent( data.objectives[value].blip, value ) end if #objectiveTable > 0 then setupNewObjective() end data.vehicleRespawn = {} data.vehicleRespawnTime = 60000 local vehicleTable = getElementsByType( "vehicle", runningMapRoot ) for _, value in ipairs( vehicleTable ) do setVehicleRespawnDelay( value, 10000 ) toggleVehicleRespawn( value, true ) data.vehicleRespawn[value] = {} data.vehicleRespawn[value].delay = data.vehicleRespawnTime if options.vehicleLaunch and getElementModel(value) == 476 then data.vehicleRespawn[value].launched = false end if getElementID(value) == "desert_crashed_plane" then setVehicleDamageProof(value,true) setVehicleLocked(value,true) end end data.pickups = {} local pickupTable = getElementsByType( "pickup", runningMapRoot ) for _, value in ipairs( pickupTable ) do data.pickups[value] = {} data.pickups[value].synced = (getElementData( value, "synced" ) == "true") data.pickups[value].respawn = getPickupRespawnInterval( value ) ~= 9999999 and getPickupRespawnInterval( value ) or false data.pickups[value].destroy = (getElementData( value, "destroy" ) == "true") data.pickups[value].lastPickup = {} end data.boundaryCorners = {} local boundaryCornerTable = getElementsByType( "boundarycorner", runningMapRoot ) for i, value in ipairs( boundaryCornerTable ) do data.boundaryCorners[i-1] = {} data.boundaryCorners[i-1].x = tonumber( getElementData( value, "posX" ) ) data.boundaryCorners[i-1].y = tonumber( getElementData( value, "posY" ) ) --createBlip( data.boundaryCorners[i-1].x, data.boundaryCorners[i-1].y, 0, 0, 1 ) end if #data.boundaryCorners == 0 then data.boundaryCorners[0], data.boundaryCorners[1], data.boundaryCorners[2], data.boundaryCorners[3] = {}, {}, {}, {} data.boundaryCorners[0].x, data.boundaryCorners[0].y = -10000, -10000 data.boundaryCorners[1].x, data.boundaryCorners[1].y = 10000, -10000 data.boundaryCorners[2].x, data.boundaryCorners[2].y = 10000, 10000 data.boundaryCorners[3].x, data.boundaryCorners[3].y = -10000, 10000 printConsole( "No boundary corners. Loaded default boundaries." ) end data.teleports = {} local teleportTable = getElementsByType( "teleport", runningMapRoot ) for _, value in ipairs( teleportTable ) do data.teleports[value] = {} local minX, minY, minZ = tonumber( getElementData( value, "minX" ) ), tonumber( getElementData( value, "minY" ) ), tonumber( getElementData( value, "minZ" ) ) local maxX, maxY, maxZ = tonumber( getElementData( value, "maxX" ) ), tonumber( getElementData( value, "maxY" ) ), tonumber( getElementData( value, "maxZ" ) ) data.teleports[value].cuboid = createColCuboid( minX, minY, minZ, maxX-minX, maxY-minY, maxZ-minZ ) -- createObject(1215,minX+((maxX-minX)/2),minY+((maxY-minY)/2),minZ+((maxZ-minZ)/2),0,0,0) setElementParent( data.teleports[value].cuboid, value ) data.teleports[value].message = getElementData( value, "message" ) or "" data.teleports[value].teleX = tonumber( getElementData( value, "teleX" ) ) data.teleports[value].teleY = tonumber( getElementData( value, "teleY" ) ) data.teleports[value].teleZ = tonumber( getElementData( value, "teleZ" ) ) data.teleports[value].teleRot = tonumber( getElementData( value, "teleRot" ) ) data.teleports[value].interior = tonumber( getElementData( value, "teleX" ) ) data.teleports[value].vehicles = (getElementData( value, "vehicles" ) == "true") data.teleports[value].exitDimX = tonumber( getElementData( value, "exitDimX" ) ) or false data.teleports[value].exitDimY = tonumber( getElementData( value, "exitDimY" ) ) or false end data.securityCameras = {} local cameraTable = getElementsByType( "camera", runningMapRoot ) for _, value in ipairs( cameraTable ) do local id = tonumber(getElementID( value )) data.securityCameras[id] = {} data.securityCameras[id].camX = tonumber(getElementData( value, "camX" )) data.securityCameras[id].camY = tonumber(getElementData( value, "camY" )) data.securityCameras[id].camZ = tonumber(getElementData( value, "camZ" )) data.securityCameras[id].pointX = tonumber(getElementData( value, "pointX" )) data.securityCameras[id].pointY = tonumber(getElementData( value, "pointY" )) data.securityCameras[id].pointZ = tonumber(getElementData( value, "pointZ" )) end data.cameraMounts = {} local cameraMountTable = getElementsByType( "cameraMount", runningMapRoot ) -- these are the _mount and _point in original ptpm for _, value in ipairs( cameraMountTable ) do data.cameraMounts[value] = {} data.cameraMounts[value].posX = tonumber(getElementData( value, "posX" )) data.cameraMounts[value].posY = tonumber(getElementData( value, "posY" )) data.cameraMounts[value].posZ = tonumber(getElementData( value, "posZ" )) data.cameraMounts[value].camera = createPickup( data.cameraMounts[value].posX, data.cameraMounts[value].posY, data.cameraMounts[value].posZ, 3, 1616, 30000, 1 ) data.cameraMounts[value].message = getElementData( value, "message" ) or "" data.cameraMounts[value].usesIDs = split( getElementData( value, "usesIDs" ), 44 ) data.cameraMounts[value].playerX = tonumber(getElementData( value, "playerX" )) data.cameraMounts[value].playerY = tonumber(getElementData( value, "playerY" )) data.cameraMounts[value].playerZ = tonumber(getElementData( value, "playerZ" )) setElementParent( data.cameraMounts[value].camera, value ) end -- attaching objects causes problems (see http://remp.sparksptpm.co.uk/mta/attachment_jump.mp4) -- leave this out until its fixed --[[ data.objects = {} data.objects.attachments = {} local objectTable = getElementsByType( "object", runningMapRoot ) for _,o in ipairs( objectTable ) do local id = getElementData(o,"id") if id and id:find("attach") then local pos, rot = {},{} pos.x, pos.y, pos.z = getElementData(o,"posX"),getElementData(o,"posY"),getElementData(o,"posZ") rot.x, rot.y, rot.z = getElementData(o,"rotX"),getElementData(o,"rotY"),getElementData(o,"rotZ") if not data.objects.attachments[id] then data.objects.attachments[id] = {} data.objects.attachments[id].ob = createObject(6976,pos.x,pos.y,pos.z,rot.x,rot.y,rot.z) data.objects.attachments[id].pos = {x = pos.x, y = pos.y, z = pos.z} data.objects.attachments[id].rot = {x = rot.x, y = rot.y, z = rot.z} end -- cant use matrices, getElementMatrix is clientside only if data.objects.attachments[id] then attach(o,data.objects.attachments[id].ob, pos.x,pos.y,pos.z,rot.x,rot.y,rot.z, data.objects.attachments[id].pos.x,data.objects.attachments[id].pos.y,data.objects.attachments[id].pos.z, data.objects.attachments[id].rot.x,data.objects.attachments[id].rot.y,data.objects.attachments[id].rot.z) end end end ]] options.missionTimerCreatorTimer = setTimer( function() if not data.timer then data.timer = exports.missiontimer:createMissionTimer( options.roundtime-2000, true, "%m:%s", 0.5, 12, false, "pricedown", 1 ) exports.missiontimer:setMissionTimerHurryTime( data.timer, 60000 ) options.missionTimerCreatorTimer = nil end end, 2000, 1 ) printConsole( "Map loaded! It has: " .. (#spawnGroupTable or 0) .. " spawngroups, " .. (#classes or 0) .. " classes, " .. (#taskTable or 0) .. " tasks, " .. (#objectiveTable or 0) .. " objectives, " .. (#vehicleTable or 0) .. " vehicles, " -- .. (#objectTable or 0) .. " objects, " .. (#pickupTable or 0) .. " pickups, " .. (#boundaryCornerTable or 0) .. " boundary corners, " .. (#teleportTable or 0) .. " teleports and " .. (#cameraTable or 0) .. " security cameras (" .. (#cameraMountTable or 0) .. " mounts)" .. "[" .. tostring(options.roundtime) .. "]" ) setPedGravity( root, 0.008 ) changeWeather() local currentPlayers = getElementsByType( "player" ) options.playerPrepareTimer = setTimer( function( players ) local realTime = getRealTime() for _, value in ipairs( players ) do -- Prepare active players (ignore the ones in login screen) if value and isElement( value ) and isPlayerActive( value ) then preparePlayer( value ) triggerClientEvent( value, "onClientMapStarted", value, miniClass, options.displayDistanceToPM ) initClassSelection( value ) end end data.roundTimer = setTimer( roundTick, 1000, 0 ) options.playerPrepareTimer = nil end, 4000, 1, currentPlayers ) end addEventHandler( "onGamemodeMapStart", root, ptpmMapStart ) -- compcheck addEvent( "onGamemodeMapStop", false ) function ptpmMapStop( map ) clearTask() clearObjective() for _, value in ipairs( getElementsByType( "task", source ) ) do if data.tasks and data.tasks[value] then if data.tasks[value].taskArea then destroyElement(data.tasks[value].taskArea) data.tasks[value].taskArea = nil end if data.tasks[value].marker then destroyElement(data.tasks[value].marker) data.tasks[value].marker = nil end if data.tasks[value].blip then destroyElement(data.tasks[value].blip) data.tasks[value].blip = nil end end end for _, value in pairs( getElementsByType( "safezone", source ) ) do if data.safezone and data.safezone[value] then if data.safezone[value].marker then destroyElement(data.safezone[value].marker) data.safezone[value].marker = nil end if data.safezone[value].blip then destroyElement(data.safezone[value].blip) data.safezone[value].blip = nil end if data.safezone[value].zone then destroyElement(data.safezone[value].zone) data.safezone[value].zone = nil end end end for _, value in pairs( getElementsByType( "teleport", source ) ) do if data.teleports and data.teleports[value] then if data.teleports[value].cuboid then destroyElement(data.teleports[value].cuboid) data.teleports[value].cuboid = nil end end end for _, value in ipairs( getElementsByType( "objective", source ) ) do if data.objectives and data.objectives[value] then if data.objectives[value].objArea then destroyElement(data.objectives[value].objArea) data.objectives[value].objArea = nil end if data.objectives[value].marker then destroyElement(data.objectives[value].marker) data.objectives[value].marker = nil end if data.objectives[value].blip then destroyElement(data.objectives[value].blip) data.objectives[value].blip = nil end end end -- Destroy jetpacks & their timers if data.pickup then for value, _ in pairs( data.pickups ) do if data.pickups[value].timer then destroyPickup( value ) end end end -- Destroy vehicle respawn timers for _, vehicle in ipairs( getElementsByType( "vehicle" ) ) do if vehicle and isElement( vehicle ) then stopVehicleRespawn( vehicle ) end end for _, value in ipairs( getElementsByType( "player" ) ) do if value and isElement( value ) then --if playerInfo then -- if playerInfo[value] then --playerInfo[value].class = nil <- doesn't remove class resetPlayerRound( value ) -- Following are in resetPlayerRound() -- classSelectionRemove( value ) -- local activeCamera = getElementData( value, "ptpm.activeCamera" ) -- if activeCamera then -- --if playerInfo[value].activeCamera then -- clearCameraFor( value ) -- end -- setPlayerTeam( value, nil ) -- setElementData( value, "ptpm.score.class", nil ) triggerClientEvent( value, "onClientMapStop", root, runningMapName ) -- end end end if data.roundTimer then if isTimer( data.roundTimer ) then killTimer( data.roundTimer ) end data.roundTimer = nil end if options.swapclass and options.swapclass.target then if options.swapclass.timer then if isTimer( options.swapclass.timer ) then killTimer( options.swapclass.timer ) end end drawStaticTextToScreen( "delete", options.swapclass.target, "swapText" ) options.swapclass = {} end currentPM = false if options.missionTimerCreatorTimer then if isTimer( options.missionTimerCreatorTimer ) then killTimer( options.missionTimerCreatorTimer ) end options.missionTimerCreatorTimer = nil end if options.playerPrepareTimer then if isTimer( options.playerPrepareTimer ) then killTimer( options.playerPrepareTimer ) end options.playerPrepareTimer = nil end if options.endGamePrepareTimer then if isTimer( options.endGamePrepareTimer ) then killTimer( options.endGamePrepareTimer ) end options.endGamePrepareTimer = nil end if data.timer then if isElement( data.timer ) then destroyElement( data.timer ) end data.timer = nil end --drawStaticTextToScreen( "delete", root, "roundTimer" ) end addEventHandler( "onGamemodeMapStop", root, ptpmMapStop ) function ptpmLoginResourceStop( resource ) removeEventHandler( "onResourceStop", getResourceRootElement( resource ), ptpmLoginResourceStop ) settings.loginActive = nil settings.loginHandled = nil end function resetPlayer( thePlayer ) resetPlayerRound( thePlayer ) -- Save session lengths if isRunning( "ptpm_accounts" ) then local now = getRealTime().timestamp local sessionjoin = getElementData( thePlayer, "ptpm.sessionjoin" ) or now local sessionlength = now - sessionjoin local timeplaying = exports.ptpm_accounts:getPlayerStat( thePlayer, "timeplaying" ) or 0 exports.ptpm_accounts:setPlayerStat( thePlayer, "timeplaying", timeplaying + sessionlength ) local longestsession = exports.ptpm_accounts:getPlayerStat( thePlayer, "longestsession" ) or 0 if sessionlength > longestsession then exports.ptpm_accounts:setPlayerStat( thePlayer, "longestsession", sessionlength ) end end -- Save player stats local username = getPlayerUsername( thePlayer ) if username then exports.ptpm_accounts:savePlayerStats( thePlayer, username ) end setElementData( thePlayer, "ptpm.ready", nil, false ) -- setElementData( thePlayer, "ptpm.loggedIn", nil ) -- This is handled by ptpm_login -- setElementData( thePlayer, "ptpm.loggingIn", nil ) -- This is handled by ptpm_login local freezeTimer = getElementData( thePlayer, "ptpm.freezeTimer" ) if freezeTimer then if isTimer( freezeTimer ) then killTimer( freezeTimer ) end end setElementData( thePlayer, "ptpm.freezeTimer", nil, false ) -- NOTE: add check to spawn for being frozen setElementData( thePlayer, "ptpm.controllable", nil, false ) -- setPlayerControllable toggles local muteTimer = getElementData( thePlayer, "ptpm.muteTimer" ) if muteTimer then if isTimer( muteTimer ) then killTimer( muteTimer ) end end setElementData( thePlayer, "ptpm.muteTimer", nil, false ) setElementData( thePlayer, "ptpm.spam.talkCount", nil, false ) setElementData( thePlayer, "ptpm.spam.lastTalkTime", nil, false ) setElementData( thePlayer, "ptpm.spam.repeatCount", nil, false ) setElementData( thePlayer, "ptpm.score.kills", nil ) setElementData( thePlayer, "ptpm.score.deaths", nil ) setElementData( thePlayer, "ptpm.id", nil ) setElementData( thePlayer, "ptpm.sessionjoin", nil, false ) end function resetPlayerRound( thePlayer ) -- Round specific info should be reset setElementData( thePlayer, "ptpm.classID", nil ) local watching = getElementData( thePlayer, "ptpm.watching" ) if watching then exports.spectator:spectateStop( thePlayer ) end setElementData( thePlayer, "ptpm.watching", nil, false ) local activeCamera = getElementData( thePlayer, "ptpm.activeCamera" ) if activeCamera then clearCameraFor( thePlayer ) end setElementData( thePlayer, "ptpm.activeCamera", nil, false ) setElementData( thePlayer, "ptpm.currentCameraID", nil, false ) local gettingOffCamera = getElementData( thePlayer, "ptpm.gettingOffCamera" ) if gettingOffCamera then if isTimer( gettingOffCamera ) then killTimer( gettingOffCamera ) end end setElementData( thePlayer, "ptpm.gettingOffCamera", nil, false ) local inClassSelection = getElementData( thePlayer, "ptpm.inClassSelection" ) if inClassSelection then classSelectionRemove( thePlayer ) end setElementData( thePlayer, "ptpm.inClassSelection", nil, false ) setElementData( thePlayer, "ptpm.classSelect.id", nil, false ) setElementData( thePlayer, "ptpm.classSelect.lctrl", nil, false ) setElementData( thePlayer, "ptpm.classSelect.rctrl", nil, false ) local autoRight = getElementData( thePlayer, "ptpm.classSelect.autoRight" ) if autoRight then if isTimer( autoRight ) then killTimer( autoRight ) end end setElementData( thePlayer, "ptpm.classSelect.autoRight", nil, false ) local autoLeft = getElementData( thePlayer, "ptpm.classSelect.autoLeft" ) if autoLeft then if isTimer( autoLeft ) then killTimer( autoLeft ) end end setElementData( thePlayer, "ptpm.classSelect.autoLeft", nil, false ) setElementData( thePlayer, "ptpm.classSelectAfterDeath", nil, false ) local interiorBlip = getElementData( thePlayer, "ptpm.interiorBlip" ) if interiorBlip then destroyElement( interiorBlip ) end setElementData( thePlayer, "ptpm.interiorBlip", nil, false ) local pinfoTimer = getElementData( thePlayer, "ptpm.pinfoTimer" ) if pinfoTimer then if isTimer( pinfoTimer ) then killTimer( pinfoTimer ) end drawStaticTextToScreen( "delete", thePlayer, "pinfo" ) end setElementData( thePlayer, "ptpm.pinfoTimer", nil, false ) setElementData( thePlayer, "ptpm.goodX", nil, false ) setElementData( thePlayer, "ptpm.goodY", nil, false ) setElementData( thePlayer, "ptpm.goodZ", nil, false ) setElementData( thePlayer, "ptpm.consecutiveKills", nil, false ) setElementData( thePlayer, "ptpm.roundKills", nil, false ) setElementData( thePlayer, "ptpm.currentInterior", nil, false ) local afterDeathTimer = getElementData( thePlayer, "ptpm.afterDeathTimer" ) if afterDeathTimer then if isTimer( afterDeathTimer ) then killTimer( afterDeathTimer ) end end setElementData( thePlayer, "ptpm.afterDeathTimer", nil, false ) removePlayerBlip( thePlayer ) setElementData( thePlayer, "ptpm.blip.visibleto", nil ) setElementData( thePlayer, "ptpm.score.class", nil ) setPlayerTeam( thePlayer, nil ) end function preparePlayer( thePlayer ) setElementData( thePlayer, "ptpm.classSelect.id", 0, false ) --setPlayerControllable( thePlayer, true ) -- Element data is false by default, but this is reset to false in class selection anyway end
-------------------------------- -- @module Scheduler -- @extend Ref -- @parent_module cc -------------------------------- -- @function [parent=#Scheduler] setTimeScale -- @param self -- @param #float float -------------------------------- -- @function [parent=#Scheduler] getTimeScale -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#Scheduler] Scheduler -- @param self --- addin -------------------------------- -- @function [parent=#Scheduler] scheduleScriptFunc -- @param self -- @param #number tick -- @param #number value -- @param #bool bool -- @return #number id -------------------------------- -- @function [parent=#Scheduler] unscheduleScriptEntry -- @param self -- @param #function Entry return nil
describe("table", function() setup(function() TOML = require "toml" end) it("empty", function() local obj = TOML.parse "[a]" local sol = { a = {} } assert.same(sol, obj) end) it("sub empty", function() local obj = TOML.parse[=[ [a] [a.b]]=] local sol = { a = { b = {} } } assert.same(sol, obj) end) it("whitespace", function() local obj = TOML.parse[=[ [a.b.c] key = "value" [ d.e.f ] key = "value" [ g . h . i ] key = "value"]=] local sol = { a = { b = { c = { key = "value", } } }, d = { e = { f = { key = "value" } } }, g = { h = { i = { key = "value" } } } } assert.same(sol, obj) end) it("quoted", function() local obj = TOML.parse[=[ [dog."tater.man"] type = "pug"]=] local sol = { dog = { ["tater.man"] = { type = "pug" } } } assert.same(sol, obj) end) it("inline", function() local obj = TOML.parse[=[ name = { first = "Tom", last = "Preston-Werner" } point = { x = 1, y = 2 }]=] local sol = { name = { first = "Tom", last = "Preston-Werner", }, point = { x = 1, y = 2, } } assert.same(sol, obj) end) it("additional brace", function() local obj, err = TOML.parse[=[ [ [table]] field = 1 ]=] assert.same(nil, obj) assert.same('string', type(err)) end) it("duplicated table", function() local obj, err = TOML.parse[=[ [a] [a] ]=] assert.same(nil, obj) assert.same('string', type(err)) end) it("tablke key with an equal", function() local obj, err = TOML.parse[=[ [b = 1 ]=] assert.same(nil, obj) assert.same('string', type(err)) end) it("table on a non dedicated line", function() local obj, err = TOML.parse[=[ [table] key = "value" ]=] assert.same(nil, obj) assert.same('string', type(err)) end) end)
module(..., package.seeall) local installer = require("sputnik.installer") function execute(args, sputnik) installer.reset_salts() installer.make_wsapi_script(dir, "sputnik.ws") installer.make_cgi_file(dir, "sputnik.cgi") end
-- FONT vim.o.guifont = "Iosevka Nerd Font:h11" -- COMMON SETTINGS vim.o.hlsearch = false vim.o.mouse = 'a' vim.o.breakindent = true vim.o.ignorecase = true vim.o.termguicolors = true vim.o.completeopt = 'menuone,noselect' vim.o.smartcase = true vim.o.updatetime = 250 vim.g.onedark_terminal_italics = 2 vim.wo.signcolumn = 'yes' vim.wo.number = true vim.opt.undofile = true require('settings.mappings') require('settings.pps') require('settings.theme')
AddCSLuaFile(); SWEP.Base = "weapon_cc_base"; SWEP.PrintName = "Combine Standard Issue Sidearm"; SWEP.Slot = 2; SWEP.SlotPos = 2; SWEP.UseHands = true; SWEP.ViewModel = "models/weapons/c_pistol.mdl"; SWEP.WorldModel = "models/weapons/w_pistol.mdl"; SWEP.Firearm = true; SWEP.Primary.ClipSize = 18; SWEP.Primary.DefaultClip = 18; SWEP.Primary.Ammo = "cc_pistol"; SWEP.Primary.InfiniteAmmo = true; SWEP.Primary.Automatic = false; SWEP.Primary.Sound = "Weapon_Pistol.Single"; SWEP.Primary.Damage = 5; SWEP.Primary.Force = 0.73; SWEP.Primary.Accuracy = 0.1; SWEP.Primary.Delay = 0.05; SWEP.Primary.ReloadSound = "Weapon_Pistol.Reload"; SWEP.HoldType = "revolver"; SWEP.HoldTypeHolster = "normal"; SWEP.Holsterable = true; SWEP.HolsterUseAnim = true; SWEP.HolsterPos = Vector(); SWEP.HolsterAng = Vector(); SWEP.AimPos = Vector( -5.92, 3.12, -4.34 ); SWEP.AimAng = Vector( 0.11, -1.28, 1.66 ); SWEP.Itemize = true; SWEP.ItemDescription = "The Combine variant of the USP Match is chambered for 9x19mm Parabellum rounds. It's the Combine Civil Authority's standard sidearm."; SWEP.ItemWeight = 2; SWEP.ItemFOV = 13; SWEP.ItemCamPos = Vector( -3.34, 50, -5.8 ); SWEP.ItemLookAt = Vector( 0, 0, -1.32 ); SWEP.ItemBulkPrice = 1500; SWEP.ItemLicense = LICENSE_BLACK; function SWEP:AddViewKick() self.Owner:ViewPunch( Angle( math.Rand( 0.25, 0.5 ), math.Rand( -0.6, 0.6 ), 0 ) ); end
local _, core = ...; local function random_key(tab) local keys = {} for k in pairs(tab) do table.insert(keys, k) end return tab[keys[math.random(#keys)]] end local function getTableSize(t) local count = 0 for _, _ in pairs(t) do count = count + 1 end return count end local function getOtherPlayer(tab,key) for k , _ in pairs(tab) do if k ~= key then return k end end end local function tableFind(tab,el) for index, value in pairs(tab) do if value == el then return index end end end local function debugPlayersInGame() print('Players In Current core.game: ') for k, v in pairs(game.players) do print(v["name"], v["rolled"]) end end function core:dgMessage(msg, chatType) local msg = '[DorkGambling]: '.. msg SendChatMessage(msg,chatType) end function DebugGame() return core end local function playerIsInGame(playerName) for k in pairs(game.players) do if k == playerName then return true end end return false end function core:processRoll(roller, rollResult, rollMin, rollMax) print(roller, rollResult) if core.selectedGameType == 'Death Roll' then if roller == core.game.currentPlayer and rollMax == core.game.currentRoll and rollMin == 1 then if rollResult == 1 then local winner = getOtherPlayer(core.game.players,roller) core:dgMessage(winner .. " Wins! " .. roller .." pays " .. winner .. core.game. .." gold!" , "Party") core.game = nil else core.game.currentPlayer = getOtherPlayer(core.game.players,roller) core.game.currentRoll = rollResult core:dgMessage(core.game.currentPlayer .. ' next: (/roll ' .. core.game.currentRoll ..')' ,'Party') end end elseif core.game.gameType == 'High Low' then if rollMax == core.game.currentRoll and rollMin == 1 and playerIsInGame(roller) then if core.game.players[roller].roll == nil then core.game.players[roller].roll = rollResult --Check for highest or lowest rolls.. and ties.. if core.game.highRoll < rollResult then core.game.highRoll = rollResult core.game.highPlayer = roller elseif core.game.highRoll == rollResult then table.insert(core.game.highTie, playerName) end if core.game.lowRoll > rollResult then core.game.lowRoll = rollResult core.game.lowPlayer = roller elseif core.game.lowRoll == rollResult then table.insert(core.game.lowTie, playerName) end if core.game:allPlayersRolled() then core.game.gameStame = 'WaitingForRolls' dgMessage('The core.game is over!','Party') dgMessage(core.game.lowPlayer .. ' owes ' .. core.game.highPlayer .. ' ' .. (game.highRoll - core.game.lowRoll) .. ' gold!','Party') core.game = {} end end end end end ---@param gameType string game type ---@param bet number the gold bet function core.newGame(gameType, bet) if core.game ~= nil then if core.game.gameState ~= nil then print('Game In Progress') return core.game end end return { gameType = core.gameType, gameState = 'WaitingForPlayers', players = {}, server = GetRealmName(), maxNumPlayers = core.gameModes[gameType].maxPlayers, minNumPlayers = core.gameModes[gameType].minPlayers, numPlayers = 0, currentRoll = bet, highRoll = 0, highPlayer = nil, highTie = {}, lowRoll = 9999999999, lowPlayer = nil, lowTie = {}, gameCanStart = function (self) return self.numPlayers >= self.minNumPlayers end, pickRandomPlayer = function (self) if self.numPlayers > 1 then return random_key(self.players).name else return nil end end, allPlayersRolled = function (self) if core.gameType == 'High Low' or core.gameType == 'Coin Toss' then for k,v in pairs(self.players) do if v.roll == nil then return false end end return true end return nil end } end ---@param playerName string player name to add local function addPlayerToGame(playerName) if core.game.numPlayers >= core.game.maxNumPlayers then return end if core.game.players[playerName] == nil then core.game.players[playerName] = {rolled = nil, name = playerName} core.game.numPlayers = core.game.numPlayers + 1 if core.game.numPlayers >= core.game.maxNumPlayers then print(core.game.numPlayers, core.game.maxNumPlayers, core.selectedGameType) core:dgMessage('Max players reached for '.. core.selectedGameType .. '! Click roll to start!','Party') end end end ---@param playerName string player name to remove local function removePlayerFromGame(playerName) if core.game.players[playerName] ~= nil then core.game.players[playerName] = nil core.game.numPlayers = core.game.numPlayers - 1 end end function core:restartGame() print('restarting core.game') core.game = nil end local function dorkGamblingCommands(msg) if msg == '' then core.config:toggle(); return end end function core:init(event, name, ...) if name ~= "DorkGambling" then return end; SLASH_DORKGAMBLING1, SLASH_DORKGAMBLING2, SLASH_DORKGAMBLING3 = "/dg", "/dork", "/DorkGambling" SlashCmdList.DORKGAMBLING = dorkGamblingCommands; core.config:toggle(); end function core:TextEventHandler(event, ...) if GetNumGroupMembers() == 0 or core.game == nil then return elseif event == "CHAT_MSG_SYSTEM" and core.game ~= nil then if core.game.state == 'Waiting' then local message = ... local roller, rollResult, rollMin, rollMax = string.match(message, "(.+) rolls (%d+) %((%d+)-(%d+)%)"); if roller and rollResult and rollMin and rollMax then core:processRoll(roller, tonumber(rollResult), tonumber(rollMin), tonumber(rollMax)) end end elseif (event == "CHAT_MSG_PARTY" or "CHAT_MSG_PARTY_LEADER") then if core.game.state == 'Lets Roll' then local msg, roller = ... if msg == '1' then addPlayerToGame(string.match(roller, "(%a+)")) elseif msg == '-1' then removePlayerFromGame(string.match(roller, "(%a+)")) end core.config:updatePlayerCount() end end end local events = CreateFrame("Frame"); events:RegisterEvent("ADDON_LOADED"); events:SetScript("OnEvent", core.init); ---@class player ---@field public name string @name of the player ---@field public rolled number @what the player rolled --rolled = nil, name = playerName ---@class testGame ---@field public core.gameType string @this is a test comment ---@field public core.gameState string @this is a test comment ---@field public players table<string,player> array of players ---@type testGame --local TestGame;
#!/usr/bin/env luajit local env = setmetatable({}, {__index=_G}) if setfenv then setfenv(1, env) else _ENV = env end require 'symmath'.setup{env=env, MathJax={title='Finite Volume', usePartialLHSForDerivative=true}} local class = require 'ext.class' local table = require 'ext.table' local range = require 'ext.range' local matrix = require 'matrix' local Function = require 'symmath.Function' local function makefunc(name) local cl = class(Function) cl.name = name return cl end local function funcFromExpr(expr) local str = tostring(expr) local name = str:match'%$(.*)%$' return makefunc(name) end local function Nabla(i, expr) return makefunc('\\nabla'..i)(expr) end local function partial(i, expr) return makefunc('\\partial'..i)(expr) end local dots = var'...' -- TODO .... how to do indexes of {} latex ... local TensorRef = require 'symmath.tensor.Ref' local TensorIndex = require 'symmath.tensor.Index' local function index(expr, ...) return TensorRef(expr, table{...}:map(function(s) local lower if s:sub(1,1) == '^' then s = s:sub(2) end if s:sub(1,1) == '_' then s = s:sub(2) lower = true end return TensorIndex{symbol=s, lower=lower} end):unpack() ) end local function addIhatJhat(x) return index(x, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q' ) end local t = var't' local tL = var't_L' local tR = var't_R' local u0 = var'u_0' local u0L = var'u_{0,L}' local u0R = var'u_{0,R}' local u1 = var'u_1' local u1L = var'u_{1,L}' local u1R = var'u_{1,R}' local un = var'u_n' local unL = var'u_{n,L}' local unR = var'u_{n,R}' local uk = var'u_k' local ukL = var'u_{k,L}' local ukR = var'u_{k,R}' local V = var'V' printbr'Let $g_{ab} = \\partial_a \\cdot \\partial_b$ be the spacetime grid metric. Let it be diagonal.' printbr'Let the $\\hat{i}$ indexes be coefficients of a non-coordinate normalized basis.' printbr'Let $e_\\hat{i} = {e^i}_\\hat{i} \\partial_i$ be the non-coordinate normalized basis.' printbr'Let ${e^i}_\\hat{i}$ be the linear transform from the coordinate basis to the normalized non-coordinate basis, also diagonal.' printbr'Let ${e_i}^\\hat{i}$ be the transform from the normalized non-coordinate basis to the coordinate basis, such that $[{e_i}^\\hat{i}] = [{e^i}_\\hat{i}]^{-1}$.' printbr'Let $V = det([{e_i}^\\hat{i}])$ be the grid metric volume.' printbr'Let $\\nabla$ be Levi-Civita tensor of the coordinate basis.' local F = var'F' local FIJ = addIhatJhat(F) local expr expr = Integral( Integral( dots * Integral( Nabla('_a', FIJ'^a') * V, un, unL, unR), u1, u1L, u1R), u0, u0L, u0R):eq(0) printbr(expr) printbr'Can we integrate non-coordinate values across an integral of a coordinate?' printbr'Or do we need to factor in the rescaling values as well?' --[=[ printbr"If you don't rescale each flux index now then you will need to add in rescaling derivatives when calculating the covariant derivative of the flux." printbr"...But can we rescale it? This changes the integral. Does the integral still retain the same meaning?" local e = var'e' expr = Integral( Integral( dots * Integral( Nabla('_a', --[[ index(e, '_i_1', '^\\hat{i}_1') * dots * index(e, '_i_p', '^\\hat{i}_p') * index(e, '^j_1', '_\\hat{j}_1') * dots * index(e, '^j_q', '_\\hat{j}_q') *--]] index(F, '^i_1', '^...', '^i_p', '_j_1', '_...', '_j_q', '^a') ) * V, un, unL, unR), u1, u1L, u1R), u0, u0L, u0R):eq(0) printbr(expr) printbr'<hr>' --]=] local e_k_hatk = index(e, '^k', '_\\hat{k}') local FIJhatK = index(FIJ, '^\\hat{k}') printbr'Separate space and time, assume extrinsic curvature is zero.' expr = Integral( Integral( dots * Integral( ((index(e, '^0', '_\\hat{0}') * index(FIJ, '^\\hat{0}')):diff(u0) + Nabla('_k', e_k_hatk * FIJhatK)) * V, un, unL, unR), u1, u1L, u1R), u0, u0L, u0R):eq(0) printbr(expr) printbr'Let $U = F^\\hat{0} = F^0$, i.e. the state is the flux through time.' printbr'Let $t = u_0$.' printbr'Let ${e^0}_\\hat{0}$ = 1.' local U = var'U' local UIJ = addIhatJhat(U) expr = Integral( Integral( dots * Integral( (UIJ:diff(t) + Nabla('_k', e_k_hatk * FIJhatK)) * V, un, unL, unR), u1, u1L, u1R), u0, u0L, u0R):eq(0) printbr(expr) printbr'Separate the integrals.' printbr'Rearrange time integral to be first next to $U$.' expr = ( Integral( dots * Integral( Integral( UIJ:diff(t) * V, t, tL, tR), un, unL, unR), u1, u1L, u1R) + Integral( Integral( dots * Integral( Nabla('_k', e_k_hatk * FIJhatK) * V, un, unL, unR), u1, u1L, u1R), t, tL, tR) ):eq(0) printbr(expr) local UIJ_ = funcFromExpr(UIJ) printbr'Apply FTC to $U$, separate $\\partial_t$ from $F$.' expr = ( Integral( dots * Integral( (UIJ_(t:eq(tR)) - UIJ_(t:eq(tL))) * V, un, unL, unR), u1, u1L, u1R) + Integral(1, t, tL, tR) * Integral( dots * Integral( Nabla('_k', e_k_hatk * FIJhatK) * V, un, unL, unR), u1, u1L, u1R) ):eq(0) printbr(expr) local DeltaT = var'\\Delta t' printbr'Factor out $U(t=t_R) - U(t=t_L)$, substitute $t_R - t_L = \\Delta t$.' expr = ( (UIJ_(t:eq(tR)) - UIJ_(t:eq(tL))) * Integral( dots * Integral( V, un, unL, unR), u1, u1L, u1R) + DeltaT * Integral( dots * Integral( Nabla('_k', e_k_hatk * FIJhatK) * V, un, unL, unR), u1, u1L, u1R) ):eq(0) printbr(expr) printbr'Move $U(t=t_R)$ to the other side of the equation.' expr = UIJ_(t:eq(tR)) :eq( UIJ_(t:eq(tL)) - DeltaT * ( Integral( dots * Integral( Nabla('_k', e_k_hatk * FIJhatK) * V, un, unL, unR), u1, u1L, u1R) / Integral( dots * Integral( V, un, unL, unR), u1, u1L, u1R) ) ) printbr(expr) local Gamma = var'\\Gamma' printbr"Expand $\\nabla_i$. Don't forget that you will need to rescale the indexes associated with the connection pseudotensor that you are multiplying with the F tensor." expr = UIJ_(t:eq(tR)) :eq( UIJ_(t:eq(tL)) - DeltaT / Integral( dots * Integral( V, un, unL, unR), u1, u1L, u1R) * ( Integral( dots * Integral( ( partial('_k', e_k_hatk * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' )) + e_k_hatk * index(e '_i_l', '^\\hat{i}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_{l-1}', '^m', '^\\hat{i}_{l+1}', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^i_l', '_k', '_m' ) - (e_k_hatk * index(e '^j_l', '_\\hat{j}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_{l-1}', '_m', '_\\hat{j}_{l-+}', '_...', '_\\hat{j}_q', '^\\hat{k}' )) * index( Gamma, '^m', '_k', '_j_l' ) + index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^m' ) * index( Gamma, '^k', '_k', '_m' ) ) * V, un, unL, unR), u1, u1L, u1R) ) ) printbr(expr) printbr[[Let ${\Gamma^k}_{km} = ln(\sqrt{det(g_{ij})})$, so $\partial_k (\cdot) + (\cdot) {\Gamma^k}_{km} = \frac{1}{V} \partial_k(V (\cdot) )$]] expr = UIJ_(t:eq(tR)) :eq( UIJ_(t:eq(tL)) - DeltaT / Integral( dots * Integral( V, un, unL, unR), u1, u1L, u1R) * ( Integral( dots * Integral( partial('_k', V * e_k_hatk * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' )) + ( e_k_hatk * index(e '_i_l', '^\\hat{i}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_{l-1}', '^m', '^\\hat{i}_{l+1}', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^i_l', '_k', '_m' ) - e_k_hatk * index(e '^j_l', '_\\hat{j}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_{l-1}', '_m', '_\\hat{j}_{l-+}', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^m', '_k', '_j_l' ) ) * V, un, unL, unR), u1, u1L, u1R) ) ) printbr(expr) printbr'Separate the integrals of the flux. Rearrange integrals next to the partial so $u_k$ is inner-most.' expr = UIJ_(t:eq(tR)) :eq( UIJ_(t:eq(tL)) - DeltaT / Integral( dots * Integral( V, un, unL, unR), u1, u1L, u1R) * ( Integral( var'\\overset{- \\{k\\}}{...}' * Integral( Integral( partial('_k', V * e_k_hatk * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' )), uk, ukL, ukR), un, unL, unR), u1, u1L, u1R) + Integral( dots * Integral( ( e_k_hatk * index(e '_i_l', '^\\hat{i}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_{l-1}', '^m', '^\\hat{i}_{l+1}', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^i_l', '_k', '_m' ) - e_k_hatk * index(e '^j_l', '_\\hat{j}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_{l-1}', '_m', '_\\hat{j}_{l-+}', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^m', '_k', '_j_l' ) ) * V, un, unL, unR), u1, u1L, u1R) ) ) printbr(expr) local V_e_FIJ = makefunc('('..tostring(V * e_k_hatk * FIJhatK):match'%$(.*)%$'..')') printbr'Apply FTC to $u_k$.' expr = UIJ_(t:eq(tR)) :eq( UIJ_(t:eq(tL)) - DeltaT / Integral( dots * Integral( V, un, unL, unR), u1, u1L, u1R) * ( Integral( var'\\overset{- \\{k\\}}{...}' * Integral( V_e_FIJ(uk:eq(ukR)) - V_e_FIJ(uk:eq(ukL)), un, unL, unR), u1, u1L, u1R) + Integral( dots * Integral( ( e_k_hatk * index(e '_i_l', '^\\hat{i}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_{l-1}', '^m', '^\\hat{i}_{l+1}', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^i_l', '_k', '_m' ) - e_k_hatk * index(e '^j_l', '_\\hat{j}_l' ) * index( F, '^\\hat{i}_1', '^...', '^\\hat{i}_p', '_\\hat{j}_1', '_...', '_\\hat{j}_{l-1}', '_m', '_\\hat{j}_{l-+}', '_...', '_\\hat{j}_q', '^\\hat{k}' ) * index( Gamma, '^m', '_k', '_j_l' ) ) * V, un, unL, unR), u1, u1L, u1R) ) ) printbr(expr) printbr'<hr>' printbr'<h2>Specific Examples</h2>' local function example(args) print'<hr>' printbr('<h3>'..args.name..'</h3>') local us = table(args.vars) local lengths = table(args.lengths) assert(#lengths == #us) local Vval = table.product(lengths)() local Ls = us:mapi(function(u) return var(u.name..'_L') end) local Rs = us:mapi(function(u) return var(u.name..'_R') end) local hats = us:mapi(function(u) return var('\\hat{'..u.name..'}') end) printbr(var'n':eq(#us)) local sep = '' for i,u in ipairs(us) do print(sep, var('u_'..i):eq(u)) sep = ',' end printbr() sep = '' for i,l in ipairs(lengths) do print(sep, index(var'e', '_'..us[i].name, '^'..hats[i].name):eq(l)) sep = ',' end printbr() sep = '' for i,l in ipairs(lengths) do print(sep, index(var'e', '^'..us[i].name, '_'..hats[i].name):eq(1/l)) sep = ',' end printbr() printbr(var'V':eq(Vval)) for p=0,1 do for q=0,0 do printbr('<h4>degree ', Matrix{p, q}:T(), 'case</h4>') -- n x ... x n, p+q times local sizes = matrix(range(p+1):mapi(function() return n end)) for is in sizes:iter() do local pqindexes = is:map(function(i,j) return (j <= p and '^' or '_')..hats[i].name end) local UIJ = index(U, pqindexes:unpack()) local UIJ_ = funcFromExpr(UIJ) local function wrapints(expr, excluding) for i,u in ipairs(us) do if i ~= excluding then expr = Integral(expr, u, Ls[i], Rs[i]) end end return expr end local Fsum for i,u in ipairs(us) do local hat, L, R = hats[i], Ls[i], Rs[i] local FIJ = index(F, table(pqindexes):append{'^'..hats[i].name}:unpack() ) local V_e_F_i = makefunc('('..tostring(Vval / lengths[i] * FIJ):match'%$(.*)%$'..')') local term = wrapints(V_e_F_i(u:eq(R)) - V_e_F_i(u:eq(L)), i) Fsum = Fsum and (Fsum + term) or term end Fsum = Fsum or 0 local expr = UIJ_(t:eq(tR)):eq( UIJ_(t:eq(tL)) - DeltaT / wrapints(Vval) * Fsum ) printbr(expr) -- now to simplify... -- TODO simplify() shouldn't expand. only factor. local expr = UIJ_(t:eq(tR)):eq( UIJ_(t:eq(tL)) - DeltaT / wrapints(Vval)() * Fsum ) printbr(expr) end end end end printbr'<h3>Polar, Anholonomic, Normalized</h3>' printbr'$n = 2, u_1 = r, u_2 = \\phi$' printbr'${e_r}^\\hat{r} = 1, {e^r}_\\hat{r} = 1$' printbr'${e_\\phi}^\\hat{\\phi} = r, {e^\\phi}_\\hat{\\phi} = \\frac{1}{r}$' printbr'$V = r$' local r = var'r' local rL = var'r_L' local rR = var'r_R' local phi = var'\\phi' local phiL = var'\\phi_L' local phiR = var'\\phi_R' local vars = {r, phi} local lengths = {1, r} local Vval = table.product(lengths) printbr'<h4>scalar case</h4>' local U_ = funcFromExpr(U) local V_e_F_r = makefunc('('..tostring(Vval / lengths[1] * index(F, '^\\hat{r}')):match'%$(.*)%$'..')') local V_e_F_phi = makefunc('('..tostring(Vval / lengths[2] * index(F, '^\\hat{\\phi}')):match'%$(.*)%$'..')') local F_rHat_ = funcFromExpr(index(F, '^\\hat{r}')) local F_phiHat_ = funcFromExpr(index(F, '^\\hat{\\phi}')) expr = U_(t:eq(tR)) :eq( U_(t:eq(tL)) - DeltaT / Integral( Integral( Vval, phi, phiL, phiR), r, rL, rR) * ( Integral( V_e_F_r(r:eq(rR)) - V_e_F_r(r:eq(rL)), phi, phiL, phiR) + Integral( V_e_F_phi(phi:eq(phiR)) - V_e_F_phi(phi:eq(phiL)), r, rL, rR) ) ) printbr(expr) printbr'evaluate...' expr = U_(t:eq(tR)) :eq( U_(t:eq(tL)) - DeltaT / ((phiR - phiL) * (rR^2 / 2 - rL^2 / 2)) * ( (phiR - phiL) * (rR * F_rHat_(rR) - rL * F_rHat_(rL)) + (F_phiHat_(phiR) - F_phiHat_(phiL)) * (rR - rL) ) ) printbr(expr) expr = U_(t:eq(tR)) :eq( U_(t:eq(tL)) - DeltaT * ( (rR * F_rHat_(rR) - rL * F_rHat_(rL)) / (rR^2 / 2 - rL^2 / 2) + (F_phiHat_(phiR) - F_phiHat_(phiL)) * (rR - rL) / ((phiR - phiL) * (rR^2 / 2 - rL^2 / 2)) ) ) printbr(expr) local r = var'r' local phi = var'\\phi' local theta = var'\\theta' local z = var'z' example{ name = 'Polar', vars = {r, phi}, lengths = {1, r}, } example{ name = 'Cylindrical', vars = {r, phi, z}, lengths = {1, r, 1}, } example{ name = 'Spherical', vars = {r, theta, phi}, lengths = {1, r, r*sin(theta)}, }
slot0 = class("LevelGrid", import("..base.BasePanel")) slot1 = require("Mgr/Pool/PoolPlural") slot2 = require("Mgr/Pool/PoolUtil") slot0.MapDefaultPos = Vector3(420, -1000, -1000) slot3 = Vector2(-60, 84.8) slot4 = Vector2(-50, 20) slot0.init = function (slot0) slot0.super.init(slot0) slot0.levelCam = GameObject.Find("LevelCamera"):GetComponent(typeof(Camera)) GameObject.Find("LevelCamera/Canvas"):GetComponent(typeof(Canvas)).sortingOrder = ChapterConst.PriorityMin slot0.quadTws = {} slot0.attachTws = {} slot0.shiningTws = {} slot0.presentTws = {} slot0.markTws = {} slot0.championTws = {} slot0.tweens = {} slot0.markQuads = {} slot0.pools = {} slot0.edgePools = {} slot0.poolParent = GameObject.Find("__Pool__") slot0.opBtns = {} slot0.itemCells = {} slot0.attachmentCells = {} slot0.extraAttachmentCells = {} slot0.onCellClick = nil slot0.onShipStepChange = nil slot0.onShipArrived = nil slot0.lastSelectedId = -1 slot0.quadState = -1 slot0.quadClickProxy = nil slot0.subTeleportTargetLine = nil slot0.subTeleportMode = false slot0.cellEdges = {} slot0.walls = {} slot0.material_Add = LoadAny("ui/commonUI_atlas", "add", typeof(Material)) slot0.loader = AutoLoader.New() end slot0.ExtendItem = function (slot0, slot1, slot2) if IsNil(slot0[slot1]) then slot0[slot1] = slot2 end end slot0.getFleetPool = function (slot0, slot1) if not slot0.pools["fleet_" .. slot1] then slot4 = slot0.shipTpl if slot1 == FleetType.Submarine then slot4 = slot0.subTpl elseif slot1 == FleetType.Transport then slot4 = slot0.transportTpl end slot0.pools[slot2] = slot0.New(slot4.gameObject, 2) end return slot3 end slot0.getChampionPool = function (slot0, slot1) if not slot0.pools["champion_" .. slot1] then slot4 = slot0.championTpl if slot1 == "oni" then slot4 = slot0.oniTpl elseif slot1 == "enemy" then slot4 = slot0.enemyTpl end slot0.pools[slot2] = slot0.New(slot4.gameObject, 3) end return slot3 end slot0.AddEdgePool = function (slot0, slot1, slot2, slot3, slot4, slot5) if slot0.edgePools[slot1] then return end slot6 = GameObject.New(slot1) slot6:AddComponent(typeof(Image)).enabled = false slot0.edgePools[slot1] = slot0.New(slot6, 32) slot7, slot8 = nil parallelAsync({ function (slot0) if not slot0 then slot0() return end slot1.loader:LoadReference(slot1.loader, slot0, typeof(Sprite), function (slot0) slot0 = slot0 slot1() end) end, function (slot0) if not slot0 then slot0() return end slot1.loader:LoadReference(slot1.loader, slot0, typeof(Material), function (slot0) slot0 = slot0 slot1() end) end }, function () function slot0(slot0) go(slot0):GetComponent(typeof(Image)).enabled = true slot1.color = (type(slot0) == "table" and Color.New(unpack(slot0))) or Color.white slot1.sprite = (slot1 and ((type(slot0) == "table" and Color.New(unpack(slot0))) or Color.white)) or nil slot1.material = (slot3 and slot4) or nil end if slot5.edgePools[slot6].prefab then slot0(slot1.prefab) end if slot1.items then for slot5, slot6 in pairs(slot1.items) do slot0(slot6) end end if slot5.cellEdges[slot6] and next(slot5.cellEdges[slot6]) then for slot5, slot6 in pairs(slot5.cellEdges[slot6]) do slot0(slot6) end end end) end slot0.GetEdgePool = function (slot0, slot1) return slot0.edgePools[slot1] end slot0.initAll = function (slot0, slot1) seriesAsync({ function (slot0) slot0:initPlane() slot0:initDrag() onNextTick(slot0) end, function (slot0) if slot0.exited then return end slot0:initTargetArrow() slot0:InitDestinationMark() onNextTick(slot0) end, function (slot0) if slot0.exited then return end for slot4 = 0, ChapterConst.MaxRow - 1, 1 do for slot8 = 0, ChapterConst.MaxColumn - 1, 1 do slot0:initCell(slot4, slot8) end end slot0:UpdateItemCells() slot0:updateQuadCells(ChapterConst.QuadStateFrozen) onNextTick(slot0) end, function (slot0) if slot0.exited then return end slot0:AddEdgePool("SubmarineHunting", "ui/commonUI_atlas", "white_dot", { 1, 0, 0 }, "add") slot0:UpdateFloor() slot0:updateAttachments() slot0:InitWalls() slot0:InitIdolsAnim() onNextTick(slot0) end, function (slot0) if slot0.exited then return end slot0:initFleets() slot0:initChampions() slot0.initChampions() end }) end slot0.clearAll = function (slot0) for slot4, slot5 in pairs(slot0.tweens) do LeanTween.cancel(slot4) end table.clear(slot0.tweens) slot0.loader:Clear() if not IsNil(slot0.cellRoot) then slot0:clearFleets() slot0:clearChampions() slot0:clearTargetArrow() slot0:ClearDestinationMark() slot0:ClearIdolsAnim() for slot4, slot5 in pairs(slot0.itemCells) do slot5:Clear() end table.clear(slot0.itemCells) for slot4, slot5 in pairs(slot0.attachmentCells) do slot5:Clear() end table.clear(slot0.attachmentCells) for slot4, slot5 in pairs(slot0.extraAttachmentCells) do slot5:Clear() end table.clear(slot0.extraAttachmentCells) for slot4 = 0, ChapterConst.MaxRow - 1, 1 do for slot8 = 0, ChapterConst.MaxColumn - 1, 1 do slot0:clearCell(slot4, slot8) end end for slot4, slot5 in pairs(slot0.walls) do slot5:Clear() end table.clear(slot0.walls) slot0:clearPlane() end slot0.material_Add = nil for slot4, slot5 in pairs(slot0.edgePools) do slot5:Clear() end slot0.edgePools = nil for slot4, slot5 in pairs(slot0.pools) do slot5:ClearItems() end slot0.pools = nil GetOrAddComponent(slot0._tf, "EventTriggerListener").enabled = false if slot0.dragTrigger then ClearEventTrigger(slot0.dragTrigger) slot0.dragTrigger = nil end LeanTween.cancel(slot0._tf) end slot5 = 640 slot0.initDrag = function (slot0) slot4 = Vector2.one * math.clamp(((pg.UIMgr.GetInstance().UIMain.transform.rect.height * 0.5) / math.tan(math.deg2Rad * slot0.contextData.chapterVO.theme.fov * 0.5) - Vector3.Dot(slot9, slot10)) / ((pg.UIMgr.GetInstance().UIMain.transform.rect.height * 0.5) / math.tan(math.deg2Rad * slot0.contextData.chapterVO.theme.fov * 0.5)), 0, 1) slot16, slot17, slot18, slot19 = slot0.contextData.chapterVO.getDragExtend(slot5) slot0.leftBound = slot1 - Vector3(slot0.contextData.chapterVO.theme.offsetx, slot0.contextData.chapterVO.theme.offsety, slot0.contextData.chapterVO.theme.offsetz) + slot0.MapDefaultPos.x - slot0.plane:Find("display").anchoredPosition.x - slot17 slot0.rightBound = slot1 - Vector3(slot0.contextData.chapterVO.theme.offsetx, slot0.contextData.chapterVO.theme.offsety, slot0.contextData.chapterVO.theme.offsetz) + slot0.MapDefaultPos.x - slot0.plane.Find("display").anchoredPosition.x + slot16 slot0.topBound = slot0.MapDefaultPos.y - Vector3(slot0.contextData.chapterVO.theme.offsetx, slot0.contextData.chapterVO.theme.offsety, slot0.contextData.chapterVO.theme.offsetz) + slot0.MapDefaultPos.y - slot0.plane.Find("display").anchoredPosition.y + slot19 slot0.bottomBound = slot0.MapDefaultPos.y - Vector3(slot0.contextData.chapterVO.theme.offsetx, slot0.contextData.chapterVO.theme.offsety, slot0.contextData.chapterVO.theme.offsetz) + slot0.MapDefaultPos.y - slot0.plane.Find("display").anchoredPosition.y - slot18 slot20 = Vector3(slot14, slot15, 0) slot0._tf.sizeDelta = Vector2(pg.UIMgr.GetInstance().UIMain.transform.rect.width * 2, pg.UIMgr.GetInstance().UIMain.transform.rect.height * 2) slot0.dragTrigger = GetOrAddComponent(slot0._tf, "EventTriggerListener") slot0.dragTrigger.enabled = true slot0.dragTrigger:AddDragFunc(function (slot0, slot1) slot0._tf.anchoredPosition.x = math.clamp(slot0._tf.anchoredPosition.x + slot1.delta.x * slot1.x, slot0.leftBound, slot0.rightBound) slot0._tf.anchoredPosition.y = math.clamp(slot0._tf.anchoredPosition.y + (slot1.delta.y * slot1.y) / math.cos(slot0._tf.anchoredPosition), slot0.bottomBound, slot0.topBound) slot0._tf.anchoredPosition = slot0._tf.anchoredPosition end) end slot0.initPlane = function (slot0) slot0.levelCam.fieldOfView = slot0.contextData.chapterVO.theme.fov PoolMgr.GetInstance():GetPrefab("chapter/plane", "", false, function (slot0) slot0 = slot0.transform end) slot0.plane = nil nil.name = ChapterConst.PlaneName nil.SetParent(slot3, slot0._tf, false) nil.anchoredPosition3D = Vector3(slot0.contextData.chapterVO.theme.offsetx, slot0.contextData.chapterVO.theme.offsety, slot0.contextData.chapterVO.theme.offsetz) + slot0.MapDefaultPos slot0.cellRoot = nil.Find(slot3, "cells") slot0.quadRoot = nil.Find(slot3, "quads") slot0.bottomMarkRoot = nil.Find(slot3, "buttomMarks") slot0.topMarkRoot = nil.Find(slot3, "topMarks") slot0.restrictMap = nil.Find(slot3, "restrictMap") slot0.UIFXList = nil.Find(slot3, "UI_FX_list") for slot7 = 1, slot0.UIFXList.childCount, 1 do setActive(slot0.UIFXList:GetChild(slot7 - 1), false) end if slot0.UIFXList:Find(slot1:getConfig("uifx")) then setActive(slot4, true) end if type(slot1:getConfig("chapter_fx")) == "table" then for slot9, slot10 in pairs(slot5) do if #slot9 <= 0 then return end slot0.loader:GetPrefab("effect/" .. slot9, slot9, function (slot0) setParent(slot0, slot0.UIFXList) if setParent.offset then tf(slot0).localPosition = Vector3(unpack(slot1.offset)) end if slot1.rotation then tf(slot0).localRotation = Quaternion.Euler(unpack(slot1.rotation)) end end) end end GetImageSpriteFromAtlasAsync("chapter/pic/" .. slot2.assetSea, slot2.assetSea, slot7) slot8 = Vector2(10000, 10000) slot9 = Vector2.zero slot0.indexMax = slot1.indexMax slot0.indexMin = slot1.indexMin for slot13 = 0, ChapterConst.MaxRow - 1, 1 do for slot17 = 0, ChapterConst.MaxColumn - 1, 1 do slot18 = ChapterCell.Line2Name(slot13, slot17) if slot1:getChapterCell(slot13, slot17) then slot8.x = math.min(slot8.x, slot17) slot8.y = math.min(slot8.y, ChapterConst.MaxRow * 0.5 - slot13 - 1) end end end slot8.x = slot8.x * slot2.cellSize + slot2.cellSpace.x slot8.y = slot8.y * slot2.cellSize + slot2.cellSpace.y slot9.x = (slot0.indexMax.y - slot0.indexMin.y + 1) * slot2.cellSize + slot2.cellSpace.x slot9.y = (slot0.indexMax.x - slot0.indexMin.x + 1) * slot2.cellSize + slot2.cellSpace.y slot6.anchoredPosition = slot8 + slot9 * 0.5 slot6.sizeDelta = slot9 slot0.restrictMap.anchoredPosition = slot8 + slot9 * 0.5 slot0.restrictMap.sizeDelta = slot9 slot12 = slot6:Find("ABC") slot13 = slot12:GetChild(0) slot14 = slot12:GetComponent(typeof(GridLayoutGroup)) slot14.cellSize = Vector2(slot2.cellSize.x, slot2.cellSize.y) slot14.spacing = Vector2(slot2.cellSpace.x, slot2.cellSpace.y) slot14.padding.left = slot2.cellSpace.x for slot18 = slot12.childCount - 1, Vector2(math.floor(slot6.sizeDelta.x / slot2.cellSize + slot2.cellSpace.x), math.floor(slot6.sizeDelta.y / slot2.cellSize + slot2.cellSpace.y)).x, -1 do Destroy(slot12:GetChild(slot18)) end for slot18 = slot12.childCount, slot11.x - 1, 1 do Instantiate(slot13).transform:SetParent(slot12, false) end for slot18 = 0, slot11.x - 1, 1 do setText(slot12:GetChild(slot18), string.char(string.byte("A") + slot18)) end slot15 = slot6:Find("123") slot16 = slot15:GetChild(0) slot17 = slot15:GetComponent(typeof(GridLayoutGroup)) slot17.cellSize = Vector2(slot2.cellSize.x, slot2.cellSize.y) slot17.spacing = Vector2(slot2.cellSpace.x, slot2.cellSpace.y) slot17.padding.top = slot2.cellSpace.y for slot21 = slot15.childCount - 1, slot11.y, -1 do Destroy(slot15:GetChild(slot21)) end for slot21 = slot15.childCount, slot11.y - 1, 1 do Instantiate(slot16).transform:SetParent(slot15, false) end for slot21 = 0, slot11.y - 1, 1 do setText(slot15:GetChild(slot21), 1 + slot21) end slot18 = slot6:Find("linev") slot19 = slot18:GetChild(0) slot20 = slot18:GetComponent(typeof(GridLayoutGroup)) slot20.cellSize = Vector2(ChapterConst.LineCross, slot6.sizeDelta.y) slot20.spacing = Vector2(slot10.x - ChapterConst.LineCross, 0) slot20.padding.left = math.floor(slot20.spacing.x) for slot24 = slot18.childCount - 1, math.max(slot11.x - 1, 0), -1 do if slot24 > 0 then Destroy(slot18:GetChild(slot24)) end end for slot24 = slot18.childCount, slot11.x - 2, 1 do Instantiate(slot19).transform:SetParent(slot18, false) end slot21 = slot6:Find("lineh") slot22 = slot21:GetChild(0) slot23 = slot21:GetComponent(typeof(GridLayoutGroup)) slot23.cellSize = Vector2(slot6.sizeDelta.x, ChapterConst.LineCross) slot23.spacing = Vector2(0, slot10.y - ChapterConst.LineCross) slot23.padding.top = math.floor(slot23.spacing.y) for slot27 = slot21.childCount - 1, math.max(slot11.y - 1, 0), -1 do if slot27 > 0 then Destroy(slot21:GetChild(slot27)) end end for slot27 = slot21.childCount, slot11.y - 2, 1 do Instantiate(slot22).transform:SetParent(slot21, false) end slot24 = GetOrAddComponent(slot6:Find("mask"), "RawImage") slot25 = slot6:Find("seaBase/sea") if slot2.seaBase and slot2.seaBase ~= "" then setActive(slot25, true) GetImageSpriteFromAtlasAsync("chapter/pic/" .. slot2.seaBase, slot2.seaBase, slot25) slot24.enabled = true slot24.uvRect = UnityEngine.Rect.New(0.005, 0.007, 1, -1) else setActive(slot25, false) slot24.enabled = false end end slot0.updatePoisonArea = function (slot0) if not GetOrAddComponent(slot1, "RawImage").enabled then return end slot2.texture = slot0:getPoisonTex() end slot0.getPoisonTex = function (slot0) slot5 = math.floor(100 / (slot0:findTF("plane/display").sizeDelta.x / slot0.findTF("plane/display").sizeDelta.y)) slot6 = nil if slot0.preChapterId ~= slot0.contextData.chapterVO.id then slot0.maskTexture = UnityEngine.Texture2D.New(slot4, slot5) slot0.preChapterId = slot1.id else slot6 = slot0.maskTexture end slot7 = {} slot8 = slot1:getPoisonArea(slot4 / slot2.sizeDelta.x) if slot0.poisonRectDir == nil then slot7 = slot8 else for slot12, slot13 in pairs(slot8) do if slot0.poisonRectDir[slot12] == nil then slot7[slot12] = slot13 end end end function slot9(slot0) for slot4 = slot0.x, slot0.w + slot0.x, 1 do for slot8 = slot0.y, slot0.h + slot0.y, 1 do slot0:SetPixel(slot4, slot8, Color.New(1, 1, 1, 0)) end end end for slot13, slot14 in pairs(slot7) do slot9(slot14) end slot6:Apply() slot0.poisonRectDir = slot8 return slot6 end slot0.showFleetPoisonDamage = function (slot0, slot1, slot2) if slot0.cellFleets[slot0.contextData.chapterVO.fleets[slot1].id] then slot5:showPoisonDamage(slot2) end end slot0.clearPlane = function (slot0) slot0:killQuadTws() slot0:killPresentTws() slot0:ClearEdges() slot0:hideQuadMark() removeAllChildren(slot0.cellRoot) removeAllChildren(slot0.quadRoot) removeAllChildren(slot0.bottomMarkRoot) removeAllChildren(slot0.topMarkRoot) removeAllChildren(slot0.restrictMap) slot0.cellRoot = nil slot0.quadRoot = nil slot0.bottomMarkRoot = nil slot0.topMarkRoot = nil slot0.restrictMap = nil slot1 = slot0._tf:Find(ChapterConst.PlaneName) clearImageSprite(slot2) pg.PoolMgr.GetInstance():ReturnPrefab("chapter/plane", "", slot1.gameObject) end slot0.initFleets = function (slot0) if slot0.cellFleets then return end slot0.cellFleets = {} for slot5, slot6 in pairs(slot0.contextData.chapterVO.fleets) do slot0:InitFleetCell(slot6.id) end end slot0.InitFleetCell = function (slot0, slot1) if not slot0.contextData.chapterVO.getFleetById(slot2, slot1):isValid() then return end slot4 = nil slot6 = slot0:getFleetPool(slot3:getFleetType()).Dequeue(slot5) slot6.transform.localEulerAngles = Vector3(-slot2.theme.angle, 0, 0) setParent(slot6, slot0.cellRoot, false) setActive(slot6, true) slot7 = nil if slot3:getFleetType() == FleetType.Transport then slot4 = TransportCellView.New(slot6) elseif slot3:getFleetType() == FleetType.Submarine then slot4 = SubCellView.New(slot6) function slot7() slot0:OnChangeSubAutoAttack() end else slot4 = FleetCellView.New(slot6) end slot4.fleetType = slot3:getFleetType() slot4:setAction(ChapterConst.ShipIdleAction) slot4.tf.localPosition = slot2.theme:GetLinePosition(slot3.line.row, slot3.line.column) slot0.cellFleets[slot1] = slot4 slot0:RefreshFleetCell(slot1, slot7) end slot0.RefreshFleetCells = function (slot0) if not slot0.cellFleets then slot0:initFleetCells() return end slot1 = slot0.contextData.chapterVO slot2 = {} for slot6, slot7 in pairs(slot0.cellFleets) do if not slot1:getFleetById(slot6) then table.insert(slot2, slot6) end end for slot6, slot7 in pairs(slot2) do slot0:ClearFleetCell(slot7) end for slot6, slot7 in pairs(slot1.fleets) do if not slot0.cellFleets[slot7.id] then slot0:InitFleetCell(slot7.id) else slot0:RefreshFleetCell(slot7.id) end end end slot0.RefreshFleetCell = function (slot0, slot1, slot2) slot5 = slot0.cellFleets[slot1] slot6, slot7 = nil if slot0.contextData.chapterVO.getFleetById(slot3, slot1):isValid() then if slot4:getFleetType() == FleetType.Transport then slot6 = slot4:getPrefab() elseif slot3:getMapShip(slot4) then slot6 = slot8:getPrefab() slot7 = slot8:getAttachmentPrefab() end end if not slot6 then slot0:ClearFleetCell(slot1) return end slot5.go.name = "cell_fleet_" .. slot6 slot5:SetLine(slot4.line) slot5:setPrefab(slot6) slot5:setAttachment(slot7) slot5:loadSpine(function () slot0:getModel().transform.localRotation = slot0.rotation slot2:updateFleet(slot3) if slot4 then slot4() end end) end slot0.clearFleets = function (slot0) if slot0.cellFleets then for slot4, slot5 in pairs(slot0.cellFleets) do slot0:ClearFleetCell(slot4) end slot0.cellFleets = nil end end slot0.ClearFleetCell = function (slot0, slot1) if not slot0.cellFleets[slot1] then return end slot2:Clear() LeanTween.cancel(slot2.go) setActive(slot2.go, false) setParent(slot2.go, slot0.poolParent, false) slot0:getFleetPool(slot2.fleetType):Enqueue(slot2.go, false) if slot0.opBtns[slot1] then Destroy(slot0.opBtns[slot1].gameObject) slot0.opBtns[slot1] = nil end slot0.cellFleets[slot1] = nil end slot0.updateFleets = function (slot0) for slot5, slot6 in pairs(slot0.contextData.chapterVO.fleets) do slot0:updateFleet(slot6.id) end end slot0.updateFleet = function (slot0, slot1) slot4 = slot0.contextData.chapterVO:getFleetById(slot1) if slot0.cellFleets[slot1] then setActive(slot3.go, slot6) slot3.tf.localPosition = slot2.theme:GetLinePosition(slot4.line.row, slot4.line.column) if slot4:getFleetType() == FleetType.Normal then slot8, slot9 = slot2:existEnemy(ChapterConst.SubjectPlayer, slot5.row, slot5.column) setActive(slot3.tfShadow, not slot8 and not slot2:existFleet(FleetType.Transport, slot5.row, slot5.column)) slot3:SetSpineVisible(not slot8 and not slot2.existFleet(FleetType.Transport, slot5.row, slot5.column)) setActive(slot3.tfArrow, table.indexof(slot2.fleets, slot4) == slot2.findex) setActive(slot3.tfOp, false) if not slot0.opBtns[slot1] then tf(Instantiate(slot3.tfOp)).name = "op" .. slot1 tf(Instantiate(slot3.tfOp)).SetParent(slot12, slot0._tf, false) tf(Instantiate(slot3.tfOp)).localEulerAngles = Vector3(-slot2.theme.angle, 0, 0) GetOrAddComponent(go(slot12), typeof(GraphicRaycaster)) GetOrAddComponent(slot12, typeof(Canvas)).overrideSorting = true GetOrAddComponent(slot12, typeof(Canvas)).sortingOrder = ChapterConst.PriorityMax slot0.opBtns[slot1] = tf(Instantiate(slot3.tfOp)) end setActive(slot12, true) slot12.position = slot3.tfOp.position slot13 = slot8 and slot9 == ChapterConst.AttachBoss slot14 = false if slot8 and slot9 == ChapterConst.AttachChampion and pg.expedition_data_template[slot2:getChampion(slot5.row, slot5.column).GetLastID(slot15)] then setActive(slot12.Find(slot12, "retreat"):Find("retreat"), slot11 and slot6 and not slot0.subTeleportMode and slot8 and not (slot13 or slot17.ai == 6) and _.any(slot2.fleets, function (slot0) return slot0.id ~= slot0.id and slot0:getFleetType() == FleetType.Normal and slot0:isValid() end)) setActive(slot16:Find("escape"), slot11 and slot6 and not slot0.subTeleportMode and (slot13 or slot17.ai == 6)) setActive(slot16, slot16:Find("retreat").gameObject.activeSelf or slot16:Find("escape").gameObject.activeSelf) end if slot16.gameObject.activeSelf then onButton(slot0, slot16, function () if slot0.parent:isfrozen() or slot0.subTeleportMode then return end if slot1 then function slot0() for slot4, slot5 in ipairs(slot0) do if slot0:considerAsStayPoint(ChapterConst.SubjectPlayer, slot1.row + slot5[1], slot1.column + slot5[2]) and not slot0:existEnemy(ChapterConst.SubjectPlayer, slot1.row + slot5[1], slot1.column + slot5[2]) then slot2:emit(LevelMediator2.ON_OP, { type = ChapterConst.OpMove, id = slot3.id, arg1 = slot1.row + slot5[1], arg2 = slot1.column + slot5[2], ordLine = slot3.line }) return false end end pg.TipsMgr.GetInstance():ShowTips(i18n("no_way_to_escape")) return true end slot0() else pg.MsgboxMgr.GetInstance():ShowMsgBox({ content = i18n("levelScene_who_to_retreat", slot4.name), onYes = function () slot0:emit(LevelMediator2.ON_OP, { type = ChapterConst.OpRetreat, id = slot1.id }) end }) end end, SFX_UI_WEIGHANCHOR_WITHDRAW) end setActive(slot17, false) setActive(slot3.tfAmmo, not slot10) slot22, slot20 = slot2:getFleetAmmo(slot4) slot20 = slot19 .. "/" .. slot18 if slot19 == 0 then slot20 = setColorStr(slot20, COLOR_RED) end setText(slot3.tfAmmoText, slot20) if slot8 or slot10 then slot21 = slot2:getChampion(slot5.row, slot5.column) if slot8 and slot9 == ChapterConst.AttachChampion and slot21:getPoolType() == "common" then slot3.tfArrow.anchoredPosition = Vector2(0, 180) slot3.tfAmmo.anchoredPosition = Vector2(60, 100) else slot3.tfArrow.anchoredPosition = Vector2(0, 100) slot3.tfAmmo.anchoredPosition = Vector2(22, 56) end slot3.tfAmmo:SetAsLastSibling() else slot3.tfArrow.anchoredPosition = Vector2(0, 175) slot3.tfAmmo.anchoredPosition = Vector2(-60, 85) end if not IsNil(slot3:getModel()) and slot11 and slot0.lastSelectedId ~= slot4.id then if not slot8 and not slot10 and slot0.lastSelectedId ~= -1 then slot0:frozen() slot23 = slot21:GetComponent("SkeletonGraphic").material slot25 = Material.New(slot24) LeanTween.value(slot21, 0, 1, 0.2):setEase(LeanTweenType.easeInOutSine):setLoopPingPong(2):setOnUpdate(System.Action_float(function (slot0) slot0:SetColor("_Color", Color.Lerp(Color.New(0, 0, 0, 0), Color.New(0.5, 0.5, 0.5, 0), slot0)) slot0.SetColor.material = slot0 end)).setOnComplete(slot26, System.Action(function () slot0.material = slot1 if slot2.exited then return end slot2:unfrozen() end)) end slot0.lastSelectedId = slot4.id end slot3:SetActiveNoPassIcon(slot2.existBarrier(slot2, slot5.row, slot5.column)) elseif slot7 == FleetType.Submarine then slot3:SetActiveModel(not (slot2:existEnemy(ChapterConst.SubjectPlayer, slot5.row, slot5.column) or slot2:existAlly(slot4))) setActive(slot3.tfAmmo, not (slot2.existEnemy(ChapterConst.SubjectPlayer, slot5.row, slot5.column) or slot2.existAlly(slot4))) slot13, slot11 = slot2:getFleetAmmo(slot4) slot11 = slot10 .. "/" .. slot9 if slot10 == 0 then slot11 = setColorStr(slot11, COLOR_RED) end setText(slot3.tfAmmoText, slot11) elseif slot7 == FleetType.Transport then setText(slot3.tfHpText, slot4:getRestHp() .. "/" .. slot4:getTotalHp()) GetImageSpriteFromAtlasAsync("enemies/" .. slot4:getPrefab(), "", slot3.tfIcon, true) setActive(slot3.tfFighting, slot2:existEnemy(ChapterConst.SubjectPlayer, slot5.row, slot5.column)) end slot3:SetLine({ row = slot5.row, column = slot5.column }) slot3:ResetCanvasOrder() end end slot0.GetCellFleet = function (slot0, slot1) return slot0.cellFleets[slot1] end slot0.initTargetArrow = function (slot0) slot0.arrowTarget = cloneTplTo(slot0.arrowTpl, slot0._tf) pg.ViewUtils.SetLayer(tf(slot2), Layer.UI) GetOrAddComponent(slot2, typeof(Canvas)).overrideSorting = true slot0.arrowTarget.localEulerAngles = Vector3(-slot0.contextData.chapterVO.theme.angle, 0, 0) setActive(slot0.arrowTarget, false) end slot0.updateTargetArrow = function (slot0, slot1) slot2 = slot0.contextData.chapterVO slot0.arrowTarget:SetParent(slot4) function slot5() slot0, slot1 = slot0:existEnemy(ChapterConst.SubjectPlayer, slot1.row, slot1.column) if not slot0 then return false end if slot1 == ChapterConst.AttachChampion then if not slot0:getChampion(slot1.row, slot1.column) then return false end return slot2:getPoolType() == "common", slot2:getScale() / 100 elseif slot1 == ChapterConst.AttachEnemy or slot1 == ChapterConst.AttachBoss then if not slot0:getChapterCell(slot1.row, slot1.column) or slot2.flag ~= 0 then return false end return pg.expedition_data_template[slot2.attachmentId].icon_type == 2, slot3.scale / 100 end end slot6, slot7 = slot5() if slot6 then slot0.arrowTarget.localPosition = Vector3(0, 20 + 80 * slot7, -80 * slot7) else slot0.arrowTarget.localPosition = Vector3(0, 20, 0) end if slot0.arrowTarget:GetComponent(typeof(Canvas)) then slot8.sortingOrder = slot1.row * ChapterConst.PriorityPerRow + ChapterConst.CellPriorityTopMark end end slot0.clearTargetArrow = function (slot0) if not IsNil(slot0.arrowTarget) then Destroy(slot0.arrowTarget) slot0.arrowTarget = nil end end slot0.InitDestinationMark = function (slot0) slot1 = cloneTplTo(slot0.destinationMarkTpl, slot0._tf) pg.ViewUtils.SetLayer(tf(slot1), Layer.UI) GetOrAddComponent(slot1, typeof(Canvas)).overrideSorting = true SetActive(slot1, false) tf(slot1).localEulerAngles = Vector3(-slot0.contextData.chapterVO.theme.angle, 0, 0) slot0.destinationMark = tf(slot1) end slot0.UpdateDestinationMark = function (slot0, slot1) if not slot1 then slot0.destinationMark:SetParent(slot0._tf) go(slot0.destinationMark):SetActive(false) return end go(slot0.destinationMark):SetActive(true) slot2 = slot0.contextData.chapterVO slot0.destinationMark:SetParent(slot4) slot0.destinationMark.localPosition = Vector3(0, 40, -40) if slot0.destinationMark:GetComponent(typeof(Canvas)) then slot5.sortingOrder = slot1.row * ChapterConst.PriorityPerRow + ChapterConst.CellPriorityTopMark end end slot0.ClearDestinationMark = function (slot0) if not IsNil(slot0.destinationMark) then Destroy(slot0.destinationMark) slot0.destinationMark = nil end end slot0.initChampions = function (slot0) if slot0.cellChampions then return end slot0.cellChampions = {} for slot5, slot6 in ipairs(slot0.contextData.chapterVO.champions) do slot0.cellChampions[slot5] = false if slot6.flag ~= 1 then slot9 = slot0:getChampionPool(slot7).Dequeue(slot8) slot9.name = "cell_champion_" .. slot6:getPrefab() slot9.transform.localEulerAngles = Vector3(-slot1.theme.angle, 0, 0) setParent(slot9, slot0.cellRoot, false) setActive(slot9, true) if slot6:getPoolType() == "common" then slot0.cellChampions[slot5] = ChampionCellView.New(slot9) elseif slot7 == "oni" then slot0.cellChampions[slot5] = OniCellView.New(slot9) elseif slot7 == "enemy" then slot0.cellChampions[slot5] = EggCellView.New(slot9) end slot0.cellChampions[slot5].poolType = slot7 slot0.cellChampions[slot5].SetLine(slot10, { row = slot6.row, column = slot6.column }) slot0.cellChampions[slot5].setPrefab(slot10, slot6:getPrefab()) slot0.cellChampions[slot5].setAction(slot10, ChapterConst.ShipIdleAction) slot0.cellChampions[slot5]:ResetCanvasOrder() if slot7 == "common" then slot10:SetExtraEffect(slot6:getConfig("effect_prefab")) if slot6.flag == ChapterConst.CellFlagDiving then slot10:setAction(ChapterConst.ShipSwimAction) end elseif slot7 == "enemy" then slot10:setLevel(slot6:getConfig("level")) slot10:setEnemyType(slot6:getConfig("type")) end slot10:loadSpine(function () slot0:getModel().transform.localRotation = slot0.rotation if slot2 == "common" then slot0.localScale = Vector3(0.4 * slot1:getScale() / 100, 0.4 * slot1.getScale() / 100, 1) end slot3:updateChampion(slot4) end) end end end slot0.updateChampions = function (slot0) slot1 = slot0.contextData.chapterVO for slot5, slot6 in ipairs(slot0.cellChampions) do slot0:updateChampion(slot5) end end slot0.updateChampion = function (slot0, slot1) slot4 = slot0.contextData.chapterVO.champions[slot1] if slot0.cellChampions[slot1] and slot4 then slot5 = slot4.trait ~= ChapterConst.TraitLurk and slot2:getChampionVisibility(slot4) and not slot2:existFleet(FleetType.Transport, slot4.row, slot4.column) if slot4.attachment == ChapterConst.AttachOni then slot6 = 1 _.each(slot2.fleets, function (slot0) slot1 = slot0:inAlertRange(slot0.line.row, slot0.line.column) and slot1 + 1 end) GetImageSpriteFromAtlasAsync("enemies/sp_" .. slot6, "", slot3.tfIcon, true) if slot3.tfBufficons then setActive(slot7, false) end else setActive(slot3.tfFighting, slot5 and slot2:existEnemy(ChapterConst.SubjectChampion, slot4.row, slot4.column)) setActive(slot3.tfEffectFound, slot5 and slot4.trait == ChapterConst.TraitVirgin) setActive(slot3.tfDamageCount, slot5 and slot4.data > 0) setActive(slot3.tf:Find("huoqiubaozha"), false) if slot4.trait == ChapterConst.TraitVirgin then pg.CriMgr.GetInstance():PlaySoundEffect_V3(SFX_UI_WEIGHANCHOR_ENEMY) end if slot3:getModel() and slot3.poolType == "common" then slot8 = slot7:GetComponent("SkeletonGraphic") slot9 = slot0:isHuntingRangeVisible() and _.any(slot2.fleets, function (slot0) return slot0:getFleetType() == FleetType.Submarine and slot0:isValid() and slot0:inHuntingRange(slot0.row, slot0.column) end) if slot9 then if not slot0.championTws[slot1] then end elseif slot0.championTws[slot1] then LeanTween.cancel(slot0.championTws[slot1].uniqueId) slot0.championTws[slot1] = nil slot8.color = Color.white end end end if slot3.tfShadow then slot6.localEulerAngles = Vector3(slot2.theme.angle, 0, 0) end slot7 = pg.expedition_data_template[slot4.attachmentId] if slot3.tfBufficons and slot7 and #slot7.bufficon > 0 and slot5 then setActive(slot8, true) slot0.AlignListContainer(slot8, #slot7.bufficon) slot9 = 1 for slot13, slot14 in ipairs(slot7.bufficon) do if #slot14 > 0 then GetImageSpriteFromAtlasAsync("ui/levelmainscene_atlas", slot14, slot8:GetChild(slot9 - 1)) slot9 = slot9 + 1 end end elseif slot8 then setActive(slot8, false) end slot3.tf.localPosition = slot2.theme:GetLinePosition(slot4.row, slot4.column) slot3:SetLine({ row = slot4.row, column = slot4.column }) slot3:ResetCanvasOrder() slot3:SetActive(slot5) end end slot0.updateOni = function (slot0) slot2 = nil for slot6, slot7 in ipairs(slot0.contextData.chapterVO.champions) do if slot7.attachment == ChapterConst.AttachOni then slot2 = slot6 break end end if slot2 then slot0:updateChampion(slot2) end end slot0.clearChampions = function (slot0) if slot0.cellChampions then for slot4, slot5 in ipairs(slot0.cellChampions) do if slot5 then if slot0.championTws[slot4] then LeanTween.cancel(slot0.championTws[slot4].uniqueId) slot0.championTws[slot4] = nil if slot5:getModel() then slot6:GetComponent("SkeletonGraphic").color = Color.white end end slot5:Clear() LeanTween.cancel(slot5.go) setActive(slot5.go, false) setParent(slot5.go, slot0.poolParent, false) slot0:getChampionPool(slot5.poolType):Enqueue(slot5.go, false) end end slot0.cellChampions = nil end end slot0.initCell = function (slot0, slot1, slot2) if slot0.contextData.chapterVO:getChapterCell(slot1, slot2) then slot5 = slot3.theme.cellSize slot6 = ChapterCell.Line2QuadName(slot1, slot2) slot7 = nil if slot4:IsWalkable() then PoolMgr.GetInstance():GetPrefab("chapter/cell_quad", "", false, function (slot0) slot0 = slot0.transform end) slot7.name = slot6 slot7.SetParent(slot7, slot0.quadRoot, false) slot7.sizeDelta = slot5 slot7.anchoredPosition = slot3.theme:GetLinePosition(slot1, slot2) slot7:SetAsLastSibling() onButton(slot0, slot7, function () if not slot0:isfrozen() then if (slot0.quadState == ChapterConst.QuadStateStrategy or slot0.quadState == ChapterConst.QuadStateTeleportSub) and slot0.quadClickProxy then slot0.quadClickProxy(slot1) elseif slot0.onCellClick then slot0.onCellClick(slot1) end end end, SFX_CONFIRM) end PoolMgr.GetInstance():GetPrefab("chapter/cell", "", false, function (slot0) slot0 = slot0.transform end) nil.name = ChapterCell.Line2Name(slot1, slot2) nil.SetParent(slot9, slot0.cellRoot, false) nil.sizeDelta = slot5 nil.anchoredPosition = slot3.theme:GetLinePosition(slot1, slot2) nil.SetAsLastSibling(slot9) slot10 = nil.Find(slot9, ChapterConst.ChildItem) slot10.localEulerAngles = Vector3(-slot3.theme.angle, 0, 0) setActive(slot10, slot4.item) slot11 = ItemCell.New(slot10, slot1, slot2) slot0.itemCells[ChapterCell.Line2Name(slot1, slot2)] = slot11 slot11.loader = slot0.loader slot11:Init(slot4) nil.Find(slot9, ChapterConst.ChildAttachment).localEulerAngles = Vector3(-slot3.theme.angle, 0, 0) end end slot0.clearCell = function (slot0, slot1, slot2) slot4 = slot0.contextData.chapterVO.getChapterCell(slot3, slot1, slot2) slot8 = slot0.quadRoot:Find(slot6) if not IsNil(slot0.cellRoot:Find(slot5)) then if slot0.attachTws[slot5] then LeanTween.cancel(slot0.attachTws[slot5].uniqueId) slot0.attachTws[slot5] = nil end if slot0.shiningTws[slot5] then LeanTween.cancel(slot0.shiningTws[slot5].uniqueId) slot0.shiningTws[slot5] = nil end slot9 = slot7:Find(ChapterConst.ChildAttachment) PoolMgr.GetInstance():ReturnPrefab("chapter/cell", "", slot7.gameObject) end if not IsNil(slot8) then if slot0.quadTws[slot6] then LeanTween.cancel(slot0.quadTws[slot6].uniqueId) slot0.quadTws[slot6] = nil end slot8:Find("grid"):GetComponent(typeof(Image)).sprite = GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_grid") slot8.Find("grid").GetComponent(typeof(Image)).material = nil PoolMgr.GetInstance():ReturnPrefab("chapter/cell_quad", "", slot8.gameObject) end end slot0.UpdateItemCells = function (slot0) if not slot0.contextData.chapterVO then return end for slot5, slot6 in pairs(slot0.itemCells) do slot8 = slot6:GetOriginalInfo() and slot7.item slot9 = slot1:getConfig("ItemTransformPattern") slot10 = slot1:getExtraFlags()[1] or 0 if slot8 and type(slot9) == "table" and slot9[slot10] then slot8 = string.gsub(slot8, slot9[slot10][1], slot9[slot10][2]) end slot6:UpdateAsset(slot8) end end slot0.updateAttachments = function (slot0) for slot4 = 0, ChapterConst.MaxRow - 1, 1 do for slot8 = 0, ChapterConst.MaxColumn - 1, 1 do slot0:updateAttachment(slot4, slot8) end end slot0:updateExtraAttachments() slot0:updateAreaAttachment(ChapterConst.AttachAreaBoss) slot0:updateCoastalGunAttachArea() slot0:displayEscapeGrid() end slot0.UpdateFloor = function (slot0) slot3 = {} for slot7, slot8 in pairs(slot2) do if slot8.flagList and #slot8.flagList > 0 then for slot12, slot13 in pairs(slot8.flagList) do slot3[slot13] = slot3[slot13] or {} table.insert(slot3[slot13], slot8) end end end if slot3[ChapterConst.FlagBanaiAirStrike] and next(slot3[ChapterConst.FlagBanaiAirStrike]) then slot0:hideQuadMark(ChapterConst.MarkBanaiAirStrike) slot0:showQuadMark(slot3[ChapterConst.FlagBanaiAirStrike], ChapterConst.MarkBanaiAirStrike, "cell_coastal_gun", Vector2(110, 110), nil, true) end slot0:updatePoisonArea() if slot3[ChapterConst.FlagLava] and next(slot3[ChapterConst.FlagLava]) then slot0:hideQuadMark(ChapterConst.MarkLava) slot0:showQuadMark(slot3[ChapterConst.FlagLava], ChapterConst.MarkLava, "cell_lava", Vector2(110, 110), nil, true) end if slot3[ChapterConst.FlagNightmare] and next(slot3[ChapterConst.FlagNightmare]) then slot0:hideQuadMark(ChapterConst.MarkNightMare) slot0:hideQuadMark(ChapterConst.MarkHideNight) if slot1.extraFlagList[1] == ChapterConst.StatusDay then slot0:showQuadMark(slot3[ChapterConst.FlagNightmare], ChapterConst.MarkHideNight, "cell_hidden_nightmare", Vector2(110, 110), nil, true) elseif slot4 == ChapterConst.StatusNight then slot0:showQuadMark(slot3[ChapterConst.FlagNightmare], ChapterConst.MarkNightMare, "cell_nightmare", Vector2(110, 110), nil, true) end end slot4 = {} for slot8, slot9 in pairs(slot1.cellAttachments) do if slot9.data == ChapterConst.StoryTrigger and pg.map_event_template[slot9.attachmentId] and slot10.c_type == ChapterConst.EvtType_AdditionalFloor then slot4[slot10.icon] = slot4[slot10.icon] or {} table.insert(slot4[slot10.icon], slot9) end end for slot8, slot9 in pairs(slot4) do slot0:hideQuadMark(slot8) slot0:showQuadMark(slot9, slot8, slot8, Vector2(110, 110), nil, true) end if slot1:getConfig("alarm_cell") and #slot5 > 0 then slot0:ClearEdges(slot6) slot0:ClearEdges(slot6 .. "corner") slot0:AddEdgePool(slot6, "chapter/celltexture/" .. slot6, "") slot0:AddEdgePool(slot6 .. "_corner", "chapter/celltexture/" .. slot6 .. "_corner", "") slot0.AddOutlines(slot0, slot7, nil, slot5[5], slot5[4], slot6) slot0:hideQuadMark(slot8) slot0:showQuadMark(_.map(slot5[1], function (slot0) return { row = slot0[1], column = slot0[2] } end), slot5[2], , Vector2(104, 104), nil, true) end end slot0.updateExtraAttachments = function (slot0) for slot6, slot7 in pairs(slot2) do slot8 = slot7.row slot9 = slot7.column slot11 = slot0.cellRoot:Find(slot6).Find(slot10, ChapterConst.ChildAttachment) slot12 = pg.map_event_template[slot7.attachmentId] slot14 = slot0.extraAttachmentCells[slot6] if slot7.data == ChapterConst.StoryTrigger and slot12.c_type ~= ChapterConst.EvtType_AdditionalFloor then if slot14 and slot14.class ~= MapEventStoryTriggerCellView then slot14:Clear() slot14 = nil slot0.extraAttachmentCells[slot6] = nil end if not slot14 then slot0.extraAttachmentCells[slot6] = MapEventStoryTriggerCellView.New(slot11) end slot14.info = slot7 slot14.chapter = slot1 slot14:SetLine({ row = slot8, column = slot9 }) slot14:Update() end end end slot0.updateAreaAttachment = function (slot0, slot1) slot3, slot11, slot5, slot12, slot7, slot8 = slot0.contextData.chapterVO.calcAttachmenArea(slot2, slot1) if slot0.contextData.chapterVO:getChapterCell(slot4, slot6) then setActive(slot0.cellRoot:Find(slot10).Find(slot11, ChapterConst.ChildAttachment), slot9.trait ~= ChapterConst.TraitLurk) if slot9.trait == ChapterConst.TraitLurk then return end if slot9.attachment == ChapterConst.AttachAreaBoss then slot13 = pg.expedition_data_template[slot9.attachmentId] slot16 = slot12:Find(slot14) slot17 = slot12:Find(slot15) if slot9.flag == ChapterConst.CellFlagActive then if IsNil(slot16) then cloneTplTo(slot0.enemyTpl, slot12, slot14).anchoredPosition = slot7 GetImageSpriteFromAtlasAsync("enemies/" .. slot13.icon, "", findTF(slot16, "icon"), true) setText(findTF(slot16, "lv/Text"), slot13.level) setActive(findTF(slot16, "titleContain/bg_s"), ChapterConst.EnemySize[slot13.type] == 1 or not ChapterConst.EnemySize[slot13.type]) setActive(findTF(slot16, "titleContain/bg_m"), ChapterConst.EnemySize[slot13.type] == 2) setActive(findTF(slot16, "titleContain/bg_h"), ChapterConst.EnemySize[slot13.type] == 3) setActive(findTF(slot16, "titleContain/bg_boss"), ChapterConst.EnemySize[slot13.type] == 99) end setActive(findTF(slot16, "huoqiubaozha"), false) setActive(findTF(slot16, "effect_found"), slot9.trait == ChapterConst.TraitVirgin) if slot9.trait == ChapterConst.TraitVirgin then pg.CriMgr.GetInstance():PlaySoundEffect_V3(SFX_UI_WEIGHANCHOR_ENEMY) end setActive(findTF(slot16, "fighting"), _.any(slot2.fleets, function (slot0) return slot0:isValid() and slot0 <= slot0.line.row and slot0.line.row <= and slot2 <= slot0.line.column and slot0.line.column <= slot3 end)) elseif slot9.flag == ChapterConst.CellFlagDisabled and slot9.attachment ~= ChapterConst.AttachAmbush then slot18 = not IsNil(slot16) and slot16.gameObject.activeSelf if IsNil(slot17) then cloneTplTo(slot0.deadTpl, slot12, slot15).anchoredPosition = slot7 GetImageSpriteFromAtlasAsync("enemies/" .. slot13.icon .. "_d_" .. slot19, "", cloneTplTo(slot0.deadTpl, slot12, slot15).Find(slot17, "icon"), true) setActive(cloneTplTo(slot0.deadTpl, slot12, slot15).Find(slot17, "effect_not_open"), false) setActive(cloneTplTo(slot0.deadTpl, slot12, slot15).Find(slot17, "effect_open"), false) end setActive(slot17:Find("huoqiubaozha"), slot18) end if not IsNil(slot16) then setActive(slot16, slot9.flag == ChapterConst.CellFlagActive) end if not IsNil(slot17) then setActive(slot17, slot9.flag == ChapterConst.CellFlagDisabled) end end end end slot0.updateAttachment = function (slot0, slot1, slot2) if slot0.contextData.chapterVO:getChapterCell(slot1, slot2) then if slot4.attachment == ChapterConst.AttachAreaBoss then return end slot7 = slot0.cellRoot:Find(slot5).Find(slot6, ChapterConst.ChildAttachment) slot8 = slot4.trait ~= ChapterConst.TraitLurk if (slot4.attachment == ChapterConst.AttachEnemy or slot4.attachment == ChapterConst.AttachElite or slot4.attachment == ChapterConst.AttachAmbush or slot4.attachment == ChapterConst.AttachBoss) and slot4.flag ~= 1 and slot3:existFleet(FleetType.Transport, slot4.row, slot4.column) then slot8 = false end setActive(slot7, slot8) if not slot8 then return end if slot4.attachment == ChapterConst.AttachEnemy or slot4.attachment == ChapterConst.AttachElite or slot4.attachment == ChapterConst.AttachAmbush or slot4.attachment == ChapterConst.AttachBoss then slot10 = (pg.expedition_data_template[slot4.attachmentId].icon_type == 1 and EnemyEggCellView) or EnemySpineCellView if slot0.attachmentCells[slot5] and slot10.__cname ~= slot11.__cname then slot11:Clear() slot11 = nil slot0.attachmentCells[slot5] = nil end if not slot11 then slot10.New(slot7).SetTpl(slot11, slot0.enemyTpl, slot0.deadTpl) slot10.New(slot7):SetLine({ row = slot1, column = slot2 }) slot0.attachmentCells[slot5] = slot10.New(slot7) end slot11.info = slot4 slot11.config = slot9 slot11.chapter = slot3 slot11:Update() slot12 = false if slot4.flag == ChapterConst.CellFlagActive and slot0:isHuntingRangeVisible() then slot13 = _.any(slot3.fleets, function (slot0) return slot0:getFleetType() == FleetType.Submarine and slot0:isValid() and slot0:inHuntingRange(slot0.row, slot0.column) end) slot12 = slot13 end if slot12 then if not slot0.attachTws[slot5] and slot11.tf then slot0.attachTws[slot5] = { tw = LeanTween.color(findTF(slot11.tf, "icon"), Color.New(1, 0.6, 0.6), 1):setFromColor(Color.white):setEase(LeanTweenType.easeInOutSine):setLoopPingPong(), uniqueId = LeanTween.color(findTF(slot11.tf, "icon"), Color.New(1, 0.6, 0.6), 1).setFromColor(Color.white).setEase(LeanTweenType.easeInOutSine).setLoopPingPong().uniqueId } end elseif slot0.attachTws[slot5] then LeanTween.cancel(slot0.attachTws[slot5].uniqueId) slot0.attachTws[slot5] = nil if slot11.tf then setImageColor(findTF(slot11.tf, "icon"), Color.white) end end else slot9 = nil slot10 = {} if slot4.attachment == ChapterConst.AttachBox then slot9 = AttachmentBoxCell elseif slot4.attachment == ChapterConst.AttachSupply then slot9 = AttachmentSupplyCell elseif slot4.attachment == ChapterConst.AttachTransport_Target then slot9 = AttachmentTransportTargetCell elseif slot4.attachment == ChapterConst.AttachStory then if slot4.data == ChapterConst.Story then slot9 = MapEventStoryCellView elseif slot4.data == ChapterConst.StoryObstacle then slot9 = MapEventStoryObstacleCellView end elseif slot4.attachment == ChapterConst.AttachBomb_Enemy then slot9 = AttachmentBombEnemyCell elseif slot4.attachment == ChapterConst.AttachLandbase then if pg.land_based_template[slot4.attachmentId].type == ChapterConst.LBCoastalGun then slot9 = AttachmentLBCoastalGunCell elseif slot11.type == ChapterConst.LBHarbor then slot9 = AttachmentLBHarborCell elseif slot11.type == ChapterConst.LBDock then slot9 = AttachmentLBDockCell slot10.chapter = slot3 elseif slot11.type == ChapterConst.LBAntiAir then slot9 = AttachmentLBAntiAirCell slot10.info = slot4 slot10.chapter = slot3 slot10.grid = slot0 elseif slot11.type == ChapterConst.LBIdle and slot4.attachmentId == ChapterConst.LBIDAirport then slot9 = AttachmentLBAirport slot10.extraFlagList = slot3:getExtraFlags() end elseif slot4.attachment == ChapterConst.AttachBarrier then slot9 = AttachmentBarrierCell end if slot0.attachmentCells[slot5] and slot11.class ~= slot9 then slot11:Clear() slot11 = nil slot0.attachmentCells[slot5] = nil end if not slot9 then return end if not slot11 then slot9.New(slot7):SetLine({ row = slot1, column = slot2 }) slot0.attachmentCells[slot5] = slot9.New(slot7) end slot11.info = slot4 for slot15, slot16 in pairs(slot10) do slot11[slot15] = slot16 end slot11:Update() end end end slot0.InitWalls = function (slot0) slot1 = slot0.contextData.chapterVO for slot5 = slot0.indexMin.x, slot0.indexMax.x, 1 do for slot9 = slot0.indexMin.y, slot0.indexMax.y, 1 do if slot1:GetRawChapterCell(slot5, slot9) then slot11 = ChapterConst.ForbiddenUp while slot11 > 0 do slot0:InitWallDirection(slot10, slot11) slot11 = slot11 / 2 end end end end for slot5, slot6 in pairs(slot0.walls) do if slot6.WallPrefabs then slot6:SetAsset(slot6.WallPrefabs[5 - slot6.BanCount]) end end end slot6 = { [ChapterConst.ForbiddenUp] = { -1, 0 }, [ChapterConst.ForbiddenDown] = { 1, 0 }, [ChapterConst.ForbiddenLeft] = { 0, -1 }, [ChapterConst.ForbiddenRight] = { 0, 1 } } slot0.InitWallDirection = function (slot0, slot1, slot2) slot3 = slot0.contextData.chapterVO if bit.band(slot1.forbiddenDirections, slot2) == 0 then return end if slot1.walkable == false then return end slot5 = 2 * slot1.row + slot0[slot2][1] slot6 = 2 * slot1.column + slot0[slot2][2] slot8 = not slot3:GetRawChapterCell(slot1.row + slot0[slot2][1], slot1.column + slot0[slot2][2]) or slot7.walkable == false if not slot0.walls[slot5 .. "_" .. slot6] then slot11 = slot3.theme:GetLinePosition(slot1.row, slot1.column) slot11.x = slot11.x + slot4[2] * (slot3.theme.cellSize.x + slot3.theme.cellSpace.x) * 0.5 slot11.y = slot11.y - slot4[1] * (slot3.theme.cellSize.y + slot3.theme.cellSpace.y) * 0.5 slot12 = WallCell.New(slot5, slot6, bit.band(slot2, ChapterConst.ForbiddenRow) > 0, slot11) slot12.girdParent = slot0 slot0.walls[slot9] = slot12 slot10 = slot12 if slot3.wallAssets[slot1.row .. "_" .. slot1.column] then slot10.WallPrefabs = slot13 end end slot10.BanCount = slot10.BanCount + ((slot8 and 2) or 1) end slot0.updateQuadCells = function (slot0, slot1, ...) slot0.quadState = slot1 or ChapterConst.QuadStateNormal slot0:updateQuadBase() if (slot1 or ChapterConst.QuadStateNormal) == ChapterConst.QuadStateTeleportSub then slot0:UpdateQuadStateTeleportSub(...) elseif slot1 == ChapterConst.QuadStateNormal then slot0:UpdateQuadStateNormal() elseif slot1 == ChapterConst.QuadStateStrategy then slot0:UpdateQuadStateStrategy(...) end end slot0.updateQuadBase = function (slot0) if slot0.contextData.chapterVO.fleet == nil then return end slot0:killPresentTws() function slot3(slot0) if slot0 and slot0:IsWalkable() then slot3 = slot0:GetObjectsInCell(slot1, slot2) slot7, slot5, slot9 = slot3:__pairs() if slot4(slot3, slot6) then slot7 = slot3[slot6] slot9 = slot1.quadRoot:Find(slot8) slot9.localScale = Vector3.one slot10 = slot9:Find("grid"):GetComponent(typeof(Image)) if slot6 == "champion" and slot7.flag == ChapterConst.CellFlagActive and slot11.trait ~= ChapterConst.TraitLurk and slot0:getChampionVisibility(slot11) and not slot0:existFleet(FleetType.Transport, slot11.row, slot11.column) then slot1:startQuadTween(slot8, slot9) setImageSprite(slot9, GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_enemy")) setImageSprite(slot9:Find("grid"), GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_enemy_grid")) slot10.material = slot1.material_Add return end if slot6 == "cell" and slot0:getQuadCellPic(slot0) then slot1:startQuadTween(slot8, slot9) if slot11 == "cell_enemy" then setImageSprite(slot9:Find("grid"), GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_enemy_grid")) slot10.material = slot1.material_Add else setImageSprite(slot9:Find("grid"), GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_grid")) slot10.material = nil end setImageSprite(slot9, GetSpriteFromAtlas("chapter/pic/cellgrid", slot11)) return end slot1:cancelQuadTween(slot8, slot9) setImageAlpha(slot9, ChapterConst.CellEaseOutAlpha) setImageSprite(slot9, GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_normal")) setImageSprite(slot9:Find("grid"), GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_grid")) slot10.material = nil end end end for slot7, slot8 in pairs(slot1.cells) do slot3(slot8) end for slot8, slot9 in ipairs(slot4) do slot10, slot18, slot12, slot19, slot14, slot15 = slot1:calcAttachmenArea(slot9) if slot1:getChapterCell(slot11, slot13) and slot16:IsWalkable() then if IsNil(slot0.quadRoot:Find(slot17)) then PoolMgr.GetInstance():GetPrefab("chapter/cell_quad", "", false, function (slot0) slot0 = slot0.transform end) slot18.name = slot17 slot18.SetParent(slot18, slot0.quadRoot, false) slot18:SetSiblingIndex(slot0.quadRoot:Find(slot19):GetSiblingIndex()) end slot18.sizeDelta = slot15 slot18.anchoredPosition = slot1.theme:GetLinePosition(slot11, slot13) + Vector3(slot14.x, slot14.y, 0) end end if slot1:isPlayingWithBombEnemy() then slot0:hideQuadMark(ChapterConst.MarkBomb) end end slot0.UpdateQuadStateNormal = function (slot0) slot2 = slot0.contextData.chapterVO.fleet slot3 = nil if slot0.contextData.chapterVO:existMoveLimit() and not slot1:checkAnyInteractive() then slot3 = slot1:calcWalkableCells(ChapterConst.SubjectPlayer, slot2.line.row, slot2.line.column, slot2:getSpeed()) end if slot3 and #slot3 > 0 then slot4 = _.min(slot3, function (slot0) return ManhattonDist(slot0, slot0.line) end) slot5 = ManhattonDist(slot4, slot2.line) _.each(slot3, function (slot0) slot1 = ChapterCell.Line2QuadName(slot0.row, slot0.column) slot2 = slot0.quadRoot:Find(slot1) slot0:cancelQuadTween(slot1, slot2) setImageSprite(slot2, GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_normal")) slot2:Find("grid"):GetComponent(typeof(Image)).sprite = GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_grid") slot2.Find("grid").GetComponent(typeof(Image)).material = nil setImageAlpha(slot2, (slot1:getRound() == ChapterConst.RoundPlayer and 1) or ChapterConst.CellEaseOutAlpha) slot2.localScale = Vector3.zero slot0.presentTws[slot1] = { uniqueId = LeanTween.scale(slot2, Vector3.one, 0.2):setFrom(Vector3.zero):setEase(LeanTweenType.easeInOutSine):setDelay((ManhattonDist(slot0, slot2.line) - slot3) * 0.1).uniqueId } end) end if slot1.isPlayingWithBombEnemy(slot1) then slot0.showQuadMark(slot0, _.map({ { -1, 0 }, { 1, 0 }, { 0, -1 }, { 0, 1 } }, function (slot0) return { row = slot0[1] + slot0.line.row, column = slot0[2] + slot0.line.column } end), ChapterConst.MarkBomb, "cell_bomb", Vector2(100, 100), nil, true) end end slot0.UpdateQuadStateStrategy = function (slot0, ...) slot2 = slot0.contextData.chapterVO.fleet slot4 = ({ ... })[1] or {} slot0.quadClickProxy = slot3[2] if #slot4 > 0 then slot5 = _.min(slot4, function (slot0) return ManhattonDist(slot0, slot0.line) end) slot6 = ManhattonDist(slot5, slot2.line) _.each(slot4, function (slot0) slot1 = ChapterCell.Line2QuadName(slot0.row, slot0.column) slot2 = slot0.quadRoot:Find(slot1) slot0:cancelQuadTween(slot1, slot2) setImageSprite(slot2, GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_barrier_select")) slot2:Find("grid"):GetComponent(typeof(Image)).sprite = GetSpriteFromAtlas("chapter/pic/cellgrid", "cell_grid") slot2.Find("grid").GetComponent(typeof(Image)).material = nil setImageAlpha(slot2, 1) slot2.localScale = Vector3.zero slot0.presentTws[slot1] = { uniqueId = LeanTween.scale(slot2, Vector3.one, 0.2):setFrom(Vector3.zero):setEase(LeanTweenType.easeInOutSine):setDelay((ManhattonDist(slot0, slot1.line) - slot2) * 0.1).uniqueId } end) end end slot0.UpdateQuadStateTeleportSub = function (slot0) if not _.detect(slot0.contextData.chapterVO.fleets, function (slot0) return slot0:getFleetType() == FleetType.Submarine end) then return end slot4 = _.filter(slot1.calcWalkableCells(slot1, nil, slot2.line.row, slot2.line.column, ChapterConst.MaxStep), function (slot0) return not slot0:getQuadCellPic(slot0:getChapterCell(slot0.row, slot0.column)) end) slot0.quadClickProxy = function (slot0) slot0:OnTeleportConfirm(slot0) end slot0.frozen(slot0) slot4 = 0 _.each(slot4, function (slot0) slot1 = ChapterCell.Line2QuadName(slot0.row, slot0.column) slot2 = slot0.quadRoot:Find(slot1) slot0:cancelQuadTween(slot1, slot2) setImageAlpha(slot2, 0.4) slot0.presentTws[slot1] = { uniqueId = LeanTween.scale(slot2, Vector3.one, 0.2):setFrom(Vector3.zero):setEase(LeanTweenType.easeInOutSine):setOnComplete(System.Action(function () if slot0 + 1 == #slot1 then slot2:unfrozen() end end)).uniqueId } slot2.localScale = Vector3.zero end) end slot0.PrepareSubTeleport = function (slot0) slot2, slot3 = slot0.contextData.chapterVO.GetSubmarineFleet(slot1) slot4 = slot0.cellFleets[slot2.id] slot5 = slot2.startPos slot0.subTeleportMode = true for slot9, slot10 in pairs(slot0.contextData.chapterVO.fleets) do if slot10:getFleetType() == FleetType.Normal then slot0:updateFleet(slot10.id) end end setActive(slot4.tfAmmo, not (slot1:existEnemy(ChapterConst.SubjectPlayer, slot5.row, slot5.column) or slot1:existFleet(FleetType.Normal, slot5.row, slot5.column))) slot4:SetActive(true) if not (slot1.subAutoAttack == 1) then slot0:PlaySubAnimation(slot4, false, function () slot0:SetActiveModel(not slot1) end) else slot4.SetActiveModel(slot4, not slot6) end slot4.tf.localPosition = slot1.theme:GetLinePosition(slot5.row, slot5.column) slot4:ResetCanvasOrder() end slot0.TurnOffSubTeleport = function (slot0) slot0.subTeleportTargetLine = nil slot0:hideQuadMark(ChapterConst.MarkMovePathArrow) slot0:hideQuadMark(ChapterConst.MarkHuntingRange) slot0:ClearEdges("SubmarineHunting") slot0:UpdateDestinationMark() slot0.subTeleportMode = false slot2, slot3 = slot0.contextData.chapterVO.GetSubmarineFleet(slot1) slot0.cellFleets[slot2.id]:SetActive(slot0.contextData.chapterVO.subAutoAttack == 1) if not slot5 then slot0:PlaySubAnimation(slot4, true, function () slot0:updateFleet(slot1.id) end) else slot0.updateFleet(slot0, slot2.id) end slot0:ShowHuntingRange() end slot0.OnTeleportConfirm = function (slot0, slot1) if slot0.contextData.chapterVO:getChapterCell(slot1.row, slot1.column) and slot3:IsWalkable() and not slot2:existBarrier(slot1.row, slot1.column) then slot4, slot5 = slot2:GetSubmarineFleet() if slot4.startPos.row == slot1.row and slot4.startPos.column == slot1.column then return end slot6, slot7 = slot2:findPath(nil, slot4.startPos, slot1) if PathFinding.PrioObstacle <= slot6 or slot1.row ~= slot7[#slot7].row or slot1.column ~= slot7[#slot7].column then return end slot0:ShowTargetHuntingRange(slot1) slot0:UpdateDestinationMark(slot1) if slot6 > 0 then slot0:ShowPathInArrows(slot7) slot0.subTeleportTargetLine = slot1 end end end slot0.ShowPathInArrows = function (slot0, slot1) slot3 = Clone(slot1) table.remove(slot3, #slot3) slot4, slot5 = slot0.contextData.chapterVO.GetSubmarineFleet(slot2) for slot9 = #slot3, 1, -1 do if slot2:existEnemy(ChapterConst.SubjectPlayer, slot3[slot9].row, slot3[slot9].column) or slot2:getFleet(FleetType.Normal, slot10.row, slot10.column) then table.remove(slot3, slot9) end end slot0:hideQuadMark(ChapterConst.MarkMovePathArrow) slot0:showQuadMark(slot3, ChapterConst.MarkMovePathArrow, "cell_path_arrow", Vector2(100, 100), nil, true) slot6 = slot0.markQuads[ChapterConst.MarkMovePathArrow] for slot10 = #slot1, 1, -1 do slot13 = slot6 and slot6[ChapterCell.Line2MarkName(slot1[slot10].row, slot1[slot10].column, ChapterConst.MarkMovePathArrow)] if slot13 then slot13.localEulerAngles = Vector3(0, 0, Mathf.Acos(slot16) * Mathf.Rad2Deg * ((Vector3.Cross(Vector3.up, slot15).z > 0 and 1) or -1)) end end end slot0.startQuadTween = function (slot0, slot1, slot2, slot3, slot4) if slot0.presentTws[slot1] then LeanTween.cancel(slot0.presentTws[slot1].uniqueId) slot0.presentTws[slot1] = nil end if not slot0.quadTws[slot1] then setImageAlpha(slot2, slot3 or 1) slot0.quadTws[slot1] = { tw = LeanTween.alpha(slot2, slot4 or ChapterConst.CellEaseOutAlpha, 1):setLoopPingPong(), uniqueId = LeanTween.alpha(slot2, slot4 or ChapterConst.CellEaseOutAlpha, 1).setLoopPingPong().uniqueId } end end slot0.cancelQuadTween = function (slot0, slot1, slot2) if slot0.quadTws[slot1] then LeanTween.cancel(slot0.quadTws[slot1].uniqueId) slot0.quadTws[slot1] = nil end setImageAlpha(slot2, ChapterConst.CellEaseOutAlpha) end slot0.killQuadTws = function (slot0) for slot4, slot5 in pairs(slot0.quadTws) do LeanTween.cancel(slot5.uniqueId) end slot0.quadTws = {} end slot0.killPresentTws = function (slot0) for slot4, slot5 in pairs(slot0.presentTws) do LeanTween.cancel(slot5.uniqueId) end slot0.presentTws = {} end slot0.startMarkTween = function (slot0, slot1, slot2, slot3, slot4) if not slot0.markTws[slot1] then setImageAlpha(slot2, slot3 or 1) slot0.markTws[slot1] = { tw = LeanTween.alpha(slot2, slot4 or 0.2, 0.7):setLoopPingPong():setEase(LeanTweenType.easeInOutSine):setDelay(1), uniqueId = LeanTween.alpha(slot2, slot4 or 0.2, 0.7).setLoopPingPong().setEase(LeanTweenType.easeInOutSine).setDelay(1).uniqueId } end end slot0.cancelMarkTween = function (slot0, slot1, slot2, slot3) if slot0.markTws[slot1] then LeanTween.cancel(slot0.markTws[slot1].uniqueId) slot0.markTws[slot1] = nil end setImageAlpha(slot2, slot3 or ChapterConst.CellEaseOutAlpha) end slot0.moveFleet = function (slot0, slot1, slot2, slot3, slot4) slot0.cellFleets[slot0.contextData.chapterVO.fleet.id].SetSpineVisible(slot8, true) setActive(slot0.cellFleets[slot0.contextData.chapterVO.fleet.id].tfShadow, true) setActive(slot0.arrowTarget, true) slot0:updateTargetArrow(slot2[#slot2]) if slot3 then slot0:updateAttachment(slot3.row, slot3.column) end slot0.updateQuadCells(slot0, ChapterConst.QuadStateFrozen) slot0:moveCellView(slot8, slot1, slot2, function (slot0) slot0.step = slot0.step + 1 if slot0.onShipStepChange then slot1.onShipStepChange(slot0) end end, function (slot0) return end, function () setActive(slot0.arrowTarget, false) if ChapterConst.NeedClearStep(slot0.arrowTarget:getChapterCell(slot1.fleet.line.row, slot1.fleet.line.column)) then slot2.step = 0 end if slot3:getModel() then slot2.rotation = slot3:getModel().transform.localRotation end slot0:updateAttachment(slot0.row, slot0.column) slot0:updateFleet(slot0.row) slot0:updateOni() if slot1:getChampionIndex(slot0.row, slot0.column) then slot0:updateChampion(slot2) end if slot0.onShipArrived then slot0.onShipArrived() end if slot5 then slot5() end end) end slot0.moveSub = function (slot0, slot1, slot2, slot3, slot4) slot0.updateQuadCells(slot0, ChapterConst.QuadStateFrozen) slot0:teleportSubView(slot0.cellFleets[slot0.contextData.chapterVO.fleets[slot1].id], slot0.cellFleets[slot0.contextData.chapterVO.fleets[slot1].id].GetLine(slot7), slot2[#slot2], function (slot0) return end, function (slot0) return end, function () slot3:SetActiveModel(not (slot0:existEnemy(ChapterConst.SubjectPlayer, slot1.row, slot1.column) or slot0:existAlly(slot2))) if slot3:getModel() then slot2.rotation = slot3:getModel().transform.localRotation end if slot4 then slot4() end end) end slot0.moveChampion = function (slot0, slot1, slot2, slot3, slot4) slot6 = slot0.contextData.chapterVO.champions[slot1] slot7 = slot0.cellChampions[slot1] function slot8(slot0) return end function slot9(slot0) return end function slot10() if slot0:getModel() then slot1.rotation = slot0:getModel().transform.localRotation end if slot2 then slot2() end end if slot0.championTws[slot1] then LeanTween.cancel(slot0.championTws[slot1].uniqueId) slot0.championTws[slot1] = nil end if slot5.getChampionVisibility(slot5, slot6) then slot7:SetActive(true) slot0:moveCellView(slot7, slot2, slot3, slot8, slot9, slot10) else slot7:SetLine(slot2[#slot2]) slot7.tf.localPosition = slot5.theme:GetLinePosition(slot2[#slot2].row, slot2[#slot2].column) slot10() end end slot0.moveTransport = function (slot0, slot1, slot2, slot3, slot4) slot0.updateQuadCells(slot0, ChapterConst.QuadStateFrozen) slot0:moveCellView(slot0.cellFleets[slot0.contextData.chapterVO.fleets[slot1].id], slot2, slot3, function (slot0) return end, function (slot0) return end, function () if slot0:getModel() then slot1.rotation = slot0:getModel().transform.localRotation end slot2:updateFleet(slot1.id) if slot3 then slot3() end end) end slot0.moveCellView = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6) slot7 = slot0.contextData.chapterVO slot8 = nil slot9 = coroutine.wrap(function () slot0:frozen() slot1 = 0.3 * ((slot0:GetQuickPlayFlag() and ChapterConst.ShipStepQuickPlayScale) or 1) table.insert(slot2, 1, slot3:GetLine()) _.each(slot2, function (slot0) if ChapterConst.NeedEasePathCell(slot0:getChapterCell(slot0.row, slot0.column)) then slot2 = ChapterCell.Line2QuadName(slot1.row, slot1.column) slot3 = slot1.quadRoot:Find(slot2) slot1:cancelQuadTween(slot2, slot3) LeanTween.alpha(slot3, 1, slot2):setDelay(slot3) slot3 = slot3 + end end) _.each(slot4, function (slot0) slot0:moveStep(slot0.moveStep, slot0, slot2[#slot2], function () if ChapterConst.NeedEasePathCell(slot0:getChapterCell(slot0:GetLine().row, slot0.GetLine().column)) then LeanTween.scale(slot2.quadRoot:Find(slot2), Vector3.zero, ) end slot4(slot5) slot0:SetLine(slot5) slot0:ResetCanvasOrder() end, function () slot0(slot1) slot2() end) coroutine.yield() end) _.each(ChapterConst.ShipStepDuration * ChapterConst.ShipMoveTailLength * ((slot0.GetQuickPlayFlag() and ChapterConst.ShipStepQuickPlayScale) or 1), function (slot0) if ChapterConst.NeedEasePathCell(slot0:getChapterCell(slot0.row, slot0.column)) then slot3 = slot1.quadRoot:Find(slot2) LeanTween.cancel(slot3.gameObject) setImageAlpha(slot3, ChapterConst.CellEaseOutAlpha) slot3.localScale = Vector3.one end end) if (slot0.GetQuickPlayFlag() and ChapterConst.ShipStepQuickPlayScale) or 1.exited then return end slot3.setAction(slot5, ChapterConst.ShipIdleAction) slot8() slot0:unfrozen() end) slot9() end slot0.moveStep = function (slot0, slot1, slot2, slot3, slot4, slot5) slot7 = (slot0.contextData.chapterVO:GetQuickPlayFlag() and ChapterConst.ShipStepQuickPlayScale) or 1 slot9 = slot1:getAction() slot10 = slot1:GetLine() if not IsNil(slot1:getModel()) then if slot9 ~= ChapterConst.ShipMoveAction then slot1:setAction(ChapterConst.ShipMoveAction) end if slot2.column ~= slot10.column or slot3.column ~= slot10.column then slot8.transform.localRotation = Quaternion.identity if slot2.column < slot10.column or (slot2.column == slot10.column and slot3.column < slot10.column) then slot8.transform.localRotation = Quaternion.Euler(0, 180, 0) end end end slot11 = slot1.tf.localPosition slot12 = slot6.theme:GetLinePosition(slot2.row, slot2.column) slot13 = 0 LeanTween.value(slot1.go, 0, 1, ChapterConst.ShipStepDuration * slot7):setOnComplete(System.Action(slot5)):setOnUpdate(System.Action_float(function (slot0) slot0.tf.localPosition = Vector3.Lerp(slot0.tf, Vector3.Lerp, slot0) if slot0.tf <= 0.5 and slot0 > 0.5 then slot4() end slot3 = slot0 end)) end slot0.teleportSubView = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6) slot7 = slot0.contextData.chapterVO slot0.PlaySubAnimation(slot0, slot1, true, function () slot0(slot1) slot2:SetLine(slot2) slot2.tf.localPosition = slot3.theme:GetLinePosition(slot1.row, slot1.column) slot1.row:ResetCanvasOrder() slot4(slot4) slot5:PlaySubAnimation(slot5, false, slot6) end) end slot0.PlayChampionSubmarineAnimation = function (slot0, slot1, slot2, slot3) if not slot0.contextData.chapterVO:getChampionIndex(slot1.row, slot1.column) or slot5 <= 0 then if slot3 then slot3() end return end if not slot0.cellChampions[slot5] then if slot3 then slot3() end return end slot0:PlaySubAnimation(slot6, slot2, slot3) end slot0.PlaySubAnimation = function (slot0, slot1, slot2, slot3) if not slot1 then slot3() return end if not slot1:getModel() then slot3() return end slot6 = slot4:GetComponent("SkeletonGraphic") slot1:setAction((slot2 and ChapterConst.ShipSwimAction) or ChapterConst.ShipIdleAction) slot1:PlayShuiHua() slot0:frozen() slot0.tweens[LeanTween.value(slot4, (slot2 and 1) or 0, (not slot2 or 0) and 1, (slot0.contextData.chapterVO:GetQuickPlayFlag() and 0.1) or 0.3):setEase(LeanTweenType.easeInOutSine):setOnUpdate(System.Action_float(function (slot0) slot0.color = Color.Lerp(Color.New(1, 1, 1, 0), Color.New(1, 1, 1, 1), slot0) if not IsNil(slot1.tfAmmo) then slot1.tfAmmo.anchoredPosition = Vector2.Lerp(Vector2.Lerp, , slot0) end end)).setOnComplete(slot10, System.Action(function () if slot0.exited then return end slot0:unfrozen() slot0:SetActiveModel(not slot2) if slot3 then slot3() end end)).id] = true end slot0.TeleportCellByPortalWithCameraMove = function (slot0, slot1, slot2, slot3, slot4) slot5 = nil parallelAsync({ function (slot0) slot0 = slot0 end, function (slot0) slot0:TeleportFleetByPortal(slot0.TeleportFleetByPortal, slot0, function () slot0:focusOnCell(slot1.line, ) end, slot0) end }, slot4) end slot0.TeleportFleetByPortal = function (slot0, slot1, slot2, slot3, slot4) slot5 = slot0.contextData.chapterVO slot7 = slot2[2] if not slot2[1] or not slot7 then slot4() return end if not slot1:getModel() then slot4() return end slot9 = slot8:GetComponent("SkeletonGraphic") slot0:frozen() slot11 = nil slot0.tweens[LeanTween.value(slot8, 1, 0, (slot5:GetQuickPlayFlag() and 0.1) or 0.3):setEase(LeanTweenType.easeInOutSine):setOnUpdate(System.Action_float(function (slot0) slot0.color = Color.Lerp(Color.New(1, 1, 1, 0), Color.New(1, 1, 1, 1), slot0) end)).setOnComplete(slot12, System.Action(function () if slot0.exited then return end slot0.tweens[slot1] = nil if nil then slot2() end slot0:updateFleet(table.indexof(slot0.cellFleets, )) LeanTween.value(slot0.cellFleets, 0, 1, slot5):setEase(LeanTweenType.easeInOutSine):setOnUpdate(System.Action_float(function (slot0) slot0.color = Color.Lerp(Color.New(1, 1, 1, 0), Color.New(1, 1, 1, 1), slot0) end)).setOnComplete(slot0, System.Action(function () if slot0.exited then return end slot0.tweens[slot1] = nil slot0.tweens:unfrozen() if nil then slot2() end end)).id.tweens[LeanTween.value(slot0.cellFleets, 0, 1, slot5).setEase(LeanTweenType.easeInOutSine).setOnUpdate(System.Action_float(function (slot0) slot0.color = Color.Lerp(Color.New(1, 1, 1, 0), Color.New(1, 1, 1, 1), slot0) end)).setOnComplete(slot0, System.Action(function () if slot0.exited then return end slot0.tweens[slot1] = nil slot0.tweens.unfrozen() if nil then slot2() end end)).id] = true end)).id] = true end slot0.adjustCameraFocus = function (slot0) if slot0.cellFleets[slot0.contextData.chapterVO.fleets[slot0.contextData.chapterVO.findex].id] then slot0:cameraFocus(slot3.tf.position) end end slot0.focusOnCell = function (slot0, slot1, slot2) slot0:cameraFocus(slot0.cellRoot:Find(slot3).position, slot2) end slot0.cameraFocus = function (slot0, slot1, slot2) slot5 = slot0._tf:Find(ChapterConst.PlaneName) slot6 = slot0._tf.parent:InverseTransformVector(slot1 - slot5.position) slot6.x = slot6.x + slot5.localPosition.x slot6.y = (slot6.y + slot5.localPosition.y) - slot5.localPosition.z * math.tan(math.pi / 180 * slot0.contextData.chapterVO.theme.angle) slot6.x = math.clamp(-slot6.x, slot0.leftBound, slot0.rightBound) slot6.y = math.clamp(-slot6.y, slot0.bottomBound, slot0.topBound) slot6.z = 0 slot0:frozen() slot0.dragTrigger.enabled = false slot7 = LeanTween.moveLocal(slot0._tf.gameObject, slot6, 0.4):setEase(LeanTweenType.easeInOutSine):setOnComplete(System.Action(function () if slot0.exited then return end slot0.dragTrigger.enabled = true slot0.dragTrigger:unfrozen() if slot0.dragTrigger then slot1() end end)) end slot0.CellToScreen = function (slot0, slot1, slot2) slot6 = slot0.contextData.chapterVO.theme.GetLinePosition(slot5, slot1, slot2) slot6.y = slot6.y * math.cos(math.pi / 180 * slot0.contextData.chapterVO.theme.angle) slot6.z = slot6.y * math.sin(math.pi / 180 * slot0.contextData.chapterVO.theme.angle) return Vector3(slot0.levelCam.transform:GetChild(0).rect.width * (slot0.levelCam:WorldToViewportPoint(slot10).x - 0.5), slot0.levelCam.transform.GetChild(0).rect.height * (slot0.levelCam.WorldToViewportPoint(slot10).y - 0.5)) end slot7 = { { 1, 0 }, { 0, -1 }, { -1, 0 }, { 0, 1 } } slot8 = { { 1, 1 }, { 1, -1 }, { -1, -1 }, { -1, 1 } } slot0.AddCellEdge = function (slot0, slot1, slot2, ...) slot3 = 0 slot4 = 1 for slot8 = 1, 4, 1 do if not _.any(slot1, function (slot0) return slot0.row == slot0.row + slot1[slot0.row][1] and slot0.column == slot0.column + slot1[slot0.column][2] end) then slot3 = bit.bor(slot3, slot4) end slot4 = slot4 * 2 end if slot3 == 0 then return end slot0:CreateEdge(slot3, slot2, ...) end slot0.AddOutlines = function (slot0, slot1, slot2, slot3, slot4, slot5) slot6 = {} slot7 = {} for slot11, slot12 in ipairs(slot1) do for slot16 = 1, 4, 1 do if not underscore.any(slot1, function (slot0) return slot0.row == slot0.row + slot1[slot0.row][1] and slot0.column == slot0.column + slot1[slot0.column][2] end) then slot6[slot17 .. "_" .. 2 * slot12.column + slot0[slot16][2]] = { row = 2 * slot12.row + slot0[slot16][1], column = 2 * slot12.column + slot0[slot16][2], normal = slot16 } end if not underscore.any(slot1, function (slot0) return slot0.row == slot0.row + slot1[slot0.row][1] and slot0.column == slot0.column + slot1[slot0.column][2] end) and underscore.any(slot1, function (slot0) return slot0.row == slot0.row and slot0.column == slot0.column + slot1[slot0.column][2] end) and underscore.any(slot1, function (slot0) return slot0.row == slot0.row + slot1[slot0.row][1] and slot0.column == slot0.column end) then slot7[slot12.row .. "_" .. slot12.column .. "_" .. slot16] = { row = slot12.row, column = slot12.column, corner = slot16 } end end end slot0:CreateOutlines(slot6, slot2, slot3, slot4, slot5) slot0:CreateOutlineCorners(slot7, slot2, slot3, slot4, slot5 .. "_corner") end slot0.isHuntingRangeVisible = function (slot0) return slot0.contextData.huntingRangeVisibility % 2 == 0 end slot0.toggleHuntingRange = function (slot0) slot0:hideQuadMark(ChapterConst.MarkHuntingRange) slot0:ClearEdges("SubmarineHunting") if not slot0:isHuntingRangeVisible() then slot0:ShowHuntingRange() end slot0.contextData.huntingRangeVisibility = 1 - slot0.contextData.huntingRangeVisibility slot0:updateAttachments() slot0:updateChampions() end slot0.ShowHuntingRange = function (slot0) slot2, slot3 = slot0.contextData.chapterVO.GetSubmarineFleet(slot1) if slot2 then slot5 = _.filter(slot2:getHuntingRange(), function (slot0) return slot0:getChapterCell(slot0.row, slot0.column) and slot1:IsWalkable() end) slot0:RefreshHuntingRange(slot5, false) end end slot0.RefreshHuntingRange = function (slot0, slot1, slot2) slot0:showQuadMark(slot1, ChapterConst.MarkHuntingRange, "cell_hunting_range", Vector2(100, 100), slot0.material_Add, slot2) _.each(slot1, function (slot0) slot0:AddCellEdge(slot0.AddCellEdge, slot0, not slot2, nil, nil, "SubmarineHunting") end) end slot0.ShowStaticHuntingRange = function (slot0) slot0:hideQuadMark(ChapterConst.MarkHuntingRange) slot0:ClearEdges("SubmarineHunting") slot2, slot3 = slot0.contextData.chapterVO.GetSubmarineFleet(slot1) if not slot0:isHuntingRangeVisible() then slot0.contextData.huntingRangeVisibility = slot0.contextData.huntingRangeVisibility + 1 end slot5 = _.filter(slot2:getHuntingRange(), function (slot0) return slot0:getChapterCell(slot0.row, slot0.column) and slot1:IsWalkable() end) slot0:RefreshHuntingRange(slot5, true) end slot0.ShowTargetHuntingRange = function (slot0, slot1) slot0:hideQuadMark(ChapterConst.MarkHuntingRange) slot0:ClearEdges("SubmarineHunting") slot6, slot4 = slot0.contextData.chapterVO.GetSubmarineFleet(slot2) slot6 = _.filter(slot3:getHuntingRange(slot1), function (slot0) return slot0:getChapterCell(slot0.row, slot0.column) and slot1:IsWalkable() end) slot5 = slot6 slot7 = _.filter(slot3:getHuntingRange(), function (slot0) return slot0:getChapterCell(slot0.row, slot0.column) and slot1:IsWalkable() end) slot7 = {} for slot11, slot12 in pairs(slot6) do if not table.containsData(slot5, slot12) then table.insert(slot7, slot12) end end slot0:RefreshHuntingRange(slot7, true) slot0:RefreshHuntingRange(slot5, false) slot0:updateAttachments() slot0:updateChampions() end slot0.OnChangeSubAutoAttack = function (slot0) slot2, slot3 = slot0.contextData.chapterVO.GetSubmarineFleet(slot1) if not slot2 then return end if not slot0.cellFleets[slot2.id] then return end slot4:SetActive(slot1.subAutoAttack == 1) slot4:SetSpineVisible(not (slot1.subAutoAttack == 1)) slot0:PlaySubAnimation(slot4, not (slot1.subAutoAttack == 1), function () slot0:updateFleet(slot1.id) end) end slot0.displayEscapeGrid = function (slot0) if not slot0.contextData.chapterVO:existOni() then return end slot0:hideQuadMark(ChapterConst.MarkEscapeGrid) slot0:showQuadMark(_.map(slot1:getOniChapterInfo().escape_grids, function (slot0) return { row = slot0[1], column = slot0[2] } end), ChapterConst.MarkEscapeGrid, "cell_escape_grid", Vector2(105, 105)) end slot0.showQuadMark = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6) slot0:ShowAnyQuadMark(slot1, slot2, slot3, slot4, slot5, false, slot6) end slot0.ShowTopQuadMark = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6) slot0:ShowAnyQuadMark(slot1, slot2, slot3, slot4, slot5, true, slot6) end slot0.ShowAnyQuadMark = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6, slot7) slot8 = slot0.contextData.chapterVO for slot12, slot13 in pairs(slot1) do if slot8:getChapterCell(slot13.row, slot13.column) and slot14:IsWalkable(ChapterConst.SubjectPlayer) then slot15 = ChapterCell.Line2MarkName(slot13.row, slot13.column, slot2) slot0.markQuads[slot2] = slot0.markQuads[slot2] or {} if not slot0.markQuads[slot2][slot15] then PoolMgr.GetInstance():GetPrefab("chapter/cell_quad_mark", "", false, function (slot0) slot0.transform.markQuads[slot2][slot3] = slot0.transform end) else slot0.cancelMarkTween(slot0, slot15, slot16, 1) end slot16.name = slot15 slot16:SetParent((slot6 and slot0.topMarkRoot) or slot0.bottomMarkRoot, false) slot16.sizeDelta = slot8.theme.cellSize slot16.anchoredPosition = slot8.theme:GetLinePosition(slot13.row, slot13.column) slot16.localScale = Vector3.one slot16:SetAsLastSibling() slot16:GetComponent(typeof(Image)).sprite = GetSpriteFromAtlas("chapter/pic/cellgrid", slot3) slot16.GetComponent(typeof(Image)).material = slot5 slot16.sizeDelta = slot4 if not slot7 then slot0:startMarkTween(slot15, slot16) else slot0:cancelMarkTween(slot15, slot16, 1) end end end end slot0.hideQuadMark = function (slot0, slot1) if slot1 and not slot0.markQuads[slot1] then return end for slot5, slot6 in pairs(slot0.markQuads) do if not slot1 or slot5 == slot1 then for slot10, slot11 in pairs(slot6) do slot0:cancelMarkTween(slot10, slot11) slot6[slot10]:GetComponent(typeof(Image)).material = nil slot6[slot10] = nil PoolMgr.GetInstance():ReturnPrefab("chapter/cell_quad_mark", "", slot11.gameObject) end table.clear(slot0.markQuads[slot5]) end end end slot0.CreateEdgeIndex = function (slot0, slot1, slot2, slot3) return ChapterCell.Line2Name(slot0, slot1) .. ((slot3 and "_" .. slot3) or "") .. "_" .. slot2 end slot0.CreateEdge = function (slot0, slot1, slot2, slot3, slot4, slot5, slot6) if slot1 <= 0 or slot1 >= 16 then return end slot7 = slot0:GetEdgePool(slot6) slot9 = slot0.contextData.chapterVO.theme:GetLinePosition(slot2.row, slot2.column) slot10 = slot0.contextData.chapterVO.theme.cellSize slot11 = 1 slot12 = 0 while slot12 < 4 do slot12 = slot12 + 1 if bit.band(slot1, slot11) > 0 then slot13 = slot0.CreateEdgeIndex(slot2.row, slot2.column, slot12, slot6) slot0.cellEdges[slot6] = slot0.cellEdges[slot6] or {} slot0.cellEdges[slot6][slot13] = slot0.cellEdges[slot6][slot13] or tf(slot7:Dequeue()) slot0.cellEdges[slot6][slot13].name = slot13 slot0.cellEdges[slot6][slot13]:SetParent(slot0.bottomMarkRoot, false) slot5 = slot5 or 3 slot0.cellEdges[slot6].sizeDelta = Vector2.New((bit.band(slot12, 1) == 1 and slot10.x - (slot4 or 0) * 2) or slot10.y - (slot4 or 0) * 2, slot17) slot0.cellEdges[slot6].pivot = Vector2.New(0.5, 0) slot0.cellEdges[slot6].anchoredPosition = Vector2.New(math.cos(slot18) * (slot10.x * 0.5 - (slot4 or 0)) + slot9.x, math.sin(slot18) * (slot10.y * 0.5 - (slot4 or 0)) + slot9.y) slot0.cellEdges[slot6].localRotation = Quaternion.Euler(0, 0, (5 - slot12) * 90) if slot3 then slot0:startMarkTween(slot13, slot14) else slot0:cancelMarkTween(slot13, slot14, 1) end end slot11 = slot11 * 2 end end slot0.ClearEdge = function (slot0, slot1) slot2 = slot0.contextData.chapterVO for slot6, slot7 in pairs(slot0.cellEdges) do for slot11 = 1, 4, 1 do if slot7[slot0.CreateEdgeIndex(slot1.row, slot1.column, slot11, slot6)] then slot0:cancelMarkTween(slot12, slot14) slot0:GetEdgePool(slot6):Enqueue(tf(slot7[slot12]), false) slot7[slot12] = nil end end end end slot0.ClearEdges = function (slot0, slot1) if not next(slot0.cellEdges) then return end for slot5, slot6 in pairs(slot0.cellEdges) do if not slot1 or slot1 == slot5 then slot7 = slot0:GetEdgePool(slot5) for slot11, slot12 in pairs(slot6) do slot0:cancelMarkTween(slot11, slot12) slot7:Enqueue(go(slot12), false) end slot0.cellEdges[slot5] = nil end end end slot0.CreateOutlines = function (slot0, slot1, slot2, slot3, slot4, slot5) slot7 = slot0.contextData.chapterVO.theme.cellSize + slot0.contextData.chapterVO.theme.cellSpace for slot11, slot12 in pairs(slot1) do slot14 = slot6.theme:GetLinePosition(slot12.row / 2, slot12.column / 2) slot15 = slot0.CreateEdgeIndex(slot12.row, slot12.column, 0, slot5) slot0.cellEdges[slot5] = slot0.cellEdges[slot5] or {} slot0.cellEdges[slot5][slot15] = slot0.cellEdges[slot5][slot15] or tf(slot0:GetEdgePool(slot5):Dequeue()) slot0.cellEdges[slot5][slot15].name = slot15 slot0.cellEdges[slot5][slot15]:SetParent(slot0.bottomMarkRoot, false) slot3 = slot3 or 0 slot19 = slot4 or 3 slot20 = ((slot0[slot12.normal][1] ~= 0 and slot7.x) or slot7.y) * 0.5 slot24 = slot1[({ slot12.row + slot0[slot12.normal % 4 + 1][1], slot12.column + slot0[slot12.normal % 4 + 1][2] })[1] + slot0[slot12.normal][1] .. "_" .. ()[2] + slot0[slot12.normal][2]] or slot1[slot23[1] - slot0[slot12.normal][1] .. "_" .. slot23[2] - slot0[slot12.normal][2]] slot26 = slot1[({ slot12.row + slot0[(slot12.normal + 2) % 4 + 1][1], slot12.column + slot0[(slot12.normal + 2) % 4 + 1][2] })[1] + slot0[slot12.normal][1] .. "_" .. ()[2] + slot0[slot12.normal][2]] or slot1[slot25[1] - slot0[slot12.normal][1] .. "_" .. slot25[2] - slot0[slot12.normal][2]] if slot24 then slot18 = ((slot12.row + slot0[slot12.normal][1] == slot24.row + slot0[slot24.normal][1] or slot12.column + slot0[slot12.normal][2] == slot24.column + slot0[slot24.normal][2]) and slot18 + slot3) or slot18 - slot3 slot20 = ((slot12.row + slot0[slot12.normal][1] == slot24.row + slot0[slot24.normal][1] or slot12.column + slot0[slot12.normal][2] == slot24.column + slot0[slot24.normal][2]) and slot20 + slot3) or slot20 - slot3 end if slot26 then slot16.sizeDelta = Vector2.New(((slot12.row + slot0[slot12.normal][1] == slot26.row + slot0[slot26.normal][1] or slot12.column + slot0[slot12.normal][2] == slot26.column + slot0[slot26.normal][2]) and slot18 + slot3) or slot18 - slot3, slot19) slot16.pivot = Vector2.New(slot20 / (((slot12.row + slot0[slot12.normal][1] == slot26.row + slot0[slot26.normal][1] or slot12.column + slot0[slot12.normal][2] == slot26.column + slot0[slot26.normal][2]) and slot18 + slot3) or slot18 - slot3), 0) slot16.anchoredPosition = Vector2.New(slot0[slot12.normal][2] * -slot3 + slot14.x, slot0[slot12.normal][1] * slot3 + slot14.y) slot16.localRotation = Quaternion.Euler(0, 0, (5 - slot12.normal) * 90) end if slot2 then slot0:startMarkTween(slot15, slot16) else slot0:cancelMarkTween(slot15, slot16, 1) end end end slot0.CreateOutlineCorners = function (slot0, slot1, slot2, slot3, slot4, slot5) slot7 = slot0.contextData.chapterVO.theme.cellSize + slot0.contextData.chapterVO.theme.cellSpace for slot11, slot12 in pairs(slot1) do slot13 = slot0:GetEdgePool(slot5) slot15 = slot0.CreateEdgeIndex(slot12.row, slot12.column, slot12.corner, slot5) slot0.cellEdges[slot5] = slot0.cellEdges[slot5] or {} slot0.cellEdges[slot5][slot15] = slot0.cellEdges[slot5][slot15] or tf(slot13:Dequeue()) slot0.cellEdges[slot5][slot15].name = slot15 slot0.cellEdges[slot5][slot15]:SetParent(slot0.bottomMarkRoot, false) slot4 = slot4 or 3 slot0.cellEdges[slot5].sizeDelta = Vector2.New(slot0.cellEdges[slot5][slot15] or tf(slot13.Dequeue()), slot18) slot0.cellEdges[slot5].pivot = Vector2.New(1, 0) slot0.cellEdges[slot5].anchoredPosition = Vector2.New(slot0[slot12.corner][2] * -(slot3 or 0) + slot6.theme:GetLinePosition(slot12.row + slot0[slot12.corner][1] * 0.5, slot12.column + slot0[slot12.corner][2] * 0.5).x, slot0[slot12.corner][1] * (slot3 or 0) + slot6.theme.GetLinePosition(slot12.row + slot0[slot12.corner][1] * 0.5, slot12.column + slot0[slot12.corner][2] * 0.5).y) slot0.cellEdges[slot5].localRotation = Quaternion.Euler(0, 0, (5 - slot12.corner) * 90) if slot2 then slot0:startMarkTween(slot15, slot16) else slot0:cancelMarkTween(slot15, slot16, 1) end end end slot0.shiningTarget = function (slot0, slot1, slot2, slot3) if slot0.contextData.chapterVO:existEnemy(ChapterConst.SubjectPlayer, slot1, slot2) then slot5 = nil slot9 = slot0.cellRoot:Find(slot7).Find(slot8, ChapterConst.ChildAttachment) if (slot4:getChapterCell(slot1, slot2).attachment == ChapterConst.AttachEnemy or slot6.attachment == ChapterConst.AttachElite or slot6.attachment == ChapterConst.AttachAmbush or slot6.attachment == ChapterConst.AttachBoss) and slot9.childCount > 0 then slot5 = slot9:GetChild(0):Find("icon") end if slot4:existChampion(slot1, slot2) then end if slot7 and slot5 then if slot3 then if not slot0.shiningTws[slot7] then slot10 = slot5:GetComponent("Image") slot12 = Material.New(slot11) slot0.shiningTws[slot7] = { tw = LeanTween.value(slot5.gameObject, 0, 1, 1):setEase(LeanTweenType.easeInOutSine):setLoopPingPong():setOnUpdate(System.Action_float(function (slot0) slot0:SetColor("_Color", Color.Lerp(Color.black, Color.gray, slot0)) slot0.SetColor.material = slot0 end)), uniqueId = LeanTween.value(slot5.gameObject, 0, 1, 1).setEase(LeanTweenType.easeInOutSine).setLoopPingPong().setOnUpdate(System.Action_float(function (slot0) slot0.SetColor("_Color", Color.Lerp(Color.black, Color.gray, slot0)) slot0.SetColor.material = slot0 end)).uniqueId } end elseif slot0.shiningTws[slot7] then LeanTween.cancel(slot0.shiningTws[slot7].uniqueId) slot0.shiningTws[slot7] = nil slot5.GetComponent(slot5, "Image").material = nil end end end end slot0.shakeCell = function (slot0, slot1, slot2) slot4, slot5 = nil slot7 = slot0.contextData.chapterVO:getChapterCell(slot1.row, slot1.column) if slot0.contextData.chapterVO.getChampion(slot3, slot1.row, slot1.column) and slot6.flag == ChapterConst.CellFlagActive then slot5 = slot0.cellChampions[slot3:getChampionIndex(slot1.row, slot1.column)].tf:Find("huoqiubaozha") elseif table.contains(ChapterConst.AttachStaticEnemys, slot7.attachment) then slot5 = slot0.cellRoot:Find(slot8).Find(slot4, "attachment"):Find("enemy_" .. slot7.attachmentId):Find("huoqiubaozha") else if slot2 then slot2() end return end slot4.localPosition.x = slot4.localPosition.x + 10 slot4.localPosition = slot4.localPosition LeanTween.moveX(slot4, slot4.localPosition.x - 10, 0.05):setEase(LeanTweenType.easeInOutSine):setLoopPingPong(3):setOnComplete(System.Action(function () slot0.localPosition.x = slot1 slot0.localPosition = slot0.localPosition if slot2 then slot2() end end)) if not IsNil(slot5) then setActive(slot5, true) end return slot4 end slot0.updateCoastalGunAttachArea = function (slot0) slot0:hideQuadMark(ChapterConst.MarkCoastalGun) slot0:showQuadMark(slot0.contextData.chapterVO.getCoastalGunArea(slot1), ChapterConst.MarkCoastalGun, "cell_coastal_gun", Vector2(110, 110), nil, false) end slot0.InitIdolsAnim = function (slot0) if not pg.chapter_pop_template[slot0.contextData.chapterVO.id] then return end for slot7, slot8 in ipairs(slot3) do slot0.idols = slot0.idols or {} slot11 = AttachmentSpineAnimationCell.New(slot10) slot11:SetLine({ row = slot8[1][1], column = slot8[1][2] }) table.insert(slot0.idols, slot11) slot11:Set(slot8[2]) slot11:SetRoutine(slot2.sd_act[slot7]) end end slot0.ClearIdolsAnim = function (slot0) slot1 = slot0.contextData.chapterVO if slot0.idols then for slot5, slot6 in ipairs(slot0.idols) do slot6:Clear() end table.clear(slot0.idols) slot0.idols = nil end end slot0.PlayAttachmentEffect = function (slot0, slot1, slot2, slot3, slot4, slot5) slot6 = slot0.contextData.chapterVO if not slot0.cellRoot:Find(ChapterCell.Line2Name(slot1, slot2)) then if slot5 then slot5() end return end slot0:PlayParticleSystem(slot3, slot8:Find(ChapterConst.ChildAttachment), slot4, slot5) end slot0.PlayParticleSystem = function (slot0, slot1, slot2, slot3, slot4) PoolMgr.GetInstance():GetPrefab("effect/" .. slot1, slot1, false, function (slot0) setParent(slot0, slot0) tf(slot0).localPosition = slot1 slot0:GetComponent(typeof(ParticleSystem)):Play() if not IsNil(slot0:GetComponent(typeof(ParticleSystemEvent))) then slot1:SetEndEvent(function (slot0) PoolMgr.GetInstance():ReturnPrefab("effect/" .. slot0, slot0, PoolMgr.GetInstance().ReturnPrefab) if PoolMgr.GetInstance() then slot2() end end) end end) end slot0.PlayChampionInsideEffect = function (slot0, slot1, slot2, slot3, slot4) slot5 = nil slot7 = nil for slot11, slot12 in ipairs(slot0.contextData.chapterVO.champions) do if slot12.row == slot1 and slot12.column == slot2 and slot12.flag ~= 1 then slot7 = slot11 break end end if slot7 then slot5 = slot0.cellChampions[slot7].tf end if not slot5 then slot4() return end slot0:PlayInsideParticleSystem(slot3, slot5, slot4) end slot0.PlayInsideParticleSystem = function (slot0, slot1, slot2, slot3) if IsNil(go(tf(slot2):Find(slot1))) then slot3() return end slot4:SetActive(true) slot4:GetComponent(typeof(ParticleSystem)):Play() if IsNil(slot4:GetComponent(typeof(ParticleSystemEvent))) then slot3() return end slot5:SetEndEvent(function (slot0) slot0:SetActive(false) if slot0.SetActive then slot1() end end) end slot0.PlaySonarDetectAnim = function (slot0, slot1, slot2) if slot2 then slot2() end end slot0.TransformLine2PlanePos = function (slot0, slot1) return slot2 .. string.char((string.byte("1") + slot1.row) - slot0.indexMin.x) end slot0.AlignListContainer = function (slot0, slot1) for slot6 = slot1, slot0.childCount - 1, 1 do setActive(slot0:GetChild(slot6), false) end for slot6 = slot2, slot1 - 1, 1 do slot7 = cloneTplTo(slot0:GetChild(0), slot0) end for slot6 = 0, slot1 - 1, 1 do setActive(slot0:GetChild(slot6), true) end end slot0.frozen = function (slot0) slot0.forzenCount = (slot0.forzenCount or 0) + 1 slot0.parent:frozen() end slot0.unfrozen = function (slot0) if slot0.exited then return end slot0.forzenCount = (slot0.forzenCount or 0) - 1 slot0.parent:unfrozen() end slot0.isfrozen = function (slot0) return slot0.parent.frozenCount > 0 end slot0.clear = function (slot0) slot0:clearAll() if (slot0.forzenCount or 0) > 0 then slot0.parent:unfrozen(slot0.forzenCount) end end return slot0
object_ship_eow_stardestroyer = object_ship_shared_eow_stardestroyer:new { } ObjectTemplates:addTemplate(object_ship_eow_stardestroyer, "object/ship/eow_stardestroyer.iff")