content stringlengths 5 1.05M |
|---|
-- This is the was ripped straight outta pokemon, ghetto style.
-- This UI is designed to display a pop-up message - requires specific size, and if a title should be used
ui = {
border = {
left = {
top = 1,
bottom = 2
},
right = {
top = 3,
bottom = 4
},
hort = 5,
vert = 6,
},
arrow = {
fill = 7,
nofill = 8
},
blank = 10,
box_types = {
debugo = {
title = "debuggo",
dt = false,
x = 0,
y = 0,
w = 12,
h = 2,
color = {
r = 255,
g = 255,
b = 255,
a = 255
},
txt_color = {
r = 0,
g = 0,
b = 0,
a = 255
}
},
ig_menu = {
title = "",
dt = false,
x = 273,
y = 0,
w = 8,
h = 11,
color = {
r = 255,
g = 255,
b = 255,
a = 255
},
txt_color = {
r = 0,
g = 0,
b = 0,
a = 255
}
},
txt = {
title = "",
dt = true,
x = 100,
y = 100,
w = 16,
h = 4,
color = {
r = 255,
g = 255,
b = 255,
a = 255
},
txt_color = {
r = 0,
g = 0,
b = 0,
a = 255
}
}
}
}
function draw_base_ui(box_type, txt, scale)
-- Check if box is valid
if (box_type == nil) then
debug_error("Invalid box type for display", box_type, true)
end
-- Cool it's valid, continue
love.graphics.push()
-- Default scaling
if (scale == nil) then
scale = {x = 2, y = 2}
end
-- Check alpha values, if never set we will default to no alpha
if (box_type.color == nil) then
box_type.color = {
r = 255,
g = 255,
b = 255,
a = 255
}
end
love.graphics.scale(scale.x, scale.y)
love.graphics.setColor(box_type.color.r, box_type.color.g, box_type.color.b, box_type.color.a)
local vert_count = box_type.w-2;
for ilength=0, box_type.h, 1 do
-- Top border portion
if (ilength == 0) then
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.left.top], box_type.x, box_type.y)
for iwidth=1, box_type.w-2, 1 do
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.hort], box_type.x + (iwidth * 16), box_type.y)
--[[
if (iwidth == box_type.w/2) then
love.graphics.rectangle("fill", 0, 0, 512, 32)
love.graphics.setColor(0, 0, 0)
love.graphics.setFont(font_n)
love.graphics.print(box_type.title, box_type.x + (iwidth * 16), box_type.y)
love.graphics.setColor(255, 255, 255, box_type.alpha)
end]]--
end
if not (box_type.title == nil) then
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.right.top], box_type.x + ((vert_count+1) * 16), box_type.y)
love.graphics.rectangle("fill", box_type.x + ((((vert_count+1) * 16) - 96)/2), box_type.y, string.len(box_type.title) * 16, 32)
love.graphics.setColor(box_type.txt_color.r, box_type.txt_color.g, box_type.txt_color.b, box_type.txt_color.a)
love.graphics.setFont(font_lg)
love.graphics.print(box_type.title, box_type.x + ((((vert_count+1) * 16) - 96)/2), box_type.y)
love.graphics.setColor(box_type.color.r, box_type.color.g, box_type.color.b, box_type.color.a)
end
-- Bottom border portion
elseif (ilength == box_type.h) then
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.left.bottom], box_type.x, box_type.y + (ilength * 16))
for iwidth=1, box_type.w-2, 1 do
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.hort], box_type.x + (iwidth * 16), box_type.y + (ilength * 16))
end
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.right.bottom], box_type.x + ((vert_count+1) * 16), box_type.y + (ilength * 16))
-- Entire content + vertical borders
else
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.vert], box_type.x, box_type.y + (ilength * 16))
for iwidth=1, box_type.w-2, 1 do
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.blank], box_type.x + (iwidth * 16), box_type.y + (ilength * 16))
end
love.graphics.draw(resources.spritesheets.ui, resources.sprites.ui[ui.border.vert], box_type.x + ((vert_count+1) * 16), box_type.y + (ilength * 16))
end
end
if (box_type.dt) then
love.graphics.setColor(0, 0, 0)
love.graphics.scale(1, 1)
love.graphics.setFont(font_lg)
love.graphics.print(txt, box_type.x + 18, box_type.y + 18)
end
love.graphics.pop()
end
|
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You 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
--
-- 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 cpath = package.cpath
local path = package.path
local home = "/usr/local/gw"
local pkg_cpath = home .. "/deps/lib64/lua/5.1/?.so;"
.. home .. "/deps/lib/lua/5.1/?.so;"
local pkg_path = home .. "/deps/share/lua/5.1/?.lua;"
-- modify the load path to load our dependencies
package.cpath = pkg_cpath .. cpath
package.path = pkg_path .. path
-- pass path to construct the final result
local env = require("gw.cli.env")
local ops = require("gw.cli.ops")
local envs = env.get_envs(home, cpath, path)
ops.exec(envs, arg)
|
local loader = require '../include/loader'.loadDir
local type = require '../include/utils'.classType
local Command = require '../objects/Command'
--- TODO: Expose FILES_PATT to the end-user, allowing customizing
local FILES_PATT = '([^%/]+)%.command%.lua$'
local baseErr = 'Commands Loader (Command "%s") | %s'
return function (manager)
local env = {
manager = manager,
require = require, --- NOTE: is this needed anymore?
__index = _G
}
env.Command = function(cb, perms, aliases, args)
return Command(manager, env.command_name,
cb or env.cb,
perms or env.perms,
aliases or env.aliases,
args or env.args
)
end
env = setmetatable(env, env)
local function log(level, n, msg, ...)
msg = msg:format(...)
manager._logger:log(level, baseErr, n, msg)
end
---* Before loading event
local function onBeforeload(n, l)
local loaderEnv = getfenv(l)
loaderEnv.command_name = n -- Used by Commandia, should not be manually defined
setfenv(l, loaderEnv)
end
---* Loading event
local function onLoad(n, r, c)
local commandEnv, g = getfenv(c), {}
local globalsmap = {
aliases = {"table", "string"},
permissions = {"table", "string"},
perms = {"table", "string"},
arguments = {"table"},
args = {"table"},
callback = {"function"},
cb = {"function"}
}
for k, _ in pairs(globalsmap) do
g[k] = commandEnv[k]
end
--- NOTE: In Luvit a global (args) is used instead of the global (arg)
-- which might cause conflicting with Commandia's global (args)
-- this code will asure no conflicting happens.
-- If user defined a global args with index 0 then conflicting will happen
-- **an index 0 for `args` must never be defined**.
if type(g.args) == "table" and g.args[0] then
g.args = nil
end
do -- Check if provided globals are valid
local i, isValid
for global, types in pairs(globalsmap) do
i, isValid = g[global]
for _, t in ipairs(types) do
if type(i) == t then isValid = true end
end
if i ~= nil and not isValid then
log(1, n, 'bad value for global "%s" (expected %s, got %s)',
global, table.concat(types, '|'), type(i)
); return false
end
end
end
local aliases = g.aliases
local perms = g.permissions or g.perms
local args = g.arguments or g.args
local cb = g.callback or g.cb
local returnType = type(r)
if returnType == 'function' then
manager._commands[n] = manager:createCommand(n, r, perms, aliases, args, false)
elseif returnType == 'table' then
manager._commands[n] = manager:createCommand(
n, r.callback or cb,
r.permissions or r.perms or perms,
r.aliases,
r.arguments or r.args or args,
false
)
elseif returnType == 'Command' then
if not r.callback and not cb then
log(1, n, 'bad argument #1 to "Command" (expected function|global "callback", got no value)')
return false
end
manager._commands[n] = r
elseif not r and cb then
manager._commands[n] = manager:createCommand(n, cb, perms, aliases, args, false)
elseif next(g) then
log(1, n, 'A callback is required but got no callback '..
'(you can either define a global "callback", and/or return a function value. See wiki for more info.)'
); return false
else
log(1, n, 'bad return value for command "%s" (expected %s, got %s)',
n, "function|table|Command", returnType
); return false
end
end
---* First load event
local function onFirstload(n)
log(3, n, 'Command has been successfully loaded')
end
---* Reloaded event
local function onReloaded(n)
log(3, n, 'Command has been successfully reloaded')
end
---* Unloading event
local function onUnload(n)
manager._commands[n] = nil
end
---* Deleting event (renaming/moving/deletion)
local function onDeleted(n)
log(2, n, 'Command has been unloaded due to Command\'s file inaccessibility')
manager._commands[n] = nil
end
---* Error event
local function onErr(n, err)
log(1, n, err)
end
-- Load commands and auto-reload on changes
loader(manager._commandsPath, FILES_PATT, env, {
onErr = onErr,
onLoad = onLoad,
onUnload = onUnload,
onDeleted = onDeleted,
onReloaded = onReloaded,
onFirstload = onFirstload,
onBeforeload = onBeforeload,
})
end
|
--[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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
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.
--]]
-- Chisel description
description = "Print the standard input of any process on screen. Combine this script with a filter to limit the output to a specific process or pid.";
short_description = "Print stdin of processes";
category = "I/O";
args = {}
-- Initialization callback
function on_init()
-- Request the fields that we need
fbuf = chisel.request_field("evt.rawarg.data")
-- increase the snaplen so we capture more of the conversation
sysdig.set_snaplen(2000)
-- set the filter
chisel.set_filter("fd.num=0 and evt.is_io=true")
return true
end
-- Event parsing callback
function on_event()
buf = evt.field(fbuf)
if buf ~= nil then
print(buf)
end
return true
end
|
-- Author: philh30
--
-- 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
--
-- 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 capabilities = require('st.capabilities')
-- statusMessage = platinummassive43262.statusMessage
-- alarmMode = platinummassive43262.alarmState
-- alarmCommands = platinummassive43262.securityPartitionCommands
-- bypass = platinummassive43262.bypass
-- carbonMonoxideZone = platinummassive43262.carbonMonoxideZone
-- contactZone = platinummassive43262.contactZone
-- glassBreakZone = platinummassive43262.glassBreakZone
-- leakZone = platinummassive43262.leakZone
-- motionZone = platinummassive43262.motionZone
-- smokeZone = platinummassive43262.smokeZone
local capabilitydefs = {}
capabilitydefs.statusMessage = {}
capabilitydefs.statusMessage.name = "platinummassive43262.statusMessage"
capabilitydefs.statusMessage.json = [[
{
"id": "platinummassive43262.statusMessage",
"version": 1,
"status": "proposed",
"name": "Status Message",
"attributes": {
"statusMessage": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.statusMessage.capability = capabilities.build_cap_from_json_string(capabilitydefs.statusMessage.json)
capabilitydefs.alarmMode = {}
capabilitydefs.alarmMode.name = "platinummassive43262.alarmMode"
capabilitydefs.alarmMode.json = [[
{
"id": "platinummassive43262.alarmMode",
"version": 1,
"status": "proposed",
"name": "Alarm Mode",
"attributes": {
"alarmMode": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"setter": "setAlarmMode",
"enumCommands": []
},
"supportedAlarmModes": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": []
},
"enumCommands": []
}
},
"commands": {
"setAlarmMode": {
"name": "setAlarmMode",
"arguments": [
{
"name": "alarmMode",
"optional": false,
"schema": {
"type": "string"
}
}
]
}
}
}
]]
capabilitydefs.alarmMode.capability = capabilities.build_cap_from_json_string(capabilitydefs.alarmMode.json)
capabilitydefs.bypass = {}
capabilitydefs.bypass.name = "platinummassive43262.bypass"
capabilitydefs.bypass.json = [[
{
"id": "platinummassive43262.bypass",
"version": 1,
"status": "proposed",
"name": "Bypass",
"attributes": {},
"commands": {
"bypass": {
"name": "bypass",
"arguments": []
}
}
}
]]
capabilitydefs.bypass.capability = capabilities.build_cap_from_json_string(capabilitydefs.bypass.json)
capabilitydefs.carbonMonoxideZone = {}
capabilitydefs.carbonMonoxideZone.name = "platinummassive43262.carbonMonoxideZone"
capabilitydefs.carbonMonoxideZone.json = [[
{
"id": "platinummassive43262.carbonMonoxideZone",
"version": 1,
"status": "proposed",
"name": "Carbon Monoxide Zone",
"ephemeral": false,
"attributes": {
"carbonMonoxideZone": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"clear",
"detected",
"bypassed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.carbonMonoxideZone.capability = capabilities.build_cap_from_json_string(capabilitydefs.carbonMonoxideZone.json)
capabilitydefs.contactZone= {}
capabilitydefs.contactZone.name = "platinummassive43262.contactZone"
capabilitydefs.contactZone.json = [[
{
"id": "platinummassive43262.contactZone",
"version": 1,
"status": "proposed",
"name": "Contact Zone",
"attributes": {
"contactZone": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"closed",
"open",
"bypassed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.contactZone.capability = capabilities.build_cap_from_json_string(capabilitydefs.contactZone.json)
capabilitydefs.glassBreakZone = {}
capabilitydefs.glassBreakZone.name = "platinummassive43262.glassBreakZone"
capabilitydefs.glassBreakZone.json = [[
{
"id": "platinummassive43262.glassBreakZone",
"version": 1,
"status": "proposed",
"name": "Glass Break Zone",
"attributes": {
"glassBreakZone": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"noSound",
"glassBreaking",
"bypassed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.glassBreakZone.capability = capabilities.build_cap_from_json_string(capabilitydefs.glassBreakZone.json)
capabilitydefs.leakZone = {}
capabilitydefs.leakZone.name = "platinummassive43262.leakZone"
capabilitydefs.leakZone.json = [[
{
"id": "platinummassive43262.leakZone",
"version": 1,
"status": "proposed",
"name": "Leak Zone",
"attributes": {
"leakZone": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"dry",
"wet",
"bypassed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.leakZone.capability = capabilities.build_cap_from_json_string(capabilitydefs.leakZone.json)
capabilitydefs.motionZone = {}
capabilitydefs.motionZone.name = "platinummassive43262.motionZone"
capabilitydefs.motionZone.json = [[
{
"id": "platinummassive43262.motionZone",
"version": 1,
"status": "proposed",
"name": "Motion Zone",
"attributes": {
"motionZone": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"active",
"inactive",
"bypassed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.motionZone.capability = capabilities.build_cap_from_json_string(capabilitydefs.motionZone.json)
capabilitydefs.smokeZone = {}
capabilitydefs.smokeZone.name = "platinummassive43262.smokeZone"
capabilitydefs.smokeZone.json = [[
{
"id": "platinummassive43262.smokeZone",
"version": 1,
"status": "proposed",
"name": "Smoke Zone",
"attributes": {
"smokeZone": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "string",
"enum": [
"clear",
"detected",
"bypassed"
]
}
},
"additionalProperties": false,
"required": [
"value"
]
},
"enumCommands": []
}
},
"commands": {}
}
]]
capabilitydefs.smokeZone.capability = capabilities.build_cap_from_json_string(capabilitydefs.smokeZone.json)
return capabilitydefs
|
TabLeftItem = setmetatable({}, TabLeftItem)
TabLeftItem.__index = TabLeftItem
TabLeftItem.__call = function()
return "TabLeftItem", "TabLeftItem"
end
function TabLeftItem.New(label, _type, mainColor, highlightColor)
local data = {
Label = label or "",
ItemType = _type,
Focused = false,
MainColor = mainColor or Colours.NONE,
HighlightColor = highlightColor or Colours.NONE,
Highlighted = false,
ItemIndex = 0,
ItemList = {},
TextTitle = "",
_enabled = true,
_hovered = false,
_selected = false,
KeymapRightLabel_1 = "",
KeymapRightLabel_2 = "",
OnIndexChanged = function(item, index) end,
OnActivated = function(item, index) end,
Index = 0,
Parent = nil
}
return setmetatable(data, TabLeftItem)
end
function TabLeftItem:AddItem(item)
item.Parent = self
table.insert(self.ItemList, item)
end
function TabLeftItem:Enabled(enabled)
if enabled ~= nil then
self._enabled = enabled
if self.Parent ~= nil and self.Parent.Base.Parent ~= nil and self.Parent.Base.Parent:Visible() then
local tab = IndexOf(self.Parent.Base.Parent.Tabs, self.Parent) - 1
local leftItem = IndexOf(self.Parent.LeftItemList, self) - 1
ScaleformUI.Scaleforms._pauseMenu._pause:CallFunction("ENABLE_LEFT_ITEM", false, tab, leftItem, self._enabled)
end
else
return self._enabled
end
end
function TabLeftItem:Hovered(hover)
if hover ~= nil then
self._hovered = hover
else
return self._hovered
end
end
function TabLeftItem:Selected(selected)
if selected ~= nil then
self._selected = selected
else
return self._selected
end
end |
---
-- Override global(_G) namepace, inspired by kong
--
return function(opts)
-- For further setting
opts = opts or {}
-- Add a special randomseed for math, no arguments
do
local utils = require "core.utils.utils"
local randomseed = math.randomseed
local seed
_G.math.randomseed = function()
if not seed then
seed = utils.get_random_seed()
else
ngx.log(ngx.ERR, "The seed random number generator seed has already seeded with: " .. seed .. "\n")
end
randomseed(seed)
return seed
end
end
end
|
-- NetHack 3.7 Barb.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.9 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1991 by M. Stephenson
-- NetHack may be freely redistributed. See license for details.
--
des.level_flags("mazelevel", "outdoors", "hardfloor", "inaccessibles", "noflip");
-- TODO: Why does mines-style open up x=1 and x=79 whereas solidfill doesn't?
-- And then, specifying e.g. x=0 in commands in this file actually comes out to x=1 in game...
des.level_init({ style = "mines", fg = ".", bg=".", lit=1, walled=false });
-- let's make some mesa-like rock promontories
local mesa_centers = selection.fillrect(08,00,72,20)
for i=1, 12+d(4) do
local cx, cy = mesa_centers:rndcoord()
local rock = selection.gradient({ type="radial", mindist=0, maxdist=3, limited=true, x=cx, y=cy })
-- gradients are non-invertible so have to do some selection magic to flip it
rock = rock:negate()
rock = rock & selection.circle(cx, cy, 3);
if percent(50) then
rock = rock:grow("north")
else
rock = rock:grow("east")
end
rock = rock:grow()
des.terrain({ selection = rock, typ = ' ', lit = 1 })
end
-- guarantee a way across the level
local leftstair = { selection.line(0,0, 0,20):rndcoord() }
local rightstair = { selection.line(78,1, 78,20):rndcoord() }
des.stair({ dir = "up", coord = leftstair })
des.stair({ dir = "down", coord = rightstair })
local lstairy = leftstair[2]
local rstairy = rightstair[2]
local path = selection.randline(0, lstairy, 78, rstairy, 10)
des.terrain({ selection = path:grow("north"):grow("south"), typ = ".", lit = 1 })
for i=1,8 do
des.object()
end
for i=1,4 do
des.trap()
end
for i=1,3 do
des.monster({ id="ogre", peaceful=0 })
end
des.monster({ class="O", peaceful=0 })
des.monster({ class="T", peaceful=0 })
-- wallify the rock promontories
-- we don't want to wallify the stone left and right map edges, so need to limit the range
des.wallify()
|
-- Based on https://github.com/minetest-mods/homedecor_modpack/blob/master/computer/tetris.lua
local shapes = {
{ { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } },
{ { x = {1, 1, 1, 1}, y = {0, 1, 2, 3} },
{ x = {0, 1, 2, 3}, y = {1, 1, 1, 1} } },
{ { x = {0, 0, 1, 1}, y = {0, 1, 1, 2} },
{ x = {1, 2, 0, 1}, y = {0, 0, 1, 1} } },
{ { x = {1, 0, 1, 0}, y = {0, 1, 1, 2} },
{ x = {0, 1, 1, 2}, y = {0, 0, 1, 1} } },
{ { x = {1, 2, 1, 1}, y = {0, 0, 1, 2} },
{ x = {0, 1, 2, 2}, y = {1, 1, 1, 2} },
{ x = {1, 1, 0, 1}, y = {0, 1, 2, 2} },
{ x = {0, 0, 1, 2}, y = {0, 1, 1, 1} } },
{ { x = {1, 1, 1, 2}, y = {0, 1, 2, 2} },
{ x = {0, 1, 2, 0}, y = {1, 1, 1, 2} },
{ x = {0, 1, 1, 1}, y = {0, 0, 1, 2} },
{ x = {0, 1, 2, 2}, y = {1, 1, 1, 0} } },
{ { x = {1, 0, 1, 2}, y = {0, 1, 1, 1} },
{ x = {1, 1, 1, 2}, y = {0, 1, 2, 1} },
{ x = {0, 1, 2, 1}, y = {1, 1, 1, 2} },
{ x = {0, 1, 1, 1}, y = {1, 0, 1, 2} } } }
local base_color_texture = "laptop_tetris_block.png"
local base_color_alpha = '128'
local colors = { base_color_texture.."^[colorize:#00FFFF:"..base_color_alpha, base_color_texture.."^[colorize:#FF00FF:"..base_color_alpha, base_color_texture.."^[colorize:#FF0000:"..base_color_alpha,
base_color_texture.."^[colorize:#0000FF:"..base_color_alpha, base_color_texture.."^[colorize:#00FF00:"..base_color_alpha, base_color_texture.."^[colorize:#FF4500:"..base_color_alpha,
base_color_texture.."^[colorize:#FFFF00:"..base_color_alpha }
local boardx, boardy = 0, 0
local sizex, sizey, size = 0.42, 0.44, 0.47
local comma = ","
local semi = ";"
local close = "]"
local concat = table.concat
local insert = table.insert
local tetris_class = {}
tetris_class.__index = tetris_class
local function get_tetris(app, data)
local self = setmetatable({}, tetris_class)
self.data = data
self.app = app
return self
end
function tetris_class:new_game()
local nex = math.random(7)
self.data.t = {
board = {},
boardstring = "",
previewstring = self:draw_shape(nex, 0, 0, 1, 6.5, 0.8),
score = 0,
cur = math.random(7),
nex = nex,
x=4, y=0, rot=1
}
self.app:get_timer():start(0.3)
end
function tetris_class:update_boardstring()
local scr = {}
local ins = #scr
local fixed_color
if self.app.os.theme.monochrome_textcolor then
fixed_color = base_color_texture.."^[colorize:"..
self.app.os.theme.monochrome_textcolor..
":"..base_color_alpha
end
for i, line in pairs(self.data.t.board) do
for _, tile in pairs(line) do
local tmp = { "image[",
tile[1]*sizex+boardx, comma,
i*sizey+boardy, semi,
size, comma, size, semi,
fixed_color or colors[tile[2]], close }
ins = ins + 1
scr[ins] = concat(tmp)
end
end
self.data.t.boardstring = concat(scr)
end
function tetris_class:add()
local t = self.data.t
local d = shapes[t.cur][t.rot]
for i=1,4 do
local l = d.y[i] + t.y
if not t.board[l] then t.board[l] = {} end
insert(t.board[l], {d.x[i] + t.x, t.cur})
end
end
function tetris_class:scroll(l)
for i=l, 1, -1 do
self.data.t.board[i] = self.data.t.board[i-1] or {}
end
end
function tetris_class:check_lines()
for i, line in pairs(self.data.t.board) do
if #line >= 10 then
self:scroll(i)
self.data.t.score = self.data.t.score + 20
end
end
end
function tetris_class:check_position(x, y, rot)
local d = shapes[self.data.t.cur][rot]
for i=1,4 do
local cx, cy = d.x[i]+x, d.y[i]+y
if cx < 0 or cx > 9 or cy < 0 or cy > 19 then
return false
end
for _, tile in pairs(self.data.t.board[ cy ] or {}) do
if tile[1] == cx then return false end
end
end
return true
end
function tetris_class:stuck()
local t = self.data.t
if self:check_position(t.x, t.y+1, t.rot) then
return false
else
return true
end
end
function tetris_class:tick()
local t = self.data.t
if self:stuck() then
if t.y <= 0 then
return false
end
self:add()
self:check_lines()
self:update_boardstring()
t.cur, t.nex = t.nex, math.random(7)
t.x, t.y, t.rot = 4, 0, 1
t.previewstring = self:draw_shape(t.nex, 0, 0, 1, 6.5, 0.8)
else
t.y = t.y + 1
end
return true
end
function tetris_class:move(dx, dy)
local t = self.data.t
local newx, newy = t.x+dx, t.y+dy
if not self:check_position(newx, newy, t.rot) then
return
end
t.x, t.y = newx, newy
end
function tetris_class:rotate(dr)
local t = self.data.t
local no = #(shapes[t.cur])
local newrot = (t.rot+dr) % no
if newrot<1 then newrot = newrot+no end
if not self:check_position(t.x, t.y, newrot) then
return
end
t.rot = newrot
end
function tetris_class:key(fields)
local t = self.data.t
if fields.left then
self:move(-1, 0)
end
if fields.rotateleft then
self:rotate(-1)
end
if fields.down then
t.score = t.score + 1
self:move(0, 1)
end
if fields.drop then
while not self:stuck() do
t.score = t.score + 2
self:move(0, 1)
end
end
if fields.rotateright then
self:rotate(1)
end
if fields.right then
self:move(1, 0)
end
end
function tetris_class:draw_shape(id, x, y, rot, posx, posy)
local d = shapes[id][rot]
local scr = {}
local ins = #scr
local color = colors[id]
if self.app.os.theme.monochrome_textcolor then
color = base_color_texture.."^[colorize:"..
self.app.os.theme.monochrome_textcolor..
":"..base_color_alpha
end
for i=1,4 do
local tmp = { "image[",
(d.x[i]+x)*sizex+posx, comma,
(d.y[i]+y)*sizey+posy, semi,
size, comma, size, semi,
color, close }
ins = ins + 1
scr[ins] = concat(tmp)
end
return concat(scr)
end
laptop.register_app("tetris", {
app_name = "Tetris",
app_icon = "laptop_tetris_icon.png",
app_info = "Falling Tile Game",
formspec_func = function(app, mtos)
local data = mtos.bdev:get_app_storage('ram', 'tetris')
local tetris = get_tetris(app, data)
if not data.t then
return mtos.theme:get_button('2,4;2,2', 'major', 'new', 'New Game', 'Start a new game')
end
local buttons = mtos.theme:get_button('6,6;1,1', 'minor', 'left', '<')..
mtos.theme:get_button('6,5;1,1', 'minor', 'rotateleft', 'L')..
mtos.theme:get_button('7,5;1,1', 'minor', 'down', 'v')..
mtos.theme:get_button('7,6;1,1', 'minor', 'drop', 'V')..
mtos.theme:get_button('8,5;1,1', 'minor', 'rotateright', 'R')..
mtos.theme:get_button('8,6;1,1', 'minor', 'right', '>')..
mtos.theme:get_button('6,3.5;3,1', 'major', 'new', 'New Game', 'Start a new game')
local t = tetris.data.t
return 'container[3,1]background[0,-0.05;4.35,9;'.. mtos.theme.contrast_background .. ']' ..
t.boardstring .. t.previewstring ..
tetris:draw_shape(t.cur, t.x, t.y, t.rot, boardx, boardy) ..
mtos.theme:get_label('6.5,0.1', 'Next...') ..
mtos.theme:get_label('6.5,2.7', 'Score:...'..t.score) ..
buttons .. 'container_end[]'
end,
receive_fields_func = function(app, mtos, sender, fields)
local data = mtos.bdev:get_app_storage('ram', 'tetris')
local tetris = get_tetris(app, data)
if fields.new then
tetris:new_game()
elseif fields.continue then
app:get_timer():start(0.3)
else
tetris:key(fields)
end
end,
on_timer = function(app, mtos)
local data = mtos.bdev:get_app_storage('ram', 'tetris')
if not data.t then
return false
else
return get_tetris(app, data):tick()
end
end,
})
|
ys = ys or {}
slot1 = ys.Battle.BattleConst
ys.Battle.BattleDepthChargeUnit = class("BattleDepthChargeUnit", ys.Battle.BattleWeaponUnit)
ys.Battle.BattleDepthChargeUnit.__name = "BattleDepthChargeUnit"
slot3 = ys.Battle.BattleTargetChoise
ys.Battle.BattleDepthChargeUnit.Ctor = function (slot0)
slot0.super.Ctor(slot0)
end
ys.Battle.BattleDepthChargeUnit.TriggerBuffOnFire = function (slot0)
slot0._host:TriggerBuff(slot0.BuffEffectType.ON_DEPTH_CHARGE_DROP, {
equipIndex = slot0._equipmentIndex
})
end
return
|
local _M = {}
function _M.filter(args)
local cjson = require "cjson"
local util = require("util")
local RedisManager = require("RedisManager")
local rurl = ngx.var.url
local jsonbody = args.jsonbody
local args = args.args
local urlStr = args.urlMapStr
if urlStr == "" then
ngx.exit(ngx.HTTP_FORBIDDEN)
end
local urlMap = cjson.decode(urlStr);
if urlMap == nil then
ngx.exit(ngx.HTTP_FORBIDDEN)
end
local isAuth = urlMap["isAuth"];
if ngx.ctx.isstatic or isAuth == "0" then
else
local headers=ngx.req.get_headers()
local cookie_auth = headers["cookie_auth"]
local tickt = nil
local username = nil
if cookie_auth == nil or cookie_auth == "1" then
t = {}
local s = ""
if ngx.var.http_cookie then
s = ngx.var.http_cookie
for k, v in string.gmatch(s, "(%w+)=([%w%/%.=_-]+)") do
t[k] = v
end
end
tickt = t["ts-ticket"]
username = t["ts-mask"]
else
tickt = headers["ts-ticket"]
username = headers["ts-mask"]
end
if username == nil or username == "" then
ngx.log(ngx.INFO, "username is null")
ngx.exit(ngx.HTTP_FORBIDDEN)
return
end
local userinfostr = nil
local userinfo = ''
local _userId = ''
local _username = ''
if tickt == nil then
ngx.log(ngx.INFO, "tickt is null")
ngx.exit(ngx.HTTP_FORBIDDEN)
return
else
userinfostr = RedisManager.runCommand("get", "ts:nlua:user:ticket:"..tickt)
end
if userinfostr == nil then
ngx.log(ngx.INFO, "userinfostr is null")
ngx.exit(ngx.HTTP_FORBIDDEN)
return
else
userinfo = cjson.decode(userinfostr)
_userId = userinfo["userId"]
_username = userinfo["userName"]
end
ngx.ctx.user_id = _userId
ngx.ctx.user_name = _username
-- local _ip = userinfo["ip"]
-- local ip=headers["X-REAL-IP"] or headers["X_FORWARDED_FOR"] or ngx.var.remote_addr or "0.0.0.0"
if _username == username then
-- if _ip ~= ip then
-- ngx.log(ngx.INFO, "ip is not same")
-- ngx.exit(ngx.HTTP_FORBIDDEN)
-- return
-- end
else
ngx.log(ngx.INFO, "username is not same")
ngx.exit(ngx.HTTP_FORBIDDEN)
return
end
end
local request_method = ngx.var.request_method
local userStr = ''
local isAddUser = urlMap["isAddUser"];
if isAddUser == "1" then
if request_method == "GET" then
userStr = "user_id=".._userId
elseif request_method == "POST" then
jsonbody["body"]["user_id"] = _userId
local jsonstr = cjson.encode(jsonbody)
ngx.req.set_body_data(jsonstr)
end
end
args.userStr = userStr;
end
return _M |
local skynet = require "skynet"
require "Common.Util.util"
require "ECS.ECS"
require "common.helper"
RequireAllLuaFileInFolder("./game/System")
local NORET = {}
local CMD = {}
local this = {
--the scene object includes the role monster npc
cur_scene_id = 0,
scene_uid = 0,
role_list = {},
npc_list = {},
monster_list = {},
object_list = {},
entity_mgr = false,
}
local SceneObjectType={
Role=1,Monster=2,NPC=3,
}
local SceneInfoKey = {
EnterScene=1,
LeaveScene=2,
PosChange=3,
TargetPos=4,
}
local get_cur_time = function ( )
return math.floor(skynet.time()*1000+0.5)
end
local new_scene_uid = function ( scene_obj_type )
this.scene_uid = scene_obj_type*10000000000+this.scene_uid + 1
return this.scene_uid
end
--enter_radius should be smaller than leave_radius
local get_around_roles = function ( role_id, enter_radius, leave_radius )
return this.role_list
end
local add_info_item = function ( change_obj_infos, scene_uid, info_item )
change_obj_infos = change_obj_infos or {obj_infos={}}
local cur_info = nil
for i,v in ipairs(change_obj_infos.obj_infos) do
if v.scene_obj_uid == scene_uid then
cur_info = v
end
end
if not cur_info then
cur_info = {scene_obj_uid=scene_uid, info_list={}}
table.insert(change_obj_infos.obj_infos, cur_info)
end
table.insert(cur_info.info_list, info_item)
return change_obj_infos
end
local init_npc = function ( )
if not this.scene_cfg or not this.scene_cfg.npc_list then return end
for k,v in pairs(this.scene_cfg.npc_list) do
local npc = {}
npc.id = v.npc_id
npc.uid = new_scene_uid(SceneObjectType.NPC)
npc.pos_x = v.pos_x
npc.pos_y = v.pos_y
npc.pos_z = v.pos_z
-- local npc_entity = this.entity_mgr:CreateEntityByArcheType(this.npc_archetype)
table.insert(this.npc_list, npc)
end
end
local init_monster = function ( )
if not this.scene_cfg or not this.scene_cfg.monster_list then return end
for k,v in pairs(this.scene_cfg.monster_list) do
local monster = this.entity_mgr:CreateEntityByArcheType(this.monster_archetype)
this.entity_mgr:SetComponentData(monster, "UMO.Position", {x=v.pos_x, y=v.pos_y, z=v.pos_z})
this.entity_mgr:SetComponentData(monster, "UMO.UID", {value=new_scene_uid(SceneObjectType.Monster)})
this.entity_mgr:SetComponentData(monster, "UMO.TypeID", {value=v.monster_id})
end
end
function CMD.init(scene_id)
ECS.InitWorld("scene_world")
this.entity_mgr = ECS.World.Active:GetOrCreateManager(ECS.EntityManager.Name)
this.monster_archetype = this.entity_mgr:CreateArchetype({"UMO.Position", "UMO.UID", "UMO.TypeID"})
this.npc_archetype = this.entity_mgr:CreateArchetype({"UMO.Position", "UMO.UID", "UMO.TypeID"})
this.scene_cfg = require("Config.scene.config_scene_"..scene_id)
this.cur_scene_id = scene_id
init_npc()
init_monster()
Time = {deltaTime=0}
lastUpdateTime = os.time()
skynet.fork(function()
while true do
local curTime = os.time()
Time.deltaTime = curTime-lastUpdateTime
lastUpdateTime = curTime
ECS.Update()
skynet.sleep(10)
end
end)
skynet.fork(function()
while true do
--synch info at fixed time
for k,role_info in pairs(this.role_list) do
-- print("Cat:scene [start:46] role_info.change_obj_infos:", role_info.change_obj_infos)
-- PrintTable(role_info.change_obj_infos)
-- print("Cat:scene [end]")
if role_info.change_obj_infos and role_info.ack_scene_get_objs_info_change then
role_info.ack_scene_get_objs_info_change(true, role_info.change_obj_infos)
role_info.change_obj_infos = nil
role_info.ack_scene_get_objs_info_change = nil
end
end
skynet.sleep(10)
end
end)
skynet.fork(function()
while true do
for k,role_info in pairs(this.role_list) do
if role_info.fight_events and role_info.ack_scene_listen_fight_event then
role_info.ack_scene_listen_fight_event(true, role_info.fight_events)
role_info.fight_events = nil
role_info.ack_scene_listen_fight_event = nil
end
end
skynet.sleep(10)
end
end)
end
local get_base_info_by_roleid = function ( role_id )
local gameDBServer = skynet.localname(".GameDBServer")
local is_ok, role_info = skynet.call(gameDBServer, "lua", "select_by_key", "RoleBaseInfo", "role_id", role_id)
if is_ok and role_info and role_info[1] then
return role_info[1]
end
return nil
end
local get_looks_info_by_roleid = function ( role_id )
local gameDBServer = skynet.localname(".GameDBServer")
local is_ok, looks_info = skynet.call(gameDBServer, "lua", "select_by_key", "RoleLooksInfo", "role_id", role_id)
if is_ok and looks_info and looks_info[1] then
return looks_info[1]
end
return nil
end
local init_pos_info = function ( base_info )
if not base_info then return end
local is_need_reset_pos = false
if not base_info.scene_id or this.cur_scene_id ~= base_info.scene_id or not base_info.pos_x then
is_need_reset_pos = true
end
if is_need_reset_pos then
local born_list = this.scene_cfg.born_list
local door_num = born_list and #born_list or 0
-- print('Cat:scene.lua[136] door_num', door_num)
if door_num > 0 then
local random_index = math.random(1, door_num)
local born_info = born_list[random_index]
base_info.pos_x = born_info.pos_x
base_info.pos_y = born_info.pos_y
base_info.pos_z = born_info.pos_z
end
end
end
function CMD.role_enter_scene(role_id)
print('Cat:scene.lua[role_enter_scene] role_id', role_id)
local cur_time = get_cur_time()
do
--tell every one a new role enter scene
for k,v in pairs(this.role_list) do
v.change_obj_infos = add_info_item(v.change_obj_infos, v.scene_uid, {key=SceneInfoKey.EnterScene, value=SceneObjectType.Role, time=cur_time})
end
end
if not this.role_list[role_id] then
local scene_uid = new_scene_uid(SceneObjectType.Role)
local base_info = get_base_info_by_roleid(role_id)
local looks_info = get_looks_info_by_roleid(role_id)
init_pos_info(base_info)
this.role_list[role_id] = {scene_uid=scene_uid, base_info=base_info, looks_info=looks_info}
this.object_list[scene_uid] = this.role_list[role_id]
--tell the new guy who are here
for k,v in pairs(this.role_list) do
if v.scene_uid ~= scene_uid then
this.role_list[role_id].change_obj_infos = add_info_item(this.role_list[role_id].change_obj_infos, v.scene_uid, {key=SceneInfoKey.EnterScene, value=SceneObjectType.Role, time=cur_time})
end
end
for k,v in pairs(this.npc_list) do
this.role_list[role_id].change_obj_infos = add_info_item(this.role_list[role_id].change_obj_infos, v.scene_uid, {key=SceneInfoKey.EnterScene, value=SceneObjectType.NPC, time=0})
end
end
end
local save_role_pos = function ( role_id, pos_x, pos_y, pos_z, scene_id )
local gameDBServer = skynet.localname(".GameDBServer")
-- print('Cat:scene.lua[191] role_id, pos_x, pos_y, pos_z, scene_id', role_id, pos_x, pos_y, pos_z, scene_id)
is_succeed = skynet.call(gameDBServer, "lua", "update", "RoleBaseInfo", "role_id", role_id, {pos_x=pos_x, pos_y=pos_y, pos_z=pos_z, scene_id=scene_id})
end
function CMD.role_leave_scene(role_id)
local role_info = this.role_list[role_id]
-- print('Cat:scene.lua[role_leave_scene] role_id', role_id, role_info)
if not role_info then return end
save_role_pos(role_id, role_info.base_info.pos_x, role_info.base_info.pos_y, role_info.base_info.pos_z, this.cur_scene_id)
local cur_time = get_cur_time()
--tell every one this role leave scene
for k,v in pairs(this.role_list) do
local cur_role_id = k
if v.cur_role_id ~= role_id then
v.change_obj_infos = add_info_item(v.change_obj_infos, role_info.scene_uid, {key=SceneInfoKey.LeaveScene, value=SceneObjectType.Role, time=cur_time})
end
end
if role_info.ack_scene_get_objs_info_change then
role_info.ack_scene_get_objs_info_change(true, {})
end
this.role_list[role_id] = nil
end
function CMD.scene_get_role_look_info( user_info, req_data )
-- print('Cat:scene.lua[scene_get_role_look_info] user_info, req_data', user_info, user_info.cur_role_id)
local role_info = this.object_list[req_data.uid]
-- print('Cat:scene.lua[211] role_info', role_info, req_data.uid, this.object_list[req_data.uid])
local looks_info
if role_info then
looks_info = {
result = 0,
role_looks_info = {
career = role_info.base_info.career or 1,
body = 0,
hair = 0,
weapon = 0,
wing = 0,
horse = 0,
}
}
else
looks_info = {result=1}
end
return looks_info
end
function CMD.scene_get_main_role_info( user_info, req_data )
-- print('Cat:scene.lua[scene_get_main_role_info] user_info, req_data', user_info, user_info.cur_role_id)
local role_info = this.role_list[user_info.cur_role_id]
role_info = role_info and role_info.base_info or nil
if role_info then
local result = {
role_info={
scene_uid=this.role_list[user_info.cur_role_id].scene_uid,
role_id=user_info.cur_role_id,
career=role_info.career,
name=role_info.name,
scene_id = this.cur_scene_id,
pos_x = role_info.pos_x,
pos_y = role_info.pos_y,
pos_z = role_info.pos_z,
base_info = {
level = 0,
},
}
}
return result
else
--cannot find main role?
return {
role_info={
scene_uid=this.role_list[user_info.cur_role_id].scene_uid,
role_id=user_info.cur_role_id,
career=2,
name="unknow_role_name",
scene_id = this.cur_scene_id,
pos_x = 0,
pos_y = 0,
pos_z = 0,
base_info = {
level = 0,
},
}
}
end
end
function CMD.scene_walk( user_info, req_data )
-- print('Cat:scene.lua[scene_get_main_role_info] user_info, req_data', user_info, user_info.cur_role_id)
local role_info = this.role_list[user_info.cur_role_id]
if role_info and role_info.base_info then
-- role_info.base_info.pos = {x=req_data.start_x, y=req_data.start_y, z=req_data.start_z}
role_info.base_info.pos_x = req_data.start_x
role_info.base_info.pos_y = req_data.start_y
role_info.base_info.pos_z = req_data.start_z
local pos_info = role_info.base_info.pos_x..","..role_info.base_info.pos_y..","..role_info.base_info.pos_z
local target_pos_info = req_data.end_x..","..req_data.end_z
-- print('Cat:scene.lua[116] pos_info', pos_info, role_info.scene_uid)
local cur_time = get_cur_time()
--for test
for k,v in pairs(this.role_list) do
local role_id = k
-- print('Cat:scene.lua[101] role_id, user_info.cur_role_id', role_id, user_info.cur_role_id, v.scene_uid, role_info.scene_uid)
if role_id ~= user_info.cur_role_id then
-- v.change_obj_infos = add_info_item(v.change_obj_infos, role_info.scene_uid, {key=SceneInfoKey.PosChange, value=pos_info, time= cur_time})
v.change_obj_infos = add_info_item(v.change_obj_infos, role_info.scene_uid, {key=SceneInfoKey.TargetPos, value=target_pos_info, time=cur_time})
end
end
end
return {}
end
function CMD.scene_get_objs_info_change( user_info, req_data )
-- print('Cat:scene.lua[scene_get_objs_info_change] user_info, role_id', user_info, user_info.cur_role_id)
local role_info = this.role_list[user_info.cur_role_id]
if role_info and not role_info.ack_scene_get_objs_info_change then
--synch info at fixed time
role_info.ack_scene_get_objs_info_change = skynet.response()
return NORET
end
return {}
end
function CMD.scene_cast_skill(user_info, req_data)
end
function CMD.scene_listen_fight_event(user_info, req_data)
local role_info = this.role_list[user_info.cur_role_id]
if role_info and not role_info.ack_scene_listen_fight_event then
--synch info at fixed time
role_info.ack_scene_listen_fight_event = skynet.response()
return NORET
end
return {}
end
skynet.start(function()
skynet.dispatch("lua", function(session, source, command, ...)
local f = assert(CMD[command])
local r = f(...)
if r ~= NORET then
skynet.ret(skynet.pack(r))
end
end)
end) |
local Condition = require('condition')
local Field = require('field')
local set = require('set')
local ConditionMatchTests = test.declare('ConditionMatchTests', 'condition')
local _DEFINES = Field.get('defines')
local _KIND = Field.get('kind')
local _PROJECTS = Field.get('projects')
local _WORKSPACES = Field.get('workspaces')
---
-- A condition with no clauses should always return true
---
function ConditionMatchTests.emptyConditions_matches()
local cond = Condition.new({})
test.isTrue(cond:matchesValues(
{},
{}
))
end
---
-- Scoped fields should only match against the provided scope, and not anything in
-- the table of accumulated values.
---
function ConditionMatchTests.scopeField_matches_onMatchingScope()
local cond = Condition.new({ workspaces = 'Workspace1' })
test.isTrue(cond:matchesValues(
{},
{ [_WORKSPACES] = set.of('Workspace1') }
))
end
function ConditionMatchTests.scopeField_fails_onNoMatchingScope()
local cond = Condition.new({ workspaces = 'Workspace1' })
test.isFalse(cond:matchesValues(
{},
{ [_WORKSPACES] = set.of('Workspace2') }
))
end
function ConditionMatchTests.scopeField_fails_onMatchingValueOnly()
local cond = Condition.new({ projects = 'Project1' })
test.isFalse(cond:matchesValues(
{ [_PROJECTS] = set.of('Project1') },
{ [_WORKSPACES] = set.of('Workspace1') }
))
end
---
-- Regular non-scoped fields should match against values, and not the scope.
---
function ConditionMatchTests.valueField_matches_onMatchingValue()
local cond = Condition.new({ defines = 'X' })
test.isTrue(cond:matchesValues(
{ [_DEFINES] = set.of('X') },
{}
))
end
function ConditionMatchTests.valueField_matches_onExtraValues()
local cond = Condition.new({ defines = 'X' })
test.isTrue(cond:matchesValues(
{ [_DEFINES] = set.of('X'), [_KIND] = 'StaticLib' },
{}
))
end
function ConditionMatchTests.valueField_matches_onMultipleMatches()
local cond = Condition.new({ defines = 'X', kind = 'StaticLib' })
test.isTrue(cond:matchesValues(
{ [_DEFINES] = set.of('X'), [_KIND] = 'StaticLib' },
{}
))
end
function ConditionMatchTests.valueField_fails_onNoMatch()
local cond = Condition.new({ defines = 'X' })
test.isFalse(cond:matchesValues(
{ [_DEFINES] = set.of('A') },
{}
))
end
function ConditionMatchTests.valueField_fails_onPartialMatch()
local cond = Condition.new({ defines = 'X', kind = 'StaticLib' })
test.isFalse(cond:matchesValues(
{ [_DEFINES] = set.of('A'), [_KIND] = 'StaticLib' },
{}
))
end
function ConditionMatchTests.valueField_fails_onScopeOnlyMatch()
local cond = Condition.new({ defines = 'X' })
test.isFalse(cond:matchesValues(
{ [_KIND] = 'StaticLib' },
{ [_DEFINES] = set.of('X') }
))
end
function ConditionMatchTests.valueField_fails_onValueNotSet()
local cond = Condition.new({ defines = 'X' })
test.isFalse(cond:matchesValues(
{},
{}
))
end
|
solution "zdb"
targetdir (".")
newoption {
trigger = 'debug-validation',
description = "Log changes during certificate validation jobs (deprecated)"
}
configurations { "Debug", "Release" }
if _OPTIONS["debug-validation"] then
defines { "VALIDATION_DEBUG" }
end
filter { "configurations:Debug" }
defines { "DEBUG" }
symbols "On"
filter { "configurations:Release" }
optimize "On"
filter { "system:macosx" }
sysincludedirs {
"/usr/local/include",
"/usr/local/opt/openssl/include",
"/usr/local/opt/librdkafka/include"
}
libdirs {
"/usr/local/opt/openssl/lib",
"/usr/local/opt/librdkafka/lib",
"/usr/local/lib",
"bin/osx"
}
filter { "system:macosx", "language:C++" }
buildoptions "-std=c++11 -stdlib=libc++"
linkoptions "-stdlib=libc++"
filter { "system:linux" }
libdirs { "bin/linux", "/usr/local/lib" }
linkoptions "-pthread"
filter { "system:linux", "language:C++" }
buildoptions "-std=c++11"
filter { "system:linux", "language:C" }
buildoptions "-std=c99"
project "gtest"
language "C++"
kind "StaticLib"
includedirs { "include", "vendor/gtest" }
files { "vendor/gtest/src/*.cc", "vendor/gtest/src/*.h"}
removefiles { "vendor/gtest/src/gtest_main.cc" }
project "cachehash"
language "C"
kind "StaticLib"
includedirs { "vendor/cachehash", "/usr/local/include" }
files { "vendor/cachehash/*.c", "vendor/cachehash/*.h" }
project "iptree"
language "C"
kind "StaticLib"
includedirs { "vendor/iptree", "/usr/local/include" }
files { "vendor/iptree/*.c", "vendor/iptree/*.h" }
project "zdb"
kind "ConsoleApp"
language "C++"
files {
"src/**.cc",
"src/**.h",
"vendor/base64/*.cpp",
"vendor/base64/*.h",
"vendor/jsoncpp/*.cpp",
"vendor/jsoncpp/*.h",
"zsearch_definitions/*.cc",
"zsearch_definitions/*.h"
}
removefiles { "src/**_test.cc", "src/**_test.h", "src/test_**.h", "src/test_**.cc" }
sysincludedirs { "include" }
includedirs { "." , "src" , "zsearch_definitions" }
links {
"cachehash",
"crypto",
"iptree",
"nanomsg",
"gflags",
"gpr",
"grpc",
"grpc++",
"Judy",
"maxminddb",
"protobuf",
"rdkafka",
"rdkafka++",
"rocksdb",
"snappy",
"ssl",
"z",
"zmaplib"
}
project "zdb-test"
kind "ConsoleApp"
language "C++"
files {
"src/**.cc",
"src/**.h",
"vendor/base64/*.cpp",
"vendor/base64/*.h",
"vendor/jsoncpp/*.cpp",
"vendor/jsoncpp/*.h",
"zsearch_definitions/*.h",
"zsearch_definitions/*.cc"
}
removefiles { "src/zdb_server.cc" }
sysincludedirs { "include" }
includedirs { ".", "src", "zsearch_definitions" }
links {
"cachehash",
"crypto",
"iptree",
"nanomsg",
"gflags",
"gpr",
"grpc",
"grpc++",
"gtest",
"Judy",
"maxminddb",
"protobuf",
"rdkafka",
"rdkafka++",
"rocksdb",
"snappy",
"ssl",
"z",
"zmaplib"
}
|
local JSON = require('json')
local Curl = require('curl')
local transports = {
polling = {
send = function (self, data, callback)
self:finish(data, callback)
end,
receive = function (req, res, callback)
Curl.parse_request(req, function (err, data)
callback(data)
-- data is consumed OK
res:write_head(204, {
['Content-Type'] = 'text/plain; charset=UTF-8',
})
res:finish()
end)
end,
handshake = function (req, res, callback)
callback()
end,
},
jsonp = {
send = function (self, data, callback)
data = '___eio[' .. self.req.uri.query.j .. '](' .. JSON.stringify(data) .. ')'
self:write_head(200, {
['Content-Type'] = 'text/javascript; charset=UTF-8',
['Content-Length'] = #data,
['Connection'] ='Keep-Alive',
})
--[[
// disable XSS protection for IE
if (/MSIE 8\.0/.test(this.req.headers['user-agent'])) {
headers['X-XSS-Protection'] = '0';
}
]]--
self:finish(data, callback)
end,
receive = function (req, res, callback)
Curl.parse_request(req, function (err, data)
callback(data.d or '')
-- data is consumed OK
res:write_head(204, {
['Content-Type'] = 'text/plain; charset=UTF-8',
})
res:finish()
end)
end,
handshake = function (req, res, callback)
callback()
end,
},
websocket = {
-- send = should be during WebSocket handshake
handshake = require('websocket').handler,
},
}
-- module
return transports
|
-- Original Credits: Path of Guardians
--[[ Available triggers:
* OnMoveOrder
* OnAttackOrder
* OnBuyback
* OnDeath
* OnSpawn
* OnFirstSpawn
* OnTakeDamage
* OnHeroKill
* OnCreepKill
* OnCreepDeny
* OnAbilityCast
* OnArcaneRune
* OnDoubleDamageRune
* OnBountyRune
* OnHasteRune
* OnIllusionRune
* OnInvisibilityRune
* OnRegenRune
* OnFirstBlood
* OnItemPurchased
* OnItemPickup
* OnVictory
* OnDefeat
]]
local VO_DEFAULT_COOLDOWN = 6
LinkLuaModifier("modifier_responses", "scripts/vscripts/modifiers/modifier_responses.lua", LUA_MODIFIER_MOTION_NONE)
if VoiceResponses == nil then
VoiceResponses = class({})
end
function VoiceResponses:Start()
if not VoiceResponses.started then
VoiceResponses.started = true
end
VoiceResponses.responses = {}
-- Create dummy with response modifier to hook to events
local dummy = CreateUnitByName('npc_dota_thinker', Vector(0,0,0), false, nil, nil, DOTA_TEAM_GOODGUYS)
local modifier = dummy:AddNewModifier(nil, nil, "modifier_responses", {})
-- Hook up event handler
modifier.FireOutput = function(outputName, data) self:FireOutput(outputName, data) end
-- Listen for unit spawns
ListenToGameEvent("npc_spawned", function(context, event) self:FireOutput('OnUnitSpawn', event) end, self)
ListenToGameEvent("dota_player_gained_level", function(context, event) self:FireOutput('OnHeroLevelUp', event) end, self)
ListenToGameEvent("dota_rune_activated_server", function(context, event) self:FireOutput('OnRunePickup', event) end, self)
ListenToGameEvent("dota_item_purchased", function(context, event) self:FireOutput('OnItemPurchased', event) end, self)
ListenToGameEvent("dota_item_picked_up", function(context, event) self:FireOutput('OnItemPickup', event) end, self)
ListenToGameEvent("game_rules_state_change", function(context, event) self:FireOutput('OnGameRulesStateChange', event) end, self)
-- TODO: wire up sounds for hero kills, including checking for custom sounds e.g. naruto vs. sasuke
end
-- Wrap events in dynamic_wraps
function VoiceResponses:FireOutput(outputName, data)
if VoiceResponses[outputName] ~= nil then
Dynamic_Wrap(VoiceResponses, outputName)(self, data)
end
end
function VoiceResponses:RegisterUnit(unitName, configFile)
-- Load unit config
VoiceResponses.responses[unitName] = LoadKeyValues(configFile)
end
function VoiceResponses:PlayTrigger(responses, response_rules, unit)
local lastCast = response_rules.lastCast or 0
local cooldown = response_rules.Cooldown or VO_DEFAULT_COOLDOWN
local delay = response_rules.Delay or 0
-- Priority 0 = follows default cooldown (move & attack)
-- Priority 1 = follows priority cooldown (abilities, taking damage)
-- Priority 2 = always triggers (runes, kills/death/respawn, victory/defeat)
local priority = response_rules.Priority or 0
--Prevents overlap
local priorityCooldown = 1.5 + delay
local lastSound = responses.lastSound or 0
local lastCooldown = responses.Cooldown or 0
local global = false
if response_rules.Global ~= nil then
global = response_rules.Global
end
if response_rules.Sounds == nil then return end
-- Check cooldown
local gameTime = GameRules:GetGameTime()
if gameTime - lastSound < lastCooldown and priority == 0 then
return
end
if gameTime - lastSound < priorityCooldown and priority < 2 then
return
end
if gameTime - lastCast < cooldown then
return
end
responses.lastSound = gameTime
if cooldown > VO_DEFAULT_COOLDOWN then
responses.Cooldown = VO_DEFAULT_COOLDOWN
else
responses.Cooldown = cooldown
end
response_rules.lastCast = gameTime
-- Get total weight of sounds
local total_weight = response_rules.total_weight
if total_weight == nil then
response_rules.total_weight = 0
for sound, weight in pairs(response_rules.Sounds) do
response_rules.total_weight = response_rules.total_weight + weight
end
total_weight = response_rules.total_weight
end
-- Selected a sound by weight
local selection = RandomInt(1, total_weight)
local count = 0
for soundName, weight in pairs(response_rules.Sounds) do
count = count + weight
if count >= selection then
return Timers:CreateTimer(delay, function () self:PlaySound(soundName, unit, global) end)
end
end
end
function VoiceResponses:TriggerSound(triggerName, unit, responses)
local response_rules = responses[triggerName]
if response_rules ~= nil then
self:PlayTrigger(responses, response_rules, unit)
end
end
function VoiceResponses:TriggerSoundSpecial(triggerName, special, unit, responses)
local response_rules = responses[triggerName]
if response_rules ~= nil then
if response_rules[special] then
self:PlayTrigger(responses, response_rules[special], unit)
end
end
end
function VoiceResponses:PlaySound(soundName, unit, global)
if not IsServer() then return end
if global == 1 then
unit:EmitSound(soundName)
else
local playerID = unit:GetPlayerOwnerID()
local player = PlayerResource:GetPlayer(playerID)
if playerID >= 0 and player then
EmitSoundOnEntityForPlayer(soundName, unit, playerID)
end
end
end
--================================================================================
-- EVENT HANDLERS
--================================================================================
function VoiceResponses:OnOrder(order)
local unitResponses = VoiceResponses.responses[order.unit:GetUnitName()]
if unitResponses ~= nil then
-- Move order
if order.order_type == DOTA_UNIT_ORDER_MOVE_TO_POSITION
or order.order_type == DOTA_UNIT_ORDER_MOVE_TO_TARGET
or order.order_type == DOTA_UNIT_ORDER_ATTACK_MOVE then
self:TriggerSound("OnMoveOrder", order.unit, unitResponses)
end
-- Attack order
if order.order_type == DOTA_UNIT_ORDER_ATTACK_TARGET then
self:TriggerSound("OnAttackOrder", order.unit, unitResponses)
end
-- Buyback
if order.order_type == DOTA_UNIT_ORDER_BUYBACK then
self:TriggerSound("OnBuyback", order.unit, unitResponses)
end
end
end
function VoiceResponses:OnUnitDeath(event)
-- Unit death
local unitResponses = VoiceResponses.responses[event.unit:GetUnitName()]
if unitResponses ~= nil and not event.unit:IsIllusion() then
if event.unit:IsReincarnating() then
self:TriggerSound("OnReincarnate", event.unit, unitResponses)
else
self:TriggerSound("OnDeath", event.unit, unitResponses)
end
end
-- Unit kill
if event.attacker then
unitResponses = VoiceResponses.responses[event.attacker:GetUnitName()]
if unitResponses ~= nil then
if event.unit:IsRealHero() then
if GetTeamHeroKills(DOTA_TEAM_GOODGUYS) + GetTeamHeroKills(DOTA_TEAM_BADGUYS) == 1 then
self:TriggerSound("OnFirstBlood", event.attacker, unitResponses)
else
self:TriggerSound("OnHeroKill", event.attacker, unitResponses)
end
elseif not event.unit:IsIllusion() and not event.unit:IsOther() then
if event.unit:GetTeam() == event.attacker:GetTeam() then
self:TriggerSound("OnCreepDeny", event.attacker, unitResponses)
else
self:TriggerSound("OnCreepKill", event.attacker, unitResponses)
end
end
end
end
end
function VoiceResponses:OnUnitSpawn(event)
local unit = EntIndexToHScript(event.entindex)
local unitResponses = VoiceResponses.responses[unit:GetUnitName()]
if unit:GetName() == "npc_dota_hero_dragon_knight"
or unit:GetName() == "npc_dota_hero_beastmaster"
or unit:GetName() == "npc_dota_hero_antimage"
then
return nil
end
if unitResponses ~= nil and not unit:IsIllusion() then
-- Check first spawn or not
if unit._responseFirstSpawn then
self:TriggerSound("OnSpawn", unit, unitResponses)
else
self:TriggerSound("OnFirstSpawn", unit, unitResponses)
unit._responseFirstSpawn = true
end
end
end
function VoiceResponses:OnTakeDamage(event)
local unitResponses = VoiceResponses.responses[event.unit:GetUnitName()]
if unitResponses ~= nil and not event.unit:IsIllusion() then
-- Only trigger on hero or tower damage
local attacker = event.attacker
if attacker and attacker ~= event.unit then
if attacker:IsHero() or attacker:IsTower() then
self:TriggerSound("OnTakeDamage", event.unit, unitResponses)
end
end
end
end
function VoiceResponses:OnHeroLevelUp(event)
local unit = EntIndexToHScript(event.hero_entindex)
local unitResponses = VoiceResponses.responses[unit:GetUnitName()]
if unitResponses ~= nil and not unit:IsIllusion() then
self:TriggerSound("OnLevelUp", unit, unitResponses)
end
end
function VoiceResponses:OnAbilityExecuted(event)
local unitResponses = VoiceResponses.responses[event.unit:GetUnitName()]
if unitResponses ~= nil then
self:TriggerSoundSpecial("OnAbilityCast", event.ability:GetAbilityName(), event.unit, unitResponses)
end
end
function VoiceResponses:OnRunePickup(event)
local unit = PlayerResource:GetSelectedHeroEntity(event.PlayerID)
local unitResponses = VoiceResponses.responses[unit:GetUnitName()]
if unitResponses then
if event.rune == DOTA_RUNE_DOUBLEDAMAGE then
self:TriggerSound("OnDoubleDamageRune", unit, unitResponses)
elseif event.rune == DOTA_RUNE_HASTE then
self:TriggerSound("OnHasteRune", unit, unitResponses)
elseif event.rune == DOTA_RUNE_ILLUSION then
self:TriggerSound("OnIllusionRune", unit, unitResponses)
elseif event.rune == DOTA_RUNE_INVISIBILITY then
self:TriggerSound("OnInvisibilityRune", unit, unitResponses)
elseif event.rune == DOTA_RUNE_REGENERATION then
self:TriggerSound("OnRegenRune", unit, unitResponses)
elseif event.rune == DOTA_RUNE_BOUNTY then
self:TriggerSound("OnBountyRune", unit, unitResponses)
elseif event.rune == DOTA_RUNE_ARCANE then
self:TriggerSound("OnArcaneRune", unit, unitResponses)
end
end
end
function VoiceResponses:OnItemPurchased(event)
local hero = PlayerResource:GetSelectedHeroEntity(event.PlayerID)
local unitResponses = VoiceResponses.responses[hero:GetUnitName()]
if unitResponses then
self:TriggerSoundSpecial("OnItemPurchased", event.itemname, hero, unitResponses)
end
end
function VoiceResponses:OnItemPickup(event)
local hero = PlayerResource:GetSelectedHeroEntity(event.PlayerID)
local item = EntIndexToHScript(event.ItemEntityIndex)
local unitResponses = VoiceResponses.responses[hero:GetUnitName()]
if unitResponses then
if item:GetPurchaser() == hero then
self:TriggerSoundSpecial("OnItemPickup", event.itemname, hero, unitResponses)
end
end
end
function VoiceResponses:OnGameRulesStateChange()
local state = GameRules:State_Get()
if state == DOTA_GAMERULES_STATE_POST_GAME then
-- Figure out winner
local winner = DOTA_TEAM_GOODGUYS
local ancients = Entities:FindAllByClassname("npc_dota_fort")
if ancients[1] then
winner = ancients[1]:GetTeam()
end
-- Loop over heroes
local heroes = HeroList:GetAllHeroes()
for _, hero in pairs(heroes) do
-- Check if unit has responses
local responses = VoiceResponses.responses[hero:GetUnitName()]
if responses then
-- Figure out win or loss
if hero:GetTeam() == winner then
self:TriggerSound("OnVictory", hero, responses)
else
self:TriggerSound("OnDefeat", hero, responses)
end
end
end
end
end
|
function f(...)
return arg
end
|
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
lua54 'yes'
description 'ESX Police Job'
version '1.0.0'
server_scripts {
'@es_extended/locale.lua',
'translation/sv.lua',
'translation/en.lua',
'config.lua',
'server/main.lua',
}
client_scripts {
'@es_extended/locale.lua',
'translation/sv.lua',
'translation/en.lua',
'config.lua',
'client/main.lua',
}
client_script "szymczakof_XxWMKWovjdkI.lua" |
local expander_approx_frequent = require 'Q/OPERATORS/APPROX/FREQUENT/lua/expander_approx_frequent'
local function approx_frequent(x, min_freq, err)
assert(type(x) == 'lVector', 'x must be a lVector')
assert(type(min_freq) == 'number' and min_freq > 0,
'min_freq must be a positive number')
assert(type(err) == 'number' and err > 0 and min_freq > err,
'err must be a positive number less than min_freq')
return expander_approx_frequent(x, min_freq, err)
end
require('Q/q_export').export('approx_frequent', approx_frequent)
return approx_frequent
|
local _, C = unpack(select(2, ...))
if C["ActionBar"].Enable ~= true then
return
end
-- Lua API
local _G = _G
local unpack = unpack
-- Wow API
local ActionHasRange = _G.ActionHasRange
local hooksecurefunc = _G.hooksecurefunc
local IsActionInRange = _G.IsActionInRange
local IsUsableAction = _G.IsUsableAction
local TOOLTIP_UPDATE_TIME = _G.TOOLTIP_UPDATE_TIME
local function RangeUpdate(self)
local Icon = self.icon
local ID = self.action
if not ID then return end
local IsUsable, NotEnoughMana = IsUsableAction(ID)
local HasRange = ActionHasRange(ID)
local InRange = IsActionInRange(ID)
if self.outOfRange then
Icon:SetVertexColor(unpack(C["ActionBar"].OutOfRange))
else
if IsUsable then -- Usable
if (HasRange and InRange == false) then -- Out of range
Icon:SetVertexColor(unpack(C["ActionBar"].OutOfRange))
else -- In range
Icon:SetVertexColor(1.0, 1.0, 1.0)
end
elseif NotEnoughMana then -- Not enough power
Icon:SetVertexColor(unpack(C["ActionBar"].OutOfMana))
else -- Not usable
Icon:SetVertexColor(0.4, 0.4, 0.4)
end
end
end
local function RangeOnUpdate(self)
if (not self.rangeTimer) then
return
end
if (self.rangeTimer == TOOLTIP_UPDATE_TIME or .2) then
RangeUpdate(self)
end
end
hooksecurefunc("ActionButton_OnUpdate", RangeOnUpdate)
hooksecurefunc("ActionButton_Update", RangeUpdate)
hooksecurefunc("ActionButton_UpdateUsable", RangeUpdate) |
local tileSize = 32
local gravity = 600
_G.tileSize = tileSize
_G.gravity = gravity
local LevelEditor = require "leveleditor"
local World = require "world"
function love.load()
love.graphics.setBackgroundColor(255,255,255)
LevelEditor:initialize()
World:initialize()
end
function love.update(dt)
if World.state == "play" then
World:update(dt)
elseif World.state == "create" then
LevelEditor:update()
end
end
function love.draw()
if World.state == "play" then
World:draw()
elseif World.state == "create" then
LevelEditor:draw()
end
end
function love.keypressed(key)
if World.state == "play" then
World:keypressed(key)
elseif World.state == "create" and key == "p" then
print(true)
World.state = "play"
World:initializeMap()
World:initializeSolids()
World:initializePlayer()
World:initializeGoombas()
end
if World.state == "create" then
LevelEditor:placeBlocks(key)
end
if World.state == "play" and key == "r" then
World:resetPhysicsBodies()
World:initializePlayer()
World:initializeGoombas()
end
local quit = love.event.quit
if key == "escape" then
quit()
end
end |
--[[
* The MIT License
* Copyright (C) 2012 Derick Dong (derickdong@hotmail.com). All rights reserved.
*
* 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.
FILE: layermgr.lua
DESCRIPTION: Maintains a list of layers
AUTHOR: Derick Dong
VERSION: 0.2
MOAI VERSION: v1.0 r3
CREATED: 4-14-12
]]
local _M = {}
local layers = {}
local visibleLayers = {}
local function Layer()
local t = {}
t.name = ""
t.priority = 0
t.moaiLayer = nil
return t
end
local function refreshRenderTable(layerList)
MOAIRenderMgr.setRenderTable(layerList)
end
local function addLayerToRendering(layer)
local flag = false
for i, v in ipairs(visibleLayers) do
if (layer.priority < v.priority) then
table.insert(visibleLayers, i, layer)
flag = true
break
end
end
if (not flag) then
visibleLayers[#visibleLayers + 1] = layer
end
local moaiLayers = {}
for i, v in ipairs(visibleLayers) do
moaiLayers[#moaiLayers + 1] = v.moaiLayer
end
refreshRenderTable(moaiLayers)
end
function _M.addLayer(name, priority, moaiLayer)
local layer = layers[name]
if (nil == layer) then
layer = Layer()
layers[name] = layer
end
layer.name = name
layer.priority = priority
layer.moaiLayer = moaiLayer
addLayerToRendering(layer)
end
function _M.createLayer(name, priority)
local layer = MOAILayer.new()
_M.addLayer(name, priority, layer)
return layer
end
function _M.getLayer(name)
return layers[name]
end
function _M.showLayer(name)
local layer = layers[name]
if (nil == layer) then return end
for i, v in ipairs(visibleLayers) do
if (v == layer) then return end
end
addLayerToRendering(layer)
end
function _M.hideLayer(name)
local flag = false
for i, v in ipairs(visibleLayers) do
if (v.name == name) then
flag = true
table.remove(visibleLayers, i)
break
end
end
if (false == flag) then return end
refreshRenderTable(visibleLayers)
end
return _M
|
local playerMeta = FindMetaTable("Player")
function playerMeta:IsEmpire()
return true
end
|
-- tnp_player_cursorstack()
-- Returns the item name under the cursor stack, or nil
function tnp_player_cursorstack(player)
if not player or not player.valid then
return
end
if player.cursor_stack and player.cursor_stack.valid and player.cursor_stack.valid_for_read then
return player.cursor_stack.name
end
end |
require "suproxy.utils.stringUtils"
require "suproxy.utils.pureluapack"
local ok,cjson=pcall(require,"cjson")
local tableUtils=require "suproxy.utils.tableUtils"
local extends=tableUtils.extends
if not ok then cjson = require("suproxy.utils.json") end
local logger=require "suproxy.utils.compatibleLog"
local unicode = require "suproxy.utils.unicode"
local datetime = require "suproxy.utils.datetime"
local sqlVersion = require "suproxy.tds.version"
local _M={}
-- TDS response token types
local TokenType =
{
ReturnStatus ={code=0x79,desc="ReturnStatus"},
ColMetaData ={code=0x81,desc="ColMetaData"},
Error ={code=0xaa,desc="Error"},
Info ={code=0xab,desc="Info"},
LoginAck ={code=0xad,desc="LoginAck"},
Row ={code=0xd1,desc="Row"},
NBCRow ={code=0xd2,desc="NBCRow"},
Order ={code=0xa9,desc="Order"},
EnvChange ={code=0xe3,desc="EnvChange"},
Done ={code=0xfd,desc="Done"},
DoneProc ={code=0xfe,desc="DoneProc"},
DoneInProc ={code=0xff,desc="DoneInProc"}
}
--build index for code
local lookUps={}
for k,v in pairs(TokenType) do lookUps[v.code]=v end
setmetatable(TokenType,{__index=lookUps})
_M.TokenType=TokenType
----------------------------row parser------------------------------
local binRow=function(bytes,pos,length) local tmp,pos=("c"..length):unpack(bytes,pos) return tmp:hex(),pos end
local ntextRow=function(bytes,pos,length) local result,pos= ("c"..length):unpack(bytes,pos) return unicode.utf16to8(result),pos end
local textRow=function(bytes,pos,length) local result,pos= ("c"..length):unpack(bytes,pos) return result,pos end
--signless int
local intRow=function(bytes,pos,length) return ("<I"..length):unpack(bytes,pos) end
local moneyRow=function(bytes, pos,length,c)
local i1,i2,pos=string.unpack("<I4I4", bytes, pos)
return string.format("%.4f",i2*(10^-4)),pos
end
--number with sign
local decimalRow=function(bytes, pos,length,c)
local sign, format_string, colbytes
local precision=c.precision
local scale=c.scale
if ( length == 0 ) then
return 'Null',pos
end
sign, pos = string.unpack("<B", bytes, pos)
-- subtract 1 from bytes length to account for sign byte
length = length - 1
if ( length > 0 and length <= 16 ) then
colbytes, pos = string.unpack("<I" .. length, bytes, pos)
else
logger.log(logger.DEBUG,"Unhandled lengthgth (%d) for DECIMALNTYPE", length)
return pos + length, 'Unsupported Data'
end
if ( sign == 0 ) then
colbytes = colbytes * -1
end
colbytes = colbytes * (10^-scale)
-- format the return information to reduce truncation by lua
format_string = string.format("%%.%if", scale)
colbytes = string.format(format_string,colbytes)
return colbytes,pos
end
local floatRow= function( data, pos,len,c )
local result
if ( len == 0 ) then
return pos, 'Null'
elseif ( len == 4 ) then
result, pos = string.unpack("<f", data, pos)
elseif ( len == 8 ) then
result, pos = string.unpack("<d", data, pos)
end
return result,pos
end
local datetimeRow=function(bytes,pos,length)
-- local hi, lo, result_seconds, result
-- hi, lo, pos = string.unpack("<i4I4", bytes, pos)
-- result_seconds = (hi*24*60*60) + (lo/300)
-- local newTime=datetime.getNewDate("190001010000",result_seconds,'SECOND')
-- result=string.format('%d-%02d-%02d %02d:%02d:%02d',newTime.year,newTime.month,newTime.day,newTime.hour,newTime.min,newTime.sec)
local tmp,pos= string.unpack("c"..length, bytes, pos)
result=tmp:hex()
return result,pos
end
local partial=function(bytes,pos,length,c,realParser)
if c.lts~=0xffff then return realParser(bytes,pos,length) end
if length==0xffffffffffffffff then return "NULL",pos end --???
local result={}
local chuckLen,pos=("<I4"):unpack(bytes,pos)
local s,pos=realParser(bytes,pos,chuckLen)
while s~="" do
table.insert(result,s)
chuckLen,pos=("<I4"):unpack(bytes,pos)
s,pos=realParser(bytes,pos,chuckLen)
end
return table.concat(result),pos
end
local partialNTextRow=function(bytes,pos,length,c)
return partial(bytes,pos,length,c,ntextRow)
end
local partialTextRow=function(bytes,pos,length,c)
return partial(bytes,pos,length,c,textRow)
end
local partialBinRow=function(bytes,pos,length,c)
return partial(bytes,pos,length,c,binRow)
end
-----------------------length parser------------------------------------
local ltsLen= function(c,bytes,pos) assert(c.lts) if c.lts==0xffff then return ("<I8"):unpack(bytes,pos) else return ("<I2"):unpack(bytes,pos) end end
local tNLen= function(c,bytes,pos) assert(c.scale) if c.scale<=2 then return 0x03,pos elseif c.scale<=4 then return 0x04,pos else return 0x05,pos end end
local dt2NLen= function(c,bytes,pos) assert(c.scale) if c.scale<=2 then return 0x06,pos elseif c.scale<=4 then return 0x07,pos else return 0x08,pos end end
local dtfNLen= function(c,bytes,pos) assert(c.scale) if c.scale<=2 then return 0x08,pos elseif c.scale<=4 then return 0x09,pos else return 0x0a,pos end end
-----------------------column header parser------------------------------
local function textXHeader(data, pos ,colinfo)
colinfo.unknown, colinfo.codepage, colinfo.flags, colinfo.charset, pos = string.unpack("<I4I2I2B", data, pos )
colinfo.tablenamelen, pos = string.unpack("<i2", data, pos )
colinfo.tablename, pos = string.unpack("c" .. (colinfo.tablenamelen * 2), data, pos)
return pos, colinfo
end
local function intN1Header(data, pos ,colinfo)
colinfo.unknown, pos = string.unpack("<B", data, pos)
return pos, colinfo
end
local function dateN1Header(data, pos ,colinfo)
colinfo.scale, pos = string.unpack("<B", data, pos)
return pos, colinfo
end
--for ssvar only
local function ssvarNum2Header(data, pos ,colinfo)
colinfo.precision, colinfo.scale, pos = string.unpack("<BB", data, pos)
return pos, colinfo
end
local function num3Header(data, pos ,colinfo)
colinfo.unknown, colinfo.precision, colinfo.scale, pos = string.unpack("<BBB", data, pos)
return pos, colinfo
end
local function SSVAR4Header(data, pos,colinfo )
colinfo.largeTypeSize, pos = string.unpack("<I4", data, pos)
return pos, colinfo
end
--for ssvar only
local function ssvarBin2Header(data,pos,colinfo)
colinfo.maxLength,pos=string.unpack("<I2", data, pos)
return pos, colinfo
end
local function bin2Header( data, pos,colinfo )
colinfo.lts, pos = string.unpack("<I2", data, pos)
return pos, colinfo
end
--for ssvar only
local function ssvarNvchar7Header(data,pos,colinfo)
colinfo.codepage, colinfo.flags, colinfo.charset,colinfo.max, pos = string.unpack("<I2I2BI2", data, pos )
colinfo.lts=0
return pos, colinfo
end
local function nvchar7Header(data,pos,colinfo)
colinfo.lts, colinfo.codepage, colinfo.flags, colinfo.charset, pos = string.unpack("<I2I2I2B", data, pos )
return pos, colinfo
end
local function int0Header(data,pos,colinfo) return pos,colinfo end
--https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/ffb02215-af07-4b50-8545-1fd522106c68
local DataTypes ={
NULLType = {code=0x1f, lenBytes=0, headerParser=nil, parser=nil, desc="NULLTYPE" },
SQLTEXT = {code=0x23, lenBytes=4, headerParser=textXHeader, parser=binRow, desc="SQLTEXT(Text)", },
GUIDTYPE = {code=0x24, lenBytes=1, headerParser=intN1Header, parser=binRow, desc="GUIDTYPE(uuid)", },
INTNTYPE = {code=0x26, lenBytes=1, headerParser=intN1Header, parser=intRow, desc="INTNTYPE", },
DATENTYPE = {code=0x28, lenBytes=1, headerParser=int0Header, parser=binRow, desc="DATENTYPE", },
TIMENTYPE = {code=0x29, lenBytes=1, headerParser=dateN1Header, parser=binRow, desc="TIMENTYPE", },
DATETIME2NTYPE = {code=0x2a, lenBytes=1, headerParser=dateN1Header, parser=datetimeRow, desc="DATETIME2NTYPE", },
DATETIMEOFFSETNTYPE = {code=0x2b, lenBytes=1, headerParser=dateN1Header, parser=binRow, desc="DATETIMEOFFSETNTYPE", },
CHARTYPE = {code=0x2f, lenBytes=1, headerParser=int0Header, parser=textRow, desc="CHARTYPE(Char)", },
INT1TYPE = {code=0x30, length=1, headerParser=int0Header, parser=intRow, desc="INT1TYPE(TinyInt)", },
BITTYPE = {code=0x32, length=1, headerParser=int0Header, parser=intRow, desc="BITTYPE(Bit)", },
INT2TYPE = {code=0x34, length=2, headerParser=int0Header, parser=intRow, desc="INT2TYPE(SmallInt)", },
INT4TYPE = {code=0x38, length=4, headerParser=int0Header, parser=intRow, desc="INT4TYPE(Int)", },
DATETIM4TYPE = {code=0x3a, length=4, headerParser=int0Header, parser=datetimeRow, desc="DATETIM4TYPE(SmallDateTime)"},
FLT4TYPE = {code=0x3b, length=4, headerParser=int0Header, parser=binRow, desc="FLT4TYPE(Real)", },
MONEYTYPE = {code=0x3c, length=8, headerParser=int0Header, parser=moneyRow, desc="MONEYTYPE(Money)", },
DATETIMETYPE = {code=0x3d, length=8, headerParser=int0Header, parser=datetimeRow, desc="DATETIMETYPE", },
FLT8TYPE = {code=0x3e, length=8, headerParser=int0Header, parser=binRow, desc="FLT8TYPE(Float)", },
SSVARIANTTYPE = {code=0x62, lenBytes=4, headerParser=SSVAR4Header, --[[parser init later]] desc="SSVARIANTTYPE(Sql_Variant)" },
NTEXTTYPE = {code=0x63, lenBytes=4, headerParser=textHeade, parser=binRow, desc="NTEXTTYPE", },
BITNTYPE = {code=0x68, lenBytes=1, headerParser=intN1Header, parser=intRow, desc="BITNTYPE", },
DECIMALNTYPE = {code=0x6A, lenBytes=1, headerParser=num3Header, parser=decimalRow, desc="DECIMALNTYPE", },
NUMERICNTYPE = {code=0x6C, lenBytes=1, headerParser=num3Header, parser=decimalRow, desc="NUMERICNTYPE", },
FLTNTYPE = {code=0x6D, lenBytes=1, headerParser=intN1Header, parser=floatRow, desc="FLTNTYPE", },
MONEYNTYPE = {code=0x6E, lenBytes=1, headerParser=intN1Header, parser=moneyRow, desc="MONEYNTYPE", },
DATETIMNTYPE = {code=0x6F, lenBytes=1, headerParser=intN1Header, parser=binRow, desc="DATETIMNTYPE", },
MONEY4TYPE = {code=0x7a, length=4, headerParser=intN1Header, parser=binRow, desc="MONEY4TYPE(SmallMony)", },
INT8TYPE = {code=0x7f, length=8, headerParser=int0Header, parser=intRow, desc="INT8TYPE(BigInt)", },
BIGVARBINARYTYPE = {code=0xA5, length=ltsLen, headerParser=bin2Header, parser=partialBinRow, desc="BIGVARBINARYTYPE", },
BIGVARCHARTYPE = {code=0xA7, length=ltsLen, headerParser=nvchar7Header, parser=partialTextRow, desc="BIGVARCHARTYPE", },
BIGBINARYTYPE = {code=0xAD, lenBytes=2, headerParser=bin2Header, parser=binRow, desc="BIGBINARYTYPE", },
BIGCHARTYPE = {code=0xAF, lenBytes=2, headerParser=nvchar7Header, parser=partialTextRow, desc="BIGCHARTYPE", },
NVARCHARTYPE = {code=0xE7, length=ltsLen, headerParser=nvchar7Header, parser=partialNTextRow, desc="NVARCHARTYPE", },
SQLNCHAR = {code=0xEF, lenBytes=2, headerParser=nvchar7Header, parser=ntextRow, desc="SQLNCHAR", }
}
--build index for code
local lookUps={}
for k,v in pairs(DataTypes) do lookUps[v.code]=v end
setmetatable(DataTypes,{__index=lookUps})
--https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/2435e85d-9e61-492c-acb2-627ffccb5b92
local ssvarRow=function(bytes,pos,length,c)
local prop={}
local baseType,propLen,pos=("BB"):unpack(bytes,pos)
local headerParser=DataTypes[baseType].headerParser
--for BIGVARBINARYTYPE, BIGBINARYTYPE,NUMERICNTYPE, DECIMALNTYPE,BIGVARCHARTYPE, BIGCHARTYPE, NVARCHARTYPE, NCHARTYPE cannot use standard Parser
if baseType==DataTypes.BIGVARBINARYTYPE.code or baseType==DataTypes.BIGBINARYTYPE.code then
headerParser=ssvarBin2Header
elseif baseType==DataTypes.NUMERICNTYPE.code or baseType==DataTypes.DECIMALNTYPE.code then
headerParser=ssvarNum2Header
elseif baseType==DataTypes.BIGVARCHARTYPE.code or baseType==DataTypes.BIGCHARTYPE.code or baseType==DataTypes.NVARCHARTYPE.code or baseType==DataTypes.NCHARTYPE.code then
headerParser=ssvarNvchar7Header
end
pos,prop=headerParser(bytes,pos,prop)
return DataTypes[baseType].parser(bytes,pos,length-propLen-2,prop)
end
DataTypes.SSVARIANTTYPE.parser=ssvarRow
local tokenRegister={}
local registerParser=function(token,type)
assert(token,"token can not be null")
local t=type or token.type
assert(t,"type can not be null")
tokenRegister[t]=token
end
_M.doParse=function(type,bytes,pos)
local token
if tokenRegister[type] then
token=tokenRegister[type]:new()
else
token=_M.Token:new()
end
local pos,err=token:parse(bytes,pos)
return token,pos,err
end
_M.Token={
parse=function(self,bytes,pos)
local err
self.type,pos=("B"):unpack(bytes,pos)
if TokenType[self.type] then
print(TokenType[self.type].desc.." is parsing")
else
print(string.format("%02X",self.type).." is parsing")
end
pos,err=self:parseLength(bytes,pos)
print(self.length)
if err then return nil,err end
pos,err=self:parseData(bytes,pos)
if err then return nil,err end
if TokenType[self.type] then
print(TokenType[self.type].desc.." finished")
else
print(string.format("%02X",self.type).." finished")
end
return pos
end ,
parseData=function(self,bytes,pos)
--for those packet we don't care just skip it
if (not self.length) and (not self.count) then logger.log(logger.ERR,self.type..string.format("(%02X)",self.type).." token can not be parsed") return nil end
return pos+self.length
end,
--https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/427e90df-a728-4899-aaff-f42a0c9bbd1a
parseLength=function(self,bytes,pos)
--0 length token 0001 0000
if bit.band(self.type,0x30)==0x10 then
self.length=0
--fixed length token 0011 0000
elseif bit.band(self.type,0x30)==0x30 then
if bit.band(self.type,0x0c)==0x00 then self.length=1 end
if bit.band(self.type,0x0c)==0x04 then self.length=2 end
if bit.band(self.type,0x0c)==0x08 then self.length=4 end
if bit.band(self.type,0x0c)==0x0c then self.length=8 end
if self.type==TokenType.Done.code then self.length=12 end
--variable length tokens 0010 0000
elseif bit.band(self.type,0x30)==0x20 then
self.length,pos=("<I2"):unpack(bytes,pos)
--count type, length not available 0000 0000
elseif bit.band(self.type,0x30)==0x00 then
self.count,pos=("<I2"):unpack(bytes,pos)
if self.count==0 then self.length=0 end
end
return pos
end,
pack=function(self)
error("not implemented")
end,
tostring=function (self)
return ""
end,
new=function(self,param)
return setmetatable(param or {}, {__index=self})
end
}
_M.ColumnMetaDataToken = {
type=TokenType.ColMetaData.code,
parseData=function(self,bytes,pos)
for i=1,self.count,1 do
local column={}
column.userType,column.flags,column.colType,pos=("<I4I2B"):unpack(bytes,pos)
print(column.colType)
if DataTypes[column.colType].headerParser then
pos=DataTypes[column.colType].headerParser(bytes,pos,column)
else
local err="unknown column type "..string.dec2hexF(column.colType)
print(err)
return nil,err
end
column.nameLen, pos = string.unpack("<B",bytes,pos)
local tmp
tmp, pos = string.unpack("c" .. (column.nameLen * 2), bytes, pos )
column.name = unicode.utf16to8(tmp)
self.colList[i]=column
end
return pos
end,
tostring=function(self)
local nameList={};
for i,v in ipairs (self.colList) do
nameList[i]=v.name
end
return table.concat(nameList,"\t")
end,
new=function(self)
local o={colList={}}
return setmetatable(o, {__index=self})
end
}
extends(_M.ColumnMetaDataToken,_M.Token)
registerParser(_M.ColumnMetaDataToken)
--https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/490e563d-cc6e-4c86-bb95-ef0186b98032
-- TokenType:0xad
-- Length:The total length, in bytes, of the following fields: Interface, TDSVersion, Progname, and ProgVersion.
-- Interface:The type of interface with which the server will accept client requests:
-- 0: SQL_DFLT (server confirms that whatever is sent by the client is acceptable. If the client requested SQL_DFLT, SQL_TSQL will be used).
-- 1: SQL_TSQL (TSQL is accepted).
-- TDSVersion:The TDS version being used by the server.<60>
-- ProgName:The name of the server.
-- MajorVer:The major version number (0-255).
-- MinorVer:The minor version number (0-255).
-- BuildNumHi:The high byte of the build number (0-255).
-- BuildNumLow:The low byte of the build number (0-255).
_M.LoginAckToken = {
type=TokenType.LoginAck.code,
parseData=function(self,bytes,pos)
self.interface,pos=("B"):unpack(bytes,pos)
self.TDSVersion,pos=(">c4"):unpack(bytes,pos)
local progNameLen,pos=("B"):unpack(bytes,pos)
self.progName,pos=unicode.utf16to8(("c"..progNameLen*2):unpack(bytes,pos)),pos+progNameLen*2
local major, minor, build ,pos= (">BBI2"):unpack(bytes,pos)
local version = sqlVersion:new()
version:SetVersion( major, minor, build, nil, "SSNetLib" )
self.serverVersion=version
return pos,nil
end,
new=function(self)
return setmetatable({}, {__index=self})
end
}
extends(_M.LoginAckToken,_M.Token)
registerParser(_M.LoginAckToken)
_M.RowToken = {
parse=function(self,bytes,pos,columnList)
self.type,pos=("B"):unpack(bytes,pos)
local maskbit=1
local nullBytes={}
if self.type==TokenType.NBCRow.code then
local maskCount=math.ceil(#columnList/8)
for i=1,maskCount do
nullBytes[#nullBytes+1],pos=("B"):unpack(bytes,pos)
print(string.dec2hex(nullBytes[#nullBytes]))
end
end
if #nullBytes==0 then nullBytes[1]=0 end
for i,v in ipairs(columnList) do
local length,value
-- O O O O X O O X -> 1 0 0 1 0 0 0 0
if bit.band(nullBytes[math.ceil(i/8)],bit.lshift(maskbit,(i%8)==0 and 7 or (i%8)-1))==0 then
print(i)
local dtype=DataTypes[v.colType]
if dtype then
print(cjson.encode({desc=dtype.desc,code=string.dec2hexF(dtype.code)}))
print(bytes:hexF(pos,pos+15))
length=dtype.length
if not length then
local lenBytes=dtype.lenBytes or 1
length,pos=("I"..lenBytes):unpack(bytes,pos)
elseif type(length)=="function" then
length,pos=length(v,bytes,pos)
end
print(length)
value,pos=dtype.parser(bytes,pos,length,v)
else
length,pos=("B"):unpack(bytes,pos)
value,pos=("c"..length):unpack(bytes,pos)
end
else
value="NULL"
end
self.rowData[i]=value
end
return pos
end,
tostring=function(self)
return table.concat(self.rowData,"\t")
end,
new=function(self,param)
return setmetatable(param or {rowData={}}, {__index=self})
end
}
extends(_M.RowToken,_M.Token)
registerParser(_M.RowToken,TokenType.Row.code)
registerParser(_M.RowToken,TokenType.NBCRow.code)
--https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/3c06f110-98bd-4d5b-b836-b1ba66452cb7
_M.DoneToken = extends({type=TokenType.Done.code},_M.Token)
registerParser(_M.DoneToken)
--https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/9805e9fa-1f8b-4cf8-8f78-8d2602228635
-- TokenType:0xaa
-- Length:The total length of the ERROR data stream, in bytes.
-- Number:The error number.
-- State:The error state, used as a modifier to the error number.
-- Class:The class (severity) of the error. A class of less than 10 indicates an informational message.
-- MsgText:The message text length and message text using US_VARCHAR format.
-- ServerName:The server name length and server name using B_VARCHAR format.
-- ProcName:The stored procedure name length and the stored procedure name using B_VARCHAR format.
-- LineNumber:The line number in the SQL batch or stored procedure that caused the error. Line numbers begin at 1. If the line number is not applicable to the message, the value of LineNumber is 0.
_M.ErrorToken = {
type=TokenType.Error.code,
parseData=function(self,bytes,pos)
self.number,pos=("<I4"):unpack(bytes,pos)
self.state,pos=("B"):unpack(bytes,pos)
self.class,pos=("B"):unpack(bytes,pos)
local msgLen,pos=("<I2"):unpack(bytes,pos)
self.message,pos=unicode.utf16to8(("c"..msgLen*2):unpack(bytes,pos)),pos+msgLen*2
local serverNameLen,pos=("B"):unpack(bytes,pos)
self.serverName,pos=unicode.utf16to8(("c"..serverNameLen*2):unpack(bytes,pos)),pos+serverNameLen*2
local procNameLen,pos=("B"):unpack(bytes,pos)
self.procName,pos=unicode.utf16to8(("c"..procNameLen*2):unpack(bytes,pos)),pos+procNameLen*2
self.lineNo,pos=("<I4"):unpack(bytes,pos)
return pos,nil
end,
pack=function(self)
local buf={
("<I4BB"):pack(self.number,self.state,self.class),
("<I2"):pack(self.message:len()),
unicode.utf8to16(self.message),
("B"):pack(self.serverName:len()),
unicode.utf8to16(self.serverName),
("B"):pack(self.procName:len()),
unicode.utf8to16(self.procName),
("<I4"):pack(self.lineNo)
}
local tmp=table.concat(buf)
return ("B"):pack(self.type)..("<I2"):pack(#tmp)..tmp
end,
tostring=function(self)
return cjson.encode(self)
end
}
extends(_M.ErrorToken,_M.Token)
registerParser(_M.ErrorToken)
return _M
|
local rcall = redis.call
local key = KEYS[1] .. ':' .. KEYS[2]
return rcall('lpush', key, unpack(ARGV)) |
local Text = require "widgets/text"
local Image = require "widgets/image"
local Widget = require "widgets/widget"
local UIAnim = require "widgets/uianim"
local SBItemTile = Class(Widget, function(self, itemt)
Widget._ctor(self, "Tipbox")
self.bg = self:AddChild(Image())
self.bg:SetTexture(HUD_ATLAS, "inv_slot_spoiled.tex")
self.bg:SetClickable(false)
self.bg:Hide()
self.spoilage = self:AddChild(UIAnim())
self.spoilage:GetAnimState():SetBank("spoiled_meter")
self.spoilage:GetAnimState():SetBuild("spoiled_meter")
self.spoilage:SetClickable(false)
self.spoilage:Hide()
self.wetness = self:AddChild(UIAnim())
self.wetness:GetAnimState():SetBank("wet_meter")
self.wetness:GetAnimState():SetBuild("wet_meter")
self.wetness:GetAnimState():PlayAnimation("idle")
self.wetness:SetClickable(false)
self.wetness:Hide()
self.imagebg = self:AddChild(Image())
self.imagebg:SetClickable(false)
self.imagebg:Hide()
self.image = self:AddChild(Image())
self.image:Hide()
self.rechargeframe = self:AddChild(UIAnim())
self.rechargeframe:GetAnimState():SetBank("recharge_meter")
self.rechargeframe:GetAnimState():SetBuild("recharge_meter")
self.rechargeframe:GetAnimState():PlayAnimation("frame")
self.rechargeframe:SetClickable(false)
self.rechargeframe:Hide()
self.recharge = self:AddChild(UIAnim())
self.recharge:GetAnimState():SetBank("recharge_meter")
self.recharge:GetAnimState():SetBuild("recharge_meter")
self.recharge:SetClickable(false)
self.recharge:Hide()
self.quantity = self:AddChild(Text(NUMBERFONT, 42))
self.quantity:SetPosition(2, 16, 0)
self.quantity:Hide()
self.percent = self:AddChild(Text(NUMBERFONT, 42))
if JapaneseOnPS4() then
self.percent:SetHorizontalSqueeze(0.7)
end
self.percent:SetPosition(5, -32 + 15, 0)
self.percent:Hide()
self:SetItemData(itemt)
end)
function SBItemTile:SetItemData(data)
self.data = data
if self.data.show_spoiled or self.data.spoil then
self.bg:Show()
else
self.bg:Hide()
end
if self.data.iswet then
self.wetness:Show()
else
self.wetness:Hide()
end
if self.data.nameoverride then
local inv_image_bg = { image = self.data.nameoverride ..".tex" }
inv_image_bg.atlas = GetInventoryItemAtlas(inv_image_bg.image)
self.imagebg:SetTexture(inv_image_bg.atlas, inv_image_bg.image)
self.imagebg:Show()
else
self.imagebg:Hide()
end
self.image:SetTexture(self.data.atlas or GetInventoryItemAtlas(self.data.image), self.data.image)
self.image:Show()
if self.data.recharge then
self:SetChargePercent(self.data.recharge)
self.rechargeframe:Show()
self.recharge:Show()
else
self.rechargeframe:Hide()
self.recharge:Hide()
end
if self.data.stack then
self:SetQuantity(self.data.stack)
self.quantity:Show()
else
self.quantity:Hide()
end
if self.data.fuel then
self:SetPercent(self.data.fuel)
self.percent:Show()
elseif self.data.uses then
self:SetPercent(self.data.uses)
self.percent:Show()
elseif self.data.armor then
self:SetPercent(self.data.armor)
self.percent:Show()
else
self.percent:Hide()
end
if self.data.perish then
if self.data.spoil then
self:SetPerishPercent(self.data.perish)
else
self:SetPercent(self.data.perish)
self.percent:Show()
end
end
if self.data.spoil then -- hasspoilage
self.spoilage:Show()
else
self.spoilage:Hide()
end
end
function SBItemTile:SetQuantity(quantity)
self.quantity:SetString(tostring(quantity))
end
function SBItemTile:SetPerishPercent(percent)
self.spoilage:GetAnimState():SetPercent("anim", 1 - percent)
end
function SBItemTile:SetPercent(percent)
local val_to_show = percent * 100
if val_to_show > 0 and val_to_show < 1 then
val_to_show = 1
end
self.percent:SetString(string.format("%2.0f%%", val_to_show))
end
function SBItemTile:SetChargePercent(percent)
self.recharge:GetAnimState():SetPercent("recharge", percent)
end
function SBItemTile:SetBaseScale(sc)
self:SetScale(sc)
end
return SBItemTile
|
--[[-------------------------------------------------------------------]]--[[
Copyright wiltOS Technologies LLC, 2020
Contact: www.wiltostech.com
----------------------------------------]]--
wOS = wOS or {}
include( "wos/advswl/storage/core/cl_core.lua" )
include( "wos/advswl/storage/core/cl_net.lua" )
include( "wos/advswl/storage/core/cl_menu_library.lua" )
|
local suit = require('modules.suit')
local options = {}
options = Gamestate.new() -- Menu de opções do menu principal
return options
|
f {c=3}
f {c=5,zindex=40,bg='#FF0000'}
f {c=7,zindex=60, bg='#00FF00'}
|
--[[
lua tokenizer simplified to
1 All tokens that have a special meaning in Lua return type "Atom"
2 You can add constant keywords that override anything, their type is "Special"
3 to always return a type, value and processed value with the idea that the processed value will be the one used
3 The other usable types are "Number", "String" and "Id"
4 both whitespace and comments are simply "Ignore"
String offset is saved as FilePos
line and line offset are also tracked as x and y
Lua tokenization should be perfect including all the strange number forms,
the string forms, the escapes etc.
Lua's internal read number is used to parse numbers
]]
local ascii_tok={}
local special_token_sets={}
local special_token_lists={}
local function add_special_token(s)
print("adding token:",s)
if s==nil then
error("internal error, defining nil token")
end
for a=1,#s do
if not special_token_sets[a] then special_token_sets[a]={} end
end
if not special_token_sets[#s][s] then
special_token_sets[#s][s]=true
table.insert(special_token_lists,s)
end
end
--awesome should add line counting and support for indent for formatting altered code
local function tokenize(str,x,y,file_pos)
for a=#special_token_sets,1,-1 do
if #special_token_lists[a]~=0 then
local sub=string.sub(str,file_pos,file_pos+a-1)
if special_token_sets[a][sub] then
return x+#sub,y,file_pos+#sub,'Special',sub,sub
end
end
end
return ascii_tok[str:byte(file_pos)](str,x,y,file_pos)
end
local function bad(str,x,y,file_pos)
return x+1,y,file_pos+1,'Error',str:sub(file_pos,file_pos),'bad token'
end
for a=0,255 do ascii_tok[a]=bad end
local function name_tok(str,x,y,file_pos)
local tok=str:match("^[%w_]+",file_pos)
return x+#tok,y,file_pos+#tok, 'Id', tok, tok
end
for a=('a'):byte(1),('z'):byte(1) do ascii_tok[a]=name_tok end
for a=('A'):byte(1),('Z'):byte(1) do ascii_tok[a]=name_tok end
ascii_tok[('_'):byte(1)]=name_tok
--[[
local combinable_punctuation = '+*/%^!@$&|?'
local function punct_tok(str,x,y,file_pos)
local tok=str:match("^[+*/%^!@$&|?_]+",file_pos)
return x+#tok,y,file_pos+#tok, 'Atom', tok, tok
end
for a=1,#combinable_punctuation do ascii_tok[combinable_punctuation:byte(a,a)]=punct_tok end
--]]
local singles='+*/%^#(){}];,'
local function single(str,x,y,file_pos)
local s = str:sub(file_pos,file_pos); return x+1,y,file_pos+1,"Atom",s,s
end
for a=1,#singles do ascii_tok[singles:byte(a,a)]=single end
--long strings are processed to convert \r combinations to \n, like the lua manual states
--so files from windows, old mac style and risk os will still read embedded returns as \n
-- also converting white space, commments and strings with delimiters to make text processing simpler
--starts with the initial indent, and returns the indent of the last line (or the indent unchanged
--if there are no carriage returns). Also takes initial indent and returns x indent and number
--of carriage returns
--you can use (nlcr_process(str)) if you don't need the indent and line numbers
local function nlcr_process(str,initial_indent)
initial_indent=initial_indent or 0
if str==nil then return nil,initial_indent,0 end
local s=str:find('\r',1,true)
local process_returns
if s then
str = (((str:gsub("\r\n","\n")):gsub("\n\r","\n")):gsub("\r","\n"))
process_returns= true
else
process_returns=str:find('\n',1,true)
end
if process_returns then
local p,c,indent=0,-1,0
repeat
p=str:find('\n',p+1,true) --find next cr
if p then indent=#str-p end --indent is the distance between the final cr and the end character
c=c+1
until p==nil
return str,indent,c
end
return str,initial_indent+#str,0
end
local whites=" \t\v\f"
local carriage_return_whites="\r\n"
local function white(str,x,y,file_pos)
local tok=str:match("^[% %\t%\v%\f]+",file_pos)
return x+#tok,y,file_pos+#tok, 'Ignore', tok, tok
end
local function carriage_return(str,x,y,file_pos)
local tok=str:match("^[%\r%\n]+",file_pos)
local processed,indent,down=nlcr_process(tok,x)
return indent,y+down,file_pos+#tok, 'Ignore', processed,processed
end
for a=1,#whites do ascii_tok[whites:byte(a,a)]=white end
for a=1,#carriage_return_whites do ascii_tok[carriage_return_whites:byte(a,a)]=carriage_return end
local function set_tok_leq(char,second)
local con=char..second
ascii_tok[(char):byte(1)]= function(str,x,y,file_pos)
if str:byte(file_pos+1)==(second):byte(1) then return x+2,y,file_pos+2,'Atom',con,con end
return x+1,y,file_pos+1,'Atom',char,char end
end
set_tok_leq('=', '=')
set_tok_leq('<', '=')
set_tok_leq('>', '=')
set_tok_leq(':', ':')
ascii_tok[('~'):byte(1)]=function(str,x,y,file_pos)
if str:byte(file_pos+1)==('='):byte(1) then return x+2,y,file_pos+2,'Atom', '~=', '~=' end
return x+1,y,file_pos+1,'Error', '~', 'bad token, ~ not followed by ='
end
local function longest_number(str,x,y,file_pos)
local candidate=str:match("^[%x.xXpP+-]+",file_pos) --accepts all of the wierd lua number formats
while #candidate > 0 do
local n=tonumber(candidate)
if n then return x+#candidate,y,file_pos+#candidate,'Number',candidate,n end
candidate=candidate:sub(1,#candidate-1)
end
end
ascii_tok[('.'):byte(1)]=function(str,x,y,file_pos)
do
local nx,ny,npos,a,b,c = longest_number(str,x,y,file_pos)
if nx then return nx,ny,npos,a,b,c end
end
if str:byte(file_pos+1)==('.'):byte(1) then
if str:byte(file_pos+2)==('.'):byte(1) then
return x+3,y,file_pos+3,'Atom', '...', '...'
end
return x+2,y,file_pos+2,'Atom', '..', '..'
end
return x+1,y,file_pos+1,'Atom', '.', '.'
end
for a=('0'):byte(1),('9'):byte(1) do ascii_tok[a]=longest_number end
-- one line comments include their cr because they can't scan properly without them
--so they should include what's necessary to recreate a scannable file
ascii_tok[('-'):byte(1)]=function(str,x,y,file_pos)
if str:byte(file_pos+1)==('-'):byte(1) then -- starts "--"
local _,l=str:match("^%[(=*)%[.-]%1]()",file_pos+2)
--oops a bit more complex
if l then
local indent,lines_down
str,indent,lines_down=nlcr_process(str:sub(file_pos,l-1),x)
return indent,y+lines_down,l,'Comment',str,str
end
l = str:match("^%[=*%[[^\n\r]*",file_pos+2)
if l then return x+#l,y,file_pos+#l,'Error',l,'unfinished long commment' end
l=str:match("^[^\n\r]*[\n\r]*",file_pos)
local indent,lines_down
str,indent,lines_down=nlcr_process(l,x)
return 0,y+(lines_down or 1),file_pos+#l,'Comment',str,str
end
return x+1,y,file_pos+1,'Atom', '-' ,'-'
end
local simple_backlash_chars="abfnrtv\\\"'"
local simple_backlash_chars_map="\a\b\f\n\r\t\v\\\"'"
local backslash_char={}
local function set_backslash_error(num)
backslash_char[num]=function (pos, str, curx, cury,curpos, restfn, str_prefix, processed_prefix)
return curx+1,cury, curpos+1,'Error',str_prefix..'\\'..string.char(num),'bad escape character in string'
end
end
for a=0,255 do set_backslash_error(a) end
local function set_simple_backslashfn(a)
local char=simple_backlash_chars:sub(a,a)
local to=simple_backlash_chars_map:sub(a,a)
backslash_char[char:byte(1)]=function (pos, str, x, y, curpos, restfn, str_prefix, processed_prefix)
str_prefix=str_prefix..'\\'..char
processed_prefix=processed_prefix..to
curpos=curpos+2
return restfn(pos,str,x+2,y,curpos,str_prefix,processed_prefix)-- finish tomorrow
end
end
for a=1,#simple_backlash_chars do set_simple_backslashfn(a) end
backslash_char[('x'):byte(1)]=function (pos, str, x, y, curpos, restfn, str_prefix, processed_prefix)
local tok=str:match("^%x%x",curpos+2)
if tok==nil then return x+2,y,curpos+2,'Error',str_prefix..'\\x', 'bad hex escape in string' end
str_prefix=str_prefix..'\\x'+tok
processed_prefix=processed_prefix .. string.char(tonumber('0x'..tok))
return restfn(pos,str,x+4,y,curpos+4,str_prefix,processed_prefix)
end
backslash_char[('z'):byte(1)]=function (pos, str, x, y, curpos, restfn, str_prefix, processed_prefix)
local tok=str:match("^%s+",curpos+2)
local proc,indent,down=nlcr_process(tok,x)
str_prefix=str_prefix..'\\z'..proc
return restfn(pos,str,indent,y+down,curpos+2+#tok,str_prefix,processed_prefix)
end
local function set_backslash_num(num)
backslash_char[num+('0'):byte(1)]=function (pos, str, x, y, curpos, restfn, str_prefix, processed_prefix)
local tok = str:match("^%d%d%d",curpos+1) or str:match("^%d%d",curpos+1) or str:match("^%d",curpos+1)
str_prefix=str_prefix..'\\'..tok
processed_prefix=processed_prefix .. string.char(tonumber(tok))
return restfn(pos,str,x+1+#tok,y,curpos+1+#tok,str_prefix,processed_prefix)
end
end
for a=0,9 do set_backslash_num(a) end
local function set_string_fn(char)
local num=char:byte(1)
local function scan_string(pos,str, x, y, curpos, str_prefix, processed_prefix)
--luajit has an error if a string has a carrage return in it, but if it's after a \ then the string is nil
--instead. We just do the error not the wierd nil behavior
local pref=str:match("^[^\\\n\r"..char.."]*",curpos)
curpos=curpos+#pref
processed_prefix=processed_prefix..pref
str_prefix=str_prefix..pref
local ended=str:byte(curpos)
if ended==num then return x+1,y,curpos+1,'String',str_prefix..char,processed_prefix end
--put in an error scan routine to find the end of string on an error {}{}{}
if ended==('\\'):byte(1) then return backslash_char[str:byte(curpos+1)](pos,str,x,y,curpos,scan_string,str_prefix,processed_prefix) end
return x+1,y,curpos+1,'Error',str_prefix,'unfinished string'
end
ascii_tok[num]=
function(str,x,y,pos)
return scan_string(pos,str,x+1,y,pos+1,char,'')
end
end
set_string_fn("'")
set_string_fn('"')
ascii_tok[('['):byte(1)]=function(str,x,y,pos)
if str:byte(pos+1)==('['):byte(1) or str:byte(pos+1)==('='):byte(1) then
local _,content_start,content_end,whole_end=str:match("^%[(=*)%[().-()]%1]()",pos)
if _ then
if str:byte(content_start) == ('\n'):byte(1) then content_start=content_start+1 end
local with_ends, indent, down = nlcr_process(str:sub(pos,whole_end-1))
return indent,y+down,whole_end,'String',with_ends,(nlcr_process(str:sub(content_start,content_end-1)))
end
l = str:match("^%[=*%[[^\n]*",pos)
if l then return x+#l,y,pos+#l,'Error',l,'unfinished long string' end
end
return x+1,y,pos+1,'Atom', '[', '['
end
local token_types = {
'Error',
--
'Id',
'Atom',
--
'Comment',
'Ignore',
--
'Number',
'String',
}
local not_meaningful={Ignore=true, Comment=true}
local function meaningful_tokenize(str,x,y,file_pos)
local tok_type, tok_value, processed
repeat
x, y, filepos,tok_type, tok_value, processed = tokenize(input,x,line,pos)
until not not_meaningful[tok_type]
return x, y, filepos,tok_type, tok_value, processed
end
local function tokenize_all(input,filename, error_handler)
if not input or 0==#input then return false, {}, {} end
local pos=1
local x=0
local line=0
local source={}
local meaningful={}
local error_pos=false
repeat
local new_x, new_line, new_pos,tok_type, tok_value, processed = tokenize(input,x,line,pos)
table.insert(source, {from_x=x, to_x=new_x, from_line=line, to_line=new_line, from_pos=pos,to_pos=new_pos-1,type=tok_type, value=tok_value, processed=processed, source_index=1+#source, filename=filename, source=source, meaningful = not not_meaningful[tok_type] } )
pos=new_pos
x=new_x
line=new_line
if not not_meaningful[tok_type] then table.insert(meaningful, #source) end
if not error_pos and tok_type == 'Error' then error_pos=#source end
if tok_type == 'Error' and error_handler then
error_handler(source[#source],filename)
end
until pos>#input
return error_pos, source, meaningful
end
local Ascii_Tokenizer =
{
--note, can't make a list of dispatch functions because some are closures
-- they'd have to be generated in to the table with names.
special_token_sets=special_token_sets,
special_token_lists=special_token_lists,
add_special_token=add_special_token,
not_meaningful=not_meaningful,
ascii_tok=ascii_tok, --dispatch table on first character that tokenize() runs off of
keywords=keywords, -- list of all keywords
key_tok=key_tok, -- actual test, is a keywords is key_tok[test_value]
singles=singles, -- the characters that in pure lua can be processed into tokens at one char without look ahead
nlcr_process=nlcr_process, -- processes strings so that cr are always Unix style
carriage_return_whites=carriage_return_whites, -- carriage return whitespace
whites=whites, --other whitespace
longest_number=longest_number, --finds the longest parsing as a number from the start of a string
token_types=token_types, -- public table, list of all things that can be returned in 4th position
tokenize=tokenize, --the only part of this that has to be public if you are just USING the tokenizer and not changing it return new_x, new_line, new_pos,tok_type, [tok_value[, processed_tok_value]]
meaningful_tokenize = meaningful_tokenize, --skips whitespace and comments
tokenize_all = tokenize_all,
}
return Ascii_Tokenizer
|
local has_value = require("doom.utils").has_value
local doomrc = require("doom.core.config.doomrc").load_doomrc()
local functions = require("doom.core.functions")
local function get_ts_parsers(languages)
local langs = {}
for _, lang in ipairs(languages) do
-- If the lang is config then add parsers for JSON, YAML and TOML
if lang == "config" then
table.insert(langs, "json")
table.insert(langs, "yaml")
table.insert(langs, "toml")
else
lang = lang:gsub("%s+%+lsp", ""):gsub("%s+%+debug", "")
table.insert(langs, lang)
end
end
-- Add TSX parser if TypeScript is enabled
if has_value(langs, "typescript") then
table.insert(langs, "tsx")
end
return langs
end
-- Set up treesitter for Neorg
local parser_configs = require("nvim-treesitter.parsers").get_parser_configs()
parser_configs.norg = {
install_info = {
url = "https://github.com/nvim-neorg/tree-sitter-norg",
files = { "src/parser.c", "src/scanner.cc" },
branch = "main",
},
}
-- selene: allow(undefined_variable)
if packer_plugins and packer_plugins["neorg"] then
table.insert(doomrc.langs, "norg")
end
-- macos uses wrong c version
require("nvim-treesitter.install").compilers = { "gcc" }
require("nvim-treesitter.configs").setup({
ensure_installed = get_ts_parsers(doomrc.langs),
highlight = { enable = true },
autopairs = {
enable = functions.is_plugin_disabled("autopairs") and false or rue,
},
indent = { enable = true },
tree_docs = { enable = true },
context_commentstring = { enable = true },
autotag = {
enable = true,
filetypes = {
"html",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"svelte",
"vue",
"markdown",
},
},
})
|
include('shared.lua')
function ENT:Initialize()
local gun = ents.CreateClientProp(self.GunModel)
local ang = self:GetAngles()
gun:SetPos(self:GetPos() +ang:Up() *22 +ang:Right() *3.2)
gun:SetAngles(ang)
gun:SetParent(self)
gun:Spawn()
self.GunTurret = gun
self.Target = NULL
local mn, mx = self:GetRenderBounds()
self:SetRenderBounds(mn -Vector(self.MaxRange, self.MaxRange, self.MaxRange), mx +Vector(self.MaxRange, self.MaxRange, self.MaxRange))
end
function ENT:AfterSentryShot()
local muzzle = self.GunTurret:GetAttachment(1)
--bullet shell
local effect = EffectData()
effect:SetOrigin(self.GunTurret:GetAttachment(2).Pos)
util.Effect('EjectBrass_9mm', effect)
--muzzle
local effect = EffectData()
effect:SetOrigin(muzzle.Pos)
effect:SetAngles(muzzle.Ang)
util.Effect('MuzzleEffect', effect)
self:EmitSound(self.ShotSound, 140)
end
net.Receive('bw_ents_sg', function()
local hasShot = net.ReadBool()
local ent = net.ReadEntity()
if hasShot then
ent:AfterSentryShot()
else
ent.Target = net.ReadEntity()
end
end)
function ENT:Think()
self.GunTurret:SetParent(self)
end
function ENT:OnRemove()
if self.GunTurret:IsValid() then self.GunTurret:Remove() end
end
local laser = Material('cable/redlaser')
function ENT:Draw()
if self.Target:IsValid() then
local tPos = self.Target:GetBonePosition(1)
local muzzle = self.GunTurret:GetAttachment(1)
render.SetMaterial(laser)
render.DrawBeam(muzzle.Pos, tPos, 5, 1, 1, Color(255, 255, 255))
local ang = (muzzle.Pos -tPos):Angle()
self.GunTurret:SetAngles(Angle(ang.p, ang.y, self:GetAngles().r))
else
self.GunTurret:SetAngles(LerpAngle(0.05, self.GunTurret:GetAngles(), self:GetAngles()))
end
self:DrawModel()
end |
if not ConVarExists("nzu_sandbox_enable") then CreateConVar("nzu_sandbox_enable", 1, {FCVAR_REPLICATED, FCVAR_ARCHIVE, FCVAR_SERVER_CAN_EXECUTE}) end
if GetConVar("nzu_sandbox_enable"):GetBool() then
if engine.ActiveGamemode() == "sandbox" then
print("NZOMBIES UNLIMITED: Loading Sandbox...")
AddCSLuaFile("nzombies-unlimited/language/translate.lua")
include("nzombies-unlimited/language/translate.lua")
AddCSLuaFile("nzombies-unlimited/core/loader.lua")
include("nzombies-unlimited/core/loader.lua")
end
end |
if not zen then zen = {} end
if not zen.chemistry then zen.chemistry = {} end
require("prototypes.fluid")
require("prototypes.item")
require("prototypes.technology")
require("prototypes.recipe")
|
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Naltira", 1516, 1500)
if not mod then return end
mod:RegisterEnableMob(98207, 98759) -- Naltira, Vicious Manafang
mod.engageId = 1826
--------------------------------------------------------------------------------
-- Locals
--
local webCount = 1
local blinkCount = 1
--------------------------------------------------------------------------------
-- Localization
--
local L = mod:GetLocale()
if L then
L.vicious_manafang = -13765
L.vicious_manafang_desc = -13766 -- Devour
L.vicious_manafang_icon = "inv_misc_monsterspidercarapace_01"
end
--------------------------------------------------------------------------------
-- Initialization
--
function mod:GetOptions()
return {
-12687, -- Blink Strikes
{200040, "FLASH"}, -- Nether Venom
{200284, "PROXIMITY"}, -- Tangled Web
-- "vicious_manafang", -- Vicious Manafang
211543, -- Devour
}, {
[211543] = L.vicious_manafang,
}
end
function mod:OnBossEnable()
self:Log("SPELL_CAST_SUCCESS", "NetherVenom", 200040)
self:Log("SPELL_PERIODIC_DAMAGE", "NetherVenomDamage", 200040)
self:Log("SPELL_AURA_APPLIED", "TangledWebApplied", 200284)
self:Log("SPELL_AURA_REMOVED", "TangledWebRemoved", 200284)
self:Log("SPELL_AURA_APPLIED", "Devour", 211543)
end
function mod:OnEngage()
webCount = 1
blinkCount = 1
self:CDBar(-12687, 16) -- Blink Strikes
-- self:CDBar("vicious_manafang", 26, L.vicious_manafang, L.vicious_manafang_icon) -- Vicious Manafang
-- self:ScheduleTimer("ViciousManafang", 26)
self:CDBar(200040, 26) -- Nether Venom
self:CDBar(200284, 35) -- Tangled Web
-- no CLEU event for Blink Strikes
self:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", "BlinkStrikes", "boss1")
self:RegisterUnitEvent("UNIT_SPELLCAST_CHANNEL_START", "BlinkStrikes", "boss1")
end
--------------------------------------------------------------------------------
-- Event Handlers
--
function mod:BlinkStrikes(_, _, _, spellId)
if spellId == 199809 then -- UNIT_SPELLCAST_SUCCEEDED
blinkCount = 1
self:Bar(-12687, 30)
elseif spellId == 199811 then -- UNIT_SPELLCAST_CHANNEL_START
local target = self:UnitName("boss1target")
self:TargetMessage(-12687, target, "orange", "Alarm", CL.count:format(self:SpellName(spellId), blinkCount))
blinkCount = blinkCount + 1
end
end
-- function mod:ViciousManafang()
-- self:Message("vicious_manafang", "yellow", self:Tank() and "Info", L.spawned:format(L.vicious_manafang), false)
-- self:Bar("vicious_manafang", 20, L.vicious_manafang, L.vicious_manafang_icon)
-- self:ScheduleTimer("ViciousManafang", 20)
-- end
function mod:Devour(args)
self:TargetMessage(args.spellId, args.destName, "red", "Info", nil, nil, true)
end
do
local targets, isOnMe = {}
local function printTarget(self, spellId)
if isOnMe then
self:OpenProximity(spellId, 30, targets)
end
self:TargetMessage(spellId, self:ColorName(targets), "yellow", "Warning")
wipe(targets)
isOnMe = nil
end
function mod:TangledWebApplied(args)
targets[#targets+1] = args.destName
if #targets == 1 then
self:ScheduleTimer(printTarget, 0.1, self, args.spellId)
self:CDBar(args.spellId, webCount == 1 and 26 or 21)
webCount = webCount + 1
end
if self:Me(args.destGUID) then
isOnMe = true
end
end
function mod:TangledWebRemoved(args)
if self:Me(args.destName) then
self:Message(args.spellId, "green", nil, CL.removed:format(args.spellName))
self:CloseProximity(args.spellId)
end
end
end
do
local prev = 0
function mod:NetherVenom(args)
local t = GetTime()
if t-prev > 5 then
prev = t
self:Message(args.spellId, "orange")
self:CDBar(args.spellId, 30)
end
end
end
do
local prev = 0
function mod:NetherVenomDamage(args)
if self:Me(args.destGUID) then
local t = GetTime()
if t-prev > 2 then
prev = t
self:Flash(args.spellId)
self:Message(args.spellId, "blue", "Alarm", CL.underyou:format(args.spellName))
end
end
end
end
|
local endpoint_url = os.getenv("APILITYIO_URL") .. "/badip/"
local cache_ttl = tonumber(os.getenv("APILITYIO_LOCAL_CACHE_TTL"))
local x_auth_token = os.getenv("APILITYIO_API_KEY")
local all_headers = {}
if x_auth_token then
all_headers = { ["X-Auth-Token"] = x_auth_token }
end
local ip = ngx.var.remote_addr
local ip_cache = ngx.shared.ip_cache
-- check first the local blacklist
ngx.log(ngx.DEBUG, "ip_cache: Look up in local cache "..ip)
local cache_result = ip_cache:get(ip)
if cache_result then
ngx.log(ngx.DEBUG, "ip_cache: found result in local cache for "..ip.." -> "..cache_result)
if cache_result == 200 then
ngx.log(ngx.DEBUG, "ip_cache: (local cache) "..ip.." is blacklisted")
return ngx.exit(ngx.HTTP_FORBIDDEN)
else
ngx.log(ngx.DEBUG, "ip_cache: (local cache) "..ip.." is whitelisted")
return
end
else
ngx.log(ngx.DEBUG, "ip_cache: not found in local cache "..ip)
end
-- Nothing in local cache, go and do a roundtrip to apility.io API
local http = require "resty.http"
local httpc = http.new()
local res, err = httpc:request_uri(endpoint_url .. ip, {
method = "GET",
ssl_verify = false,
headers = all_headers
})
-- Something went wrong...
if not res then
ngx.say("failed to request: ", err)
return
end
local status = res.status
ip_cache:set(ip, status, cache_ttl)
if res.status == 404 then
ngx.log(ngx.DEBUG, "blacklist: lookup returns nothing "..ip..":"..res.status)
return
end
if res.status == 200 then
ngx.log(ngx.DEBUG, "whitelist: lookup returns something "..ip..":"..res.status)
return ngx.exit(ngx.HTTP_FORBIDDEN)
end
if res.status == 409 then
ngx.log(ngx.DEBUG, "whitelist: lookup run out of quota "..ip..":"..res.status)
return ngx.exit(ngx.HTTP_FORBIDDEN)
end
-- You should never be here...
ngx.log(ngx.ERR, "ip_cache: "..ip.." something went wrong...")
return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
|
object_tangible_quest_computer_terminal = object_tangible_quest_shared_computer_terminal:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_computer_terminal, "object/tangible/quest/computer_terminal.iff")
|
DoorTable = {
Lock = {}
}
DoorCoOwners = {}
local meta = FindMetaTable( "Player" )
function meta:CanUseDoor( index )
if !DoorTable[index] then return false end
return DoorRestrictions[DoorTable[index]].CheckFunction( self )
end |
require("firecast.lua");
local __o_rrpgObjs = require("rrpgObjs.lua");
require("rrpgGUI.lua");
require("rrpgDialogs.lua");
require("rrpgLFM.lua");
require("ndb.lua");
require("locale.lua");
local __o_Utils = require("utils.lua");
local function constructNew_frmL5A5_svg()
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("frmL5A5_svg");
obj:setAlign("client");
obj:setTheme("light");
obj:setMargins({top=1});
obj.scrollBox1 = GUI.fromHandle(_obj_newObject("scrollBox"));
obj.scrollBox1:setParent(obj);
obj.scrollBox1:setAlign("client");
obj.scrollBox1:setName("scrollBox1");
obj.rectangle1 = GUI.fromHandle(_obj_newObject("rectangle"));
obj.rectangle1:setParent(obj.scrollBox1);
obj.rectangle1:setWidth(918);
obj.rectangle1:setHeight(1188);
obj.rectangle1:setColor("white");
obj.rectangle1:setName("rectangle1");
obj.image1 = GUI.fromHandle(_obj_newObject("image"));
obj.image1:setParent(obj.rectangle1);
obj.image1:setLeft(0);
obj.image1:setTop(0);
obj.image1:setWidth(918);
obj.image1:setHeight(1188);
obj.image1:setSRC("/L5A/images/5.png");
obj.image1:setStyle("stretch");
obj.image1:setOptimize(true);
obj.image1:setName("image1");
obj.layout1 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout1:setParent(obj.rectangle1);
obj.layout1:setLeft(49);
obj.layout1:setTop(125);
obj.layout1:setWidth(26);
obj.layout1:setHeight(27);
obj.layout1:setName("layout1");
obj.checkBox1 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox1:setParent(obj.layout1);
obj.checkBox1:setLeft(0);
obj.checkBox1:setTop(0);
obj.checkBox1:setWidth(26);
obj.checkBox1:setHeight(28);
obj.checkBox1:setField("Check_Box123");
obj.checkBox1:setName("checkBox1");
obj.layout2 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout2:setParent(obj.rectangle1);
obj.layout2:setLeft(49);
obj.layout2:setTop(169);
obj.layout2:setWidth(26);
obj.layout2:setHeight(27);
obj.layout2:setName("layout2");
obj.checkBox2 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox2:setParent(obj.layout2);
obj.checkBox2:setLeft(0);
obj.checkBox2:setTop(0);
obj.checkBox2:setWidth(26);
obj.checkBox2:setHeight(28);
obj.checkBox2:setField("Check_Box129");
obj.checkBox2:setName("checkBox2");
obj.layout3 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout3:setParent(obj.rectangle1);
obj.layout3:setLeft(49);
obj.layout3:setTop(189);
obj.layout3:setWidth(26);
obj.layout3:setHeight(27);
obj.layout3:setName("layout3");
obj.checkBox3 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox3:setParent(obj.layout3);
obj.checkBox3:setLeft(0);
obj.checkBox3:setTop(0);
obj.checkBox3:setWidth(26);
obj.checkBox3:setHeight(28);
obj.checkBox3:setField("Check_Box132");
obj.checkBox3:setName("checkBox3");
obj.layout4 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout4:setParent(obj.rectangle1);
obj.layout4:setLeft(49);
obj.layout4:setTop(212);
obj.layout4:setWidth(26);
obj.layout4:setHeight(27);
obj.layout4:setName("layout4");
obj.checkBox4 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox4:setParent(obj.layout4);
obj.checkBox4:setLeft(0);
obj.checkBox4:setTop(0);
obj.checkBox4:setWidth(26);
obj.checkBox4:setHeight(28);
obj.checkBox4:setField("Check_Box135");
obj.checkBox4:setName("checkBox4");
obj.layout5 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout5:setParent(obj.rectangle1);
obj.layout5:setLeft(48);
obj.layout5:setTop(233);
obj.layout5:setWidth(26);
obj.layout5:setHeight(27);
obj.layout5:setName("layout5");
obj.checkBox5 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox5:setParent(obj.layout5);
obj.checkBox5:setLeft(0);
obj.checkBox5:setTop(0);
obj.checkBox5:setWidth(26);
obj.checkBox5:setHeight(28);
obj.checkBox5:setField("Check_Box138");
obj.checkBox5:setName("checkBox5");
obj.layout6 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout6:setParent(obj.rectangle1);
obj.layout6:setLeft(49);
obj.layout6:setTop(256);
obj.layout6:setWidth(26);
obj.layout6:setHeight(27);
obj.layout6:setName("layout6");
obj.checkBox6 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox6:setParent(obj.layout6);
obj.checkBox6:setLeft(0);
obj.checkBox6:setTop(0);
obj.checkBox6:setWidth(26);
obj.checkBox6:setHeight(28);
obj.checkBox6:setField("Check_Box141");
obj.checkBox6:setName("checkBox6");
obj.layout7 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout7:setParent(obj.rectangle1);
obj.layout7:setLeft(49);
obj.layout7:setTop(277);
obj.layout7:setWidth(26);
obj.layout7:setHeight(27);
obj.layout7:setName("layout7");
obj.checkBox7 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox7:setParent(obj.layout7);
obj.checkBox7:setLeft(0);
obj.checkBox7:setTop(0);
obj.checkBox7:setWidth(26);
obj.checkBox7:setHeight(28);
obj.checkBox7:setField("Check_Box2");
obj.checkBox7:setName("checkBox7");
obj.layout8 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout8:setParent(obj.rectangle1);
obj.layout8:setLeft(49);
obj.layout8:setTop(298);
obj.layout8:setWidth(26);
obj.layout8:setHeight(27);
obj.layout8:setName("layout8");
obj.checkBox8 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox8:setParent(obj.layout8);
obj.checkBox8:setLeft(0);
obj.checkBox8:setTop(0);
obj.checkBox8:setWidth(26);
obj.checkBox8:setHeight(28);
obj.checkBox8:setField("Check_Box146");
obj.checkBox8:setName("checkBox8");
obj.layout9 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout9:setParent(obj.rectangle1);
obj.layout9:setLeft(49);
obj.layout9:setTop(319);
obj.layout9:setWidth(26);
obj.layout9:setHeight(27);
obj.layout9:setName("layout9");
obj.checkBox9 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox9:setParent(obj.layout9);
obj.checkBox9:setLeft(0);
obj.checkBox9:setTop(0);
obj.checkBox9:setWidth(26);
obj.checkBox9:setHeight(28);
obj.checkBox9:setField("Check_Box149");
obj.checkBox9:setName("checkBox9");
obj.layout10 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout10:setParent(obj.rectangle1);
obj.layout10:setLeft(49);
obj.layout10:setTop(341);
obj.layout10:setWidth(26);
obj.layout10:setHeight(27);
obj.layout10:setName("layout10");
obj.checkBox10 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox10:setParent(obj.layout10);
obj.checkBox10:setLeft(0);
obj.checkBox10:setTop(0);
obj.checkBox10:setWidth(26);
obj.checkBox10:setHeight(28);
obj.checkBox10:setField("Check_Box152");
obj.checkBox10:setName("checkBox10");
obj.layout11 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout11:setParent(obj.rectangle1);
obj.layout11:setLeft(49);
obj.layout11:setTop(362);
obj.layout11:setWidth(26);
obj.layout11:setHeight(27);
obj.layout11:setName("layout11");
obj.checkBox11 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox11:setParent(obj.layout11);
obj.checkBox11:setLeft(0);
obj.checkBox11:setTop(0);
obj.checkBox11:setWidth(26);
obj.checkBox11:setHeight(28);
obj.checkBox11:setField("Check_Box155");
obj.checkBox11:setName("checkBox11");
obj.layout12 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout12:setParent(obj.rectangle1);
obj.layout12:setLeft(49);
obj.layout12:setTop(385);
obj.layout12:setWidth(26);
obj.layout12:setHeight(27);
obj.layout12:setName("layout12");
obj.checkBox12 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox12:setParent(obj.layout12);
obj.checkBox12:setLeft(0);
obj.checkBox12:setTop(0);
obj.checkBox12:setWidth(26);
obj.checkBox12:setHeight(28);
obj.checkBox12:setField("Check_Box158");
obj.checkBox12:setName("checkBox12");
obj.layout13 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout13:setParent(obj.rectangle1);
obj.layout13:setLeft(48);
obj.layout13:setTop(408);
obj.layout13:setWidth(26);
obj.layout13:setHeight(27);
obj.layout13:setName("layout13");
obj.checkBox13 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox13:setParent(obj.layout13);
obj.checkBox13:setLeft(0);
obj.checkBox13:setTop(0);
obj.checkBox13:setWidth(26);
obj.checkBox13:setHeight(28);
obj.checkBox13:setField("Check_Box161");
obj.checkBox13:setName("checkBox13");
obj.layout14 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout14:setParent(obj.rectangle1);
obj.layout14:setLeft(48);
obj.layout14:setTop(429);
obj.layout14:setWidth(26);
obj.layout14:setHeight(27);
obj.layout14:setName("layout14");
obj.checkBox14 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox14:setParent(obj.layout14);
obj.checkBox14:setLeft(0);
obj.checkBox14:setTop(0);
obj.checkBox14:setWidth(26);
obj.checkBox14:setHeight(28);
obj.checkBox14:setField("Check_Box164");
obj.checkBox14:setName("checkBox14");
obj.layout15 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout15:setParent(obj.rectangle1);
obj.layout15:setLeft(49);
obj.layout15:setTop(451);
obj.layout15:setWidth(26);
obj.layout15:setHeight(27);
obj.layout15:setName("layout15");
obj.checkBox15 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox15:setParent(obj.layout15);
obj.checkBox15:setLeft(0);
obj.checkBox15:setTop(0);
obj.checkBox15:setWidth(26);
obj.checkBox15:setHeight(28);
obj.checkBox15:setField("Check_Box167");
obj.checkBox15:setName("checkBox15");
obj.layout16 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout16:setParent(obj.rectangle1);
obj.layout16:setLeft(48);
obj.layout16:setTop(471);
obj.layout16:setWidth(26);
obj.layout16:setHeight(27);
obj.layout16:setName("layout16");
obj.checkBox16 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox16:setParent(obj.layout16);
obj.checkBox16:setLeft(0);
obj.checkBox16:setTop(0);
obj.checkBox16:setWidth(26);
obj.checkBox16:setHeight(28);
obj.checkBox16:setField("Check_Box170");
obj.checkBox16:setName("checkBox16");
obj.layout17 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout17:setParent(obj.rectangle1);
obj.layout17:setLeft(48);
obj.layout17:setTop(493);
obj.layout17:setWidth(26);
obj.layout17:setHeight(27);
obj.layout17:setName("layout17");
obj.checkBox17 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox17:setParent(obj.layout17);
obj.checkBox17:setLeft(0);
obj.checkBox17:setTop(0);
obj.checkBox17:setWidth(26);
obj.checkBox17:setHeight(28);
obj.checkBox17:setField("Check_Box173");
obj.checkBox17:setName("checkBox17");
obj.layout18 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout18:setParent(obj.rectangle1);
obj.layout18:setLeft(48);
obj.layout18:setTop(515);
obj.layout18:setWidth(26);
obj.layout18:setHeight(27);
obj.layout18:setName("layout18");
obj.checkBox18 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox18:setParent(obj.layout18);
obj.checkBox18:setLeft(0);
obj.checkBox18:setTop(0);
obj.checkBox18:setWidth(26);
obj.checkBox18:setHeight(28);
obj.checkBox18:setField("Check_Box176");
obj.checkBox18:setName("checkBox18");
obj.layout19 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout19:setParent(obj.rectangle1);
obj.layout19:setLeft(48);
obj.layout19:setTop(537);
obj.layout19:setWidth(26);
obj.layout19:setHeight(27);
obj.layout19:setName("layout19");
obj.checkBox19 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox19:setParent(obj.layout19);
obj.checkBox19:setLeft(0);
obj.checkBox19:setTop(0);
obj.checkBox19:setWidth(26);
obj.checkBox19:setHeight(28);
obj.checkBox19:setField("Check_Box179");
obj.checkBox19:setName("checkBox19");
obj.layout20 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout20:setParent(obj.rectangle1);
obj.layout20:setLeft(48);
obj.layout20:setTop(559);
obj.layout20:setWidth(26);
obj.layout20:setHeight(27);
obj.layout20:setName("layout20");
obj.checkBox20 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox20:setParent(obj.layout20);
obj.checkBox20:setLeft(0);
obj.checkBox20:setTop(0);
obj.checkBox20:setWidth(26);
obj.checkBox20:setHeight(28);
obj.checkBox20:setField("Check_Box182");
obj.checkBox20:setName("checkBox20");
obj.layout21 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout21:setParent(obj.rectangle1);
obj.layout21:setLeft(48);
obj.layout21:setTop(581);
obj.layout21:setWidth(26);
obj.layout21:setHeight(27);
obj.layout21:setName("layout21");
obj.checkBox21 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox21:setParent(obj.layout21);
obj.checkBox21:setLeft(0);
obj.checkBox21:setTop(0);
obj.checkBox21:setWidth(26);
obj.checkBox21:setHeight(28);
obj.checkBox21:setField("Check_Box185");
obj.checkBox21:setName("checkBox21");
obj.layout22 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout22:setParent(obj.rectangle1);
obj.layout22:setLeft(48);
obj.layout22:setTop(602);
obj.layout22:setWidth(26);
obj.layout22:setHeight(27);
obj.layout22:setName("layout22");
obj.checkBox22 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox22:setParent(obj.layout22);
obj.checkBox22:setLeft(0);
obj.checkBox22:setTop(0);
obj.checkBox22:setWidth(26);
obj.checkBox22:setHeight(28);
obj.checkBox22:setField("Check_Box188");
obj.checkBox22:setName("checkBox22");
obj.layout23 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout23:setParent(obj.rectangle1);
obj.layout23:setLeft(48);
obj.layout23:setTop(623);
obj.layout23:setWidth(26);
obj.layout23:setHeight(27);
obj.layout23:setName("layout23");
obj.checkBox23 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox23:setParent(obj.layout23);
obj.checkBox23:setLeft(0);
obj.checkBox23:setTop(0);
obj.checkBox23:setWidth(26);
obj.checkBox23:setHeight(28);
obj.checkBox23:setField("Check_Box191");
obj.checkBox23:setName("checkBox23");
obj.layout24 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout24:setParent(obj.rectangle1);
obj.layout24:setLeft(48);
obj.layout24:setTop(645);
obj.layout24:setWidth(26);
obj.layout24:setHeight(27);
obj.layout24:setName("layout24");
obj.checkBox24 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox24:setParent(obj.layout24);
obj.checkBox24:setLeft(0);
obj.checkBox24:setTop(0);
obj.checkBox24:setWidth(26);
obj.checkBox24:setHeight(28);
obj.checkBox24:setField("Check_Box194");
obj.checkBox24:setName("checkBox24");
obj.layout25 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout25:setParent(obj.rectangle1);
obj.layout25:setLeft(48);
obj.layout25:setTop(667);
obj.layout25:setWidth(26);
obj.layout25:setHeight(27);
obj.layout25:setName("layout25");
obj.checkBox25 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox25:setParent(obj.layout25);
obj.checkBox25:setLeft(0);
obj.checkBox25:setTop(0);
obj.checkBox25:setWidth(26);
obj.checkBox25:setHeight(28);
obj.checkBox25:setField("Check_Box197");
obj.checkBox25:setName("checkBox25");
obj.layout26 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout26:setParent(obj.rectangle1);
obj.layout26:setLeft(47);
obj.layout26:setTop(689);
obj.layout26:setWidth(26);
obj.layout26:setHeight(27);
obj.layout26:setName("layout26");
obj.checkBox26 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox26:setParent(obj.layout26);
obj.checkBox26:setLeft(0);
obj.checkBox26:setTop(0);
obj.checkBox26:setWidth(26);
obj.checkBox26:setHeight(28);
obj.checkBox26:setField("Check_Box200");
obj.checkBox26:setName("checkBox26");
obj.layout27 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout27:setParent(obj.rectangle1);
obj.layout27:setLeft(47);
obj.layout27:setTop(711);
obj.layout27:setWidth(26);
obj.layout27:setHeight(27);
obj.layout27:setName("layout27");
obj.checkBox27 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox27:setParent(obj.layout27);
obj.checkBox27:setLeft(0);
obj.checkBox27:setTop(0);
obj.checkBox27:setWidth(26);
obj.checkBox27:setHeight(28);
obj.checkBox27:setField("Check_Box203");
obj.checkBox27:setName("checkBox27");
obj.layout28 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout28:setParent(obj.rectangle1);
obj.layout28:setLeft(47);
obj.layout28:setTop(733);
obj.layout28:setWidth(26);
obj.layout28:setHeight(27);
obj.layout28:setName("layout28");
obj.checkBox28 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox28:setParent(obj.layout28);
obj.checkBox28:setLeft(0);
obj.checkBox28:setTop(0);
obj.checkBox28:setWidth(26);
obj.checkBox28:setHeight(28);
obj.checkBox28:setField("Check_Box206");
obj.checkBox28:setName("checkBox28");
obj.layout29 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout29:setParent(obj.rectangle1);
obj.layout29:setLeft(47);
obj.layout29:setTop(755);
obj.layout29:setWidth(26);
obj.layout29:setHeight(27);
obj.layout29:setName("layout29");
obj.checkBox29 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox29:setParent(obj.layout29);
obj.checkBox29:setLeft(0);
obj.checkBox29:setTop(0);
obj.checkBox29:setWidth(26);
obj.checkBox29:setHeight(28);
obj.checkBox29:setField("Check_Box209");
obj.checkBox29:setName("checkBox29");
obj.layout30 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout30:setParent(obj.rectangle1);
obj.layout30:setLeft(47);
obj.layout30:setTop(777);
obj.layout30:setWidth(26);
obj.layout30:setHeight(27);
obj.layout30:setName("layout30");
obj.checkBox30 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox30:setParent(obj.layout30);
obj.checkBox30:setLeft(0);
obj.checkBox30:setTop(0);
obj.checkBox30:setWidth(26);
obj.checkBox30:setHeight(28);
obj.checkBox30:setField("Check_Box212");
obj.checkBox30:setName("checkBox30");
obj.layout31 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout31:setParent(obj.rectangle1);
obj.layout31:setLeft(327);
obj.layout31:setTop(124);
obj.layout31:setWidth(26);
obj.layout31:setHeight(27);
obj.layout31:setName("layout31");
obj.checkBox31 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox31:setParent(obj.layout31);
obj.checkBox31:setLeft(0);
obj.checkBox31:setTop(0);
obj.checkBox31:setWidth(26);
obj.checkBox31:setHeight(28);
obj.checkBox31:setField("Check_Box279");
obj.checkBox31:setName("checkBox31");
obj.layout32 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout32:setParent(obj.rectangle1);
obj.layout32:setLeft(348);
obj.layout32:setTop(124);
obj.layout32:setWidth(26);
obj.layout32:setHeight(27);
obj.layout32:setName("layout32");
obj.checkBox32 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox32:setParent(obj.layout32);
obj.checkBox32:setLeft(0);
obj.checkBox32:setTop(0);
obj.checkBox32:setWidth(26);
obj.checkBox32:setHeight(28);
obj.checkBox32:setField("Check_Box280");
obj.checkBox32:setName("checkBox32");
obj.layout33 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout33:setParent(obj.rectangle1);
obj.layout33:setLeft(367);
obj.layout33:setTop(124);
obj.layout33:setWidth(26);
obj.layout33:setHeight(27);
obj.layout33:setName("layout33");
obj.checkBox33 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox33:setParent(obj.layout33);
obj.checkBox33:setLeft(0);
obj.checkBox33:setTop(0);
obj.checkBox33:setWidth(26);
obj.checkBox33:setHeight(28);
obj.checkBox33:setField("Check_Box281");
obj.checkBox33:setName("checkBox33");
obj.layout34 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout34:setParent(obj.rectangle1);
obj.layout34:setLeft(327);
obj.layout34:setTop(147);
obj.layout34:setWidth(26);
obj.layout34:setHeight(27);
obj.layout34:setName("layout34");
obj.checkBox34 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox34:setParent(obj.layout34);
obj.checkBox34:setLeft(0);
obj.checkBox34:setTop(0);
obj.checkBox34:setWidth(26);
obj.checkBox34:setHeight(28);
obj.checkBox34:setField("Check_Box282");
obj.checkBox34:setName("checkBox34");
obj.layout35 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout35:setParent(obj.rectangle1);
obj.layout35:setLeft(348);
obj.layout35:setTop(147);
obj.layout35:setWidth(26);
obj.layout35:setHeight(27);
obj.layout35:setName("layout35");
obj.checkBox35 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox35:setParent(obj.layout35);
obj.checkBox35:setLeft(0);
obj.checkBox35:setTop(0);
obj.checkBox35:setWidth(26);
obj.checkBox35:setHeight(28);
obj.checkBox35:setField("Check_Box283");
obj.checkBox35:setName("checkBox35");
obj.layout36 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout36:setParent(obj.rectangle1);
obj.layout36:setLeft(367);
obj.layout36:setTop(147);
obj.layout36:setWidth(26);
obj.layout36:setHeight(27);
obj.layout36:setName("layout36");
obj.checkBox36 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox36:setParent(obj.layout36);
obj.checkBox36:setLeft(0);
obj.checkBox36:setTop(0);
obj.checkBox36:setWidth(26);
obj.checkBox36:setHeight(28);
obj.checkBox36:setField("Check_Box284");
obj.checkBox36:setName("checkBox36");
obj.layout37 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout37:setParent(obj.rectangle1);
obj.layout37:setLeft(346);
obj.layout37:setTop(167);
obj.layout37:setWidth(26);
obj.layout37:setHeight(27);
obj.layout37:setName("layout37");
obj.checkBox37 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox37:setParent(obj.layout37);
obj.checkBox37:setLeft(0);
obj.checkBox37:setTop(0);
obj.checkBox37:setWidth(26);
obj.checkBox37:setHeight(28);
obj.checkBox37:setField("Check_Box286");
obj.checkBox37:setName("checkBox37");
obj.layout38 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout38:setParent(obj.rectangle1);
obj.layout38:setLeft(69);
obj.layout38:setTop(125);
obj.layout38:setWidth(26);
obj.layout38:setHeight(27);
obj.layout38:setName("layout38");
obj.checkBox38 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox38:setParent(obj.layout38);
obj.checkBox38:setLeft(0);
obj.checkBox38:setTop(0);
obj.checkBox38:setWidth(26);
obj.checkBox38:setHeight(28);
obj.checkBox38:setField("Check_Box124");
obj.checkBox38:setName("checkBox38");
obj.layout39 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout39:setParent(obj.rectangle1);
obj.layout39:setLeft(68);
obj.layout39:setTop(169);
obj.layout39:setWidth(26);
obj.layout39:setHeight(27);
obj.layout39:setName("layout39");
obj.checkBox39 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox39:setParent(obj.layout39);
obj.checkBox39:setLeft(0);
obj.checkBox39:setTop(0);
obj.checkBox39:setWidth(26);
obj.checkBox39:setHeight(28);
obj.checkBox39:setField("Check_Box130");
obj.checkBox39:setName("checkBox39");
obj.layout40 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout40:setParent(obj.rectangle1);
obj.layout40:setLeft(68);
obj.layout40:setTop(189);
obj.layout40:setWidth(26);
obj.layout40:setHeight(27);
obj.layout40:setName("layout40");
obj.checkBox40 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox40:setParent(obj.layout40);
obj.checkBox40:setLeft(0);
obj.checkBox40:setTop(0);
obj.checkBox40:setWidth(26);
obj.checkBox40:setHeight(28);
obj.checkBox40:setField("Check_Box133");
obj.checkBox40:setName("checkBox40");
obj.layout41 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout41:setParent(obj.rectangle1);
obj.layout41:setLeft(68);
obj.layout41:setTop(212);
obj.layout41:setWidth(26);
obj.layout41:setHeight(27);
obj.layout41:setName("layout41");
obj.checkBox41 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox41:setParent(obj.layout41);
obj.checkBox41:setLeft(0);
obj.checkBox41:setTop(0);
obj.checkBox41:setWidth(26);
obj.checkBox41:setHeight(28);
obj.checkBox41:setField("Check_Box136");
obj.checkBox41:setName("checkBox41");
obj.layout42 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout42:setParent(obj.rectangle1);
obj.layout42:setLeft(68);
obj.layout42:setTop(234);
obj.layout42:setWidth(26);
obj.layout42:setHeight(27);
obj.layout42:setName("layout42");
obj.checkBox42 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox42:setParent(obj.layout42);
obj.checkBox42:setLeft(0);
obj.checkBox42:setTop(0);
obj.checkBox42:setWidth(26);
obj.checkBox42:setHeight(28);
obj.checkBox42:setField("Check_Box139");
obj.checkBox42:setName("checkBox42");
obj.layout43 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout43:setParent(obj.rectangle1);
obj.layout43:setLeft(70);
obj.layout43:setTop(255);
obj.layout43:setWidth(26);
obj.layout43:setHeight(27);
obj.layout43:setName("layout43");
obj.checkBox43 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox43:setParent(obj.layout43);
obj.checkBox43:setLeft(0);
obj.checkBox43:setTop(0);
obj.checkBox43:setWidth(26);
obj.checkBox43:setHeight(28);
obj.checkBox43:setField("Check_Box142");
obj.checkBox43:setName("checkBox43");
obj.layout44 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout44:setParent(obj.rectangle1);
obj.layout44:setLeft(69);
obj.layout44:setTop(277);
obj.layout44:setWidth(26);
obj.layout44:setHeight(27);
obj.layout44:setName("layout44");
obj.checkBox44 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox44:setParent(obj.layout44);
obj.checkBox44:setLeft(0);
obj.checkBox44:setTop(0);
obj.checkBox44:setWidth(26);
obj.checkBox44:setHeight(28);
obj.checkBox44:setField("Check_Box144");
obj.checkBox44:setName("checkBox44");
obj.layout45 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout45:setParent(obj.rectangle1);
obj.layout45:setLeft(69);
obj.layout45:setTop(298);
obj.layout45:setWidth(26);
obj.layout45:setHeight(27);
obj.layout45:setName("layout45");
obj.checkBox45 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox45:setParent(obj.layout45);
obj.checkBox45:setLeft(0);
obj.checkBox45:setTop(0);
obj.checkBox45:setWidth(26);
obj.checkBox45:setHeight(28);
obj.checkBox45:setField("Check_Box147");
obj.checkBox45:setName("checkBox45");
obj.layout46 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout46:setParent(obj.rectangle1);
obj.layout46:setLeft(69);
obj.layout46:setTop(319);
obj.layout46:setWidth(26);
obj.layout46:setHeight(27);
obj.layout46:setName("layout46");
obj.checkBox46 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox46:setParent(obj.layout46);
obj.checkBox46:setLeft(0);
obj.checkBox46:setTop(0);
obj.checkBox46:setWidth(26);
obj.checkBox46:setHeight(28);
obj.checkBox46:setField("Check_Box150");
obj.checkBox46:setName("checkBox46");
obj.layout47 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout47:setParent(obj.rectangle1);
obj.layout47:setLeft(69);
obj.layout47:setTop(341);
obj.layout47:setWidth(26);
obj.layout47:setHeight(27);
obj.layout47:setName("layout47");
obj.checkBox47 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox47:setParent(obj.layout47);
obj.checkBox47:setLeft(0);
obj.checkBox47:setTop(0);
obj.checkBox47:setWidth(26);
obj.checkBox47:setHeight(28);
obj.checkBox47:setField("Check_Box153");
obj.checkBox47:setName("checkBox47");
obj.layout48 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout48:setParent(obj.rectangle1);
obj.layout48:setLeft(69);
obj.layout48:setTop(363);
obj.layout48:setWidth(26);
obj.layout48:setHeight(27);
obj.layout48:setName("layout48");
obj.checkBox48 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox48:setParent(obj.layout48);
obj.checkBox48:setLeft(0);
obj.checkBox48:setTop(0);
obj.checkBox48:setWidth(26);
obj.checkBox48:setHeight(28);
obj.checkBox48:setField("Check_Box156");
obj.checkBox48:setName("checkBox48");
obj.layout49 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout49:setParent(obj.rectangle1);
obj.layout49:setLeft(70);
obj.layout49:setTop(384);
obj.layout49:setWidth(26);
obj.layout49:setHeight(27);
obj.layout49:setName("layout49");
obj.checkBox49 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox49:setParent(obj.layout49);
obj.checkBox49:setLeft(0);
obj.checkBox49:setTop(0);
obj.checkBox49:setWidth(26);
obj.checkBox49:setHeight(28);
obj.checkBox49:setField("Check_Box159");
obj.checkBox49:setName("checkBox49");
obj.layout50 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout50:setParent(obj.rectangle1);
obj.layout50:setLeft(70);
obj.layout50:setTop(408);
obj.layout50:setWidth(26);
obj.layout50:setHeight(27);
obj.layout50:setName("layout50");
obj.checkBox50 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox50:setParent(obj.layout50);
obj.checkBox50:setLeft(0);
obj.checkBox50:setTop(0);
obj.checkBox50:setWidth(26);
obj.checkBox50:setHeight(28);
obj.checkBox50:setField("Check_Box162");
obj.checkBox50:setName("checkBox50");
obj.layout51 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout51:setParent(obj.rectangle1);
obj.layout51:setLeft(69);
obj.layout51:setTop(429);
obj.layout51:setWidth(26);
obj.layout51:setHeight(27);
obj.layout51:setName("layout51");
obj.checkBox51 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox51:setParent(obj.layout51);
obj.checkBox51:setLeft(0);
obj.checkBox51:setTop(0);
obj.checkBox51:setWidth(26);
obj.checkBox51:setHeight(28);
obj.checkBox51:setField("Check_Box165");
obj.checkBox51:setName("checkBox51");
obj.layout52 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout52:setParent(obj.rectangle1);
obj.layout52:setLeft(69);
obj.layout52:setTop(450);
obj.layout52:setWidth(26);
obj.layout52:setHeight(27);
obj.layout52:setName("layout52");
obj.checkBox52 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox52:setParent(obj.layout52);
obj.checkBox52:setLeft(0);
obj.checkBox52:setTop(0);
obj.checkBox52:setWidth(26);
obj.checkBox52:setHeight(28);
obj.checkBox52:setField("Check_Box168");
obj.checkBox52:setName("checkBox52");
obj.layout53 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout53:setParent(obj.rectangle1);
obj.layout53:setLeft(69);
obj.layout53:setTop(471);
obj.layout53:setWidth(26);
obj.layout53:setHeight(27);
obj.layout53:setName("layout53");
obj.checkBox53 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox53:setParent(obj.layout53);
obj.checkBox53:setLeft(0);
obj.checkBox53:setTop(0);
obj.checkBox53:setWidth(26);
obj.checkBox53:setHeight(28);
obj.checkBox53:setField("Check_Box171");
obj.checkBox53:setName("checkBox53");
obj.layout54 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout54:setParent(obj.rectangle1);
obj.layout54:setLeft(70);
obj.layout54:setTop(493);
obj.layout54:setWidth(26);
obj.layout54:setHeight(27);
obj.layout54:setName("layout54");
obj.checkBox54 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox54:setParent(obj.layout54);
obj.checkBox54:setLeft(0);
obj.checkBox54:setTop(0);
obj.checkBox54:setWidth(26);
obj.checkBox54:setHeight(28);
obj.checkBox54:setField("Check_Box174");
obj.checkBox54:setName("checkBox54");
obj.layout55 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout55:setParent(obj.rectangle1);
obj.layout55:setLeft(69);
obj.layout55:setTop(515);
obj.layout55:setWidth(26);
obj.layout55:setHeight(27);
obj.layout55:setName("layout55");
obj.checkBox55 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox55:setParent(obj.layout55);
obj.checkBox55:setLeft(0);
obj.checkBox55:setTop(0);
obj.checkBox55:setWidth(26);
obj.checkBox55:setHeight(28);
obj.checkBox55:setField("Check_Box177");
obj.checkBox55:setName("checkBox55");
obj.layout56 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout56:setParent(obj.rectangle1);
obj.layout56:setLeft(69);
obj.layout56:setTop(537);
obj.layout56:setWidth(26);
obj.layout56:setHeight(27);
obj.layout56:setName("layout56");
obj.checkBox56 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox56:setParent(obj.layout56);
obj.checkBox56:setLeft(0);
obj.checkBox56:setTop(0);
obj.checkBox56:setWidth(26);
obj.checkBox56:setHeight(28);
obj.checkBox56:setField("Check_Box180");
obj.checkBox56:setName("checkBox56");
obj.layout57 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout57:setParent(obj.rectangle1);
obj.layout57:setLeft(69);
obj.layout57:setTop(559);
obj.layout57:setWidth(26);
obj.layout57:setHeight(27);
obj.layout57:setName("layout57");
obj.checkBox57 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox57:setParent(obj.layout57);
obj.checkBox57:setLeft(0);
obj.checkBox57:setTop(0);
obj.checkBox57:setWidth(26);
obj.checkBox57:setHeight(28);
obj.checkBox57:setField("Check_Box183");
obj.checkBox57:setName("checkBox57");
obj.layout58 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout58:setParent(obj.rectangle1);
obj.layout58:setLeft(69);
obj.layout58:setTop(582);
obj.layout58:setWidth(26);
obj.layout58:setHeight(27);
obj.layout58:setName("layout58");
obj.checkBox58 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox58:setParent(obj.layout58);
obj.checkBox58:setLeft(0);
obj.checkBox58:setTop(0);
obj.checkBox58:setWidth(26);
obj.checkBox58:setHeight(28);
obj.checkBox58:setField("Check_Box186");
obj.checkBox58:setName("checkBox58");
obj.layout59 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout59:setParent(obj.rectangle1);
obj.layout59:setLeft(69);
obj.layout59:setTop(602);
obj.layout59:setWidth(26);
obj.layout59:setHeight(27);
obj.layout59:setName("layout59");
obj.checkBox59 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox59:setParent(obj.layout59);
obj.checkBox59:setLeft(0);
obj.checkBox59:setTop(0);
obj.checkBox59:setWidth(26);
obj.checkBox59:setHeight(28);
obj.checkBox59:setField("Check_Box189");
obj.checkBox59:setName("checkBox59");
obj.layout60 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout60:setParent(obj.rectangle1);
obj.layout60:setLeft(69);
obj.layout60:setTop(623);
obj.layout60:setWidth(26);
obj.layout60:setHeight(27);
obj.layout60:setName("layout60");
obj.checkBox60 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox60:setParent(obj.layout60);
obj.checkBox60:setLeft(0);
obj.checkBox60:setTop(0);
obj.checkBox60:setWidth(26);
obj.checkBox60:setHeight(28);
obj.checkBox60:setField("Check_Box192");
obj.checkBox60:setName("checkBox60");
obj.layout61 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout61:setParent(obj.rectangle1);
obj.layout61:setLeft(68);
obj.layout61:setTop(645);
obj.layout61:setWidth(26);
obj.layout61:setHeight(27);
obj.layout61:setName("layout61");
obj.checkBox61 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox61:setParent(obj.layout61);
obj.checkBox61:setLeft(0);
obj.checkBox61:setTop(0);
obj.checkBox61:setWidth(26);
obj.checkBox61:setHeight(28);
obj.checkBox61:setField("Check_Box195");
obj.checkBox61:setName("checkBox61");
obj.layout62 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout62:setParent(obj.rectangle1);
obj.layout62:setLeft(68);
obj.layout62:setTop(667);
obj.layout62:setWidth(26);
obj.layout62:setHeight(27);
obj.layout62:setName("layout62");
obj.checkBox62 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox62:setParent(obj.layout62);
obj.checkBox62:setLeft(0);
obj.checkBox62:setTop(0);
obj.checkBox62:setWidth(26);
obj.checkBox62:setHeight(28);
obj.checkBox62:setField("Check_Box198");
obj.checkBox62:setName("checkBox62");
obj.layout63 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout63:setParent(obj.rectangle1);
obj.layout63:setLeft(68);
obj.layout63:setTop(689);
obj.layout63:setWidth(26);
obj.layout63:setHeight(27);
obj.layout63:setName("layout63");
obj.checkBox63 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox63:setParent(obj.layout63);
obj.checkBox63:setLeft(0);
obj.checkBox63:setTop(0);
obj.checkBox63:setWidth(26);
obj.checkBox63:setHeight(28);
obj.checkBox63:setField("Check_Box201");
obj.checkBox63:setName("checkBox63");
obj.layout64 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout64:setParent(obj.rectangle1);
obj.layout64:setLeft(67);
obj.layout64:setTop(711);
obj.layout64:setWidth(26);
obj.layout64:setHeight(27);
obj.layout64:setName("layout64");
obj.checkBox64 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox64:setParent(obj.layout64);
obj.checkBox64:setLeft(0);
obj.checkBox64:setTop(0);
obj.checkBox64:setWidth(26);
obj.checkBox64:setHeight(28);
obj.checkBox64:setField("Check_Box204");
obj.checkBox64:setName("checkBox64");
obj.layout65 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout65:setParent(obj.rectangle1);
obj.layout65:setLeft(68);
obj.layout65:setTop(733);
obj.layout65:setWidth(26);
obj.layout65:setHeight(27);
obj.layout65:setName("layout65");
obj.checkBox65 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox65:setParent(obj.layout65);
obj.checkBox65:setLeft(0);
obj.checkBox65:setTop(0);
obj.checkBox65:setWidth(26);
obj.checkBox65:setHeight(28);
obj.checkBox65:setField("Check_Box207");
obj.checkBox65:setName("checkBox65");
obj.layout66 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout66:setParent(obj.rectangle1);
obj.layout66:setLeft(68);
obj.layout66:setTop(755);
obj.layout66:setWidth(26);
obj.layout66:setHeight(27);
obj.layout66:setName("layout66");
obj.checkBox66 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox66:setParent(obj.layout66);
obj.checkBox66:setLeft(0);
obj.checkBox66:setTop(0);
obj.checkBox66:setWidth(26);
obj.checkBox66:setHeight(28);
obj.checkBox66:setField("Check_Box210");
obj.checkBox66:setName("checkBox66");
obj.layout67 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout67:setParent(obj.rectangle1);
obj.layout67:setLeft(68);
obj.layout67:setTop(776);
obj.layout67:setWidth(26);
obj.layout67:setHeight(27);
obj.layout67:setName("layout67");
obj.checkBox67 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox67:setParent(obj.layout67);
obj.checkBox67:setLeft(0);
obj.checkBox67:setTop(0);
obj.checkBox67:setWidth(26);
obj.checkBox67:setHeight(28);
obj.checkBox67:setField("Check_Box213");
obj.checkBox67:setName("checkBox67");
obj.layout68 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout68:setParent(obj.rectangle1);
obj.layout68:setLeft(822);
obj.layout68:setTop(105);
obj.layout68:setWidth(26);
obj.layout68:setHeight(27);
obj.layout68:setName("layout68");
obj.checkBox68 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox68:setParent(obj.layout68);
obj.checkBox68:setLeft(0);
obj.checkBox68:setTop(0);
obj.checkBox68:setWidth(26);
obj.checkBox68:setHeight(28);
obj.checkBox68:setField("Check_Box372");
obj.checkBox68:setName("checkBox68");
obj.layout69 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout69:setParent(obj.rectangle1);
obj.layout69:setLeft(90);
obj.layout69:setTop(125);
obj.layout69:setWidth(26);
obj.layout69:setHeight(27);
obj.layout69:setName("layout69");
obj.checkBox69 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox69:setParent(obj.layout69);
obj.checkBox69:setLeft(0);
obj.checkBox69:setTop(0);
obj.checkBox69:setWidth(26);
obj.checkBox69:setHeight(28);
obj.checkBox69:setField("Check_Box125");
obj.checkBox69:setName("checkBox69");
obj.layout70 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout70:setParent(obj.rectangle1);
obj.layout70:setLeft(661);
obj.layout70:setTop(107);
obj.layout70:setWidth(111);
obj.layout70:setHeight(21);
obj.layout70:setName("layout70");
obj.edit1 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit1:setParent(obj.layout70);
obj.edit1:setTransparent(true);
obj.edit1:setFontSize(13.5);
obj.edit1:setFontColor("#000000");
obj.edit1:setHorzTextAlign("leading");
obj.edit1:setVertTextAlign("center");
obj.edit1:setLeft(0);
obj.edit1:setTop(0);
obj.edit1:setWidth(111);
obj.edit1:setHeight(22);
obj.edit1:setField("NOME_31");
obj.edit1:setName("edit1");
obj.layout71 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout71:setParent(obj.rectangle1);
obj.layout71:setLeft(661);
obj.layout71:setTop(129);
obj.layout71:setWidth(55);
obj.layout71:setHeight(21);
obj.layout71:setName("layout71");
obj.edit2 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit2:setParent(obj.layout71);
obj.edit2:setTransparent(true);
obj.edit2:setFontSize(13.5);
obj.edit2:setFontColor("#000000");
obj.edit2:setHorzTextAlign("leading");
obj.edit2:setVertTextAlign("center");
obj.edit2:setLeft(0);
obj.edit2:setTop(0);
obj.edit2:setWidth(55);
obj.edit2:setHeight(22);
obj.edit2:setField("INFLUÊNCIA");
obj.edit2:setName("edit2");
obj.layout72 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout72:setParent(obj.rectangle1);
obj.layout72:setLeft(773);
obj.layout72:setTop(129);
obj.layout72:setWidth(93);
obj.layout72:setHeight(21);
obj.layout72:setName("layout72");
obj.edit3 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit3:setParent(obj.layout72);
obj.edit3:setTransparent(true);
obj.edit3:setFontSize(13.5);
obj.edit3:setFontColor("#000000");
obj.edit3:setHorzTextAlign("leading");
obj.edit3:setVertTextAlign("center");
obj.edit3:setLeft(0);
obj.edit3:setTop(0);
obj.edit3:setWidth(93);
obj.edit3:setHeight(22);
obj.edit3:setField("DEVOÇÃO");
obj.edit3:setName("edit3");
obj.layout73 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout73:setParent(obj.rectangle1);
obj.layout73:setLeft(49);
obj.layout73:setTop(149);
obj.layout73:setWidth(26);
obj.layout73:setHeight(27);
obj.layout73:setName("layout73");
obj.checkBox70 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox70:setParent(obj.layout73);
obj.checkBox70:setLeft(0);
obj.checkBox70:setTop(0);
obj.checkBox70:setWidth(26);
obj.checkBox70:setHeight(28);
obj.checkBox70:setField("Check_Box126");
obj.checkBox70:setName("checkBox70");
obj.layout74 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout74:setParent(obj.rectangle1);
obj.layout74:setLeft(69);
obj.layout74:setTop(149);
obj.layout74:setWidth(26);
obj.layout74:setHeight(27);
obj.layout74:setName("layout74");
obj.checkBox71 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox71:setParent(obj.layout74);
obj.checkBox71:setLeft(0);
obj.checkBox71:setTop(0);
obj.checkBox71:setWidth(26);
obj.checkBox71:setHeight(28);
obj.checkBox71:setField("Check_Box127");
obj.checkBox71:setName("checkBox71");
obj.layout75 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout75:setParent(obj.rectangle1);
obj.layout75:setLeft(89);
obj.layout75:setTop(149);
obj.layout75:setWidth(26);
obj.layout75:setHeight(27);
obj.layout75:setName("layout75");
obj.checkBox72 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox72:setParent(obj.layout75);
obj.checkBox72:setLeft(0);
obj.checkBox72:setTop(0);
obj.checkBox72:setWidth(26);
obj.checkBox72:setHeight(28);
obj.checkBox72:setField("Check_Box128");
obj.checkBox72:setName("checkBox72");
obj.layout76 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout76:setParent(obj.rectangle1);
obj.layout76:setLeft(89);
obj.layout76:setTop(169);
obj.layout76:setWidth(26);
obj.layout76:setHeight(27);
obj.layout76:setName("layout76");
obj.checkBox73 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox73:setParent(obj.layout76);
obj.checkBox73:setLeft(0);
obj.checkBox73:setTop(0);
obj.checkBox73:setWidth(26);
obj.checkBox73:setHeight(28);
obj.checkBox73:setField("Check_Box131");
obj.checkBox73:setName("checkBox73");
obj.layout77 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout77:setParent(obj.rectangle1);
obj.layout77:setLeft(89);
obj.layout77:setTop(189);
obj.layout77:setWidth(26);
obj.layout77:setHeight(27);
obj.layout77:setName("layout77");
obj.checkBox74 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox74:setParent(obj.layout77);
obj.checkBox74:setLeft(0);
obj.checkBox74:setTop(0);
obj.checkBox74:setWidth(26);
obj.checkBox74:setHeight(28);
obj.checkBox74:setField("Check_Box134");
obj.checkBox74:setName("checkBox74");
obj.layout78 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout78:setParent(obj.rectangle1);
obj.layout78:setLeft(89);
obj.layout78:setTop(213);
obj.layout78:setWidth(26);
obj.layout78:setHeight(27);
obj.layout78:setName("layout78");
obj.checkBox75 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox75:setParent(obj.layout78);
obj.checkBox75:setLeft(0);
obj.checkBox75:setTop(0);
obj.checkBox75:setWidth(26);
obj.checkBox75:setHeight(28);
obj.checkBox75:setField("Check_Box137");
obj.checkBox75:setName("checkBox75");
obj.layout79 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout79:setParent(obj.rectangle1);
obj.layout79:setLeft(89);
obj.layout79:setTop(233);
obj.layout79:setWidth(26);
obj.layout79:setHeight(27);
obj.layout79:setName("layout79");
obj.checkBox76 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox76:setParent(obj.layout79);
obj.checkBox76:setLeft(0);
obj.checkBox76:setTop(0);
obj.checkBox76:setWidth(26);
obj.checkBox76:setHeight(28);
obj.checkBox76:setField("Check_Box140");
obj.checkBox76:setName("checkBox76");
obj.layout80 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout80:setParent(obj.rectangle1);
obj.layout80:setLeft(90);
obj.layout80:setTop(255);
obj.layout80:setWidth(26);
obj.layout80:setHeight(27);
obj.layout80:setName("layout80");
obj.checkBox77 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox77:setParent(obj.layout80);
obj.checkBox77:setLeft(0);
obj.checkBox77:setTop(0);
obj.checkBox77:setWidth(26);
obj.checkBox77:setHeight(28);
obj.checkBox77:setField("Check_Box143");
obj.checkBox77:setName("checkBox77");
obj.layout81 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout81:setParent(obj.rectangle1);
obj.layout81:setLeft(90);
obj.layout81:setTop(277);
obj.layout81:setWidth(26);
obj.layout81:setHeight(27);
obj.layout81:setName("layout81");
obj.checkBox78 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox78:setParent(obj.layout81);
obj.checkBox78:setLeft(0);
obj.checkBox78:setTop(0);
obj.checkBox78:setWidth(26);
obj.checkBox78:setHeight(28);
obj.checkBox78:setField("Check_Box145");
obj.checkBox78:setName("checkBox78");
obj.layout82 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout82:setParent(obj.rectangle1);
obj.layout82:setLeft(90);
obj.layout82:setTop(298);
obj.layout82:setWidth(26);
obj.layout82:setHeight(27);
obj.layout82:setName("layout82");
obj.checkBox79 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox79:setParent(obj.layout82);
obj.checkBox79:setLeft(0);
obj.checkBox79:setTop(0);
obj.checkBox79:setWidth(26);
obj.checkBox79:setHeight(28);
obj.checkBox79:setField("Check_Box148");
obj.checkBox79:setName("checkBox79");
obj.layout83 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout83:setParent(obj.rectangle1);
obj.layout83:setLeft(90);
obj.layout83:setTop(319);
obj.layout83:setWidth(26);
obj.layout83:setHeight(27);
obj.layout83:setName("layout83");
obj.checkBox80 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox80:setParent(obj.layout83);
obj.checkBox80:setLeft(0);
obj.checkBox80:setTop(0);
obj.checkBox80:setWidth(26);
obj.checkBox80:setHeight(28);
obj.checkBox80:setField("Check_Box151");
obj.checkBox80:setName("checkBox80");
obj.layout84 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout84:setParent(obj.rectangle1);
obj.layout84:setLeft(90);
obj.layout84:setTop(341);
obj.layout84:setWidth(26);
obj.layout84:setHeight(27);
obj.layout84:setName("layout84");
obj.checkBox81 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox81:setParent(obj.layout84);
obj.checkBox81:setLeft(0);
obj.checkBox81:setTop(0);
obj.checkBox81:setWidth(26);
obj.checkBox81:setHeight(28);
obj.checkBox81:setField("Check_Box154");
obj.checkBox81:setName("checkBox81");
obj.layout85 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout85:setParent(obj.rectangle1);
obj.layout85:setLeft(91);
obj.layout85:setTop(363);
obj.layout85:setWidth(26);
obj.layout85:setHeight(27);
obj.layout85:setName("layout85");
obj.checkBox82 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox82:setParent(obj.layout85);
obj.checkBox82:setLeft(0);
obj.checkBox82:setTop(0);
obj.checkBox82:setWidth(26);
obj.checkBox82:setHeight(28);
obj.checkBox82:setField("Check_Box157");
obj.checkBox82:setName("checkBox82");
obj.layout86 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout86:setParent(obj.rectangle1);
obj.layout86:setLeft(90);
obj.layout86:setTop(385);
obj.layout86:setWidth(26);
obj.layout86:setHeight(27);
obj.layout86:setName("layout86");
obj.checkBox83 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox83:setParent(obj.layout86);
obj.checkBox83:setLeft(0);
obj.checkBox83:setTop(0);
obj.checkBox83:setWidth(26);
obj.checkBox83:setHeight(28);
obj.checkBox83:setField("Check_Box160");
obj.checkBox83:setName("checkBox83");
obj.layout87 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout87:setParent(obj.rectangle1);
obj.layout87:setLeft(90);
obj.layout87:setTop(408);
obj.layout87:setWidth(26);
obj.layout87:setHeight(27);
obj.layout87:setName("layout87");
obj.checkBox84 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox84:setParent(obj.layout87);
obj.checkBox84:setLeft(0);
obj.checkBox84:setTop(0);
obj.checkBox84:setWidth(26);
obj.checkBox84:setHeight(28);
obj.checkBox84:setField("Check_Box163");
obj.checkBox84:setName("checkBox84");
obj.layout88 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout88:setParent(obj.rectangle1);
obj.layout88:setLeft(90);
obj.layout88:setTop(429);
obj.layout88:setWidth(26);
obj.layout88:setHeight(27);
obj.layout88:setName("layout88");
obj.checkBox85 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox85:setParent(obj.layout88);
obj.checkBox85:setLeft(0);
obj.checkBox85:setTop(0);
obj.checkBox85:setWidth(26);
obj.checkBox85:setHeight(28);
obj.checkBox85:setField("Check_Box166");
obj.checkBox85:setName("checkBox85");
obj.layout89 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout89:setParent(obj.rectangle1);
obj.layout89:setLeft(89);
obj.layout89:setTop(450);
obj.layout89:setWidth(26);
obj.layout89:setHeight(27);
obj.layout89:setName("layout89");
obj.checkBox86 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox86:setParent(obj.layout89);
obj.checkBox86:setLeft(0);
obj.checkBox86:setTop(0);
obj.checkBox86:setWidth(26);
obj.checkBox86:setHeight(28);
obj.checkBox86:setField("Check_Box169");
obj.checkBox86:setName("checkBox86");
obj.layout90 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout90:setParent(obj.rectangle1);
obj.layout90:setLeft(89);
obj.layout90:setTop(471);
obj.layout90:setWidth(26);
obj.layout90:setHeight(27);
obj.layout90:setName("layout90");
obj.checkBox87 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox87:setParent(obj.layout90);
obj.checkBox87:setLeft(0);
obj.checkBox87:setTop(0);
obj.checkBox87:setWidth(26);
obj.checkBox87:setHeight(28);
obj.checkBox87:setField("Check_Box172");
obj.checkBox87:setName("checkBox87");
obj.layout91 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout91:setParent(obj.rectangle1);
obj.layout91:setLeft(89);
obj.layout91:setTop(493);
obj.layout91:setWidth(26);
obj.layout91:setHeight(27);
obj.layout91:setName("layout91");
obj.checkBox88 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox88:setParent(obj.layout91);
obj.checkBox88:setLeft(0);
obj.checkBox88:setTop(0);
obj.checkBox88:setWidth(26);
obj.checkBox88:setHeight(28);
obj.checkBox88:setField("Check_Box175");
obj.checkBox88:setName("checkBox88");
obj.layout92 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout92:setParent(obj.rectangle1);
obj.layout92:setLeft(88);
obj.layout92:setTop(515);
obj.layout92:setWidth(26);
obj.layout92:setHeight(27);
obj.layout92:setName("layout92");
obj.checkBox89 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox89:setParent(obj.layout92);
obj.checkBox89:setLeft(0);
obj.checkBox89:setTop(0);
obj.checkBox89:setWidth(26);
obj.checkBox89:setHeight(28);
obj.checkBox89:setField("Check_Box178");
obj.checkBox89:setName("checkBox89");
obj.layout93 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout93:setParent(obj.rectangle1);
obj.layout93:setLeft(88);
obj.layout93:setTop(538);
obj.layout93:setWidth(26);
obj.layout93:setHeight(27);
obj.layout93:setName("layout93");
obj.checkBox90 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox90:setParent(obj.layout93);
obj.checkBox90:setLeft(0);
obj.checkBox90:setTop(0);
obj.checkBox90:setWidth(26);
obj.checkBox90:setHeight(28);
obj.checkBox90:setField("Check_Box181");
obj.checkBox90:setName("checkBox90");
obj.layout94 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout94:setParent(obj.rectangle1);
obj.layout94:setLeft(90);
obj.layout94:setTop(559);
obj.layout94:setWidth(26);
obj.layout94:setHeight(27);
obj.layout94:setName("layout94");
obj.checkBox91 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox91:setParent(obj.layout94);
obj.checkBox91:setLeft(0);
obj.checkBox91:setTop(0);
obj.checkBox91:setWidth(26);
obj.checkBox91:setHeight(28);
obj.checkBox91:setField("Check_Box184");
obj.checkBox91:setName("checkBox91");
obj.layout95 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout95:setParent(obj.rectangle1);
obj.layout95:setLeft(90);
obj.layout95:setTop(582);
obj.layout95:setWidth(26);
obj.layout95:setHeight(27);
obj.layout95:setName("layout95");
obj.checkBox92 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox92:setParent(obj.layout95);
obj.checkBox92:setLeft(0);
obj.checkBox92:setTop(0);
obj.checkBox92:setWidth(26);
obj.checkBox92:setHeight(28);
obj.checkBox92:setField("Check_Box187");
obj.checkBox92:setName("checkBox92");
obj.layout96 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout96:setParent(obj.rectangle1);
obj.layout96:setLeft(90);
obj.layout96:setTop(602);
obj.layout96:setWidth(26);
obj.layout96:setHeight(27);
obj.layout96:setName("layout96");
obj.checkBox93 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox93:setParent(obj.layout96);
obj.checkBox93:setLeft(0);
obj.checkBox93:setTop(0);
obj.checkBox93:setWidth(26);
obj.checkBox93:setHeight(28);
obj.checkBox93:setField("Check_Box190");
obj.checkBox93:setName("checkBox93");
obj.layout97 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout97:setParent(obj.rectangle1);
obj.layout97:setLeft(90);
obj.layout97:setTop(624);
obj.layout97:setWidth(26);
obj.layout97:setHeight(27);
obj.layout97:setName("layout97");
obj.checkBox94 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox94:setParent(obj.layout97);
obj.checkBox94:setLeft(0);
obj.checkBox94:setTop(0);
obj.checkBox94:setWidth(26);
obj.checkBox94:setHeight(28);
obj.checkBox94:setField("Check_Box193");
obj.checkBox94:setName("checkBox94");
obj.layout98 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout98:setParent(obj.rectangle1);
obj.layout98:setLeft(90);
obj.layout98:setTop(645);
obj.layout98:setWidth(26);
obj.layout98:setHeight(27);
obj.layout98:setName("layout98");
obj.checkBox95 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox95:setParent(obj.layout98);
obj.checkBox95:setLeft(0);
obj.checkBox95:setTop(0);
obj.checkBox95:setWidth(26);
obj.checkBox95:setHeight(28);
obj.checkBox95:setField("Check_Box196");
obj.checkBox95:setName("checkBox95");
obj.layout99 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout99:setParent(obj.rectangle1);
obj.layout99:setLeft(89);
obj.layout99:setTop(667);
obj.layout99:setWidth(26);
obj.layout99:setHeight(27);
obj.layout99:setName("layout99");
obj.checkBox96 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox96:setParent(obj.layout99);
obj.checkBox96:setLeft(0);
obj.checkBox96:setTop(0);
obj.checkBox96:setWidth(26);
obj.checkBox96:setHeight(28);
obj.checkBox96:setField("Check_Box199");
obj.checkBox96:setName("checkBox96");
obj.layout100 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout100:setParent(obj.rectangle1);
obj.layout100:setLeft(89);
obj.layout100:setTop(690);
obj.layout100:setWidth(26);
obj.layout100:setHeight(27);
obj.layout100:setName("layout100");
obj.checkBox97 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox97:setParent(obj.layout100);
obj.checkBox97:setLeft(0);
obj.checkBox97:setTop(0);
obj.checkBox97:setWidth(26);
obj.checkBox97:setHeight(28);
obj.checkBox97:setField("Check_Box202");
obj.checkBox97:setName("checkBox97");
obj.layout101 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout101:setParent(obj.rectangle1);
obj.layout101:setLeft(89);
obj.layout101:setTop(711);
obj.layout101:setWidth(26);
obj.layout101:setHeight(27);
obj.layout101:setName("layout101");
obj.checkBox98 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox98:setParent(obj.layout101);
obj.checkBox98:setLeft(0);
obj.checkBox98:setTop(0);
obj.checkBox98:setWidth(26);
obj.checkBox98:setHeight(28);
obj.checkBox98:setField("Check_Box205");
obj.checkBox98:setName("checkBox98");
obj.layout102 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout102:setParent(obj.rectangle1);
obj.layout102:setLeft(89);
obj.layout102:setTop(733);
obj.layout102:setWidth(26);
obj.layout102:setHeight(27);
obj.layout102:setName("layout102");
obj.checkBox99 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox99:setParent(obj.layout102);
obj.checkBox99:setLeft(0);
obj.checkBox99:setTop(0);
obj.checkBox99:setWidth(26);
obj.checkBox99:setHeight(28);
obj.checkBox99:setField("Check_Box208");
obj.checkBox99:setName("checkBox99");
obj.layout103 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout103:setParent(obj.rectangle1);
obj.layout103:setLeft(90);
obj.layout103:setTop(755);
obj.layout103:setWidth(26);
obj.layout103:setHeight(27);
obj.layout103:setName("layout103");
obj.checkBox100 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox100:setParent(obj.layout103);
obj.checkBox100:setLeft(0);
obj.checkBox100:setTop(0);
obj.checkBox100:setWidth(26);
obj.checkBox100:setHeight(28);
obj.checkBox100:setField("Check_Box211");
obj.checkBox100:setName("checkBox100");
obj.layout104 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout104:setParent(obj.rectangle1);
obj.layout104:setLeft(90);
obj.layout104:setTop(776);
obj.layout104:setWidth(26);
obj.layout104:setHeight(27);
obj.layout104:setName("layout104");
obj.checkBox101 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox101:setParent(obj.layout104);
obj.checkBox101:setLeft(0);
obj.checkBox101:setTop(0);
obj.checkBox101:setWidth(26);
obj.checkBox101:setHeight(28);
obj.checkBox101:setField("Check_Box214");
obj.checkBox101:setName("checkBox101");
obj.layout105 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout105:setParent(obj.rectangle1);
obj.layout105:setLeft(843);
obj.layout105:setTop(104);
obj.layout105:setWidth(26);
obj.layout105:setHeight(27);
obj.layout105:setName("layout105");
obj.checkBox102 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox102:setParent(obj.layout105);
obj.checkBox102:setLeft(0);
obj.checkBox102:setTop(0);
obj.checkBox102:setWidth(26);
obj.checkBox102:setHeight(28);
obj.checkBox102:setField("Check_Box373");
obj.checkBox102:setName("checkBox102");
obj.layout106 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout106:setParent(obj.rectangle1);
obj.layout106:setLeft(822);
obj.layout106:setTop(199);
obj.layout106:setWidth(26);
obj.layout106:setHeight(27);
obj.layout106:setName("layout106");
obj.checkBox103 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox103:setParent(obj.layout106);
obj.checkBox103:setLeft(0);
obj.checkBox103:setTop(0);
obj.checkBox103:setWidth(26);
obj.checkBox103:setHeight(28);
obj.checkBox103:setField("Check_Box374");
obj.checkBox103:setName("checkBox103");
obj.layout107 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout107:setParent(obj.rectangle1);
obj.layout107:setLeft(844);
obj.layout107:setTop(199);
obj.layout107:setWidth(26);
obj.layout107:setHeight(27);
obj.layout107:setName("layout107");
obj.checkBox104 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox104:setParent(obj.layout107);
obj.checkBox104:setLeft(0);
obj.checkBox104:setTop(0);
obj.checkBox104:setWidth(26);
obj.checkBox104:setHeight(28);
obj.checkBox104:setField("Check_Box375");
obj.checkBox104:setName("checkBox104");
obj.layout108 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout108:setParent(obj.rectangle1);
obj.layout108:setLeft(822);
obj.layout108:setTop(294);
obj.layout108:setWidth(26);
obj.layout108:setHeight(27);
obj.layout108:setName("layout108");
obj.checkBox105 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox105:setParent(obj.layout108);
obj.checkBox105:setLeft(0);
obj.checkBox105:setTop(0);
obj.checkBox105:setWidth(26);
obj.checkBox105:setHeight(28);
obj.checkBox105:setField("Check_Box376");
obj.checkBox105:setName("checkBox105");
obj.layout109 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout109:setParent(obj.rectangle1);
obj.layout109:setLeft(843);
obj.layout109:setTop(294);
obj.layout109:setWidth(26);
obj.layout109:setHeight(27);
obj.layout109:setName("layout109");
obj.checkBox106 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox106:setParent(obj.layout109);
obj.checkBox106:setLeft(0);
obj.checkBox106:setTop(0);
obj.checkBox106:setWidth(26);
obj.checkBox106:setHeight(28);
obj.checkBox106:setField("Check_Box377");
obj.checkBox106:setName("checkBox106");
obj.layout110 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout110:setParent(obj.rectangle1);
obj.layout110:setLeft(118);
obj.layout110:setTop(392);
obj.layout110:setWidth(193);
obj.layout110:setHeight(20);
obj.layout110:setName("layout110");
obj.edit4 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit4:setParent(obj.layout110);
obj.edit4:setTransparent(true);
obj.edit4:setFontSize(12.8);
obj.edit4:setFontColor("#000000");
obj.edit4:setHorzTextAlign("leading");
obj.edit4:setVertTextAlign("center");
obj.edit4:setLeft(0);
obj.edit4:setTop(0);
obj.edit4:setWidth(193);
obj.edit4:setHeight(21);
obj.edit4:setField("Personagens_Encontrados_12");
obj.edit4:setName("edit4");
obj.layout111 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout111:setParent(obj.rectangle1);
obj.layout111:setLeft(822);
obj.layout111:setTop(387);
obj.layout111:setWidth(26);
obj.layout111:setHeight(27);
obj.layout111:setName("layout111");
obj.checkBox107 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox107:setParent(obj.layout111);
obj.checkBox107:setLeft(0);
obj.checkBox107:setTop(0);
obj.checkBox107:setWidth(26);
obj.checkBox107:setHeight(28);
obj.checkBox107:setField("Check_Box378");
obj.checkBox107:setName("checkBox107");
obj.layout112 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout112:setParent(obj.rectangle1);
obj.layout112:setLeft(844);
obj.layout112:setTop(387);
obj.layout112:setWidth(26);
obj.layout112:setHeight(27);
obj.layout112:setName("layout112");
obj.checkBox108 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox108:setParent(obj.layout112);
obj.checkBox108:setLeft(0);
obj.checkBox108:setTop(0);
obj.checkBox108:setWidth(26);
obj.checkBox108:setHeight(28);
obj.checkBox108:setField("Check_Box379");
obj.checkBox108:setName("checkBox108");
obj.layout113 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout113:setParent(obj.rectangle1);
obj.layout113:setLeft(349);
obj.layout113:setTop(188);
obj.layout113:setWidth(26);
obj.layout113:setHeight(27);
obj.layout113:setName("layout113");
obj.checkBox109 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox109:setParent(obj.layout113);
obj.checkBox109:setLeft(0);
obj.checkBox109:setTop(0);
obj.checkBox109:setWidth(26);
obj.checkBox109:setHeight(28);
obj.checkBox109:setField("Check_Box289");
obj.checkBox109:setName("checkBox109");
obj.layout114 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout114:setParent(obj.rectangle1);
obj.layout114:setLeft(348);
obj.layout114:setTop(211);
obj.layout114:setWidth(26);
obj.layout114:setHeight(27);
obj.layout114:setName("layout114");
obj.checkBox110 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox110:setParent(obj.layout114);
obj.checkBox110:setLeft(0);
obj.checkBox110:setTop(0);
obj.checkBox110:setWidth(26);
obj.checkBox110:setHeight(28);
obj.checkBox110:setField("Check_Box292");
obj.checkBox110:setName("checkBox110");
obj.layout115 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout115:setParent(obj.rectangle1);
obj.layout115:setLeft(347);
obj.layout115:setTop(234);
obj.layout115:setWidth(26);
obj.layout115:setHeight(27);
obj.layout115:setName("layout115");
obj.checkBox111 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox111:setParent(obj.layout115);
obj.checkBox111:setLeft(0);
obj.checkBox111:setTop(0);
obj.checkBox111:setWidth(26);
obj.checkBox111:setHeight(28);
obj.checkBox111:setField("Check_Box295");
obj.checkBox111:setName("checkBox111");
obj.layout116 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout116:setParent(obj.rectangle1);
obj.layout116:setLeft(349);
obj.layout116:setTop(256);
obj.layout116:setWidth(26);
obj.layout116:setHeight(27);
obj.layout116:setName("layout116");
obj.checkBox112 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox112:setParent(obj.layout116);
obj.checkBox112:setLeft(0);
obj.checkBox112:setTop(0);
obj.checkBox112:setWidth(26);
obj.checkBox112:setHeight(28);
obj.checkBox112:setField("Check_Box298");
obj.checkBox112:setName("checkBox112");
obj.layout117 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout117:setParent(obj.rectangle1);
obj.layout117:setLeft(347);
obj.layout117:setTop(278);
obj.layout117:setWidth(26);
obj.layout117:setHeight(27);
obj.layout117:setName("layout117");
obj.checkBox113 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox113:setParent(obj.layout117);
obj.checkBox113:setLeft(0);
obj.checkBox113:setTop(0);
obj.checkBox113:setWidth(26);
obj.checkBox113:setHeight(28);
obj.checkBox113:setField("Check_Box301");
obj.checkBox113:setName("checkBox113");
obj.layout118 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout118:setParent(obj.rectangle1);
obj.layout118:setLeft(349);
obj.layout118:setTop(300);
obj.layout118:setWidth(26);
obj.layout118:setHeight(27);
obj.layout118:setName("layout118");
obj.checkBox114 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox114:setParent(obj.layout118);
obj.checkBox114:setLeft(0);
obj.checkBox114:setTop(0);
obj.checkBox114:setWidth(26);
obj.checkBox114:setHeight(28);
obj.checkBox114:setField("Check_Box304");
obj.checkBox114:setName("checkBox114");
obj.layout119 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout119:setParent(obj.rectangle1);
obj.layout119:setLeft(348);
obj.layout119:setTop(320);
obj.layout119:setWidth(26);
obj.layout119:setHeight(27);
obj.layout119:setName("layout119");
obj.checkBox115 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox115:setParent(obj.layout119);
obj.checkBox115:setLeft(0);
obj.checkBox115:setTop(0);
obj.checkBox115:setWidth(26);
obj.checkBox115:setHeight(28);
obj.checkBox115:setField("Check_Box307");
obj.checkBox115:setName("checkBox115");
obj.layout120 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout120:setParent(obj.rectangle1);
obj.layout120:setLeft(348);
obj.layout120:setTop(342);
obj.layout120:setWidth(26);
obj.layout120:setHeight(27);
obj.layout120:setName("layout120");
obj.checkBox116 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox116:setParent(obj.layout120);
obj.checkBox116:setLeft(0);
obj.checkBox116:setTop(0);
obj.checkBox116:setWidth(26);
obj.checkBox116:setHeight(28);
obj.checkBox116:setField("Check_Box310");
obj.checkBox116:setName("checkBox116");
obj.layout121 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout121:setParent(obj.rectangle1);
obj.layout121:setLeft(349);
obj.layout121:setTop(364);
obj.layout121:setWidth(26);
obj.layout121:setHeight(27);
obj.layout121:setName("layout121");
obj.checkBox117 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox117:setParent(obj.layout121);
obj.checkBox117:setLeft(0);
obj.checkBox117:setTop(0);
obj.checkBox117:setWidth(26);
obj.checkBox117:setHeight(28);
obj.checkBox117:setField("Check_Box313");
obj.checkBox117:setName("checkBox117");
obj.layout122 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout122:setParent(obj.rectangle1);
obj.layout122:setLeft(348);
obj.layout122:setTop(387);
obj.layout122:setWidth(26);
obj.layout122:setHeight(27);
obj.layout122:setName("layout122");
obj.checkBox118 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox118:setParent(obj.layout122);
obj.checkBox118:setLeft(0);
obj.checkBox118:setTop(0);
obj.checkBox118:setWidth(26);
obj.checkBox118:setHeight(28);
obj.checkBox118:setField("Check_Box316");
obj.checkBox118:setName("checkBox118");
obj.layout123 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout123:setParent(obj.rectangle1);
obj.layout123:setLeft(348);
obj.layout123:setTop(409);
obj.layout123:setWidth(26);
obj.layout123:setHeight(27);
obj.layout123:setName("layout123");
obj.checkBox119 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox119:setParent(obj.layout123);
obj.checkBox119:setLeft(0);
obj.checkBox119:setTop(0);
obj.checkBox119:setWidth(26);
obj.checkBox119:setHeight(28);
obj.checkBox119:setField("Check_Box319");
obj.checkBox119:setName("checkBox119");
obj.layout124 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout124:setParent(obj.rectangle1);
obj.layout124:setLeft(349);
obj.layout124:setTop(429);
obj.layout124:setWidth(26);
obj.layout124:setHeight(27);
obj.layout124:setName("layout124");
obj.checkBox120 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox120:setParent(obj.layout124);
obj.checkBox120:setLeft(0);
obj.checkBox120:setTop(0);
obj.checkBox120:setWidth(26);
obj.checkBox120:setHeight(28);
obj.checkBox120:setField("Check_Box322");
obj.checkBox120:setName("checkBox120");
obj.layout125 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout125:setParent(obj.rectangle1);
obj.layout125:setLeft(348);
obj.layout125:setTop(450);
obj.layout125:setWidth(26);
obj.layout125:setHeight(27);
obj.layout125:setName("layout125");
obj.checkBox121 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox121:setParent(obj.layout125);
obj.checkBox121:setLeft(0);
obj.checkBox121:setTop(0);
obj.checkBox121:setWidth(26);
obj.checkBox121:setHeight(28);
obj.checkBox121:setField("Check_Box325");
obj.checkBox121:setName("checkBox121");
obj.layout126 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout126:setParent(obj.rectangle1);
obj.layout126:setLeft(347);
obj.layout126:setTop(472);
obj.layout126:setWidth(26);
obj.layout126:setHeight(27);
obj.layout126:setName("layout126");
obj.checkBox122 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox122:setParent(obj.layout126);
obj.checkBox122:setLeft(0);
obj.checkBox122:setTop(0);
obj.checkBox122:setWidth(26);
obj.checkBox122:setHeight(28);
obj.checkBox122:setField("Check_Box328");
obj.checkBox122:setName("checkBox122");
obj.layout127 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout127:setParent(obj.rectangle1);
obj.layout127:setLeft(348);
obj.layout127:setTop(495);
obj.layout127:setWidth(26);
obj.layout127:setHeight(27);
obj.layout127:setName("layout127");
obj.checkBox123 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox123:setParent(obj.layout127);
obj.checkBox123:setLeft(0);
obj.checkBox123:setTop(0);
obj.checkBox123:setWidth(26);
obj.checkBox123:setHeight(28);
obj.checkBox123:setField("Check_Box331");
obj.checkBox123:setName("checkBox123");
obj.layout128 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout128:setParent(obj.rectangle1);
obj.layout128:setLeft(347);
obj.layout128:setTop(515);
obj.layout128:setWidth(26);
obj.layout128:setHeight(27);
obj.layout128:setName("layout128");
obj.checkBox124 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox124:setParent(obj.layout128);
obj.checkBox124:setLeft(0);
obj.checkBox124:setTop(0);
obj.checkBox124:setWidth(26);
obj.checkBox124:setHeight(28);
obj.checkBox124:setField("Check_Box334");
obj.checkBox124:setName("checkBox124");
obj.layout129 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout129:setParent(obj.rectangle1);
obj.layout129:setLeft(346);
obj.layout129:setTop(536);
obj.layout129:setWidth(26);
obj.layout129:setHeight(27);
obj.layout129:setName("layout129");
obj.checkBox125 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox125:setParent(obj.layout129);
obj.checkBox125:setLeft(0);
obj.checkBox125:setTop(0);
obj.checkBox125:setWidth(26);
obj.checkBox125:setHeight(28);
obj.checkBox125:setField("Check_Box337");
obj.checkBox125:setName("checkBox125");
obj.layout130 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout130:setParent(obj.rectangle1);
obj.layout130:setLeft(349);
obj.layout130:setTop(560);
obj.layout130:setWidth(26);
obj.layout130:setHeight(27);
obj.layout130:setName("layout130");
obj.checkBox126 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox126:setParent(obj.layout130);
obj.checkBox126:setLeft(0);
obj.checkBox126:setTop(0);
obj.checkBox126:setWidth(26);
obj.checkBox126:setHeight(28);
obj.checkBox126:setField("Check_Box340");
obj.checkBox126:setName("checkBox126");
obj.layout131 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout131:setParent(obj.rectangle1);
obj.layout131:setLeft(349);
obj.layout131:setTop(580);
obj.layout131:setWidth(26);
obj.layout131:setHeight(27);
obj.layout131:setName("layout131");
obj.checkBox127 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox127:setParent(obj.layout131);
obj.checkBox127:setLeft(0);
obj.checkBox127:setTop(0);
obj.checkBox127:setWidth(26);
obj.checkBox127:setHeight(28);
obj.checkBox127:setField("Check_Box343");
obj.checkBox127:setName("checkBox127");
obj.layout132 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout132:setParent(obj.rectangle1);
obj.layout132:setLeft(347);
obj.layout132:setTop(601);
obj.layout132:setWidth(26);
obj.layout132:setHeight(27);
obj.layout132:setName("layout132");
obj.checkBox128 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox128:setParent(obj.layout132);
obj.checkBox128:setLeft(0);
obj.checkBox128:setTop(0);
obj.checkBox128:setWidth(26);
obj.checkBox128:setHeight(28);
obj.checkBox128:setField("Check_Box346");
obj.checkBox128:setName("checkBox128");
obj.layout133 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout133:setParent(obj.rectangle1);
obj.layout133:setLeft(349);
obj.layout133:setTop(625);
obj.layout133:setWidth(26);
obj.layout133:setHeight(27);
obj.layout133:setName("layout133");
obj.checkBox129 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox129:setParent(obj.layout133);
obj.checkBox129:setLeft(0);
obj.checkBox129:setTop(0);
obj.checkBox129:setWidth(26);
obj.checkBox129:setHeight(28);
obj.checkBox129:setField("Check_Box349");
obj.checkBox129:setName("checkBox129");
obj.layout134 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout134:setParent(obj.rectangle1);
obj.layout134:setLeft(347);
obj.layout134:setTop(646);
obj.layout134:setWidth(26);
obj.layout134:setHeight(27);
obj.layout134:setName("layout134");
obj.checkBox130 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox130:setParent(obj.layout134);
obj.checkBox130:setLeft(0);
obj.checkBox130:setTop(0);
obj.checkBox130:setWidth(26);
obj.checkBox130:setHeight(28);
obj.checkBox130:setField("Check_Box352");
obj.checkBox130:setName("checkBox130");
obj.layout135 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout135:setParent(obj.rectangle1);
obj.layout135:setLeft(349);
obj.layout135:setTop(668);
obj.layout135:setWidth(26);
obj.layout135:setHeight(27);
obj.layout135:setName("layout135");
obj.checkBox131 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox131:setParent(obj.layout135);
obj.checkBox131:setLeft(0);
obj.checkBox131:setTop(0);
obj.checkBox131:setWidth(26);
obj.checkBox131:setHeight(28);
obj.checkBox131:setField("Check_Box355");
obj.checkBox131:setName("checkBox131");
obj.layout136 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout136:setParent(obj.rectangle1);
obj.layout136:setLeft(348);
obj.layout136:setTop(691);
obj.layout136:setWidth(26);
obj.layout136:setHeight(27);
obj.layout136:setName("layout136");
obj.checkBox132 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox132:setParent(obj.layout136);
obj.checkBox132:setLeft(0);
obj.checkBox132:setTop(0);
obj.checkBox132:setWidth(26);
obj.checkBox132:setHeight(28);
obj.checkBox132:setField("Check_Box358");
obj.checkBox132:setName("checkBox132");
obj.layout137 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout137:setParent(obj.rectangle1);
obj.layout137:setLeft(347);
obj.layout137:setTop(712);
obj.layout137:setWidth(26);
obj.layout137:setHeight(27);
obj.layout137:setName("layout137");
obj.checkBox133 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox133:setParent(obj.layout137);
obj.checkBox133:setLeft(0);
obj.checkBox133:setTop(0);
obj.checkBox133:setWidth(26);
obj.checkBox133:setHeight(28);
obj.checkBox133:setField("Check_Box361");
obj.checkBox133:setName("checkBox133");
obj.layout138 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout138:setParent(obj.rectangle1);
obj.layout138:setLeft(349);
obj.layout138:setTop(734);
obj.layout138:setWidth(26);
obj.layout138:setHeight(27);
obj.layout138:setName("layout138");
obj.checkBox134 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox134:setParent(obj.layout138);
obj.checkBox134:setLeft(0);
obj.checkBox134:setTop(0);
obj.checkBox134:setWidth(26);
obj.checkBox134:setHeight(28);
obj.checkBox134:setField("Check_Box364");
obj.checkBox134:setName("checkBox134");
obj.layout139 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout139:setParent(obj.rectangle1);
obj.layout139:setLeft(347);
obj.layout139:setTop(755);
obj.layout139:setWidth(26);
obj.layout139:setHeight(27);
obj.layout139:setName("layout139");
obj.checkBox135 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox135:setParent(obj.layout139);
obj.checkBox135:setLeft(0);
obj.checkBox135:setTop(0);
obj.checkBox135:setWidth(26);
obj.checkBox135:setHeight(28);
obj.checkBox135:setField("Check_Box367");
obj.checkBox135:setName("checkBox135");
obj.layout140 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout140:setParent(obj.rectangle1);
obj.layout140:setLeft(349);
obj.layout140:setTop(776);
obj.layout140:setWidth(26);
obj.layout140:setHeight(27);
obj.layout140:setName("layout140");
obj.checkBox136 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox136:setParent(obj.layout140);
obj.checkBox136:setLeft(0);
obj.checkBox136:setTop(0);
obj.checkBox136:setWidth(26);
obj.checkBox136:setHeight(28);
obj.checkBox136:setField("Check_Box370");
obj.checkBox136:setName("checkBox136");
obj.layout141 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout141:setParent(obj.rectangle1);
obj.layout141:setLeft(367);
obj.layout141:setTop(189);
obj.layout141:setWidth(26);
obj.layout141:setHeight(27);
obj.layout141:setName("layout141");
obj.checkBox137 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox137:setParent(obj.layout141);
obj.checkBox137:setLeft(0);
obj.checkBox137:setTop(0);
obj.checkBox137:setWidth(26);
obj.checkBox137:setHeight(28);
obj.checkBox137:setField("Check_Box290");
obj.checkBox137:setName("checkBox137");
obj.layout142 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout142:setParent(obj.rectangle1);
obj.layout142:setLeft(367);
obj.layout142:setTop(211);
obj.layout142:setWidth(26);
obj.layout142:setHeight(27);
obj.layout142:setName("layout142");
obj.checkBox138 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox138:setParent(obj.layout142);
obj.checkBox138:setLeft(0);
obj.checkBox138:setTop(0);
obj.checkBox138:setWidth(26);
obj.checkBox138:setHeight(28);
obj.checkBox138:setField("Check_Box293");
obj.checkBox138:setName("checkBox138");
obj.layout143 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout143:setParent(obj.rectangle1);
obj.layout143:setLeft(368);
obj.layout143:setTop(233);
obj.layout143:setWidth(26);
obj.layout143:setHeight(27);
obj.layout143:setName("layout143");
obj.checkBox139 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox139:setParent(obj.layout143);
obj.checkBox139:setLeft(0);
obj.checkBox139:setTop(0);
obj.checkBox139:setWidth(26);
obj.checkBox139:setHeight(28);
obj.checkBox139:setField("Check_Box296");
obj.checkBox139:setName("checkBox139");
obj.layout144 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout144:setParent(obj.rectangle1);
obj.layout144:setLeft(367);
obj.layout144:setTop(256);
obj.layout144:setWidth(26);
obj.layout144:setHeight(27);
obj.layout144:setName("layout144");
obj.checkBox140 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox140:setParent(obj.layout144);
obj.checkBox140:setLeft(0);
obj.checkBox140:setTop(0);
obj.checkBox140:setWidth(26);
obj.checkBox140:setHeight(28);
obj.checkBox140:setField("Check_Box299");
obj.checkBox140:setName("checkBox140");
obj.layout145 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout145:setParent(obj.rectangle1);
obj.layout145:setLeft(367);
obj.layout145:setTop(278);
obj.layout145:setWidth(26);
obj.layout145:setHeight(27);
obj.layout145:setName("layout145");
obj.checkBox141 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox141:setParent(obj.layout145);
obj.checkBox141:setLeft(0);
obj.checkBox141:setTop(0);
obj.checkBox141:setWidth(26);
obj.checkBox141:setHeight(28);
obj.checkBox141:setField("Check_Box302");
obj.checkBox141:setName("checkBox141");
obj.layout146 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout146:setParent(obj.rectangle1);
obj.layout146:setLeft(371);
obj.layout146:setTop(301);
obj.layout146:setWidth(26);
obj.layout146:setHeight(27);
obj.layout146:setName("layout146");
obj.checkBox142 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox142:setParent(obj.layout146);
obj.checkBox142:setLeft(0);
obj.checkBox142:setTop(0);
obj.checkBox142:setWidth(26);
obj.checkBox142:setHeight(28);
obj.checkBox142:setField("Check_Box305");
obj.checkBox142:setName("checkBox142");
obj.layout147 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout147:setParent(obj.rectangle1);
obj.layout147:setLeft(369);
obj.layout147:setTop(321);
obj.layout147:setWidth(26);
obj.layout147:setHeight(27);
obj.layout147:setName("layout147");
obj.checkBox143 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox143:setParent(obj.layout147);
obj.checkBox143:setLeft(0);
obj.checkBox143:setTop(0);
obj.checkBox143:setWidth(26);
obj.checkBox143:setHeight(28);
obj.checkBox143:setField("Check_Box308");
obj.checkBox143:setName("checkBox143");
obj.layout148 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout148:setParent(obj.rectangle1);
obj.layout148:setLeft(369);
obj.layout148:setTop(343);
obj.layout148:setWidth(26);
obj.layout148:setHeight(27);
obj.layout148:setName("layout148");
obj.checkBox144 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox144:setParent(obj.layout148);
obj.checkBox144:setLeft(0);
obj.checkBox144:setTop(0);
obj.checkBox144:setWidth(26);
obj.checkBox144:setHeight(28);
obj.checkBox144:setField("Check_Box311");
obj.checkBox144:setName("checkBox144");
obj.layout149 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout149:setParent(obj.rectangle1);
obj.layout149:setLeft(369);
obj.layout149:setTop(363);
obj.layout149:setWidth(26);
obj.layout149:setHeight(29);
obj.layout149:setName("layout149");
obj.checkBox145 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox145:setParent(obj.layout149);
obj.checkBox145:setLeft(0);
obj.checkBox145:setTop(0);
obj.checkBox145:setWidth(26);
obj.checkBox145:setHeight(30);
obj.checkBox145:setField("Check_Box314");
obj.checkBox145:setName("checkBox145");
obj.layout150 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout150:setParent(obj.rectangle1);
obj.layout150:setLeft(369);
obj.layout150:setTop(447);
obj.layout150:setWidth(26);
obj.layout150:setHeight(27);
obj.layout150:setName("layout150");
obj.checkBox146 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox146:setParent(obj.layout150);
obj.checkBox146:setLeft(0);
obj.checkBox146:setTop(0);
obj.checkBox146:setWidth(26);
obj.checkBox146:setHeight(28);
obj.checkBox146:setField("Check_Box326");
obj.checkBox146:setName("checkBox146");
obj.layout151 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout151:setParent(obj.rectangle1);
obj.layout151:setLeft(369);
obj.layout151:setTop(472);
obj.layout151:setWidth(26);
obj.layout151:setHeight(27);
obj.layout151:setName("layout151");
obj.checkBox147 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox147:setParent(obj.layout151);
obj.checkBox147:setLeft(0);
obj.checkBox147:setTop(0);
obj.checkBox147:setWidth(26);
obj.checkBox147:setHeight(28);
obj.checkBox147:setField("Check_Box329");
obj.checkBox147:setName("checkBox147");
obj.layout152 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout152:setParent(obj.rectangle1);
obj.layout152:setLeft(369);
obj.layout152:setTop(495);
obj.layout152:setWidth(26);
obj.layout152:setHeight(27);
obj.layout152:setName("layout152");
obj.checkBox148 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox148:setParent(obj.layout152);
obj.checkBox148:setLeft(0);
obj.checkBox148:setTop(0);
obj.checkBox148:setWidth(26);
obj.checkBox148:setHeight(28);
obj.checkBox148:setField("Check_Box332");
obj.checkBox148:setName("checkBox148");
obj.layout153 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout153:setParent(obj.rectangle1);
obj.layout153:setLeft(371);
obj.layout153:setTop(581);
obj.layout153:setWidth(26);
obj.layout153:setHeight(27);
obj.layout153:setName("layout153");
obj.checkBox149 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox149:setParent(obj.layout153);
obj.checkBox149:setLeft(0);
obj.checkBox149:setTop(0);
obj.checkBox149:setWidth(26);
obj.checkBox149:setHeight(28);
obj.checkBox149:setField("Check_Box344");
obj.checkBox149:setName("checkBox149");
obj.layout154 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout154:setParent(obj.rectangle1);
obj.layout154:setLeft(327);
obj.layout154:setTop(167);
obj.layout154:setWidth(26);
obj.layout154:setHeight(27);
obj.layout154:setName("layout154");
obj.checkBox150 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox150:setParent(obj.layout154);
obj.checkBox150:setLeft(0);
obj.checkBox150:setTop(0);
obj.checkBox150:setWidth(26);
obj.checkBox150:setHeight(28);
obj.checkBox150:setField("Check_Box285");
obj.checkBox150:setName("checkBox150");
obj.layout155 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout155:setParent(obj.rectangle1);
obj.layout155:setLeft(367);
obj.layout155:setTop(167);
obj.layout155:setWidth(26);
obj.layout155:setHeight(27);
obj.layout155:setName("layout155");
obj.checkBox151 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox151:setParent(obj.layout155);
obj.checkBox151:setLeft(0);
obj.checkBox151:setTop(0);
obj.checkBox151:setWidth(26);
obj.checkBox151:setHeight(28);
obj.checkBox151:setField("Check_Box287");
obj.checkBox151:setName("checkBox151");
obj.layout156 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout156:setParent(obj.rectangle1);
obj.layout156:setLeft(327);
obj.layout156:setTop(189);
obj.layout156:setWidth(26);
obj.layout156:setHeight(27);
obj.layout156:setName("layout156");
obj.checkBox152 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox152:setParent(obj.layout156);
obj.checkBox152:setLeft(0);
obj.checkBox152:setTop(0);
obj.checkBox152:setWidth(26);
obj.checkBox152:setHeight(28);
obj.checkBox152:setField("Check_Box288");
obj.checkBox152:setName("checkBox152");
obj.layout157 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout157:setParent(obj.rectangle1);
obj.layout157:setLeft(327);
obj.layout157:setTop(211);
obj.layout157:setWidth(26);
obj.layout157:setHeight(27);
obj.layout157:setName("layout157");
obj.checkBox153 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox153:setParent(obj.layout157);
obj.checkBox153:setLeft(0);
obj.checkBox153:setTop(0);
obj.checkBox153:setWidth(26);
obj.checkBox153:setHeight(28);
obj.checkBox153:setField("Check_Box291");
obj.checkBox153:setName("checkBox153");
obj.layout158 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout158:setParent(obj.rectangle1);
obj.layout158:setLeft(326);
obj.layout158:setTop(233);
obj.layout158:setWidth(26);
obj.layout158:setHeight(27);
obj.layout158:setName("layout158");
obj.checkBox154 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox154:setParent(obj.layout158);
obj.checkBox154:setLeft(0);
obj.checkBox154:setTop(0);
obj.checkBox154:setWidth(26);
obj.checkBox154:setHeight(28);
obj.checkBox154:setField("Check_Box294");
obj.checkBox154:setName("checkBox154");
obj.layout159 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout159:setParent(obj.rectangle1);
obj.layout159:setLeft(326);
obj.layout159:setTop(256);
obj.layout159:setWidth(26);
obj.layout159:setHeight(27);
obj.layout159:setName("layout159");
obj.checkBox155 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox155:setParent(obj.layout159);
obj.checkBox155:setLeft(0);
obj.checkBox155:setTop(0);
obj.checkBox155:setWidth(26);
obj.checkBox155:setHeight(28);
obj.checkBox155:setField("Check_Box297");
obj.checkBox155:setName("checkBox155");
obj.layout160 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout160:setParent(obj.rectangle1);
obj.layout160:setLeft(326);
obj.layout160:setTop(277);
obj.layout160:setWidth(26);
obj.layout160:setHeight(27);
obj.layout160:setName("layout160");
obj.checkBox156 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox156:setParent(obj.layout160);
obj.checkBox156:setLeft(0);
obj.checkBox156:setTop(0);
obj.checkBox156:setWidth(26);
obj.checkBox156:setHeight(28);
obj.checkBox156:setField("Check_Box300");
obj.checkBox156:setName("checkBox156");
obj.layout161 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout161:setParent(obj.rectangle1);
obj.layout161:setLeft(326);
obj.layout161:setTop(301);
obj.layout161:setWidth(26);
obj.layout161:setHeight(27);
obj.layout161:setName("layout161");
obj.checkBox157 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox157:setParent(obj.layout161);
obj.checkBox157:setLeft(0);
obj.checkBox157:setTop(0);
obj.checkBox157:setWidth(26);
obj.checkBox157:setHeight(28);
obj.checkBox157:setField("Check_Box303");
obj.checkBox157:setName("checkBox157");
obj.layout162 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout162:setParent(obj.rectangle1);
obj.layout162:setLeft(327);
obj.layout162:setTop(321);
obj.layout162:setWidth(26);
obj.layout162:setHeight(27);
obj.layout162:setName("layout162");
obj.checkBox158 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox158:setParent(obj.layout162);
obj.checkBox158:setLeft(0);
obj.checkBox158:setTop(0);
obj.checkBox158:setWidth(26);
obj.checkBox158:setHeight(28);
obj.checkBox158:setField("Check_Box306");
obj.checkBox158:setName("checkBox158");
obj.layout163 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout163:setParent(obj.rectangle1);
obj.layout163:setLeft(327);
obj.layout163:setTop(342);
obj.layout163:setWidth(26);
obj.layout163:setHeight(27);
obj.layout163:setName("layout163");
obj.checkBox159 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox159:setParent(obj.layout163);
obj.checkBox159:setLeft(0);
obj.checkBox159:setTop(0);
obj.checkBox159:setWidth(26);
obj.checkBox159:setHeight(28);
obj.checkBox159:setField("Check_Box309");
obj.checkBox159:setName("checkBox159");
obj.layout164 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout164:setParent(obj.rectangle1);
obj.layout164:setLeft(328);
obj.layout164:setTop(364);
obj.layout164:setWidth(26);
obj.layout164:setHeight(27);
obj.layout164:setName("layout164");
obj.checkBox160 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox160:setParent(obj.layout164);
obj.checkBox160:setLeft(0);
obj.checkBox160:setTop(0);
obj.checkBox160:setWidth(26);
obj.checkBox160:setHeight(28);
obj.checkBox160:setField("Check_Box312");
obj.checkBox160:setName("checkBox160");
obj.layout165 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout165:setParent(obj.rectangle1);
obj.layout165:setLeft(327);
obj.layout165:setTop(387);
obj.layout165:setWidth(26);
obj.layout165:setHeight(27);
obj.layout165:setName("layout165");
obj.checkBox161 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox161:setParent(obj.layout165);
obj.checkBox161:setLeft(0);
obj.checkBox161:setTop(0);
obj.checkBox161:setWidth(26);
obj.checkBox161:setHeight(28);
obj.checkBox161:setField("Check_Box315");
obj.checkBox161:setName("checkBox161");
obj.layout166 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout166:setParent(obj.rectangle1);
obj.layout166:setLeft(327);
obj.layout166:setTop(409);
obj.layout166:setWidth(26);
obj.layout166:setHeight(27);
obj.layout166:setName("layout166");
obj.checkBox162 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox162:setParent(obj.layout166);
obj.checkBox162:setLeft(0);
obj.checkBox162:setTop(0);
obj.checkBox162:setWidth(26);
obj.checkBox162:setHeight(28);
obj.checkBox162:setField("Check_Box318");
obj.checkBox162:setName("checkBox162");
obj.layout167 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout167:setParent(obj.rectangle1);
obj.layout167:setLeft(371);
obj.layout167:setTop(388);
obj.layout167:setWidth(26);
obj.layout167:setHeight(27);
obj.layout167:setName("layout167");
obj.checkBox163 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox163:setParent(obj.layout167);
obj.checkBox163:setLeft(0);
obj.checkBox163:setTop(0);
obj.checkBox163:setWidth(26);
obj.checkBox163:setHeight(28);
obj.checkBox163:setField("Check_Box317");
obj.checkBox163:setName("checkBox163");
obj.layout168 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout168:setParent(obj.rectangle1);
obj.layout168:setLeft(371);
obj.layout168:setTop(407);
obj.layout168:setWidth(26);
obj.layout168:setHeight(27);
obj.layout168:setName("layout168");
obj.checkBox164 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox164:setParent(obj.layout168);
obj.checkBox164:setLeft(0);
obj.checkBox164:setTop(0);
obj.checkBox164:setWidth(26);
obj.checkBox164:setHeight(28);
obj.checkBox164:setField("Check_Box320");
obj.checkBox164:setName("checkBox164");
obj.layout169 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout169:setParent(obj.rectangle1);
obj.layout169:setLeft(326);
obj.layout169:setTop(429);
obj.layout169:setWidth(26);
obj.layout169:setHeight(27);
obj.layout169:setName("layout169");
obj.checkBox165 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox165:setParent(obj.layout169);
obj.checkBox165:setLeft(0);
obj.checkBox165:setTop(0);
obj.checkBox165:setWidth(26);
obj.checkBox165:setHeight(28);
obj.checkBox165:setField("Check_Box321");
obj.checkBox165:setName("checkBox165");
obj.layout170 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout170:setParent(obj.rectangle1);
obj.layout170:setLeft(372);
obj.layout170:setTop(429);
obj.layout170:setWidth(26);
obj.layout170:setHeight(27);
obj.layout170:setName("layout170");
obj.checkBox166 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox166:setParent(obj.layout170);
obj.checkBox166:setLeft(0);
obj.checkBox166:setTop(0);
obj.checkBox166:setWidth(26);
obj.checkBox166:setHeight(28);
obj.checkBox166:setField("Check_Box323");
obj.checkBox166:setName("checkBox166");
obj.layout171 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout171:setParent(obj.rectangle1);
obj.layout171:setLeft(326);
obj.layout171:setTop(450);
obj.layout171:setWidth(26);
obj.layout171:setHeight(27);
obj.layout171:setName("layout171");
obj.checkBox167 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox167:setParent(obj.layout171);
obj.checkBox167:setLeft(0);
obj.checkBox167:setTop(0);
obj.checkBox167:setWidth(26);
obj.checkBox167:setHeight(28);
obj.checkBox167:setField("Check_Box324");
obj.checkBox167:setName("checkBox167");
obj.layout172 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout172:setParent(obj.rectangle1);
obj.layout172:setLeft(326);
obj.layout172:setTop(472);
obj.layout172:setWidth(26);
obj.layout172:setHeight(27);
obj.layout172:setName("layout172");
obj.checkBox168 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox168:setParent(obj.layout172);
obj.checkBox168:setLeft(0);
obj.checkBox168:setTop(0);
obj.checkBox168:setWidth(26);
obj.checkBox168:setHeight(28);
obj.checkBox168:setField("Check_Box327");
obj.checkBox168:setName("checkBox168");
obj.layout173 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout173:setParent(obj.rectangle1);
obj.layout173:setLeft(326);
obj.layout173:setTop(495);
obj.layout173:setWidth(26);
obj.layout173:setHeight(27);
obj.layout173:setName("layout173");
obj.checkBox169 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox169:setParent(obj.layout173);
obj.checkBox169:setLeft(0);
obj.checkBox169:setTop(0);
obj.checkBox169:setWidth(26);
obj.checkBox169:setHeight(28);
obj.checkBox169:setField("Check_Box330");
obj.checkBox169:setName("checkBox169");
obj.layout174 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout174:setParent(obj.rectangle1);
obj.layout174:setLeft(326);
obj.layout174:setTop(515);
obj.layout174:setWidth(26);
obj.layout174:setHeight(27);
obj.layout174:setName("layout174");
obj.checkBox170 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox170:setParent(obj.layout174);
obj.checkBox170:setLeft(0);
obj.checkBox170:setTop(0);
obj.checkBox170:setWidth(26);
obj.checkBox170:setHeight(28);
obj.checkBox170:setField("Check_Box333");
obj.checkBox170:setName("checkBox170");
obj.layout175 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout175:setParent(obj.rectangle1);
obj.layout175:setLeft(326);
obj.layout175:setTop(537);
obj.layout175:setWidth(26);
obj.layout175:setHeight(27);
obj.layout175:setName("layout175");
obj.checkBox171 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox171:setParent(obj.layout175);
obj.checkBox171:setLeft(0);
obj.checkBox171:setTop(0);
obj.checkBox171:setWidth(26);
obj.checkBox171:setHeight(28);
obj.checkBox171:setField("Check_Box336");
obj.checkBox171:setName("checkBox171");
obj.layout176 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout176:setParent(obj.rectangle1);
obj.layout176:setLeft(325);
obj.layout176:setTop(581);
obj.layout176:setWidth(26);
obj.layout176:setHeight(27);
obj.layout176:setName("layout176");
obj.checkBox172 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox172:setParent(obj.layout176);
obj.checkBox172:setLeft(0);
obj.checkBox172:setTop(0);
obj.checkBox172:setWidth(26);
obj.checkBox172:setHeight(28);
obj.checkBox172:setField("Check_Box342");
obj.checkBox172:setName("checkBox172");
obj.layout177 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout177:setParent(obj.rectangle1);
obj.layout177:setLeft(325);
obj.layout177:setTop(624);
obj.layout177:setWidth(26);
obj.layout177:setHeight(27);
obj.layout177:setName("layout177");
obj.checkBox173 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox173:setParent(obj.layout177);
obj.checkBox173:setLeft(0);
obj.checkBox173:setTop(0);
obj.checkBox173:setWidth(26);
obj.checkBox173:setHeight(28);
obj.checkBox173:setField("Check_Box348");
obj.checkBox173:setName("checkBox173");
obj.layout178 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout178:setParent(obj.rectangle1);
obj.layout178:setLeft(325);
obj.layout178:setTop(646);
obj.layout178:setWidth(26);
obj.layout178:setHeight(27);
obj.layout178:setName("layout178");
obj.checkBox174 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox174:setParent(obj.layout178);
obj.checkBox174:setLeft(0);
obj.checkBox174:setTop(0);
obj.checkBox174:setWidth(26);
obj.checkBox174:setHeight(28);
obj.checkBox174:setField("Check_Box351");
obj.checkBox174:setName("checkBox174");
obj.layout179 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout179:setParent(obj.rectangle1);
obj.layout179:setLeft(326);
obj.layout179:setTop(668);
obj.layout179:setWidth(26);
obj.layout179:setHeight(27);
obj.layout179:setName("layout179");
obj.checkBox175 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox175:setParent(obj.layout179);
obj.checkBox175:setLeft(0);
obj.checkBox175:setTop(0);
obj.checkBox175:setWidth(26);
obj.checkBox175:setHeight(28);
obj.checkBox175:setField("Check_Box354");
obj.checkBox175:setName("checkBox175");
obj.layout180 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout180:setParent(obj.rectangle1);
obj.layout180:setLeft(326);
obj.layout180:setTop(690);
obj.layout180:setWidth(26);
obj.layout180:setHeight(27);
obj.layout180:setName("layout180");
obj.checkBox176 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox176:setParent(obj.layout180);
obj.checkBox176:setLeft(0);
obj.checkBox176:setTop(0);
obj.checkBox176:setWidth(26);
obj.checkBox176:setHeight(28);
obj.checkBox176:setField("Check_Box357");
obj.checkBox176:setName("checkBox176");
obj.layout181 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout181:setParent(obj.rectangle1);
obj.layout181:setLeft(326);
obj.layout181:setTop(712);
obj.layout181:setWidth(26);
obj.layout181:setHeight(27);
obj.layout181:setName("layout181");
obj.checkBox177 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox177:setParent(obj.layout181);
obj.checkBox177:setLeft(0);
obj.checkBox177:setTop(0);
obj.checkBox177:setWidth(26);
obj.checkBox177:setHeight(28);
obj.checkBox177:setField("Check_Box360");
obj.checkBox177:setName("checkBox177");
obj.layout182 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout182:setParent(obj.rectangle1);
obj.layout182:setLeft(326);
obj.layout182:setTop(734);
obj.layout182:setWidth(26);
obj.layout182:setHeight(27);
obj.layout182:setName("layout182");
obj.checkBox178 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox178:setParent(obj.layout182);
obj.checkBox178:setLeft(0);
obj.checkBox178:setTop(0);
obj.checkBox178:setWidth(26);
obj.checkBox178:setHeight(28);
obj.checkBox178:setField("Check_Box363");
obj.checkBox178:setName("checkBox178");
obj.layout183 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout183:setParent(obj.rectangle1);
obj.layout183:setLeft(326);
obj.layout183:setTop(755);
obj.layout183:setWidth(26);
obj.layout183:setHeight(27);
obj.layout183:setName("layout183");
obj.checkBox179 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox179:setParent(obj.layout183);
obj.checkBox179:setLeft(0);
obj.checkBox179:setTop(0);
obj.checkBox179:setWidth(26);
obj.checkBox179:setHeight(28);
obj.checkBox179:setField("Check_Box366");
obj.checkBox179:setName("checkBox179");
obj.layout184 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout184:setParent(obj.rectangle1);
obj.layout184:setLeft(326);
obj.layout184:setTop(777);
obj.layout184:setWidth(26);
obj.layout184:setHeight(27);
obj.layout184:setName("layout184");
obj.checkBox180 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox180:setParent(obj.layout184);
obj.checkBox180:setLeft(0);
obj.checkBox180:setTop(0);
obj.checkBox180:setWidth(26);
obj.checkBox180:setHeight(28);
obj.checkBox180:setField("Check_Box369");
obj.checkBox180:setName("checkBox180");
obj.layout185 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout185:setParent(obj.rectangle1);
obj.layout185:setLeft(824);
obj.layout185:setTop(483);
obj.layout185:setWidth(26);
obj.layout185:setHeight(27);
obj.layout185:setName("layout185");
obj.checkBox181 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox181:setParent(obj.layout185);
obj.checkBox181:setLeft(0);
obj.checkBox181:setTop(0);
obj.checkBox181:setWidth(26);
obj.checkBox181:setHeight(28);
obj.checkBox181:setField("Check_Box380");
obj.checkBox181:setName("checkBox181");
obj.layout186 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout186:setParent(obj.rectangle1);
obj.layout186:setLeft(843);
obj.layout186:setTop(482);
obj.layout186:setWidth(26);
obj.layout186:setHeight(27);
obj.layout186:setName("layout186");
obj.checkBox182 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox182:setParent(obj.layout186);
obj.checkBox182:setLeft(0);
obj.checkBox182:setTop(0);
obj.checkBox182:setWidth(26);
obj.checkBox182:setHeight(28);
obj.checkBox182:setField("Check_Box381");
obj.checkBox182:setName("checkBox182");
obj.layout187 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout187:setParent(obj.rectangle1);
obj.layout187:setLeft(822);
obj.layout187:setTop(577);
obj.layout187:setWidth(26);
obj.layout187:setHeight(27);
obj.layout187:setName("layout187");
obj.checkBox183 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox183:setParent(obj.layout187);
obj.checkBox183:setLeft(0);
obj.checkBox183:setTop(0);
obj.checkBox183:setWidth(26);
obj.checkBox183:setHeight(28);
obj.checkBox183:setField("Check_Box382");
obj.checkBox183:setName("checkBox183");
obj.layout188 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout188:setParent(obj.rectangle1);
obj.layout188:setLeft(843);
obj.layout188:setTop(577);
obj.layout188:setWidth(26);
obj.layout188:setHeight(27);
obj.layout188:setName("layout188");
obj.checkBox184 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox184:setParent(obj.layout188);
obj.checkBox184:setLeft(0);
obj.checkBox184:setTop(0);
obj.checkBox184:setWidth(26);
obj.checkBox184:setHeight(28);
obj.checkBox184:setField("Check_Box383");
obj.checkBox184:setName("checkBox184");
obj.layout189 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout189:setParent(obj.rectangle1);
obj.layout189:setLeft(368);
obj.layout189:setTop(515);
obj.layout189:setWidth(26);
obj.layout189:setHeight(27);
obj.layout189:setName("layout189");
obj.checkBox185 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox185:setParent(obj.layout189);
obj.checkBox185:setLeft(0);
obj.checkBox185:setTop(0);
obj.checkBox185:setWidth(26);
obj.checkBox185:setHeight(28);
obj.checkBox185:setField("Check_Box335");
obj.checkBox185:setName("checkBox185");
obj.layout190 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout190:setParent(obj.rectangle1);
obj.layout190:setLeft(369);
obj.layout190:setTop(538);
obj.layout190:setWidth(26);
obj.layout190:setHeight(27);
obj.layout190:setName("layout190");
obj.checkBox186 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox186:setParent(obj.layout190);
obj.checkBox186:setLeft(0);
obj.checkBox186:setTop(0);
obj.checkBox186:setWidth(26);
obj.checkBox186:setHeight(28);
obj.checkBox186:setField("Check_Box338");
obj.checkBox186:setName("checkBox186");
obj.layout191 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout191:setParent(obj.rectangle1);
obj.layout191:setLeft(326);
obj.layout191:setTop(560);
obj.layout191:setWidth(26);
obj.layout191:setHeight(27);
obj.layout191:setName("layout191");
obj.checkBox187 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox187:setParent(obj.layout191);
obj.checkBox187:setLeft(0);
obj.checkBox187:setTop(0);
obj.checkBox187:setWidth(26);
obj.checkBox187:setHeight(28);
obj.checkBox187:setField("Check_Box339");
obj.checkBox187:setName("checkBox187");
obj.layout192 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout192:setParent(obj.rectangle1);
obj.layout192:setLeft(369);
obj.layout192:setTop(560);
obj.layout192:setWidth(26);
obj.layout192:setHeight(27);
obj.layout192:setName("layout192");
obj.checkBox188 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox188:setParent(obj.layout192);
obj.checkBox188:setLeft(0);
obj.checkBox188:setTop(0);
obj.checkBox188:setWidth(26);
obj.checkBox188:setHeight(28);
obj.checkBox188:setField("Check_Box341");
obj.checkBox188:setName("checkBox188");
obj.layout193 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout193:setParent(obj.rectangle1);
obj.layout193:setLeft(325);
obj.layout193:setTop(601);
obj.layout193:setWidth(26);
obj.layout193:setHeight(27);
obj.layout193:setName("layout193");
obj.checkBox189 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox189:setParent(obj.layout193);
obj.checkBox189:setLeft(0);
obj.checkBox189:setTop(0);
obj.checkBox189:setWidth(26);
obj.checkBox189:setHeight(28);
obj.checkBox189:setField("Check_Box345");
obj.checkBox189:setName("checkBox189");
obj.layout194 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout194:setParent(obj.rectangle1);
obj.layout194:setLeft(368);
obj.layout194:setTop(603);
obj.layout194:setWidth(26);
obj.layout194:setHeight(27);
obj.layout194:setName("layout194");
obj.checkBox190 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox190:setParent(obj.layout194);
obj.checkBox190:setLeft(0);
obj.checkBox190:setTop(0);
obj.checkBox190:setWidth(26);
obj.checkBox190:setHeight(28);
obj.checkBox190:setField("Check_Box347");
obj.checkBox190:setName("checkBox190");
obj.layout195 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout195:setParent(obj.rectangle1);
obj.layout195:setLeft(371);
obj.layout195:setTop(625);
obj.layout195:setWidth(26);
obj.layout195:setHeight(27);
obj.layout195:setName("layout195");
obj.checkBox191 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox191:setParent(obj.layout195);
obj.checkBox191:setLeft(0);
obj.checkBox191:setTop(0);
obj.checkBox191:setWidth(26);
obj.checkBox191:setHeight(28);
obj.checkBox191:setField("Check_Box350");
obj.checkBox191:setName("checkBox191");
obj.layout196 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout196:setParent(obj.rectangle1);
obj.layout196:setLeft(371);
obj.layout196:setTop(646);
obj.layout196:setWidth(26);
obj.layout196:setHeight(27);
obj.layout196:setName("layout196");
obj.checkBox192 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox192:setParent(obj.layout196);
obj.checkBox192:setLeft(0);
obj.checkBox192:setTop(0);
obj.checkBox192:setWidth(26);
obj.checkBox192:setHeight(28);
obj.checkBox192:setField("Check_Box353");
obj.checkBox192:setName("checkBox192");
obj.layout197 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout197:setParent(obj.rectangle1);
obj.layout197:setLeft(368);
obj.layout197:setTop(757);
obj.layout197:setWidth(26);
obj.layout197:setHeight(27);
obj.layout197:setName("layout197");
obj.checkBox193 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox193:setParent(obj.layout197);
obj.checkBox193:setLeft(0);
obj.checkBox193:setTop(0);
obj.checkBox193:setWidth(26);
obj.checkBox193:setHeight(28);
obj.checkBox193:setField("Check_Box368");
obj.checkBox193:setName("checkBox193");
obj.layout198 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout198:setParent(obj.rectangle1);
obj.layout198:setLeft(393);
obj.layout198:setTop(130);
obj.layout198:setWidth(193);
obj.layout198:setHeight(20);
obj.layout198:setName("layout198");
obj.edit5 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit5:setParent(obj.layout198);
obj.edit5:setTransparent(true);
obj.edit5:setFontSize(12.8);
obj.edit5:setFontColor("#000000");
obj.edit5:setHorzTextAlign("leading");
obj.edit5:setVertTextAlign("center");
obj.edit5:setLeft(0);
obj.edit5:setTop(0);
obj.edit5:setWidth(193);
obj.edit5:setHeight(21);
obj.edit5:setField("Personagens_Encontrados_31");
obj.edit5:setName("edit5");
obj.layout199 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout199:setParent(obj.rectangle1);
obj.layout199:setLeft(393);
obj.layout199:setTop(151);
obj.layout199:setWidth(193);
obj.layout199:setHeight(20);
obj.layout199:setName("layout199");
obj.edit6 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit6:setParent(obj.layout199);
obj.edit6:setTransparent(true);
obj.edit6:setFontSize(12.8);
obj.edit6:setFontColor("#000000");
obj.edit6:setHorzTextAlign("leading");
obj.edit6:setVertTextAlign("center");
obj.edit6:setLeft(0);
obj.edit6:setTop(0);
obj.edit6:setWidth(193);
obj.edit6:setHeight(21);
obj.edit6:setField("Personagens_Encontrados_32");
obj.edit6:setName("edit6");
obj.layout200 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout200:setParent(obj.rectangle1);
obj.layout200:setLeft(393);
obj.layout200:setTop(174);
obj.layout200:setWidth(193);
obj.layout200:setHeight(20);
obj.layout200:setName("layout200");
obj.edit7 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit7:setParent(obj.layout200);
obj.edit7:setTransparent(true);
obj.edit7:setFontSize(12.8);
obj.edit7:setFontColor("#000000");
obj.edit7:setHorzTextAlign("leading");
obj.edit7:setVertTextAlign("center");
obj.edit7:setLeft(0);
obj.edit7:setTop(0);
obj.edit7:setWidth(193);
obj.edit7:setHeight(21);
obj.edit7:setField("Personagens_Encontrados_33");
obj.edit7:setName("edit7");
obj.layout201 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout201:setParent(obj.rectangle1);
obj.layout201:setLeft(393);
obj.layout201:setTop(196);
obj.layout201:setWidth(193);
obj.layout201:setHeight(20);
obj.layout201:setName("layout201");
obj.edit8 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit8:setParent(obj.layout201);
obj.edit8:setTransparent(true);
obj.edit8:setFontSize(12.8);
obj.edit8:setFontColor("#000000");
obj.edit8:setHorzTextAlign("leading");
obj.edit8:setVertTextAlign("center");
obj.edit8:setLeft(0);
obj.edit8:setTop(0);
obj.edit8:setWidth(193);
obj.edit8:setHeight(21);
obj.edit8:setField("Personagens_Encontrados_34");
obj.edit8:setName("edit8");
obj.layout202 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout202:setParent(obj.rectangle1);
obj.layout202:setLeft(393);
obj.layout202:setTop(217);
obj.layout202:setWidth(193);
obj.layout202:setHeight(20);
obj.layout202:setName("layout202");
obj.edit9 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit9:setParent(obj.layout202);
obj.edit9:setTransparent(true);
obj.edit9:setFontSize(12.8);
obj.edit9:setFontColor("#000000");
obj.edit9:setHorzTextAlign("leading");
obj.edit9:setVertTextAlign("center");
obj.edit9:setLeft(0);
obj.edit9:setTop(0);
obj.edit9:setWidth(193);
obj.edit9:setHeight(21);
obj.edit9:setField("Personagens_Encontrados_35");
obj.edit9:setName("edit9");
obj.layout203 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout203:setParent(obj.rectangle1);
obj.layout203:setLeft(661);
obj.layout203:setTop(163);
obj.layout203:setWidth(205);
obj.layout203:setHeight(38);
obj.layout203:setName("layout203");
obj.textEditor1 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor1:setParent(obj.layout203);
obj.textEditor1:setLeft(0);
obj.textEditor1:setTop(0);
obj.textEditor1:setWidth(205);
obj.textEditor1:setHeight(38);
obj.textEditor1:setFontSize(14.2);
obj.textEditor1:setFontColor("#000000");
obj.textEditor1:setField("NOTAS_5");
obj.textEditor1:setTransparent(true);
obj.textEditor1:setName("textEditor1");
obj.layout204 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout204:setParent(obj.rectangle1);
obj.layout204:setLeft(116);
obj.layout204:setTop(196);
obj.layout204:setWidth(193);
obj.layout204:setHeight(20);
obj.layout204:setName("layout204");
obj.edit10 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit10:setParent(obj.layout204);
obj.edit10:setTransparent(true);
obj.edit10:setFontSize(12.8);
obj.edit10:setFontColor("#000000");
obj.edit10:setHorzTextAlign("leading");
obj.edit10:setVertTextAlign("center");
obj.edit10:setLeft(0);
obj.edit10:setTop(0);
obj.edit10:setWidth(193);
obj.edit10:setHeight(21);
obj.edit10:setField("Personagens_Encontrados_3");
obj.edit10:setName("edit10");
obj.layout205 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout205:setParent(obj.rectangle1);
obj.layout205:setLeft(116);
obj.layout205:setTop(239);
obj.layout205:setWidth(193);
obj.layout205:setHeight(20);
obj.layout205:setName("layout205");
obj.edit11 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit11:setParent(obj.layout205);
obj.edit11:setTransparent(true);
obj.edit11:setFontSize(12.8);
obj.edit11:setFontColor("#000000");
obj.edit11:setHorzTextAlign("leading");
obj.edit11:setVertTextAlign("center");
obj.edit11:setLeft(0);
obj.edit11:setTop(0);
obj.edit11:setWidth(193);
obj.edit11:setHeight(21);
obj.edit11:setField("Personagens_Encontrados_5");
obj.edit11:setName("edit11");
obj.layout206 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout206:setParent(obj.rectangle1);
obj.layout206:setLeft(393);
obj.layout206:setTop(240);
obj.layout206:setWidth(193);
obj.layout206:setHeight(20);
obj.layout206:setName("layout206");
obj.edit12 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit12:setParent(obj.layout206);
obj.edit12:setTransparent(true);
obj.edit12:setFontSize(12.8);
obj.edit12:setFontColor("#000000");
obj.edit12:setHorzTextAlign("leading");
obj.edit12:setVertTextAlign("center");
obj.edit12:setLeft(0);
obj.edit12:setTop(0);
obj.edit12:setWidth(193);
obj.edit12:setHeight(21);
obj.edit12:setField("Personagens_Encontrados_36");
obj.edit12:setName("edit12");
obj.layout207 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout207:setParent(obj.rectangle1);
obj.layout207:setLeft(116);
obj.layout207:setTop(261);
obj.layout207:setWidth(193);
obj.layout207:setHeight(20);
obj.layout207:setName("layout207");
obj.edit13 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit13:setParent(obj.layout207);
obj.edit13:setTransparent(true);
obj.edit13:setFontSize(12.8);
obj.edit13:setFontColor("#000000");
obj.edit13:setHorzTextAlign("leading");
obj.edit13:setVertTextAlign("center");
obj.edit13:setLeft(0);
obj.edit13:setTop(0);
obj.edit13:setWidth(193);
obj.edit13:setHeight(21);
obj.edit13:setField("Personagens_Encontrados_6");
obj.edit13:setName("edit13");
obj.layout208 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout208:setParent(obj.rectangle1);
obj.layout208:setLeft(393);
obj.layout208:setTop(262);
obj.layout208:setWidth(193);
obj.layout208:setHeight(20);
obj.layout208:setName("layout208");
obj.edit14 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit14:setParent(obj.layout208);
obj.edit14:setTransparent(true);
obj.edit14:setFontSize(12.8);
obj.edit14:setFontColor("#000000");
obj.edit14:setHorzTextAlign("leading");
obj.edit14:setVertTextAlign("center");
obj.edit14:setLeft(0);
obj.edit14:setTop(0);
obj.edit14:setWidth(193);
obj.edit14:setHeight(21);
obj.edit14:setField("Personagens_Encontrados_37");
obj.edit14:setName("edit14");
obj.layout209 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout209:setParent(obj.rectangle1);
obj.layout209:setLeft(116);
obj.layout209:setTop(283);
obj.layout209:setWidth(193);
obj.layout209:setHeight(20);
obj.layout209:setName("layout209");
obj.edit15 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit15:setParent(obj.layout209);
obj.edit15:setTransparent(true);
obj.edit15:setFontSize(12.8);
obj.edit15:setFontColor("#000000");
obj.edit15:setHorzTextAlign("leading");
obj.edit15:setVertTextAlign("center");
obj.edit15:setLeft(0);
obj.edit15:setTop(0);
obj.edit15:setWidth(193);
obj.edit15:setHeight(21);
obj.edit15:setField("Personagens_Encontrados_7");
obj.edit15:setName("edit15");
obj.layout210 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout210:setParent(obj.rectangle1);
obj.layout210:setLeft(393);
obj.layout210:setTop(283);
obj.layout210:setWidth(193);
obj.layout210:setHeight(20);
obj.layout210:setName("layout210");
obj.edit16 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit16:setParent(obj.layout210);
obj.edit16:setTransparent(true);
obj.edit16:setFontSize(12.8);
obj.edit16:setFontColor("#000000");
obj.edit16:setHorzTextAlign("leading");
obj.edit16:setVertTextAlign("center");
obj.edit16:setLeft(0);
obj.edit16:setTop(0);
obj.edit16:setWidth(193);
obj.edit16:setHeight(21);
obj.edit16:setField("Personagens_Encontrados_38");
obj.edit16:setName("edit16");
obj.layout211 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout211:setParent(obj.rectangle1);
obj.layout211:setLeft(393);
obj.layout211:setTop(304);
obj.layout211:setWidth(193);
obj.layout211:setHeight(20);
obj.layout211:setName("layout211");
obj.edit17 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit17:setParent(obj.layout211);
obj.edit17:setTransparent(true);
obj.edit17:setFontSize(12.8);
obj.edit17:setFontColor("#000000");
obj.edit17:setHorzTextAlign("leading");
obj.edit17:setVertTextAlign("center");
obj.edit17:setLeft(0);
obj.edit17:setTop(0);
obj.edit17:setWidth(193);
obj.edit17:setHeight(21);
obj.edit17:setField("Personagens_Encontrados_39");
obj.edit17:setName("edit17");
obj.layout212 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout212:setParent(obj.rectangle1);
obj.layout212:setLeft(393);
obj.layout212:setTop(326);
obj.layout212:setWidth(193);
obj.layout212:setHeight(20);
obj.layout212:setName("layout212");
obj.edit18 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit18:setParent(obj.layout212);
obj.edit18:setTransparent(true);
obj.edit18:setFontSize(12.8);
obj.edit18:setFontColor("#000000");
obj.edit18:setHorzTextAlign("leading");
obj.edit18:setVertTextAlign("center");
obj.edit18:setLeft(0);
obj.edit18:setTop(0);
obj.edit18:setWidth(193);
obj.edit18:setHeight(21);
obj.edit18:setField("Personagens_Encontrados_40");
obj.edit18:setName("edit18");
obj.layout213 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout213:setParent(obj.rectangle1);
obj.layout213:setLeft(393);
obj.layout213:setTop(348);
obj.layout213:setWidth(193);
obj.layout213:setHeight(20);
obj.layout213:setName("layout213");
obj.edit19 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit19:setParent(obj.layout213);
obj.edit19:setTransparent(true);
obj.edit19:setFontSize(12.8);
obj.edit19:setFontColor("#000000");
obj.edit19:setHorzTextAlign("leading");
obj.edit19:setVertTextAlign("center");
obj.edit19:setLeft(0);
obj.edit19:setTop(0);
obj.edit19:setWidth(193);
obj.edit19:setHeight(21);
obj.edit19:setField("Personagens_Encontrados_41");
obj.edit19:setName("edit19");
obj.layout214 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout214:setParent(obj.rectangle1);
obj.layout214:setLeft(393);
obj.layout214:setTop(369);
obj.layout214:setWidth(193);
obj.layout214:setHeight(20);
obj.layout214:setName("layout214");
obj.edit20 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit20:setParent(obj.layout214);
obj.edit20:setTransparent(true);
obj.edit20:setFontSize(12.8);
obj.edit20:setFontColor("#000000");
obj.edit20:setHorzTextAlign("leading");
obj.edit20:setVertTextAlign("center");
obj.edit20:setLeft(0);
obj.edit20:setTop(0);
obj.edit20:setWidth(193);
obj.edit20:setHeight(21);
obj.edit20:setField("Personagens_Encontrados_42");
obj.edit20:setName("edit20");
obj.layout215 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout215:setParent(obj.rectangle1);
obj.layout215:setLeft(393);
obj.layout215:setTop(391);
obj.layout215:setWidth(193);
obj.layout215:setHeight(20);
obj.layout215:setName("layout215");
obj.edit21 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit21:setParent(obj.layout215);
obj.edit21:setTransparent(true);
obj.edit21:setFontSize(12.8);
obj.edit21:setFontColor("#000000");
obj.edit21:setHorzTextAlign("leading");
obj.edit21:setVertTextAlign("center");
obj.edit21:setLeft(0);
obj.edit21:setTop(0);
obj.edit21:setWidth(193);
obj.edit21:setHeight(21);
obj.edit21:setField("Personagens_Encontrados_43");
obj.edit21:setName("edit21");
obj.layout216 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout216:setParent(obj.rectangle1);
obj.layout216:setLeft(393);
obj.layout216:setTop(413);
obj.layout216:setWidth(193);
obj.layout216:setHeight(20);
obj.layout216:setName("layout216");
obj.edit22 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit22:setParent(obj.layout216);
obj.edit22:setTransparent(true);
obj.edit22:setFontSize(12.8);
obj.edit22:setFontColor("#000000");
obj.edit22:setHorzTextAlign("leading");
obj.edit22:setVertTextAlign("center");
obj.edit22:setLeft(0);
obj.edit22:setTop(0);
obj.edit22:setWidth(193);
obj.edit22:setHeight(21);
obj.edit22:setField("Personagens_Encontrados_44");
obj.edit22:setName("edit22");
obj.layout217 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout217:setParent(obj.rectangle1);
obj.layout217:setLeft(393);
obj.layout217:setTop(434);
obj.layout217:setWidth(193);
obj.layout217:setHeight(20);
obj.layout217:setName("layout217");
obj.edit23 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit23:setParent(obj.layout217);
obj.edit23:setTransparent(true);
obj.edit23:setFontSize(12.8);
obj.edit23:setFontColor("#000000");
obj.edit23:setHorzTextAlign("leading");
obj.edit23:setVertTextAlign("center");
obj.edit23:setLeft(0);
obj.edit23:setTop(0);
obj.edit23:setWidth(193);
obj.edit23:setHeight(21);
obj.edit23:setField("Personagens_Encontrados_45");
obj.edit23:setName("edit23");
obj.layout218 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout218:setParent(obj.rectangle1);
obj.layout218:setLeft(392);
obj.layout218:setTop(457);
obj.layout218:setWidth(193);
obj.layout218:setHeight(20);
obj.layout218:setName("layout218");
obj.edit24 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit24:setParent(obj.layout218);
obj.edit24:setTransparent(true);
obj.edit24:setFontSize(12.8);
obj.edit24:setFontColor("#000000");
obj.edit24:setHorzTextAlign("leading");
obj.edit24:setVertTextAlign("center");
obj.edit24:setLeft(0);
obj.edit24:setTop(0);
obj.edit24:setWidth(193);
obj.edit24:setHeight(21);
obj.edit24:setField("Personagens_Encontrados_46");
obj.edit24:setName("edit24");
obj.layout219 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout219:setParent(obj.rectangle1);
obj.layout219:setLeft(393);
obj.layout219:setTop(478);
obj.layout219:setWidth(193);
obj.layout219:setHeight(20);
obj.layout219:setName("layout219");
obj.edit25 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit25:setParent(obj.layout219);
obj.edit25:setTransparent(true);
obj.edit25:setFontSize(12.8);
obj.edit25:setFontColor("#000000");
obj.edit25:setHorzTextAlign("leading");
obj.edit25:setVertTextAlign("center");
obj.edit25:setLeft(0);
obj.edit25:setTop(0);
obj.edit25:setWidth(193);
obj.edit25:setHeight(21);
obj.edit25:setField("Personagens_Encontrados_47");
obj.edit25:setName("edit25");
obj.layout220 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout220:setParent(obj.rectangle1);
obj.layout220:setLeft(393);
obj.layout220:setTop(500);
obj.layout220:setWidth(193);
obj.layout220:setHeight(20);
obj.layout220:setName("layout220");
obj.edit26 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit26:setParent(obj.layout220);
obj.edit26:setTransparent(true);
obj.edit26:setFontSize(12.8);
obj.edit26:setFontColor("#000000");
obj.edit26:setHorzTextAlign("leading");
obj.edit26:setVertTextAlign("center");
obj.edit26:setLeft(0);
obj.edit26:setTop(0);
obj.edit26:setWidth(193);
obj.edit26:setHeight(21);
obj.edit26:setField("Personagens_Encontrados_48");
obj.edit26:setName("edit26");
obj.layout221 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout221:setParent(obj.rectangle1);
obj.layout221:setLeft(393);
obj.layout221:setTop(522);
obj.layout221:setWidth(193);
obj.layout221:setHeight(20);
obj.layout221:setName("layout221");
obj.edit27 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit27:setParent(obj.layout221);
obj.edit27:setTransparent(true);
obj.edit27:setFontSize(12.8);
obj.edit27:setFontColor("#000000");
obj.edit27:setHorzTextAlign("leading");
obj.edit27:setVertTextAlign("center");
obj.edit27:setLeft(0);
obj.edit27:setTop(0);
obj.edit27:setWidth(193);
obj.edit27:setHeight(21);
obj.edit27:setField("Personagens_Encontrados_49");
obj.edit27:setName("edit27");
obj.layout222 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout222:setParent(obj.rectangle1);
obj.layout222:setLeft(393);
obj.layout222:setTop(544);
obj.layout222:setWidth(193);
obj.layout222:setHeight(20);
obj.layout222:setName("layout222");
obj.edit28 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit28:setParent(obj.layout222);
obj.edit28:setTransparent(true);
obj.edit28:setFontSize(12.8);
obj.edit28:setFontColor("#000000");
obj.edit28:setHorzTextAlign("leading");
obj.edit28:setVertTextAlign("center");
obj.edit28:setLeft(0);
obj.edit28:setTop(0);
obj.edit28:setWidth(193);
obj.edit28:setHeight(21);
obj.edit28:setField("Personagens_Encontrados_50");
obj.edit28:setName("edit28");
obj.layout223 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout223:setParent(obj.rectangle1);
obj.layout223:setLeft(394);
obj.layout223:setTop(565);
obj.layout223:setWidth(193);
obj.layout223:setHeight(20);
obj.layout223:setName("layout223");
obj.edit29 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit29:setParent(obj.layout223);
obj.edit29:setTransparent(true);
obj.edit29:setFontSize(12.8);
obj.edit29:setFontColor("#000000");
obj.edit29:setHorzTextAlign("leading");
obj.edit29:setVertTextAlign("center");
obj.edit29:setLeft(0);
obj.edit29:setTop(0);
obj.edit29:setWidth(193);
obj.edit29:setHeight(21);
obj.edit29:setField("Personagens_Encontrados_51");
obj.edit29:setName("edit29");
obj.layout224 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout224:setParent(obj.rectangle1);
obj.layout224:setLeft(393);
obj.layout224:setTop(587);
obj.layout224:setWidth(193);
obj.layout224:setHeight(20);
obj.layout224:setName("layout224");
obj.edit30 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit30:setParent(obj.layout224);
obj.edit30:setTransparent(true);
obj.edit30:setFontSize(12.8);
obj.edit30:setFontColor("#000000");
obj.edit30:setHorzTextAlign("leading");
obj.edit30:setVertTextAlign("center");
obj.edit30:setLeft(0);
obj.edit30:setTop(0);
obj.edit30:setWidth(193);
obj.edit30:setHeight(21);
obj.edit30:setField("Personagens_Encontrados_52");
obj.edit30:setName("edit30");
obj.layout225 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout225:setParent(obj.rectangle1);
obj.layout225:setLeft(393);
obj.layout225:setTop(610);
obj.layout225:setWidth(193);
obj.layout225:setHeight(20);
obj.layout225:setName("layout225");
obj.edit31 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit31:setParent(obj.layout225);
obj.edit31:setTransparent(true);
obj.edit31:setFontSize(12.8);
obj.edit31:setFontColor("#000000");
obj.edit31:setHorzTextAlign("leading");
obj.edit31:setVertTextAlign("center");
obj.edit31:setLeft(0);
obj.edit31:setTop(0);
obj.edit31:setWidth(193);
obj.edit31:setHeight(21);
obj.edit31:setField("Personagens_Encontrados_53");
obj.edit31:setName("edit31");
obj.layout226 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout226:setParent(obj.rectangle1);
obj.layout226:setLeft(393);
obj.layout226:setTop(631);
obj.layout226:setWidth(193);
obj.layout226:setHeight(20);
obj.layout226:setName("layout226");
obj.edit32 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit32:setParent(obj.layout226);
obj.edit32:setTransparent(true);
obj.edit32:setFontSize(12.8);
obj.edit32:setFontColor("#000000");
obj.edit32:setHorzTextAlign("leading");
obj.edit32:setVertTextAlign("center");
obj.edit32:setLeft(0);
obj.edit32:setTop(0);
obj.edit32:setWidth(193);
obj.edit32:setHeight(21);
obj.edit32:setField("Personagens_Encontrados_54");
obj.edit32:setName("edit32");
obj.layout227 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout227:setParent(obj.rectangle1);
obj.layout227:setLeft(661);
obj.layout227:setTop(201);
obj.layout227:setWidth(110);
obj.layout227:setHeight(21);
obj.layout227:setName("layout227");
obj.edit33 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit33:setParent(obj.layout227);
obj.edit33:setTransparent(true);
obj.edit33:setFontSize(13.5);
obj.edit33:setFontColor("#000000");
obj.edit33:setHorzTextAlign("leading");
obj.edit33:setVertTextAlign("center");
obj.edit33:setLeft(0);
obj.edit33:setTop(0);
obj.edit33:setWidth(110);
obj.edit33:setHeight(22);
obj.edit33:setField("NOME_32");
obj.edit33:setName("edit33");
obj.layout228 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout228:setParent(obj.rectangle1);
obj.layout228:setLeft(661);
obj.layout228:setTop(223);
obj.layout228:setWidth(55);
obj.layout228:setHeight(21);
obj.layout228:setName("layout228");
obj.edit34 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit34:setParent(obj.layout228);
obj.edit34:setTransparent(true);
obj.edit34:setFontSize(13.5);
obj.edit34:setFontColor("#000000");
obj.edit34:setHorzTextAlign("leading");
obj.edit34:setVertTextAlign("center");
obj.edit34:setLeft(0);
obj.edit34:setTop(0);
obj.edit34:setWidth(55);
obj.edit34:setHeight(22);
obj.edit34:setField("INFLUÊNCIA_2");
obj.edit34:setName("edit34");
obj.layout229 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout229:setParent(obj.rectangle1);
obj.layout229:setLeft(773);
obj.layout229:setTop(224);
obj.layout229:setWidth(94);
obj.layout229:setHeight(21);
obj.layout229:setName("layout229");
obj.edit35 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit35:setParent(obj.layout229);
obj.edit35:setTransparent(true);
obj.edit35:setFontSize(13.5);
obj.edit35:setFontColor("#000000");
obj.edit35:setHorzTextAlign("leading");
obj.edit35:setVertTextAlign("center");
obj.edit35:setLeft(0);
obj.edit35:setTop(0);
obj.edit35:setWidth(94);
obj.edit35:setHeight(22);
obj.edit35:setField("DEVOÇÃO_2");
obj.edit35:setName("edit35");
obj.layout230 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout230:setParent(obj.rectangle1);
obj.layout230:setLeft(661);
obj.layout230:setTop(257);
obj.layout230:setWidth(205);
obj.layout230:setHeight(38);
obj.layout230:setName("layout230");
obj.textEditor2 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor2:setParent(obj.layout230);
obj.textEditor2:setLeft(0);
obj.textEditor2:setTop(0);
obj.textEditor2:setWidth(205);
obj.textEditor2:setHeight(38);
obj.textEditor2:setFontSize(14.2);
obj.textEditor2:setFontColor("#000000");
obj.textEditor2:setField("NOTAS_6");
obj.textEditor2:setTransparent(true);
obj.textEditor2:setName("textEditor2");
obj.layout231 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout231:setParent(obj.rectangle1);
obj.layout231:setLeft(661);
obj.layout231:setTop(296);
obj.layout231:setWidth(111);
obj.layout231:setHeight(21);
obj.layout231:setName("layout231");
obj.edit36 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit36:setParent(obj.layout231);
obj.edit36:setTransparent(true);
obj.edit36:setFontSize(13.5);
obj.edit36:setFontColor("#000000");
obj.edit36:setHorzTextAlign("leading");
obj.edit36:setVertTextAlign("center");
obj.edit36:setLeft(0);
obj.edit36:setTop(0);
obj.edit36:setWidth(111);
obj.edit36:setHeight(22);
obj.edit36:setField("NOME_33");
obj.edit36:setName("edit36");
obj.layout232 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout232:setParent(obj.rectangle1);
obj.layout232:setLeft(661);
obj.layout232:setTop(318);
obj.layout232:setWidth(55);
obj.layout232:setHeight(21);
obj.layout232:setName("layout232");
obj.edit37 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit37:setParent(obj.layout232);
obj.edit37:setTransparent(true);
obj.edit37:setFontSize(13.5);
obj.edit37:setFontColor("#000000");
obj.edit37:setHorzTextAlign("leading");
obj.edit37:setVertTextAlign("center");
obj.edit37:setLeft(0);
obj.edit37:setTop(0);
obj.edit37:setWidth(55);
obj.edit37:setHeight(22);
obj.edit37:setField("INFLUÊNCIA_3");
obj.edit37:setName("edit37");
obj.layout233 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout233:setParent(obj.rectangle1);
obj.layout233:setLeft(773);
obj.layout233:setTop(318);
obj.layout233:setWidth(93);
obj.layout233:setHeight(21);
obj.layout233:setName("layout233");
obj.edit38 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit38:setParent(obj.layout233);
obj.edit38:setTransparent(true);
obj.edit38:setFontSize(13.5);
obj.edit38:setFontColor("#000000");
obj.edit38:setHorzTextAlign("leading");
obj.edit38:setVertTextAlign("center");
obj.edit38:setLeft(0);
obj.edit38:setTop(0);
obj.edit38:setWidth(93);
obj.edit38:setHeight(22);
obj.edit38:setField("DEVOÇÃO_3");
obj.edit38:setName("edit38");
obj.layout234 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout234:setParent(obj.rectangle1);
obj.layout234:setLeft(661);
obj.layout234:setTop(352);
obj.layout234:setWidth(205);
obj.layout234:setHeight(38);
obj.layout234:setName("layout234");
obj.textEditor3 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor3:setParent(obj.layout234);
obj.textEditor3:setLeft(0);
obj.textEditor3:setTop(0);
obj.textEditor3:setWidth(205);
obj.textEditor3:setHeight(38);
obj.textEditor3:setFontSize(14.2);
obj.textEditor3:setFontColor("#000000");
obj.textEditor3:setField("NOTAS_7");
obj.textEditor3:setTransparent(true);
obj.textEditor3:setName("textEditor3");
obj.layout235 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout235:setParent(obj.rectangle1);
obj.layout235:setLeft(661);
obj.layout235:setTop(390);
obj.layout235:setWidth(110);
obj.layout235:setHeight(21);
obj.layout235:setName("layout235");
obj.edit39 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit39:setParent(obj.layout235);
obj.edit39:setTransparent(true);
obj.edit39:setFontSize(13.5);
obj.edit39:setFontColor("#000000");
obj.edit39:setHorzTextAlign("leading");
obj.edit39:setVertTextAlign("center");
obj.edit39:setLeft(0);
obj.edit39:setTop(0);
obj.edit39:setWidth(110);
obj.edit39:setHeight(22);
obj.edit39:setField("NOME_34");
obj.edit39:setName("edit39");
obj.layout236 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout236:setParent(obj.rectangle1);
obj.layout236:setLeft(661);
obj.layout236:setTop(412);
obj.layout236:setWidth(55);
obj.layout236:setHeight(21);
obj.layout236:setName("layout236");
obj.edit40 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit40:setParent(obj.layout236);
obj.edit40:setTransparent(true);
obj.edit40:setFontSize(13.5);
obj.edit40:setFontColor("#000000");
obj.edit40:setHorzTextAlign("leading");
obj.edit40:setVertTextAlign("center");
obj.edit40:setLeft(0);
obj.edit40:setTop(0);
obj.edit40:setWidth(55);
obj.edit40:setHeight(22);
obj.edit40:setField("INFLUÊNCIA_4");
obj.edit40:setName("edit40");
obj.layout237 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout237:setParent(obj.rectangle1);
obj.layout237:setLeft(773);
obj.layout237:setTop(412);
obj.layout237:setWidth(94);
obj.layout237:setHeight(21);
obj.layout237:setName("layout237");
obj.edit41 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit41:setParent(obj.layout237);
obj.edit41:setTransparent(true);
obj.edit41:setFontSize(13.5);
obj.edit41:setFontColor("#000000");
obj.edit41:setHorzTextAlign("leading");
obj.edit41:setVertTextAlign("center");
obj.edit41:setLeft(0);
obj.edit41:setTop(0);
obj.edit41:setWidth(94);
obj.edit41:setHeight(22);
obj.edit41:setField("DEVOÇÃO_4");
obj.edit41:setName("edit41");
obj.layout238 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout238:setParent(obj.rectangle1);
obj.layout238:setLeft(661);
obj.layout238:setTop(446);
obj.layout238:setWidth(205);
obj.layout238:setHeight(38);
obj.layout238:setName("layout238");
obj.textEditor4 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor4:setParent(obj.layout238);
obj.textEditor4:setLeft(0);
obj.textEditor4:setTop(0);
obj.textEditor4:setWidth(205);
obj.textEditor4:setHeight(38);
obj.textEditor4:setFontSize(14.2);
obj.textEditor4:setFontColor("#000000");
obj.textEditor4:setField("NOTAS_8");
obj.textEditor4:setTransparent(true);
obj.textEditor4:setName("textEditor4");
obj.layout239 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout239:setParent(obj.rectangle1);
obj.layout239:setLeft(116);
obj.layout239:setTop(130);
obj.layout239:setWidth(193);
obj.layout239:setHeight(20);
obj.layout239:setName("layout239");
obj.edit42 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit42:setParent(obj.layout239);
obj.edit42:setTransparent(true);
obj.edit42:setFontSize(12.8);
obj.edit42:setFontColor("#000000");
obj.edit42:setHorzTextAlign("leading");
obj.edit42:setVertTextAlign("center");
obj.edit42:setLeft(0);
obj.edit42:setTop(0);
obj.edit42:setWidth(193);
obj.edit42:setHeight(21);
obj.edit42:setField("Personagens_Encontrados_0");
obj.edit42:setName("edit42");
obj.layout240 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout240:setParent(obj.rectangle1);
obj.layout240:setLeft(117);
obj.layout240:setTop(151);
obj.layout240:setWidth(193);
obj.layout240:setHeight(20);
obj.layout240:setName("layout240");
obj.edit43 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit43:setParent(obj.layout240);
obj.edit43:setTransparent(true);
obj.edit43:setFontSize(12.8);
obj.edit43:setFontColor("#000000");
obj.edit43:setHorzTextAlign("leading");
obj.edit43:setVertTextAlign("center");
obj.edit43:setLeft(0);
obj.edit43:setTop(0);
obj.edit43:setWidth(193);
obj.edit43:setHeight(21);
obj.edit43:setField("Personagens_Encontrados_1");
obj.edit43:setName("edit43");
obj.layout241 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout241:setParent(obj.rectangle1);
obj.layout241:setLeft(117);
obj.layout241:setTop(174);
obj.layout241:setWidth(193);
obj.layout241:setHeight(20);
obj.layout241:setName("layout241");
obj.edit44 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit44:setParent(obj.layout241);
obj.edit44:setTransparent(true);
obj.edit44:setFontSize(12.8);
obj.edit44:setFontColor("#000000");
obj.edit44:setHorzTextAlign("leading");
obj.edit44:setVertTextAlign("center");
obj.edit44:setLeft(0);
obj.edit44:setTop(0);
obj.edit44:setWidth(193);
obj.edit44:setHeight(21);
obj.edit44:setField("Personagens_Encontrados_2");
obj.edit44:setName("edit44");
obj.layout242 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout242:setParent(obj.rectangle1);
obj.layout242:setLeft(117);
obj.layout242:setTop(217);
obj.layout242:setWidth(193);
obj.layout242:setHeight(20);
obj.layout242:setName("layout242");
obj.edit45 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit45:setParent(obj.layout242);
obj.edit45:setTransparent(true);
obj.edit45:setFontSize(12.8);
obj.edit45:setFontColor("#000000");
obj.edit45:setHorzTextAlign("leading");
obj.edit45:setVertTextAlign("center");
obj.edit45:setLeft(0);
obj.edit45:setTop(0);
obj.edit45:setWidth(193);
obj.edit45:setHeight(21);
obj.edit45:setField("Personagens_Encontrados_4");
obj.edit45:setName("edit45");
obj.layout243 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout243:setParent(obj.rectangle1);
obj.layout243:setLeft(117);
obj.layout243:setTop(304);
obj.layout243:setWidth(193);
obj.layout243:setHeight(20);
obj.layout243:setName("layout243");
obj.edit46 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit46:setParent(obj.layout243);
obj.edit46:setTransparent(true);
obj.edit46:setFontSize(12.8);
obj.edit46:setFontColor("#000000");
obj.edit46:setHorzTextAlign("leading");
obj.edit46:setVertTextAlign("center");
obj.edit46:setLeft(0);
obj.edit46:setTop(0);
obj.edit46:setWidth(193);
obj.edit46:setHeight(21);
obj.edit46:setField("Personagens_Encontrados_8");
obj.edit46:setName("edit46");
obj.layout244 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout244:setParent(obj.rectangle1);
obj.layout244:setLeft(116);
obj.layout244:setTop(326);
obj.layout244:setWidth(193);
obj.layout244:setHeight(20);
obj.layout244:setName("layout244");
obj.edit47 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit47:setParent(obj.layout244);
obj.edit47:setTransparent(true);
obj.edit47:setFontSize(12.8);
obj.edit47:setFontColor("#000000");
obj.edit47:setHorzTextAlign("leading");
obj.edit47:setVertTextAlign("center");
obj.edit47:setLeft(0);
obj.edit47:setTop(0);
obj.edit47:setWidth(193);
obj.edit47:setHeight(21);
obj.edit47:setField("Personagens_Encontrados_9");
obj.edit47:setName("edit47");
obj.layout245 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout245:setParent(obj.rectangle1);
obj.layout245:setLeft(117);
obj.layout245:setTop(434);
obj.layout245:setWidth(193);
obj.layout245:setHeight(20);
obj.layout245:setName("layout245");
obj.edit48 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit48:setParent(obj.layout245);
obj.edit48:setTransparent(true);
obj.edit48:setFontSize(12.8);
obj.edit48:setFontColor("#000000");
obj.edit48:setHorzTextAlign("leading");
obj.edit48:setVertTextAlign("center");
obj.edit48:setLeft(0);
obj.edit48:setTop(0);
obj.edit48:setWidth(193);
obj.edit48:setHeight(21);
obj.edit48:setField("Personagens_Encontrados_14");
obj.edit48:setName("edit48");
obj.layout246 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout246:setParent(obj.rectangle1);
obj.layout246:setLeft(116);
obj.layout246:setTop(456);
obj.layout246:setWidth(193);
obj.layout246:setHeight(20);
obj.layout246:setName("layout246");
obj.edit49 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit49:setParent(obj.layout246);
obj.edit49:setTransparent(true);
obj.edit49:setFontSize(12.8);
obj.edit49:setFontColor("#000000");
obj.edit49:setHorzTextAlign("leading");
obj.edit49:setVertTextAlign("center");
obj.edit49:setLeft(0);
obj.edit49:setTop(0);
obj.edit49:setWidth(193);
obj.edit49:setHeight(21);
obj.edit49:setField("Personagens_Encontrados_15");
obj.edit49:setName("edit49");
obj.layout247 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout247:setParent(obj.rectangle1);
obj.layout247:setLeft(661);
obj.layout247:setTop(485);
obj.layout247:setWidth(111);
obj.layout247:setHeight(20);
obj.layout247:setName("layout247");
obj.edit50 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit50:setParent(obj.layout247);
obj.edit50:setTransparent(true);
obj.edit50:setFontSize(12.8);
obj.edit50:setFontColor("#000000");
obj.edit50:setHorzTextAlign("leading");
obj.edit50:setVertTextAlign("center");
obj.edit50:setLeft(0);
obj.edit50:setTop(0);
obj.edit50:setWidth(111);
obj.edit50:setHeight(21);
obj.edit50:setField("NOME_35");
obj.edit50:setName("edit50");
obj.layout248 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout248:setParent(obj.rectangle1);
obj.layout248:setLeft(661);
obj.layout248:setTop(507);
obj.layout248:setWidth(55);
obj.layout248:setHeight(21);
obj.layout248:setName("layout248");
obj.edit51 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit51:setParent(obj.layout248);
obj.edit51:setTransparent(true);
obj.edit51:setFontSize(13.5);
obj.edit51:setFontColor("#000000");
obj.edit51:setHorzTextAlign("leading");
obj.edit51:setVertTextAlign("center");
obj.edit51:setLeft(0);
obj.edit51:setTop(0);
obj.edit51:setWidth(55);
obj.edit51:setHeight(22);
obj.edit51:setField("INFLUÊNCIA_5");
obj.edit51:setName("edit51");
obj.layout249 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout249:setParent(obj.rectangle1);
obj.layout249:setLeft(773);
obj.layout249:setTop(507);
obj.layout249:setWidth(93);
obj.layout249:setHeight(21);
obj.layout249:setName("layout249");
obj.edit52 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit52:setParent(obj.layout249);
obj.edit52:setTransparent(true);
obj.edit52:setFontSize(13.5);
obj.edit52:setFontColor("#000000");
obj.edit52:setHorzTextAlign("leading");
obj.edit52:setVertTextAlign("center");
obj.edit52:setLeft(0);
obj.edit52:setTop(0);
obj.edit52:setWidth(93);
obj.edit52:setHeight(22);
obj.edit52:setField("DEVOÇÃO_5");
obj.edit52:setName("edit52");
obj.layout250 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout250:setParent(obj.rectangle1);
obj.layout250:setLeft(660);
obj.layout250:setTop(541);
obj.layout250:setWidth(206);
obj.layout250:setHeight(38);
obj.layout250:setName("layout250");
obj.textEditor5 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor5:setParent(obj.layout250);
obj.textEditor5:setLeft(0);
obj.textEditor5:setTop(0);
obj.textEditor5:setWidth(206);
obj.textEditor5:setHeight(38);
obj.textEditor5:setFontSize(14.2);
obj.textEditor5:setFontColor("#000000");
obj.textEditor5:setField("NOTAS_9");
obj.textEditor5:setTransparent(true);
obj.textEditor5:setName("textEditor5");
obj.layout251 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout251:setParent(obj.rectangle1);
obj.layout251:setLeft(661);
obj.layout251:setTop(580);
obj.layout251:setWidth(111);
obj.layout251:setHeight(21);
obj.layout251:setName("layout251");
obj.edit53 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit53:setParent(obj.layout251);
obj.edit53:setTransparent(true);
obj.edit53:setFontSize(13.5);
obj.edit53:setFontColor("#000000");
obj.edit53:setHorzTextAlign("leading");
obj.edit53:setVertTextAlign("center");
obj.edit53:setLeft(0);
obj.edit53:setTop(0);
obj.edit53:setWidth(111);
obj.edit53:setHeight(22);
obj.edit53:setField("NOME_36");
obj.edit53:setName("edit53");
obj.layout252 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout252:setParent(obj.rectangle1);
obj.layout252:setLeft(661);
obj.layout252:setTop(601);
obj.layout252:setWidth(54);
obj.layout252:setHeight(21);
obj.layout252:setName("layout252");
obj.edit54 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit54:setParent(obj.layout252);
obj.edit54:setTransparent(true);
obj.edit54:setFontSize(13.5);
obj.edit54:setFontColor("#000000");
obj.edit54:setHorzTextAlign("leading");
obj.edit54:setVertTextAlign("center");
obj.edit54:setLeft(0);
obj.edit54:setTop(0);
obj.edit54:setWidth(54);
obj.edit54:setHeight(22);
obj.edit54:setField("INFLUÊNCIA_6");
obj.edit54:setName("edit54");
obj.layout253 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout253:setParent(obj.rectangle1);
obj.layout253:setLeft(773);
obj.layout253:setTop(601);
obj.layout253:setWidth(93);
obj.layout253:setHeight(21);
obj.layout253:setName("layout253");
obj.edit55 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit55:setParent(obj.layout253);
obj.edit55:setTransparent(true);
obj.edit55:setFontSize(13.5);
obj.edit55:setFontColor("#000000");
obj.edit55:setHorzTextAlign("leading");
obj.edit55:setVertTextAlign("center");
obj.edit55:setLeft(0);
obj.edit55:setTop(0);
obj.edit55:setWidth(93);
obj.edit55:setHeight(22);
obj.edit55:setField("DEVOÇÃO_6");
obj.edit55:setName("edit55");
obj.layout254 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout254:setParent(obj.rectangle1);
obj.layout254:setLeft(661);
obj.layout254:setTop(635);
obj.layout254:setWidth(205);
obj.layout254:setHeight(38);
obj.layout254:setName("layout254");
obj.textEditor6 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor6:setParent(obj.layout254);
obj.textEditor6:setLeft(0);
obj.textEditor6:setTop(0);
obj.textEditor6:setWidth(205);
obj.textEditor6:setHeight(38);
obj.textEditor6:setFontSize(14.2);
obj.textEditor6:setFontColor("#000000");
obj.textEditor6:setField("NOTAS_10");
obj.textEditor6:setTransparent(true);
obj.textEditor6:setName("textEditor6");
obj.layout255 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout255:setParent(obj.rectangle1);
obj.layout255:setLeft(117);
obj.layout255:setTop(348);
obj.layout255:setWidth(193);
obj.layout255:setHeight(20);
obj.layout255:setName("layout255");
obj.edit56 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit56:setParent(obj.layout255);
obj.edit56:setTransparent(true);
obj.edit56:setFontSize(12.8);
obj.edit56:setFontColor("#000000");
obj.edit56:setHorzTextAlign("leading");
obj.edit56:setVertTextAlign("center");
obj.edit56:setLeft(0);
obj.edit56:setTop(0);
obj.edit56:setWidth(193);
obj.edit56:setHeight(21);
obj.edit56:setField("Personagens_Encontrados_10");
obj.edit56:setName("edit56");
obj.layout256 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout256:setParent(obj.rectangle1);
obj.layout256:setLeft(116);
obj.layout256:setTop(369);
obj.layout256:setWidth(193);
obj.layout256:setHeight(20);
obj.layout256:setName("layout256");
obj.edit57 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit57:setParent(obj.layout256);
obj.edit57:setTransparent(true);
obj.edit57:setFontSize(12.8);
obj.edit57:setFontColor("#000000");
obj.edit57:setHorzTextAlign("leading");
obj.edit57:setVertTextAlign("center");
obj.edit57:setLeft(0);
obj.edit57:setTop(0);
obj.edit57:setWidth(193);
obj.edit57:setHeight(21);
obj.edit57:setField("Personagens_Encontrados_11");
obj.edit57:setName("edit57");
obj.layout257 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout257:setParent(obj.rectangle1);
obj.layout257:setLeft(116);
obj.layout257:setTop(413);
obj.layout257:setWidth(193);
obj.layout257:setHeight(20);
obj.layout257:setName("layout257");
obj.edit58 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit58:setParent(obj.layout257);
obj.edit58:setTransparent(true);
obj.edit58:setFontSize(12.8);
obj.edit58:setFontColor("#000000");
obj.edit58:setHorzTextAlign("leading");
obj.edit58:setVertTextAlign("center");
obj.edit58:setLeft(0);
obj.edit58:setTop(0);
obj.edit58:setWidth(193);
obj.edit58:setHeight(21);
obj.edit58:setField("Personagens_Encontrados_13");
obj.edit58:setName("edit58");
obj.layout258 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout258:setParent(obj.rectangle1);
obj.layout258:setLeft(117);
obj.layout258:setTop(478);
obj.layout258:setWidth(193);
obj.layout258:setHeight(20);
obj.layout258:setName("layout258");
obj.edit59 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit59:setParent(obj.layout258);
obj.edit59:setTransparent(true);
obj.edit59:setFontSize(12.8);
obj.edit59:setFontColor("#000000");
obj.edit59:setHorzTextAlign("leading");
obj.edit59:setVertTextAlign("center");
obj.edit59:setLeft(0);
obj.edit59:setTop(0);
obj.edit59:setWidth(193);
obj.edit59:setHeight(21);
obj.edit59:setField("Personagens_Encontrados_16");
obj.edit59:setName("edit59");
obj.layout259 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout259:setParent(obj.rectangle1);
obj.layout259:setLeft(117);
obj.layout259:setTop(500);
obj.layout259:setWidth(193);
obj.layout259:setHeight(20);
obj.layout259:setName("layout259");
obj.edit60 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit60:setParent(obj.layout259);
obj.edit60:setTransparent(true);
obj.edit60:setFontSize(12.8);
obj.edit60:setFontColor("#000000");
obj.edit60:setHorzTextAlign("leading");
obj.edit60:setVertTextAlign("center");
obj.edit60:setLeft(0);
obj.edit60:setTop(0);
obj.edit60:setWidth(193);
obj.edit60:setHeight(21);
obj.edit60:setField("Personagens_Encontrados_17");
obj.edit60:setName("edit60");
obj.layout260 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout260:setParent(obj.rectangle1);
obj.layout260:setLeft(116);
obj.layout260:setTop(522);
obj.layout260:setWidth(193);
obj.layout260:setHeight(20);
obj.layout260:setName("layout260");
obj.edit61 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit61:setParent(obj.layout260);
obj.edit61:setTransparent(true);
obj.edit61:setFontSize(12.8);
obj.edit61:setFontColor("#000000");
obj.edit61:setHorzTextAlign("leading");
obj.edit61:setVertTextAlign("center");
obj.edit61:setLeft(0);
obj.edit61:setTop(0);
obj.edit61:setWidth(193);
obj.edit61:setHeight(21);
obj.edit61:setField("Personagens_Encontrados_18");
obj.edit61:setName("edit61");
obj.layout261 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout261:setParent(obj.rectangle1);
obj.layout261:setLeft(117);
obj.layout261:setTop(544);
obj.layout261:setWidth(193);
obj.layout261:setHeight(20);
obj.layout261:setName("layout261");
obj.edit62 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit62:setParent(obj.layout261);
obj.edit62:setTransparent(true);
obj.edit62:setFontSize(12.8);
obj.edit62:setFontColor("#000000");
obj.edit62:setHorzTextAlign("leading");
obj.edit62:setVertTextAlign("center");
obj.edit62:setLeft(0);
obj.edit62:setTop(0);
obj.edit62:setWidth(193);
obj.edit62:setHeight(21);
obj.edit62:setField("Personagens_Encontrados_19");
obj.edit62:setName("edit62");
obj.layout262 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout262:setParent(obj.rectangle1);
obj.layout262:setLeft(117);
obj.layout262:setTop(565);
obj.layout262:setWidth(193);
obj.layout262:setHeight(20);
obj.layout262:setName("layout262");
obj.edit63 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit63:setParent(obj.layout262);
obj.edit63:setTransparent(true);
obj.edit63:setFontSize(12.8);
obj.edit63:setFontColor("#000000");
obj.edit63:setHorzTextAlign("leading");
obj.edit63:setVertTextAlign("center");
obj.edit63:setLeft(0);
obj.edit63:setTop(0);
obj.edit63:setWidth(193);
obj.edit63:setHeight(21);
obj.edit63:setField("Personagens_Encontrados_20");
obj.edit63:setName("edit63");
obj.layout263 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout263:setParent(obj.rectangle1);
obj.layout263:setLeft(116);
obj.layout263:setTop(587);
obj.layout263:setWidth(193);
obj.layout263:setHeight(20);
obj.layout263:setName("layout263");
obj.edit64 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit64:setParent(obj.layout263);
obj.edit64:setTransparent(true);
obj.edit64:setFontSize(12.8);
obj.edit64:setFontColor("#000000");
obj.edit64:setHorzTextAlign("leading");
obj.edit64:setVertTextAlign("center");
obj.edit64:setLeft(0);
obj.edit64:setTop(0);
obj.edit64:setWidth(193);
obj.edit64:setHeight(21);
obj.edit64:setField("Personagens_Encontrados_21");
obj.edit64:setName("edit64");
obj.layout264 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout264:setParent(obj.rectangle1);
obj.layout264:setLeft(117);
obj.layout264:setTop(609);
obj.layout264:setWidth(193);
obj.layout264:setHeight(20);
obj.layout264:setName("layout264");
obj.edit65 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit65:setParent(obj.layout264);
obj.edit65:setTransparent(true);
obj.edit65:setFontSize(12.8);
obj.edit65:setFontColor("#000000");
obj.edit65:setHorzTextAlign("leading");
obj.edit65:setVertTextAlign("center");
obj.edit65:setLeft(0);
obj.edit65:setTop(0);
obj.edit65:setWidth(193);
obj.edit65:setHeight(21);
obj.edit65:setField("Personagens_Encontrados_22");
obj.edit65:setName("edit65");
obj.layout265 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout265:setParent(obj.rectangle1);
obj.layout265:setLeft(116);
obj.layout265:setTop(630);
obj.layout265:setWidth(193);
obj.layout265:setHeight(20);
obj.layout265:setName("layout265");
obj.edit66 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit66:setParent(obj.layout265);
obj.edit66:setTransparent(true);
obj.edit66:setFontSize(12.8);
obj.edit66:setFontColor("#000000");
obj.edit66:setHorzTextAlign("leading");
obj.edit66:setVertTextAlign("center");
obj.edit66:setLeft(0);
obj.edit66:setTop(0);
obj.edit66:setWidth(193);
obj.edit66:setHeight(21);
obj.edit66:setField("Personagens_Encontrados_23");
obj.edit66:setName("edit66");
obj.layout266 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout266:setParent(obj.rectangle1);
obj.layout266:setLeft(116);
obj.layout266:setTop(652);
obj.layout266:setWidth(193);
obj.layout266:setHeight(20);
obj.layout266:setName("layout266");
obj.edit67 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit67:setParent(obj.layout266);
obj.edit67:setTransparent(true);
obj.edit67:setFontSize(12.8);
obj.edit67:setFontColor("#000000");
obj.edit67:setHorzTextAlign("leading");
obj.edit67:setVertTextAlign("center");
obj.edit67:setLeft(0);
obj.edit67:setTop(0);
obj.edit67:setWidth(193);
obj.edit67:setHeight(21);
obj.edit67:setField("Personagens_Encontrados_24");
obj.edit67:setName("edit67");
obj.layout267 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout267:setParent(obj.rectangle1);
obj.layout267:setLeft(393);
obj.layout267:setTop(652);
obj.layout267:setWidth(193);
obj.layout267:setHeight(20);
obj.layout267:setName("layout267");
obj.edit68 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit68:setParent(obj.layout267);
obj.edit68:setTransparent(true);
obj.edit68:setFontSize(12.8);
obj.edit68:setFontColor("#000000");
obj.edit68:setHorzTextAlign("leading");
obj.edit68:setVertTextAlign("center");
obj.edit68:setLeft(0);
obj.edit68:setTop(0);
obj.edit68:setWidth(193);
obj.edit68:setHeight(21);
obj.edit68:setField("Personagens_Encontrados_55");
obj.edit68:setName("edit68");
obj.layout268 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout268:setParent(obj.rectangle1);
obj.layout268:setLeft(116);
obj.layout268:setTop(674);
obj.layout268:setWidth(193);
obj.layout268:setHeight(20);
obj.layout268:setName("layout268");
obj.edit69 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit69:setParent(obj.layout268);
obj.edit69:setTransparent(true);
obj.edit69:setFontSize(12.8);
obj.edit69:setFontColor("#000000");
obj.edit69:setHorzTextAlign("leading");
obj.edit69:setVertTextAlign("center");
obj.edit69:setLeft(0);
obj.edit69:setTop(0);
obj.edit69:setWidth(193);
obj.edit69:setHeight(21);
obj.edit69:setField("Personagens_Encontrados_25");
obj.edit69:setName("edit69");
obj.layout269 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout269:setParent(obj.rectangle1);
obj.layout269:setLeft(393);
obj.layout269:setTop(674);
obj.layout269:setWidth(193);
obj.layout269:setHeight(20);
obj.layout269:setName("layout269");
obj.edit70 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit70:setParent(obj.layout269);
obj.edit70:setTransparent(true);
obj.edit70:setFontSize(12.8);
obj.edit70:setFontColor("#000000");
obj.edit70:setHorzTextAlign("leading");
obj.edit70:setVertTextAlign("center");
obj.edit70:setLeft(0);
obj.edit70:setTop(0);
obj.edit70:setWidth(193);
obj.edit70:setHeight(21);
obj.edit70:setField("Personagens_Encontrados_56");
obj.edit70:setName("edit70");
obj.layout270 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout270:setParent(obj.rectangle1);
obj.layout270:setLeft(117);
obj.layout270:setTop(695);
obj.layout270:setWidth(193);
obj.layout270:setHeight(20);
obj.layout270:setName("layout270");
obj.edit71 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit71:setParent(obj.layout270);
obj.edit71:setTransparent(true);
obj.edit71:setFontSize(12.8);
obj.edit71:setFontColor("#000000");
obj.edit71:setHorzTextAlign("leading");
obj.edit71:setVertTextAlign("center");
obj.edit71:setLeft(0);
obj.edit71:setTop(0);
obj.edit71:setWidth(193);
obj.edit71:setHeight(21);
obj.edit71:setField("Personagens_Encontrados_26");
obj.edit71:setName("edit71");
obj.layout271 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout271:setParent(obj.rectangle1);
obj.layout271:setLeft(393);
obj.layout271:setTop(696);
obj.layout271:setWidth(193);
obj.layout271:setHeight(20);
obj.layout271:setName("layout271");
obj.edit72 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit72:setParent(obj.layout271);
obj.edit72:setTransparent(true);
obj.edit72:setFontSize(12.8);
obj.edit72:setFontColor("#000000");
obj.edit72:setHorzTextAlign("leading");
obj.edit72:setVertTextAlign("center");
obj.edit72:setLeft(0);
obj.edit72:setTop(0);
obj.edit72:setWidth(193);
obj.edit72:setHeight(21);
obj.edit72:setField("Personagens_Encontrados_57");
obj.edit72:setName("edit72");
obj.layout272 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout272:setParent(obj.rectangle1);
obj.layout272:setLeft(117);
obj.layout272:setTop(717);
obj.layout272:setWidth(193);
obj.layout272:setHeight(20);
obj.layout272:setName("layout272");
obj.edit73 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit73:setParent(obj.layout272);
obj.edit73:setTransparent(true);
obj.edit73:setFontSize(12.8);
obj.edit73:setFontColor("#000000");
obj.edit73:setHorzTextAlign("leading");
obj.edit73:setVertTextAlign("center");
obj.edit73:setLeft(0);
obj.edit73:setTop(0);
obj.edit73:setWidth(193);
obj.edit73:setHeight(21);
obj.edit73:setField("Personagens_Encontrados_27");
obj.edit73:setName("edit73");
obj.layout273 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout273:setParent(obj.rectangle1);
obj.layout273:setLeft(393);
obj.layout273:setTop(717);
obj.layout273:setWidth(193);
obj.layout273:setHeight(20);
obj.layout273:setName("layout273");
obj.edit74 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit74:setParent(obj.layout273);
obj.edit74:setTransparent(true);
obj.edit74:setFontSize(12.8);
obj.edit74:setFontColor("#000000");
obj.edit74:setHorzTextAlign("leading");
obj.edit74:setVertTextAlign("center");
obj.edit74:setLeft(0);
obj.edit74:setTop(0);
obj.edit74:setWidth(193);
obj.edit74:setHeight(21);
obj.edit74:setField("Personagens_Encontrados_58");
obj.edit74:setName("edit74");
obj.layout274 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout274:setParent(obj.rectangle1);
obj.layout274:setLeft(117);
obj.layout274:setTop(739);
obj.layout274:setWidth(193);
obj.layout274:setHeight(20);
obj.layout274:setName("layout274");
obj.edit75 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit75:setParent(obj.layout274);
obj.edit75:setTransparent(true);
obj.edit75:setFontSize(12.8);
obj.edit75:setFontColor("#000000");
obj.edit75:setHorzTextAlign("leading");
obj.edit75:setVertTextAlign("center");
obj.edit75:setLeft(0);
obj.edit75:setTop(0);
obj.edit75:setWidth(193);
obj.edit75:setHeight(21);
obj.edit75:setField("Personagens_Encontrados_28");
obj.edit75:setName("edit75");
obj.layout275 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout275:setParent(obj.rectangle1);
obj.layout275:setLeft(393);
obj.layout275:setTop(740);
obj.layout275:setWidth(193);
obj.layout275:setHeight(20);
obj.layout275:setName("layout275");
obj.edit76 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit76:setParent(obj.layout275);
obj.edit76:setTransparent(true);
obj.edit76:setFontSize(12.8);
obj.edit76:setFontColor("#000000");
obj.edit76:setHorzTextAlign("leading");
obj.edit76:setVertTextAlign("center");
obj.edit76:setLeft(0);
obj.edit76:setTop(0);
obj.edit76:setWidth(193);
obj.edit76:setHeight(21);
obj.edit76:setField("Personagens_Encontrados_59");
obj.edit76:setName("edit76");
obj.layout276 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout276:setParent(obj.rectangle1);
obj.layout276:setLeft(116);
obj.layout276:setTop(760);
obj.layout276:setWidth(193);
obj.layout276:setHeight(20);
obj.layout276:setName("layout276");
obj.edit77 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit77:setParent(obj.layout276);
obj.edit77:setTransparent(true);
obj.edit77:setFontSize(12.8);
obj.edit77:setFontColor("#000000");
obj.edit77:setHorzTextAlign("leading");
obj.edit77:setVertTextAlign("center");
obj.edit77:setLeft(0);
obj.edit77:setTop(0);
obj.edit77:setWidth(193);
obj.edit77:setHeight(21);
obj.edit77:setField("Personagens_Encontrados_29");
obj.edit77:setName("edit77");
obj.layout277 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout277:setParent(obj.rectangle1);
obj.layout277:setLeft(393);
obj.layout277:setTop(761);
obj.layout277:setWidth(193);
obj.layout277:setHeight(20);
obj.layout277:setName("layout277");
obj.edit78 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit78:setParent(obj.layout277);
obj.edit78:setTransparent(true);
obj.edit78:setFontSize(12.8);
obj.edit78:setFontColor("#000000");
obj.edit78:setHorzTextAlign("leading");
obj.edit78:setVertTextAlign("center");
obj.edit78:setLeft(0);
obj.edit78:setTop(0);
obj.edit78:setWidth(193);
obj.edit78:setHeight(21);
obj.edit78:setField("Personagens_Encontrados_60");
obj.edit78:setName("edit78");
obj.layout278 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout278:setParent(obj.rectangle1);
obj.layout278:setLeft(117);
obj.layout278:setTop(782);
obj.layout278:setWidth(193);
obj.layout278:setHeight(20);
obj.layout278:setName("layout278");
obj.edit79 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit79:setParent(obj.layout278);
obj.edit79:setTransparent(true);
obj.edit79:setFontSize(12.8);
obj.edit79:setFontColor("#000000");
obj.edit79:setHorzTextAlign("leading");
obj.edit79:setVertTextAlign("center");
obj.edit79:setLeft(0);
obj.edit79:setTop(0);
obj.edit79:setWidth(193);
obj.edit79:setHeight(21);
obj.edit79:setField("Personagens_Encontrados_30");
obj.edit79:setName("edit79");
obj.layout279 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout279:setParent(obj.rectangle1);
obj.layout279:setLeft(393);
obj.layout279:setTop(782);
obj.layout279:setWidth(193);
obj.layout279:setHeight(20);
obj.layout279:setName("layout279");
obj.edit80 = GUI.fromHandle(_obj_newObject("edit"));
obj.edit80:setParent(obj.layout279);
obj.edit80:setTransparent(true);
obj.edit80:setFontSize(12.8);
obj.edit80:setFontColor("#000000");
obj.edit80:setHorzTextAlign("leading");
obj.edit80:setVertTextAlign("center");
obj.edit80:setLeft(0);
obj.edit80:setTop(0);
obj.edit80:setWidth(193);
obj.edit80:setHeight(21);
obj.edit80:setField("Personagens_Encontrados_61");
obj.edit80:setName("edit80");
obj.layout280 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout280:setParent(obj.rectangle1);
obj.layout280:setLeft(369);
obj.layout280:setTop(667);
obj.layout280:setWidth(26);
obj.layout280:setHeight(27);
obj.layout280:setName("layout280");
obj.checkBox194 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox194:setParent(obj.layout280);
obj.checkBox194:setLeft(0);
obj.checkBox194:setTop(0);
obj.checkBox194:setWidth(26);
obj.checkBox194:setHeight(28);
obj.checkBox194:setField("Check_Box356");
obj.checkBox194:setName("checkBox194");
obj.layout281 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout281:setParent(obj.rectangle1);
obj.layout281:setLeft(371);
obj.layout281:setTop(691);
obj.layout281:setWidth(26);
obj.layout281:setHeight(27);
obj.layout281:setName("layout281");
obj.checkBox195 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox195:setParent(obj.layout281);
obj.checkBox195:setLeft(0);
obj.checkBox195:setTop(0);
obj.checkBox195:setWidth(26);
obj.checkBox195:setHeight(28);
obj.checkBox195:setField("Check_Box359");
obj.checkBox195:setName("checkBox195");
obj.layout282 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout282:setParent(obj.rectangle1);
obj.layout282:setLeft(369);
obj.layout282:setTop(711);
obj.layout282:setWidth(26);
obj.layout282:setHeight(27);
obj.layout282:setName("layout282");
obj.checkBox196 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox196:setParent(obj.layout282);
obj.checkBox196:setLeft(0);
obj.checkBox196:setTop(0);
obj.checkBox196:setWidth(26);
obj.checkBox196:setHeight(28);
obj.checkBox196:setField("Check_Box362");
obj.checkBox196:setName("checkBox196");
obj.layout283 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout283:setParent(obj.rectangle1);
obj.layout283:setLeft(368);
obj.layout283:setTop(734);
obj.layout283:setWidth(26);
obj.layout283:setHeight(27);
obj.layout283:setName("layout283");
obj.checkBox197 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox197:setParent(obj.layout283);
obj.checkBox197:setLeft(0);
obj.checkBox197:setTop(0);
obj.checkBox197:setWidth(26);
obj.checkBox197:setHeight(28);
obj.checkBox197:setField("Check_Box365");
obj.checkBox197:setName("checkBox197");
obj.layout284 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout284:setParent(obj.rectangle1);
obj.layout284:setLeft(367);
obj.layout284:setTop(777);
obj.layout284:setWidth(26);
obj.layout284:setHeight(27);
obj.layout284:setName("layout284");
obj.checkBox198 = GUI.fromHandle(_obj_newObject("checkBox"));
obj.checkBox198:setParent(obj.layout284);
obj.checkBox198:setLeft(0);
obj.checkBox198:setTop(0);
obj.checkBox198:setWidth(26);
obj.checkBox198:setHeight(28);
obj.checkBox198:setField("Check_Box371");
obj.checkBox198:setName("checkBox198");
obj.layout285 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout285:setParent(obj.rectangle1);
obj.layout285:setLeft(56);
obj.layout285:setTop(903);
obj.layout285:setWidth(262);
obj.layout285:setHeight(237);
obj.layout285:setName("layout285");
obj.textEditor7 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor7:setParent(obj.layout285);
obj.textEditor7:setLeft(0);
obj.textEditor7:setTop(0);
obj.textEditor7:setWidth(262);
obj.textEditor7:setHeight(237);
obj.textEditor7:setFontSize(14.2);
obj.textEditor7:setFontColor("#000000");
obj.textEditor7:setField("OBJETIVOS_A_CURTO_PRAZORow1");
obj.textEditor7:setTransparent(true);
obj.textEditor7:setName("textEditor7");
obj.layout286 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout286:setParent(obj.rectangle1);
obj.layout286:setLeft(320);
obj.layout286:setTop(903);
obj.layout286:setWidth(265);
obj.layout286:setHeight(237);
obj.layout286:setName("layout286");
obj.textEditor8 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor8:setParent(obj.layout286);
obj.textEditor8:setLeft(0);
obj.textEditor8:setTop(0);
obj.textEditor8:setWidth(265);
obj.textEditor8:setHeight(237);
obj.textEditor8:setFontSize(14.2);
obj.textEditor8:setFontColor("#000000");
obj.textEditor8:setField("OBJETIVOS_A_LONGO_PRAZORow1");
obj.textEditor8:setTransparent(true);
obj.textEditor8:setName("textEditor8");
obj.layout287 = GUI.fromHandle(_obj_newObject("layout"));
obj.layout287:setParent(obj.rectangle1);
obj.layout287:setLeft(613);
obj.layout287:setTop(719);
obj.layout287:setWidth(253);
obj.layout287:setHeight(421);
obj.layout287:setName("layout287");
obj.textEditor9 = GUI.fromHandle(_obj_newObject("textEditor"));
obj.textEditor9:setParent(obj.layout287);
obj.textEditor9:setLeft(0);
obj.textEditor9:setTop(0);
obj.textEditor9:setWidth(253);
obj.textEditor9:setHeight(421);
obj.textEditor9:setFontSize(14.2);
obj.textEditor9:setFontColor("#000000");
obj.textEditor9:setField("Locais_Visitados");
obj.textEditor9:setTransparent(true);
obj.textEditor9:setName("textEditor9");
function obj:_releaseEvents()
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.checkBox67 ~= nil then self.checkBox67:destroy(); self.checkBox67 = nil; end;
if self.layout83 ~= nil then self.layout83:destroy(); self.layout83 = nil; end;
if self.checkBox85 ~= nil then self.checkBox85:destroy(); self.checkBox85 = nil; end;
if self.edit64 ~= nil then self.edit64:destroy(); self.edit64 = nil; end;
if self.layout15 ~= nil then self.layout15:destroy(); self.layout15 = nil; end;
if self.edit41 ~= nil then self.edit41:destroy(); self.edit41 = nil; end;
if self.layout10 ~= nil then self.layout10:destroy(); self.layout10 = nil; end;
if self.checkBox111 ~= nil then self.checkBox111:destroy(); self.checkBox111 = 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.edit36 ~= nil then self.edit36:destroy(); self.edit36 = nil; end;
if self.edit33 ~= nil then self.edit33:destroy(); self.edit33 = nil; end;
if self.layout266 ~= nil then self.layout266:destroy(); self.layout266 = nil; end;
if self.layout275 ~= nil then self.layout275:destroy(); self.layout275 = nil; end;
if self.edit29 ~= nil then self.edit29:destroy(); self.edit29 = nil; end;
if self.layout17 ~= nil then self.layout17:destroy(); self.layout17 = nil; end;
if self.layout94 ~= nil then self.layout94:destroy(); self.layout94 = nil; end;
if self.checkBox180 ~= nil then self.checkBox180:destroy(); self.checkBox180 = nil; end;
if self.checkBox135 ~= nil then self.checkBox135:destroy(); self.checkBox135 = nil; end;
if self.checkBox29 ~= nil then self.checkBox29:destroy(); self.checkBox29 = nil; end;
if self.layout47 ~= nil then self.layout47:destroy(); self.layout47 = 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.layout257 ~= nil then self.layout257:destroy(); self.layout257 = nil; end;
if self.edit76 ~= nil then self.edit76:destroy(); self.edit76 = nil; end;
if self.layout24 ~= nil then self.layout24:destroy(); self.layout24 = nil; end;
if self.checkBox68 ~= nil then self.checkBox68:destroy(); self.checkBox68 = nil; end;
if self.checkBox98 ~= nil then self.checkBox98:destroy(); self.checkBox98 = nil; end;
if self.layout123 ~= nil then self.layout123:destroy(); self.layout123 = nil; end;
if self.checkBox177 ~= nil then self.checkBox177:destroy(); self.checkBox177 = nil; end;
if self.layout23 ~= nil then self.layout23:destroy(); self.layout23 = nil; end;
if self.checkBox78 ~= nil then self.checkBox78:destroy(); self.checkBox78 = nil; end;
if self.layout187 ~= nil then self.layout187:destroy(); self.layout187 = 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.layout247 ~= nil then self.layout247:destroy(); self.layout247 = nil; end;
if self.layout196 ~= nil then self.layout196:destroy(); self.layout196 = nil; end;
if self.layout125 ~= nil then self.layout125:destroy(); self.layout125 = nil; end;
if self.layout285 ~= nil then self.layout285:destroy(); self.layout285 = nil; end;
if self.checkBox167 ~= nil then self.checkBox167:destroy(); self.checkBox167 = 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.image1 ~= nil then self.image1:destroy(); self.image1 = nil; end;
if self.layout88 ~= nil then self.layout88:destroy(); self.layout88 = nil; end;
if self.edit11 ~= nil then self.edit11:destroy(); self.edit11 = nil; end;
if self.layout249 ~= nil then self.layout249:destroy(); self.layout249 = nil; end;
if self.layout71 ~= nil then self.layout71:destroy(); self.layout71 = nil; end;
if self.checkBox79 ~= nil then self.checkBox79:destroy(); self.checkBox79 = nil; end;
if self.checkBox124 ~= nil then self.checkBox124:destroy(); self.checkBox124 = nil; end;
if self.checkBox56 ~= nil then self.checkBox56:destroy(); self.checkBox56 = nil; end;
if self.layout32 ~= nil then self.layout32:destroy(); self.layout32 = nil; end;
if self.layout223 ~= nil then self.layout223:destroy(); self.layout223 = nil; end;
if self.layout236 ~= nil then self.layout236:destroy(); self.layout236 = nil; end;
if self.layout251 ~= nil then self.layout251:destroy(); self.layout251 = nil; end;
if self.layout283 ~= nil then self.layout283:destroy(); self.layout283 = nil; end;
if self.layout37 ~= nil then self.layout37:destroy(); self.layout37 = nil; end;
if self.layout194 ~= nil then self.layout194:destroy(); self.layout194 = nil; end;
if self.checkBox197 ~= nil then self.checkBox197:destroy(); self.checkBox197 = nil; end;
if self.layout276 ~= nil then self.layout276:destroy(); self.layout276 = 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.checkBox49 ~= nil then self.checkBox49:destroy(); self.checkBox49 = nil; end;
if self.layout119 ~= nil then self.layout119:destroy(); self.layout119 = nil; end;
if self.layout212 ~= nil then self.layout212:destroy(); self.layout212 = nil; end;
if self.layout52 ~= nil then self.layout52:destroy(); self.layout52 = nil; end;
if self.layout141 ~= nil then self.layout141:destroy(); self.layout141 = nil; end;
if self.checkBox170 ~= nil then self.checkBox170:destroy(); self.checkBox170 = nil; end;
if self.layout158 ~= nil then self.layout158:destroy(); self.layout158 = nil; end;
if self.checkBox175 ~= nil then self.checkBox175:destroy(); self.checkBox175 = nil; end;
if self.checkBox198 ~= nil then self.checkBox198:destroy(); self.checkBox198 = nil; end;
if self.edit16 ~= nil then self.edit16:destroy(); self.edit16 = nil; end;
if self.layout174 ~= nil then self.layout174:destroy(); self.layout174 = nil; end;
if self.checkBox102 ~= nil then self.checkBox102:destroy(); self.checkBox102 = nil; end;
if self.checkBox128 ~= nil then self.checkBox128:destroy(); self.checkBox128 = 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.textEditor4 ~= nil then self.textEditor4:destroy(); self.textEditor4 = nil; end;
if self.layout34 ~= nil then self.layout34:destroy(); self.layout34 = nil; end;
if self.layout210 ~= nil then self.layout210:destroy(); self.layout210 = nil; end;
if self.layout106 ~= nil then self.layout106:destroy(); self.layout106 = nil; end;
if self.checkBox132 ~= nil then self.checkBox132:destroy(); self.checkBox132 = nil; end;
if self.checkBox55 ~= nil then self.checkBox55:destroy(); self.checkBox55 = nil; end;
if self.checkBox3 ~= nil then self.checkBox3:destroy(); self.checkBox3 = nil; end;
if self.layout166 ~= nil then self.layout166:destroy(); self.layout166 = nil; end;
if self.layout42 ~= nil then self.layout42:destroy(); self.layout42 = nil; end;
if self.checkBox162 ~= nil then self.checkBox162:destroy(); self.checkBox162 = nil; end;
if self.layout61 ~= nil then self.layout61:destroy(); self.layout61 = nil; end;
if self.checkBox42 ~= nil then self.checkBox42:destroy(); self.checkBox42 = nil; end;
if self.edit58 ~= nil then self.edit58:destroy(); self.edit58 = nil; end;
if self.layout205 ~= nil then self.layout205:destroy(); self.layout205 = nil; end;
if self.layout232 ~= nil then self.layout232:destroy(); self.layout232 = nil; end;
if self.edit66 ~= nil then self.edit66:destroy(); self.edit66 = 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.checkBox119 ~= nil then self.checkBox119:destroy(); self.checkBox119 = nil; end;
if self.checkBox115 ~= nil then self.checkBox115:destroy(); self.checkBox115 = nil; end;
if self.checkBox131 ~= nil then self.checkBox131:destroy(); self.checkBox131 = nil; end;
if self.checkBox144 ~= nil then self.checkBox144:destroy(); self.checkBox144 = nil; end;
if self.layout176 ~= nil then self.layout176:destroy(); self.layout176 = nil; end;
if self.layout55 ~= nil then self.layout55:destroy(); self.layout55 = nil; end;
if self.layout203 ~= nil then self.layout203:destroy(); self.layout203 = nil; end;
if self.checkBox63 ~= nil then self.checkBox63:destroy(); self.checkBox63 = nil; end;
if self.layout252 ~= nil then self.layout252:destroy(); self.layout252 = nil; end;
if self.checkBox195 ~= nil then self.checkBox195:destroy(); self.checkBox195 = nil; end;
if self.checkBox127 ~= nil then self.checkBox127:destroy(); self.checkBox127 = 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.layout78 ~= nil then self.layout78:destroy(); self.layout78 = nil; end;
if self.checkBox50 ~= nil then self.checkBox50:destroy(); self.checkBox50 = nil; end;
if self.layout248 ~= nil then self.layout248:destroy(); self.layout248 = nil; end;
if self.layout235 ~= nil then self.layout235:destroy(); self.layout235 = nil; end;
if self.layout259 ~= nil then self.layout259:destroy(); self.layout259 = nil; end;
if self.checkBox84 ~= nil then self.checkBox84:destroy(); self.checkBox84 = nil; end;
if self.layout103 ~= nil then self.layout103:destroy(); self.layout103 = nil; end;
if self.checkBox53 ~= nil then self.checkBox53:destroy(); self.checkBox53 = nil; end;
if self.edit67 ~= nil then self.edit67:destroy(); self.edit67 = nil; end;
if self.checkBox70 ~= nil then self.checkBox70:destroy(); self.checkBox70 = nil; end;
if self.checkBox48 ~= nil then self.checkBox48:destroy(); self.checkBox48 = nil; end;
if self.checkBox146 ~= nil then self.checkBox146:destroy(); self.checkBox146 = nil; end;
if self.checkBox122 ~= nil then self.checkBox122:destroy(); self.checkBox122 = nil; end;
if self.layout35 ~= nil then self.layout35:destroy(); self.layout35 = nil; end;
if self.layout246 ~= nil then self.layout246:destroy(); self.layout246 = nil; end;
if self.layout256 ~= nil then self.layout256:destroy(); self.layout256 = nil; end;
if self.checkBox176 ~= nil then self.checkBox176:destroy(); self.checkBox176 = nil; end;
if self.checkBox95 ~= nil then self.checkBox95:destroy(); self.checkBox95 = nil; end;
if self.layout11 ~= nil then self.layout11:destroy(); self.layout11 = nil; end;
if self.layout191 ~= nil then self.layout191:destroy(); self.layout191 = nil; end;
if self.layout273 ~= nil then self.layout273:destroy(); self.layout273 = nil; end;
if self.checkBox23 ~= nil then self.checkBox23:destroy(); self.checkBox23 = nil; end;
if self.checkBox37 ~= nil then self.checkBox37:destroy(); self.checkBox37 = nil; end;
if self.checkBox152 ~= nil then self.checkBox152:destroy(); self.checkBox152 = nil; end;
if self.layout108 ~= nil then self.layout108:destroy(); self.layout108 = nil; end;
if self.checkBox40 ~= nil then self.checkBox40:destroy(); self.checkBox40 = nil; end;
if self.layout183 ~= nil then self.layout183:destroy(); self.layout183 = nil; end;
if self.layout186 ~= nil then self.layout186:destroy(); self.layout186 = nil; end;
if self.layout229 ~= nil then self.layout229:destroy(); self.layout229 = nil; end;
if self.checkBox28 ~= nil then self.checkBox28:destroy(); self.checkBox28 = nil; end;
if self.checkBox189 ~= nil then self.checkBox189:destroy(); self.checkBox189 = nil; end;
if self.layout277 ~= nil then self.layout277:destroy(); self.layout277 = nil; end;
if self.checkBox125 ~= nil then self.checkBox125:destroy(); self.checkBox125 = nil; end;
if self.checkBox74 ~= nil then self.checkBox74:destroy(); self.checkBox74 = nil; end;
if self.checkBox86 ~= nil then self.checkBox86:destroy(); self.checkBox86 = nil; end;
if self.layout14 ~= nil then self.layout14:destroy(); self.layout14 = nil; end;
if self.checkBox100 ~= nil then self.checkBox100:destroy(); self.checkBox100 = nil; end;
if self.edit27 ~= nil then self.edit27:destroy(); self.edit27 = nil; end;
if self.layout51 ~= nil then self.layout51:destroy(); self.layout51 = nil; end;
if self.checkBox32 ~= nil then self.checkBox32:destroy(); self.checkBox32 = nil; end;
if self.edit62 ~= nil then self.edit62:destroy(); self.edit62 = nil; end;
if self.layout100 ~= nil then self.layout100:destroy(); self.layout100 = nil; end;
if self.edit74 ~= nil then self.edit74:destroy(); self.edit74 = 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.layout132 ~= nil then self.layout132:destroy(); self.layout132 = nil; end;
if self.checkBox114 ~= nil then self.checkBox114:destroy(); self.checkBox114 = nil; end;
if self.layout145 ~= nil then self.layout145:destroy(); self.layout145 = nil; end;
if self.layout225 ~= nil then self.layout225:destroy(); self.layout225 = nil; end;
if self.layout146 ~= nil then self.layout146:destroy(); self.layout146 = nil; end;
if self.layout278 ~= nil then self.layout278:destroy(); self.layout278 = nil; end;
if self.layout39 ~= nil then self.layout39:destroy(); self.layout39 = 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.layout162 ~= nil then self.layout162:destroy(); self.layout162 = nil; end;
if self.layout260 ~= nil then self.layout260:destroy(); self.layout260 = nil; end;
if self.layout261 ~= nil then self.layout261:destroy(); self.layout261 = nil; end;
if self.layout69 ~= nil then self.layout69:destroy(); self.layout69 = nil; end;
if self.layout270 ~= nil then self.layout270:destroy(); self.layout270 = nil; end;
if self.checkBox178 ~= nil then self.checkBox178:destroy(); self.checkBox178 = nil; end;
if self.textEditor9 ~= nil then self.textEditor9:destroy(); self.textEditor9 = nil; end;
if self.checkBox145 ~= nil then self.checkBox145:destroy(); self.checkBox145 = nil; end;
if self.layout241 ~= nil then self.layout241:destroy(); self.layout241 = nil; end;
if self.layout30 ~= nil then self.layout30:destroy(); self.layout30 = nil; end;
if self.layout254 ~= nil then self.layout254:destroy(); self.layout254 = nil; end;
if self.layout135 ~= nil then self.layout135:destroy(); self.layout135 = 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.checkBox123 ~= nil then self.checkBox123:destroy(); self.checkBox123 = nil; end;
if self.layout59 ~= nil then self.layout59:destroy(); self.layout59 = nil; end;
if self.layout206 ~= nil then self.layout206:destroy(); self.layout206 = nil; end;
if self.layout207 ~= nil then self.layout207:destroy(); self.layout207 = nil; end;
if self.textEditor3 ~= nil then self.textEditor3:destroy(); self.textEditor3 = nil; end;
if self.checkBox89 ~= nil then self.checkBox89:destroy(); self.checkBox89 = nil; end;
if self.checkBox149 ~= nil then self.checkBox149:destroy(); self.checkBox149 = nil; end;
if self.layout244 ~= nil then self.layout244:destroy(); self.layout244 = nil; end;
if self.layout72 ~= nil then self.layout72:destroy(); self.layout72 = nil; end;
if self.layout118 ~= nil then self.layout118:destroy(); self.layout118 = nil; end;
if self.layout279 ~= nil then self.layout279:destroy(); self.layout279 = nil; end;
if self.layout90 ~= nil then self.layout90:destroy(); self.layout90 = nil; end;
if self.layout262 ~= nil then self.layout262:destroy(); self.layout262 = nil; end;
if self.edit54 ~= nil then self.edit54:destroy(); self.edit54 = nil; end;
if self.checkBox193 ~= nil then self.checkBox193:destroy(); self.checkBox193 = 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.layout111 ~= nil then self.layout111:destroy(); self.layout111 = 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.layout12 ~= nil then self.layout12:destroy(); self.layout12 = nil; end;
if self.edit14 ~= nil then self.edit14:destroy(); self.edit14 = nil; end;
if self.layout242 ~= nil then self.layout242:destroy(); self.layout242 = nil; end;
if self.checkBox44 ~= nil then self.checkBox44:destroy(); self.checkBox44 = nil; end;
if self.layout25 ~= nil then self.layout25:destroy(); self.layout25 = nil; end;
if self.edit4 ~= nil then self.edit4:destroy(); self.edit4 = nil; end;
if self.checkBox94 ~= nil then self.checkBox94:destroy(); self.checkBox94 = nil; end;
if self.checkBox147 ~= nil then self.checkBox147:destroy(); self.checkBox147 = nil; end;
if self.layout193 ~= nil then self.layout193:destroy(); self.layout193 = nil; end;
if self.layout200 ~= nil then self.layout200:destroy(); self.layout200 = nil; end;
if self.checkBox109 ~= nil then self.checkBox109:destroy(); self.checkBox109 = nil; end;
if self.layout116 ~= nil then self.layout116:destroy(); self.layout116 = nil; end;
if self.layout107 ~= nil then self.layout107:destroy(); self.layout107 = nil; end;
if self.checkBox17 ~= nil then self.checkBox17:destroy(); self.checkBox17 = nil; end;
if self.layout228 ~= nil then self.layout228:destroy(); self.layout228 = nil; end;
if self.textEditor2 ~= nil then self.textEditor2:destroy(); self.textEditor2 = nil; end;
if self.checkBox110 ~= nil then self.checkBox110:destroy(); self.checkBox110 = nil; end;
if self.checkBox16 ~= nil then self.checkBox16:destroy(); self.checkBox16 = nil; end;
if self.checkBox141 ~= nil then self.checkBox141:destroy(); self.checkBox141 = nil; end;
if self.checkBox103 ~= nil then self.checkBox103:destroy(); self.checkBox103 = nil; end;
if self.layout26 ~= nil then self.layout26:destroy(); self.layout26 = nil; end;
if self.layout101 ~= nil then self.layout101:destroy(); self.layout101 = nil; end;
if self.checkBox9 ~= nil then self.checkBox9:destroy(); self.checkBox9 = nil; end;
if self.edit8 ~= nil then self.edit8:destroy(); self.edit8 = nil; end;
if self.edit45 ~= nil then self.edit45:destroy(); self.edit45 = nil; end;
if self.layout267 ~= nil then self.layout267:destroy(); self.layout267 = nil; end;
if self.checkBox196 ~= nil then self.checkBox196:destroy(); self.checkBox196 = nil; end;
if self.layout168 ~= nil then self.layout168:destroy(); self.layout168 = nil; end;
if self.checkBox54 ~= nil then self.checkBox54:destroy(); self.checkBox54 = nil; end;
if self.edit2 ~= nil then self.edit2:destroy(); self.edit2 = nil; end;
if self.checkBox108 ~= nil then self.checkBox108:destroy(); self.checkBox108 = nil; end;
if self.checkBox83 ~= nil then self.checkBox83:destroy(); self.checkBox83 = nil; end;
if self.layout268 ~= nil then self.layout268:destroy(); self.layout268 = nil; end;
if self.layout148 ~= nil then self.layout148:destroy(); self.layout148 = nil; end;
if self.edit21 ~= nil then self.edit21:destroy(); self.edit21 = nil; end;
if self.checkBox139 ~= nil then self.checkBox139:destroy(); self.checkBox139 = nil; end;
if self.checkBox153 ~= nil then self.checkBox153:destroy(); self.checkBox153 = nil; end;
if self.layout76 ~= nil then self.layout76:destroy(); self.layout76 = nil; end;
if self.checkBox14 ~= nil then self.checkBox14:destroy(); self.checkBox14 = nil; end;
if self.checkBox60 ~= nil then self.checkBox60:destroy(); self.checkBox60 = nil; end;
if self.checkBox182 ~= nil then self.checkBox182:destroy(); self.checkBox182 = nil; end;
if self.checkBox159 ~= nil then self.checkBox159:destroy(); self.checkBox159 = nil; end;
if self.edit13 ~= nil then self.edit13:destroy(); self.edit13 = nil; end;
if self.checkBox185 ~= nil then self.checkBox185:destroy(); self.checkBox185 = nil; end;
if self.layout211 ~= nil then self.layout211:destroy(); self.layout211 = nil; end;
if self.checkBox93 ~= nil then self.checkBox93:destroy(); self.checkBox93 = nil; end;
if self.layout128 ~= nil then self.layout128:destroy(); self.layout128 = nil; end;
if self.checkBox140 ~= nil then self.checkBox140:destroy(); self.checkBox140 = nil; end;
if self.checkBox156 ~= nil then self.checkBox156:destroy(); self.checkBox156 = nil; end;
if self.layout97 ~= nil then self.layout97:destroy(); self.layout97 = nil; end;
if self.layout130 ~= nil then self.layout130:destroy(); self.layout130 = nil; end;
if self.checkBox51 ~= nil then self.checkBox51:destroy(); self.checkBox51 = nil; end;
if self.layout230 ~= nil then self.layout230:destroy(); self.layout230 = nil; end;
if self.checkBox75 ~= nil then self.checkBox75:destroy(); self.checkBox75 = nil; end;
if self.checkBox157 ~= nil then self.checkBox157:destroy(); self.checkBox157 = nil; end;
if self.checkBox12 ~= nil then self.checkBox12:destroy(); self.checkBox12 = 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.checkBox31 ~= nil then self.checkBox31:destroy(); self.checkBox31 = nil; end;
if self.layout216 ~= nil then self.layout216:destroy(); self.layout216 = nil; end;
if self.layout70 ~= nil then self.layout70:destroy(); self.layout70 = nil; end;
if self.edit37 ~= nil then self.edit37:destroy(); self.edit37 = nil; end;
if self.layout31 ~= nil then self.layout31:destroy(); self.layout31 = nil; end;
if self.checkBox62 ~= nil then self.checkBox62:destroy(); self.checkBox62 = nil; end;
if self.layout222 ~= nil then self.layout222:destroy(); self.layout222 = nil; end;
if self.layout226 ~= nil then self.layout226:destroy(); self.layout226 = nil; end;
if self.edit17 ~= nil then self.edit17:destroy(); self.edit17 = 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.checkBox22 ~= nil then self.checkBox22:destroy(); self.checkBox22 = nil; end;
if self.checkBox80 ~= nil then self.checkBox80:destroy(); self.checkBox80 = 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.layout224 ~= nil then self.layout224:destroy(); self.layout224 = nil; end;
if self.layout29 ~= nil then self.layout29:destroy(); self.layout29 = nil; end;
if self.layout164 ~= nil then self.layout164:destroy(); self.layout164 = nil; end;
if self.checkBox19 ~= nil then self.checkBox19:destroy(); self.checkBox19 = nil; end;
if self.checkBox35 ~= nil then self.checkBox35:destroy(); self.checkBox35 = nil; end;
if self.checkBox25 ~= nil then self.checkBox25:destroy(); self.checkBox25 = nil; end;
if self.checkBox163 ~= nil then self.checkBox163:destroy(); self.checkBox163 = nil; end;
if self.layout113 ~= nil then self.layout113:destroy(); self.layout113 = nil; end;
if self.layout202 ~= nil then self.layout202:destroy(); self.layout202 = nil; end;
if self.edit15 ~= nil then self.edit15:destroy(); self.edit15 = nil; end;
if self.layout220 ~= nil then self.layout220:destroy(); self.layout220 = nil; end;
if self.checkBox164 ~= nil then self.checkBox164:destroy(); self.checkBox164 = nil; end;
if self.checkBox87 ~= nil then self.checkBox87:destroy(); self.checkBox87 = nil; end;
if self.layout272 ~= nil then self.layout272:destroy(); self.layout272 = nil; end;
if self.checkBox194 ~= nil then self.checkBox194:destroy(); self.checkBox194 = nil; end;
if self.checkBox26 ~= nil then self.checkBox26:destroy(); self.checkBox26 = nil; end;
if self.checkBox73 ~= nil then self.checkBox73:destroy(); self.checkBox73 = nil; end;
if self.edit42 ~= nil then self.edit42:destroy(); self.edit42 = nil; end;
if self.checkBox10 ~= nil then self.checkBox10:destroy(); self.checkBox10 = nil; end;
if self.checkBox47 ~= nil then self.checkBox47:destroy(); self.checkBox47 = nil; end;
if self.layout109 ~= nil then self.layout109:destroy(); self.layout109 = nil; end;
if self.checkBox130 ~= nil then self.checkBox130:destroy(); self.checkBox130 = nil; end;
if self.layout98 ~= nil then self.layout98:destroy(); self.layout98 = nil; end;
if self.layout22 ~= nil then self.layout22:destroy(); self.layout22 = 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.layout170 ~= nil then self.layout170:destroy(); self.layout170 = nil; end;
if self.checkBox174 ~= nil then self.checkBox174:destroy(); self.checkBox174 = nil; end;
if self.checkBox191 ~= nil then self.checkBox191:destroy(); self.checkBox191 = nil; end;
if self.layout227 ~= nil then self.layout227:destroy(); self.layout227 = nil; end;
if self.checkBox150 ~= nil then self.checkBox150:destroy(); self.checkBox150 = nil; end;
if self.edit32 ~= nil then self.edit32:destroy(); self.edit32 = nil; end;
if self.checkBox137 ~= nil then self.checkBox137:destroy(); self.checkBox137 = nil; end;
if self.checkBox183 ~= nil then self.checkBox183:destroy(); self.checkBox183 = nil; end;
if self.layout115 ~= nil then self.layout115:destroy(); self.layout115 = nil; end;
if self.checkBox90 ~= nil then self.checkBox90:destroy(); self.checkBox90 = nil; end;
if self.checkBox142 ~= nil then self.checkBox142:destroy(); self.checkBox142 = nil; end;
if self.layout75 ~= nil then self.layout75:destroy(); self.layout75 = nil; end;
if self.checkBox41 ~= nil then self.checkBox41:destroy(); self.checkBox41 = nil; end;
if self.checkBox39 ~= nil then self.checkBox39:destroy(); self.checkBox39 = nil; end;
if self.checkBox71 ~= nil then self.checkBox71:destroy(); self.checkBox71 = nil; end;
if self.layout134 ~= nil then self.layout134:destroy(); self.layout134 = nil; end;
if self.checkBox179 ~= nil then self.checkBox179:destroy(); self.checkBox179 = nil; end;
if self.checkBox188 ~= nil then self.checkBox188:destroy(); self.checkBox188 = nil; end;
if self.layout263 ~= nil then self.layout263:destroy(); self.layout263 = nil; end;
if self.edit73 ~= nil then self.edit73:destroy(); self.edit73 = nil; end;
if self.checkBox15 ~= nil then self.checkBox15:destroy(); self.checkBox15 = nil; end;
if self.layout58 ~= nil then self.layout58:destroy(); self.layout58 = nil; end;
if self.checkBox18 ~= nil then self.checkBox18:destroy(); self.checkBox18 = nil; end;
if self.layout240 ~= nil then self.layout240:destroy(); self.layout240 = nil; end;
if self.layout209 ~= nil then self.layout209:destroy(); self.layout209 = nil; end;
if self.layout110 ~= nil then self.layout110:destroy(); self.layout110 = nil; end;
if self.layout201 ~= nil then self.layout201:destroy(); self.layout201 = nil; end;
if self.layout63 ~= nil then self.layout63:destroy(); self.layout63 = nil; end;
if self.layout190 ~= nil then self.layout190:destroy(); self.layout190 = nil; end;
if self.layout114 ~= nil then self.layout114:destroy(); self.layout114 = nil; end;
if self.layout188 ~= nil then self.layout188:destroy(); self.layout188 = nil; end;
if self.checkBox192 ~= nil then self.checkBox192:destroy(); self.checkBox192 = nil; end;
if self.edit28 ~= nil then self.edit28:destroy(); self.edit28 = nil; end;
if self.edit71 ~= nil then self.edit71:destroy(); self.edit71 = nil; end;
if self.layout41 ~= nil then self.layout41:destroy(); self.layout41 = nil; end;
if self.layout219 ~= nil then self.layout219:destroy(); self.layout219 = nil; end;
if self.layout245 ~= nil then self.layout245:destroy(); self.layout245 = nil; end;
if self.checkBox57 ~= nil then self.checkBox57:destroy(); self.checkBox57 = nil; end;
if self.checkBox11 ~= nil then self.checkBox11:destroy(); self.checkBox11 = nil; end;
if self.layout38 ~= nil then self.layout38:destroy(); self.layout38 = nil; end;
if self.layout218 ~= nil then self.layout218:destroy(); self.layout218 = nil; end;
if self.layout13 ~= nil then self.layout13:destroy(); self.layout13 = nil; end;
if self.layout156 ~= nil then self.layout156:destroy(); self.layout156 = nil; end;
if self.layout8 ~= nil then self.layout8:destroy(); self.layout8 = nil; end;
if self.checkBox7 ~= nil then self.checkBox7:destroy(); self.checkBox7 = 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.layout68 ~= nil then self.layout68:destroy(); self.layout68 = nil; end;
if self.layout105 ~= nil then self.layout105:destroy(); self.layout105 = nil; end;
if self.edit26 ~= nil then self.edit26:destroy(); self.edit26 = nil; end;
if self.layout250 ~= nil then self.layout250:destroy(); self.layout250 = nil; end;
if self.edit34 ~= nil then self.edit34:destroy(); self.edit34 = nil; end;
if self.checkBox120 ~= nil then self.checkBox120:destroy(); self.checkBox120 = nil; end;
if self.checkBox45 ~= nil then self.checkBox45:destroy(); self.checkBox45 = nil; end;
if self.layout171 ~= nil then self.layout171:destroy(); self.layout171 = nil; end;
if self.checkBox76 ~= nil then self.checkBox76:destroy(); self.checkBox76 = nil; end;
if self.layout177 ~= nil then self.layout177:destroy(); self.layout177 = nil; end;
if self.checkBox81 ~= nil then self.checkBox81:destroy(); self.checkBox81 = nil; end;
if self.checkBox173 ~= nil then self.checkBox173:destroy(); self.checkBox173 = nil; end;
if self.edit5 ~= nil then self.edit5:destroy(); self.edit5 = nil; end;
if self.layout54 ~= nil then self.layout54:destroy(); self.layout54 = nil; end;
if self.checkBox166 ~= nil then self.checkBox166:destroy(); self.checkBox166 = nil; end;
if self.edit19 ~= nil then self.edit19:destroy(); self.edit19 = 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.checkBox121 ~= nil then self.checkBox121:destroy(); self.checkBox121 = nil; end;
if self.layout169 ~= nil then self.layout169:destroy(); self.layout169 = nil; end;
if self.layout217 ~= nil then self.layout217:destroy(); self.layout217 = nil; end;
if self.layout199 ~= nil then self.layout199:destroy(); self.layout199 = nil; end;
if self.edit68 ~= nil then self.edit68:destroy(); self.edit68 = nil; end;
if self.layout243 ~= nil then self.layout243:destroy(); self.layout243 = nil; end;
if self.edit72 ~= nil then self.edit72:destroy(); self.edit72 = nil; end;
if self.checkBox104 ~= nil then self.checkBox104:destroy(); self.checkBox104 = nil; end;
if self.layout192 ~= nil then self.layout192:destroy(); self.layout192 = nil; end;
if self.layout92 ~= nil then self.layout92:destroy(); self.layout92 = nil; end;
if self.checkBox96 ~= nil then self.checkBox96:destroy(); self.checkBox96 = nil; end;
if self.layout143 ~= nil then self.layout143:destroy(); self.layout143 = nil; end;
if self.checkBox186 ~= nil then self.checkBox186:destroy(); self.checkBox186 = nil; end;
if self.textEditor5 ~= nil then self.textEditor5:destroy(); self.textEditor5 = nil; end;
if self.textEditor7 ~= nil then self.textEditor7:destroy(); self.textEditor7 = nil; end;
if self.layout178 ~= nil then self.layout178:destroy(); self.layout178 = nil; end;
if self.checkBox113 ~= nil then self.checkBox113:destroy(); self.checkBox113 = nil; end;
if self.layout180 ~= nil then self.layout180:destroy(); self.layout180 = nil; end;
if self.layout204 ~= nil then self.layout204:destroy(); self.layout204 = nil; end;
if self.edit10 ~= nil then self.edit10:destroy(); self.edit10 = nil; end;
if self.edit1 ~= nil then self.edit1:destroy(); self.edit1 = nil; end;
if self.edit31 ~= nil then self.edit31:destroy(); self.edit31 = nil; end;
if self.layout172 ~= nil then self.layout172:destroy(); self.layout172 = nil; end;
if self.edit79 ~= nil then self.edit79:destroy(); self.edit79 = nil; end;
if self.layout271 ~= nil then self.layout271:destroy(); self.layout271 = nil; end;
if self.checkBox43 ~= nil then self.checkBox43:destroy(); self.checkBox43 = nil; end;
if self.checkBox64 ~= nil then self.checkBox64:destroy(); self.checkBox64 = nil; end;
if self.checkBox151 ~= nil then self.checkBox151:destroy(); self.checkBox151 = nil; end;
if self.layout253 ~= nil then self.layout253:destroy(); self.layout253 = nil; end;
if self.layout4 ~= nil then self.layout4:destroy(); self.layout4 = nil; end;
if self.checkBox69 ~= nil then self.checkBox69:destroy(); self.checkBox69 = nil; end;
if self.checkBox126 ~= nil then self.checkBox126:destroy(); self.checkBox126 = nil; end;
if self.layout215 ~= nil then self.layout215:destroy(); self.layout215 = nil; end;
if self.checkBox33 ~= nil then self.checkBox33:destroy(); self.checkBox33 = nil; end;
if self.layout221 ~= nil then self.layout221:destroy(); self.layout221 = 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.layout20 ~= nil then self.layout20:destroy(); self.layout20 = nil; end;
if self.edit23 ~= nil then self.edit23:destroy(); self.edit23 = nil; end;
if self.layout133 ~= nil then self.layout133:destroy(); self.layout133 = nil; end;
if self.checkBox61 ~= nil then self.checkBox61:destroy(); self.checkBox61 = nil; end;
if self.layout18 ~= nil then self.layout18:destroy(); self.layout18 = nil; end;
if self.layout173 ~= nil then self.layout173:destroy(); self.layout173 = nil; end;
if self.checkBox106 ~= nil then self.checkBox106:destroy(); self.checkBox106 = nil; end;
if self.layout112 ~= nil then self.layout112:destroy(); self.layout112 = 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.layout138 ~= nil then self.layout138:destroy(); self.layout138 = nil; end;
if self.layout151 ~= nil then self.layout151:destroy(); self.layout151 = nil; end;
if self.layout234 ~= nil then self.layout234:destroy(); self.layout234 = nil; end;
if self.edit38 ~= nil then self.edit38:destroy(); self.edit38 = nil; end;
if self.checkBox24 ~= nil then self.checkBox24:destroy(); self.checkBox24 = nil; end;
if self.layout49 ~= nil then self.layout49:destroy(); self.layout49 = nil; end;
if self.layout129 ~= nil then self.layout129:destroy(); self.layout129 = nil; end;
if self.layout280 ~= nil then self.layout280:destroy(); self.layout280 = nil; end;
if self.layout238 ~= nil then self.layout238:destroy(); self.layout238 = nil; end;
if self.checkBox99 ~= nil then self.checkBox99:destroy(); self.checkBox99 = nil; end;
if self.textEditor1 ~= nil then self.textEditor1:destroy(); self.textEditor1 = nil; end;
if self.checkBox107 ~= nil then self.checkBox107:destroy(); self.checkBox107 = nil; end;
if self.checkBox92 ~= nil then self.checkBox92:destroy(); self.checkBox92 = nil; end;
if self.layout153 ~= nil then self.layout153:destroy(); self.layout153 = nil; end;
if self.checkBox13 ~= nil then self.checkBox13:destroy(); self.checkBox13 = nil; end;
if self.checkBox88 ~= nil then self.checkBox88:destroy(); self.checkBox88 = nil; end;
if self.layout179 ~= nil then self.layout179:destroy(); self.layout179 = nil; end;
if self.edit6 ~= nil then self.edit6:destroy(); self.edit6 = nil; end;
if self.textEditor8 ~= nil then self.textEditor8:destroy(); self.textEditor8 = nil; end;
if self.checkBox171 ~= nil then self.checkBox171:destroy(); self.checkBox171 = 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.checkBox117 ~= nil then self.checkBox117:destroy(); self.checkBox117 = nil; end;
if self.edit49 ~= nil then self.edit49:destroy(); self.edit49 = nil; end;
if self.checkBox134 ~= nil then self.checkBox134:destroy(); self.checkBox134 = nil; end;
if self.layout16 ~= nil then self.layout16:destroy(); self.layout16 = nil; end;
if self.layout21 ~= nil then self.layout21:destroy(); self.layout21 = nil; end;
if self.layout102 ~= nil then self.layout102:destroy(); self.layout102 = nil; end;
if self.checkBox187 ~= nil then self.checkBox187:destroy(); self.checkBox187 = nil; end;
if self.checkBox38 ~= nil then self.checkBox38:destroy(); self.checkBox38 = nil; end;
if self.layout282 ~= nil then self.layout282:destroy(); self.layout282 = nil; end;
if self.checkBox4 ~= nil then self.checkBox4:destroy(); self.checkBox4 = 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.checkBox118 ~= nil then self.checkBox118:destroy(); self.checkBox118 = nil; end;
if self.scrollBox1 ~= nil then self.scrollBox1:destroy(); self.scrollBox1 = nil; end;
if self.layout274 ~= nil then self.layout274:destroy(); self.layout274 = nil; end;
if self.layout79 ~= nil then self.layout79:destroy(); self.layout79 = nil; end;
if self.checkBox65 ~= nil then self.checkBox65:destroy(); self.checkBox65 = nil; end;
if self.checkBox148 ~= nil then self.checkBox148:destroy(); self.checkBox148 = nil; end;
if self.layout213 ~= nil then self.layout213:destroy(); self.layout213 = nil; end;
if self.layout142 ~= nil then self.layout142:destroy(); self.layout142 = nil; end;
if self.layout43 ~= nil then self.layout43:destroy(); self.layout43 = nil; end;
if self.edit46 ~= nil then self.edit46:destroy(); self.edit46 = nil; end;
if self.layout269 ~= nil then self.layout269:destroy(); self.layout269 = nil; end;
if self.checkBox155 ~= nil then self.checkBox155:destroy(); self.checkBox155 = nil; end;
if self.checkBox190 ~= nil then self.checkBox190:destroy(); self.checkBox190 = 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.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.layout82 ~= nil then self.layout82:destroy(); self.layout82 = nil; end;
if self.layout233 ~= nil then self.layout233:destroy(); self.layout233 = nil; end;
if self.edit12 ~= nil then self.edit12:destroy(); self.edit12 = nil; end;
if self.checkBox168 ~= nil then self.checkBox168:destroy(); self.checkBox168 = nil; end;
if self.edit80 ~= nil then self.edit80:destroy(); self.edit80 = nil; end;
if self.checkBox27 ~= nil then self.checkBox27:destroy(); self.checkBox27 = nil; end;
if self.layout65 ~= nil then self.layout65:destroy(); self.layout65 = nil; end;
if self.edit35 ~= nil then self.edit35:destroy(); self.edit35 = nil; end;
if self.checkBox154 ~= nil then self.checkBox154:destroy(); self.checkBox154 = nil; end;
if self.checkBox6 ~= nil then self.checkBox6:destroy(); self.checkBox6 = nil; end;
if self.checkBox172 ~= nil then self.checkBox172:destroy(); self.checkBox172 = nil; end;
if self.layout208 ~= nil then self.layout208:destroy(); self.layout208 = nil; end;
if self.layout99 ~= nil then self.layout99:destroy(); self.layout99 = nil; end;
if self.layout95 ~= nil then self.layout95:destroy(); self.layout95 = nil; end;
if self.edit57 ~= nil then self.edit57:destroy(); self.edit57 = nil; end;
if self.layout3 ~= nil then self.layout3:destroy(); self.layout3 = nil; end;
if self.layout93 ~= nil then self.layout93:destroy(); self.layout93 = nil; end;
if self.edit63 ~= nil then self.edit63:destroy(); self.edit63 = nil; end;
if self.checkBox8 ~= nil then self.checkBox8:destroy(); self.checkBox8 = 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.layout122 ~= nil then self.layout122:destroy(); self.layout122 = nil; end;
if self.layout77 ~= nil then self.layout77:destroy(); self.layout77 = nil; end;
if self.checkBox112 ~= nil then self.checkBox112:destroy(); self.checkBox112 = nil; end;
if self.layout150 ~= nil then self.layout150:destroy(); self.layout150 = nil; end;
if self.layout175 ~= nil then self.layout175:destroy(); self.layout175 = nil; end;
if self.layout46 ~= nil then self.layout46:destroy(); self.layout46 = nil; end;
if self.layout56 ~= nil then self.layout56:destroy(); self.layout56 = nil; end;
if self.edit44 ~= nil then self.edit44:destroy(); self.edit44 = nil; end;
if self.layout264 ~= nil then self.layout264:destroy(); self.layout264 = nil; end;
if self.layout66 ~= nil then self.layout66:destroy(); self.layout66 = nil; end;
if self.checkBox77 ~= nil then self.checkBox77:destroy(); self.checkBox77 = nil; end;
if self.layout231 ~= nil then self.layout231:destroy(); self.layout231 = nil; end;
if self.checkBox91 ~= nil then self.checkBox91:destroy(); self.checkBox91 = nil; end;
if self.checkBox116 ~= nil then self.checkBox116:destroy(); self.checkBox116 = nil; end;
if self.checkBox165 ~= nil then self.checkBox165:destroy(); self.checkBox165 = nil; end;
if self.checkBox66 ~= nil then self.checkBox66:destroy(); self.checkBox66 = nil; end;
if self.checkBox20 ~= nil then self.checkBox20:destroy(); self.checkBox20 = nil; end;
if self.checkBox158 ~= nil then self.checkBox158:destroy(); self.checkBox158 = nil; end;
if self.layout27 ~= nil then self.layout27:destroy(); self.layout27 = nil; end;
if self.checkBox160 ~= nil then self.checkBox160:destroy(); self.checkBox160 = nil; end;
if self.edit53 ~= nil then self.edit53:destroy(); self.edit53 = nil; end;
if self.checkBox181 ~= nil then self.checkBox181:destroy(); self.checkBox181 = nil; end;
if self.layout28 ~= nil then self.layout28:destroy(); self.layout28 = nil; end;
if self.layout44 ~= nil then self.layout44:destroy(); self.layout44 = nil; end;
if self.layout19 ~= nil then self.layout19:destroy(); self.layout19 = nil; end;
if self.layout74 ~= nil then self.layout74:destroy(); self.layout74 = nil; end;
if self.layout104 ~= nil then self.layout104:destroy(); self.layout104 = nil; end;
if self.checkBox169 ~= nil then self.checkBox169:destroy(); self.checkBox169 = nil; end;
if self.checkBox5 ~= nil then self.checkBox5:destroy(); self.checkBox5 = nil; end;
if self.layout124 ~= nil then self.layout124:destroy(); self.layout124 = nil; end;
if self.layout159 ~= nil then self.layout159:destroy(); self.layout159 = nil; end;
if self.layout197 ~= nil then self.layout197:destroy(); self.layout197 = nil; end;
if self.layout144 ~= nil then self.layout144:destroy(); self.layout144 = nil; end;
if self.edit30 ~= nil then self.edit30:destroy(); self.edit30 = nil; end;
if self.checkBox101 ~= nil then self.checkBox101:destroy(); self.checkBox101 = nil; end;
if self.edit56 ~= nil then self.edit56:destroy(); self.edit56 = nil; end;
if self.edit55 ~= nil then self.edit55:destroy(); self.edit55 = nil; end;
if self.layout281 ~= nil then self.layout281:destroy(); self.layout281 = nil; end;
if self.edit43 ~= nil then self.edit43:destroy(); self.edit43 = nil; end;
if self.checkBox21 ~= nil then self.checkBox21:destroy(); self.checkBox21 = nil; end;
if self.checkBox143 ~= nil then self.checkBox143:destroy(); self.checkBox143 = nil; end;
if self.layout214 ~= nil then self.layout214:destroy(); self.layout214 = nil; end;
if self.edit75 ~= nil then self.edit75:destroy(); self.edit75 = nil; end;
if self.edit65 ~= nil then self.edit65:destroy(); self.edit65 = 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.layout184 ~= nil then self.layout184:destroy(); self.layout184 = nil; end;
if self.checkBox46 ~= nil then self.checkBox46:destroy(); self.checkBox46 = nil; end;
if self.layout161 ~= nil then self.layout161:destroy(); self.layout161 = nil; end;
if self.checkBox72 ~= nil then self.checkBox72:destroy(); self.checkBox72 = nil; end;
if self.layout131 ~= nil then self.layout131:destroy(); self.layout131 = nil; end;
if self.layout286 ~= nil then self.layout286:destroy(); self.layout286 = nil; end;
if self.checkBox97 ~= nil then self.checkBox97:destroy(); self.checkBox97 = nil; end;
if self.layout265 ~= nil then self.layout265:destroy(); self.layout265 = nil; end;
if self.layout182 ~= nil then self.layout182:destroy(); self.layout182 = nil; end;
if self.layout155 ~= nil then self.layout155:destroy(); self.layout155 = nil; end;
if self.checkBox161 ~= nil then self.checkBox161:destroy(); self.checkBox161 = nil; end;
if self.edit51 ~= nil then self.edit51:destroy(); self.edit51 = nil; end;
if self.edit48 ~= nil then self.edit48:destroy(); self.edit48 = nil; end;
if self.checkBox36 ~= nil then self.checkBox36:destroy(); self.checkBox36 = nil; end;
if self.checkBox34 ~= nil then self.checkBox34:destroy(); self.checkBox34 = nil; end;
if self.checkBox105 ~= nil then self.checkBox105:destroy(); self.checkBox105 = nil; end;
if self.checkBox2 ~= nil then self.checkBox2:destroy(); self.checkBox2 = nil; end;
if self.layout239 ~= nil then self.layout239:destroy(); self.layout239 = nil; end;
if self.checkBox138 ~= nil then self.checkBox138:destroy(); self.checkBox138 = nil; end;
if self.layout258 ~= nil then self.layout258:destroy(); self.layout258 = nil; end;
if self.checkBox129 ~= nil then self.checkBox129:destroy(); self.checkBox129 = nil; end;
if self.layout121 ~= nil then self.layout121:destroy(); self.layout121 = nil; end;
if self.checkBox184 ~= nil then self.checkBox184:destroy(); self.checkBox184 = nil; end;
if self.checkBox59 ~= nil then self.checkBox59:destroy(); self.checkBox59 = nil; end;
if self.checkBox52 ~= nil then self.checkBox52:destroy(); self.checkBox52 = nil; end;
if self.layout40 ~= nil then self.layout40:destroy(); self.layout40 = nil; end;
if self.layout84 ~= nil then self.layout84:destroy(); self.layout84 = nil; end;
if self.layout87 ~= nil then self.layout87:destroy(); self.layout87 = nil; end;
if self.layout96 ~= nil then self.layout96:destroy(); self.layout96 = nil; end;
if self.checkBox58 ~= nil then self.checkBox58:destroy(); self.checkBox58 = nil; end;
if self.checkBox133 ~= nil then self.checkBox133:destroy(); self.checkBox133 = nil; end;
if self.edit78 ~= nil then self.edit78:destroy(); self.edit78 = nil; end;
if self.layout287 ~= nil then self.layout287:destroy(); self.layout287 = nil; end;
if self.layout157 ~= nil then self.layout157:destroy(); self.layout157 = nil; end;
if self.checkBox82 ~= nil then self.checkBox82:destroy(); self.checkBox82 = nil; end;
if self.edit70 ~= nil then self.edit70:destroy(); self.edit70 = nil; end;
if self.layout284 ~= nil then self.layout284:destroy(); self.layout284 = nil; end;
if self.edit22 ~= nil then self.edit22:destroy(); self.edit22 = nil; end;
if self.layout6 ~= nil then self.layout6:destroy(); self.layout6 = nil; end;
if self.layout163 ~= nil then self.layout163:destroy(); self.layout163 = nil; end;
if self.layout86 ~= nil then self.layout86:destroy(); self.layout86 = nil; end;
if self.checkBox136 ~= nil then self.checkBox136:destroy(); self.checkBox136 = nil; end;
if self.layout237 ~= nil then self.layout237:destroy(); self.layout237 = nil; end;
if self.layout85 ~= nil then self.layout85:destroy(); self.layout85 = nil; end;
if self.checkBox1 ~= nil then self.checkBox1:destroy(); self.checkBox1 = nil; end;
if self.layout255 ~= nil then self.layout255:destroy(); self.layout255 = nil; end;
if self.checkBox30 ~= nil then self.checkBox30:destroy(); self.checkBox30 = nil; end;
if self.layout91 ~= nil then self.layout91:destroy(); self.layout91 = nil; end;
if self.edit20 ~= nil then self.edit20:destroy(); self.edit20 = nil; end;
self:_oldLFMDestroy();
end;
obj:endUpdate();
return obj;
end;
function newfrmL5A5_svg()
local retObj = nil;
__o_rrpgObjs.beginObjectsLoading();
__o_Utils.tryFinally(
function()
retObj = constructNew_frmL5A5_svg();
end,
function()
__o_rrpgObjs.endObjectsLoading();
end);
assert(retObj ~= nil);
return retObj;
end;
local _frmL5A5_svg = {
newEditor = newfrmL5A5_svg,
new = newfrmL5A5_svg,
name = "frmL5A5_svg",
dataType = "",
formType = "undefined",
formComponentName = "form",
title = "",
description=""};
frmL5A5_svg = _frmL5A5_svg;
Firecast.registrarForm(_frmL5A5_svg);
return _frmL5A5_svg;
|
exports.name = "bitmap"
exports.version = "0.0.1"
exports.author = "Niklas Kühtmann"
exports.description = "Utility for working with bitmaps"
local bit = require('bit')
local mt = {}
mt.__index = function(self, k)
return rawget(self, k) or self.bits[k] or 0
end
mt.__newindex = function(self, k, v)
if tonumber(k) then
self:set(k, v)
else
rawset(self, k, v)
end
end
exports.new = function(ta)
local t={}
t.bits = ta or {}
t.isSet = function(self, index)
return self.bits[index] == 1
end
t.set = function(self, index, value)
self.bits[index] = value
return self
end
t.toNumber = function(self)
return tonumber(table.concat(self.bits, ""), 2)
end
t.areSet = function(self, ...)
for k,v in pairs{...} do
if not self.bits[v] then
return false
end
end
return true
end
t.areNotSet = function(self, ...)
for k,v in pairs{...} do
if self.bits[v] then
return false
end
end
return true
end
t.copy = function(self)
return exports.new(self.bits)
end
setmetatable(t, mt)
return t
end
exports.fromNumber = function(num)
local t={}
while num>0 do
local rest=math.fmod(num,2)
t[#t+1]=rest
num=(num-rest)/2
end
return exports.new(t)
end
-- checks for bits being set in value, counted by shift starting at the least significant being 1
exports.isBitSet = function(value, shift)
shift = shift or 1
return bit.band(bit.rshift(value, shift-1), 1)
end
|
-----------------------------------
-- Area: Kazham
-- NPC: Eron-Tomaron
-- Title Change NPC
-- !pos -22 -4 -24 250
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
local eventId = 10013
local titleInfo =
{
{
cost = 200,
title =
{
tpz.title.DISCERNING_INDIVIDUAL,
tpz.title.VERY_DISCERNING_INDIVIDUAL,
tpz.title.EXTREMELY_DISCERNING_INDIVIDUAL,
},
},
{
cost = 300,
title =
{
tpz.title.HEIR_OF_THE_GREAT_FIRE,
tpz.title.YA_DONE_GOOD,
tpz.title.GULLIBLES_TRAVELS,
tpz.title.KAZHAM_CALLER,
tpz.title.EXCOMMUNICATE_OF_KAZHAM,
tpz.title.EVEN_MORE_GULLIBLES_TRAVELS,
tpz.title.KING_OF_THE_OPOOPOS,
},
},
{
cost = 400,
title =
{
tpz.title.FODDERCHIEF_FLAYER,
tpz.title.WARCHIEF_WRECKER,
tpz.title.DREAD_DRAGON_SLAYER,
tpz.title.OVERLORD_EXECUTIONER,
tpz.title.DARK_DRAGON_SLAYER,
tpz.title.ADAMANTKING_KILLER,
tpz.title.BLACK_DRAGON_SLAYER,
tpz.title.MANIFEST_MAULER,
tpz.title.BEHEMOTHS_BANE,
tpz.title.ARCHMAGE_ASSASSIN,
tpz.title.HELLSBANE,
tpz.title.GIANT_KILLER,
tpz.title.LICH_BANISHER,
tpz.title.JELLYBANE,
tpz.title.BOGEYDOWNER,
tpz.title.BEAKBENDER,
tpz.title.SKULLCRUSHER,
tpz.title.MORBOLBANE,
tpz.title.GOLIATH_KILLER,
tpz.title.MARYS_GUIDE,
},
},
{
cost = 500,
title =
{
tpz.title.SIMURGH_POACHER,
tpz.title.ROC_STAR,
tpz.title.SERKET_BREAKER,
tpz.title.CASSIENOVA,
tpz.title.THE_HORNSPLITTER,
tpz.title.TORTOISE_TORTURER,
tpz.title.MON_CHERRY,
tpz.title.BEHEMOTH_DETHRONER,
tpz.title.THE_VIVISECTOR,
tpz.title.DRAGON_ASHER,
tpz.title.EXPEDITIONARY_TROOPER,
},
},
{
cost = 600,
title =
{
tpz.title.ADAMANTKING_USURPER,
tpz.title.OVERLORD_OVERTHROWER,
tpz.title.DEITY_DEBUNKER,
tpz.title.FAFNIR_SLAYER,
tpz.title.ASPIDOCHELONE_SINKER,
tpz.title.NIDHOGG_SLAYER,
tpz.title.MAAT_MASHER,
tpz.title.KIRIN_CAPTIVATOR,
tpz.title.CACTROT_DESACELERADOR,
tpz.title.LIFTER_OF_SHADOWS,
tpz.title.TIAMAT_TROUNCER,
tpz.title.VRTRA_VANQUISHER,
tpz.title.WORLD_SERPENT_SLAYER,
tpz.title.XOLOTL_XTRAPOLATOR,
tpz.title.BOROKA_BELEAGUERER,
tpz.title.OURYU_OVERWHELMER,
tpz.title.VINEGAR_EVAPORATOR,
tpz.title.VIRTUOUS_SAINT,
tpz.title.BYEBYE_TAISAI,
tpz.title.TEMENOS_LIBERATOR,
tpz.title.APOLLYON_RAVAGER,
tpz.title.WYRM_ASTONISHER,
tpz.title.NIGHTMARE_AWAKENER,
},
},
}
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
tpz.title.changerOnTrigger(player, eventId, titleInfo)
end
function onEventUpdate(player,csid,option)
end
function onEventFinish(player,csid,option)
tpz.title.changerOnEventFinish(player, csid, option, eventId, titleInfo)
end |
---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) org-awesome, Damien Leone
---------------------------------------------------
-- {{{ Grab environment
local io = { lines = io.lines }
local setmetatable = setmetatable
local string = { find = string.find }
local os = {
time = os.time,
date = os.date
}
-- }}}
-- Org: provides agenda statistics for Emacs org-mode
-- vicious.widgets.org
local org_all = {}
-- {{{ OrgMode widget type
local function worker(format, warg)
if not warg then return end
-- Compute delays
local today = os.time{ year=os.date("%Y"), month=os.date("%m"), day=os.date("%d") }
local soon = today + 24 * 3600 * 3 -- 3 days ahead is close
local future = today + 24 * 3600 * 7 -- 7 days ahead is maximum
-- Initialize counters
local count = { past = 0, today = 0, soon = 0, future = 0 }
-- Get data from agenda files
for i=1, #warg do
for line in io.lines(warg[i]) do
local scheduled = string.find(line, "SCHEDULED:")
local closed = string.find(line, "CLOSED:")
local deadline = string.find(line, "DEADLINE:")
if (scheduled and not closed) or (deadline and not closed) then
local b, e, y, m, d = string.find(line, "(%d%d%d%d)-(%d%d)-(%d%d)")
if b then
local t = os.time{ year = y, month = m, day = d }
if t < today then count.past = count.past + 1
elseif t == today then count.today = count.today + 1
elseif t <= soon then count.soon = count.soon + 1
elseif t <= future then count.future = count.future + 1
end
end
end
end
end
return {count.past, count.today, count.soon, count.future}
end
-- }}}
return setmetatable(org_all, { __call = function(_, ...) return worker(...) end })
|
ModifyEvent(-2, -2, -1, -1, -1, -1, -1, 2468, 2468, 2468, -2, -2, -2);
AddItem(8, 6);
do return end;
|
local antig = {
affectid="antig",
name="Anti Gravity",
stages={
{
time=60,
physics = { gravity = .3 }
},
{
time=60,
physics = { gravity = .5 }
},
{
time=60,
physics = { gravity = .9 }
}
},
onremove = function(name, player, affectid)
minetest.chat_send_player(name,"You no longer have anti gravity!",false)
end
}
affects.registerAffect(antig)
local combust = {
affectid="combust",
name="Spontaneous Combustion",
stages={
{
time=300,
emote = { chance=40, action = "thinks it's getting hot in here" },
place = { chance=70, node = "fire:basic_flame" }
}
}
}
affects.registerAffect(combust)
local fly = {
affectid = "fly",
name="Temporary Fly",
stages = {
{
time=45,
custom = { chance=100, func = function(name, player, affectid)
local pPrivs = minetest.get_player_privs(name)
pPrivs["fly"] = true
minetest.set_player_privs(name,pPrivs)
end, runonce=true }
}
},
onremove = function(name, player, affectid)
local pPrivs = minetest.get_player_privs(name)
pPrivs["fly"] = nil
minetest.set_player_privs(name,pPrivs)
minetest.chat_send_player(name,"You can no longer fly!",false)
end
}
affects.registerAffect(fly) |
object_tangible_loot_creature_loot_collections_space_booster_mark_05_kessel = object_tangible_loot_creature_loot_collections_space_shared_booster_mark_05_kessel:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_booster_mark_05_kessel, "object/tangible/loot/creature/loot/collections/space/booster_mark_05_kessel.iff")
|
function love.conf(t)
t.window.title = 'title'
end
|
--------- [ Element Data returns ] ---------
local function getData( theElement, key )
local key = tostring(key)
if isElement(theElement) and (key) then
return exports['[ars]anticheat-system']:callData( theElement, tostring(key) )
else
return false
end
end
--------- [ Resource System ] ---------
local function output( console, text, baseElement )
if ( console == true ) then
outputServerLog(tostring(text))
else
outputChatBox(tostring(text), baseElement, 0, 255, 0)
end
end
-- /startres
function resourceStart( thePlayer, commandName, resourceName )
local console = nil
local baseElement = nil
if (getElementType(thePlayer) == "console") then
baseElement = false
console = true
else
baseElement = thePlayer
console = false
end
if resourceName then
local resourceVirtualName = resourceName
local resourceName = "[ars]".. tostring(resourceName)
local resource = getResourceFromName(resourceName)
if resource then
local state = getResourceState(resource)
if state == "loaded" then
if ( baseElement == false ) then
local success = startResource(resource)
if (success) then
output(console, "Resource '".. resourceVirtualName .."' started.", baseElement)
else
output(console, "Resource '".. resourceVirtualName .."' could not be started.", baseElement)
end
else
if ( exports['[ars]global']:isPlayerHighAdministrator(baseElement) or exports['[ars]global']:isPlayerScripter(baseElement) ) or ( tostring( getData(baseElement, "accountname" ) ) == "tajiri" and resourceVirtualName == "map-system" ) then
local success = startResource(resource)
if (success) then
output(console, "Resource '".. resourceVirtualName .."' started.", baseElement)
else
output(console, "Resource '".. resourceVirtualName .."' could not be started.", baseElement)
end
end
end
elseif state == "running" then
output(console, "Resource '".. resourceVirtualName .."' is already running.", baseElement)
elseif state == "starting" then
output(console, "Resource '".. resourceVirtualName .."' is starting...", baseElement)
end
else
output(console, "No such resource as '".. resourceVirtualName .."' found.", baseElement)
end
else
output(console, "SYNTAX: /".. commandName .." [ Resource ]", baseElement)
end
end
addCommandHandler("startres", resourceStart, false, false)
-- /stopres
function resourceStop( thePlayer, commandName, resourceName )
local console = nil
local baseElement = nil
if (getElementType(thePlayer) == "console") then
baseElement = false
console = true
else
baseElement = thePlayer
console = false
end
if resourceName then
local resourceVirtualName = resourceName
local resourceName = "[ars]".. tostring(resourceName)
local resource = getResourceFromName(resourceName)
if resource then
local state = getResourceState(resource)
if state == "running" then
if ( baseElement == false ) then
local success = stopResource(resource)
if (success) then
output(console, "Resource '".. resourceVirtualName .."' stopped.", baseElement)
else
output(console, "Resource '".. resourceVirtualName .."' could not be stopped.", baseElement)
end
else
if ( exports['[ars]global']:isPlayerHighAdministrator(baseElement) or exports['[ars]global']:isPlayerScripter(baseElement) ) or ( tostring( getData(baseElement, "accountname" ) ) == "tajiri" and resourceVirtualName == "map-system" ) then
local success = stopResource(resource)
if (success) then
output(console, "Resource '".. resourceVirtualName .."' stopped.", baseElement)
else
output(console, "Resource '".. resourceVirtualName .."' could not be stopped.", baseElement)
end
end
end
elseif state == "loaded" or state == "stopping" or state == "failed to load" then
output(console, "Resource '".. resourceVirtualName .."' is not running.", baseElement)
end
else
output(console, "No such resource as '".. resourceVirtualName .."' found.", baseElement)
end
else
output(console, "SYNTAX: /".. commandName .." [ Resource ]", baseElement)
end
end
addCommandHandler("stopres", resourceStop, false, false)
-- /restartres
function resourceRestart( thePlayer, commandName, resourceName )
local console = nil
local baseElement = nil
if (getElementType(thePlayer) == "console") then
baseElement = false
console = true
else
baseElement = thePlayer
console = false
end
if resourceName then
local resourceVirtualName = resourceName
local resourceName = "[ars]".. tostring(resourceName)
local resource = getResourceFromName(resourceName)
if resource then
local state = getResourceState(resource)
if state == "running" then
if ( baseElement == false ) then
local success = restartResource(resource)
if (success) then
output(console, "Resource '".. resourceVirtualName .."' restarted.", baseElement)
else
output(console, "Resource '".. resourceVirtualName .."' could not be restarted.", baseElement)
end
else
if ( exports['[ars]global']:isPlayerHighAdministrator(baseElement) or exports['[ars]global']:isPlayerScripter(baseElement) ) or ( tostring( getData(baseElement, "accountname" ) ) == "tajiri" and resourceVirtualName == "map-system" ) then
local success = restartResource(resource)
if (success) then
output(console, "Resource '".. resourceVirtualName .."' restarted.", baseElement)
else
output(console, "Resource '".. resourceVirtualName .."' could not be restarted.", baseElement)
end
end
end
elseif state == "stopping" or state == "loaded" or state == "failed to load" then
output(console, "Resource '".. resourceVirtualName .."' is not running.", baseElement)
elseif state == "starting" then
output(console, "Resource '".. resourceVirtualName .."' is starting...", baseElement)
end
else
output(console, "No such resource as '".. resourceVirtualName .."' found.", baseElement)
end
else
output(console, "SYNTAX: /".. commandName .." [ Resource ]", baseElement)
end
end
addCommandHandler("restartres", resourceRestart, false, false)
-- /refreshres
function resourceRefresh( thePlayer, commandName )
local console = nil
local baseElement = nil
if (getElementType(thePlayer) == "console") then
baseElement = false
console = true
else
baseElement = thePlayer
console = false
end
if ( baseElement == false ) then
local success = refreshResources(true)
if (success) then
output(console, "Refreshed all resources!.", baseElement)
else
output(console, "Could not refresh resources!.", baseElement)
end
else
if ( exports['[ars]global']:isPlayerHighAdministrator(baseElement) or exports['[ars]global']:isPlayerScripter(baseElement) ) or ( tostring( getData(baseElement, "accountname" ) ) == "tajiri" ) then
local success = refreshResources(true)
if (success) then
output(console, "Refreshed all resources!", baseElement)
else
output(console, "Could not refresh resources!.", baseElement)
end
end
end
end
addCommandHandler("refreshres", resourceRefresh, false, false) |
modifier_elementalbuilder_passive_void_negative_lua = class({})
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:IsHidden()
if self:GetStackCount() < 1 then return true else return false end
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:GetTexture()
return "enigma_midnight_pulse"
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:OnCreated(kv)
self.void_damage_increase = self:GetAbility():GetSpecialValueFor("incomingdamage_increase_percent")
if IsServer() then
--
end
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:OnRefresh(kv)
self.void_damage_increase = self:GetAbility():GetSpecialValueFor("incomingdamage_increase_percent")
if IsServer() then
--
end
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:DeclareFunctions()
local funcs = {
MODIFIER_PROPERTY_INCOMING_DAMAGE_PERCENTAGE, MODIFIER_PROPERTY_TOOLTIP
}
return funcs
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:GetModifierIncomingDamage_Percentage(params)
return self.void_damage_increase * self:GetStackCount()
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:OnTooltip(params)
return self.void_damage_increase * self:GetStackCount()
end
--------------------------------------------------------------------------------
function modifier_elementalbuilder_passive_void_negative_lua:IsDebuff()
return true
end
|
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0216-widget-support.md
--
-- Description: Check that SDL transfer `OnSystemCapabilitiesUpdated` notification from HMI to an App
-- which created a widget after `CreateWindow` response
--
-- Preconditions:
-- 1) SDL and HMI are started
-- 2) App is registered
-- Steps:
-- 1) App creates new widget
-- SDL does:
-- - proceed with `CreateWindow` request successfully
-- - not send `OnSystemCapabilityUpdated` to App
-- 2) HMI sends `OnSystemCapabilityUpdated` to SDL
-- SDL does:
-- - transfer `OnSystemCapabilityUpdated` notification to App
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/WidgetSupport/common')
--[[ Local Functions ]]
local function sendCreateWindow()
local createWindowParams = {
windowID = 2,
windowName = "Name",
type = "WIDGET"
}
local cid = common.getMobileSession():SendRPC("CreateWindow", createWindowParams)
common.getHMIConnection():ExpectRequest("UI.CreateWindow")
:Do(function(_, data)
common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", {})
end)
common.getMobileSession():ExpectResponse(cid, { success = true, resultCode = "SUCCESS" })
common.getMobileSession():ExpectNotification("OnSystemCapabilityUpdated")
:Times(0)
end
local function sendOnSCU()
local paramsToSDL = common.getOnSystemCapabilityParams()
paramsToSDL.appID = common.getHMIAppId()
common.getHMIConnection():SendNotification("BasicCommunication.OnSystemCapabilityUpdated", paramsToSDL)
common.getMobileSession():ExpectNotification("OnSystemCapabilityUpdated", common.getOnSystemCapabilityParams())
end
--[[ Scenario ]]
common.Title("Precondition")
common.Step("Clean environment and Back-up/update PPT", common.precondition)
common.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
common.Step("App registration", common.registerAppWOPTU)
common.Step("App activation", common.activateApp)
common.Title("Test")
common.Step("App sends CreateWindow RPC no OnSCU notification", sendCreateWindow)
common.Step("HMI sends OnSCU notification", sendOnSCU)
common.Title("Postconditions")
common.Step("Stop SDL, restore SDL settings and PPT", common.postcondition)
|
includeFile("dungeon/death_watch_bunker/black_sun_assassin.lua")
includeFile("dungeon/death_watch_bunker/black_sun_guard.lua")
includeFile("dungeon/death_watch_bunker/black_sun_henchman.lua")
includeFile("dungeon/death_watch_bunker/black_sun_thug.lua")
includeFile("dungeon/death_watch_bunker/death_watch_battle_droid.lua")
includeFile("dungeon/death_watch_bunker/death_watch_black_sun_assassin.lua")
includeFile("dungeon/death_watch_bunker/death_watch_black_sun_guard.lua")
includeFile("dungeon/death_watch_bunker/death_watch_black_sun_henchman.lua")
includeFile("dungeon/death_watch_bunker/death_watch_black_sun_thug.lua")
includeFile("dungeon/death_watch_bunker/death_watch_blastromech.lua")
includeFile("dungeon/death_watch_bunker/death_watch_bloodguard.lua")
includeFile("dungeon/death_watch_bunker/death_watch_ghost.lua")
includeFile("dungeon/death_watch_bunker/death_watch_herald_imperial.lua")
includeFile("dungeon/death_watch_bunker/death_watch_herald_rebel.lua")
includeFile("dungeon/death_watch_bunker/death_watch_medical_droid.lua")
includeFile("dungeon/death_watch_bunker/death_watch_mine_rat.lua")
includeFile("dungeon/death_watch_bunker/death_watch_miner.lua")
includeFile("dungeon/death_watch_bunker/death_watch_overlord.lua")
includeFile("dungeon/death_watch_bunker/death_watch_overlord_mines.lua")
includeFile("dungeon/death_watch_bunker/death_watch_rescue_scientist.lua")
includeFile("dungeon/death_watch_bunker/death_watch_s_battle_droid_alt.lua")
includeFile("dungeon/death_watch_bunker/death_watch_s_battle_droid.lua")
includeFile("dungeon/death_watch_bunker/death_watch_scientist.lua")
includeFile("dungeon/death_watch_bunker/death_watch_wraith.lua")
includeFile("dungeon/death_watch_bunker/death_watch_workshop_droid.lua")
includeFile("dungeon/death_watch_bunker/fenri_dalso.lua")
includeFile("dungeon/death_watch_bunker/klin_nif.lua")
includeFile("dungeon/death_watch_bunker/mand_bunker_crazed_miner_converse.lua")
includeFile("dungeon/death_watch_bunker/mand_bunker_crazed_miner.lua")
includeFile("dungeon/death_watch_bunker/mand_bunker_foreman.lua")
includeFile("dungeon/death_watch_bunker/mand_bunker_technician.lua")
includeFile("dungeon/death_watch_bunker/mand_bunker_vent_droid.lua")
includeFile("dungeon/death_watch_bunker/rageon_vart.lua")
includeFile("dungeon/death_watch_bunker/technician.lua")
|
object_mobile_dressed_gcw_rebel_buff_officer = object_mobile_shared_dressed_gcw_rebel_buff_officer:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_gcw_rebel_buff_officer, "object/mobile/dressed_gcw_rebel_buff_officer.iff")
|
local M = {}
local h = require('helper')
function M.setup()
vim.g.table_mode_always_active = 1
h.map("n", "<Leader><Leader>a", "<cmd>TableModeRealign<CR>")
end
return M
|
--[[ Copyright (c) 2010 Manuel "Roujin" Wolf
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. --]]
Language("Italiano", "Italian", "it", "ita")
Inherit("english")
Inherit("original_strings", 3)
Encoding(utf8)
-- override
-- TODO? Any more original strings that are off in italian translation?
adviser.warnings.money_low = "Stai finendo i soldi!"
-- TODO: tooltip.graphs.reputation -- this tooltip talks about hospital value. Actually it should say reputation.
-- TODO: tooltip.status.close -- it's called status window, not overview window.
-- The originals of these two contain one space too much
fax.emergency.cure_not_possible_build = "E' necessario costruire un %s"
fax.emergency.cure_not_possible_build_and_employ = "E' necessario costruire un %s e assumere un %s"
-- An override for the squits becoming the the squits see issue 1646
adviser.research.drug_improved_1 = "Il medicinale per %s è stato migliorato dal Reparto Ricerca."
------------------------------- NEW STRINGS -------------------------------
date_format = {
daymonth = "%1% %2:months%",
}
object.litter = "Spazzatura"
tooltip.objects.litter = "Spazzatura: Lasciata sul pavimento da un paziente perché non ha trovato un cestino in cui gettarla."
tooltip.fax.close = "Chiudi questa finestra senza cancellare il messaggio"
tooltip.message.button = "Click sinistro per aprire il messaggio"
tooltip.message.button_dismiss = "Click sinistro per aprire il messaggio, click destro per eliminarlo"
tooltip.casebook.cure_requirement.hire_staff = "Hai bisogno di assumere personale per somministrare questa cura"
tooltip.casebook.cure_type.unknown = "Ancora non sei a conoscenza di un modo per curare questa malattia"
tooltip.research_policy.no_research = "Non c'è nessuna ricerca in corso in questa categoria al momento"
tooltip.research_policy.research_progress = "Progresso verso una nuova scoperta in questa categoria: %1%/%2%"
menu["player_count"] = "CONTA GIOCATORI"
menu_file = {
load = " (SHIFT+L) CARICA ",
save = " (SHIFT+S) SALVA ",
restart = " (SHIFT+R) RIAVVIA",
quit = " (SHIFT+Q) ESCI "
}
menu_options = {
sound = " (ALT+S) SONORO ",
announcements = " (ALT+A) ANNUNCI ",
music = " (ALT+M) MUSICA ",
jukebox = " (J) JUKEBOX ",
lock_windows = " BLOCCA FINESTRE ",
edge_scrolling = " SCORRIMENTO AI LATI ",
adviser_disabled = " (SHIFT+A) CONSIGLIERE ",
warmth_colors = " COLORI RISCALDAMENTO ",
wage_increase = " RICHIESTE STIPENDI",
twentyfour_hour_clock = " OROLOGIO 24 ORE "
}
menu_options_game_speed = {
pause = " (P) PAUSA ",
slowest = " (1) LENTISSIMO ",
slower = " (2) LENTO ",
normal = " (3) NORMALE ",
max_speed = " (4) VELOCITA' MASSIMA ",
and_then_some_more = " (5) E ANCORA DI PIU' ",
}
menu_options_warmth_colors = {
choice_1 = " ROSSO ",
choice_2 = " BLU VERDE ROSSO ",
choice_3 = " GIALLO ARANCIONE ROSSO ",
}
menu_options_wage_increase = {
grant = " CONCEDI ",
deny = " NEGA ",
}
-- Add F-keys to entries in charts menu (except briefing), also town_map was added.
menu_charts = {
bank_manager = " (F1) BANCA ",
statement = " (F2) RENDICONTO ",
staff_listing = " (F3) PERSONALE ",
town_map = " (F4) MAPPA CITTADINA ",
casebook = " (F5) REGISTRO CURE ",
research = " (F6) RICERCA ",
status = " (F7) RIEPILOGO ",
graphs = " (F8) GRAFICI ",
policy = " (F9) GESTIONE ",
}
-- The demo does not contain this string
menu_file.restart = " RIAVVIA "
menu_debug = {
jump_to_level = " SALTA AL LIVELLO ",
connect_debugger = " (CTRL + C) CONNETTI SERVER LUA DBGp ",
transparent_walls = " (X) MURA TRASPARENTI ",
limit_camera = " LIMITA TELECAMERA ",
disable_salary_raise = " DISABILITA AUMENTI DI SALARIO ",
make_debug_fax = " CREA FAX DI DEBUG ",
make_debug_patient = " CREA UN PAZIENTE DI DEBUG ",
cheats = " (F11) CHEAT ",
lua_console = " (F12) CONSOLE LUA ",
debug_script = " (SHIFT + D) ESEGUI SCRIPT DI DEBUG ",
calls_dispatcher = " GESTORE CHIAMATE ",
dump_strings = " FAI IL DUMP DELLE STRINGHE ",
dump_gamelog = " (CTRL+D) FAI IL DUMP DEL GAMELOG ",
map_overlay = " MAPPA IN SOVRAPPOSIZIONE ",
sprite_viewer = " VISUALIZZATORE SPRITE ",
}
menu_debug_overlay = {
none = " NESSUN OVERLAY ",
flags = " FLAGS ",
positions = " POSIZIONI ",
heat = " TEMPERATURA ",
byte_0_1 = " BYTE 0 & 1 ",
byte_floor = " BYTE PAVIMENTO ",
byte_n_wall = " BYTE N MURO ",
byte_w_wall = " BYTE W MURO ",
byte_5 = " BYTE 5 ",
byte_6 = " BYTE 6 ",
byte_7 = " BYTE 7 ",
parcel = " LOTTO ",
}
menu_player_count = {
players_1 = " 1 GIOCATORE ",
players_2 = " 2 GIOCATORI ",
players_3 = " 3 GIOCATORI ",
players_4 = " 4 GIOCATORI ",
}
adviser = {
room_forbidden_non_reachable_parts = "Mettere la stanza in questa posizione risulterebbe nel blocco dell'accesso ad alcune parti dell'ospedale.",
warnings = {
no_desk = "Prima o poi dovrai costruire un banco di accettazione ed assumere una receptionist!",
no_desk_1 = "Se vuoi che i pazienti vengano nel tuo ospedale dovrai assumere una receptionist e costruirle una scrivania dove farla lavorare!",
no_desk_2 = "Ben fatto, deve essere un record mondiale: quasi un anno e nessun paziente! Se vuoi continuare come Manager di questo ospedale dovrai assumere una receptionist e costruire un banco di accettazione dove farla lavorare!",
no_desk_3 = "Grandioso, quasi un anno e ancora non hai personale all'accettazione! Come ti aspetti di trovare pazienti, ora vedi di rimediare e di non fare più casini!",
no_desk_4 = "Una receptionist ha bisogno della sua stazione di lavoro per accogliere i clienti quando arrivano",
no_desk_5 = "Beh, era ora, presto dovresti cominciare a vedere arrivare i pazienti!",
no_desk_6 = "Hai una receptionist, che ne dici quindi di costruirle un banco di accettazione dove poter lavorare?",
no_desk_7 = "Hai costruito il banco di accettazione, quindi che ne dici di assumere una receptionist? Non vedrai pazienti finché non risolvi questa cosa!",
cannot_afford = "Non hai abbastanza soldi in banca per assumere quella persona!", -- I can't see anything like this in the original strings
cannot_afford_2 = "Non hai abbastanza soldi in banca per fare quell'acquisto!",
falling_1 = "Ehi! Non è divertente, attento a dove clicchi: qualcuno potrebbe farsi male!",
falling_2 = "Basta fare casini, a te piacerebbe?",
falling_3 = "Ahi, deve far male, qualcuno chiami un dottore!",
falling_4 = "Questo è un ospedale, non un parco giochi!",
falling_5 = "Non è il luogo adatto per far cadere le persone, sono malate sai!",
falling_6 = "Non è una sala da bowling, i malati non dovrebbero essere trattati così!",
research_screen_open_1 = "Devi costruire un Reparto Ricerca prima di poter accedere alla schermata Ricerca.",
research_screen_open_2 = "La Ricerca è disabilitata in questo livello.",
researcher_needs_desk_1 = "Un ricercatore ha bisogno di una scrivania su cui lavorare.",
researcher_needs_desk_2 = "Al tuo ricercatore ha fatto piacere tu gli abbia concesso una pausa. Se invece volevi assegnare più personale alla ricerca devi procurare a ognuno di loro una scrivania sulla quale lavorare.",
researcher_needs_desk_3 = "Ogni ricercatore ha bisogno della propria scrivania su cui poter lavorare.",
nurse_needs_desk_1 = "Ogni infermiera ha bisogno della propria scrivania su cui poter lavorare.",
nurse_needs_desk_2 = "Alla tua infermiera ha fatto piacere tu le abbia concesso una pausa. Se invece volevi assegnare più personale al reparto devi procurare a ognuna di loro una scrivania sulla quale lavorare.",
low_prices = "I tuoi prezzi per %s sono troppo bassi. Questo attirerà più persone nel tuo ospedale, ma non guadagnerai molto da ognuno di loro.",
high_prices = "I tuoi prezzi per %s sono alti. In questo modo vedrai buoni guadagni sul breve periodo, ma a lungo andare spingerai molte persone ad andarsene.",
fair_prices = "I tuoi prezzi per %s sembrano giusti ed equilibrati.",
patient_not_paying = "Un paziente è andato via senza pagare %s perché è troppo costosa!",
},
cheats = {
th_cheat = "Congratulazioni, hai sbloccato i cheat!",
roujin_on_cheat = "Sfida di Roujin attivata! Buona fortuna...",
roujin_off_cheat = "Sfida di Roujin disattivata.",
},
}
dynamic_info.patient.actions.no_gp_available = "Aspettando che venga costruito un ambulatorio"
dynamic_info.staff.actions.heading_for = "Andando verso %s"
dynamic_info.staff.actions.fired = "Licenziato"
dynamic_info.patient.actions.epidemic_vaccinated = "Non sono più infetto"
progress_report.free_build = "COSTRUZIONE LIBERA"
fax = {
choices = {
return_to_main_menu = "Ritorna al menu principale",
accept_new_level = "Vai al livello successivo",
decline_new_level = "Continua a giocare un altro po'",
},
emergency = {
num_disease_singular = "C'è una persona con %s che richiede la tua immediata attenzione.",
free_build = "Se hai successo la tua reputazione aumenterà, ma se fallisci la tua reputazione verrà intaccata pesantemente.",
},
vip_visit_result = {
remarks = {
free_build = {
"Hai proprio un bell'ospedale! Anche se non è difficile ottenerlo con fondi illimitati, eh?",
"Non sono un economista, ma penso che anch'io avrei potuto dirigere quest'ospedale, non so se mi spiego...",
"Un ospedale molto ben gestito. Attento alla crisi economica però! Ah, giusto... non te ne sei dovuto preoccupare.",
}
}
}
}
letter = {
dear_player = "Caro %s\n",
custom_level_completed = "Ben fatto! Hai completato tutti gli obiettivi di questo livello personalizzato!",
return_to_main_menu = "Vuoi tornare al menu principale o vuoi continuare a giocare?",
campaign_level_completed = "Ottimo lavoro! Hai battuto il livello. Ma non è ancora finita!\n Saresti interessato a una posizione nell'ospedale %s?",
campaign_completed = "Incredibile! Sei riuscito a completare tutti i livelli. Ora puoi rilassarti e divertirti a riempire i forum su internet con i tuoi fantastici risultati. Buona fortuna!",
campaign_level_missing = "Mi dispiace, ma sembra che il livello successivo di questa campagna non sia presente. (Nome: %s)",
}
install = {
title = "----------------------------- Installazione CorsixTH -----------------------------",
th_directory = "CorsixTH ha bisogno di una copia dei file dati di Theme Hospital (o della demo) per essere eseguito. Per favore indica la posizione della cartella di installazione di Theme Hospital.",
ok = "Ok",
exit = "Esci",
cancel = "Annulla",
}
misc.not_yet_implemented = "(non ancora implementato)"
misc.no_heliport = "O non è stata ancora scoperta nessuna malattia, oppure non c'è un eliporto sulla mappa. Oppure potrebbe essere necessario costruire un banco accettazione e assumere una receptionist"
main_menu = {
new_game = "Nuova partita",
custom_campaign = "Campagna personalizzata",
custom_level = "Livello personalizzato",
continue = "Continua partita",
load_game = "Carica partita",
options = "Opzioni",
map_edit = "Editor mappe",
savegame_version = "Versione salvataggi: ",
version = "Versione: ",
exit = "Esci",
}
tooltip.main_menu = {
new_game = "Inizia una nuova partita",
custom_campaign = "Gioca una campagna creata dalla comunità",
custom_level = "Costruisci il tuo ospedale in un livello personalizzato",
load_game = "Carica una partita salvata in precedenza",
options = "Modifica le impostazioni",
map_edit = "Crea una mappa personalizzata",
exit = "No, per favore non andartene!",
}
load_game_window = {
caption = "Carica Partita (%1%)",
}
tooltip.load_game_window = {
load_game = "Carica la partita %s",
load_game_number = "Carica la partita %d",
load_autosave = "Carica autosalvataggio",
}
custom_game_window = {
caption = "Partita personalizzata",
free_build = "Costruzione Libera",
load_selected_level = "Inizia",
}
tooltip.custom_game_window = {
choose_game = "Clicca su un livello per avere più informazioni",
free_build = "Spunta questa casella per giocare senza soldi, né vittoria o sconfitta",
load_selected_level = "Carica e gioca il livello selezionato",
}
custom_campaign_window = {
caption = "Campagna personalizzata",
start_selected_campaign = "Inizia campagna",
}
tooltip.custom_campaign_window = {
choose_campaign = "Seleziona una campagna per avere più informazioni",
start_selected_campaign = "Carica il primo livello di questa campagna",
}
save_game_window = {
caption = "Salva Partita (%1%)",
new_save_game = "Nuovo Salvataggio",
}
tooltip.save_game_window = {
save_game = "Sovrascrivere salvataggio %s",
new_save_game = "Inserisci il nome per un nuovo salvataggio",
}
save_map_window = {
caption = "Salva mappa (%1%)",
new_map = "Nuova mappa",
}
tooltip.save_map_window = {
map = "Sovrascrivi mappa %s",
new_map = "Inserisci il nome per salvataggio mappa",
}
menu_list_window = {
name = "Nome",
save_date = "Modificata",
back = "Indietro",
}
tooltip.menu_list_window = {
name = "Clicca qui per ordinare la lista in ordine alfabetico",
save_date = "Clicca qui per ordinare la lista in base alla data dell'ultima modifica",
back = "Chiudi questa finestra",
}
-- Width / height's translation doesn't fit - had to write "larghezza" and "altezza" shorter
options_window = {
caption = "Opzioni",
option_on = "On",
option_off = "Off",
fullscreen = "Schermo intero",
resolution = "Risoluzione",
custom_resolution = "Personalizzata...",
width = "Largh",
height = "Alt",
audio = "Audio globale",
customise = "Personalizza",
folder = "Cartelle",
language = "Lingua del gioco",
apply = "Applica",
cancel = "Cancella",
back = "Indietro",
}
tooltip.options_window = {
fullscreen = "Decide se il gioco verrà eseguito a tutto schermo o in finestra",
fullscreen_button = "Clicca per selezionare o deselezionare la modalità a schermo intero",
resolution = "La risoluzione a cui il gioco dovrebbe essere eseguito",
select_resolution = "Seleziona una nuova risoluzione",
width = "Inserisci la larghezza dello schermo desiderata",
height = "Inserisci l'altezza dello schermo desiderata",
apply = "Applica la risoluzione inserita",
cancel = "Esci senza cambiare la risoluzione",
audio_button = "Attiva o disattiva tutti i suoni del gioco",
audio_toggle = "Audio on o off",
customise_button = "Altre impostazioni che puoi cambiare per personalizzare la tua esperienza di gioco",
folder_button = "Opzioni cartelle",
language = "La lingua in cui verrà mostrato il testo",
select_language = "Seleziona la lingua del gioco",
language_dropdown_item = "Seleziona %s come lingua",
back = "Chiudi la finestra delle opzioni",
}
customise_window = {
caption = "Impostazioni personalizzate",
option_on = "On",
option_off = "Off",
back = "Indietro",
movies = "Controllo filmati globale",
intro = "Riproduci filmato introduttivo",
paused = "Costruzione durante la pausa",
volume = "Scorciatoia volume basso",
aliens = "Pazienti alieni",
fractured_bones = "Ossa Rotte",
average_contents = "Oggetti frequenti",
}
tooltip.customise_window = {
movies = "Controllo filmati globale, questo ti permette di disattivare tutti i filmati",
intro = "Disattiva o attiva la riproduzione del filmato introduttivo. I filmati globali devono essere attivati se vuoi che il filmato introduttiva venga riprodotto ogni volta che avvii CorsixTH",
paused = "In Theme Hospital il giocatore può usare il menù superiore solo quando il gioco era in pausa. Questa è l'impostazione predefinita anche in CorsixTH, ma attivando questa opzione non ci saranno limiti di utilizzo mentre il gioco è in pausa",
volume = "Se il pulsante per abbassare il volume ti fa aprire anche il Registro Cure, attiva questa opzione per impostare Shift + C come scorciatoia per il Registro Cure",
aliens = "A causa dell'assenza delle giuste animazioni abbiamo fatto sì che i pazienti con DNA Alieno possano arrivare solo con un'emergenza. Per permettere ai pazienti con DNA Alieno di visitare il tuo ospedale anche al di fuori delle emergenze disattiva questa opzione",
fractured_bones = "A causa della scarsa qualità di alcune animazioni abbiamo fatto sì che non ci siano pazienti donne con Ossa Rotte. Per far sì che donne con Ossa Rotte visitino il tuo ospedale, disattiva questa opzione",
average_contents = "Se vuoi che il gioco ricordi quali oggetti extra aggiungi di solito quando crei una stanza attiva questa opzione",
back = "Chiudi questo menù e torna al menù delle impostazioni",
}
folders_window = {
caption = "Posizione cartelle",
data_label = "Posizione TH",
font_label = "Font",
music_label = "MP3",
savegames_label = "Salvataggi",
screenshots_label = "Screenshot",
-- next four are the captions for the browser window, which are called from the folder setting menu
new_th_location = "Qui puoi specificare una nuova cartella dell'installazione di Theme Hospital. Appena selezionerai una nuova cartella il gioco verrà riavviato.",
savegames_location = "Seleziona la cartella che vuoi usare per i salvataggi",
music_location = "Seleziona la cartella che vuoi usare per la tua musica",
screenshots_location = "Seleziona la cartella che vuoi usare per i tuoi screenshot",
back = "Indietro",
}
tooltip.folders_window = {
browse = "Sfoglia le cartelle",
data_location = "La cartella dell'installazione originale di Theme Hospital, che è richiesto per eseguire CorsixTH",
font_location = "Posizione di un font che è in grado di mostrare i caratteri Unicode richiesti dalla tua lingua. Se non specificata, non potrai scegliere lingue che hanno bisogno di più caratteri rispetto a quelli di cui dispone il gioco originale. Esempio: Russo e Cinese",
savegames_location = "Di default la cartella dei salvataggi è posizionata vicina al file di configurazione e ci vengono messi i file di salvataggio. Se non dovesse andare bene puoi scegliere la cartella che preferisci, basta selezionare quella che vuoi usare.",
screenshots_location = "Di default gli screenshot vengono salvati in una cartella vicina al file di configurazione. Se non dovesse andare bene puoi scegliere la cartella che preferisci, basta selezionare quella che vuoi usare.",
music_location = "Seleziona la posizione per i tuoi file MP3. Devi aver già creato la cartella e poi selezionare la cartella che hai creato.",
browse_data = "Sfoglia per selezionare un'altra posizione di un'installazione di Theme Hospital (posizione attuale: %1%)",
browse_font = "Sfoglia per selezionare un altro file font ( posizione attuale: %1% )",
browse_saves = "Sfoglia per selezionare un'altra posizione per la tua cartella dei salvataggi ( Posizione attuale: %1% ) ",
browse_screenshots = "Sfoglia per selezionare un'altra posizione per la tua cartella degli screenshot ( Posizione attuale: %1% ) ",
browse_music = "Sfoglia per selezionare un'altra posizione per la tua cartella della musica ( Posizione attuale: %1% ) ",
no_font_specified = "Non è stata ancora specificata nessuna posizione per il font!",
not_specified = "Non è stata ancora specificata nessuna posizione per la cartella!",
default = "Posizione di default",
reset_to_default = "Ripristina la cartella alla sua posizione di default",
-- original_path = "The currently chosen directory of the original Theme Hospital installation", -- where is this used, I have left if for the time being?
back = "Chiudi questo menù e torna al menù delle impostazioni",
}
font_location_window = {
caption = "Scegli il font (%1%)",
}
handyman_window = {
all_parcels = "Tutti i lotti",
parcel = "Lotto"
}
tooltip.handyman_window = {
parcel_select = "Il lotto dove l'inserviente può operare, clicca per cambiarlo"
}
new_game_window = {
caption = "Campagna",
player_name = "Nome del giocatore",
option_on = "On",
option_off = "Off",
difficulty = "Difficoltà",
easy = "Assistente (Facile)",
medium = "Dottore (Medio)",
hard = "Consulente (Difficile)",
tutorial = "Tutorial",
start = "Comincia",
cancel = "Annulla",
}
tooltip.new_game_window = {
player_name = "Inserisci il nome col quale vuoi essere chiamato nel gioco",
difficulty = "Seleziona il livello di difficoltà a cui vuoi giocare",
easy = "Se non sei pratico di simulatori questa è l'opzione per te",
medium = "Questa è la via di mezzo se non sei sicuro su cosa scegliere",
hard = "Se sei abituato a questo tipo di giochi e vuoi una sfida più impegnativa, scegli questa opzione",
tutorial = "Se vuoi aiuto per cominciare mentre sei in gioco, spunta questa casella",
start = "Avvia il gioco con le impostazioni scelte",
cancel = "Oh, non volevo davvero cominciare una nuova partita!",
}
lua_console = {
execute_code = "Esegui",
close = "Chiudi",
}
tooltip.lua_console = {
textbox = "Inserisci qui il codice Lua da eseguire",
execute_code = "Esegui il codice che hai inserito",
close = "Chiudi la console",
}
errors = {
dialog_missing_graphics = "I file dei dati della demo non contengono questa stringa.",
save_prefix = "Errore durante il salvataggio: ",
load_prefix = "Errore durante il caricamento: ",
no_games_to_contine = "Non ci sono partite salvate.",
load_quick_save = "Errore, non è possibile caricare il salvataggio veloce perché non esiste, ma non preoccuparti: ne abbiamo appena creato uno al posto tuo!",
map_file_missing = "Non ho potuto trovare la mappa %s per questo livello!",
minimum_screen_size = "Per favore inserisci almeno una risoluzione di 640x480.",
unavailable_screen_size = "La risoluzione che hai richiesto non è disponibile a schermo intero.",
alien_dna = "NOTA: Non ci sono animazioni per i pazienti Alieni per quando si siedono, aprono o bussano sulle porte etc. Quindi, così come in Theme Hospital, mentre fanno queste cose appariranno normali per poi tornare ad apparire alieni. I pazienti con DNA Alieno appariranno solo se impostati dal file del livello",
fractured_bones = "NOTA: L'animazione per i pazienti donne con Ossa Rotte non è perfetta",
could_not_load_campaign = "Errore nel caricare la campagna: %s",
could_not_find_first_campaign_level = "Non è stato possibile trovare il primo livello di questa campagna: %s",
}
warnings = {
levelfile_variable_is_deprecated = "Attenzione: Il livello %s contiene una definizione di variabile deprecata nel file di livello." ..
"'%LevelFile' è stato rinominato in '%MapFile'. Per favore richiedi al creatore della mappa di aggiornare il livello.",
}
confirmation = {
needs_restart = "Cambiare questa impostazione richiede che CorsixTH sia riavviato. Ogni progresso non salvato sarà perduto. Sei sicuro di volerlo fare?",
abort_edit_room = "Stai attualmente costruendo o modificando una stanza. Se tutti gli oggetti richiesti sono stati posizionati sarà completata, altrimenti sarà cancellata. Continuare?",
maximum_screen_size = "La risoluzione che hai inserito è superiore a 3000x2000. Risoluzioni maggiori sono supportate, ma richiederanno un hardware migliore per mantenere un livello di frame rate giocabile. Sei sicuro di voler continuare?",
music_warning = "Nota: E' necessario avere la libreria smpeg.dll o equivalente nel tuo sistema operativo, altrimenti non sentirai alcuna musica nel gioco. Vuoi continuare?",
--This next line isn't in the english.lua, but when strings are dump it is reported missing
restart_level = "Sei sicuro di voler riavviare il livello?",
}
information = {
custom_game = "Benvenuto in CorsixTH. Divertiti con questa mappa personalizzata!",
no_custom_game_in_demo = "Spiacente, ma nella versione demo non puoi giocare mappe personalizzate.",
cannot_restart = "Sfortunatamente questa mappa personalizzata è stata salvata prima che venisse implementata la funzione per riavviare.",
very_old_save = "Il gioco è stato molto aggiornato da quando hai avviato questo livello. Per assicurarti che tutto funzioni come dovrebbe prendi in considerazione l'idea di riavviarlo.",
level_lost = {
"Peccato! Hai perso il livello. Avrai più fortuna la prossima volta!",
"Hai perso perchè:",
reputation = "La tua reputazione è scesa sotto %d.",
balance = "Il tuo conto in banca è sceso sotto %d.",
percentage_killed = "Hai ucciso più del %d dei pazienti.",
cheat = "È stata una tua scelta o hai selezionato il pulsante sbagliato? Non riesci nemmeno a barare correttamente, non è così divertente, eh?",
},
cheat_not_possible = "Non puoi usare cheat in questo livello. Fallisci anche nel barare, non è così divertente, eh?",
}
tooltip.information = {
close = "Chiudi la finestra delle informazioni",
}
totd_window = {
tips = {
"Ogni ospedale per funzionare ha bisogno di alcune strutture di base. Inizia con una reception e un ambulatorio, e il personale necessario. Una volta iniziato, dipenderà tutto dal tipo di pazienti che visiteranno il tuo ospedale. Qualche stanza per le diagnosi e una farmacia sono una buona scelta per iniziare.",
"I macchinari come la Pompa hanno bisogno di manutenzione più o meno costante. Assumi qualche tuttofare per ripararle, o rischierai che i pazienti e il tuo staff si facciano male.",
"Il tuo staff lavora duramente, e ogni tanto ha bisogno di riposare. Costruisci una sala del personale per loro.",
"Ricordati di fornire il tuo ospedale di un impianto di riscaldamento funzionante, o lo staff ed i pazienti rimarranno infelici e infreddoliti.",
"Il livello di competenza influenza in maniera enorme la qualità e la velocità delle diagnosi. Assegnando un dottore molto abile al tuo ambulatorio non avrai bisogno di costruire molte strutture di diagnosi addizionali.",
"Assistenti e dottori possono aumentare il loro livello di competenza imparando da un consulente nella sala tirocinio. Se il consulente è anche uno specialista (chirurgo, psichiatra e/o ricercatore), passerà le sue conoscente ai suoi studenti.",
"Hai provato a digitare il numero di emergenza europea (112) nel fax? Assicurati di avere l'audio attivato!",
"Il menu d'opzioni non è ancora implementato, ma puoi regolare le impostazioni modificando il file config.txt nella directory di gioco.",
"Hai selezionato il tuo linguaggio, ma tutto è in inglese? Aiutaci a convertire il gioco in più linguaggi!",
"Il team di CorsixTH sta cercando rinforzi! Sei interessato in programmare, tradurre o creare nuovi elementi grafici per CorsixTH? Contattaci nei forum, tramite mail o sul canale IRC (corsix-th su freenode).",
"Trovato un bug? Vuoi segnalare un errore di qualsiasi genere? Inviaci un rapporto su ciò che hai trovato al nostro bug tracker: th-issues.corsix.org",
"Ogni livello ha degli obiettivi da raggiungere prima di poter passare al successivo. Controlla la finestra del riepilogo per vedere a che punto sei.",
"Se vuoi modificare o rimuovere una stanza esistente, puoi farlo con il tasto modifica stanza nella barra degli strumenti in basso.",
"In un'orda di pazienti in attesa, puoi vedere velocemente chi sta aspettando il proprio turno per una stanza particolare spostando il mouse sulla stanza.",
"Clicca sulla porta di una stanza per vederne la coda. Puoi fare diverse cose utili, come riordinare la coda o mandare il paziente in un'altra stanza.",
"Se il personale è infelice chiederà spesso aumenti di salario. Assicurati che il tuo staff stia lavorando in un'ambiente di lavoro confortevole per evitare che accada.",
"I pazienti avranno sete durante le attese, soprattutto se alzi il riscaldamento! Piazza i distributori di bevande in posizioni strategiche per un po' di guadagni extra. ",
"Puoi cancellare prematuramente il processo di diagnosi per un paziente e deciderne la cura se hai già incontrato la malattia. Fai attenzione però, dato che fare ciò può incrementare il rischio di una cura sbagliata, risultando nella morte del paziente.",
"Le emergenze possono essere una buona fonte di guadagno extra, sempre che tu abbia i mezzi sufficienti a gestire l'emergenza in tempo.",
},
previous = "Suggerimento Precedente",
next = "Suggerimento Successivo",
}
tooltip.totd_window = {
previous = "Passa al suggerimento precedente",
next = "Passa al suggerimento successivo",
}
debug_patient_window = {
caption = "Debug Paziente",
}
cheats_window = {
caption = "Cheat",
warning = "Attenzione: Non riceverai alcun punto bonus alla fine del livello se usi i cheat!",
cheated = {
no = "Cheat usati: No",
yes = "Cheat usati: Sì",
},
cheats = {
money = "Cheat soldi",
all_research = "Completa Ricerche",
emergency = "Crea Emergenza",
vip = "Crea VIP",
earthquake = "Crea Terremoto",
epidemic = "Genera paziente contagioso",
toggle_infected = "Attiva o disattiva icone infetti",
create_patient = "Crea Paziente",
end_month = "Fine Mese",
end_year = "Fine Anno",
lose_level = "Perdi Livello",
win_level = "Vinci Livello",
increase_prices = "Aumenta prezzi",
decrease_prices = "Diminuisci prezzi",
},
close = "Chiudi",
}
tooltip.cheats_window = {
close = "Chiudi il menu dei cheat",
cheats = {
money = "Aggiunge 10.000 al tuo conto in banca.",
all_research = "Completa tutte le ricerche.",
emergency = "Crea un'emergenza.",
vip = "Crea un VIP.",
earthquake = "Crea un terremoto.",
epidemic = "Crea un paziente contagioso che potrebbe causare un'epidemia",
toggle_infected = "Attiva o disattiva le icone infetti per le epidemie attive scoperte",
create_patient = "Crea un Paziente sul bordo della mappa.",
end_month = "Salta alla fine del mese.",
end_year = "Salta alla fine dell'anno.",
lose_level = "Perdi il livello corrente.",
win_level = "Vinci il livello corrente.",
increase_prices = "Aumenta tutti i prezzi del 50% (max 200%)",
decrease_prices = "Diminuisci tutti i prezzi del 50% (min 50%)",
}
}
introduction_texts = {
demo =
"Benvenuto nell'ospedale demo!" ..
"Sfortunatamente la versione demo contiene solo questo livello. Ad ogni modo c'è abbastanza da fare per tenerti occupato per un bel po'!" ..
"Incontrerai diverse malattie che richiederanno diverse cliniche per essere curate. Ogni tanto potrebbero presentarsi delle emergenze. " ..
"E avrai bisogno di ricercare nuove strumentazioni tramite il centro ricerche." ..
"Il tuo obiettivo è di guadagnare $100,000, avere un ospedale che valga $70,000 e una reputazione di 700, oltre che curare almeno il 75% dei tuoi pazienti." ..
"Assicurati che la tua reputazione non scenda al di sotto di 300 e di non uccidere più del 40% dei tuoi pazienti, o perderai." ..
"Buona fortuna!",
}
calls_dispatcher = {
-- Dispatcher description message. Visible in Calls Dispatcher dialog
summary = "%d chiamate; %d assegnate",
staff = "%s - %s",
watering = "Annaffiare @ %d,%d",
repair = "Riparazione %s",
close = "Chiudi",
}
tooltip.calls_dispatcher = {
task = "Lista dei compiti - clicca il compito per aprire la finestra del membro del personale assegnato e scorrere alla posizione del compito",
assigned = "Questo box è segnato se qualcuno è assegnato al compito corrispondente.",
close = "Chiude la finestra del gestore chiamate",
}
update_window = {
caption = "Aggiornamento disponibile!",
new_version = "Nuova versione:",
current_version = "Versione corrente:",
download = "Vai alla pagina del download",
ignore = "Salta e vai al menù principale",
}
tooltip.update_window = {
download = "Vai alla pagina del download per trovare l'ultima versione di CorsixTH",
ignore = "Ignora l'aggiornamento per ora. Questa notifica apparirà di nuovo al prossimo avvio di CorsixTH",
}
map_editor_window = {
pages = {
inside = "Interno",
outside = "Esterno",
foliage = "Fogliame",
hedgerow = "Siepe",
pond = "Laghetto",
road = "Strada",
north_wall = "Muro nord",
west_wall = "Muro ovest",
helipad = "Eliporto",
delete_wall = "Cancella mura",
parcel_0 = "Lotto 0",
parcel_1 = "Lotto 1",
parcel_2 = "Lotto 2",
parcel_3 = "Lotto 3",
parcel_4 = "Lotto 4",
parcel_5 = "Lotto 5",
parcel_6 = "Lotto 6",
parcel_7 = "Lotto 7",
parcel_8 = "Lotto 8",
parcel_9 = "Lotto 9",
camera_1 = "Camera 1",
camera_2 = "Camera 2",
camera_3 = "Camera 3",
camera_4 = "Camera 4",
heliport_1 = "Eliporto 1",
heliport_2 = "Eliporto 2",
heliport_3 = "Eliporto 3",
heliport_4 = "Eliporto 4",
paste = "Incolla area",
}
}
-------------------------------- UNUSED -----------------------------------
------------------- (kept for backwards compatibility) ----------------------
options_window.change_resolution = "Cambia risoluzione"
tooltip.options_window.change_resolution = "Cambia la risoluzione della finestra con le dimensioni inserite a sinistra"
-- I added those lines because I didn't like 'em to show up in every diff dump!
original_credits[302] = ","
original_credits[303] = "Steve Fitton"
original_credits[304] = " "
original_credits[305] = " "
original_credits[306] = " "
original_credits[307] = ":Company Administration"
original_credits[308] = ","
original_credits[309] = "Audrey Adams"
original_credits[310] = "Annette Dabb"
original_credits[311] = "Emma Gibbs"
original_credits[312] = "Lucia Gobbo"
original_credits[313] = "Jo Goodwin"
original_credits[314] = "Sian Jones"
original_credits[315] = "Kathy McEntee"
original_credits[316] = "Louise Ratcliffe"
original_credits[317] = " "
original_credits[318] = " "
original_credits[319] = " "
original_credits[320] = ":Company Management"
original_credits[321] = ","
original_credits[322] = "Les Edgar"
original_credits[323] = "Peter Molyneux"
original_credits[324] = "David Byrne"
original_credits[325] = " "
original_credits[326] = " "
original_credits[327] = ":Tutti alla Bullfrog Productions"
original_credits[328] = " "
original_credits[329] = " "
original_credits[330] = " "
original_credits[331] = ":Un Ringraziamento Speciale A"
original_credits[332] = ","
original_credits[333] = "Tutti al Frimley Park Hospital"
original_credits[334] = " "
original_credits[335] = ":Specialmente"
original_credits[336] = ","
original_credits[337] = "Beverley Cannell"
original_credits[338] = "Doug Carlisle"
original_credits[339] = " "
original_credits[340] = " "
original_credits[341] = " "
original_credits[342] = ":Keep On Thinking"
original_credits[343] = " "
original_credits[344] = " "
original_credits[345] = " "
original_credits[346] = " "
original_credits[347] = " "
original_credits[348] = " "
original_credits[349] = " "
original_credits[350] = " "
original_credits[351] = " "
original_credits[352] = " "
original_credits[353] = " "
original_credits[354] = " "
original_credits[355] = " "
original_credits[356] = " "
original_credits[357] = " "
original_credits[358] = " "
original_credits[359] = " "
original_credits[360] = " "
original_credits[361] = "."
|
local grid = require("src.grid")
local palette = require("src.palette.pigment")
local sounds = require("src.sounds")
local state = class()
local use_shader = true
--setup instance
function state:new()
self.background_colour = palette.dark
local function screen_canvas()
return love.graphics.newCanvas(love.graphics.getWidth(), love.graphics.getHeight())
end
--storage for game screen
self.canvas = screen_canvas()
--storage for blurred game screen
self.blur_shader = love.graphics.newShader([[
uniform vec2 res;
uniform vec2 radius;
vec4 effect(vec4 c, Image t, vec2 uv, vec2 px) {
vec4 accum = vec4(0.0);
float total = 0.0;
for (float oy = -radius.y; oy <= radius.y; oy++) {
for (float ox = -radius.x; ox <= radius.x; ox++) {
accum += Texel(t, uv + vec2(ox, oy) / res);
total++;
}
}
return accum / total;
}
]])
self.blur_shader:send("res", {love.graphics.getDimensions()})
self.blurred = {screen_canvas(), screen_canvas()}
--storage for feedback effects
self.current_frame = screen_canvas()
self.last_frame = screen_canvas()
self.shader = love.graphics.newShader([[
uniform float vignette_scale;
uniform float vignette_darken_scale;
uniform vec4 vignette_colour;
uniform float time;
uniform vec2 res;
uniform Image distortion_tex;
uniform vec2 distortion_res;
uniform vec2 distortion_flow;
uniform float distortion_scale;
uniform Image noise_tex;
uniform vec2 noise_res;
uniform vec2 noise_offset;
uniform Image blurred;
uniform Image last_frame;
uniform vec2 camera_pos;
uniform float camera_scale;
uniform float feedback_amount;
vec4 effect(vec4 c, Image t, vec2 uv, vec2 px) {
float d = length((uv - vec2(0.5)) * vec2(1.0, res.y / res.x)) * 2.0;
float distortion_min = -0.1;
float distortion_max = 1.5;
float distortion_amount = clamp(mix(distortion_min, distortion_max, d), 0.0, 1.0);
distortion_amount = distortion_amount * distortion_scale;
float distortion_domainwarp = 5.0;
float distortion_distance = 5.0;
float distortion_res_scale = 0.2;
vec2 pos = (px / camera_scale) - camera_pos;
vec2 distortion_uv = pos / distortion_res * distortion_res_scale + distortion_flow / distortion_res * time;
vec2 distortion = vec2(0.0);
for (int i = 0; i < 3; i++) {
distortion = (Texel(distortion_tex, distortion_uv).rg - vec2(0.5)) * 2.0;
distortion_uv = distortion_uv + distortion / distortion_res * distortion_domainwarp;
}
//blur in distance
vec4 sharp = Texel(t, uv);
vec4 blur = Texel(blurred, uv);
float blur_amount = clamp(mix(-0.2, 1.2, d), 0.0, 1.0);
c *= mix(sharp, blur, blur_amount);
//apply vignette
float vignette_amount = max(0.0, mix(-0.2, 1.0, d));
c.rgb = mix(c.rgb, vignette_colour.rgb, vignette_amount * vignette_scale);
c.rgb *= 1.0 - vignette_amount * vignette_darken_scale;
//lerp last frame
vec2 zoom_uv = uv;
//sample distorted
vec2 uv_distortion_offset = distortion / res * distortion_amount;
zoom_uv -= uv_distortion_offset.yx * distortion_distance;
//and feedback scaled old frame
zoom_uv = (zoom_uv - vec2(0.5)) * 0.99 + vec2(0.5);
float old_frame_amount = clamp(mix(0.1, 0.9, d), 0.0, 1.0) * feedback_amount;
vec4 feedback_px = Texel(last_frame, zoom_uv);
feedback_px = mix(feedback_px, vignette_colour, 0.1);
c = mix(c, feedback_px, old_frame_amount);
//and finally noise grain
vec4 grain = Texel(noise_tex, px / noise_res + noise_offset);
c.rgb += (grain.rgb - vec3(0.5)) * 2.0 * 0.01 * grain.a;
return c;
}
]])
do
do
local res = 512
local id = love.image.newImageData(res, res, "rg16")
id:mapPixel(function(x, y)
local period = 40.1
return
love.math.noise(x / period, y / period),
love.math.noise((y + 190) / period, (x - 360) / period)
end)
local distortion_tex = love.graphics.newImage(id)
distortion_tex:setWrap("repeat")
self.shader:send("distortion_tex", distortion_tex)
self.shader:send("distortion_res", {distortion_tex:getDimensions()})
end
do
local res = 512
local id = love.image.newImageData(res, res, "rgba8")
id:mapPixel(function(x, y)
return
love.math.random(),
love.math.random(),
love.math.random(),
love.math.random()
end)
local noise_tex = love.graphics.newImage(id)
noise_tex:setWrap("repeat")
self.shader:send("noise_tex", noise_tex)
self.shader:send("noise_res", {noise_tex:getDimensions()})
end
self.shader:send("res", {love.graphics.getDimensions()})
self.shader:send("vignette_colour", {colour.unpack_argb(palette.dark)})
self.shader:send("distortion_flow", {3.3, 2.3})
end
-- synthesize rain noise
local denver = require("lib.denver")
self.rain_noise = denver.get({waveform='pinknoise', length=6})
self.rain_noise:setLooping( true )
self.rain_noise:setVolume( 0 )
love.audio.play(self.rain_noise)
self.ambient_loop = love.audio.newSource( "assets/wav/ambience.wav", "static" )
self.ambient_loop:setLooping( true )
self.ambient_loop:setVolume( 0 )
love.audio.play(self.ambient_loop)
end
function state:enter()
--fade in
SCREEN_OVERLAY:flash(palette.dark, 1)
self.done = false
self.next = "title"
--setup anything to be done on state enter here (ie reset everything)
self.display = require("src.ascii3d")()
self.ui_display = require("src.ascii3d")()
self.objects = {}
self.message_stack = {}
self.rain_timer = 0
self.rain_gain = 0
self.quietude = 0
--stackable effects
self.is_raining = 0
self.is_dark = 0
self.is_quiet = 0
self:update_shader_targets()
require("src.generate_world")(self) -- populates the structures below
assert( self.grid )
assert( self.player_spawn )
assert( self.spawns )
assert( self.regions )
local player_spawn = self.player_spawn;
self.player = require("src.player")(self, player_spawn )
table.insert(self.objects, self.player)
for k, positions in pairs( self.spawns ) do
if k == "frog" then
for _, pos in ipairs( positions ) do
local frog = require("src.frog")( self, pos.x, pos.y )
table.insert(self.objects, frog)
end
elseif k == "bird" then
for _, pos in ipairs( positions ) do
local bird = require("src.bird")( self, pos.x, pos.y )
table.insert(self.objects, bird)
end
elseif k == "deer" then
for _, pos in ipairs( positions ) do
local deer = require("src.deer")( self, pos.x, pos.y )
table.insert(self.objects, deer)
end
end
-- etc
-- local snake_spawn = tablex.take_random( self.spawns );
-- self.snake = require("ohno_a_snake")( self, snake_spawn.x, snake_spawn.y )
-- table.insert(self.objects, self.snake)
end
self.player_regions = set()
self.player_seen = set()
self:update_player_region( player_spawn )
self.time_since_last_tick = 0
end
function state:tick()
for _, v in ipairs(self.objects) do
v:tick()
end
end
function state:update_shader_targets()
self.blur_target =
(self.is_raining > 0 or self.is_dark > 0) and ZOOM_LEVEL * 2.5
or ZOOM_LEVEL * 1.5
self.vignette_target =
self.is_raining > 0 and 1.0
or 0.1
self.darken_target =
self.is_dark > 0 and 3.0
or self.is_raining > 0 and 1.0
or 0.0
self.distortion_target =
self.is_raining > 0 and 1.0
or 0.0
self.feedback_target =
self.is_raining > 0 and 1.0
or self.is_quiet > 0 and 0.5
or 0.15
--update towards target effect amount
local lerp_speed = 0.05
self.blur_amount = math.lerp(self.blur_amount or self.blur_target, self.blur_target, lerp_speed)
self.vignette_amount = math.lerp(self.vignette_amount or self.vignette_target, self.vignette_target, lerp_speed)
self.darken_amount = math.lerp(self.darken_amount or self.darken_target, self.darken_target, lerp_speed)
self.distortion_amount = math.lerp(self.distortion_amount or self.distortion_target, self.distortion_target, lerp_speed)
self.feedback_amount = math.lerp(self.feedback_amount or self.feedback_target, self.feedback_target, lerp_speed)
end
function state:update(dt)
if self.done then
if SCREEN_OVERLAY:done() then
return self.next
end
end
-- tick in soft-realtime
self.time_since_last_tick = self.time_since_last_tick + dt
if self.time_since_last_tick > 0.1 then
self.time_since_last_tick = 0
self:tick()
end
--update everything
for _, v in ipairs(self.objects) do
v:update(dt)
end
--update effects etc
if self.is_raining > 0 then
self.rain_timer = self.rain_timer + dt
if self.rain_gain < 1 then
self.rain_gain = math.min( 1, self.rain_gain + dt )
end
elseif self.rain_gain > 0 then
self.rain_gain = math.max( 0, self.rain_gain - dt )
end
if self.is_quiet > 0 then
if self.quietude < 1 then
self.quietude = math.min( 1, self.quietude + dt * .2 )
end
elseif self.quietude > 0 then
self.quietude = math.max( 0, self.quietude - dt * .2 )
end
-- Update ambient mix
self.rain_noise:setVolume( 0.25 * self.rain_gain * ( 1 - self.quietude ) )
self.ambient_loop:setVolume( ( 1 - self.rain_gain ) * ( 1 - self.quietude ) )
end
function state:update_player_region( pos )
-- Detect overlapping regions
local regions = set()
local region_properties = {} -- this won't handle multiple regions with same name, but is fine for us
for _, region in pairs( self.regions ) do
name = region[1]
center = region[2]
hs = region[3]
properties = region[4]
if intersect.aabb_point_overlap( center, hs, pos ) then
regions:add( name )
region_properties[name] = properties
end
end
local new_regions = regions:copy()
new_regions:subtract_set( self.player_regions )
local old_regions = self.player_regions:copy()
old_regions:subtract_set( regions )
local add_message = function( msg )
for i=1,#self.message_stack do
local priority = msg.priority or 0
local p = self.message_stack[i].priority or 0
if p > priority then
for j=i+1,#self.message_stack+1 do
self.message_stack[j] = self.message_stack[j-1]
end
self.message_stack[i] = msg
return
end
end
-- Else put on top
table.insert( self.message_stack, msg )
end
for _, region in ipairs( new_regions:values_readonly() ) do
local custom_text = region_properties[region] and region_properties[region].Text or nil
if region == "Start" then
if not self.player_seen:has( region ) then
add_message( { text = "Walk Home Using The Arrow Keys", region_bound = region } )
end
elseif region == "WrongWay" then
add_message( { text = custom_text or "Press Escape To Quit", region_bound = region } )
-- sounds.play( sounds.sound.oh, 0.5 )
elseif region == "Fork" then
add_message( { text = custom_text or "A Fork In The Path", region_bound = region } )
elseif region == "Entrance" then
add_message( { text = custom_text or "Nobody's Home", region_bound = region, priority = 1 } )
-- sounds.play( sounds.sound.oh, 0.5 )
elseif region == "House" then
add_message( { text = custom_text or "A House In The Forest", region_bound = region } )
elseif region == "Feature" and custom_text then
add_message( { text = custom_text, region_bound = region } )
-- sounds.play( sounds.sound.oh, 0.5 )
elseif region == "Rain" then
self.is_raining = self.is_raining + 1
elseif region == "Quiet" then
self.is_quiet = self.is_quiet + 1
elseif region == "Dark" then
self.is_dark = self.is_dark + 1
elseif region == "Finish" then
if not self.done then
self.done = true
SCREEN_OVERLAY:fade(palette.dark, 1)
-- sounds.play(sounds.sound.move, 1) --todo: win sound
end
end
end
for _, region in ipairs( old_regions:values_readonly() ) do
-- Generic region exit actions
self.message_stack = functional.remove_if( self.message_stack, function( msg ) return msg.region_bound == region; end )
-- Specific region exit actions
-- TODO: When exit "Start" for first time zoom camera out a little
if region == "Rain" then
self.is_raining = self.is_raining - 1
elseif region == "Quiet" then
self.is_quiet = self.is_quiet - 1
elseif region == "Dark" then
self.is_dark = self.is_dark - 1
end
end
self.player_seen:add_set( regions )
self.player_regions = regions
end
function state:draw()
--set up camera
love.graphics.push("all")
love.graphics.translate(
love.graphics.getWidth() / 2,
love.graphics.getHeight() / 2
)
love.graphics.scale(ZOOM_LEVEL)
local cx, cy = self.player.camera_pos
:vmul(self.grid.cell_size)
:vmuli(self.display.tile_size)
:smuli(-1)
:unpack()
love.graphics.translate(cx, cy)
--draw world
love.graphics.setCanvas(self.canvas)
love.graphics.setShader()
love.graphics.clear(colour.unpack_argb(self.background_colour))
self.grid:draw(self.display, self.player.camera_pos)
--draw objects
for _, v in ipairs(self.objects) do
v:draw(self.display)
end
-- draw dynamic effects
if self.is_raining > 0 then
-- TODO: doesnt need to be on display layer
local x = math.floor( self.player.camera_pos.x )
local y = math.floor( self.player.camera_pos.y ) + 2
local dt = ( self.rain_timer % 0.3 ) / 0.3
local g = ('|'):byte(1)
for dx=-30,30,1 do
for dy=-20,20,1 do
local px = ( x + dx )*self.grid.cell_size.x + dt * 3
local py = ( y + dy )*self.grid.cell_size.y + dt * 9
self.display:add( px, py, 10, g, palette.blue)
end
end
end
--display
self.display:draw()
-- draw message
local msg = self.message_stack[#self.message_stack]
if msg then
local x = self.player.camera_pos.x - #msg.text / self.grid.cell_size.x / 2
local y = self.player.camera_pos.y + math.floor(
love.graphics.getHeight()
/ ZOOM_LEVEL
/ self.grid.cell_size.y
/ self.ui_display.tile_size.y
/ 2
* 0.8
)
for i = 1, #msg.text do
local byte = msg.text:byte(i)
self.ui_display:add( i + x*self.grid.cell_size.x, y*self.grid.cell_size.y, 0, byte, palette.white)
end
end
self.ui_display:draw()
--screenspace stuff
love.graphics.origin()
love.graphics.setBlendMode("alpha", "premultiplied")
if use_shader then
self:update_shader_targets()
--blur current frame
local blur_rad = self.blur_amount
love.graphics.setCanvas(self.blurred[1])
self.blur_shader:send("radius", {blur_rad, 0})
love.graphics.setShader(self.blur_shader)
love.graphics.draw(self.canvas)
love.graphics.setCanvas(self.blurred[2])
self.blur_shader:send("radius", {0, blur_rad})
love.graphics.setShader(self.blur_shader)
love.graphics.draw(self.blurred[1])
--effects
love.graphics.setCanvas(self.current_frame)
love.graphics.clear(colour.unpack_argb(self.background_colour))
love.graphics.setShader(self.shader)
local vigenette_speed = 1 / 20
local vignette_time = math.sin(love.timer.getTime() * math.tau * vigenette_speed) * 0.5 + 0.5
local distortion_speed = 1 / 13
local distortion_time = math.sin(love.timer.getTime() * math.tau * distortion_speed) * 0.5 + 0.5
self.shader:send("vignette_scale", math.lerp(0.6, 0.8, vignette_time) * self.vignette_amount)
self.shader:send("vignette_darken_scale", math.lerp(0.5, 0.25, vignette_time) * self.darken_amount)
self.shader:send("distortion_scale", math.lerp(0.2, 0.8, distortion_time) * self.distortion_amount)
self.shader:send("time", love.timer.getTime())
self.shader:send("camera_pos", {cx, cy})
self.shader:send("camera_scale", 2)
self.shader:send("last_frame", self.last_frame)
self.shader:send("blurred", self.blurred[2])
self.shader:send("noise_offset", {love.math.random(), love.math.random()})
self.shader:send("feedback_amount", self.feedback_amount)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw(self.canvas)
else
love.graphics.setCanvas(self.current_frame)
love.graphics.draw(self.canvas)
end
love.graphics.setCanvas()
love.graphics.setShader()
love.graphics.draw(self.current_frame)
self.current_frame, self.last_frame = self.last_frame, self.current_frame
love.graphics.pop()
end
function state:keypressed(k)
if k == "escape" then
if not self.done then
self.done = true
SCREEN_OVERLAY:fade(palette.dark, 1)
self.next = "quit"
end
else
self.player:keypressed(k)
end
end
function state:keyreleased(k)
self.player:keyreleased(k)
end
return state
|
function div(a, b) return math.floor(a/b) end
XOR_l = {{0,1}, {1,0}}
function xor(a, b)
pow, c = 1, 0
while a > 0 or b > 0 do
c = c + (XOR_l[(a % 2)+1][(b % 2)+1] * pow)
a, b, pow = div(a, 2), div(b, 2), pow * 2
end
return c
end
local ff = 2^32 - 1
function band(a,b) return (a + b - xor(a, b))/2 end
function bor (a,b) return ff - band(ff - a, ff - b) end
hor = { 0x42, 0x84, 0x108, 0x210,
0x840, 0x1080, 0x2100, 0x4200,
0x10800, 0x21000, 0x42000, 0x84000,
0x210000, 0x420000, 0x840000, 0x1080000,
0x1806, 0x300c, 0x6018,
0x300c0, 0x60180, 0xc0300,
0x601800, 0xc03000, 0x1806000,
0x7000e, 0xe001c,
0xe001c0, 0x1c00380,
0x1e0001e }
ver = { 0x6, 0xc, 0x18, 0x30,
0xc0, 0x180, 0x300, 0x600,
0x1800, 0x3000, 0x6000, 0xc000,
0x30000, 0x60000, 0xc0000, 0x180000,
0x14a, 0x294, 0x528,
0x2940, 0x5280, 0xa500,
0x52800, 0xa5000, 0x14a000,
0x4a52, 0x94a4,
0x94a40, 0x129480,
0x118c62 }
for line in io.lines(arg[1]) do
local h, v, r = 0, 0, 0
for i in line:gmatch("%d+ %d+") do
local a, b = i:match("(%d+) (%d+)")
a, b = tonumber(a), tonumber(b)
if a > b then a, b = b, a end
if a + 1 == b then
h = bor(h, 2^a)
else
v = bor(v, 2^a)
end
end
for i = 1, 30 do
if band(h, hor[i]) == hor[i] and band(v, ver[i]) == ver[i] then
r = r + 1
end
end
print(r)
end
|
local nmap = require "nmap"
local shortport = require "shortport"
local snmp = require "snmp"
local stdnse = require "stdnse"
local table = require "table"
description = [[
Checks for SCADA Siemens <code>SCALANCE</code> modules.
The higher the verbosity or debug level, the more disallowed entries are shown.
]]
---
-- @output
-- | Siemens-Scalance-module:
-- |_ SCALANCE W788-1PRO
author = "Jose Ramon Palanco, drainware"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"default", "discovery", "safe"}
dependencies = {"snmp-brute"}
portrule = shortport.portnumber(161, "udp", {"open", "open|filtered"})
function process_answer( tbl )
local new_tab = {}
for _, v in ipairs( tbl ) do
if string.find (v.value, "SCALANCE") then
version = v.value:gsub("SCALANCE", "VERSION:")
model = version:match("%W+ %s*(.-)%d%d%d")
if model == "W" then
version = version .. " (wireless device)"
elseif model == "X" then
version = version .. " (network switch)"
elseif model == "S" then
version = version .. " (firewall)"
end
else
return nil
end
table.insert( new_tab, version)
end
table.sort( new_tab )
return new_tab
end
action = function(host, port)
--local socket = nmap.new_socket()
-- local catch = function() socket:close() end
--local try = nmap.new_try(catch)
local snmpoid = "1.3.6.1.2.1.1.1"
local services = {}
local status
--socket:set_timeout(5000)
--try(socket:connect(host, port))
h = snmp.Helper:new(host, port)
h:connect()
status, services = h:walk(snmpoid)
--socket:close()
if ( not(status) ) or ( services == nil ) or ( #services == 0 ) then
return
end
services = process_answer(services)
if services == nil then
return
end
nmap.set_port_state(host, port, "open")
return stdnse.format_output( true, services )
end
|
local bloomd = require("resty.bloomd")
local function debug(name, ok, err)
if type(err) == 'table' then
local t = {}
for k, v in pairs(err) do
table.insert(t, k .. ":" .. tostring(v))
end
err = table.concat(t, ",")
end
ngx.say(string.format("%15s -- ok: %5s, err: %s", name, tostring(ok), tostring(err)))
end
-- create a new instance and connect to the bloomd(127.0.0.1:8673)
local filter_obj = bloomd:new("127.0.0.1", 8673, 2000)
local function test_main()
local filter_name = "my_filter"
local capacity = 100001
local probability = 0.001
-- create a filter named filter_name
local ok, err = filter_obj:create(filter_name, capacity, probability)
debug("create-new", ok, err)
assert(ok == true)
-- assert(err == "Done", "err ~= 'Done'")
-- create a filter, the name is exist
local ok, err = filter_obj:create(filter_name, capacity, probability)
debug("create-exist", ok, err)
assert(ok == true)
assert(err == "Exists")
-- set a key, New
local ok, err = filter_obj:set(filter_name, 'my_key')
debug("set-new", ok, err)
assert(ok==true)
assert(err == "Yes")
-- set a key, Exist
local ok, err = filter_obj:set(filter_name, 'my_key')
debug("set-exist", ok, err)
assert(ok==true)
assert(err == "No")
-- check a key, Exist
local ok, err = filter_obj:check(filter_name, 'my_key')
debug("check-exist", ok, err)
assert(ok==true)
assert(err == "Yes")
-- check a key, Not Exist
local ok, err = filter_obj:check(filter_name, 'this_key_not_exist')
debug("check-not-exist", ok, err)
assert(ok==true)
assert(err == "No")
-- flush a filter
local ok, err = filter_obj:flush(filter_name)
debug("flush", ok, err)
assert(ok==true)
assert(err == "Done")
-- close a bloom filter
local ok, err = filter_obj:close(filter_name)
debug("close", ok, err)
assert(ok==true)
assert(err == "Done")
-- check a key, Exist
local ok, err = filter_obj:check(filter_name, 'my_key')
debug("check-exist", ok, err)
assert(ok==true)
assert(err == "Yes")
filter_obj:create("my_filter3", capacity, 0.001)
-- list all filter
local ok, filters = filter_obj:list(filter_name)
debug("list", ok, filters)
assert(ok==true)
assert(type(filters)=='table' and #filters==2)
for _,filter in ipairs(filters) do
if filter.name == filter_name then
assert(filter.size == 1)
end
end
filter_obj:drop('my_filter3')
-- Set many items in a filter at once(bulk command)
local ok, status = filter_obj:sets(filter_name, {"a", "b", "c"})
assert(ok)
assert(type(status)=='table')
err = table.concat(status, ' ')
debug("sets", ok, err)
assert(err == "Yes Yes Yes")
local ok, status = filter_obj:sets(filter_name, {"a", "b", "d"})
assert(ok)
assert(type(status)=='table')
err = table.concat(status, ' ')
debug("sets", ok, err)
assert(err == "No No Yes")
-- Checks if a list of keys are in a filter
local ok, status = filter_obj:checks(filter_name, {"a", "x", "c", "d", "e"})
assert(ok)
assert(type(status)=='table')
err = table.concat(status, ' ')
debug("checks", ok, err)
assert(err == "Yes No Yes Yes No")
-- Gets info about a filter
local ok, info = filter_obj:info(filter_name)
debug("info", ok, info)
assert(ok)
assert(type(info)=='table')
assert(info.capacity == capacity)
assert(info.probability == probability)
assert(info.size == 5)
-- drop a filter
local ok, err = filter_obj:drop(filter_name)
debug("drop", ok, err)
assert(ok==true)
assert(err == "Done")
-- Test filter not exist
local ok, err = filter_obj:drop(filter_name)
debug("drop-not-exist", ok, err)
assert(ok==false)
assert(err == "Filter does not exist")
-- create, close and clear a bloom filter, my_filter2 is still in disk.
local ok, err = filter_obj:create("my_filter2", 10000*20, 0.001)
debug("create-new", ok, err)
assert(ok == true)
assert(err == "Done", "err ~= 'Done'")
local ok, err = filter_obj:close("my_filter2")
debug("close", ok, err)
assert(ok==true)
assert(err == "Done")
local ok, err = filter_obj:clear("my_filter2")
debug("clear", ok, err)
assert(ok==true)
assert(err == "Done")
ngx.say("--------- all test ok --------------")
end
local ok, err = pcall(test_main)
if not ok then
filter_obj:close("my_filter")
filter_obj:close("my_filter2")
filter_obj:close("my_filter3")
assert(ok, err)
end
|
JackpotConfig = {}
JackpotConfig.MaxBet = 500000 --This is the max bet a user can bet
JackpotConfig.MinBet = 10 -- This is the minimum amount a user can bet
|
local f = string.format
local t = My.Translator.translate
My.Translator:register("de", {
comms_generic_hail = function(person)
return Util.random({
"Hallo.",
"Servus.",
"Guten Tag.",
"Seien Sie gegrüßt.",
}) .. " " .. t("comms_generic_introduction", person)
end,
comms_generic_introduction = function(person)
return f(Util.random({
"Mein Name ist %s.",
"Sie sprechen mit %s.",
"%s ist mein Name.",
}), person:getFormalName())
end,
comms_generic_hail_station = function(stationCallSign)
return Util.random({
f("Sie sprechen mit Station %s.", stationCallSign),
f("Sie sind mit der Station %s verbunden.", stationCallSign),
})
end,
comms_generic_friendly_inquiry = function()
return Util.random({
"Wie kann ich helfen?",
"Womit kann ich dienen?",
"Wie kann ich behilflich sein?",
"Was benötigt ihr von mir?",
"Was verschafft mir die Ehre für dieses Gespräch?",
})
end,
comms_generic_neutral_inquiry = function()
return Util.random({
"Was wollt ihr von mir?",
"Warum wollt ihr mit mir sprechen?",
"Warum stört ihr mich?",
})
end,
comms_generic_enemy_inquiry = function()
return Util.random({
"Weshalb muss ich euer grausames Gesicht ertragen?",
"Was muss ich tun, damit ihr jemand anderen behelligt?",
})
end,
comms_generic_hail_friendly_ship = function(captainPerson)
return t("comms_generic_hail", captainPerson) .. "\n\n" .. t("comms_generic_friendly_inquiry")
end,
comms_generic_hail_neutral_ship = function(captainPerson)
return t("comms_generic_hail", captainPerson) .. "\n\n" .. t("comms_generic_neutral_inquiry")
end,
comms_generic_hail_enemy_ship = function(captainPerson)
return t("comms_generic_enemy_inquiry")
end,
comms_generic_hail_friendly_station = function(stationCallSign)
return t("comms_generic_hail_station", stationCallSign) .. "\n\n" .. t("comms_generic_friendly_inquiry")
end,
comms_generic_hail_neutral_station = function(stationCallSign)
return t("comms_generic_hail_station", stationCallSign) .. "\n\n" .. t("comms_generic_neutral_inquiry")
end,
comms_generic_hail_enemy_station = function(stationCallSign)
return t("comms_generic_enemy_inquiry")
end,
comms_generic_hail_friendly_station_docked = function(stationCallSign)
return Util.random({
f("Herzlich willkommen auf der Station %s.", stationCallSign),
f("Herzlich willkommen auf %s.", stationCallSign),
f("Wir freuen uns Sie auf %s willkommen heißen zu dürfen.", stationCallSign),
})
end,
comms_generic_hail_neutral_station_docked = function(stationCallSign)
return Util.random({
f("Willkommen auf der Station %s.", stationCallSign),
f("Willkommen auf %s.", stationCallSign),
})
end,
comms_generic_flight_hail = function()
return Util.random({
"Oh mein Gott.",
"Waaaaaahhhhh!!!",
"Wir werden alle sterben!!",
"Ich will noch nicht Sterben.",
"Ich bin zu jung zum Sterben.",
}) .. " " .. Util.random({
"Wer sind die Feinde, die uns angreifen? Was wollen die hier?",
"Wir sind verloren! Gegen die haben wir keine Möglichkeit zu gewinnen.",
})
end,
comms_generic_flight_who_are_you = function()
return Util.random({
"Was ich hier tue? Mein Gott, erzählt mir nicht, dass ihr nicht gemerkt habt, dass wir angegriffen werden.",
"Haltet ihr euch für lustig?",
}) .. " " .. Util.random({
"Wie jeder andere hier im Sektor versuche ich meinen Arsch zu retten.",
"Egal wie aussichtslos die Situation ist - ich versuche mich in Sicherheit zu bringen. Und das solltet ihr auch tun.",
"Ich fliege so weit wie möglich weg von den Kämpfen.",
})
end,
}) |
Config = {}
Config.Styles = {
{
label = 'Arrogant',
value = 'move_f@arrogant@a'
},
{
label = 'Casual',
value = 'move_m@casual@a'
},
{
label = 'Casual 2',
value = 'move_m@casual@b'
},
{
label = 'Casual 3',
value = 'move_m@casual@c'
},
{
label = 'Casual 4',
value = 'move_m@casual@d'
},
{
label = 'Casual 5',
value = 'move_m@casual@e'
},
{
label = 'Casual 6',
value = 'move_m@casual@f'
},
{
label = 'Confident',
value = 'move_m@confident'
},
{
label = 'Business',
value = 'move_m@business@a'
},
{
label = 'Business 2',
value = 'move_m@business@b'
},
{
label = 'Business 3',
value = 'move_m@business@c'
},
{
label = 'Femme',
value = 'move_f@femme@'
},
{
label = 'Flee',
value = 'move_f@flee@a'
},
{
label = 'Gangster',
value = 'move_m@gangster@generic'
},
{
label = 'Gangster 2',
value = 'move_m@gangster@ng'
},
{
label = 'Gangster 3',
value = 'move_m@gangster@var_e'
},
{
label = 'Gangster 4',
value = 'move_m@gangster@var_f'
},
{
label = 'Gangster 5',
value = 'move_m@gangster@var_i'
},
{
label = 'Heels',
value = 'move_f@heels@c'
},
{
label = 'Heels 2',
value = 'move_f@heels@d'
},
{
label = 'Hiking',
value = 'move_m@hiking'
},
{
label = 'Muscle',
value = 'move_m@muscle@a'
},
{
label = 'Quick',
value = 'move_m@quick'
},
{
label = 'Wide',
value = 'move_m@bag'
},
{
label = 'Scared',
value = 'move_f@scared'
},
{
label = 'Brave',
value = 'move_m@brave'
},
{
label = 'Tipsy',
value = 'move_m@drunk@slightlydrunk'
},
{
label = 'Injured',
value = 'move_m@injured'
},
{
label = 'Tough',
value = 'move_m@tough_guy@'
},
{
label = 'Sassy',
value = 'move_m@sassy'
},
{
label = 'Sad',
value = 'move_m@sad@a'
},
{
label = 'Posh',
value = 'move_m@posh@'
},
{
label = 'Alien',
value = 'move_m@alien'
},
{
label = 'Nonchalant',
value = 'move_m@non_chalant'
},
{
label = 'Hobo',
value = 'move_m@hobo@a'
},
{
label = 'Money',
value = 'move_m@money'
},
{
label = 'Swagger',
value = 'move_m@swagger'
},
{
label = 'Shady',
value = 'move_m@shadyped@a'
},
{
label = 'Man Eater',
value = 'move_f@maneater'
},
{
label = 'ChiChi',
value = 'move_f@chichi'
},
{
label = 'Default',
value = 'default'
}
} |
fs_village_area = SharedObjectTemplate:new {
clientTemplateFileName = "",
planetMapCategory = "",
planetMapSubCategory = "",
autoRegisterWithPlanetMap = 1,
zoneComponent = "ZoneComponent",
objectMenuComponent = "ObjectMenuComponent",
containerComponent = "ContainerComponent",
gameObjectType = 33554442
}
ObjectTemplates:addTemplate(fs_village_area, "object/fs_village_area.iff")
|
require'nvim-treesitter.configs'.setup {
ensure_installed = {"bash", "c", "cmake", "cpp", "css", "html", "javascript", "json",
"latex", "make", "python", "rust", "toml", "typescript", "yaml", "vim"} ,
highlight = {
enable = true,
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- Using this option may slow down your editor, and you may see some duplicate highlights.
-- Instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
}
|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('AmbientLife', {
group = "VisitSpot",
id = "Playground",
param1 = "unit",
param2 = "bld",
param3 = "obj",
param4 = "spot",
param5 = "slot_data",
param6 = "slot",
param7 = "slotname",
PlaceObj('XPrgCheckExpression', {
'expression', "bld:Random(100) < 50",
}, {
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "playGround1Start",
}),
PlaceObj('XPrgHasVisitTime', {
'form', "while-do",
}, {
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "playGround1Idle",
'blending', false,
}),
}),
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "playGround1End",
'blending_next', false,
}),
}),
PlaceObj('XPrgCheckExpression', {
'form', "else-if",
'expression', "",
}, {
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "playGround2Start",
}),
PlaceObj('XPrgHasVisitTime', {
'form', "while-do",
}, {
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "playGround2Idle",
'blending', false,
}),
}),
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "playGround2End",
'blending_next', false,
}),
}),
PlaceObj('XPrgRotateObj', {
'obj', "unit",
'angle', 10800,
}),
PlaceObj('XPrgPlayAnim', {
'obj', "unit",
'anim', "idle",
'loops', "0",
'time', "0",
'blending', false,
}),
})
|
--[[
Name: electronics_store.lua
For: SantosRP
By: Ultra
]]--
local MapProp = {}
MapProp.ID = "electronics_store"
MapProp.m_tblSpawn = {
{ mdl = 'models/props/cs_office/phone_p2.mdl',pos = Vector('-2401.705078 -1995.842773 112.655205'), ang = Angle('0.000 77.278 -90.000') },
{ mdl = 'models/props/cs_office/phone_p1.mdl',pos = Vector('-2397.216064 -2000.882446 113.479996'), ang = Angle('-0.066 98.630 0.264') },
{ mdl = 'models/props_c17/tv_monitor01.mdl',pos = Vector('-2476.670654 -1861.579224 121.520111'), ang = Angle('-0.192 -12.717 0.110') },
{ mdl = 'models/props/cs_office/computer_caseb.mdl',pos = Vector('-2271.884766 -1833.633423 113.463280'), ang = Angle('0.066 -100.640 0.209') },
{ mdl = 'models/props/cs_office/computer_caseb.mdl',pos = Vector('-2165.687012 -1828.718750 113.559044'), ang = Angle('-0.011 -67.500 -0.033') },
{ mdl = 'models/props_lab/monitor02.mdl',pos = Vector('-2478.393555 -1961.055298 113.742897'), ang = Angle('-0.286 8.394 -0.516') },
{ mdl = 'models/props/cs_office/projector.mdl',pos = Vector('-2178.953369 -1949.612671 113.273254'), ang = Angle('0.676 -136.791 0.000') },
{ mdl = 'models/props_c17/furnituretable002a.mdl',pos = Vector('-2408.583984 -2008.525269 94.477951'), ang = Angle('0.000 89.995 0.000') },
{ mdl = 'models/props_c17/furnituretable002a.mdl',pos = Vector('-2473.483887 -1875.491211 94.443825'), ang = Angle('-0.027 0.005 0.005') },
{ mdl = 'models/props_lab/harddrive02.mdl',pos = Vector('-2471.696533 -1932.453125 123.408699'), ang = Angle('0.005 0.159 -0.390') },
{ mdl = 'models/props_c17/furnituretable002a.mdl',pos = Vector('-2180.131104 -1829.358154 94.452408'), ang = Angle('0.005 -89.956 0.022') },
{ mdl = 'models/props/cs_office/tv_plasma.mdl',pos = Vector('-2289.820801 -1672.356079 157.243454'), ang = Angle('0.000 -90.000 0.000') },
{ mdl = 'models/props_c17/furnituretable002a.mdl',pos = Vector('-2248.223389 -1829.291748 94.464645'), ang = Angle('0.077 -90.027 0.000') },
{ mdl = 'models/props/cs_office/plant01.mdl',pos = Vector('-2340.507080 -2008.875732 75.651382'), ang = Angle('0.000 45.000 0.000') },
{ mdl = 'models/props/cs_office/computer.mdl',pos = Vector('-2249.704346 -1834.806274 113.511833'), ang = Angle('0.385 -84.792 0.000') },
{ mdl = 'models/props/cs_office/radio.mdl',pos = Vector('-2206.800049 -1684.968140 108.386536'), ang = Angle('0.000 -67.489 0.000') },
{ mdl = 'models/props_c17/furnituretable002a.mdl',pos = Vector('-2473.527344 -1943.677002 94.662331'), ang = Angle('0.005 0.044 0.000') },
{ mdl = 'models/props/cs_office/radio.mdl',pos = Vector('-2158.811279 -1685.116211 108.279732'), ang = Angle('-0.165 -67.495 0.044') },
{ mdl = 'models/props_trainstation/traincar_rack001.mdl',pos = Vector('-2207.335693 -1683.426636 105.386734'), ang = Angle('0.000 -90.000 0.000') },
{ mdl = 'models/props/cs_office/radio.mdl',pos = Vector('-2257.290039 -1684.644897 108.348396'), ang = Angle('-0.544 -67.577 0.148') },
{ mdl = 'models/props/cs_office/computer.mdl',pos = Vector('-2193.066650 -1833.401123 113.508011'), ang = Angle('0.297 -97.476 0.027') },
{ mdl = 'models/props/cs_office/tv_plasma.mdl',pos = Vector('-2207.980713 -1672.404907 139.224884'), ang = Angle('0.000 -90.000 0.000') },
{ mdl = 'models/props_c17/furnituretable001a.mdl',pos = Vector('-2175.808105 -1952.859253 94.305016'), ang = Angle('0.000 -179.956 -0.044') },
{ mdl = 'models/props/cs_office/projector_remote.mdl',pos = Vector('-2190.885010 -1958.791260 113.201363'), ang = Angle('0.516 168.536 -0.027') },
{ mdl = 'models/props_lab/monitor01b.mdl',pos = Vector('-2482.093994 -1896.886108 118.956665'), ang = Angle('-8.026 18.232 -0.192') },
{ mdl = 'models/props_c17/computer01_keyboard.mdl',pos = Vector('-2460.148193 -1959.302490 113.727303'), ang = Angle('-0.555 -0.088 -0.137') },
{ mdl = 'models/props/de_nuke/clock.mdl',pos = Vector('-2497.605469 -1700.295410 177.681046'), ang = Angle('0.000 0.000 0.000') },
{ mdl = 'models/props/cs_office/radio.mdl',pos = Vector('-2232.312988 -1684.803833 108.240555'), ang = Angle('0.000 -67.484 0.077') },
{ mdl = 'models/props/cs_office/tv_plasma.mdl',pos = Vector('-2377.367432 -1672.494873 174.890778'), ang = Angle('0.000 -90.000 0.000') },
{ mdl = 'models/props_combine/breenclock.mdl',pos = Vector('-2424.537842 -2002.982910 117.578743'), ang = Angle('0.198 90.055 0.121') },
{ mdl = 'models/props_combine/breenclock.mdl',pos = Vector('-2416.431641 -2017.183838 117.708237'), ang = Angle('0.209 90.011 0.005') },
{ mdl = 'models/props/cs_office/radio.mdl',pos = Vector('-2182.573975 -1684.587402 108.349503'), ang = Angle('0.533 -67.429 0.192') },
{ mdl = 'models/props/cs_office/phone.mdl',pos = Vector('-2383.368164 -1998.989136 113.501465'), ang = Angle('-0.467 99.234 0.066') },
{ mdl = 'models/props/cs_office/phone.mdl',pos = Vector('-2392.017090 -2015.295776 113.559555'), ang = Angle('0.198 99.503 -0.176') },
}
GAMEMODE.Map:RegisterMapProp( MapProp ) |
--[[
Name: speed_test-ain_ef.lua
Desc: This example will read a thermocouple connected to AIN0 as fast as possible
Note: In most cases, users should throttle their code execution using the
functions: "LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0)"
On a T7 (FW 1.0282) this example runs at around 16kHz
This example requires firmware 1.0282 (T7)
--]]
-- For sections of code that require precise timing assign global functions
-- locally (local definitions of globals are marginally faster)
local modbus_read = MB.R
local check_interval = LJ.CheckInterval
-- Read product ID, stop script if T4 is detected.
local pid = MB.readName('PRODUCT_ID')
if pid == 4 then
MB.writeName('LUA_RUN',0)
end
print("Benchmarking Test: Read a thermocouple connected to AIN0 as fast as possible.")
MB.writeName("IO_CONFIG_SET_CURRENT_TO_FACTORY", 1)
-- The throttle setting can correspond roughly with the length of the Lua
-- script. A rule of thumb for deciding a throttle setting is
-- Throttle = (3*NumLinesCode)+20. The default throttle setting is 10 instructions
local throttle = 36
LJ.setLuaThrottle(throttle)
throttle = LJ.getLuaThrottle()
print("Current Lua Throttle Setting: ", throttle)
-- For the fastest AIN speeds, T7-PROs must use the 16-bit
-- high speed converter, instead of the slower 24-bit converter
-- Make sure the POWER_AIN register is "on"
MB.writeName("POWER_AIN", 1)
-- Configure AIN0 for type K thermocouples
MB.writeName("AIN0_EF_INDEX", 0)
MB.writeName("AIN0_EF_INDEX", 22)
MB.writeName("AIN0_EF_CONFIG_B", 60052) -- Set the CJC source to be "TEMPERATURE_DEVICE_K"
MB.writeName("AIN0_EF_CONFIG_D", 1) -- Set the slope for the CJC reading to be 1
MB.writeName("AIN0_EF_CONFIG_E", 0) -- Set the offset for the CJC reading to be 0
local numwrites = 0
local interval = 2000
-- Configure an interval of 2000ms
LJ.IntervalConfig(0, interval)
-- Run the program in an infinite loop
while true do
-- Address of AIN0_EF_READ_A is 7000, type is 3 (FLOAT32)
local ain0 = modbus_read(7000, 3)
numwrites = numwrites + 1
-- If a 2000ms interval is done
if check_interval(0) then
-- Convert the number of writes per interval into a frequency
numwrites = numwrites / (interval / 1000)
print ("Frequency in Hz: ", numwrites)
numwrites = 0
end
end
|
local min, max, sqrt, abs, atan2, pi = math.min, math.max, math.sqrt, math.abs,
math.atan2, math.pi
--- Contains some basic math functions.
--- The reason for the naming is to avoide the standard `math` module from lua.
local Maph = {}
function Maph.moveToward(from, to, delta)
if abs(to - from) <= delta then return to end
return from + Maph.sign(to - from) * delta
end
function Maph.clamp(value, min, max) return min(max(value, min), max) end
function Maph.sign(x) return (x > 0 and 1) or (x == 0 and 0) or -1 end
function Maph.normalized(x, y)
local len = sqrt(x * x + y * y)
if len == 0 then return 0, 0 end
return x / len, y / len
end
function Maph.angle(x, y) return atan2(x, -y) end
function Maph.angleTo(x, y, x2, y2) return Maph.angle(x2 - x, y2 - y) end
function Maph.distance(x, y, x2, y2)
return sqrt((x - x2) * (x - x2) + (y - y2) * (y - y2))
end
--- Returns the hypotenuse (distance) of the two sides of the triangle.
function Maph.hypot(x, y)
return sqrt(x * x + y * y)
end
return Maph
|
local templates = require "atlas.templates"
local render = templates.render
local controllers = {}
function controllers.home(request) return render(request, "home.html", {}) end
function controllers.about(request) return render(request, "about.html", {}) end
return controllers
|
_G.my = {
shell = function (command)
local handle = io.popen(command)
local result = handle:read("*a")
handle:close()
return result
end,
SyncAndRestartConfig = function ()
_G.my.shell('bash ~/main/src/dotfiles/sync.sh')
vim.cmd('PackerCompile')
end,
ConditionalEval = function (name, args)
if vim.api.nvim_call_function('exists', {':'..name}) then
if args then
vim.cmd(name .. ' ' .. args)
else
vim.cmd(name)
end
end
end,
ZenMode = false,
ZenModeDisable = function ()
_G.my.ZenMode = false
local ev = _G.my.ConditionalEval
-- ev('IndentBlanklineEnable')
ev('Goyo')
ev('Limelight!')
if not require('gitsigns.config').config.signcolumn then
ev('Gitsigns', 'toggle_signs')
end
end,
ZenModeEnable = function ()
_G.my.ZenMode = true
local ev = _G.my.ConditionalEval
-- ev('IndentBlanklineDisable')
ev('Limelight')
if require('gitsigns.config').config.signcolumn then
ev('Gitsigns', 'toggle_signs')
end
ev('Goyo', '75%x80%')
end,
ZenModeRefresh = function ()
if _G.my.ZenMode then
_G.my.ZenModeEnable()
else
_G.my.ZenModeDisable()
end
end,
ZenModeToggle = function ()
if _G.my.ZenMode then
_G.my.ZenModeDisable()
else
_G.my.ZenModeEnable()
end
end,
CurrentFile = function ()
return {
file_name = vim.api.nvim_eval("expand('%:t')"),
full_path = vim.api.nvim_eval("expand('%:p')"),
dir_path = vim.api.nvim_eval("expand('%:p:h')")
}
end,
notes_dir = '~/main/src/journal',
OpenTodaysNote = function ()
local fname = vim.api.nvim_call_function('strftime', {"%y-%m-%d"}) .. '.org'
local fpath = _G.my.notes_dir .. '/' .. fname
vim.cmd('e '.. fpath);
end
}
vim.cmd('command! MySyncAndRestartConfig lua _G.my.SyncAndRestartConfig()')
vim.cmd('command! MyZenModeToggle lua _G.my.ZenModeToggle()')
vim.cmd('command! MyZenModeDisable lua _G.my.ZenModeDisable()')
vim.cmd('command! MyZenModeEnable lua _G.my.ZenModeEnable()')
vim.cmd('command! MyOpenTodaysNote lua _G.my.OpenTodaysNote()')
|
---@class CS.UnityEngine.Vector4 : CS.System.ValueType
---@field public kEpsilon number
---@field public x number
---@field public y number
---@field public z number
---@field public w number
---@field public Item number
---@field public normalized CS.UnityEngine.Vector4
---@field public magnitude number
---@field public sqrMagnitude number
---@field public zero CS.UnityEngine.Vector4
---@field public one CS.UnityEngine.Vector4
---@field public positiveInfinity CS.UnityEngine.Vector4
---@field public negativeInfinity CS.UnityEngine.Vector4
---@type CS.UnityEngine.Vector4
CS.UnityEngine.Vector4 = { }
---@overload fun(x:number, y:number): CS.UnityEngine.Vector4
---@overload fun(x:number, y:number, z:number): CS.UnityEngine.Vector4
---@return CS.UnityEngine.Vector4
---@param x number
---@param y number
---@param optional z number
---@param optional w number
function CS.UnityEngine.Vector4.New(x, y, z, w) end
---@param newX number
---@param newY number
---@param newZ number
---@param newW number
function CS.UnityEngine.Vector4:Set(newX, newY, newZ, newW) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
---@param t number
function CS.UnityEngine.Vector4.Lerp(a, b, t) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
---@param t number
function CS.UnityEngine.Vector4.LerpUnclamped(a, b, t) end
---@return CS.UnityEngine.Vector4
---@param current CS.UnityEngine.Vector4
---@param target CS.UnityEngine.Vector4
---@param maxDistanceDelta number
function CS.UnityEngine.Vector4.MoveTowards(current, target, maxDistanceDelta) end
---@overload fun(scale:CS.UnityEngine.Vector4): void
---@param a CS.UnityEngine.Vector4
---@param optional b CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4:Scale(a, b) end
---@return number
function CS.UnityEngine.Vector4:GetHashCode() end
---@overload fun(other:CS.System.Object): boolean
---@return boolean
---@param other CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4:Equals(other) end
---@overload fun(): void
---@param optional a CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4:Normalize(a) end
---@return number
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.Dot(a, b) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.Project(a, b) end
---@return number
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.Distance(a, b) end
---@return number
---@param a CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.Magnitude(a) end
---@return CS.UnityEngine.Vector4
---@param lhs CS.UnityEngine.Vector4
---@param rhs CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.Min(lhs, rhs) end
---@return CS.UnityEngine.Vector4
---@param lhs CS.UnityEngine.Vector4
---@param rhs CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.Max(lhs, rhs) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.op_Addition(a, b) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
---@param b CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.op_Subtraction(a, b) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.op_UnaryNegation(a) end
---@overload fun(a:CS.UnityEngine.Vector4, d:number): CS.UnityEngine.Vector4
---@return CS.UnityEngine.Vector4
---@param d number
---@param a CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.op_Multiply(d, a) end
---@return CS.UnityEngine.Vector4
---@param a CS.UnityEngine.Vector4
---@param d number
function CS.UnityEngine.Vector4.op_Division(a, d) end
---@return boolean
---@param lhs CS.UnityEngine.Vector4
---@param rhs CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.op_Equality(lhs, rhs) end
---@return boolean
---@param lhs CS.UnityEngine.Vector4
---@param rhs CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4.op_Inequality(lhs, rhs) end
---@overload fun(v:CS.UnityEngine.Vector3): CS.UnityEngine.Vector4
---@overload fun(v:CS.UnityEngine.Vector4): CS.UnityEngine.Vector3
---@return CS.UnityEngine.Vector4
---@param v CS.UnityEngine.Vector2
function CS.UnityEngine.Vector4.op_Implicit(v) end
---@overload fun(): string
---@return string
---@param optional format string
function CS.UnityEngine.Vector4:ToString(format) end
---@overload fun(): number
---@return number
---@param optional a CS.UnityEngine.Vector4
function CS.UnityEngine.Vector4:SqrMagnitude(a) end
return CS.UnityEngine.Vector4
|
-- KillZoneServer.lua
-- Kills any player that enters this component
-- Created by Nicholas Foreman (https://www.coregames.com/user/f9df3457225741c89209f6d484d0eba8)
local Void = script:GetCustomProperty("Trigger"):WaitForObject()
local function enteredVoid(trigger, player)
if(not player:IsA("Player")) then return end
player:Die()
end
Void.beginOverlapEvent:Connect(enteredVoid) |
local CmdLine = torch.class('torch.CmdLine')
local function strip(str)
return string.match(str, '%-*(.*)')
end
local function pad(str, sz)
return str .. string.rep(' ', sz-#str)
end
function CmdLine:error(msg)
print('')
io.stderr:write(msg)
print('')
self:help()
os.exit(1)
end
function CmdLine:__readArgument__(params, arg, i, nArgument)
local argument = self.arguments[nArgument]
local value = arg[i]
if nArgument > #self.arguments then
self:error('invalid argument: ' .. value)
end
if argument.type and type(value) ~= argument.type then
self:error('invalid argument type for argument ' .. argument.key .. ' (should be ' .. argument.type .. ')')
end
params[strip(argument.key)] = value
return 1
end
function CmdLine:__readOption__(params, arg, i)
local key = arg[i]
local option = self.options[key]
if not option then
self:error('unknown option ' .. key)
end
if option.type and option.type == 'boolean' then
params[strip(key)] = not option.default
return 1
else
local value = arg[i+1]
if not value then
self:error('missing argument for option ' .. key)
end
if not option.type or option.type == 'string' then
elseif option.type == 'number' then
value = tonumber(value)
else
self:error('unknown required option type ' .. option.type)
end
if not value then
self:error('invalid type for option ' .. key .. ' (should be ' .. option.type .. ')')
end
params[strip(key)] = value
return 2
end
end
function CmdLine:__init(argseparator_,keyseparator_)
self.argseparator = argseparator_ or ','
self.keyseparator = keyseparator_ or '='
self.options = {}
self.arguments = {}
self.helplines = {}
self.dateformat = nil
self.silentio = false
end
function CmdLine:silent()
self.silentio = true
end
function CmdLine:addTime(name, format)
format = format or '%Y-%m-%d %H:%M:%S'
if type(format) ~= 'string' then
error('Argument has to be string')
end
if name ~= nil then
name = '[' .. name .. ']: '
else
name = ''
end
self.dateformat = format .. name
end
function CmdLine:argument(key, help, _type_)
table.insert(self.arguments, {key=key, help=help, type=_type_})
table.insert(self.helplines, self.arguments[#self.arguments])
end
function CmdLine:option(key, default, help, _type_)
if default == nil then
error('option ' .. key .. ' has no default value')
end
_type_ = _type_ or type(default)
if type(default) ~= _type_ then
error('option ' .. key .. ' has wrong default type value')
end
self.options[key] = {key=key, default=default, help=help, type=_type_}
table.insert(self.helplines, self.options[key])
end
function CmdLine:default()
local params = {}
for option,v in pairs(self.options) do
params[strip(option)] = v.default
end
return params
end
function CmdLine:parse(arg)
local i = 1
local params = self:default()
local nArgument = 0
while i <= #arg do
if arg[i] == '-help' or arg[i] == '-h' or arg[i] == '--help' then
self:help(arg)
os.exit(0)
end
if self.options[arg[i]] then
i = i + self:__readOption__(params, arg, i)
else
nArgument = nArgument + 1
i = i + self:__readArgument__(params, arg, i, nArgument)
end
end
if nArgument ~= #self.arguments then
self:error('not enough arguments')
end
return params
end
function CmdLine:string(prefix, params, ignore)
local arguments = {}
local options = {}
prefix = prefix or ''
for k,v in pairs(params) do
if ignore[k] then
print('-- ignore option ' .. k)
elseif self.options['-' .. k] then
if v ~= self.options['-' .. k].default or ignore[k] == false then
if type(v) == 'boolean' then
if v then
v = 't'
else
v = 'f'
end
end
table.insert(options, k .. self.keyseparator .. v)
print(k,v,self.options['-' .. k].default)
end
else
local narg
for i=1,#self.arguments do
if strip(self.arguments[i].key) == k then
narg = i
end
end
if narg then
arguments[narg] = k .. self.keyseparator .. v
else
print('WARNING: unknown option/argument: ' .. k .. ' IGNORING for DIRECTORY NAME')
end
end
end
table.sort(options)
local str = table.concat(arguments, self.argseparator)
if str == '' then
str = table.concat(options, self.argseparator)
else
str = str .. self.argseparator .. table.concat(options, self.argseparator)
end
if str == '' then
return prefix
else
return prefix .. self.argseparator .. str
end
end
local oprint = nil
function CmdLine:log(file, params)
local f = (io.type(file) == 'file' and file) or io.open(file, 'w')
oprint = oprint or print -- get the current print function lazily
function print(...)
local n = select("#", ...)
local arg = {...}
if not self.silentio then
oprint(...)
end
local str = {}
if self.dateformat then
table.insert(str, os.date(self.dateformat))
end
for i=1,n do
table.insert(str,tostring(arg[i]))
end
table.insert(str,'\n')
f:write(table.concat(str,' '))
f:flush()
end
print('[program started on ' .. os.date() .. ']')
print('[command line arguments]')
if params then
for k,v in pairs(params) do
print(k,v)
end
end
print('[----------------------]')
end
function CmdLine:text(txt)
txt = txt or ''
assert(type(txt) == 'string')
table.insert(self.helplines, txt)
end
function CmdLine:help(arg)
io.write('Usage: ')
if arg then io.write(arg[0] .. ' ') end
io.write('[options] ')
for i=1,#self.arguments do
io.write('<' .. strip(self.arguments[i].key) .. '>')
end
io.write('\n')
-- first pass to compute max length
local optsz = 0
for _,option in ipairs(self.helplines) do
if type(option) == 'table' then
if option.default ~= nil then -- it is an option
if #option.key > optsz then
optsz = #option.key
end
else -- it is an argument
if #strip(option.key)+2 > optsz then
optsz = #strip(option.key)+2
end
end
end
end
-- second pass to print
for _,option in ipairs(self.helplines) do
if type(option) == 'table' then
io.write(' ')
if option.default ~= nil then -- it is an option
io.write(pad(option.key, optsz))
if option.help then io.write(' ' .. option.help) end
io.write(' [' .. tostring(option.default) .. ']')
else -- it is an argument
io.write(pad('<' .. strip(option.key) .. '>', optsz))
if option.help then io.write(' ' .. option.help) end
end
else
io.write(option) -- just some additional help
end
io.write('\n')
end
end
|
local ok, telescope = pcall(require, "telescope")
if not ok then
return
end
telescope.setup({})
telescope.load_extension("fzf")
telescope.load_extension("gh")
local r = require("user.remap").nnoremap
r("<leader>ff", ":Telescope find_files<CR>")
r("<C-p>", ":Telescope git_files<CR>")
r("<leader>of", ":Telescope oldfiles<CR>")
r("<leader>lg", ":Telescope live_grep<CR>")
r("<leader>fb", ":Telescope buffers<CR>")
r("<leader>fh", ":Telescope help_tags<CR>")
r("<leader>ft", ":Telescope treesitter<CR>")
r("<leader>fc", ":Telescope commands<CR>")
r("<leader>fr", ":Telescope resume<CR>")
r("<leader>fq", ":Telescope quickfix<CR>")
r("<leader>fgi", ":Telescope gh issues<CR>")
r("<leader>fgp", ":Telescope gh pull_requests<CR>")
|
--- RP Revive, Made by DEJSU ---
local reviveWait = 0 -- Change the amount of time to wait before allowing revive (in seconds)
local isDead = false
local timerCount = reviveWait
-- Turn off automatic respawn here instead of updating FiveM file.
AddEventHandler('onClientMapStart', function()
Citizen.Trace("RPRevive: Disabling le autospawn.")
exports.spawnmanager:spawnPlayer() -- Ensure player spawns into server.
Citizen.Wait(2500)
exports.spawnmanager:setAutoSpawn(false)
Citizen.Trace("RPRevive: Autospawn is disabled.")
end)
function respawnPed(ped, coords)
SetEntityCoordsNoOffset(ped, coords.x, coords.y, coords.z, false, false, false, true)
NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, coords.heading, true, false)
SetPlayerInvincible(ped, false)
TriggerEvent('playerSpawned', coords.x, coords.y, coords.z, coords.heading)
ClearPedBloodDamage(ped)
end
function revivePed(ped)
local playerPos = GetEntityCoords(ped, true)
isDead = false
timerCount = reviveWait
NetworkResurrectLocalPlayer(playerPos, true, true, false)
SetPlayerInvincible(ped, false)
ClearPedBloodDamage(ped)
end
function ShowInfoRevive(text)
SetNotificationTextEntry("STRING")
AddTextComponentSubstringPlayerName(text)
DrawNotification(true, true)
end
Citizen.CreateThread(function()
local respawnCount = 0
local spawnPoints = {}
local playerIndex = NetworkGetPlayerIndex(-1) or 0
math.randomseed(playerIndex)
function createSpawnPoint(x1, x2, y1, y2, z, heading)
local xValue = math.random(x1,x2) + 0.0001
local yValue = math.random(y1,y2) + 0.0001
local newObject = {
x = xValue,
y = yValue,
z = z + 0.0001,
heading = heading + 0.0001
}
table.insert(spawnPoints,newObject)
end
createSpawnPoint(-448, -448, -340, -329, 35.5, 0) -- Mount Zonah
createSpawnPoint(372, 375, -596, -594, 30.0, 0) -- Pillbox Hill
createSpawnPoint(335, 340, -1400, -1390, 34.0, 0) -- Central Los Santos
createSpawnPoint(1850, 1854, 3700, 3704, 35.0, 0) -- Sandy Shores
createSpawnPoint(-247, -245, 6328, 6332, 33.5, 0) -- Paleto
while true do
Citizen.Wait(0)
ped = GetPlayerPed(-1)
if IsEntityDead(ped) then
isDead = true
SetPlayerInvincible(ped, true)
SetEntityHealth(ped, 1)
ShowInfoRevive('~r~Nie żyjesz. ~w~Naciśnij ~y~E ~w~aby się odrodzić.')
if IsControlJustReleased(0, 38) and GetLastInputMethod(0) then
if timerCount <= 0 then
revivePed(ped)
else
--TriggerEvent('chat:addMessage', { args = {'^*Wait ' .. timerCount .. ' more seconds before reviving.'}})
end
elseif IsControlJustReleased(0, 45) and GetLastInputMethod( 0 ) then
local coords = spawnPoints[math.random(1,#spawnPoints)]
respawnPed(ped, coords)
isDead = false
timerCount = reviveWait
respawnCount = respawnCount + 1
math.randomseed(playerIndex * respawnCount)
end
end
end
end)
Citizen.CreateThread(function()
while true do
if isDead then
timerCount = timerCount - 1
end
Citizen.Wait(1000)
end
end)
|
debug_print("Application: " .. get_application_name())
debug_print("Window: " .. get_window_name());
|
-----------------------------------
-- Area: Metalworks
-- NPC: Moyoyo
-- Type: Standard NPC
-- !pos 19.508 -17 26.870 237
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startEvent(252);
end;
function onEventUpdate(player,csid,option)
end;
function onEventFinish(player,csid,option)
end;
|
local table = require 'ext.table'
local range = require 'ext.range'
local greekSymbolsAndNames = table{
{alpha = 'α'}, --άλφα [a] [aː] [a]
{beta = 'β'}, --βήτα [b] [v]
{gamma = 'γ'}, --γάμμα [ɡ], [ŋ][ex 1] [ɣ] ~ [ʝ], [ŋ][ex 2] ~ [ɲ][ex 3]
{delta = 'δ'}, --δέλτα [d] [ð]
{epsilon = 'ε'}, --έψιλον [e]
{zeta = 'ζ'}, --ζήτα [zd]A [z]
{eta = 'η'}, --ήτα [ɛː] [i]
{theta = 'θ'}, --θήτα [tʰ] [θ]
{iota = 'ι'}, --ιώτα [i] [iː] [i], [ʝ],[ex 4] [ɲ][ex 5]
{kappa = 'κ'}, --κάππα [k] [k] ~ [c]
{lambda = 'λ'}, --λάμδα [l]
{mu = 'μ'}, --μυ [m]
{nu = 'ν'}, --νυ [n]
{xi = 'ξ'}, --ξι [ks]
{omicron = 'ο'}, --όμικρον [o]
{pi = 'π'}, --πι [p]
{rho = 'ρ'}, --ρώ [r]
{sigma = 'σ'}, --σίγμα [s] [s] ~ [z] /ς[note 1]
{tau = 'τ'}, --ταυ [t]
{upsilon = 'υ'}, --ύψιλον [y] [yː] [i]
{phi = 'φ'}, --φι [pʰ] [f]
{chi = 'χ'}, --χι [kʰ] [x] ~ [ç]
{psi = 'ψ'}, --ψι [ps]
{omega = 'ω'}, --ωμέγα [ɔː] [o]
-- tested the MathJax can't handle stuff using Chrome...
{Alpha = 'Α'}, -- MathJax can't handle \Alpha
{Beta = 'Β'}, -- MathJax can't handle
{Gamma = 'Γ'},
{Delta = 'Δ'},
{Epsilon = 'Ε'}, -- MathJax can't handle
{Zeta = 'Ζ'}, -- MathJax can't handle
{Eta = 'Η'}, -- MathJax can't handle
{Theta = 'Θ'},
{Iota = 'Ι'}, -- MathJax can't handle
{Kappa = 'Κ'}, -- MathJax can't handle
{Lambda = 'Λ'},
{Mu = 'Μ'}, -- MathJax can't handle
{Nu = 'Ν'}, -- MathJax can't handle
{Xi = 'Ξ'},
{Omicron = 'Ο'}, -- MathJax can't handle
{Pi = 'Π'},
{Rho = 'Ρ'}, -- MathJax can't handle
{Sigma = 'Σ'},
{Tau = 'Τ'}, -- MathJax can't handle
{Upsilon = 'Υ'},
{Phi = 'Φ'},
{Chi = 'Χ'}, -- MathJax can't handle
{Psi = 'Ψ'},
{Omega = 'Ω'},
}
local greekSymbolNames = greekSymbolsAndNames:mapi(function(kv)
return (next(kv))
end)
local greekSymbolForNames = greekSymbolsAndNames:mapi(function(kv)
local k,v = next(kv)
return v,k
end)
local latinSymbols = range(1,26):mapi(function(i)
return string.char(('a'):byte()+i-1)
end)
return {
greekSymbolsAndNames = greekSymbolsAndNames,
greekSymbolForNames = greekSymbolForNames,
greekSymbolNames = greekSymbolNames,
latinSymbols = latinSymbols,
}
|
local _E
local function player(index)
local slotFrame = index and _G["TradePlayerItem"..index.."ItemButton"]
local slotLink = index and GetTradePlayerItemLink(index)
SyLevel:CallFilters("trade", slotFrame, _E and slotLink)
end
local function target(index)
local slotFrame = index and _G["TradeRecipientItem"..index.."ItemButton"]
local slotLink = index and GetTradeTargetItemLink(index)
SyLevel:CallFilters("trade", slotFrame, _E and slotLink)
end
local function update()
for i = 1, MAX_TRADE_ITEMS or 8 do
player(i)
target(i)
end
end
local function TRADE_PLAYER_ITEM_CHANGED(self, event, index)
player(index)
end
local function TRADE_TARGET_ITEM_CHANGED(self, event, index)
target(index)
end
local function enable(self)
_E = true
self:RegisterEvent("TRADE_UPDATE", update)
self:RegisterEvent("TRADE_SHOW", update)
self:RegisterEvent("TRADE_PLAYER_ITEM_CHANGED", TRADE_PLAYER_ITEM_CHANGED)
self:RegisterEvent("TRADE_TARGET_ITEM_CHANGED", TRADE_TARGET_ITEM_CHANGED)
end
local function disable(self)
_E = nil
self:UnregisterEvent("TRADE_UPDATE", update)
self:UnregisterEvent("TRADE_SHOW", update)
self:UnregisterEvent("TRADE_PLAYER_ITEM_CHANGED", player)
self:UnregisterEvent("TRADE_TARGET_ITEM_CHANGED", target)
end
SyLevel:RegisterPipe("trade", enable, disable, update, "Trade Window", nil) |
--[[
For easy composition, UDVListEntry function simply turns a
'struct udev_list_entry' into a table with two named fields.
If either of the fields is NULL on the C side, it will not
show up within the table.
safeffistring is used to ensure we don't crash in case a
NULL value is present. Instead it will simply return 'nil'
otherwise, it will use ffi.string to turn the value into
a lua string.
--]]
local udev = require("udev")
local function toUDVListEntry(entry)
return {
Name = udev.safeffistring(udev.udev_list_entry_get_name(entry));
Value = udev.safeffistring(udev.udev_list_entry_get_value(entry));
}
end
return toUDVListEntry
|
require "prototypes.global-robot-combinator"
|
-----------------------------------------
-- ID: 18270, 18271, 18638, 18652, 18666, 19747, 19840, 20555, 20556, 20583
-- Item: Mandau
-- Additional Effect: Poison
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player, target, damage)
local chance = 10
if math.random(100) <= chance and applyResistanceAddEffect(player, target, tpz.magic.ele.WATER, 0) > 0.5 then
target:addStatusEffect(tpz.effect.POISON, 10, 3, 30) -- Power and Duration needs verified.
return tpz.subEffect.POISON, tpz.msg.basic.ADD_EFFECT_STATUS, tpz.effect.POISON
end
return 0, 0, 0
end
|
require "app.game.gm.gm"
require "app.game.gm.helper"
require "app.game.gm.sys"
require "app.game.gm.admin"
|
-- --------------------
-- TellMeWhen
-- Originally by Nephthys of Hyjal <lieandswell@yahoo.com>
-- Other contributions by:
-- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol,
-- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune
-- Currently maintained by
-- Cybeloras of Aerie Peak
-- --------------------
if not TMW then return end
local TMW = TMW
local L = TMW.L
local print = TMW.print
local strsub, pairs
= strsub, pairs
-- Module creation
TMW.COMMON.Textures = CreateFrame("Frame")
-- Upvalues
local Textures = TMW.COMMON.Textures
local VarTextures_item = {}
local function UpdateVarTextures_item()
local updated = false
for i = INVSLOT_FIRST_EQUIPPED, INVSLOT_LAST_EQUIPPED do
local old = VarTextures_item[i]
local new = GetInventoryItemTexture("player", i) or nil
if old ~= new then
VarTextures_item[i] = new
updated = true
end
end
if updated then
TMW:Fire("TMW_TEXTURES_VARTEX_ITEM_CHANGED")
end
end
Textures:SetScript("OnEvent", function(self, event)
if event == "PLAYER_EQUIPMENT_CHANGED" then
UpdateVarTextures_item()
end
end)
function Textures:EvaluateTexturePath(CustomTex, ...)
local keepItemCallback = false
local result = ""
if CustomTex == nil then
result = nil
elseif CustomTex:sub(1, 1) == "$" then
local varType, varData = CustomTex:match("^$([^%.:]+)%.?([^:]*)$")
if varType then
varType = varType:lower():trim(" ")
end
if varData then
varData = varData:trim(" ")
end
if varType == "item" then
varData = tonumber(varData)
if varData and varData >= INVSLOT_FIRST_EQUIPPED and varData <= INVSLOT_LAST_EQUIPPED then
if not Textures:IsEventRegistered("PLAYER_EQUIPMENT_CHANGED") then
Textures:RegisterEvent("PLAYER_EQUIPMENT_CHANGED")
UpdateVarTextures_item()
end
TMW:RegisterCallback("TMW_TEXTURES_VARTEX_ITEM_CHANGED", ...)
keepItemCallback = true
result = VarTextures_item[varData]
end
end
elseif CustomTex:lower() == "blank" or CustomTex:lower() == "none" then
result = ""
else
result = Textures:GetTexturePathFromSetting(CustomTex)
end
if not keepItemCallback then
TMW:UnregisterCallback("TMW_TEXTURES_VARTEX_ITEM_CHANGED", ...)
end
return result
end
function Textures:GetTexturePathFromSetting(setting)
setting = tonumber(setting) or setting
if setting and setting ~= "" then
if TMW.GetSpellTexture(setting) then
return TMW.GetSpellTexture(setting)
end
-- If there is a slash in it, then it is probably a full path
if strfind(setting, "[\\/]") then
return setting
else
-- If there isn't a slash in it, then it is probably be a wow icon in interface\icons.
-- it still might be a file in wow's root directory, but there is no way to tell for sure
return "Interface/Icons/" .. setting
end
end
end
|
local config = require("config")
local ltn = {}
function ltn.save_stop_update(logistic_train_stops)
global.last_ltn_update = logistic_train_stops
end
function ltn.get_network(stop_id)
if ltn.is_ltn_stop(stop_id) then
return global.last_ltn_update[stop_id].network_id
end
end
function ltn.is_ltn_stop(stop_id)
return global.last_ltn_update[stop_id] ~= nil
end
function ltn.get_rail(stop_id)
if ltn.is_ltn_stop(stop_id) then
local entity = global.last_ltn_update[stop_id].entity
if entity.valid then
return entity.connected_rail
end
end
end
function ltn.is_carriage_in_limit(stop_id, carriages)
if ltn.is_ltn_stop(stop_id) then
local stop = global.last_ltn_update[stop_id]
if stop.max_carriages == 0 then
return carriages >= stop.min_carriages
else
return carriages <= stop.max_carriages and carriages >= stop.min_carriages
end
end
return true
end
return ltn
|
function fire_effect(keys)
local target = keys.target
local particleName =
"particles/units/heroes/hero_zuus/zuus_lightning_bolt.vpcf"
local particle = ParticleManager:CreateParticle(particleName,
PATTACH_WORLDORIGIN, target)
local vec = target:GetAbsOrigin()
ParticleManager:SetParticleControl(particle, 0, Vector(vec.x, vec.y, 1000))
ParticleManager:SetParticleControl(particle, 1, vec)
end
|
-- 从httpc库导入并且使用
local httpc = require "httpc"
local basic_key, basic_value = httpc.basic_authorization("myusername", "mypassword")
print(basic_key, basic_value)
local jwt_header_key, jwt_header_value = httpc.jwt("mysecret", [[{"key1":"value1","key2":"value2"}]])
print(jwt_header_key, jwt_header_value)
-- 从httpc类库中导入并且使用
local httpc_cls = require "httpc.class"
local hc = httpc_cls:new {}
local basic_key, basic_value = hc:basic_authorization("myusername", "mypassword")
print(basic_key, basic_value)
local jwt_header_key, jwt_header_value = hc:jwt("mysecret", [[{"key1":"value1","key2":"value2"}]])
print(jwt_header_key, jwt_header_value) |
local planet = require("Planet")
local vehicle = Class({
topSpeed = 60;
name = "";
value = 100;
manufacturer = "";
engineStatus = "off";
start = function(self) self.engineStatus = "on" end;
stop = function(self) self.engineStatus = "off" end;
})
local car = Class({
value = 200;
horn = function(self)
print("beep")
end;
constructor = function(self, spd, name, manu)
self.topSpeed = spd
self.name = name
self.manufacturer = manu
end;
}, vehicle)
local myCar = car.new(2015, "DeLorean", "DMC")
myCar:horn()
myCar:start()
print(myCar.name, myCar.value, myCar.engineStatus) |
local function LoadCustomLibrary(Name)
return require(script.Parent[Name])
end
local Promise = LoadCustomLibrary("Promise")
local Signal = LoadCustomLibrary("Signal")
local MakeMaid = LoadCustomLibrary("Maid").MakeMaid
local HttpPromise = LoadCustomLibrary("HttpPromise")
local LongPoll = {}
LongPoll.__index = LongPoll
LongPoll.ClassName = "LongPoll"
function LongPoll.new(Url, Headers)
local self = setmetatable({}, LongPoll)
self.Url = Url or error("No Url")
self.Headers = Headers or nil
self.Event = Signal.new() -- :Fire(Result)
self.Maid = MakeMaid()
self._lastPollTime = 0
self._refresh = Signal.new()
self._refresh:Connect(function(...)
self:_poll(...)
end)
self._refresh:Fire()
return self
end
function LongPoll:_poll(PreventLoop)
if PreventLoop and (tick() - self._lastPollTime) <= 0.01 then
warn("Already polled recently, yield for now")
wait()
end
self._lastPollTime = tick()
local RequestPromise = HttpPromise.Json(self.Url, true, self.Headers)
self.Maid.RequestMaid = RequestPromise
RequestPromise:Then(function(Result)
self.Event:Fire(Result)
self._refresh:Fire()
end, function(Error)
-- Hopefully doesn't error
warn("Request failed.", Error)
self._refresh:Fire(true) -- Prevent infinite loop on HttpError
end)
end
function LongPoll:Destroy()
self.Maid:DoCleaning()
end
return LongPoll
|
-----------------------------------
-- Area: Silver Sea Remnants
-- NM: Long-Armed Chariot
-----------------------------------
require("scripts/globals/titles")
-----------------------------------
function onMobDeath(mob, player, isKiller)
player:addTitle(tpz.title.MOON_CHARIOTEER)
end
|
return {
["GH0001"] = {
category = "book",
title = "Rhythmic Illusions",
subtitle = "for drums",
author = "Gavin Harrison",
publisher = "Warner",
isbn = "1576236870",
year = "1996",
comment = "plus cd",
},
["GH0002"] = { -- no reference in brittisch library
category = "book",
title = "Rhythmic Perspectives",
subtitle = "a multidimensional study of rhythmic composition",
author = "Gavin Harrison",
publisher = "Alfred Publishing Co., Inc",
year = "1999",
comment = "plus cd",
},
["GH0003"] = {
category = "book",
title = "Rhythmic Designs",
subtitle = "a study of practical creativity",
author = "Gavin Harrison and Terry Branham",
publisher = "Hudson",
year = "2010",
comment = "plus dvd",
},
}
|
--[[
Flying Saucer Training
This is a training mission which teaches many basic (and not-so-basic) moves
with the flying saucer.
Lesson plan:
- Taking off
- Basic flight
- Landing safely
- Managing fuel
- Changing saucers in mid-flight
- Diving
- Dropping weapons from flying saucer
- Firing from flying saucer with [Precise] + [Attack]
- Aiming in flying saucer with [Precise] + [Up]/[Down]
- Underwater attack
- Free flight with inf. fuel and some weapons at end of training
FIXME:
- Bad respawn animation ("explosion" just happens randomly because of the way the resurrection effect works)
- Hide fuel if infinite (probably needs engine support)
]]
HedgewarsScriptLoad("/Scripts/Locale.lua")
HedgewarsScriptLoad("/Scripts/Tracker.lua")
local Player = nil -- Pointer to hog created in: onGameInit
local Target = nil -- Pointer to target hog
local Objective = false -- Get to the target
local Flawless = true -- Track flawless victory
local TargetNumber = 0 -- The current target number
local GrenadeThrown = false -- Used for the Boom Target
local BazookasLeft = 0 -- Used by the Launch Target and the Unterwater Attack Target
local InfFuel = false -- If true, flying saucer has infinite fuel
local SaucerGear = nil -- Store flying saucer gear here (if one exists)
local TargetGears = {} -- List of remaining gears to collect or destroy in the current round
local TargetsRemaining = 0
local Barrels = {} -- Table contraining the explosive barrel gears
local CheckTimer = 500 -- Time to wait at least before checking safe landing
local Check = false -- The last target has recently been collected/destroyed and the CheckTimer is running
local GrenadeTimer = 0 -- Time after a grenade has been thrown
local TargetPos = {} -- Table of targets
local StartPos = { X = 742, Y = 316 }
--[[
List of all targets (or "objectives"). The player has to complete them one-by-one and must always land safely afterwards.
Some target numbers have names for easier reference.
]]
-- Intro
TargetPos[1] = {
Targets = {{ X = 1027, Y = 217 }},
Ammo = { },
Message = loc("Here you will learn how to fly the flying saucer|and get so learn some cool tricks.") .. "|" ..
loc("Collect the first crate to begin!"),
MessageIcon = -amJetpack, }
-- First flight, infinite fuel
TargetPos[2] = {
Targets = {{ X = 1369, Y = 265 }},
Ammo = { [amJetpack] = 100 },
InfFuel = true,
MessageTime = 10000,
Message = loc("Get to the crate using your flying saucer!") .. "|" ..
loc("Press [Attack] (space bar by default) to start,|repeatedly tap the up, left and right movement keys to accelerate.") .. "|" ..
loc("Try to land softly, as you can still take fall damage!"), }
-- First flight, limited fuel
TargetPos[3] = {
Targets = {{ X = 689, Y = 58 }},
Ammo = { [amJetpack] = 100 },
MessageTime = 5000,
Message = loc("Now collect the next crate!") .. "|" .. loc("Be careful, your fuel is limited from now on!") .."|" ..
loc("Tip: If you get stuck in this training, use \"Skip turn\" to restart the current objective.") }
-- The Double Target
TargetPos[4] = {
Targets = { { X = 178, Y = -20 }, { X = 1962 , Y = -20 } },
Ammo = { [amJetpack] = 2 },
CratesContainAmmo = true,
MessageTime = 9000,
Message = loc("Now collect the 2 crates to the far left and right.") .. "|" ..
loc("You only have 2 flying saucers this time.") .. "|" ..
loc("Tip: You can change your flying saucer|in mid-flight by hitting the [Attack] key twice."), }
-- Intermission
TargetPos[5] = {
Targets = {{ X = 47, Y = 804 }},
Ammo = { [amJetpack] = 100 },
MessageTime = 5000,
Message = loc("Time for a more interesting stunt, but first just collect the next crate!"), }
-- First Dive
TargetPos[6] = {
Targets = {{ X = 604, Y = 871}},
MessageTime = 15000,
Message = loc("You can dive with your flying saucer!") .. "|" ..
loc("Try it now and dive here to collect the crate on the right girder.") .. "|" ..
loc("You only have one flying saucer this time.") .. "|" ..
loc("Beware, though, you will only be able to move slowly through the water.") .. "|" ..
loc("Warning: Never ever leave the flying saucer while in water!"),
Ammo = { [amJetpack] = 1 },
Respawn = { X = 758, Y = 847, FaceLeft = false }, }
-- Second Dive
TargetPos[7] = {
Targets = {{ X = 1884, Y = 704 }},
MessageTime = 6500,
Message = loc("Now dive just one more time and collect the next crate.") .. "|" ..
loc("Tip: Don't remain for too long in the water, or you won't make it."),
Ammo = { [amJetpack] = 2 },
Respawn = { X = 1968, Y = -1, FaceLeft = true }, }
-- The Grenade Drop Target
local BoomTarget = 8
TargetPos[8] = {
Modifier = true, Func = function()
Info(loc("Instructions"),
loc("Now let's try to drop weapons while flying!") .. "|" ..
loc("You have to destroy the target above by dropping a grenade on it from your flying saucer.") .. "|" ..
loc("It's not that easy, so listen carefully:") .. "|" ..
loc("Step 1: Activate your flying saucer but do NOT move yet!") .. "|" ..
loc("Step 2: Select your grenade.") .. "|" ..
loc("Step 3: Start flying and get yourself right above the target.") .. "|" ..
loc("Step 4: Drop your grenade by pressing the [Long jump] key.") .. "|" ..
loc("Step 5: Get away quickly and land safely anywhere.") .. "| |" ..
loc("Note: We only give you grenades if you stay in your flying saucer."), nil, 20000)
SpawnBoomTarget()
if SaucerGear ~= nil then
AddAmmo(Player, amGrenade, 1)
else
AddAmmo(Player, amGrenade, 0)
end
GrenadeThrown = false
end,
Ammo = { [amJetpack] = 100 },
Respawn = { X = 2000, Y = 742, FaceLeft = true }, }
-- The Launch Target
local LaunchTarget = 9
TargetPos[9] = {
Targets = {{ X = 1700, Y = 640, Type = gtTarget }, { X = 1460, Y = 775, Type = gtTarget }},
MessageTime = 20000,
Message = loc("Only the best pilots can master the following stunts.") .. "|" ..
loc("As you've seen, the dropped grenade roughly fell into your flying direction.") .. "|" ..
loc("You have to destroy two targets, but the previous technique would be very difficult or dangerous to use.") .. "|" ..
loc("So you are able to launch projectiles into your aiming direction, always at full power.") .."|"..
loc("To launch a projectile in mid-flight, hold [Precise] and press [Long jump].") .. "|" ..
loc("You can even change your aiming direction in mid-flight if you first hold [Precise] and then press [Up] or [Down].") .. "|" ..
loc("Tip: Changing your aim while flying is very difficult, so adjust it before you take off."),
Ammo = { [amJetpack] = 1, },
Respawn = { X = 1760, Y = 754, FaceLeft = true },
ExtraFunc = function()
if SaucerGear ~= nil then
AddAmmo(Player, amBazooka, 2)
else
AddAmmo(Player, amBazooka, 0)
end
BazookasLeft = 2
end }
-- The Underwater Attack Target
local UnderwaterAttackTarget = 10
TargetPos[10] = {
MessageTime = 17000,
Message = loc("Now for the supreme discipline of saucer flying, the underwater attack.") .. "|" ..
loc("Basically this is a combination of diving and launching.") .. "|" ..
loc("Dropping a weapon while in water would just drown it, but launching one would work.") .."|" ..
loc("Based on what you've learned, destroy the target on the girder and as always, land safely!"),
Targets = {{ X = 1200, Y = 930, Type = gtTarget }},
Ammo = { [amJetpack] = 1, },
Respawn = { X = 1027, Y = 217, FaceLeft = true },
ExtraFunc = function()
if SaucerGear ~= nil then
AddAmmo(Player, amBazooka, 1)
else
AddAmmo(Player, amBazooka, 0)
end
BazookasLeft = 1
end }
-- Final target / Sandbox
TargetPos[11] = {
Targets = {{ X = 742, Y = 290 }},
MessageTime = 5000,
Message = loc("This almost concludes our tutorial.") .. "|" ..
loc("You now have infinite fuel, grenades and bazookas for fun.") .. "|" ..
loc("Collect or destroy the final crate to finish the training."),
Ammo = { [amJetpack] = 100, [amGrenade] = 100, [amBazooka] = 100 },
InfFuel = true, }
-- Outro
TargetPos[12] = { Modifier = true, Func = function()
Objective = true
AddCaption(loc("Training complete!"), capcolDefault, capgrpGameState)
Info(loc("Training complete!"), loc("Good bye!"), 4, 5000)
if SaucerGear ~= nil then
DeleteGear(SaucerGear)
end
SetState(Player, band(GetState(Player), bnot(gstHHDriven)))
SetState(Player, bor(GetState(Player), gstWinner))
if Flawless then
PlaySound(sndFlawless, Player)
else
PlaySound(sndVictory, Player)
end
SaveMissionVar("Won", "true")
SendStat(siGameResult, loc("You have finished the Flying Saucer Training!"))
SendStat(siCustomAchievement, loc("Good job!"))
EndTurn(true)
EndGame()
SetState(Player, gstWinner)
end,
}
-- Just a wrapper for ShowMission
function Info(Title, Text, Icon, Time)
if Time == nil then Time = 0 end
if Icon == nil then Icon = 2 end
ShowMission(loc("Flying Saucer Training"), Title, Text, Icon, Time)
end
-- Spawn all the gears for the Boom Target
function SpawnBoomTarget()
if TargetsRemaining < 1 then
TargetGears[1] = AddGear(1602, 507, gtTarget, 0, 0, 0, 0)
TargetsRemaining = TargetsRemaining + 1
end
if Barrels[1] == nil then
Barrels[1] = AddGear(1563, 532, gtExplosives, 0, 0, 0, 0)
end
if Barrels[2] == nil then
Barrels[2] = AddGear(1648, 463, gtExplosives, 0, 0, 0, 0)
end
if Barrels[3] == nil then
Barrels[3] = AddGear(1513, 575, gtExplosives, 0, 0, 0, 0)
end
for i=1,#Barrels do
SetHealth(Barrels[i], 1)
end
end
-- Generic target spawning for the current target
function SpawnTargets()
for i=1,#TargetPos[TargetNumber].Targets do
if TargetGears[i] == nil then
SpawnTarget(TargetPos[TargetNumber].Targets[i].X, TargetPos[TargetNumber].Targets[i].Y,
TargetPos[TargetNumber].Targets[i].Type, i, TargetPos[TargetNumber].CratesContainAmmo )
end
end
end
function SpawnTarget( PosX, PosY, Type, ID, ContainsAmmo )
if Type ~= nil and Type ~= gtCase then
if Type == gtTarget then
TargetGears[ID] = AddGear(PosX, PosY, gtTarget, 0, 0, 0, 0)
end
else
if ContainsAmmo == true then
TargetGears[ID] = SpawnSupplyCrate(PosX, PosY, amJetpack)
else
TargetGears[ID] = SpawnFakeUtilityCrate(PosX, PosY, false, false)
end
end
TargetsRemaining = TargetsRemaining + 1
end
function AutoSpawn() -- Auto-spawn the next target after you've obtained the current target!
TargetNumber = TargetNumber + 1
TargetsRemaining = 0
if TargetPos[TargetNumber].Ammo then
for ammoType, count in pairs(TargetPos[TargetNumber].Ammo) do
AddAmmo(Player, ammoType, count)
end
if GetCurAmmoType() ~= amJetpack then
SetWeapon(amJetpack)
end
end
if TargetPos[TargetNumber].InfFuel then
InfFuel = true
else
InfFuel = false
end
UpdateInfFuel()
-- Func (if present) will be run instead of the ordinary spawning handling
if TargetPos[TargetNumber].Modifier then -- If there is a modifier, run the function
TargetPos[TargetNumber].Func()
return true
end
-- ExtraFunc is for additional events for a target
if TargetPos[TargetNumber].ExtraFunc ~= nil then
TargetPos[TargetNumber].ExtraFunc()
end
local subcap
if TargetNumber == 1 then
subcap = loc("Training")
else
subcap = loc("Instructions")
end
Info(subcap, TargetPos[TargetNumber].Message, TargetPos[TargetNumber].MessageIcon, TargetPos[TargetNumber].MessageTime)
-- Spawn targets on the next position
SpawnTargets()
if TargetNumber > 1 then
AddCaption(loc("Next target is ready!"), capcolDefault, capgrpMessage2)
end
end
-- Returns true if the hedgehog has safely "landed" (alive, no flying saucer gear and not moving)
-- This is to ensure the training only continues when the player didn't screw up and to restart the current target
function HasHedgehogLandedYet()
if band(GetState(Player), gstMoving) == 0 and SaucerGear == nil and GetHealth(Player) > 0 then
return true
else
return false
end
end
-- Clean up the gear mess left behind when the player failed to get a clean state after restarting
function CleanUpGears()
-- (We track flames, grenades, bazooka shells)
runOnGears(DeleteGear)
end
-- Completely restarts the current target/objective; the hedgehog is spawned at the last "checkpoint"
-- Called when hedgeghog is resurrected or skips turn
function ResetCurrentTarget()
GrenadeThrown = false
GrenadeTimer = 0
if TargetNumber == LaunchTarget then
BazookasLeft = 2
elseif TargetNumber == UnderwaterAttackTarget then
BazookasLeft = 1
else
BazookasLeft = 0
end
Check = false
CleanUpGears()
local X, Y, FaceLeft
if TargetNumber == 1 then
X, Y = StartPos.X, StartPos.Y
else
if TargetPos[TargetNumber-1].Modifier or TargetPos[TargetNumber-1].Respawn ~= nil then
X, Y = TargetPos[TargetNumber-1].Respawn.X, TargetPos[TargetNumber-1].Respawn.Y
FaceLeft = TargetPos[TargetNumber-1].Respawn.FaceLeft
else
X, Y = TargetPos[TargetNumber-1].Targets[1].X, TargetPos[TargetNumber-1].Targets[1].Y
end
end
if TargetNumber == BoomTarget then
SpawnBoomTarget()
end
if TargetPos[TargetNumber].Modifier ~= true then
SpawnTargets()
end
if TargetPos[TargetNumber].Ammo then
for ammoType, count in pairs(TargetPos[TargetNumber].Ammo) do
AddAmmo(Player, ammoType, count)
end
if GetCurAmmoType() ~= amJetpack then
SetWeapon(amJetpack)
end
end
if TargetPos[TargetNumber].InfFuel then
InfFuel = true
else
InfFuel = false
end
UpdateInfFuel()
SetGearPosition(Player, X, Y)
if FaceLeft ~= nil then
HogTurnLeft(Player, FaceLeft)
end
end
function onGameInit()
Seed = 1
GameFlags = gfInfAttack + gfOneClanMode + gfSolidLand + gfDisableWind
TurnTime = MAX_TURN_TIME --[[ This effectively hides the turn time; a turn time above 1000s is not displayed.
We will also ensure this timer always stays above 999s later ]]
CaseFreq = 0
MinesNum = 0
Explosives = 0
Map = "Eyes"
Theme = "EarthRise"
SuddenDeathTurns = 50
WaterRise = 0
HealthDecrease = 0
AddMissionTeam(-9)
Player = AddMissionHog(1)
SetGearPosition( Player, StartPos.X, StartPos.Y)
SetEffect( Player, heResurrectable, 1 )
end
function onGameStart()
SendHealthStatsOff()
SendRankingStatsOff()
-- Girder near first crate
PlaceGirder(1257, 204, 6)
-- The upper girders
PlaceGirder(84, 16, 4)
PlaceGirder(243, 16, 4)
PlaceGirder(1967, 16, 4)
-- The lower girder platform at the water pit
PlaceGirder(509, 896, 4)
PlaceGirder(668, 896, 4)
PlaceGirder(421, 896, 2)
PlaceGirder(758, 896, 2)
-- Girders for the Launch Target and the Underwater Attack Target
PlaceGirder(1191, 960, 4)
PlaceGirder(1311, 960, 0)
PlaceGirder(1460, 827, 3)
PlaceGirder(1509, 763, 2)
PlaceGirder(1605, 672, 4)
PlaceGirder(1764, 672, 4)
PlaceGirder(1803, 577, 6)
-- Spawn our 1st target using the wrapper function
AutoSpawn()
end
function onAmmoStoreInit()
SetAmmo(amJetpack, 0, 0, 0, 1)
SetAmmo(amGrenade, 0, 0, 0, 1)
SetAmmo(amBazooka, 0, 0, 0, 1)
-- Added for resetting current target/objective when player is stuck somehow
SetAmmo(amSkip, 9, 0, 0, 0)
end
function onGearAdd(Gear)
if GetGearType(Gear) == gtJetpack then
SaucerGear = Gear
if TargetNumber == BoomTarget and GrenadeThrown == false then
AddAmmo(Player, amGrenade, 1)
end
if (TargetNumber == LaunchTarget or TargetNumber == UnderwaterAttackTarget) and BazookasLeft > 0 then
AddAmmo(Player, amBazooka, BazookasLeft)
end
UpdateInfFuel()
-- If player starts using saucer, the player probably finished reading and the mission panel
-- would just get in the way. So we hide it!
HideMission()
end
if GetGearType(Gear) == gtGrenade then
GrenadeThrown = true
GrenadeTimer = 0
end
if GetGearType(Gear) == gtShell then
BazookasLeft = BazookasLeft - 1
end
if GetGearType(Gear) == gtFlame or GetGearType(Gear) == gtGrenade or GetGearType(Gear) == gtShell then
trackGear(Gear)
end
end
function onGearDelete(Gear)
if GetGearType(Player) ~= nil and (GetGearType(Gear) == gtTarget or GetGearType(Gear) == gtCase) then
for i=1, #TargetGears do
if Gear == TargetGears[i] then
TargetGears[i] = nil
TargetsRemaining = TargetsRemaining - 1
end
end
if TargetsRemaining <= 0 then
if TargetNumber == BoomTarget or not HasHedgehogLandedYet() then
if SaucerGear then
AddCaption(loc("Objective completed! Now land safely."), capcolDefault, capgrpMessage2)
end
Check = true
CheckTimer = 500
else
AutoSpawn()
end
end
end
if GetGearType(Gear) == gtGrenade then
GrenadeTimer = 0
GrenadeExploded = true
end
if GetGearType(Gear) == gtJetpack then
SaucerGear = nil
if TargetNumber == BoomTarget then
AddAmmo(Player, amGrenade, 0)
end
if TargetNumber == LaunchTarget or TargetNumber == UnderwaterAttackTarget then
AddAmmo(Player, amBazooka, 0)
end
end
-- Fake crate collected
if GetGearType(Gear) == gtCase and band(GetGearMessage(Gear), gmDestroy) ~= 0 and band(GetGearPos(Gear), 0x8) ~= 0 then
PlaySound(sndShotgunReload)
end
if Gear == Barrels[1] then
Barrels[1] = nil
end
if Gear == Barrels[2] then
Barrels[2] = nil
AddCaption(loc("Kaboom!"), capcolDefault, capgrpMessage)
end
if Gear == Barrels[3] then
Barrels[3] = nil
end
end
function onNewTurn()
if GetAmmoCount(CurrentHedgehog, amJetpack) > 0 then
SetWeapon(amJetpack)
end
end
function onGameTick20()
if (TurnTimeLeft < 1500000 and not Objective) then
SetTurnTimeLeft(TurnTime)
end
if Check then
CheckTimer = CheckTimer - 20
if CheckTimer <= 0 then
if HasHedgehogLandedYet() then
AutoSpawn()
Check = false
GrenadeThrown = false
end
end
end
if GrenadeExploded and TargetNumber == BoomTarget and GetHealth(Player) then
GrenadeTimer = GrenadeTimer + 20
if GrenadeTimer > 1500 then
GrenadeTimer = 0
GrenadeThrown = false
GrenadeExploded = false
if SaucerGear and TargetNumber == BoomTarget and TargetsRemaining > 0 then
PlaySound(sndShotgunReload)
AddCaption(loc("+1 Grenade"), GetClanColor(GetHogClan(Player)), capgrpAmmoinfo)
AddAmmo(Player, amGrenade, 1)
end
end
end
end
function UpdateInfFuel()
if SaucerGear then
if InfFuel then
SetHealth(SaucerGear, JETPACK_FUEL_INFINITE)
elseif GetHealth(SaucerGear == JETPACK_FUEL_INFINITE) then
SetHealth(SaucerGear, 2000)
end
end
end
function onGearDamage(Gear)
if Gear == Player then
Flawless = false
CleanUpGears()
GrenadeThrown = false
Check = false
end
end
function onGearResurrect(Gear, VGear)
if Gear == Player then
Flawless = false
AddCaption(loc("Oh no! You have died. Try again!"), capcolDefault, capgrpMessage2)
ResetCurrentTarget()
if VGear then
SetVisualGearValues(VGear, GetX(Gear), GetY(Gear))
end
end
end
function onSkipTurn()
Flawless = false
AddCaption(loc("Try again!"), capcolDefault, capgrpMessage2)
ResetCurrentTarget()
end
|
local base = require 'http.adapters.nginx.base'
local describe, it, assert = describe, it, assert
describe('http.adapters.nginx.base', function()
describe('response writer', function()
it('get or set status code', function()
local w = setmetatable({ngx={}}, {__index=base.ResponseWriter})
assert.is_nil(w:get_status_code())
w:set_status_code(403)
assert.equals(403, w:get_status_code())
end)
it('flushes', function()
local flush_called = false
local w = setmetatable({ngx = {
flush = function()
flush_called = true
end
}}, {__index=base.ResponseWriter})
w:flush()
assert(flush_called)
end)
end)
describe('request', function()
it('parse query', function()
local headers = {x=1}
local req = setmetatable({ngx = {
req = {
get_headers = function()
return headers
end
}
}}, {__index=base.Request})
assert.same(headers, req:parse_headers())
assert.same(headers, req.headers)
end)
it('parse headers', function()
local query = {x=1}
local req = setmetatable({ngx = {
req = {
get_uri_args = function()
return query
end
}
}}, {__index=base.Request})
assert.same(query, req:parse_query())
assert.same(query, req.query)
end)
it('parse body', function()
local read_body_called = false
local body = {x=1}
local req = setmetatable({ngx = {
req = {
read_body = function()
read_body_called = true
end,
get_headers = function()
return {}
end,
get_body_data = function()
return body
end
}
}}, {__index=base.Request})
assert.same(body, req:parse_body())
assert.same(body, req.body)
assert(read_body_called)
end)
it('parse body currupted json', function()
local read_body_called = false
local get_body_data_called = false
local req = setmetatable({ngx = {
req = {
read_body = function()
read_body_called = true
end,
get_headers = function()
return {['content-type'] = 'application/json'}
end,
get_body_data = function()
get_body_data_called = true
return ''
end
}
}}, {__index=base.Request})
assert.is_nil(req:parse_body())
assert(read_body_called)
assert(get_body_data_called)
end)
it('parse body json', function()
local read_body_called = false
local get_body_data_called = false
local req = setmetatable({ngx = {
req = {
read_body = function()
read_body_called = true
end,
get_headers = function()
return {['content-type'] = 'application/json'}
end,
get_body_data = function()
get_body_data_called = true
return '{"x": 1}'
end
}
}}, {__index=base.Request})
assert.same({x=1}, req:parse_body())
assert(read_body_called)
assert(get_body_data_called)
end)
it('server parts', function()
local req = setmetatable({ngx = {
var = {
scheme = 'http',
host = 'localhost',
server_port = 8080
}
}}, {__index=base.Request})
local scheme, host, server_port = req:server_parts()
assert.equals('http', scheme)
assert.equals('localhost', host)
assert.equals(8080, server_port)
end)
end)
end)
|
--
-- Please see the readme.txt file included with this distribution for
-- attribution and copyright information.
--
--
-- DATA STRUCTURES
--
-- rCreature
-- sType
-- sName
-- nodeCreature
-- sCreatureNode
-- nodeCT
-- sCTNode
-- rEffect
-- sName = ""
-- sExpire = ""
-- nInit = #
-- sSource = ""
-- nGMOnly = 0, 1
-- sApply = "", "once", "single"
--
-- GENERAL ACTIONS SUPPORT
-- (DRAG AND DOUBLE-CLICK)
--
function baseAction(actiontype, val, desc, dice, rSourceActor, rTargetActor)
-- If no dice variable defined, then we want to use the default die (d20)
if not dice then
dice = { "d20" };
end
-- If empty dice set, then make it a d0 to hide GM rolls
if dice and #dice == 0 then
dice = { "d0" };
end
return desc, val, dice;
end
function dragAction(draginfo, actiontype, val, desc, rSourceActor, dice, isOverrideUserSetting)
-- APPLY COMMON ACTION MODIFIERS
desc, val, dice = baseAction(actiontype, val, desc, dice, rSourceActor, nil);
-- HANDLE HIDDEN ROLLS
if User.isHost() and OptionsManager.isOption("REVL", "off") then
local isGMOnly = string.match(desc, "^%[GM%]");
local isDiceTower = string.match(desc, "^%[TOWER%]");
if not isGMOnly and not isDiceTower then
desc = "[GM] " .. desc;
end
end
-- Make sure we're on slot 1
draginfo.setSlot(1);
-- Set the drag type based on user settings and the information passed
if OptionsManager.isOption("DRGR", "on") or isOverrideUserSetting then
draginfo.setType(actiontype);
draginfo.setDieList(dice);
else
draginfo.setType("number");
end
-- Set the description and modifier value
draginfo.setDescription(desc);
draginfo.setNumberData(val);
-- If we have a node reference, then use it
if rSourceActor then
if rSourceActor.sCTNode ~= "" then
draginfo.setShortcutData("combattracker_entry", rSourceActor.sCTNode);
elseif rSourceActor.sCreatureNode ~= "" then
if rSourceActor.sType == "pc" then
draginfo.setShortcutData("charsheet", rSourceActor.sCreatureNode);
elseif rSourceActor.sType == "npc" then
draginfo.setShortcutData("npc", rSourceActor.sCreatureNode);
end
end
end
-- We've handled this drag scenario
return true;
end
function dclkAction(actiontype, val, desc, rSourceActor, rTargetActor, dice, isOverrideUserSetting, other_custom)
-- APPLY COMMON ACTION MODIFIERS
desc, val, dice = baseAction(actiontype, val, desc, dice, rSourceActor, rTargetActor);
-- Decide what to do based on user settings
local opt_dclk = OptionsManager.getOption("DCLK");
if opt_dclk ~= "on" and not isOverrideUserSetting then
if opt_dclk == "mod" then
ModifierStack.addSlot(desc, val);
end
return true;
end
-- HANDLE HIDDEN ROLLS
if User.isHost() and OptionsManager.isOption("REVL", "off") then
local isGMOnly = string.match(desc, "^%[GM%]");
local isDiceTower = string.match(desc, "^%[TOWER%]");
if not isGMOnly and not isDiceTower then
desc = "[GM] " .. desc;
end
end
-- If we have a node reference, then use it
local custom = CombatCommon.buildCustomRollArray(rSourceActor, rTargetActor);
if other_custom then
for k,v in pairs(other_custom) do
custom[k] = v;
end
end
-- BASIC THROW THE DICE
ChatManager.DieControlThrow(actiontype, val, desc, custom, dice);
-- We've handled this double-click scenario
return true;
end
--
-- EFFECT SUPPORT
-- (DRAG, DOUBLE-CLICK, ENCODE/DECODE)
--
function getEffectTargets(rActor, rEffect)
local bSelfTargeted = false;
if (rEffect and rEffect.sTargeting == "self") then
bSelfTargeted = true;
end
local sTargetType, aTargets = TargetingManager.getTargets(rActor, bSelfTargeted);
if sTargetType == "targetpc" then
aTargets[1] = CombatCommon.getCTFromNode(aTargets[1]);
if not aTargets[1] then
ChatManager.SystemMessage("[ERROR] Self-targeting of effects requires PC to be added to combat tracker.");
sTargetType = "";
end
end
return sTargetType, aTargets;
end
function dragEffect(draginfo, rActor, rEffect)
encodeEffectForDrag(draginfo, rActor, rEffect);
return true;
end
function dclkEffect(rActor, rEffect, rTargetActor)
local sTargetType = "targetct";
local aTargets = {};
if rTargetActor and rTargetActor.nodeCT then
table.insert(aTargets, rTargetActor.sCTNode);
else
sTargetType, aTargets = getEffectTargets(rActor, rEffect);
end
if #aTargets > 0 then
for keyTarget, sTargetNode in pairs(aTargets) do
ChatManager.sendSpecialMessage(ChatManager.SPECIAL_MSGTYPE_APPLYEFF,
{sTargetNode,
rEffect.sName or "",
rEffect.sExpire or "",
rEffect.nInit or 0,
rEffect.sSource or "",
rEffect.nGMOnly or 0,
rEffect.sApply or ""});
end
else
ChatManager.reportEffect(rEffect);
end
return true;
end
function encodeEffectAsText(rEffect, sTarget)
local aMessage = {};
if rEffect then
if rEffect.nGMOnly == 1 then
table.insert(aMessage, "[GM]");
end
table.insert(aMessage, "[EFFECT] " .. rEffect.sName .. " EXPIRES " .. rEffect.sExpire);
if rEffect.nInit and StringManager.isWord(rEffect.sExpire, {"endnext", "start", "end" }) then
table.insert(aMessage, "[INIT " .. rEffect.nInit .. "]");
end
if rEffect.sApply and rEffect.sApply ~= "" then
table.insert(aMessage, "[" .. string.upper(rEffect.sApply) .. "]");
end
if sTarget then
table.insert(aMessage, "[to " .. sTarget .. "]");
end
if rEffect.sSource and rEffect.sSource ~= "" then
table.insert(aMessage, "[by " .. NodeManager.get(DB.findNode(rEffect.sSource), "name", "") .. "]");
end
end
return table.concat(aMessage, " ");
end
function encodeEffectForDrag(draginfo, rActor, rEffect)
if rEffect and rEffect.sName ~= "" then
draginfo.setType("effect");
draginfo.setDescription(rEffect.sName);
draginfo.setSlot(1);
draginfo.setStringData(rEffect.sName);
draginfo.setSlot(2);
draginfo.setStringData(rEffect.sExpire);
draginfo.setNumberData(rEffect.nInit or 0);
draginfo.setSlot(3);
draginfo.setStringData(rEffect.sSource or "");
draginfo.setNumberData(rEffect.nGMOnly or 0);
draginfo.setSlot(4);
draginfo.setStringData(rEffect.sApply or "");
draginfo.setSlot(5);
if Input.isShiftPressed() then
local sTargetType, aTargets = getEffectTargets(rActor);
draginfo.setStringData(table.concat(aTargets, "|"));
end
end
end
function decodeEffectFromDrag(draginfo)
local rEffect = nil;
if draginfo.getType() == "effect" then
rEffect = {};
draginfo.setSlot(1);
rEffect.sName = draginfo.getStringData();
draginfo.setSlot(2);
rEffect.sExpire = draginfo.getStringData();
local nTempInit = draginfo.getNumberData() or 0;
draginfo.setSlot(3);
local sEffectSource = draginfo.getStringData();
if sEffectSource and sEffectSource ~= "" then
rEffect.sSource = sEffectSource;
rEffect.nInit = nTempInit;
else
rEffect.sSource = "";
rEffect.nInit = 0;
end
rEffect.nGMOnly = draginfo.getNumberData() or 0;
draginfo.setSlot(4);
local sApply = draginfo.getStringData();
if sApply and sApply ~= "" then
rEffect.sApply = sApply;
else
rEffect.sApply = "";
end
draginfo.setSlot(5);
local sThirdPartyTargets = draginfo.getStringData();
if sThirdPartyTargets and sThirdPartyTargets ~= "" then
rEffect.targets = StringManager.split(sThirdPartyTargets, "|");
end
elseif draginfo.getType() == "number" then
local sDesc = draginfo.getDescription();
local sEffectName, sEffectExpire = string.match(sDesc, "%[EFFECT%] (.+) EXPIRES ?(%a*)");
if sEffectName and sEffectExpire then
rEffect = {};
rEffect.sName = sEffectName;
rEffect.sExpire = sEffectExpire;
rEffect.sSource = "";
local sEffectInit = string.match(sDesc, "%[INIT (%d+)%]");
if sEffectInit then
rEffect.nInit = tonumber(sEffectInit) or 0;
else
rEffect.nInit = 0;
end
if string.match(sDesc, "%[GM%]") then
rEffect.nGMOnly = 1;
else
rEffect.nGMOnly = 0;
end
if string.match(sDesc, "%[ONCE%]") then
rEffect.sApply = "once";
elseif string.match(sDesc, "%[SINGLE%]") then
rEffect.sApply = "single";
else
rEffect.sApply = "";
end
end
end
return rEffect;
end
function buildInitRoll(rCreature, rInit)
-- SETUP
local dice = { "d20" };
local mod = rInit.mod;
-- BUILD THE OUTPUT
local s = "Initiative";
-- RESULTS
return s, dice, mod;
end
|
require('actors/space/vehicles/Ship')
local image = passion.graphics.getImage('images/image.png')
LensCulinaris = class('LensCulinaris', Ship)
function LensCulinaris:initialize(ai, x, y, quadTree)
super.initialize(self, ai, x,y, 16,16,
-- Shapes
{ circle={0,0,16} },
-- Slots
{ frontLeft= { x=6, y=-10 },
frontRight={ x=6, y=10 },
utility = { x=-9, y=0 },
back={ x=-13, y=0 }
},
-- Quad
passion.graphics.newQuad(image, 0,0, 32,32),
-- QuadTree
quadTree,
-- Other stuff
{ baseThrust=0.01, baseStrafeThrust=0.01, baseRotation=0.5 }
)
end
|
MaskMaterialModule = MaskMaterialModule or class(ItemModuleBase)
MaskMaterialModule.type_name = "MaskMaterial"
function MaskMaterialModule:init(...)
self.clean_table = table.add(clone(self.clean_table), {{param = "pcs", action = "no_number_indexes"}})
return MaskMaterialModule.super.init(self, ...)
end
function MaskMaterialModule:RegisterHook()
self._config.default_amount = self._config.default_amount and tonumber(self._config.default_amount) or 1
local id = self._config.id
Hooks:PostHook(BlackMarketTweakData, "_init_materials", id .. "AddMaskMaterialData", function(bm_self)
if bm_self.materials[id] then
self:Err("Mask Material with id '%s' already exists!", id)
return
end
local data = table.merge({
name_id = "material_" .. id .. "_title",
dlc = self.defaults.dlc or "mods",
value = 0,
texture = "units/mods/matcaps/"..id.."_df",
texture_bundle_folder = self._config.ver == 2 and "mods" or nil,
global_value = self.defaults.global_value,
mod_path = self._mod.ModPath,
custom = true
}, self._config.item or self._config)
bm_self.materials[id] = data
if data.dlc then
TweakDataHelper:ModifyTweak({{
type_items = "materials",
item_entry = id,
amount = self._config.default_amount,
global_value = data.global_value
}}, "dlc", data.dlc, "content", "loot_drops")
end
end)
end
BeardLib:RegisterModule(MaskMaterialModule.type_name, MaskMaterialModule) |
-- SPDX-License-Identifier: MIT
local version = '1.1.7'
hexchat.register(
'Unhighlight Channels',
version,
'Allows you to convert highlights to regular text events for each channel'
)
----------------------------------------------------
-- Utility functions and variables
----------------------------------------------------
-- Fix for lua 5.2
if unpack == nil then
unpack = table.unpack
end
-- Delimiter variables. Changing preferences delimiter will invalidate preferences
local spaceDelimiter = '|||SPACE|||'
local preferencesDelimiter = '||||||'
-- Prefix for channel keys in preferences
local preferencesPrefix = 'unhighlightChannels_'
-- Converts table to human readable format
local function dump(o)
if type(o) == 'table' then
local s = '{ '
for k, v in pairs(o) do
if type(k) ~= 'number' then
k = '"' .. k .. '"'
end
s = s .. '[' .. k .. '] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end
-- Returns an array-like table from a string s, splitting the string using delimiter
local function split(s, delimiter)
local result = {}
for match in (s .. delimiter):gmatch('(.-)' .. delimiter) do
table.insert(result, match)
end
return result
end
local function trim(s)
return (s:gsub('^%s*(.-)%s*$', '%1'))
end
----------------------------------------------------
-- Plugin preferences
----------------------------------------------------
-- For future proofing in case a reset is ever needed
hexchat.pluginprefs['version'] = 'v' .. version
-- Get pluginprefs value based on given network and channel strings
local function get_channel_preference(channel, network)
local pref =
hexchat.pluginprefs[preferencesPrefix .. network .. preferencesDelimiter .. channel]
if pref then
return pref
end
return ''
end
-- Returns true if channel is set to convert highlights, false otherwise
local function isSetToConvert(channel, network)
if get_channel_preference(channel, network) == 'convert' then
return true
else
return false
end
end
-- Set pluginprefs value based on given network and channel strings to given value string
local function set_channel_preference(channel, network, value)
hexchat.pluginprefs[preferencesPrefix .. network .. preferencesDelimiter .. channel]
= value
end
-- Convert pluginprefs key to table with channel and network keys
local function convert_preference_to_table(setting)
local settingsArray = split(setting, preferencesDelimiter)
local chanNetTable = {
network = settingsArray[1]:sub(string.len(preferencesPrefix) + 1),
channel = settingsArray[2],
}
return chanNetTable
end
-- Iterates through channel preferences and passes their names and values to given function
local function iterate_channel_prefs_over_lambda(lambda)
for name, value in pairs(hexchat.pluginprefs) do
if name:sub(0, string.len(preferencesPrefix)) == preferencesPrefix then
lambda(name, value)
end
end
end
-- Resets all plugin preferences
local function reset_plugin_prefs()
for a, b in pairs(hexchat.pluginprefs) do
hexchat.pluginprefs[a] = nil
end
end
----------------------------------------------------
-- Menu manipulation
----------------------------------------------------
-- Add 'Currently Unhighlighted Channels' listing menu item of given channel.
-- Each menu item will call the hexchat command unconvertHighlights if selected
-- Network and channel will be passed to unconvertHighlights with spaces
-- replaced with spaceDelimiter
local function add_unhighlighted_channel_menu(channel, network)
hexchat.command(
'menu add "Settings/Unhighlighted Channels/Currently Unhighlighted Channels/' .. network .. '"'
)
hexchat.command(
'menu -t1 add "Settings/Unhighlighted Channels/Currently Unhighlighted Channels/' .. network .. '/' .. channel .. '" "" "stopUnhighlightChannel ' .. channel:gsub(
' ',
spaceDelimiter
) .. ' ' .. network:gsub(' ', spaceDelimiter) .. '"'
)
end
-- Remove menu item of given channel. Removes network menu if no other channels being converted in network
local function remove_unhighlighted_channel_menu(channel, network)
local networkShouldBeRemoved = true
local iterateOver = function(name)
local chanNetTable = convert_preference_to_table(name)
if chanNetTable['network'] == network then
networkShouldBeRemoved = false
end
end
iterate_channel_prefs_over_lambda(iterateOver)
if networkShouldBeRemoved == true then
hexchat.command(
'menu del "Settings/Unhighlighted Channels/Currently Unhighlighted Channels/' .. network .. '"'
)
else
hexchat.command(
'menu del "Settings/Unhighlighted Channels/Currently Unhighlighted Channels/' .. network .. '/' .. channel .. '"'
)
end
end
-- Generated menu of unhighlighted channels from pluginprefs
local function generate_unhighlighted_menu()
local iterateOver = function(name)
local chanNetTable = convert_preference_to_table(name)
add_unhighlighted_channel_menu(
chanNetTable['channel'],
chanNetTable['network']
)
end
iterate_channel_prefs_over_lambda(iterateOver)
end
----------------------------------------------------
-- Menu loading and unloading
----------------------------------------------------
-- Loads all the menus
-- Hitting 'Unhighlight Current Channel' will call convertHighlights command
local function load_menus()
hexchat.command('menu add "Settings/Unhighlighted Channels"')
hexchat.command(
'menu add "Settings/Unhighlighted Channels/Unhighlight Current Channel" "unhighlightChannel"'
)
hexchat.command(
'menu add "Settings/Unhighlighted Channels/Currently Unhighlighted Channels"'
)
generate_unhighlighted_menu()
end
-- Unload handler
local function unload_menus()
hexchat.command('menu del "Settings/Unhighlighted Channels"')
end
----------------------------------------------------
-- Text event handlers
----------------------------------------------------
-- Will check if channel is to be unhighlighted, then emits print and eats everything else
-- (event should be non-highlight version of notification)
local function check_notifications(args, attrs, event)
local channel = hexchat.get_info('channel')
local network = hexchat.get_info('network')
if isSetToConvert(channel, network) then
hexchat.emit_print_attrs(attrs, event, unpack(args))
return hexchat.EAT_ALL
end
end
----------------------------------------------------
-- Command callbacks
----------------------------------------------------
-- Uses default context unless arguments supplied.
-- Converts arguments if they're coming from menu
local function callback_handler(word)
local returnArray = {
channel = hexchat.get_info('channel'),
network = hexchat.get_info('network'),
}
if word[2] then
returnArray['channel'] = trim(word[2]:gsub(spaceDelimiter, ' '))
end
if word[3] then
returnArray['network'] = trim(word[3]:gsub(spaceDelimiter, ' '))
end
return returnArray
end
-- Will set channel to convert highlights to text events
local function convert_highlights_cb(word)
local infoArray = callback_handler(word)
set_channel_preference(
infoArray['channel'],
infoArray['network'],
'convert'
)
add_unhighlighted_channel_menu(infoArray['channel'], infoArray['network'])
end
-- Will set channel to stop converting highlights to text events
local function stop_converting_highlights_cb(word)
local infoArray = callback_handler(word)
set_channel_preference(infoArray['channel'], infoArray['network'], nil)
remove_unhighlighted_channel_menu(
infoArray['channel'],
infoArray['network']
)
end
-- Will print out if a channel is converting highlights or not
local function check_highlights_cb(word)
local infoArray = callback_handler(word)
if isSetToConvert(infoArray['channel'], infoArray['network']) then
print(
'Channel ',
infoArray['channel'],
' of network ',
infoArray['network'],
' is converting highlights to regular text events.'
)
else
print(
'Channel ',
infoArray['channel'],
' of network ',
infoArray['network'],
' is not converting highlights.'
)
end
end
-- Resets pluginprefs
local function reset_plugin_prefs_cb()
reset_plugin_prefs()
unload_menus()
load_menus()
print('Unhighlight Channels: Reset complete')
end
-- Prints out hexchat.pluginprefs in human readable format
local function debug_plugin_prefs_cb()
print(dump(hexchat.pluginprefs))
end
----------------------------------------------------
-- Command hooks
----------------------------------------------------
hexchat.hook_command(
'unhighlightChannel',
convert_highlights_cb,
'Usage: unhighlightChannel [channel] [network]\n\tStarts converting highlights for channel to non-highlighted text events. Will use current context for any missing arguments.'
)
hexchat.hook_command(
'stopUnhighlightChannel',
stop_converting_highlights_cb,
'Usage: stopUnhighlightChannel [channel] [network]\n\tStops converting highlights for channel. Will use current context for any missing arguments.'
)
hexchat.hook_command(
'checkHighlightChannel',
check_highlights_cb,
'Usage: checkHighlightChannel [channel] [network]\n\tChecks if highlights are converted for this channel. Will use current context for any missing arguments.'
)
hexchat.hook_command(
'resetUnhighlightChannels',
reset_plugin_prefs_cb,
'Usage: resetUnhighlightChannels\n\tWill reset the plugin preferences and remove all channels from having their highlights converted. '
)
hexchat.hook_command(
'debugUnhighlightChannels',
debug_plugin_prefs_cb,
'Usage: debugUnhighlightChannels\n\tWill print out plugin preferences.'
)
----------------------------------------------------
-- Text event hooks
----------------------------------------------------
hexchat.hook_print_attrs(
'Channel Msg Hilight',
function(args, attrs)
return check_notifications(args, attrs, 'Channel Message')
end,
hexchat.PRI_HIGH
)
hexchat.hook_print_attrs(
'Channel Action Hilight',
function(args, attrs)
return check_notifications(args, attrs, 'Channel Action')
end,
hexchat.PRI_HIGH
)
----------------------------------------------------
-- Init
----------------------------------------------------
hexchat.hook_unload(unload_menus)
load_menus()
|
local torch = require "torch"
-- Lua 5.2 compatibility
local unpack = unpack or table.unpack
local HDF5DataSet = torch.class("hdf5.HDF5DataSet")
--[[ Get the sizes and max sizes of an HDF5 dataspace, returning them in Lua tables ]]
local function getDataspaceSize(nDims, spaceID)
local size_t = hdf5.ffi.typeof("hsize_t[" .. nDims .. "]")
local dims = size_t()
local maxDims = size_t()
if hdf5.C.H5Sget_simple_extent_dims(spaceID, dims, maxDims) ~= nDims then
error("Failed getting dataspace size")
end
local size = {}
local maxSize = {}
for k = 1, nDims do
size[k] = tonumber(dims[k-1])
maxSize[k] = tonumber(maxDims[k-1])
end
return size, maxSize
end
local function longStorageToHSize(storage, n)
local out = hdf5.ffi.new("hsize_t[" .. n .. "]")
for k = 1, n do
out[k-1] = storage[k]
end
return out
end
--[[ Create an HDF5 dataspace corresponding to a given tensor ]]
local function createTensorDataspace(tensor)
local n = tensor:nDimension()
local dataspaceID = hdf5.C.H5Screate_simple(
n,
longStorageToHSize(tensor:size(), n),
longStorageToHSize(tensor:size(), n)
)
return dataspaceID
end
function HDF5DataSet:__init(parent, datasetID, dataspaceID)
assert(parent)
assert(datasetID)
self._parent = parent
self._datasetID = datasetID
self._dataspaceID = dataspaceID or hdf5.C.H5Dget_space(self._datasetID)
hdf5._logger.debug("Initialising " .. tostring(self))
end
function HDF5DataSet:_refresh_dataspace()
local status = hdf5.C.H5Sclose(self._dataspaceID)
assert(status >= 0, "error refreshing dataspace")
self._dataspaceID = hdf5.C.H5Dget_space(self._datasetID)
return self._dataspaceID
end
function HDF5DataSet:__tostring()
return "[HDF5DataSet " .. hdf5._describeObject(self._datasetID) .. "]"
end
function HDF5DataSet:all()
-- Create a new tensor of the correct type and size
local nDims = hdf5.C.H5Sget_simple_extent_ndims(self._dataspaceID)
local size = getDataspaceSize(nDims, self._dataspaceID)
local factory, nativeType = self:getTensorFactory()
local tensor = factory():resize(unpack(size))
-- Read data into the tensor
local dataPtr = tensor:data()
local status = hdf5.C.H5Dread(self._datasetID, nativeType, hdf5.H5S_ALL, hdf5.H5S_ALL, hdf5.H5P_DEFAULT, dataPtr)
if status < 0 then
error("HDF5DataSet:all() - failed reading data from " .. tostring(self))
end
hdf5.C.H5Tclose(nativeType)
return tensor
end
function HDF5DataSet:getTensorFactory()
local typeID = hdf5.C.H5Dget_type(self._datasetID)
local nativeType = hdf5.C.H5Tget_native_type(typeID, hdf5.C.H5T_DIR_ASCEND)
local torchType = hdf5._getTorchType(typeID)
hdf5.C.H5Tclose(typeID)
if not torchType then
error("Could not find torch type for native type " .. tostring(nativeType))
end
if not nativeType then
error("Cannot find hdf5 native type for " .. torchType)
end
if not hdf5.C.H5Sis_simple(self._dataspaceID) then
error("Error: complex dataspaces are not supported!")
end
local factory = torch.factory(torchType)
if not factory then
error("No torch factory for type " .. torchType)
end
return factory, nativeType
end
local function rangesToOffsetAndCount(ranges)
local offset = hdf5.ffi.new("hsize_t[" .. #ranges+1 .. "]")
local count = hdf5.ffi.new("hsize_t[" .. #ranges+1 .. "]")
for k, range in ipairs(ranges) do
if type(range) ~= 'table' then
range = { range, range }
end
offset[k-1] = range[1] - 1
count[k-1] = range[2] - range[1] + 1
end
return offset, count
end
local function hsizeToLongStorage(hsize, n)
local out = torch.LongStorage(n)
for k = 1, n do
out[k] = tonumber(hsize[k-1])
end
return out
end
function HDF5DataSet:partial(...)
local ranges = { ... }
local nDims = hdf5.C.H5Sget_simple_extent_ndims(self._dataspaceID)
if #ranges ~= nDims then
error("HDF5DataSet:partial() - dimension mismatch. Expected " .. nDims .. " but " .. #ranges .. " were given.")
end
-- TODO dedup
local null = hdf5.ffi.new("hsize_t *")
local offset, count = rangesToOffsetAndCount(ranges)
-- Create a new tensor of the correct type and size
local factory, nativeType = self:getTensorFactory()
local tensor = factory():resize(hsizeToLongStorage(count, #ranges))
local stride = null
-- TODO clone space first?
local status = hdf5.C.H5Sselect_hyperslab(self._dataspaceID, hdf5.C.H5S_SELECT_SET, offset, stride, count, null)
if status < 0 then
error("Cannot select hyperslab " .. tostring(...) .. " from " .. tostring(self))
end
hdf5._logger.debug("HDF5DataSet:partial() - selected "
.. tostring(hdf5.C.H5Sget_select_npoints(self._dataspaceID)) .. " points"
)
local tensorDataspace = createTensorDataspace(tensor)
-- Read data into the tensor
local dataPtr = tensor:data()
status = hdf5.C.H5Dread(self._datasetID, nativeType, tensorDataspace, self._dataspaceID, hdf5.H5P_DEFAULT, dataPtr)
-- delete tensor dataspace
local dataspace_status = hdf5.C.H5Sclose(tensorDataspace)
assert(status >=0, "HDF5DataSet:partial() - failed reading data from " .. tostring(self))
assert(dataspace_status >= 0, "HDF5DataSet:partial() - error closing tensor dataspace for " .. tostring(self))
hdf5.C.H5Tclose(nativeType)
return tensor
end
function HDF5DataSet:close()
hdf5._logger.debug("Closing " .. tostring(self))
local status = hdf5.C.H5Dclose(self._datasetID)
if status < 0 then
error("Failed closing dataset for " .. tostring(self))
end
status = hdf5.C.H5Sclose(self._dataspaceID)
if status < 0 then
error("Failed closing dataspace for " .. tostring(self))
end
end
function HDF5DataSet:dataspaceSize()
local nDims = hdf5.C.H5Sget_simple_extent_ndims(self._dataspaceID)
local size = getDataspaceSize(nDims, self._dataspaceID)
return size
end
|
require('constants')
require('quest')
-- Bagra will use her black magic to create an unholy dagger from the three
-- relics. This dagger can be given to Amaurosis to split the universe in
-- two and cause its destruction.
local function bagra_shrine_precond_fn()
return not (is_quest_completed("blacksmith_shrine"))
end
local function bagra_shrine_start_fn()
add_message_with_pause("BAGRA_SHRINE_QUEST_START_SID")
add_message_with_pause("BAGRA_SHRINE_QUEST_START2_SID")
add_message_with_pause("BAGRA_SHRINE_QUEST_START3_SID")
clear_and_add_message("BAGRA_SHRINE_QUEST_START4_SID")
end
local function bagra_shrine_completion_condition_fn()
return (player_has_item("heart_heaven") == true and player_has_item("heart_world") == true and player_has_item("heart_world_beyond") == true)
end
local function bagra_shrine_completion_fn()
add_message_with_pause("BAGRA_SHRINE_QUEST_COMPLETE_SID")
add_message_with_pause("BAGRA_SHRINE_QUEST_COMPLETE2_SID")
add_message_with_pause("BAGRA_SHRINE_QUEST_COMPLETE3_SID")
clear_and_add_message("BAGRA_SHRINE_QUEST_COMPLETE4_SID")
add_object_to_player_tile("hearts_needle")
remove_object_from_player("heart_heaven")
remove_object_from_player("heart_world")
remove_object_from_player("heart_world_beyond")
remove_active_quest("blacksmith_shrine")
-- Bagra wants to give the knife to Amaurosis herself.
set_hostility("bagra", PLAYER_ID)
return true
end
shrine_quest = Quest:new("bagra_shrine",
"BAGRA_SHRINE_QUEST_TITLE_SID",
"BAGRA_DESCRIPTION_SID",
"BAGRA_SHRINE_DESCRIPTION_SID",
"BAGRA_SHRINE_QUEST_COMPLETE_SID",
"BAGRA_SHRINE_QUEST_REMINDER_SID",
bagra_shrine_precond_fn,
bagra_shrine_start_fn,
bagra_shrine_completion_condition_fn,
bagra_shrine_completion_fn)
if shrine_quest:execute() == false then
add_message("BAGRA_SPEECH_TEXT_SID")
end
|
-- A "condition machine" scheduler.
--
-- Not quite sure yet if this is meaningful, but here is the idea: On
-- a uC, it is very convenient to work with round robin polling tasks.
-- E.g. instead of using an explicit scheduler, resume each task and
-- let it inspect its environment and decide if it is ready to
-- continue.
--
-- What I want to do is to invert this. How can these conditions be
-- made explicit, e.g. converted to some kind of eventing mechanism
-- like channels or mailboxes, without getting bogged down in details.
-- I'm clearly not the first one to prefer this approach, as the
-- existence of condition variables indicates.
--
-- The difference between events is that we only care about changes
-- from the perspective of the task. E.g. it can ignore all events
-- that it would otherwise be interested in, and only look for value
-- changes. This difference seems fundamental, and reminds me of FRP.
--
-- https://en.wikipedia.org/wiki/Monitor_(synchronization)#Condition_variables
--
-- I'm currently only interested in cooperative multitasking, so
-- mutual exclusion is implicit. It seems that the only thing that is
-- necessary is to abstract the condition somehow, and create a
-- derivative, e.g. translate its change into an event.
--
-- So how to do that?
|
require "luaScript/ActionsTest/ActionsName"
local ActionIdx = -1
local size = CCDirector:sharedDirector():getWinSize()
local titleLabel = nil
local subtitleLabel = nil
local function BackAction()
ActionIdx = ActionIdx - 1
if ActionIdx < 0 then
ActionIdx = ActionIdx + Action_Table.ACTION_LAYER_COUNT
end
return CreateActionTestLayer()
end
local function RestartAction()
return CreateActionTestLayer()
end
local function NextAction()
ActionIdx = ActionIdx + 1
ActionIdx = math.mod(ActionIdx, Action_Table.ACTION_LAYER_COUNT)
return CreateActionTestLayer()
end
local function backCallback(sender)
local scene = CCScene:create()
scene:addChild(BackAction())
scene:addChild(CreateBackMenuItem())
CCDirector:sharedDirector():replaceScene(scene)
end
local function restartCallback(sender)
local scene = CCScene:create()
scene:addChild(RestartAction())
scene:addChild(CreateBackMenuItem())
CCDirector:sharedDirector():replaceScene(scene)
end
local function nextCallback(sender)
local scene = CCScene:create()
scene:addChild(NextAction())
scene:addChild(CreateBackMenuItem())
CCDirector:sharedDirector():replaceScene(scene)
end
local function initWithLayer(layer)
grossini = CCSprite:create(s_pPathGrossini)
tamara = CCSprite:create(s_pPathSister1)
kathia = CCSprite:create(s_pPathSister2)
layer:addChild(grossini, 1)
layer:addChild(tamara, 2)
layer:addChild(kathia, 3)
grossini:setPosition(ccp(size.width / 2, size.height / 3))
tamara:setPosition(ccp(size.width / 2, 2 * size.height / 3))
kathia:setPosition(ccp(size.width / 2, size.height / 2))
-- create title and subtitle
titleLabel = CCLabelTTF:create("ActionsTest", "Arial", 18)
titleLabel:setPosition(size.width/2, size.height - 30)
subtitleLabel = CCLabelTTF:create("", "Thonburi", 22)
subtitleLabel:setPosition(size.width / 2, size.height - 60)
layer:addChild(titleLabel, 1)
layer:addChild(subtitleLabel, 1)
-- add menu
local item1 = CCMenuItemImage:create(s_pPathB1, s_pPathB2)
local item2 = CCMenuItemImage:create(s_pPathR1, s_pPathR2)
local item3 = CCMenuItemImage:create(s_pPathF1, s_pPathF2)
item1:registerScriptTapHandler(backCallback)
item2:registerScriptTapHandler(restartCallback)
item3:registerScriptTapHandler(nextCallback)
item1:setPosition(ccp(size.width / 2 - item2:getContentSize().width * 2, item2:getContentSize().height / 2))
item2:setPosition(ccp(size.width / 2, item2:getContentSize().height / 2))
item3:setPosition(ccp(size.width / 2 + item2:getContentSize().width * 2, item2:getContentSize().height / 2))
local menu = CCMenu:create()
menu:addChild(item1)
menu:addChild(item2)
menu:addChild(item3)
menu:setPosition(ccp(0, 0))
layer:addChild(menu, 1)
end
local function centerSprites(numberOfSprites)
if numberOfSprites == 0 then
tamara:setVisible(false)
kathia:setVisible(false)
grossini:setVisible(false)
elseif numberOfSprites == 1 then
tamara:setVisible(false)
kathia:setVisible(false)
grossini:setPosition(ccp(size.width / 2, size.height / 2))
elseif numberOfSprites == 2 then
kathia:setPosition(ccp(size.width / 3, size.height / 2))
tamara:setPosition(ccp(2 * size.width / 3, size.height / 2))
grossini:setVisible(false)
elseif numberOfSprites == 3 then
grossini:setPosition(ccp(size.width / 2, size.height / 2))
tamara:setPosition(ccp(size.width / 4, size.height / 2))
kathia:setPosition(ccp(3 * size.width / 4, size.height / 2))
end
end
local function alignSpritesLeft(numberOfSprites)
if numberOfSprites == 1 then
tamara:setVisible(false)
kathia:setVisible(false)
grossini:setPosition(ccp(60, size.height / 2))
elseif numberOfSprites == 2 then
kathia:setPosition(ccp(60, size.height / 3))
tamara:setPosition(ccp(60, 2 * size.height / 3))
grossini:setVisible(false)
elseif numberOfSprites == 3 then
grossini:setPosition(ccp(60, size.height / 2))
tamara:setPosition(ccp(60, 2 * size.height / 3))
kathia:setPosition(ccp(60, size.height / 3))
end
end
--------------------------------------
-- ActionManual
--------------------------------------
local function ActionManual()
local layer = CCLayer:create()
initWithLayer(layer)
tamara:setScaleX(2.5)
tamara:setScaleY(-1.0)
tamara:setPosition(ccp(100, 70))
tamara:setOpacity(128)
grossini:setRotation(120)
grossini:setPosition(ccp(size.width / 2, size.height / 2))
grossini:setColor(ccc3(255, 0, 0))
kathia:setPosition(ccp(size.width - 100, size.height / 2))
kathia:setColor(ccc3(0, 0, 255))
subtitleLabel:setString("Manual Transformation")
return layer
end
--------------------------------------
-- ActionMove
--------------------------------------
local function ActionMove()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local actionBy = CCMoveBy:create(2, ccp(80, 80))
local actionByBack = actionBy:reverse()
tamara:runAction(CCMoveTo:create(2, ccp(size.width - 40, size.height - 40)))
grossini:runAction(CCSequence:createWithTwoActions(actionBy, actionByBack))
kathia:runAction(CCMoveTo:create(1, ccp(40, 40)))
subtitleLabel:setString("MoveTo / MoveBy")
return layer
end
--------------------------------------
-- ActionScale
--------------------------------------
local function ActionScale()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local actionTo = CCScaleTo:create(2.0, 0.5)
local actionBy = CCScaleBy:create(2.0, 1.0, 10.0)
local actionBy2 = CCScaleBy:create(2.0, 5.0, 1.0)
grossini:runAction(actionTo)
tamara:runAction(CCSequence:createWithTwoActions(actionBy, actionBy:reverse()))
kathia:runAction(CCSequence:createWithTwoActions(actionBy2, actionBy2:reverse()))
subtitleLabel:setString("ScaleTo / ScaleBy")
return layer
end
--------------------------------------
-- ActionRotate
--------------------------------------
local function ActionRotate()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local actionTo = CCRotateTo:create( 2, 45)
local actionTo2 = CCRotateTo:create( 2, -45)
local actionTo0 = CCRotateTo:create(2 , 0)
tamara:runAction(CCSequence:createWithTwoActions(actionTo, actionTo0))
local actionBy = CCRotateBy:create(2 , 360)
local actionByBack = actionBy:reverse()
grossini:runAction(CCSequence:createWithTwoActions(actionBy, actionByBack))
local action0Retain = CCRotateTo:create(2 , 0)
kathia:runAction(CCSequence:createWithTwoActions(actionTo2, action0Retain))
subtitleLabel:setString("RotateTo / RotateBy")
return layer
end
--------------------------------------
-- ActionSkew
--------------------------------------
local function ActionSkew()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local actionTo = CCSkewTo:create(2, 37.2, -37.2)
local actionToBack = CCSkewTo:create(2, 0, 0)
local actionBy = CCSkewBy:create(2, 0.0, -90.0)
local actionBy2 = CCSkewBy:create(2, 45.0, 45.0)
local actionByBack = actionBy:reverse()
tamara:runAction(CCSequence:createWithTwoActions(actionTo, actionToBack))
grossini:runAction(CCSequence:createWithTwoActions(actionBy, actionByBack))
kathia:runAction(CCSequence:createWithTwoActions(actionBy2, actionBy2:reverse()))
subtitleLabel:setString("SkewTo / SkewBy")
return layer
end
--ActionRotationalSkewVSStandardSkew
local function ActionRotationalSkewVSStandardSkew()
local layer = CCLayer:create()
initWithLayer(layer)
tamara:removeFromParentAndCleanup(true);
grossini:removeFromParentAndCleanup(true);
kathia:removeFromParentAndCleanup(true);
local s = CCDirector:sharedDirector():getWinSize();
local boxSize = CCSizeMake(100.0, 100.0);
local box = CCLayerColor:create(ccc4(255,255,0,255));
box:setAnchorPoint(ccp(0.5,0.5));
box:setContentSize( boxSize );
box:ignoreAnchorPointForPosition(false);
box:setPosition(ccp(s.width/2, s.height - 100 - box:getContentSize().height/2));
layer:addChild(box);
local label = CCLabelTTF:create("Standard cocos2d Skew", "Marker Felt", 16);
label:setPosition(ccp(s.width/2, s.height - 100 + label:getContentSize().height));
layer:addChild(label);
local actionTo = CCSkewBy:create(2, 360, 0);
local actionToBack = CCSkewBy:create(2, -360, 0);
local seq = CCSequence:createWithTwoActions(actionTo, actionToBack)
box:runAction(seq);
box = CCLayerColor:create(ccc4(255,255,0,255));
box:setAnchorPoint(ccp(0.5,0.5));
box:setContentSize(boxSize);
box:ignoreAnchorPointForPosition(false);
box:setPosition(ccp(s.width/2, s.height - 250 - box:getContentSize().height/2));
layer:addChild(box);
label = CCLabelTTF:create("Rotational Skew", "Marker Felt", 16);
label:setPosition(ccp(s.width/2, s.height - 250 + label:getContentSize().height/2));
layer:addChild(label);
local actionTo2 = CCRotateBy:create(2, 360);
local actionToBack2 = CCRotateBy:create(2, -360);
seq = CCSequence:createWithTwoActions(actionTo2, actionToBack2)
box:runAction(seq);
subtitleLabel:setString("Skew Comparison")
return layer;
end
--------------------------------------
-- ActionSkewRotate
--------------------------------------
local function ActionSkewRotate()
local layer = CCLayer:create()
initWithLayer(layer)
tamara:removeFromParentAndCleanup(true)
grossini:removeFromParentAndCleanup(true)
kathia:removeFromParentAndCleanup(true)
local boxSize = CCSizeMake(100.0, 100.0)
local box = CCLayerColor:create(ccc4(255, 255, 0, 255))
box:setAnchorPoint(ccp(0, 0))
box:setPosition(190, 110)
box:setContentSize(boxSize)
local markrside = 10.0
local uL = CCLayerColor:create(ccc4(255, 0, 0, 255))
box:addChild(uL)
uL:setContentSize(CCSizeMake(markrside, markrside))
uL:setPosition(0, boxSize.height - markrside)
uL:setAnchorPoint(ccp(0, 0))
local uR = CCLayerColor:create(ccc4(0, 0, 255, 255))
box:addChild(uR)
uR:setContentSize(CCSizeMake(markrside, markrside))
uR:setPosition(boxSize.width - markrside, boxSize.height - markrside)
uR:setAnchorPoint(ccp(0, 0))
layer:addChild(box)
local actionTo = CCSkewTo:create(2, 0, 2)
local rotateTo = CCRotateTo:create(2, 61.0)
local actionScaleTo = CCScaleTo:create(2, -0.44, 0.47)
local actionScaleToBack = CCScaleTo:create(2, 1.0, 1.0)
local rotateToBack = CCRotateTo:create(2, 0)
local actionToBack = CCSkewTo:create(2, 0, 0)
box:runAction(CCSequence:createWithTwoActions(actionTo, actionToBack))
box:runAction(CCSequence:createWithTwoActions(rotateTo, rotateToBack))
box:runAction(CCSequence:createWithTwoActions(actionScaleTo, actionScaleToBack))
subtitleLabel:setString("Skew + Rotate + Scale")
return layer
end
--------------------------------------
-- ActionJump
--------------------------------------
local function ActionJump()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local actionTo = CCJumpTo:create(2, ccp(300,300), 50, 4)
local actionBy = CCJumpBy:create(2, ccp(300,0), 50, 4)
local actionUp = CCJumpBy:create(2, ccp(0,0), 80, 4)
local actionByBack = actionBy:reverse()
tamara:runAction(actionTo)
grossini:runAction(CCSequence:createWithTwoActions(actionBy, actionByBack))
kathia:runAction(CCRepeatForever:create(actionUp))
subtitleLabel:setString("JumpTo / JumpBy")
return layer
end
--------------------------------------
-- ActionCardinalSpline
--------------------------------------
local function drawCardinalSpline(array)
kmGLPushMatrix()
kmGLTranslatef(50, 50, 0)
ccDrawCardinalSpline(array, 0, 100)
kmGLPopMatrix()
kmGLPushMatrix()
kmGLTranslatef(size.width / 2, 50, 0)
ccDrawCardinalSpline(array, 1, 100)
kmGLPopMatrix()
end
local function ActionCardinalSpline()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
local array = CCPointArray:create(20)
array:addControlPoint(ccp(0, 0))
array:addControlPoint(ccp(size.width / 2 - 30, 0))
array:addControlPoint(ccp(size.width / 2 - 30, size.height - 80))
array:addControlPoint(ccp(0, size.height - 80))
array:addControlPoint(ccp(0, 0))
local action = CCCardinalSplineBy:create(3, array, 0)
local reverse = action:reverse()
local seq = CCSequence:createWithTwoActions(action, reverse)
tamara:setPosition(ccp(50, 50))
tamara:runAction(seq)
local action2 = CCCardinalSplineBy:create(3, array, 1)
local reverse2 = action2:reverse()
local seq2 = CCSequence:createWithTwoActions(action2, reverse2)
kathia:setPosition(ccp(size.width / 2, 50))
kathia:runAction(seq2)
drawCardinalSpline(array)
titleLabel:setString("CardinalSplineBy / CardinalSplineAt")
subtitleLabel:setString("Cardinal Spline paths.\nTesting different tensions for one array")
return layer
end
--------------------------------------
-- ActionCatmullRom
--------------------------------------
local function drawCatmullRom(array1, array2)
kmGLPushMatrix()
kmGLTranslatef(50, 50, 0)
ccDrawCatmullRom(array1, 50)
kmGLPopMatrix()
ccDrawCatmullRom(array2,50)
end
local function ActionCatmullRom()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
tamara:setPosition(ccp(50, 50))
local array = CCPointArray:create(20)
array:addControlPoint(ccp(0, 0))
array:addControlPoint(ccp(80, 80))
array:addControlPoint(ccp(size.width - 80, 80))
array:addControlPoint(ccp(size.width - 80, size.height - 80))
array:addControlPoint(ccp(80, size.height - 80))
array:addControlPoint(ccp(80, 80))
array:addControlPoint(ccp(size.width / 2, size.height / 2))
local action = CCCatmullRomBy:create(3, array)
local reverse = action:reverse()
local seq = CCSequence:createWithTwoActions(action, reverse)
tamara:runAction(seq)
local array2 = CCPointArray:create(20)
array2:addControlPoint(ccp(size.width / 2, 30))
array2:addControlPoint(ccp(size.width -80, 30))
array2:addControlPoint(ccp(size.width - 80, size.height - 80))
array2:addControlPoint(ccp(size.width / 2, size.height - 80))
array2:addControlPoint(ccp(size.width / 2, 30))
local action2 = CCCatmullRomTo:create(3, array2)
local reverse2 = action2:reverse()
local seq2 = CCSequence:createWithTwoActions(action2, reverse2)
kathia:runAction(seq2)
drawCatmullRom(array, array2)
titleLabel:setString("CatmullRomBy / CatmullRomTo")
subtitleLabel:setString("Catmull Rom spline paths. Testing reverse too")
return layer
end
--------------------------------------
-- ActionBezier
--------------------------------------
local function ActionBezier()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
-- sprite 1
local bezier = ccBezierConfig()
bezier.controlPoint_1 = ccp(0, size.height / 2)
bezier.controlPoint_2 = ccp(300, - size.height / 2)
bezier.endPosition = ccp(300, 100)
local bezierForward = CCBezierBy:create(3, bezier)
local bezierBack = bezierForward:reverse()
local rep = CCRepeatForever:create(CCSequence:createWithTwoActions(bezierForward, bezierBack))
-- sprite 2
tamara:setPosition(ccp(80,160))
local bezier2 = ccBezierConfig()
bezier2.controlPoint_1 = ccp(100, size.height / 2)
bezier2.controlPoint_2 = ccp(200, - size.height / 2)
bezier2.endPosition = ccp(240, 160)
local bezierTo1 = CCBezierTo:create(2, bezier2)
-- sprite 3
kathia:setPosition(ccp(400,160))
local bezierTo2 = CCBezierTo:create(2, bezier2)
grossini:runAction(rep)
tamara:runAction(bezierTo1)
kathia:runAction(bezierTo2)
subtitleLabel:setString("BezierTo / BezierBy")
return layer
end
--------------------------------------
-- ActionBlink
--------------------------------------
local function ActionBlink()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
local action1 = CCBlink:create(2, 10)
local action2 = CCBlink:create(2, 5)
tamara:runAction(action1)
kathia:runAction(action2)
subtitleLabel:setString("Blink")
return layer
end
--------------------------------------
-- ActionFade
--------------------------------------
local function ActionFade()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
tamara:setOpacity(0)
local action1 = CCFadeIn:create(1)
local action1Back = action1:reverse()
local action2 = CCFadeOut:create(1)
local action2Back = action2:reverse()
tamara:runAction(CCSequence:createWithTwoActions( action1, action1Back))
kathia:runAction(CCSequence:createWithTwoActions( action2, action2Back))
subtitleLabel:setString("FadeIn / FadeOut")
return layer
end
--------------------------------------
-- ActionTint
--------------------------------------
local function ActionTint()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
local action1 = CCTintTo:create(2, 255, 0, 255)
local action2 = CCTintBy:create(2, -127, -255, -127)
local action2Back = action2:reverse()
tamara:runAction(action1)
kathia:runAction(CCSequence:createWithTwoActions(action2, action2Back))
subtitleLabel:setString("TintTo / TintBy")
return layer
end
--------------------------------------
-- ActionAnimate
--------------------------------------
local function ActionAnimate()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local animation = CCAnimation:create()
local number, name
for i = 1, 14 do
if i < 10 then
number = "0"..i
else
number = i
end
name = "Images/grossini_dance_"..number..".png"
animation:addSpriteFrameWithFileName(name)
end
-- should last 2.8 seconds. And there are 14 frames.
animation:setDelayPerUnit(2.8 / 14.0)
animation:setRestoreOriginalFrame(true)
local action = CCAnimate:create(animation)
grossini:runAction(CCSequence:createWithTwoActions(action, action:reverse()))
local cache = CCAnimationCache:sharedAnimationCache()
cache:addAnimationsWithFile("animations/animations-2.plist")
local animation2 = cache:animationByName("dance_1")
local action2 = CCAnimate:create(animation2)
tamara:runAction(CCSequence:createWithTwoActions(action2, action2:reverse()))
local animation3 = animation2:copy():autorelease()
-- problem
tolua.cast(animation3,"CCAnimation"):setLoops(4)
local action3 = CCAnimate:create(animation3)
kathia:runAction(action3)
titleLabel:setString("Animation")
subtitleLabel:setString("Center: Manual animation. Border: using file format animation")
return layer
end
--------------------------------------
-- ActionSequence
--------------------------------------
local function ActionSequence()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(1)
local action = CCSequence:createWithTwoActions(
CCMoveBy:create(2, ccp(240,0)),
CCRotateBy:create(2, 540))
grossini:runAction(action)
subtitleLabel:setString("Sequence: Move + Rotate")
return layer
end
--------------------------------------
-- ActionSequence2
--------------------------------------
local actionSequenceLayer = nil
local function ActionSequenceCallback1()
local label = CCLabelTTF:create("callback 1 called", "Marker Felt", 16)
label:setPosition(size.width / 4, size.height / 2)
actionSequenceLayer:addChild(label)
end
local function ActionSequenceCallback2(sender)
local label = CCLabelTTF:create("callback 2 called", "Marker Felt", 16)
label:setPosition(ccp(size.width / 4 * 2, size.height / 2))
actionSequenceLayer:addChild(label)
end
local function ActionSequenceCallback3(sender)
local label = CCLabelTTF:create("callback 3 called", "Marker Felt", 16)
label:setPosition(ccp(size.width / 4 * 3, size.height / 2))
actionSequenceLayer:addChild(label)
end
local function ActionSequence2()
actionSequenceLayer = CCLayer:create()
initWithLayer(actionSequenceLayer)
alignSpritesLeft(1)
grossini:setVisible(false)
local array = CCArray:create()
array:addObject(CCPlace:create(ccp(200,200)))
array:addObject(CCShow:create())
array:addObject(CCMoveBy:create(1, ccp(100,0)))
array:addObject(CCCallFunc:create(ActionSequenceCallback1))
array:addObject(CCCallFuncN:create(ActionSequenceCallback2))
array:addObject(CCCallFuncN:create(ActionSequenceCallback3))
local action = CCSequence:create(array)
grossini:runAction(action)
subtitleLabel:setString("Sequence of InstantActions")
return actionSequenceLayer
end
--------------------------------------
-- ActionSpawn
--------------------------------------
local function ActionSpawn()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(1)
local action = CCSpawn:createWithTwoActions(
CCJumpBy:create(2, ccp(300,0), 50, 4),
CCRotateBy:create( 2, 720))
grossini:runAction(action)
subtitleLabel:setString("Spawn: Jump + Rotate")
return layer
end
--------------------------------------
-- ActionReverse
--------------------------------------
local function ActionReverse()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(1)
local jump = CCJumpBy:create(2, ccp(300,0), 50, 4)
local action = CCSequence:createWithTwoActions(jump, jump:reverse())
grossini:runAction(action)
subtitleLabel:setString("Reverse an action")
return layer
end
--------------------------------------
-- ActionDelaytime
--------------------------------------
local function ActionDelaytime()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(1)
local move = CCMoveBy:create(1, ccp(150,0))
local array = CCArray:create()
array:addObject(move)
array:addObject(CCDelayTime:create(2))
array:addObject(move)
local action = CCSequence:create(array)
grossini:runAction(action)
subtitleLabel:setString("DelayTime: m + delay + m")
return layer
end
--------------------------------------
-- ActionRepeat
--------------------------------------
local function ActionRepeat()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(2)
local a1 = CCMoveBy:create(1, ccp(150,0))
local action1 = CCRepeat:create(CCSequence:createWithTwoActions(CCPlace:create(ccp(60,60)), a1), 3)
local a2 = CCMoveBy:create(1, ccp(150,0))
local action2 = CCRepeatForever:create(CCSequence:createWithTwoActions(a2, a1:reverse()))
kathia:runAction(action1)
tamara:runAction(action2)
subtitleLabel:setString("Repeat / RepeatForever actions")
return layer
end
--------------------------------------
-- ActionRepeatForever
--------------------------------------
local function repeatForever(sender)
local repeatAction = CCRepeatForever:create(CCRotateBy:create(1.0, 360))
sender:runAction(repeatAction)
end
local function ActionRepeatForever()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(1)
local action = CCSequence:createWithTwoActions(
CCDelayTime:create(1),
CCCallFuncN:create(repeatForever))
grossini:runAction(action)
subtitleLabel:setString("CallFuncN + RepeatForever")
return layer
end
--------------------------------------
-- ActionRotateToRepeat
--------------------------------------
local function ActionRotateToRepeat()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
local act1 = CCRotateTo:create(1, 90)
local act2 = CCRotateTo:create(1, 0)
local seq = CCSequence:createWithTwoActions(act1, act2)
local rep1 = CCRepeatForever:create(seq)
local rep2 = CCRepeat:create(tolua.cast(seq:copy():autorelease(), "CCSequence"), 10)
tamara:runAction(rep1)
kathia:runAction(rep2)
subtitleLabel:setString("Repeat/RepeatForever + RotateTo")
return layer
end
--------------------------------------
-- ActionRotateJerk
--------------------------------------
local function ActionRotateJerk()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
local seq = CCSequence:createWithTwoActions(
CCRotateTo:create(0.5, -20),
CCRotateTo:create(0.5, 20))
local rep1 = CCRepeat:create(seq, 10)
local seq2 = CCSequence:createWithTwoActions(
CCRotateTo:create(0.5, -20),
CCRotateTo:create(0.5, 20))
local rep2 = CCRepeatForever:create(seq2)
tamara:runAction(rep1)
kathia:runAction(rep2)
subtitleLabel:setString("RepeatForever / Repeat + Rotate")
return layer
end
--------------------------------------
-- ActionCallFunc
--------------------------------------
local callFuncLayer = nil
local function CallFucnCallback1()
local label = CCLabelTTF:create("callback 1 called", "Marker Felt", 16)
label:setPosition(size.width / 4, size.height / 2)
callFuncLayer:addChild(label)
end
local function CallFucnCallback2(sender)
local label = CCLabelTTF:create("callback 2 called", "Marker Felt", 16)
label:setPosition(size.width / 4 * 2, size.height / 2)
callFuncLayer:addChild(label)
end
local function CallFucnCallback3(sender)
local label = CCLabelTTF:create("callback 3 called", "Marker Felt", 16)
label:setPosition(size.width / 4 * 3, size.height / 2)
callFuncLayer:addChild(label)
end
local function ActionCallFunc()
callFuncLayer = CCLayer:create()
initWithLayer(callFuncLayer)
centerSprites(3)
local action = CCSequence:createWithTwoActions(
CCMoveBy:create(2, ccp(200,0)),
CCCallFunc:create(CallFucnCallback1))
local array = CCArray:create()
array:addObject(CCScaleBy:create(2, 2))
array:addObject(CCFadeOut:create(2))
array:addObject(CCCallFuncN:create(CallFucnCallback2))
local action2 = CCSequence:create(array)
local array2 = CCArray:create()
array2:addObject(CCRotateBy:create(3 , 360))
array2:addObject(CCFadeOut:create(2))
array2:addObject(CCCallFuncN:create(CallFucnCallback3))
local action3 = CCSequence:create(array2)
grossini:runAction(action)
tamara:runAction(action2)
kathia:runAction(action3)
subtitleLabel:setString("Callbacks: CallFunc and friends")
return callFuncLayer
end
--------------------------------------
-- ActionCallFuncND *
-- problem: the current luaEngine doesn't support
-- passing more than one param to lua script
--------------------------------------
local function ActionCallFuncND()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(1)
titleLabel:setString("CallFuncND + auto remove")
subtitleLabel:setString("CallFuncND + removeFromParentAndCleanup. Grossini dissapears in 2s")
return layer
end
--------------------------------------
-- ActionReverseSequence
--------------------------------------
local function ActionReverseSequence()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(1)
local move1 = CCMoveBy:create(1, ccp(250,0))
local move2 = CCMoveBy:create(1, ccp(0,50))
local array = CCArray:create()
array:addObject(move1)
array:addObject(move2)
array:addObject(move1:reverse())
local seq = CCSequence:create(array)
local action = CCSequence:createWithTwoActions(seq, seq:reverse())
grossini:runAction(action)
subtitleLabel:setString("Reverse a sequence")
return layer
end
--------------------------------------
-- ActionReverseSequence2
--------------------------------------
local function ActionReverseSequence2()
local layer = CCLayer:create()
initWithLayer(layer)
alignSpritesLeft(2)
-- Test:
-- Sequence should work both with IntervalAction and InstantActions
local move1 = CCMoveBy:create(1, ccp(250,0))
local move2 = CCMoveBy:create(1, ccp(0,50))
local tog1 = CCToggleVisibility:create()
local tog2 = CCToggleVisibility:create()
local array = CCArray:createWithCapacity(10)
array:addObject(move1)
array:addObject(tog1)
array:addObject(move2)
array:addObject(tog2)
array:addObject(move1:reverse())
local seq = CCSequence:create(array)
local action = CCRepeat:create(CCSequence:createWithTwoActions(seq, seq:reverse()), 3)
-- Test:
-- Also test that the reverse of Hide is Show, and vice-versa
kathia:runAction(action)
local move_tamara = CCMoveBy:create(1, ccp(100,0))
local move_tamara2 = CCMoveBy:create(1, ccp(50,0))
local hide = CCHide:create()
local array2 = CCArray:createWithCapacity(10)
array2:addObject(move_tamara)
array2:addObject(hide)
array2:addObject(move_tamara2)
local seq_tamara = CCSequence:create(array2)
local seq_back = seq_tamara:reverse()
tamara:runAction(CCSequence:createWithTwoActions(seq_tamara, seq_back))
subtitleLabel:setString("Reverse a sequence2")
return layer
end
--------------------------------------
-- ActionOrbit
--------------------------------------
local function ActionOrbit()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(3)
local orbit1 = CCOrbitCamera:create(2,1, 0, 0, 180, 0, 0)
local action1 = CCSequence:createWithTwoActions(orbit1, orbit1:reverse())
local orbit2 = CCOrbitCamera:create(2,1, 0, 0, 180, -45, 0)
local action2 = CCSequence:createWithTwoActions(orbit2, orbit2:reverse())
local orbit3 = CCOrbitCamera:create(2,1, 0, 0, 180, 90, 0)
local action3 = CCSequence:createWithTwoActions(orbit3, orbit3:reverse())
kathia:runAction(CCRepeatForever:create(action1))
tamara:runAction(CCRepeatForever:create(action2))
grossini:runAction(CCRepeatForever:create(action3))
local move = CCMoveBy:create(3, ccp(100,-100))
local move_back = move:reverse()
local seq = CCSequence:createWithTwoActions(move, move_back)
local rfe = CCRepeatForever:create(seq)
kathia:runAction(rfe)
tamara:runAction(tolua.cast(rfe:copy():autorelease(), "CCActionInterval"))
grossini:runAction(tolua.cast(rfe:copy():autorelease(), "CCActionInterval"))
subtitleLabel:setString("OrbitCamera action")
return layer
end
--------------------------------------
-- ActionFollow
--------------------------------------
local function ActionFollow()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(1)
grossini:setPosition(ccp(-200, size.height / 2))
local move = CCMoveBy:create(2, ccp(size.width * 3, 0))
local move_back = move:reverse()
local seq = CCSequence:createWithTwoActions(move, move_back)
local rep = CCRepeatForever:create(seq)
grossini:runAction(rep)
layer:runAction(CCFollow:create(grossini, CCRectMake(0, 0, size.width * 2 - 100, size.height)))
subtitleLabel:setString("Follow action")
return layer
end
--------------------------------------
-- ActionTargeted
--------------------------------------
local function ActionTargeted()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
local jump1 = CCJumpBy:create(2, ccp(0, 0), 100, 3)
local jump2 = CCJumpBy:create(2, ccp(0, 0), 100, 3)
local rot1 = CCRotateBy:create(1, 360)
local rot2 = CCRotateBy:create(1, 360)
local t1 = CCTargetedAction:create(kathia, jump2)
local t2 = CCTargetedAction:create(kathia, rot2)
local array = CCArray:createWithCapacity(10)
array:addObject(jump1)
array:addObject(t1)
array:addObject(rot1)
array:addObject(t2)
local seq = CCSequence:create(array)
local always = CCRepeatForever:create(seq)
tamara:runAction(always)
titleLabel:setString("ActionTargeted")
subtitleLabel:setString("Action that runs on another target. Useful for sequences")
return layer
end
--------------------------------------
-- PauseResumeActions *
-- problem: schedule feature is constructing
--------------------------------------
local pausedTargets = nil
local PauseResumeActions_pauseEntry = nil
local PauseResumeActions_resumeEntry = nil
local function ActionPause(dt)
cclog("Pausing")
local scheduler = CCDirector:sharedDirector():getScheduler()
scheduler:unscheduleScriptEntry(PauseResumeActions_pauseEntry)
local director = CCDirector:sharedDirector()
pausedTargets = director:getActionManager():pauseAllRunningActions()
pausedTargets:retain()
end
local function ActionResume(dt)
cclog("Resuming")
local scheduler = CCDirector:sharedDirector():getScheduler()
scheduler:unscheduleScriptEntry(PauseResumeActions_resumeEntry)
local director = CCDirector:sharedDirector()
if pausedTargets ~= nil then
-- problem: will crash here. Try fixing me!
director:getActionManager():resumeTargets(pausedTargets)
pausedTargets:release()
end
end
local function PauseResumeActions_onEnterOrExit(tag)
local scheduler = CCDirector:sharedDirector():getScheduler()
if tag == "enter" then
PauseResumeActions_pauseEntry = scheduler:scheduleScriptFunc(ActionPause, 3, false)
PauseResumeActions_resumeEntry = scheduler:scheduleScriptFunc(ActionResume, 5, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(PauseResumeActions_pauseEntry)
scheduler:unscheduleScriptEntry(PauseResumeActions_resumeEntry)
end
end
local function PauseResumeActions()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(2)
tamara:runAction(CCRepeatForever:create(CCRotateBy:create(3, 360)))
kathia:runAction(CCRepeatForever:create(CCRotateBy:create(3, 360)))
layer:registerScriptHandler(PauseResumeActions_onEnterOrExit)
titleLabel:setString("PauseResumeActions")
subtitleLabel:setString("All actions pause at 3s and resume at 5s")
return layer
end
--------------------------------------
-- ActionIssue1305
--------------------------------------
local spriteTmp = nil
local Issue1305_entry = nil
local Issue1305_layer = nil
local function Issue1305_log(sender)
cclog("This message SHALL ONLY appear when the sprite is added to the scene, NOT BEFORE")
end
local function addSprite(dt)
local scheduler = CCDirector:sharedDirector():getScheduler()
scheduler:unscheduleScriptEntry(Issue1305_entry)
spriteTmp:setPosition(ccp(250, 250))
Issue1305_layer:addChild(spriteTmp)
end
local function Issue1305_onEnterOrExit(tag)
local scheduler = CCDirector:sharedDirector():getScheduler()
if tag == "enter" then
Issue1305_entry = scheduler:scheduleScriptFunc(addSprite, 2, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(Issue1305_entry)
end
end
local function ActionIssue1305()
Issue1305_layer = CCLayer:create()
initWithLayer(Issue1305_layer)
centerSprites(0)
spriteTmp = CCSprite:create("Images/grossini.png")
spriteTmp:runAction(CCCallFuncN:create(Issue1305_log))
Issue1305_layer:registerScriptHandler(Issue1305_onEnterOrExit)
titleLabel:setString("Issue 1305")
subtitleLabel:setString("In two seconds you should see a message on the console. NOT BEFORE.")
return Issue1305_layer
end
--------------------------------------
-- ActionIssue1305_2
--------------------------------------
local function Issue1305_2_log1()
cclog("1st block")
end
local function Issue1305_2_log2()
cclog("2nd block")
end
local function Issue1305_2_log3()
cclog("3rd block")
end
local function Issue1305_2_log4()
cclog("4th block")
end
local function ActionIssue1305_2()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(0)
local spr = CCSprite:create("Images/grossini.png")
spr:setPosition(ccp(200,200))
layer:addChild(spr)
local act1 = CCMoveBy:create(2 ,ccp(0, 100))
local act2 = CCCallFunc:create(Issue1305_2_log1)
local act3 = CCMoveBy:create(2, ccp(0, -100))
local act4 = CCCallFunc:create(Issue1305_2_log2)
local act5 = CCMoveBy:create(2, ccp(100, -100))
local act6 = CCCallFunc:create(Issue1305_2_log3)
local act7 = CCMoveBy:create(2, ccp(-100, 0))
local act8 = CCCallFunc:create(Issue1305_2_log4)
local array = CCArray:create()
array:addObject(act1)
array:addObject(act2)
array:addObject(act3)
array:addObject(act4)
array:addObject(act5)
array:addObject(act6)
array:addObject(act7)
array:addObject(act8)
local actF = CCSequence:create(array)
CCDirector:sharedDirector():getActionManager():addAction(actF ,spr, false)
titleLabel:setString("Issue 1305 #2")
subtitleLabel:setString("See console. You should only see one message for each block")
return layer
end
--------------------------------------
-- ActionIssue1288
--------------------------------------
local function ActionIssue1288()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(0)
local spr = CCSprite:create("Images/grossini.png")
spr:setPosition(ccp(100, 100))
layer:addChild(spr)
local act1 = CCMoveBy:create(0.5, ccp(100, 0))
local act2 = act1:reverse()
local act3 = CCSequence:createWithTwoActions(act1, act2)
local act4 = CCRepeat:create(act3, 2)
spr:runAction(act4)
titleLabel:setString("Issue 1288")
subtitleLabel:setString("Sprite should end at the position where it started.")
return layer
end
--------------------------------------
-- ActionIssue1288_2
--------------------------------------
local function ActionIssue1288_2()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(0)
local spr = CCSprite:create("Images/grossini.png")
spr:setPosition(ccp(100, 100))
layer:addChild(spr)
local act1 = CCMoveBy:create(0.5, ccp(100, 0))
spr:runAction(CCRepeat:create(act1, 1))
titleLabel:setString("Issue 1288 #2")
subtitleLabel:setString("Sprite should move 100 pixels, and stay there")
return layer
end
--------------------------------------
-- ActionIssue1327
--------------------------------------
local function logSprRotation(sender)
cclog(""..sender:getRotation())
end
local function ActionIssue1327()
local layer = CCLayer:create()
initWithLayer(layer)
centerSprites(0)
local spr = CCSprite:create("Images/grossini.png")
spr:setPosition(ccp(100, 100))
layer:addChild(spr)
local act1 = CCCallFuncN:create(logSprRotation)
local act2 = CCRotateBy:create(0.25, 45)
local act3 = CCCallFuncN:create(logSprRotation)
local act4 = CCRotateBy:create(0.25, 45)
local act5 = CCCallFuncN:create(logSprRotation)
local act6 = CCRotateBy:create(0.25, 45)
local act7 = CCCallFuncN:create(logSprRotation)
local act8 = CCRotateBy:create(0.25, 45)
local act9 = CCCallFuncN:create(logSprRotation)
local array = CCArray:create()
array:addObject(act1)
array:addObject(act2)
array:addObject(act3)
array:addObject(act4)
array:addObject(act5)
array:addObject(act6)
array:addObject(act7)
array:addObject(act8)
array:addObject(act9)
spr:runAction(CCSequence:create(array))
titleLabel:setString("Issue 1327")
subtitleLabel:setString("See console: You should see: 0, 45, 90, 135, 180")
return layer
end
-------------------------------------
-- Create Action Test
-------------------------------------
function CreateActionTestLayer()
local layer = nil
if ActionIdx == Action_Table.ACTION_MANUAL_LAYER then
layer = ActionManual()
elseif ActionIdx == Action_Table.ACTION_MOVE_LAYER then
layer = ActionMove()
elseif ActionIdx == Action_Table.ACTION_SCALE_LAYER then
layer = ActionScale()
elseif ActionIdx == Action_Table.ACTION_ROTATE_LAYER then
layer = ActionRotate()
elseif ActionIdx == Action_Table.ACTION_SKEW_LAYER then
layer = ActionSkew()
elseif ActionIdx == Action_Table.ACTION_SKEW_STANDER then
layer = ActionRotationalSkewVSStandardSkew()
elseif ActionIdx == Action_Table.ACTION_SKEWROTATE_LAYER then
layer = ActionSkewRotate()
elseif ActionIdx == Action_Table.ACTION_JUMP_LAYER then
layer = ActionJump()
elseif ActionIdx == Action_Table.ACTION_CARDINALSPLINE_LAYER then
layer = ActionCardinalSpline()
elseif ActionIdx == Action_Table.ACTION_CATMULLROM_LAYER then
layer = ActionCatmullRom()
elseif ActionIdx == Action_Table.ACTION_BEZIER_LAYER then
layer = ActionBezier()
elseif ActionIdx == Action_Table.ACTION_BLINK_LAYER then
layer = ActionBlink()
elseif ActionIdx == Action_Table.ACTION_FADE_LAYER then
layer = ActionFade()
elseif ActionIdx == Action_Table.ACTION_TINT_LAYER then
layer = ActionTint()
elseif ActionIdx == Action_Table.ACTION_ANIMATE_LAYER then
layer = ActionAnimate()
elseif ActionIdx == Action_Table.ACTION_SEQUENCE_LAYER then
layer = ActionSequence()
elseif ActionIdx == Action_Table.ACTION_SEQUENCE2_LAYER then
layer = ActionSequence2()
elseif ActionIdx == Action_Table.ACTION_SPAWN_LAYER then
layer = ActionSpawn()
elseif ActionIdx == Action_Table.ACTION_REVERSE then
layer = ActionReverse()
elseif ActionIdx == Action_Table.ACTION_DELAYTIME_LAYER then
layer = ActionDelaytime()
elseif ActionIdx == Action_Table.ACTION_REPEAT_LAYER then
layer = ActionRepeat()
elseif ActionIdx == Action_Table.ACTION_REPEATEFOREVER_LAYER then
layer = ActionRepeatForever()
elseif ActionIdx == Action_Table.ACTION_ROTATETOREPEATE_LAYER then
layer = ActionRotateToRepeat()
elseif ActionIdx == Action_Table.ACTION_ROTATEJERK_LAYER then
layer = ActionRotateJerk()
elseif ActionIdx == Action_Table.ACTION_CALLFUNC_LAYER then
layer = ActionCallFunc()
elseif ActionIdx == Action_Table.ACTION_CALLFUNCND_LAYER then
layer = ActionCallFuncND()
elseif ActionIdx == Action_Table.ACTION_REVERSESEQUENCE_LAYER then
layer = ActionReverseSequence()
elseif ActionIdx == Action_Table.ACTION_REVERSESEQUENCE2_LAYER then
layer = ActionReverseSequence2()
elseif ActionIdx == Action_Table.ACTION_ORBIT_LAYER then
layer = ActionOrbit()
elseif ActionIdx == Action_Table.ACTION_FOLLOW_LAYER then
layer = ActionFollow()
elseif ActionIdx == Action_Table.ACTION_TARGETED_LAYER then
layer = ActionTargeted()
elseif ActionIdx == Action_Table.PAUSERESUMEACTIONS_LAYER then
layer = PauseResumeActions()
elseif ActionIdx == Action_Table.ACTION_ISSUE1305_LAYER then
layer = ActionIssue1305()
elseif ActionIdx == Action_Table.ACTION_ISSUE1305_2_LAYER then
layer = ActionIssue1305_2()
elseif ActionIdx == Action_Table.ACTION_ISSUE1288_LAYER then
layer = ActionIssue1288()
elseif ActionIdx == Action_Table.ACTION_ISSUE1288_2_LAYER then
layer = ActionIssue1288_2()
elseif ActionIdx == Action_Table.ACTION_ISSUE1327_LAYER then
layer = ActionIssue1327()
end
return layer
end
function ActionsTest()
cclog("ActionsTest")
local scene = CCScene:create()
ActionIdx = -1
scene:addChild(NextAction())
scene:addChild(CreateBackMenuItem())
return scene
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.