content
stringlengths
5
1.05M
object_mobile_npc_dressed_corellia_genetech_syndicate_menagerie_bioll = object_mobile_shared_npc_dressed_corellia_genetech_syndicate_menagerie_bioll:new { } ObjectTemplates:addTemplate(object_mobile_npc_dressed_corellia_genetech_syndicate_menagerie_bioll, "object/mobile/npc_dressed_corellia_genetech_syndicate_menagerie_bioll.iff")
-- Inheritance LUA Doc: http://www.lua.org/pil/16.2.html RGE_Item = {} function RGE_Item:New(bagId, slotIndex) obj = {} setmetatable(obj, self) self.__index = self obj:Init(bagId, slotIndex) return obj end function RGE_Item:Init(bagId, slotIndex) self.bag = bagId self.slot = slotIndex self.link = GetItemLink(self.bag, self.slot) self.type = GetItemLinkItemType(self.link) self.name = GetItemLinkName(self.link) self.hasCharges, self.enchantment, self.enchantDescription = GetItemLinkEnchantInfo(self.link) end function RGE_Item:IsValid() return (self.bag > -1 and self.slot > -1 and self.type > -1 and not RGE.IsEmpty(self.link) and not RGE.IsEmpty(self.name)) end function RGE_Item:FormatLink() if (not self.formattedLink) then local linkLength = self.linkLen or self.link:len() local nameLength = self.nameLen or self.name:len() local formattedName = self.formattedName or self:FormatName() local finalLink = "" for i = 1, linkLength-2-nameLength do finalLink = finalLink..self.link:sub(i, i) end finalLink = finalLink..formattedName.."|h" self.formattedLink = finalLink end return self.formattedLink end function RGE_Item:FormatName() if (not self.formattedName) then local length = self.nameLen or self.name:len() local final = "" for i = 1, length do local char = self.name:sub(i, i) if (i == 1 or self.name:sub(i-1, i-1) == " ") then final = final..char:upper() elseif (char == "^") then break else final = final..char end end self.formattedName = final self.formattedNameLen = final:len() end return self.formattedName end function RGE_Item:Write() -- for debugging local str = "" for k, v in pairs(self) do str = str.."["..k.."]="..tostring(v)..",\n" end RGE.Write(str.."IsValid()="..tostring(self:IsValid())) end
local function close_redis(red) if not red then return end local ok, err = red:close() if not ok then ngx.say("close redis error : ", err) end end local redis = require("resty.redis") --创建实例 local red = redis:new() --设置超时(毫秒) red:set_timeout(1000) --建立连接 local ip = "127.0.0.1" local port = 6379 local ok, err = red:connect(ip, port) if not ok then ngx.say("connect to redis error : ", err) return close_redis(red) end --调用API进行处理 ok, err = red:set("msg", "hello world") if not ok then ngx.say("set msg error : ", err) return close_redis(red) end --调用API获取数据 local resp, err = red:get("msg") if not resp then ngx.say("get msg error : ", err) return close_redis(red) end --得到的数据为空处理 if resp == ngx.null then resp = '' --比如默认值 end ngx.say("msg : ", resp) close_redis(red)
-- This file is part of SA MoonLoader package. -- Licensed under the MIT License. -- Copyright (c) 2018, BlastHack Team <blast.hk> -- DEBUG if not getWorkingDirectory then local ffi = require 'ffi' ffi.cdef [[unsigned long GetCurrentDirectoryA(unsigned long nBufferLength, char* lpBuffer);]] function getWorkingDirectory() local buf = ffi.new('char[260]') local written = ffi.C.GetCurrentDirectoryA(ffi.sizeof(buf), buf) if written > 0 then return ffi.string(buf, written) end return '.' end end if not script then script = {this = {filename = 'debug.lua'}} end local workdir = getWorkingDirectory() local config = { PREFIX = workdir .. [[\luarocks]], WIN_TOOLS = workdir .. [[\luarocks\tools]], SYSCONFDIR = workdir .. [[\luarocks]], LUA_DIR = workdir .. [[\luajit]], LUA_INCDIR = workdir .. [[\luajit\inc]], LUA_LIBDIR = workdir .. [[\luajit\lib]], LUA_BINDIR = workdir .. [[\luajit\bin]], LUA_INTERPRETER = [[luajit.exe]], SYSTEM = [[windows]], PROCESSOR = [[x86]], FORCE_CONFIG = true, } local function rewrite_hardcoded_config() local hc = assert(io.open(config.PREFIX .. [[\lua\luarocks\core\hardcoded.lua]], 'w')) hc:write('return {\n') for k, v in pairs(config) do if type(v) == 'string' then hc:write(('\t%s = [[%s]],\n'):format(k, v)) else hc:write(('\t%s = %s,\n'):format(k, v)) end end hc:write('}\n') hc:close() end local function configure() local f = io.open(workdir .. [[\luarocks\path.txt]], 'r') local path if f then path = f:read('*all') f:close() end if workdir ~= path then rewrite_hardcoded_config() f = assert(io.open(workdir .. [[\luarocks\path.txt]], 'w')) f:write(workdir) f:close() end end local luarocks_luapath = config.PREFIX .. [[\lua\?.lua;]] .. config.PREFIX .. [[\lua\?\init.lua]] local function run_luarocks(cmd) local interpreter = config.LUA_BINDIR .. '\\' .. config.LUA_INTERPRETER local luarocks_cmd = ('"%s" "-e package.path=[[%s]]" "%s\\luarocks.lua" --tree=lib %s 2>&1'):format(interpreter, luarocks_luapath, config.PREFIX, cmd) local proc = io.popen(luarocks_cmd) local output = proc:read('*all') local result = proc:close() return result, output end local function parse_package_string(dep) local verpos = dep:find('@[^@]*$') local version, server if verpos then version = dep:sub(verpos + 1) dep = dep:sub(1, verpos - 1) end local srvpos = dep:find(':[^:]*$') if srvpos then server = dep:sub(1, srvpos - 1) dep = dep:sub(srvpos + 1) end local name = dep return name, version, server end local luarocks local function init_luarocks() if luarocks then return luarocks end local luapath = package.path package.path = luarocks_luapath .. ';' .. package.path luarocks = { queries = require('luarocks.queries'), search = require('luarocks.search'), cfg = require('luarocks.core.cfg'), fs = require('luarocks.fs'), } local ok, err = luarocks.cfg.init() if not ok then package.path = luapath return nil, err end luarocks.fs.init() package.path = luapath return luarocks end local function test_installed_package(name, version) local luarocks, err = init_luarocks() if not luarocks then return nil, err end local query = luarocks.queries.new(name:lower(), version, nil, nil, '>=') local rock_name, rock_version = luarocks.search.pick_installed_rock(query) if rock_name then return true end -- 'rock_version' is error message if rock_version:find('cannot find package') then return false end return nil, rock_version end local function install_package(name, version, server) local fetch_from = '' if server then if server:match('[%w]+://') then fetch_from = '--server=' .. server else fetch_from = '--server=http://luarocks.org/manifests/' .. server end end local res, out = run_luarocks(('--timeout=10 %s install %s %s'):format(fetch_from, name, version or '')) if not res then return false, out end return true end local ffi local function msgbox(text, title, style) if not ffi then ffi = require 'ffi' ffi.cdef [[int MessageBoxA(void* hWnd, const char* lpText, const char* lpCaption, unsigned int uType);]] end local hwnd = nil if readMemory then -- game window hwnd = ffi.cast('void*', readMemory(0x00C8CF88, 4, false)) end return ffi.C.MessageBoxA(hwnd, text, '[MoonLoader] ' .. script.this.filename .. ': ' .. title, (style or 0) + 0x50000) end local function failure(msg) msgbox(msg, 'Failed to install dependencies', 0x10) error(msg) end local function batch_install(packages) print('Requested packages: ' .. table.concat(packages, ', ')) local to_install = {} local time_test, time_install = os.clock(), nil for i, dep in ipairs(packages) do local name, version, server = parse_package_string(dep) local installed, err = test_installed_package(name, version) if not installed then if err then failure(dep .. '\n' .. err) end table.insert(to_install, {name = name, ver = version, svr = server, full = dep}) end end time_test = os.clock() - time_test if #to_install > 0 then local list = '' for i, pkg in ipairs(to_install) do list = list .. pkg.full .. '\n' end if 7 --[[IDNO]] == msgbox('Script "' .. script.this.filename .. '" asks to install the following packages:\n\n' .. list .. '\nInstallation process will take some time.\nProceed?', 'Package installation', 0x04 + 0x20 --[[MB_YESNO+MB_ICONQUESTION]]) then error('Dependency installation was interrupted by user') end time_install = os.clock() for i, pkg in ipairs(to_install) do local ok, err = install_package(pkg.name, pkg.ver, pkg.svr) if not ok then failure(pkg.full .. '\n' .. err) end print('Package "' .. pkg.full .. '" has been installed') end time_install = os.clock() - time_install end -- DEBUG local dbgmsg = ('[DEBUG] Installed check took %.3fs.'):format(time_test) if #to_install > 0 then logdebug(dbgmsg, ('Installation of %d packages took %.2fs. Total %.2fs.'):format(#to_install, time_install, time_test + time_install)) -- v.027 feature: suspend main thread until all scripts are loaded coroutine.yield() else logdebug(dbgmsg) end end -- API local mod = { _VERSION = '0.1.0' } function mod.install(...) return batch_install({...}) end function mod.test(...) local results = {} for i, dep in ipairs({...}) do local name, version, server = parse_package_string(dep) local installed, err = test_installed_package(name, version) if not installed and err then return nil, err end results[dep] = installed end return results end setmetatable(mod, { __call = function(t, a1, ...) if type(a1) == 'table' then return batch_install(a1) end return batch_install({a1, ...}) end }) configure() return mod
-------------------------------------------------------------------------------------------------- -- : by Kirill -- : single unit human combat pipes -- -------------------------------------------------------------------------------------------------- function PipeManager:OnInitSingle() --run to target and do melee. abort if trget moves for more than 2.5m AI.BeginGoalPipe("melee_far_during_reload"); AI.PushGoal("firecmd", 0, 0); AI.PushGoal("run", 0, 2); AI.PushGoal("bodypos", 0, BODYPOS_STAND); AI.PushGoal("stick",0,1.3,0,STICK_BREAK, -1); AI.PushLabel("STICK_LOOP"); AI.PushGoal("branch", 1, "END", IF_TARGET_MOVED_SINCE_START, 2.5); -- this will check if current weapon has/allows melee AI.PushGoal("branch", 1, "STICK_LOOP", IF_ACTIVE_GOALS); AI.PushGoal("clear", 0, 0); -- stops approaching - 0 means keep att. target AI.PushGoal("firecmd", 1, FIREMODE_MELEE); AI.PushGoal("timeout", 1, 0.7); AI.PushLabel("END"); AI.PushGoal("hide",1,10,HM_NEAREST+HM_INCLUDE_SOFTCOVERS); AI.PushGoal("signal",0,1,"HANDLE_RELOAD",0); AI.EndGoalPipe(); --run to target and do melee. abort if trget moves for more than 2.5m AI.BeginGoalPipe("melee_far"); AI.PushGoal("firecmd", 0, 0); AI.PushGoal("run", 0, 2); AI.PushGoal("bodypos", 0, BODYPOS_STAND); AI.PushGoal("stick",0,1.3,0,STICK_BREAK, -1); AI.PushLabel("STICK_LOOP"); AI.PushGoal("branch", 1, "END", IF_TARGET_MOVED_SINCE_START, 2.5); -- this will check if current weapon has/allows melee AI.PushGoal("branch", 1, "STICK_LOOP", IF_ACTIVE_GOALS); AI.PushGoal("clear", 0, 0); -- stops approaching - 0 means keep att. target AI.PushGoal("firecmd", 1, FIREMODE_MELEE); AI.PushGoal("timeout", 1, 0.7); AI.PushLabel("END"); AI.PushGoal("signal",0,1,"COVER_NORMALATTACK",0); AI.EndGoalPipe(); --close to target - just do melee AI.BeginGoalPipe("melee_close"); AI.PushGoal("bodypos", 0, BODYPOS_STAND); AI.PushGoal("firecmd", 1, FIREMODE_MELEE); AI.PushGoal("timeout", 1, 0.7); AI.PushGoal("signal",0,1,"COVER_NORMALATTACK",0); AI.EndGoalPipe(); --------------------------------------------- AI.BeginGoalPipe("goto_point"); AI.PushGoal("acqtarget",0,""); AI.PushGoal("bodypos", 0, BODYPOS_CROUCH); AI.PushGoal("run", 0, 1); AI.PushGoal("approach", 1, 1); -- AI.PushGoal("firecmd",1,FIREMODE_BURST); AI.PushGoal("firecmd",1,FIREMODE_OFF); AI.PushGoal("lookaround",1,45,3,2,5,AI_BREAK_ON_LIVE_TARGET); -- AI.PushGoal("timeout",1,0.5,0.8); AI.EndGoalPipe(); end
local COMMAND = Command.new('forcegetup') COMMAND.name = 'ForceGetUp' COMMAND.description = 'command.force_getup.description' COMMAND.syntax = 'command.force_getup.syntax' COMMAND.permission = 'assistant' COMMAND.category = 'permission.categories.roleplay' COMMAND.arguments = 1 COMMAND.player_arg = 1 COMMAND.aliases = { 'forcegetup', 'plygetup' } function COMMAND:on_run(player, target, delay) delay = math.Clamp(delay or 0, 0, 60) target = target[1] if IsValid(target) and target:Alive() and target:is_ragdolled() then target:set_ragdoll_state(RAGDOLL_FALLENOVER) player:notify(target:name()..' has been unragdolled!') timer.Simple(delay, function() target:set_ragdoll_state(RAGDOLL_NONE) end) else player:notify(t'error.cant_now') end end COMMAND:register()
local defaults = { tab_format = " #{n}: #{b}#{f} ", buffer_id_index = false, icon_colors = true, start_hidden = false, auto_hide = false, disable_commands = false, go_to_maps = true, flags = { modified = " [+]", not_modifiable = " [-]", readonly = " [RO]", }, hlgroups = { current = "TabLineSel", normal = "TabLineFill", spacing = nil, active = nil, modified_current = nil, modified_normal = nil, modified_active = nil, tabpage_current = nil, tabpage_normal = nil, }, show_tabpages = true, tabpage_format = " #{n} ", tabpage_position = "right", } local options = vim.deepcopy(defaults) local M = {} M.set = function(user_options) options = vim.tbl_deep_extend("force", options, user_options) end M.get = function() return options end M.reset = function() options = vim.deepcopy(defaults) end return M
--[[ # Element: ComboPoints Handles the visibility and updating of the player's combo points. ## Widget ComboPoints - A `table` consisting of 5 StatusBars as the maximum return of [UnitPowerMax](http://wowprogramming.com/docs/api/UnitPowerMax.html). ## Notes A default texture will be applied if the sub-widgets are StatusBars and don't have a texture set. If the sub-widgets are StatusBars, their minimum and maximum values will be set to 0 and 1 respectively. Supported class powers: - All - Combo Points ## Examples local ComboPoints = {} for index = 1, 5 do local Bar = CreateFrame('StatusBar', nil, self) -- Position and size. Bar:SetSize(16, 16) Bar:SetPoint('TOPLEFT', self, 'BOTTOMLEFT', (index - 1) * Bar:GetWidth(), 0) ComboPoints[index] = Bar end -- Register with oUF self.ComboPoints = ComboPoints --]] local _, ns = ... local oUF = ns.oUF -- Lua APIs local unpack = unpack -- WoW APIs local UnitClass = UnitClass local UnitPowerType = UnitPowerType local IsPlayerSpell = IsPlayerSpell local _, PlayerClass = UnitClass('player') -- sourced from FrameXML/Constants.lua local SPELL_POWER_ENERGY = Enum.PowerType.Energy or 3 local SPELL_POWER_COMBO_POINTS = Enum.PowerType.ComboPoints or 4 -- Holds the class specific stuff. local ClassPowerID, ClassPowerType local ComboPointsEnable, ComboPointsDisable local RequirePower, RequireSpell local Colors = { [1] = {.9, .1, .1, 1}, [2] = {.9, .1, .1, 1}, [3] = {.9, .9, .1, 1}, [4] = {.9, .9, .1, 1}, [5] = {.1, .9, .1, 1}, } local function UpdateColor(element, powerType) for i = 1, #element do local bar = element[i] bar:SetStatusBarColor(unpack(Colors[i])) end end local function Update(self, event, unit, powerType) local element = self.ComboPoints if(event ~= 'ComboPointsDisable') then local cur = GetComboPoints('player', 'target') for i = 1, 5 do if(i > cur) then element[i]:Hide() element[i]:SetValue(0) else element[i]:Show() element[i]:SetValue(cur - i + 1) end end end --[[ Callback: ComboPoints:PostUpdate(cur) Called after the element has been updated. * self - the ComboPoints element * cur - the current amount of power (number) --]] if(element.PostUpdate) then return element:PostUpdate(cur) end end local function Path(self, ...) --[[ Override: ComboPoints.Override(self, event, unit, ...) Used to completely override the internal update function. * self - the parent object * event - the event triggering the update (string) * unit - the unit accompanying the event (string) * ... - the arguments accompanying the event --]] return (self.ComboPoints.Override or Update) (self, ...) end local function Visibility(self, event, unit) local element = self.ComboPoints local shouldEnable if(ClassPowerID) then -- use 'player' instead of unit because 'SPELLS_CHANGED' is a unitless event if(not RequirePower or RequirePower == UnitPowerType('player')) then if(not RequireSpell or IsPlayerSpell(RequireSpell)) then self:UnregisterEvent('SPELLS_CHANGED', Visibility) shouldEnable = true unit = 'player' else self:RegisterEvent('SPELLS_CHANGED', Visibility, true) end end end local isEnabled = element.isEnabled local powerType = ClassPowerType if(shouldEnable) then --[[ Override: ComboPoints:UpdateColor(powerType) Used to completely override the internal function for updating the widgets' colors. * self - the ComboPoints element * powerType - the active power type (string) --]] (element.UpdateColor or UpdateColor) (element, powerType) end if(shouldEnable and not isEnabled) then ComboPointsEnable(self) elseif(not shouldEnable and (isEnabled or isEnabled == nil)) then ComboPointsDisable(self) elseif(shouldEnable and isEnabled) then Path(self, event, unit, powerType) end end local function VisibilityPath(self, ...) --[[ Override: ComboPoints.OverrideVisibility(self, event, unit) Used to completely override the internal visibility function. * self - the parent object * event - the event triggering the update (string) * unit - the unit accompanying the event (string) --]] return (self.ComboPoints.OverrideVisibility or Visibility) (self, ...) end local function ForceUpdate(element) return VisibilityPath(element.__owner, 'ForceUpdate', element.__owner.unit) end do function ComboPointsEnable(self) self:RegisterEvent('UNIT_POWER_FREQUENT', Path, true) self:RegisterEvent('UNIT_MAXPOWER', Path, true) if self.unit == 'player' then self:RegisterEvent('PLAYER_TARGET_CHANGED', Path, true) end self.ComboPoints.isEnabled = true Path(self, 'ComboPointsEnable', 'player', ClassPowerType) end function ComboPointsDisable(self) self:UnregisterEvent('UNIT_POWER_FREQUENT', Path) self:UnregisterEvent('UNIT_MAXPOWER', Path) if self.unit == 'player' then self:UnregisterEvent('PLAYER_TARGET_CHANGED', Path) end local element = self.ComboPoints for i = 1, #element do element[i]:Hide() end self.ComboPoints.isEnabled = false Path(self, 'ComboPointsDisable', 'player', ClassPowerType) end if(PlayerClass == 'ROGUE' or PlayerClass == 'DRUID') then ClassPowerID = SPELL_POWER_COMBO_POINTS ClassPowerType = 'COMBO_POINTS' if(PlayerClass == 'DRUID') then RequirePower = SPELL_POWER_ENERGY RequireSpell = 768 -- Cat Form end end end local function Enable(self, unit) local element = self.ComboPoints if element then element.__owner = self element.__max = #element element.ForceUpdate = ForceUpdate if(RequirePower) then self:RegisterEvent('UNIT_DISPLAYPOWER', VisibilityPath, true) end element.ComboPointsEnable = ComboPointsEnable element.ComboPointsDisable = ComboPointsDisable for i = 1, #element do local bar = element[i] if(bar:IsObjectType('StatusBar')) then if(not bar:GetStatusBarTexture()) then bar:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]]) end bar:SetMinMaxValues(0, 1) end end return true end end local function Disable(self) if(self.ComboPoints) then ComboPointsDisable(self) self:UnregisterEvent('UNIT_DISPLAYPOWER', VisibilityPath) self:UnregisterEvent('SPELLS_CHANGED', Visibility) end end oUF:AddElement('ComboPoints', VisibilityPath, Enable, Disable)
ServerOptions = {} ServerOptions.getOption = function(name) return "" end ServerOptions.getBoolean = function(name) return true end
local function updateAgenda(ply, agenda, text) local txt = hook.Run("agendaUpdated", ply, agenda, text) agenda.text = txt or text local phrase = DarkRP.getPhrase("agenda_updated") for _, v in ipairs(player.GetAll()) do if v:getAgendaTable() ~= agenda then continue end v:setSelfDarkRPVar("agenda", agenda.text) DarkRP.notify(v, 2, 4, phrase) end end local function CreateAgenda(ply, args) local agenda = ply:getAgendaTable() if not agenda or not agenda.ManagersByKey[ply:Team()] then DarkRP.notify(ply, 1, 6, DarkRP.getPhrase("incorrect_job", "agenda")) return "" end updateAgenda(ply, agenda, args) return "" end DarkRP.defineChatCommand("agenda", CreateAgenda, 0.1) local function addAgenda(ply, args) local agenda = ply:getAgendaTable() if not agenda or not agenda.ManagersByKey[ply:Team()] then DarkRP.notify(ply, 1, 6, DarkRP.getPhrase("incorrect_job", "agenda")) return "" end agenda.text = agenda.text or "" args = args or "" updateAgenda(ply, agenda, agenda.text .. '\n' .. args) return "" end DarkRP.defineChatCommand("addagenda", addAgenda, 0.1) --[[--------------------------------------------------------- Mayor stuff ---------------------------------------------------------]] local LotteryPeople = {} local LotteryON = false local LotteryAmount = 0 local CanLottery = CurTime() local function EnterLottery(answer, ent, initiator, target, TimeIsUp) local hasEntered = table.HasValue(LotteryPeople, target) if tobool(answer) and not hasEntered then if not target:canAfford(LotteryAmount) then DarkRP.notify(target, 1,4, DarkRP.getPhrase("cant_afford", "lottery")) return end table.insert(LotteryPeople, target) target:addMoney(-LotteryAmount) DarkRP.notify(target, 0,4, DarkRP.getPhrase("lottery_entered", DarkRP.formatMoney(LotteryAmount))) hook.Run("playerEnteredLottery", target) elseif IsValid(target) and answer ~= nil and not hasEntered then DarkRP.notify(target, 1,4, DarkRP.getPhrase("lottery_not_entered", "You")) end if TimeIsUp then LotteryON = false CanLottery = CurTime() + 60 for i = #LotteryPeople, 1, -1 do if not IsValid(LotteryPeople[i]) then table.remove(LotteryPeople, i) end end if #LotteryPeople == 0 then DarkRP.notifyAll(1, 4, DarkRP.getPhrase("lottery_noone_entered")) hook.Run("lotteryEnded", LotteryPeople) return end local chosen = LotteryPeople[math.random(1, #LotteryPeople)] local amt = #LotteryPeople * LotteryAmount hook.Run("lotteryEnded", LotteryPeople, chosen, amt) chosen:addMoney(amt) DarkRP.notifyAll(0, 10, DarkRP.getPhrase("lottery_won", chosen:Nick(), DarkRP.formatMoney(amt))) end end local function DoLottery(ply, amount) if not ply:isMayor() then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("incorrect_job", "/lottery")) return "" end if not GAMEMODE.Config.lottery then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("disabled", "/lottery", "")) return "" end if player.GetCount() <= 2 or LotteryON then DarkRP.notify(ply, 1, 6, DarkRP.getPhrase("unable", "/lottery", "")) return "" end if CanLottery > CurTime() then DarkRP.notify(ply, 1, 5, DarkRP.getPhrase("have_to_wait", tostring(CanLottery - CurTime()), "/lottery")) return "" end amount = tonumber(amount) if not amount then DarkRP.notify(ply, 1, 5, string.format("Please specify an entry cost ($%i-%i)", GAMEMODE.Config.minlotterycost, GAMEMODE.Config.maxlotterycost)) return "" end LotteryAmount = math.Clamp(math.floor(amount), GAMEMODE.Config.minlotterycost, GAMEMODE.Config.maxlotterycost) hook.Run("lotteryStarted", ply, LotteryAmount) LotteryON = true LotteryPeople = {} local phrase = DarkRP.getPhrase("lottery_has_started", DarkRP.formatMoney(LotteryAmount)) for k, v in ipairs(player.GetAll()) do if v ~= ply then DarkRP.createQuestion(phrase, "lottery" .. tostring(k), v, 30, EnterLottery, ply, v) end end timer.Create("Lottery", 30, 1, function() EnterLottery(nil, nil, nil, nil, true) end) return "" end DarkRP.defineChatCommand("lottery", DoLottery, 1) local lastLockdown = -math.huge function DarkRP.lockdown(ply) local show = ply:EntIndex() == 0 and print or fp{DarkRP.notify, ply, 1, 4} if GetGlobalBool("DarkRP_LockDown") then show(DarkRP.getPhrase("unable", "/lockdown", DarkRP.getPhrase("stop_lockdown"))) return "" end if ply:EntIndex() ~= 0 and not ply:isMayor() then show(DarkRP.getPhrase("incorrect_job", "/lockdown", "")) return "" end if not GAMEMODE.Config.lockdown then show(ply, 1, 4, DarkRP.getPhrase("disabled", "lockdown", "")) return "" end if lastLockdown > CurTime() - GAMEMODE.Config.lockdowndelay then show(DarkRP.getPhrase("wait_with_that")) return "" end for _, v in ipairs(player.GetAll()) do v:ConCommand("play " .. GAMEMODE.Config.lockdownsound .. "\n") end DarkRP.printMessageAll(HUD_PRINTTALK, DarkRP.getPhrase("lockdown_started")) SetGlobalBool("DarkRP_LockDown", true) DarkRP.notifyAll(0, 3, DarkRP.getPhrase("lockdown_started")) return "" end DarkRP.defineChatCommand("lockdown", DarkRP.lockdown) function DarkRP.unLockdown(ply) local show = ply:EntIndex() == 0 and print or fp{DarkRP.notify, ply, 1, 4} if not GetGlobalBool("DarkRP_LockDown") then show(DarkRP.getPhrase("unable", "/unlockdown", DarkRP.getPhrase("lockdown_ended"))) return "" end if ply:EntIndex() ~= 0 and not ply:isMayor() then show(DarkRP.getPhrase("incorrect_job", "/unlockdown", "")) return "" end DarkRP.printMessageAll(HUD_PRINTTALK, DarkRP.getPhrase("lockdown_ended")) DarkRP.notifyAll(0, 3, DarkRP.getPhrase("lockdown_ended")) SetGlobalBool("DarkRP_LockDown", false) lastLockdown = CurTime() return "" end DarkRP.defineChatCommand("unlockdown", DarkRP.unLockdown) --[[--------------------------------------------------------- License ---------------------------------------------------------]] local function GrantLicense(answer, Ent, Initiator, Target) Initiator.LicenseRequested = nil if tobool(answer) then DarkRP.notify(Initiator, 0, 4, DarkRP.getPhrase("gunlicense_granted", Target:Nick(), Initiator:Nick())) DarkRP.notify(Target, 0, 4, DarkRP.getPhrase("gunlicense_granted", Target:Nick(), Initiator:Nick())) Initiator:setDarkRPVar("HasGunlicense", true) else DarkRP.notify(Initiator, 1, 4, DarkRP.getPhrase("gunlicense_denied", Target:Nick(), Initiator:Nick())) end end local function RequestLicense(ply) if ply:getDarkRPVar("HasGunlicense") or ply.LicenseRequested then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/requestlicense", "")) return "" end local LookingAt = ply:GetEyeTrace().Entity local ismayor--first look if there's a mayor local ischief-- then if there's a chief local iscop-- and then if there's a cop to ask for _, v in ipairs(player.GetAll()) do if v:isMayor() and not v:getDarkRPVar("AFK") then ismayor = true break end end if not ismayor then for _, v in ipairs(player.GetAll()) do if v:isChief() and not v:getDarkRPVar("AFK") then ischief = true break end end end if not ischief and not ismayor then for _, v in ipairs(player.GetAll()) do if v:isCP() then iscop = true break end end end if not ismayor and not ischief and not iscop then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/requestlicense", "")) return "" end if not IsValid(LookingAt) or not LookingAt:IsPlayer() or LookingAt:GetPos():DistToSqr(ply:GetPos()) > 10000 then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("must_be_looking_at", "mayor/chief/cop")) return "" end if ismayor and not LookingAt:isMayor() then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("must_be_looking_at", "mayor")) return "" elseif ischief and not LookingAt:isChief() then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("must_be_looking_at", "chief")) return "" elseif iscop and not LookingAt:isCP() then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("must_be_looking_at", "cop")) return "" end ply.LicenseRequested = true DarkRP.notify(ply, 3, 4, DarkRP.getPhrase("gunlicense_requested", ply:Nick(), LookingAt:Nick())) DarkRP.createQuestion(DarkRP.getPhrase("gunlicense_question_text", ply:Nick()), "Gunlicense" .. ply:EntIndex(), LookingAt, 20, GrantLicense, ply, LookingAt) return "" end DarkRP.defineChatCommand("requestlicense", RequestLicense) local function GiveLicense(ply) local noMayorExists = fn.Compose{fn.Null, fn.Curry(fn.Filter, 2)(ply.isMayor), player.GetAll} local noChiefExists = fn.Compose{fn.Null, fn.Curry(fn.Filter, 2)(ply.isChief), player.GetAll} local canGiveLicense = fn.FOr{ ply.isMayor, -- Mayors can hand out licenses fn.FAnd{ply.isChief, noMayorExists}, -- Chiefs can if there is no mayor fn.FAnd{ply.isCP, noChiefExists, noMayorExists} -- CP's can if there are no chiefs nor mayors } if not canGiveLicense(ply) then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("incorrect_job", "/givelicense")) return "" end local LookingAt = ply:GetEyeTrace().Entity if not IsValid(LookingAt) or not LookingAt:IsPlayer() or LookingAt:GetPos():DistToSqr(ply:GetPos()) > 10000 then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("must_be_looking_at", "player")) return "" end DarkRP.notify(LookingAt, 0, 4, DarkRP.getPhrase("gunlicense_granted", ply:Nick(), LookingAt:Nick())) DarkRP.notify(ply, 0, 4, DarkRP.getPhrase("gunlicense_granted", ply:Nick(), LookingAt:Nick())) LookingAt:setDarkRPVar("HasGunlicense", true) return "" end DarkRP.defineChatCommand("givelicense", GiveLicense) local function rp_GiveLicense(ply, arg) local target = DarkRP.findPlayer(arg) if not target then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", tostring(arg))) return end target:setDarkRPVar("HasGunlicense", true) local nick, steamID if ply:EntIndex() ~= 0 then nick = ply:Nick() steamID = ply:SteamID() else nick = "Console" steamID = "Console" end DarkRP.notify(target, 0, 4, DarkRP.getPhrase("gunlicense_granted", nick, target:Nick())) if ply ~= target then DarkRP.notify(ply, 0, 4, DarkRP.getPhrase("gunlicense_granted", nick, target:Nick())) end DarkRP.log(nick .. " (" .. steamID .. ") force-gave " .. target:Nick() .. " a gun license", Color(30, 30, 30)) end DarkRP.definePrivilegedChatCommand("setlicense", "DarkRP_SetLicense", rp_GiveLicense) local function rp_RevokeLicense(ply, arg) local target = DarkRP.findPlayer(arg) if not target then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", tostring(arg))) return end target:setDarkRPVar("HasGunlicense", nil) local nick, steamID if ply:EntIndex() ~= 0 then nick = ply:Nick() steamID = ply:SteamID() else nick = "Console" steamID = "Console" end DarkRP.notify(target, 1, 4, DarkRP.getPhrase("gunlicense_denied", nick, target:Nick())) if ply ~= target then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("gunlicense_denied", nick, target:Nick())) end DarkRP.log(nick .. " (" .. steamID .. ") force-removed " .. target:Nick() .. "'s gun license", Color(30, 30, 30)) end DarkRP.definePrivilegedChatCommand("unsetlicense", "DarkRP_SetLicense", rp_RevokeLicense) local function FinishRevokeLicense(vote, win) if win == 1 then vote.target:setDarkRPVar("HasGunlicense", nil) vote.target:StripWeapons() gamemode.Call("PlayerLoadout", vote.target) DarkRP.notifyAll(0, 4, DarkRP.getPhrase("gunlicense_removed", vote.target:Nick())) else DarkRP.notifyAll(0, 4, DarkRP.getPhrase("gunlicense_not_removed", vote.target:Nick())) end end local function VoteRemoveLicense(ply, args) if #args == 1 then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("vote_specify_reason")) return "" end local reason = "" for i = 2, #args, 1 do reason = reason .. " " .. args[i] end reason = string.sub(reason, 2) if string.len(reason) > 22 then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/demotelicense", "<23")) return "" end local p = DarkRP.findPlayer(args[1]) if p then if CurTime() - ply.LastVoteCop < 80 then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("have_to_wait", math.ceil(80 - (CurTime() - ply:GetTable().LastVoteCop)), "/demotelicense")) return "" end if ply:getDarkRPVar("HasGunlicense") then DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/demotelicense", "")) else local voteInfo = DarkRP.createVote(p:Nick() .. ":\n" .. DarkRP.getPhrase("gunlicense_remove_vote_text2", reason), "removegunlicense", p, 20, FinishRevokeLicense, { [p] = true, [ply] = true }, nil, nil, { source = ply }) if voteInfo then -- Vote has started DarkRP.notifyAll(0, 4, DarkRP.getPhrase("gunlicense_remove_vote_text", ply:Nick(), p:Nick())) end ply.LastVoteCop = CurTime() end return "" else DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", tostring(args[1]))) return "" end end DarkRP.defineChatCommand("demotelicense", VoteRemoveLicense)
-- 初始化DangerZone的外框 (碰撞) function InitDangerZone() DangerZone = World:newRectangleCollider(0, 550, 800, 50, { collision_class = 'DangerZone'}) DangerZone:setType('static') end
local args = ... local player = args.Player local profile_data = args.ProfileData local scroller = args.Scroller local scroller_item_mt = LoadActor("./ScrollerItemMT.lua") -- I tried really hard to use size + position variables instead of hardcoded numbers all over -- the place, but gave up after an hour of questioning my sanity due to sub-pixel overlap -- issues (rounding? texture sizing? I don't have time to figure it out right now.) local row_height = 35 local scroller_x = -56 local scroller_y = row_height * -5 -- account for the possibility that there are no local profiles and -- we want "[ Guest ]" to start in the middle, with focus if PROFILEMAN:GetNumLocalProfiles() <= 0 then scroller_y = row_height * -4 end local FrameBackground = function(c, player, w) w = w or 1 return Def.ActorFrame { InitCommand=function(self) self:zoomto(w, 1) end, -- a lightly styled png asset that is not so different than a Quad -- currently inherited from _fallback LoadActor( THEME:GetPathG("ScreenSelectProfile","CardBackground") )..{ InitCommand=function(self) self:diffuse(c):cropbottom(1) end, OnCommand=function(self) self:smooth(0.3):cropbottom(0) end, OffCommand=function(self) if not GAMESTATE:IsSideJoined(player) then self:accelerate(0.25):cropbottom(1) end end }, -- a png asset that gives the colored frame (above) a lightly frosted feel -- currently inherited from _fallback LoadActor( THEME:GetPathG("ScreenSelectProfile","CardFrame") )..{ InitCommand=function(self) self:cropbottom(1) end, OnCommand=function(self) self:smooth(0.3):cropbottom(0) end, OffCommand=function(self) if not GAMESTATE:IsSideJoined(player) then self:accelerate(0.25):cropbottom(1) end end } } end -- ---------------------------------------------------- return Def.ActorFrame{ Name=ToEnumShortString(player) .. "Frame", InitCommand=function(self) self:xy(_screen.cx, _screen.cy) end, OffCommand=function(self) if GAMESTATE:IsSideJoined(player) then self:bouncebegin(0.35):zoom(0) end end, InvalidChoiceMessageCommand=function(self, params) if params.PlayerNumber == player then self:finishtweening():bounceend(0.1):addx(5):bounceend(0.1):addx(-10):bounceend(0.1):addx(5) end end, PlayerJoinedMessageCommand=function(self,param) if param.Player == player then self:zoom(1.15):bounceend(0.175):zoom(1) end end, -- dark frame prompting players to "Press START to join!" -- (or "Enter credits to join!" depending on CoinMode and available credits) Def.ActorFrame { Name='JoinFrame', FrameBackground(Color.Black, player), LoadFont("Common Normal")..{ InitCommand=function(self) if IsArcade() and not GAMESTATE:EnoughCreditsToJoin() then self:settext( THEME:GetString("ScreenSelectProfile", "EnterCreditsToJoin") ) else self:settext( THEME:GetString("ScreenSelectProfile", "PressStartToJoin") ) end self:diffuseshift():effectcolor1(1,1,1,1):effectcolor2(0.5,0.5,0.5,1) self:diffusealpha(0):maxwidth(180) end, OnCommand=function(self) self:sleep(0.3):linear(0.1):diffusealpha(1) end, OffCommand=function(self) self:linear(0.1):diffusealpha(0) end, CoinsChangedMessageCommand=function(self) if IsArcade() and GAMESTATE:EnoughCreditsToJoin() then self:settext(THEME:GetString("ScreenSelectProfile", "PressStartToJoin")) end end }, }, -- colored frame that contains the profile scroller and DataFrame Def.ActorFrame { Name='ScrollerFrame', InitCommand=function(self) -- Create the info needed for the "[Guest]" scroller item. -- It won't map to any real local profile (as desired!), so we'll hardcode -- an index of 0, and handle it later, on ScreenSelectProfile's OffCommand -- in default.lua if either/both players want to chose it. local guest_profile = { index=0, displayname=THEME:GetString("ScreenSelectProfile", "GuestProfile") } -- here, we are padding the scroller_data table with dummy scroller items to accommodate -- the peculiar scroller behavior of starting low, starting on item#2, not wrapping, etc. -- see also: https://youtu.be/bXZhTb0eUqA?t=116 local scroller_data = {{}, {}, {}, guest_profile} -- add actual profile data into the scroller_data table for profile in ivalues(profile_data) do table.insert(scroller_data, profile) end scroller.focus_pos = 5 scroller:set_info_set(scroller_data, 0) end, FrameBackground(PlayerColor(player), player, 1.25), -- semi-transparent Quad used to indicate location in SelectProfile scroller Def.Quad { InitCommand=function(self) self:diffuse({0,0,0,0}):zoomto(124,row_height):x(-56) end, OnCommand=function(self) self:sleep(0.3):linear(0.1):diffusealpha(0.5) end, }, -- sick_wheel scroller containing local profiles as choices scroller:create_actors( "Scroller", 9, scroller_item_mt, scroller_x, scroller_y ), -- player profile data Def.ActorFrame{ Name="DataFrame", InitCommand=function(self) self:xy(62,1) end, OnCommand=function(self) self:playcommand("Set", profile_data[1]) end, -- semi-transparent Quad to the right of this colored frame to present profile stats and mods Def.Quad { InitCommand=function(self) self:vertalign(top):diffuse(0,0,0,0):zoomto(112,221):y(-111) end, OnCommand=function(self) self:sleep(0.3):linear(0.1):diffusealpha(0.5) end, }, -- put all BitmapText actors in an ActorFrame so they can diffusealpha() simultaneously more easily Def.ActorFrame{ InitCommand=function(self) self:diffusealpha(0) end, OnCommand=function(self) self:sleep(0.45):linear(0.1):diffusealpha(1) end, -- the name the player most recently used for high score entry LoadFont("Common Normal")..{ Name="HighScoreName", InitCommand=function(self) self:align(0,0):xy(-50,-104):zoom(0.65):maxwidth(104/0.65):vertspacing(-2) end, SetCommand=function(self, params) if params then local desc = THEME:GetString("ScreenGameOver","LastUsedHighScoreName") .. ": " self:visible(true):settext(desc .. (params.highscorename or "")) else self:visible(false):settext("") end end }, -- the song that was most recently played, presented as "group name/song name", eventually -- truncated so it passes the "How to Cook Delicious Rice and the Effects of Eating Rice" test. LoadFont("Common Normal")..{ Name="MostRecentSong", InitCommand=function(self) self:align(0,0):xy(-50,-85):zoom(0.65):_wrapwidthpixels(104/0.65):vertspacing(-3) end, SetCommand=function(self, params) if params then local desc = THEME:GetString("ScreenSelectProfile","MostRecentSong") .. ":\n" self:settext(desc .. (params.recentsong or "")):Truncate(112) else self:settext("") end end }, -- how many songs this player has completed in gameplay -- failing a song will increment this count, but backing out will not LoadFont("Common Normal")..{ Name="TotalSongs", InitCommand=function(self) self:align(0,0):xy(-50,0):zoom(0.65):maxwidth(104/0.65):vertspacing(-2) end, SetCommand=function(self, params) if params then self:visible(true):settext(params.totalsongs or "") else self:visible(false):settext("") end end }, -- (some of) the modifiers saved to this player's UserPrefs.ini file -- if the list is long, it will line break and eventually be masked -- to prevent it from visually spilling out of the FrameBackground LoadFont("Common Normal")..{ Name="RecentMods", InitCommand=function(self) self:align(0,0):xy(-50,25):zoom(0.625):_wrapwidthpixels(104/0.625):vertspacing(-3):ztest(true) end, SetCommand=function(self, params) if params then self:visible(true):settext(params.mods or "") else self:visible(false):settext("") end end }, -- NoteSkin preview Def.ActorProxy{ Name="NoteSkinPreview", InitCommand=function(self) self:zoom(0.25):xy(-42,50) end, SetCommand=function(self, params) local underlay = SCREENMAN:GetTopScreen():GetChild("Underlay") if params and params.noteskin then local noteskin = underlay:GetChild("NoteSkin_"..params.noteskin) if noteskin then self:visible(true):SetTarget(noteskin) else self:visible(false) end else self:visible(false) end end }, -- JudgmentGraphic preview Def.ActorProxy{ Name="JudgmentGraphicPreview", InitCommand=function(self) self:zoom(0.35):xy(12,68) end, SetCommand=function(self, params) local underlay = SCREENMAN:GetTopScreen():GetChild("Underlay") if params and params.judgment then local judgment = underlay:GetChild("JudgmentGraphic_"..StripSpriteHints(params.judgment)) if judgment then self:SetTarget(judgment) else self:SetTarget(underlay:GetChild("JudgmentGraphic_None")) end else self:SetTarget(underlay:GetChild("JudgmentGraphic_None")) end end } }, -- thin white line separating stats from mods Def.Quad { InitCommand=function(self) self:zoomto(100,1):y(17):diffusealpha(0) end, OnCommand=function(self) self:sleep(0.45):linear(0.1):diffusealpha(0.5) end, }, } }, LoadActor(THEME:GetPathB("ScreenMemoryCard", "overlay/usbicon.png"))..{ Name="USBIcon", InitCommand=function(self) self:rotationz(90):zoom(0.75):visible(false):diffuseshift() :effectperiod(1.5):effectcolor1(1,1,1,1):effectcolor2(1,1,1,0.5) end }, LoadFont("Common Normal")..{ Name='SelectedProfileText', InitCommand=function(self) self:settext(profile_data[1] and profile_data[1].displayname or "") self:y(160):zoom(1.35):shadowlength(ThemePrefs.Get("RainbowMode") and 0.5 or 0):cropright(1) end, OnCommand=function(self) self:sleep(0.2):smooth(0.2):cropright(0) end } }
require("stategraphs/commonstates") local actionhandlers = { ActionHandler(ACTIONS.GOHOME, "gohome"), ActionHandler(ACTIONS.EAT, "eat"), } local events= { CommonHandlers.OnLocomote(true,true), CommonHandlers.OnSleep(), CommonHandlers.OnFreeze(), CommonHandlers.OnAttack(), CommonHandlers.OnAttacked(), CommonHandlers.OnDeath(), } local states= { } CommonStates.AddWalkStates(states, { walktimeline = { TimeEvent(0*FRAMES, PlayFootstep ), TimeEvent(12*FRAMES, PlayFootstep ), }, }) CommonStates.AddRunStates(states, { runtimeline = { TimeEvent(0*FRAMES, PlayFootstep ), TimeEvent(10*FRAMES, PlayFootstep ), }, }) CommonStates.AddSleepStates(states, { sleeptimeline = { TimeEvent(35*FRAMES, function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/merm/sleep") end ), }, }) CommonStates.AddCombatStates(states, { attacktimeline = { TimeEvent(0*FRAMES, function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/merm/attack") end), TimeEvent(0*FRAMES, function(inst) inst.SoundEmitter:PlaySound("dontstarve/wilson/attack_whoosh") end), TimeEvent(16*FRAMES, function(inst) inst.components.combat:DoAttack() end), }, hittimeline = { TimeEvent(0*FRAMES, function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/merm/hurt") end), }, deathtimeline = { TimeEvent(0*FRAMES, function(inst) inst.SoundEmitter:PlaySound("dontstarve/creatures/merm/death") end), }, }) CommonStates.AddIdle(states) CommonStates.AddSimpleActionState(states, "gohome", "pig_pickup", 4*FRAMES, {"busy"}) CommonStates.AddSimpleActionState(states, "eat", "eat", 10*FRAMES, {"busy"}) CommonStates.AddFrozenStates(states) return StateGraph("merm", states, events, "idle", actionhandlers)
local PLUGIN = PLUGIN if (SERVER) then function PLUGIN:searchPlayer(client, target) if (IsValid(target:GetNetVar("searcher")) or IsValid(client.nutSearchTarget)) then return false end if (!target:GetChar() or !target:GetChar():GetInv()) then return false end local inventory = target:GetChar():GetInv() -- Permit the player to move items from their inventory to the target's inventory. inventory.oldOnAuthorizeTransfer = inventory.OnAuthorizeTransfer inventory.OnAuthorizeTransfer = function(inventory, client2, oldInventory, item) if (IsValid(client2) and client2 == client) then return true end return false end inventory:sync(client) inventory.oldGetReceiver = inventory.GetReceiver inventory.GetReceiver = function(inventory) return {client, target} end inventory.OnCheckAccess = function(inventory, client2) if (client2 == client) then return true end end -- Permit the player to move items from the target's inventory back into their inventory. local inventory2 = client:GetChar():GetInv() inventory2.oldOnAuthorizeTransfer = inventory2.OnAuthorizeTransfer inventory2.OnAuthorizeTransfer = function(inventory3, client2, oldInventory, item) if (oldInventory == inventory) then return true end return inventory2.oldOnAuthorizeTransfer(inventory3, client2, oldInventory, item) end -- Show the inventory menu to the searcher. netstream.Start(client, "searchPly", target, target:GetChar():GetInv():getID()) client.nutSearchTarget = target target:SetNetVar("searcher", client) return true end function PLUGIN:CanPlayerInteractItem(client, action, item) if (IsValid(client:GetNetVar("searcher"))) then return false end end netstream.Hook("searchExit", function(client) local target = client.nutSearchTarget if (IsValid(target) and target:GetNetVar("searcher") == client) then local inventory = target:GetChar():GetInv() inventory.OnAuthorizeTransfer = inventory.oldOnAuthorizeTransfer inventory.oldOnAuthorizeTransfer = nil inventory.GetReceiver = inventory.oldGetReceiver inventory.oldGetReceiver = nil inventory.OnCheckAccess = nil local inventory2 = client:GetChar():GetInv() inventory2.OnAuthorizeTransfer = inventory2.oldOnAuthorizeTransfer inventory2.oldOnAuthorizeTransfer = nil target:SetNetVar("searcher", nil) client.nutSearchTarget = nil end end) else function PLUGIN:CanPlayerViewInventory() if (IsValid(LocalPlayer():GetNetVar("searcher"))) then return false end end netstream.Hook("searchPly", function(target, index) local inventory = ix.item.inventories[index] if (!inventory) then return netstream.Start("searchExit") end ix.gui.inv1 = vgui.Create("nutInventory") ix.gui.inv1:ShowCloseButton(true) ix.gui.inv1:SetInventory(LocalPlayer():GetChar():GetInv()) local panel = vgui.Create("nutInventory") panel:ShowCloseButton(true) panel:SetTitle(target:Name()) panel:SetInventory(inventory) panel:MoveLeftOf(ix.gui.inv1, 4) panel.OnClose = function(this) if (IsValid(ix.gui.inv1) and !IsValid(ix.gui.menu)) then ix.gui.inv1:Remove() end netstream.Start("searchExit") end local oldClose = ix.gui.inv1.OnClose ix.gui.inv1.OnClose = function() if (IsValid(panel) and !IsValid(ix.gui.menu)) then panel:Remove() end netstream.Start("searchExit") ix.gui.inv1.OnClose = oldClose end ix.gui["inv"..index] = panel end) end ix.command.Add("charsearch", { OnRun = function(client, arguments) local data = {} data.start = client:GetShootPos() data.endpos = data.start + client:GetAimVector()*96 data.filter = client local target = util.TraceLine(data).Entity if (IsValid(target) and target:IsPlayer() and target:GetNetVar("restricted")) then PLUGIN:searchPlayer(client, target) end end })
--Create the two global tables which will be used to create the replications and their technologies later on repl_table = {} --[[ Repltech (table): items (array of the following table): name cost (either a number or an array where each entry is either a number or the following table): target type (item, var, recipe or recipe-noproduct) multiplier (nil is considered to be 1) overrides: internal_name localized name icon category prerequisites (array of the following table): target type (item, tech, recipe, recipe-items-only or recipe-tech-only) overrides: tier research_multiplier upgrade (Is this technology an upgrade? (defaults to false)) internal_name localized name icon --]] repl_variables = {} --[[ Replication variables (table): name cost (number or array of both numbers and the following table): target type (item, var, recipe or recipe-noproduct) multiplier (nil is considered to be 1) --]] --The function for making replication variables function replvar(name, cost) repl_variables[name] = { name = name, cost = replsub_cost(cost or name) } end --Functions for making subtables --Cost subsubtable function replsub_cost(cost) --Parse the cost, which will either be nil, a number, a single replication cost or a table of replication costs. if cost == nil then --Nil return 0 elseif type(cost) == 'number' then --A number return cost elseif type(cost) == 'string' then --A recipe return { { type = 'recipe', target = cost } } elseif cost.type then --A single replication cost return { cost } end --A table of replication costs return cost end --Item subtable function replsub_item(item, cost, item_overrides) --Create and return the subtable return { name = item, cost = replsub_cost(cost), overrides = item_overrides or {} } end function replsub_recipe(recipe_name, item_overrides) --Load the recipe local recipe = data.raw.recipe[recipe_name] --If the recipe exists, find its (first) item and make a subtable for it if recipe then --Find the recipe's item local item = get_recipe_result_part(recipe, 'result', 'name') --Create and return the subtable return { name = item, cost = { { type = 'recipe', target = recipe_name } }, overrides = item_overrides or {} } else --Log that the recipe does not exist log('A function just tried to make a replication based on a recipe named "' .. recipe_name .. '", but no recipe with that name exists.') end end --Prerequisites subtable function replsub_prereq(prerequisites) --Parse the prerequisites, which will either be nil, a string, a single prerequisite or a table of prerequisites if prerequisites == nil then --Nil return {} elseif type(prerequisites) == 'string' then --A string --It's assumed that if a prerequisite is a single string then it's meant to be a whole host of prerequisites based on a recipe. return { { target = prerequisites, type = 'recipe' } } elseif prerequisites[1] and type(prerequisites[1]) == 'string' then --An array of strings --Multiple recipes, presumably for multiple items local output = {} for _, prerequisite in ipairs(prerequisites) do output[#output + 1] = { target = prerequisite, type = 'recipe' } end return output elseif prerequisites.target then --A single prerequisite return { prerequisites } end return prerequisites end --Functions for adding entries to the replication table function repltech_item(item, category, cost, prerequisites, overrides, item_overrides) overrides = overrides or {} local name = overrides.internal_name or item repl_table[name] = { name = name, category = repltypes[category], items = { replsub_item(item, cost, item_overrides) }, prerequisites = replsub_prereq(prerequisites), overrides = overrides } end function repltech_item_table(item_table, category, prerequisites, overrides) overrides = overrides or {} local name = overrides.internal_name or item_table[1].overrides.internal_name or item_table[1].name repl_table[name] = { name = name, category = repltypes[category], items = item_table, prerequisites = replsub_prereq(prerequisites), overrides = overrides } end function repltech_recipe(recipe_name, category, overrides, item_overrides) overrides = overrides or {} local item = replsub_recipe(recipe_name, item_overrides) if item then local name = overrides.internal_name or item.overrides.internal_name or item.name repl_table[name] = { name = name, category = repltypes[category], items = { item }, prerequisites = { { type = 'recipe', target = recipe_name } }, overrides = overrides } end end --More specialized replication functions function repltech_ore(item, multiplier, overrides, item_overrides, prerequisites) repltech_item(item, 'ore', { { target = 'ore', type = 'var', multiplier = multiplier or 1 } }, prerequisites, overrides, item_overrides) end function repltech_element(atomic_number, name, item_table, ore_name, prerequisites, icon_path) name = string.format('%03d-%s', atomic_number, name) icon_path = image_path or '__dark-tech__/graphics/icons/periodic/' .. name .. '.jpg' prerequisites = replsub_prereq(prerequisites) if ore_name then prerequisites[#prerequisites + 1] = { target = ore_name, type = 'item' } end repltech_item_table(item_table, 'element', prerequisites, { internal_name = name, localized_name = { 'technology-name.repl-' .. name }, icon = icon_path }) end --Trying to add a replication while one already exists will overwrite the old replication. --Functions for modifying existing replications --Change a recipe's category function replmod_category(repltech, category) repl_table[repltech].category = repltypes[category] end --Add an item to a replication while not changing anything else (not even prerequisites) function repladd_item(repltech, item, cost, item_overrides) --Check to see if the modified repltech exists local tech = repl_table[repltech] if tech then tech.items[#tech.items + 1] = replsub_item(item, cost, item_overrides) else log('An attempt was made to modify the repltech "' .. repltech .. '", but that repltech does not yet exist. The attempted modification the addition of the item "' .. item .. '".') end end --Add the first product of a recipe to a replication while not changing anything else (not even prerequisites) function repladd_recipe(repltech, recipe_name, item_overrides) --Check to see if the modified repltech exists local tech = repl_table[repltech] if tech then tech.items[#tech.items + 1] = replsub_recipe(recipe_name, item_overrides) else log('An attempt was made to modify the repltech "' .. repltech .. '", but that repltech does not yet exist. The attempted modification the addition of the recipe "' .. recipe_name .. '".') end end
LogColors = { Default = 'white', Error = 'red', Warning = 'yellow', Success = 'green', Event = 'teal' } ThingCategory = { CategoryItem = 0, CategoryCreature = 1, CategoryEffect = 2, CategoryMissile = 3, CategoryInvalid = 4 } ThingCategories = { ThingCategory.CategoryItem, ThingCategory.CategoryCreature, ThingCategory.CategoryEffect, ThingCategory.CategoryMissile, ThingCategory.CategoryInvalid } ThingCategoryNames = { [ThingCategory.CategoryItem] = 'Items', [ThingCategory.CategoryCreature] = 'Creatures', [ThingCategory.CategoryEffect] = 'Effects', [ThingCategory.CategoryMissile] = 'Missiles', [ThingCategory.CategoryInvalid] = 'Invalid' }
--- Query library inspired by LINQ. -- @module moony.query local class = require('moony.class') local M, MT = {}, {} local Iterable = class() local setmetatable = _G.setmetatable local assert = _G.assert local ipairs = _G.ipairs local pairs = _G.pairs local type = _G.type local yield = coroutine.yield local wrap = coroutine.wrap local insert = table.insert --- Factories -- @section Factories --- Creates `Iterable` from given source. -- Type of the `source` is detected and appropriate factory function is used. -- @param source data source -- @return instance of `Iterable` -- @see from_dictionary -- @see from_list -- @see from_iterator -- @see from_nil -- @usage local iterable = query({1, 2, 3}) function M.from(source) if Iterable.class_of(source) then return source end if type(source) == 'table' then if source[1] == nil then return M.from_dictionary(source) else return M.from_list(source) end end if type(source) == 'function' then return M.from_iterator(source) end return M.from_nil() end --- Creates `Iterable` from given list. -- Ordering of the items is maintained. -- @param list list containing data -- @return instance of `Iterable` function M.from_list(list) assert(type(list) == 'table', 'Expected list') return Iterable:new(function() return wrap(function() for _, value in ipairs(list) do yield(value) end end) end) end --- Creates `Iterable` from given dictionary. -- All key/value pairs are converted to a list of `KeyValuePair` tables with arbitrary order. -- @param dictionary dictionary containing data -- @return instance of `Iterable` function M.from_dictionary(dictionary) assert(type(dictionary) == 'table', 'Expected dictionary') return Iterable:new(function() return wrap(function() for key, value in pairs(dictionary) do yield({ key = key, value = value }) end end) end) end --- Creates `Iterable` from given iterator. -- @param iterator iterator to be used as data source -- @return instance of `Iterable` function M.from_iterator(iterator) return Iterable:new(iterator) end --- Creates empty `Iterable`. -- @return instance of `Iterable` function M.from_nil() return M.from_list({}) end --- Iterable -- @section Iterable function Iterable:init(iterator) assert(type(iterator) == 'function', 'Expected iterator function') self._iterator = iterator end --- Filters -- @section Filters --- Filters `Iterable` based on a predicate. -- @param predicate A function to test each item -- @return filtered `Iterable` function Iterable:where(predicate) assert(type(predicate) == 'function', 'Expected predicate function') return Iterable:new(function() return wrap(function() for item in self._iterator() do if predicate(item) then yield(item) end end end) end) end --- Transformations -- @section Transformations --- Transforms each item of `Iterable`. -- @param selector A function to transform each item -- @return transformed `Iterable` function Iterable:select(selector) assert(type(selector) == 'function', 'Expected selector function') return Iterable:new(function() return wrap(function() for item in self._iterator() do yield(selector(item)) end end) end) end --- Predicates -- @section Predicates --- Checks whether all items of `Iterable` satisfy a predicate. -- @param predicate A function to test each item -- @return `true` if all items of `Iterable` satisfy the predicate; `false` otherwise function Iterable:all(predicate) assert(type(predicate) == 'function', 'Expected predicate function') for item in self._iterator() do if not predicate(item) then return false end end return true end --- Checks whether any item of `Iterable` satisfies a predicate. -- @param predicate A function to test each item -- @return `true` if any item of `Iterable` satisfies the predicate; `false` otherwise function Iterable:any(predicate) assert(type(predicate) == 'function', 'Expected predicate function') for item in self._iterator() do if predicate(item) then return true end end return false end --- Evaluation -- @section Evaluation --- Creates a list from `Iterable`. -- @return list containing all items from `Iterable` function Iterable:to_list() local list = {} for item in self:_iterator() do insert(list, item) end return list end --- Creates a dictionary from `Iterable`. -- @return dictionary created from all `KeyValuePair` items of `Iterable` function Iterable:to_dictionary() local dictionary = {} for item in self:_iterator() do if type(item) == 'table' and item.key ~= nil then dictionary[item.key] = item.value end end return dictionary end --- Get the iterator of `Iterable`. -- @return iterator function function Iterable:to_iterator() return self:_iterator() end --- Get the first item of `Iterable` or `nil` if no item is found. -- @return the first item of `Iterable` or `nil` if `Iterable` is empty function Iterable:first_or_nil() return self:first() or nil end --- Get the first item of `Iterable`. -- @return the first item of `Iterable` function Iterable:first() return (self._iterator())() end --- Key/Value Pair -- @section KeyValuePair --- Table holding a key/value pair. -- @table KeyValuePair -- @field key key from the original dictionary -- @field value value from the original dictionary function MT.__call(_, ...) return M.from(...) end return setmetatable(M, MT)
Talk(86, "我是”青城四秀”中的侯人雄.师父常说五岳剑派算什么,等到我们拿到”辟邪剑谱”后,就要他们好看.", "talkname86", 0); do return end;
--[[ _______ ______ ______ _____ _ _ _______ ______ ______ _____ _ _ | |______ |_____] |_____/ | |____/ |_____| |_____] |_____/ | | |____/ |_____ |______ |_____] | \_ __|__ | \_ | | |_____] | \_ |_____| | \_ MIT License Copyright (c) 2018 BinarySpace Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --]] local Brikabrok = LibStub("AceAddon-3.0"):GetAddon("Brikabrok") BrikabrokGOBSAVE = Brikabrok:NewModule("GOBSAVE", "AceHook-3.0") local StdUi = LibStub('StdUi'); function BrikabrokGOBSAVE:OnEnable() Brikabrok.nearestGob = {} Brikabrok.temporaryGob = {} Brikabrok.Origin = vec3(); -- broken need 2 calls, need some fixes function Brikabrok.RefreshData() SendChatMessage(".gps" ,"SAY") end function Brikabrok.IsInSphere(radius, vector) Brikabrok.RefreshData(); Brikabrok.RefreshData(); if (math.pow (vector.x-Brikabrok.plyCoordX,2) + math.pow (vector.y-Brikabrok.plyCoordY,2) + math.pow (vector.z-Brikabrok.plyCoordZ,2)) < math.pow (radius, 2) then return true else return false end end -- CHNGE CHANGE CHANGE CHANGE CHANGE function Brikabrok.findNearest(self,event,msg,...) -- guid if strfind(msg,"Entry: %d") then local parseEntry = string.match(msg, "Entry: %d+"); local realEntry = string.gsub(parseEntry, "Entry: ", ""); local pRemove = string.gsub(msg, "%b()", "") -- remove brackets local wRemove = string.gsub(pRemove, '%b[]', "") --remove square brackets local vRemove = string.gsub(wRemove, "%p", "") --remove some shit local guid = strsplit(" ",vRemove) -- get the guid nicely Brikabrok.nearestGob[guid] = realEntry; end -- pos if strfind(msg,"Orientation:") and strfind(msg,"X:") then local playerCoords = msg:gsub('%s+', '') playerCoords = playerCoords:gsub('X:', '') playerCoords = playerCoords:gsub('Y', '') playerCoords = playerCoords:gsub('Z', '') playerCoords = playerCoords:gsub('Orientation', '') Brikabrok.Origin.x,Brikabrok.Origin.y,Brikabrok.Origin.z, Brikabrok.PlayerOrientation = strsplit(":",playerCoords) end local name = "" local coordinates = {} for word in string.gmatch(msg, "%S+") do if tonumber(word) == nil then name = name.." "..word else tinsert(coordinates, word); end end if ((name ~= nil) and (#coordinates == 8)) then --Brikabrok.RefreshData(); --Brikabrok.RefreshData(); if Brikabrok.currentId ~= nil and name:find("GroundZ") == nil and name:find("Orientation") == nil and Brikabrok.gobBWindow ~= nil then local id = Brikabrok.generateID(); local pos = vec3(coordinates[1],coordinates[2],coordinates[3]); local gobInfo = {}; gobInfo["guid"] = Brikabrok.tempTableSync[1][1]; gobInfo["entry"] = Brikabrok.tempTableSync[1][2]; table.remove(Brikabrok.tempTableSync, 1); --local text = Brikabrok.gobName:GetText(); -- to:do add check if visible gobInfo["name"] = name; gobInfo["pos"] = pos; gobInfo["o"] = coordinates[4]; gobInfo["rx"] = coordinates[5]; gobInfo["ry"] = coordinates[6]; gobInfo["rz"] = coordinates[7]; gobInfo["scale"] = coordinates[8]; Brikabrok.db.profile.savedGobs[Brikabrok.currentId]["sname"] = Brikabrok.saveName:GetText() Brikabrok.db.profile.savedGobs[Brikabrok.currentId][id] = gobInfo; end end end function Brikabrok.ShowSaveFrame() -- Will clean code later here local function GetFileName(url) return url:match("^.+/(.+)$") end local waitTable = {}; local waitFrame = nil; local function wait(delay, func, ...) if(type(delay)~="number" or type(func)~="function") then return false; end if(waitFrame == nil) then waitFrame = CreateFrame("Frame","WaitFrame", UIParent); waitFrame:SetScript("onUpdate",function (self,elapse) local count = #waitTable; local i = 1; while(i<=count) do local waitRecord = tremove(waitTable,i); local d = tremove(waitRecord,1); local f = tremove(waitRecord,1); local p = tremove(waitRecord,1); if(d>elapse) then tinsert(waitTable,i,{d-elapse,f,p}); i = i + 1; else count = count - 1; f(unpack(p)); end end end); end tinsert(waitTable,{delay,func,{...}}); return true; end local function parseGobs() Brikabrok.formatMessage("Récupération des informations ...") Brikabrok.currentId = Brikabrok.generateID(); Brikabrok.db.profile.savedGobs[Brikabrok.currentId] = {} Brikabrok.tempTableSync = {}; local i = 0; for k,v in pairs(Brikabrok.nearestGob) do i = i + 1; Brikabrok.tempTableSync[i] = {k,v} SendChatMessage(".addonhelper brikabrok gobpos "..k) end end local function getGobsList(filter) -- No filter or bad filter local fullTable = {} if Brikabrok.db.profile.savedGobs == nil then Brikabrok.db.profile.savedGobs = {} end if filter == nil or filter:len() == 0 then for _, gob in pairs(Brikabrok.db.profile.savedGobs) do tinsert(fullTable, { name = gob["sname"], real = gob}) end return fullTable; end filter = filter:lower(); local newList = {}; for _, gob in pairs(Brikabrok.db.profile.savedGobs) do if Brikabrok.safeMatch(gob["sname"]:lower(), filter) then tinsert(newList, { name = gob["sname"], pos = gob}) end end return newList; end Brikabrok.gobBWindow = StdUi:Window(UIParent, 'Brikabrok Wayback Machine', 700, 500); Brikabrok.gobBWindow:SetPoint('CENTER'); local searchBox = StdUi:SearchEditBox(Brikabrok.gobBWindow, 400, 30, 'Écrivez le mot clé ici'); searchBox:SetFontSize(16); searchBox:SetScript('OnEnterPressed', function() local input = searchBox:GetText() buildTable = getGobsList(input) Brikabrok.gobBWindow.searchResults:SetData(buildTable, true); end); StdUi:GlueTop(searchBox, Brikabrok.gobBWindow, 20, -50, 'LEFT'); local searchButton = StdUi:Button(Brikabrok.gobBWindow, 80, 30, 'Chercher'); searchButton:SetScript("OnClick", function() local input = searchBox:GetText() buildTable = getGobsList(input) Brikabrok.gobBWindow.searchResults:SetData(buildTable, true); end) StdUi:GlueRight(searchButton, searchBox, 5, 0); local fs = StdUi:FontString(Brikabrok.gobBWindow, 'Nom'); StdUi:GlueTop(fs, Brikabrok.gobBWindow, 0, -30); Brikabrok.BMWL = fs; local addFavoritesButton = StdUi:Button(Brikabrok.gobBWindow, 30, 30, ''); addFavoritesButton.texture = StdUi:Texture(addFavoritesButton, 17, 17, [[Interface\Common\ReputationStar]]); addFavoritesButton.texture:SetPoint('CENTER'); addFavoritesButton.texture:SetBlendMode('ADD'); addFavoritesButton.texture:SetTexCoord(0, 0.5, 0, 0.5); StdUi:GlueRight(addFavoritesButton, searchButton, 5, 0); --[[ if type(v) == "table" then local nP = v["pos"]; local eT = v["entry"]; local oR = v["o"] + math.pi; --SendChatMessage(".addonhelper brikabrok gobaddxyz "..eT.." "..nP.x.." "..nP.y.." "..nP.z.." "..oR) end ]] local cols = { { name = 'Nom', width = 250, align = 'LEFT', index = 'name', format = 'string', events = { OnClick = function(table, cellFrame, rowFrame, rowData, columnData, rowIndex) local minKey = ""; for k,v in pairs(rowData.real) do if type(v) == "table" then minKey = k break; end end --local refentialPos = rowData.real[minKey]["pos"]; for k,v in pairs(rowData.real) do if type(v) == "table" then local nPX = (v["pos"].x); local nPY = (v["pos"].y); local nPZ = (v["pos"].z); local eT = v["entry"]; local oR = Brikabrok.gobScale:GetText(); local rotationX = v["rx"] + Brikabrok.gobOrientationX:GetText(); local rotationY = v["ry"] + Brikabrok.gobOrientationY:GetText(); local rotationZ = v["rz"] + Brikabrok.gobOrientationZ:GetText(); local scale = v["scale"]; if rotationX > 360 then rotationX = rotationX - 360 elseif rotationY > 360 then rotationY = rotationY - 360 elseif rotationZ > 360 then rotationZ = rotationZ - 360 end --local oR = v["o"] + math.pi + math.rad(Brikabrok.gobOrientation:GetText()); SendChatMessage(".addonhelper brikabrok gobaddxyz "..eT.." "..nPX.." "..nPY.." "..nPZ.." "..oR.. " "..rotationX.. " "..rotationY.." ".. rotationZ.. " " .. scale) end end end, }, }, } Brikabrok.gobBWindow.searchResults = StdUi:ScrollTable(Brikabrok.gobBWindow, cols, 8, 40); Brikabrok.gobBWindow.searchResults:EnableSelection(true); StdUi:GlueBelow(Brikabrok.gobBWindow.searchResults, searchBox, 0, - 40, 'LEFT') ; local selectionButton = StdUi:Button(Brikabrok.gobBWindow, 100, 30, 'Spawn'); selectionButton:SetScript("OnClick", function() end) StdUi:GlueBelow(selectionButton, Brikabrok.gobBWindow.searchResults, 0, -10, 'CENTER') ; local radius = StdUi:NumericBox(Brikabrok.gobBWindow, 150, 24, 15); radius:SetMaxValue(5000); radius:SetMinValue(1); StdUi:GlueTop(radius, Brikabrok.gobBWindow, -180, -135, 'RIGHT'); Brikabrok.saveName = StdUi:EditBox(Brikabrok.gobBWindow, 150, 24, "Sauvegarde X"); StdUi:GlueBelow(Brikabrok.saveName, radius, 0, -10); local label = StdUi:AddLabel(Brikabrok.gobBWindow, radius, 'Rayon', 'TOP'); local button = StdUi:Button(Brikabrok.gobBWindow, 100, 20, 'Récupérer'); StdUi:GlueBelow(button, radius, 20, -40, 'LEFT'); button:SetScript("OnClick", function() if Brikabrok.db.profile.savedGobs == nil then Brikabrok.db.profile.savedGobs = {} end Brikabrok.nearestGob = {} Brikabrok.formatMessage("Récupération de la liste de gobs ...") SendChatMessage(".gob near "..radius:GetText()); wait(2.5, parseGobs) end) Brikabrok.gobOrientationX = StdUi:NumericBox(Brikabrok.gobBWindow, 150, 24, 0); Brikabrok.gobOrientationX:SetMaxValue(360); Brikabrok.gobOrientationX:SetMinValue(0); StdUi:GlueBelow(Brikabrok.gobOrientationX, radius, 0, -95); Brikabrok.gobOrientationY = StdUi:NumericBox(Brikabrok.gobBWindow, 150, 24, 0); Brikabrok.gobOrientationY:SetMaxValue(360); Brikabrok.gobOrientationY:SetMinValue(0); StdUi:GlueBelow(Brikabrok.gobOrientationY, Brikabrok.gobOrientationX, 0, -20); Brikabrok.gobOrientationZ = StdUi:NumericBox(Brikabrok.gobBWindow, 150, 24, 0); Brikabrok.gobOrientationZ:SetMaxValue(360); Brikabrok.gobOrientationZ:SetMinValue(0); StdUi:GlueBelow(Brikabrok.gobOrientationZ, Brikabrok.gobOrientationY, 0, -20); Brikabrok.gobScale = StdUi:NumericBox(Brikabrok.gobBWindow, 150, 24, 0); StdUi:GlueBelow(Brikabrok.gobScale, Brikabrok.gobOrientationZ, 0, -20); local label = StdUi:AddLabel(Brikabrok.gobBWindow, Brikabrok.gobOrientationX, "Modificaton d'orientation X", 'TOP'); local label2 = StdUi:AddLabel(Brikabrok.gobBWindow, Brikabrok.gobOrientationY, "Modificaton d'orientation Y", 'TOP'); local label3 = StdUi:AddLabel(Brikabrok.gobBWindow, Brikabrok.gobOrientationZ, "Modificaton d'orientation Z", 'TOP'); local label4 = StdUi:AddLabel(Brikabrok.gobBWindow, Brikabrok.gobScale, "Modificaton de Scale", 'TOP'); -- Label local xL = StdUi:FontString(Brikabrok.gobBWindow, 'X: '); StdUi:GlueTop(xL, Brikabrok.gobBWindow, -150, -135, 'RIGHT'); local yL = StdUi:FontString(Brikabrok.gobBWindow, 'Y:'); StdUi:GlueBelow(yL, xL, 0, -10); local zL = StdUi:FontString(Brikabrok.gobBWindow, 'Z:'); StdUi:GlueBelow(zL, yL, 0, -10); -- Actual coordinates local x = StdUi:FontString(Brikabrok.gobBWindow, '0'); StdUi:GlueRight(x, xL, 0, 0); local y = StdUi:FontString(Brikabrok.gobBWindow, '0'); StdUi:GlueRight(y, yL, 0, 0); local z = StdUi:FontString(Brikabrok.gobBWindow, '0'); StdUi:GlueRight(z, zL, 0, 0); local gps = StdUi:Button(Brikabrok.gobBWindow, 100, 20, 'GPS'); StdUi:GlueBelow(gps, zL, 15, -10, 'LEFT'); gps:SetScript("OnClick", function() Brikabrok.RefreshData() x:SetText(Brikabrok.Origin.x) y:SetText(Brikabrok.Origin.y) z:SetText(Brikabrok.Origin.z) end) local allSaves = getGobsList(""); Brikabrok.gobBWindow.searchResults:SetData(allSaves, true); end function Brikabrok:commandSAVE(input) Brikabrok.ShowSaveFrame() end for k, v in pairs({"EMOTE", "GUILD", "OFFICER", "PARTY", "PARTY_LEADER", "RAID", "RAID_LEADER", "SAY", "SYSTEM", "WHISPER", "WHISPER_INFORM", "YELL"}) do ChatFrame_AddMessageEventFilter("CHAT_MSG_"..v, Brikabrok.findNearest) end end
--- Templates for various terminal configuration formats vim.cmd("packadd lush.nvim") local lush = require("lush") local uv = vim.loop -- Reload melange module local function get_colorscheme(variant) package.loaded["melange"] = nil vim.opt.background = variant return require("melange") end -- Get the directory where the melange plugin is located local function get_melange_dir() return debug.getinfo(1).source:match("@?(.*/)"):gsub("/lua/melange/$", "") end -- Write a string to a file local function fwrite(str, file) local fd = assert(uv.fs_open(file, "w", 420), "Failed to write to file " .. file) -- 0o644 uv.fs_write(fd, str, -1) assert(uv.fs_close(fd)) end local function mkdir(dir) return assert(uv.fs_mkdir(dir, 493), "Failed to create directory " .. dir) -- 0o755 end -- Perl-like interpolation local function interpolate(str, tbl) return str:gsub("%$([%w_]+)", function(k) return tostring(tbl[k]) end) end -- Turn melange naming conventions into more common ANSI names local function get_palette16(variant) local colors = get_colorscheme(variant).Melange.lush -- stylua: ignore return { bg = colors.a.bg, fg = colors.a.fg, black = colors.a.overbg, red = colors.c.red, green = colors.c.green, yellow = colors.b.yellow, blue = colors.b.blue, magenta = colors.c.magenta, cyan = colors.c.cyan, white = colors.a.com, brblack = colors.a.sel, brred = colors.b.red, brgreen = colors.b.green, bryellow = colors.b.yellow, brblue = colors.b.blue, brmagenta = colors.b.magenta, brcyan = colors.b.cyan, brwhite = colors.a.faded, } end local function get_palette24(variant) local colors = get_colorscheme(variant).Melange.lush -- stylua: ignore return { bg = colors.a.bg, fg = colors.a.fg, dark_black = colors.a.bg, dark_red = colors.d.red, dark_green = colors.d.green, dark_yellow = colors.d.yellow, dark_blue = colors.d.blue, dark_magenta = colors.d.magenta, dark_cyan = colors.d.cyan, dark_white = colors.a.com, black = colors.a.overbg, red = colors.c.red, green = colors.c.green, yellow = colors.c.yellow, blue = colors.c.blue, magenta = colors.c.magenta, cyan = colors.c.cyan, white = colors.a.faded, bright_black = colors.a.sel, bright_red = colors.b.red, bright_green = colors.b.green, bright_yellow = colors.b.yellow, bright_blue = colors.b.blue, bright_magenta = colors.b.magenta, bright_cyan = colors.b.cyan, bright_white = colors.a.fg, } end local function build_json(l) for _, l in pairs({ "dark", "light" }) do fwrite( vim.json.encode(vim.tbl_map(tostring, get_palette16(l))), get_melange_dir() .. string.format("/palette/melange_%s16.json", l) ) fwrite( vim.json.encode(vim.tbl_map(tostring, get_palette16(l))), get_melange_dir() .. string.format("/palette/melange_%s24.json", l) ) end end local vim_term_colors = [[ let g:terminal_color_0 = '$black' let g:terminal_color_1 = '$red' let g:terminal_color_2 = '$green' let g:terminal_color_3 = '$yellow' let g:terminal_color_4 = '$blue' let g:terminal_color_5 = '$magenta' let g:terminal_color_6 = '$cyan' let g:terminal_color_7 = '$white' let g:terminal_color_8 = '$brblack' let g:terminal_color_9 = '$brred' let g:terminal_color_10 = '$brgreen' let g:terminal_color_11 = '$bryellow' let g:terminal_color_12 = '$brblue' let g:terminal_color_13 = '$brmagenta' let g:terminal_color_14 = '$brcyan' let g:terminal_color_15 = '$brwhite' ]] local viml_template = [[ " THIS FILE WAS AUTOMATICALLY GENERATED hi clear syntax reset set t_Co=256 let g:colors_name = 'melange' if &background == 'dark' $dark_term $dark else $light_term $light endif ]] local function build_viml(l) local vimcolors = {} for _, l in ipairs({ "dark", "light" }) do -- Compile lush table, concatenate to a single string, and remove blend property vimcolors[l] = table.concat(vim.fn.sort(lush.compile(get_colorscheme(l), { exclude_keys = { "blend" } })), "\n") vimcolors[l .. "_term"] = interpolate(vim_term_colors, get_palette16(l)) end return fwrite(interpolate(viml_template, vimcolors), get_melange_dir() .. "/colors/melange.vim") end local function build(terminals) for _, l in ipairs({ "dark", "light" }) do local palette = get_palette16(l) for term, attrs in pairs(terminals) do local dir = get_melange_dir() .. "/term/" .. term if not uv.fs_stat(dir) then mkdir(dir) end fwrite(interpolate(attrs.template, palette), string.format("%s/melange_%s%s", dir, l, attrs.ext)) end end end local terminals = { alacritty = { ext = ".yml" }, kitty = { ext = ".conf" }, terminator = { ext = ".config" }, termite = { ext = "" }, wezterm = { ext = ".toml" }, } terminals.alacritty.template = [[ colors: primary: foreground: '$fg' background: '$bg' normal: black: '$black' red: '$red' green: '$green' yellow: '$yellow' blue: '$blue' magenta: '$magenta' cyan: '$cyan' white: '$white' bright: black: '$brblack' red: '$brred' green: '$brgreen' yellow: '$bryellow' blue: '$brblue' magenta: '$brmagenta' cyan: '$brcyan' white: '$brwhite' ]] terminals.kitty.template = [[ background $bg foreground $fg cursor $fg url_color $blue selection_background $brblack selection_foreground $fg tab_bar_background $black active_tab_background $black active_tab_foreground $yellow inactive_tab_background $black inactive_tab_foreground $brwhite color0 $black color1 $red color2 $green color3 $yellow color4 $blue color5 $magenta color6 $cyan color7 $white color8 $brblack color9 $brred color10 $brgreen color11 $bryellow color12 $brblue color13 $brmagenta color14 $brcyan color15 $brwhite ]] terminals.terminator.template = [=[ [[melange]] background_color = "$bg" cursor_color = "$fg" foreground_color = "$fg" palette = "$black:$red:$green:$yellow:$blue:$magenta:$cyan:$white:$brblack:$brred:$brgreen:$bryellow:$brblue:$brmagenta:$brcyan:$brwhite" ]=] terminals.termite.template = [[ [colors] foreground = $fg background = $bg color0 = $black color1 = $red color2 = $green color3 = $yellow color4 = $blue color5 = $magenta color6 = $cyan color7 = $white color8 = $brblack color9 = $brred color10 = $brgreen color11 = $bryellow color12 = $brblue color13 = $brmagenta color14 = $brcyan color15 = $brwhite highlight = $sel ]] terminals.wezterm.template = [[ [colors] foreground = "$fg" background = "$bg" cursor_bg = "$fg" cursor_border = "$fg" cursor_fg = "$bg" selection_bg = "$brblack" selection_fg = "$fg" ansi = ["$black", "$red", "$green", "$yellow", "$blue", "$magenta", "$cyan", "$white"] brights = ["$brblack", "$brred", "$brgreen", "$bryellow", "$brblue", "$brmagenta", "$brcyan", "$brwhite"] ]] return { build = function() build(terminals) build_viml() build_json() end, }
object_draft_schematic_furniture_wod_pro_sm_tree_06 = object_draft_schematic_furniture_shared_wod_pro_sm_tree_06:new { } ObjectTemplates:addTemplate(object_draft_schematic_furniture_wod_pro_sm_tree_06, "object/draft_schematic/furniture/wod_pro_sm_tree_06.iff")
local csi = require('luabox.util').csi --- module Allows for switching between the main and alternative screen buffers --- --- This buffer only exists on xterm compatible terminals ---@class screen ---@field public toAlternative string Switch to the alternative screen ---@field public toMain string Switch to the main screen local screen = { toAlternative = csi('?1049h'), toMain = csi('?10491') } return screen
local a function test() a = 10 end jit("compile", test) test() assert(a == 10) --[[ function <../tests/9_OP_SETUPVAL.lua:2,4> (3 instructions at 0x9f2600) 0 params, 2 slots, 1 upvalue, 0 locals, 1 constant, 0 functions 1 [3] LOADK 0 -1 ; 10 2 [3] SETUPVAL 0 0 ; a 3 [4] RETURN 0 1 constants (1) for 0x9f2600: 1 10 locals (0) for 0x9f2600: upvalues (1) for 0x9f2600: 0 a 1 0 ]] --[[ ra = R(0); ci->u.l.savedpc = &cl->p->code[2]; Y_luaV_setupval(L, cl, ra, 0); ]]
local Area = require("api.Area") local TestUtil = require("api.test.TestUtil") local Map = require("api.Map") local ElonaCommand = require("mod.elona.api.ElonaCommand") local Assert = require("api.test.Assert") local Feat = require("api.Feat") local IFeat = require("api.feat.IFeat") disable("Flaky due to items blocking stairs, so the player is not placed directly on them (#297)") function test_map_entrance_sets_child_area_position() local north_tyris_area = Area.create_unique("elona.north_tyris", "root") local _, north_tyris_map = assert(north_tyris_area:load_or_generate_floor(north_tyris_area:starting_floor())) local tower_of_fire_area = Area.create_unique("elona.tower_of_fire", north_tyris_area) Feat.iter(north_tyris_map):each(IFeat.remove_ownership) Area.create_entrance(tower_of_fire_area, 1, 43, 4, {}, north_tyris_map) local x, y, floor = Area.parent(tower_of_fire_area):child_area_position(tower_of_fire_area) Assert.eq(43, x) Assert.eq(4, y) Assert.eq(1, floor) local player = TestUtil.set_player(north_tyris_map, 43, 4) Map.set_map(north_tyris_map) ElonaCommand.descend(player) Assert.eq(tower_of_fire_area, Area.current()) x, y, floor = Area.parent(tower_of_fire_area):child_area_position(tower_of_fire_area) Assert.eq(43, x) Assert.eq(4, y) Assert.eq(1, floor) ElonaCommand.ascend(player) Assert.eq(north_tyris_area, Area.current()) Assert.eq(43, player.x) Assert.eq(4, player.y) Assert.eq(1, Map.floor_number(player:current_map())) north_tyris_map = player:current_map() local feat = Area.create_entrance(tower_of_fire_area, 1, 50, 20, {}, north_tyris_map) Assert.is_truthy(feat) Assert.eq(50, feat.x) Assert.eq(20, feat.y) Assert.eq(tower_of_fire_area.uid, feat.params.area_uid) Assert.eq(1, feat.params.area_floor) x, y, floor = Area.parent(tower_of_fire_area):child_area_position(tower_of_fire_area) Assert.eq(43, x) Assert.eq(4, y) Assert.eq(1, floor) Map.save(north_tyris_map) player:set_pos(50, 20) ElonaCommand.descend(player) Assert.eq(tower_of_fire_area, Area.current()) x, y, floor = Area.parent(tower_of_fire_area):child_area_position(tower_of_fire_area) Assert.eq(50, x) Assert.eq(20, y) Assert.eq(1, floor) ElonaCommand.ascend(player) Assert.eq(north_tyris_area, Area.current()) Assert.eq(50, player.x) Assert.eq(20, player.y) Assert.eq(1, Map.floor_number(player:current_map())) x, y, floor = Area.parent(tower_of_fire_area):child_area_position(tower_of_fire_area) Assert.eq(50, x) Assert.eq(20, y) Assert.eq(1, floor) end function test_material_spot_finalized_events() local spring = Feat.create("elona.material_spot", nil, nil, {params={material_spot_info="elona.spring"},ownerless=true}) local bush = Feat.create("elona.material_spot", nil, nil, {params={material_spot_info="elona.bush"},ownerless=true}) Assert.eq("elona.feat_material_fish", spring.image) Assert.eq("elona.feat_material_plant", bush.image) end
local ThroneRoom = File:extend() function ThroneRoom:new(text) ThroneRoom.super.new(self, "castle") Art.new(self, "throne_room") self.player.health = 100 self:setText([[[username] открыла две большие двери, и она обнаружила себя внутри огромной комнаты. В конце комнаты стоял трон, на котором сидел скелет. Скелет шевельнулся. Он говорящий. "Кто там ходит?- сказал он.]]) self:setOptions({ { text = [["Отдай мне этот меч!"]], response = [["Что? Отдать тебе мой драгоценный Кровавый Меч?- сказал скелет. "Ты точно такой же, как тот парень 30 лет назад."]], options = { { text = [["Если ты не отдашь мне меч, мне придется убить тебя."]], response = [["Убить меня?!" - сердито крикнул скелет. "Ты смеешь даже предполагать, что можешь освободить меня от проклятия, которое я наложил на себя? Тогда пойдем. Я покажу тебе то, чего я желаю больше всего. Смерти."]], options = { { text = "Сразиться с королем скелетов.", func = F(self, "fight") } } }, { text = [["О ком ты говоришь?"]], response = [["Дурачок один. Ему повезло, что он смог убежать с простым шрамом. После всех этих лет я все еще смеюсь, думая об этом." И действительно, скелет рассмеялся.]], remove = true } }, }, { text = [["Моё имя [username]."]], response = [["Приветствую, [username]. Меня зовут Лорд Теодор IV, Бессмертный, бросающий вызов смерти, Лорд кости, Король скелетов. Что такой ребенок, как ты, ищет в моем чудовищном замке?"]], remove = true } }) end function ThroneRoom:fight() self.dead = true Game:replaceFile("castle", require("skeleton_king")("castle", "skeleton_king_defeat")) end return ThroneRoom
local skynet = require 'skynet.manager' local log = require 'utils.log' local rtc = require 'hwtest.other.rtc' local leds = require 'hwtest.leds' local ping = require 'hwtest.ethernet.ping' local master_slave = require 'hwtest.stream.master_slave' local serial = require 'hwtest.stream.serial' local tests = {} function tests.test_serial() local ports = serial:new() local s1 = { port = '/dev/ttyS1', baudrate = 115200 } local s2 = { port = '/dev/ttyS2', baudrate = 115200 } ports:open(s1, s2) local r, reports = ports:run(master_slave:new(16, 256)) if not r then log.debug("serial failed") return false end log.debug('Serial passed', reports.master.passed, reports.slave.passed) return reports.master.passed >= 10 and reports.slave.passed >= 10 end local function ping_check(ip) assert(ip) local ping_ok = false for i = 1, 5 do if ping(ip) then ping_ok = true break end skynet.sleep(100) end if not ping_ok then log.error("Ping", ip, "Failed") return false, "Ping "..ip.." failed!" end return ping_ok end function tests.test_eth0() skynet.sleep(700) return ping_check('192.168.1.1') end function tests.test_eth1() skynet.sleep(600) local ping_ok = ping_check('192.168.2.1') if not ping_ok then return false, "Ping failed" end local usb_eth = require 'hwtest.gpio.usb_eth' return usb_eth('eth1', '0b95:772b') end function tests.test_modem() skynet.sleep(500) local ping_ok = ping_check('114.114.114.114') if not ping_ok then log.error("Modem network is not ready") return false, "Modem network is not ready" end local modem = require 'hwtest.gpio.modem' return modem('pcie', '2c7c:0125') end function tests.test_rtc() skynet.sleep(1000) return rtc() end function tests.test_emmc() return true end function tests.test_eeprom() return true end function tests.test_button() return true end function tests.test_led() skynet.sleep(500) skynet.fork(function() leds('kooiot:green:cloud') end) skynet.fork(function() leds('kooiot:green:bs') end) skynet.fork(function() leds('kooiot:green:gs') end) skynet.fork(function() leds('kooiot:green:modem') end) skynet.fork(function() leds('kooiot:green:status') end) return true end local function _leds_on(led_name) local on_cmd = 'echo 255 > /sys/class/leds/'..led_name..'/brightness' os.execute(on_cmd) end local function leds_on() _leds_on('kooiot:green:cloud') _leds_on('kooiot:green:bs') _leds_on('kooiot:green:gs') _leds_on('kooiot:green:modem') _leds_on('kooiot:green:status') end local function _leds_blink(led_name) local cmd = 'echo heartbeat > /sys/class/leds/'..led_name..'/trigger' os.execute(cmd) end local function leds_blink() _leds_blink('kooiot:green:cloud') _leds_blink('kooiot:green:bs') _leds_blink('kooiot:green:gs') _leds_blink('kooiot:green:modem') _leds_blink('kooiot:green:status') end return { tests = tests, finish = function(success) if success then leds_on() if os.getenv('IOE_HWTEST_FINISH_HALT') then log.notice("Halt hardware two seconds later!!") skynet.timeout(200, function() log.notice("Halt hardware now!!") os.execute('halt') end) else log.notice("Abort FreeIOE two seconds later!!") skynet.timeout(200, function() log.notice("FreeIOE closing!!!") skynet.abort() end) end else leds_blink() log.notice("Hardware test failed!!!! Abort FreeIOE two seconds later!!") skynet.timeout(200, function() log.notice("FreeIOE closing!!!") skynet.abort() end) end end, }
local match_record_pin_map = require("qnFiles/qnPlist/hall/match_record_pin"); local match_hall_record_share_layout= { name="match_hall_record_share_layout",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignTopLeft,fillParentWidth=1,fillParentHeight=1, { name="contentBg",type=0,typeName="Image",time=103372243,x=0,y=0,width=260,height=249,nodeAlign=kAlignCenter,visible=1,fillParentWidth=0,fillParentHeight=0,file="hall/common/popup_bg.png",gridLeft=25,gridRight=25,gridTop=25,gridBottom=25, { name="momentBtn",type=0,typeName="Button",time=103372339,x=0,y=0,width=2,height=83,nodeAlign=kAlignTop,visible=1,fillParentWidth=1,fillParentHeight=0,file="isolater/bg_blank.png", { name="img",type=0,typeName="Image",time=115905307,x=-50,y=0,width=50,height=43,nodeAlign=kAlignCenter,visible=1,fillParentWidth=0,fillParentHeight=0,file=match_record_pin_map['share_moment.png'], { name="text",type=0,typeName="Text",time=115905308,x=55,y=0,width=1,height=40,nodeAlign=kAlignLeft,visible=1,fillParentWidth=0,fillParentHeight=0,string=[[ 朋友圈 ]],fontSize=24,textAlign=kAlignLeft,colorRed=255,colorGreen=240,colorBlue=219 } } }, { name="wechatBtn",type=0,typeName="Button",time=103372503,x=0,y=0,width=2,height=83,nodeAlign=kAlignCenter,visible=1,fillParentWidth=1,fillParentHeight=0,file="isolater/bg_blank.png", { name="img",type=0,typeName="Image",time=115905294,x=-50,y=0,width=50,height=43,nodeAlign=kAlignCenter,visible=1,fillParentWidth=0,fillParentHeight=0,file=match_record_pin_map['share_wechat.png'], { name="text",type=0,typeName="Text",time=115905295,x=55,y=0,width=1,height=40,nodeAlign=kAlignLeft,visible=1,fillParentWidth=0,fillParentHeight=0,string=[[微信好友]],fontSize=24,textAlign=kAlignLeft,colorRed=255,colorGreen=240,colorBlue=219 } } }, { name="gameBtn",type=0,typeName="Button",time=103372505,x=0,y=0,width=2,height=83,nodeAlign=kAlignBottom,visible=1,fillParentWidth=1,fillParentHeight=0,file="isolater/bg_blank.png", { name="img",type=0,typeName="Image",time=115905362,x=-50,y=0,width=50,height=43,nodeAlign=kAlignCenter,visible=1,fillParentWidth=0,fillParentHeight=0,file=match_record_pin_map['share_game.png'], { name="text",type=0,typeName="Text",time=115905363,x=50,y=0,width=1,height=40,nodeAlign=kAlignLeft,visible=1,fillParentWidth=0,fillParentHeight=0,string=[[游戏好友]],fontSize=24,textAlign=kAlignLeft,colorRed=255,colorGreen=240,colorBlue=219 } } }, { name="lineView",type=0,typeName="View",time=110115261,x=0,y=0,width=64,height=64,nodeAlign=kAlignTopLeft,visible=1,fillParentWidth=0,fillParentHeight=0,fillTopLeftX=5,fillBottomRightX=5,fillBottomRightY=0,fillTopLeftY=0, { name="line1",type=0,typeName="Image",time=110031596,x=0,y=84,width=483,height=2,nodeAlign=kAlignTop,visible=1,fillParentWidth=1,fillParentHeight=0,file="hall/common/popup_line.png" }, { name="line2",type=0,typeName="Image",time=110031698,x=0,y=84,width=483,height=2,nodeAlign=kAlignBottom,visible=1,fillParentWidth=1,fillParentHeight=0,file="hall/common/popup_line.png" } } } } return match_hall_record_share_layout;
--[[ Copyright (c) 2009 Bart Bes Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] local class_mt = {} function class_mt:__index(key) if rawget(self, "__baseclass") then return self.__baseclass[key] end return nil end class = setmetatable({ __baseclass = {} }, class_mt) function class:new(...) local c = {} c.__baseclass = self setmetatable(c, getmetatable(self)) if c.init then c:init(...) end return c end function class:convert(t) t.__baseclass = self setmetatable(t, getmetatable(self)) return t end function class:addparent(...) if not rawget(self.__baseclass, "__isparenttable") then local t = {__isparenttable = true, self.__baseclass, ...} local mt = {} function mt:__index(key) for i, v in pairs(self) do if i ~= "__isparenttable" and v[key] then return v[key] end end return nil end self.__baseclass = setmetatable(t, mt) else for i, v in ipairs{...} do table.insert(self.__baseclass, v) end end return self end function class:setmetamethod(name, value) local mt = getmetatable(self) local newmt = {} for i, v in pairs(mt) do newmt[i] = v end newmt[name] = value setmetatable(self, newmt) end
local skynet = require "skynet" require "skynet.manager" -- import skynet.register local roomList = {} local CMD = {} function CMD.getRoomList() skynet.ret(skynet.pack(roomList)) --return roomList end skynet.start(function() local LandlordRoom = skynet.newservice("LandlordRoom") skynet.error("start LandlordRoom="..tostring(LandlordRoom)) table.insert(roomList, LandlordRoom) -- If you want to fork a work thread , you MUST do it in CMD.login skynet.dispatch("lua", function(session, source, command, ...) skynet.error("roomList command="..tostring(command)) local f = assert(CMD[command]) f() --skynet.ret(skynet.pack(f(source, ...))) end) skynet.register "GameRoomList" end)
return {'wereldbank','werelddierendag','wereldgezondheidsorganisatie','wereldhandelsorganisatie','wereldomroep','wereldvoetbalbond','werd','wereld','wereldatlas','wereldbedrijf','wereldbeeld','wereldbeheerser','wereldbekend','wereldbekendheid','wereldbeker','wereldbekercircuit','wereldbekercyclus','wereldbekerfinale','wereldbekerklassement','wereldbekerstand','wereldbekerstrijd','wereldbekertoernooi','wereldbekerwedstrijd','wereldbekerwinnaar','wereldberoemd','wereldberoemdheid','wereldbeschouwelijk','wereldbeschouwing','wereldbeschrijving','wereldbevolking','wereldbewoner','wereldbol','wereldbond','wereldboom','wereldbrand','wereldburger','wereldburgeres','wereldburgerschap','wereldcentrum','wereldcinema','wereldconcern','wereldconferentie','wereldconflict','wereldcongres','wereldcrisis','wereldcup','werelddeel','wereldeconomie','wereldeconomisch','wereldelftal','werelderfgoed','werelderfgoedlijst','wereldexpo','wereldexport','wereldfaam','wereldfederatie','wereldfirma','wereldformaat','wereldforum','wereldgebeuren','wereldgebeurtenis','wereldgeestelijke','wereldgemeenschap','wereldgemiddelde','wereldgericht','wereldgeschiedenis','wereldgodsdienst','wereldgroei','wereldgroep','wereldhandel','wereldhandelsakkoord','wereldhandelsconferentie','wereldhandelsronde','wereldhandelssysteem','wereldhaven','wereldheerschappij','wereldhegemonie','wereldhistorie','wereldhistorisch','wereldhit','wereldindex','wereldinkomen','wereldje','wereldkaart','wereldkampioen','wereldkampioene','wereldkampioenschap','wereldkampioenschapsmatch','wereldkampioenskandidaat','wereldkennis','wereldkerk','wereldklasse','wereldklimaat','wereldklimaatconferentie','wereldklimaatverdrag','wereldkundig','wereldleed','wereldleider','wereldleiderschap','wereldlijk','wereldlijst','wereldling','wereldliteratuur','wereldlitteratuur','wereldmacht','wereldmarkt','wereldmarktaandeel','wereldmarktleider','wereldmarktniveau','wereldmarktprijs','wereldmedia','wereldmerk','wereldmuziek','wereldmuziekfestival','wereldnaam','wereldnieuws','wereldniveau','wereldoliemarkt','wereldomspannend','wereldomvattend','wereldontvanger','wereldoorlog','wereldopinie','wereldorde','wereldorganisatie','wereldorientatie','wereldpers','wereldpodium','wereldpolitiek','wereldpopulatie','wereldpremiere','wereldprestatie','wereldprimeur','wereldprobleem','wereldproblematiek','wereldproducent','wereldproductie','wereldraad','wereldraadsel','wereldramp','wereldranglijst','wereldrecessie','wereldrecord','wereldrecordhouder','wereldrecordhoudster','wereldrecordpoging','wereldrecordrace','wereldrecordtijd','wereldregering','wereldreis','wereldreiziger','wereldreligie','wereldreputatie','wereldrevolutie','wereldrijk','wereldroem','wereldrond','werelds','wereldsamenleving','wereldschaal','wereldschepper','wereldschokkend','wereldsgezind','wereldsheid','wereldsituatie','wereldsnelheidsrecord','wereldspelen','wereldspeler','wereldsport','wereldstad','wereldstandaard','wereldstelsel','wereldster','wereldstreek','wereldsucces','wereldsysteem','wereldtaal','wereldtentoonstelling','wereldterrorisme','wereldtijd','wereldtitel','wereldtitelgevecht','wereldtitelstrijd','wereldtoneel','wereldtop','wereldtopper','wereldtournee','werelduurrecord','wereldverbeteraar','wereldverbetering','wereldverbond','wereldverbruik','wereldverkeer','wereldvermaard','wereldveroveraar','wereldvlak','wereldvoedselprobleem','wereldvoedselproductie','wereldvoedselprogramma','wereldvoedselsituatie','wereldvoedselvoorziening','wereldvoetbal','wereldvoetballer','wereldvoorraad','wereldvraag','wereldvrede','wereldvreemd','wereldvreemdheid','wereldwijd','wereldwijs','wereldwijsheid','wereldwinkel','wereldwonder','wereldzee','wereldziel','weren','werf','werfbrief','werfbureau','werfdepot','werfgeld','werfkantoor','werfkracht','werfleider','werfofficier','werfreserve','wering','werk','werkaanbieding','werkaanbod','werkadres','werkafspraak','werkbaar','werkbaarheid','werkbaas','werkbak','werkbalk','werkbank','werkbeest','werkbegeleiding','werkbelasting','werkbeleving','werkbemiddeling','werkbemiddelingsbureau','werkbenadering','werkbesparend','werkbespreking','werkbestand','werkbeurs','werkbezoek','werkbij','werkbijeenkomst','werkblad','werkboek','werkboot','werkbriefje','werkbroek','werkclassificatie','werkcollege','werkcomite','werkconferentie','werkcoupe','werkcultuur','werkdag','werkdefinitie','werkdiner','werkdiskette','werkdocument','werkdoos','werkdrift','werkdruk','werkduur','werkeenheid','werkeiland','werkelijk','werkelijkheid','werkelijkheidsbesef','werkelijkheidsgehalte','werkelijkheidswaarde','werkelijkheidszin','werkeloos','werkeloosheid','werkeloosheidsuitkering','werkeloosheidsverzekering','werkeloze','werkelozensteun','werken','werkend','werkende','werker','werkervaring','werkervaringsplaats','werkervaringsproject','werkethiek','werkezel','werkformulier','werkgarantie','werkgebied','werkgeefster','werkgeheugen','werkgelegenheid','werkgelegenheidsafspraak','werkgelegenheidsakkoord','werkgelegenheidsaspect','werkgelegenheidsbeleid','werkgelegenheidsbevorderend','werkgelegenheidscreatie','werkgelegenheidseffect','werkgelegenheidsfonds','werkgelegenheidsgarantie','werkgelegenheidsgraad','werkgelegenheidsgroei','werkgelegenheidsontwikkeling','werkgelegenheidspact','werkgelegenheidsplan','werkgelegenheidspolitiek','werkgelegenheidsprobleem','werkgelegenheidsprogramma','werkgelegenheidsproject','werkgelegenheidssituatie','werkgelegenheidstop','werkgemeenschap','werkgever','werkgeversaandeel','werkgeversbestand','werkgeversbijdrage','werkgeverschap','werkgeversclub','werkgeversclubs','werkgeversdeel','werkgeversdelegatie','werkgeversfederatie','werkgeversfront','werkgeverskant','werkgeverskoepel','werkgeverskring','werkgeverslasten','werkgeversorganisatie','werkgeverspremie','werkgeversstandpunt','werkgeversverbond','werkgeversvereniging','werkgeversverklaring','werkgeversvertegenwoordiger','werkgeversvoorzitter','werkgeverswereld','werkgeverszijde','werkgroep','werkgroeplid','werkhanden','werkhervatting','werkhoek','werkhoogte','werkhouding','werkhuis','werkhypothese','werkindeling','werking','werkingsduur','werkingskosten','werkingsmechanisme','werkingsplan','werkingsplannen','werkingsprincipe','werkingssfeer','werkingstoelage','werkingsveld','werkingsverslag','werkinhoudelijk','werkinrichting','werkinstructie','werkinstrument','werkjaar','werkje','werkkamer','werkkamp','werkkapitaal','werkkast','werkkiel','werkkledij','werkkleding','werkkleren','werkklimaat','werkkopie','werkkracht','werkkring','werklast','werkleider','werklieden','werkliedenverbond','werklijn','werklijst','werkloon','werkloos','werkloosheid','werkloosheidcijfer','werkloosheidsbestrijding','werkloosheidscijfer','werkloosheidsdaling','werkloosheidsduur','werkloosheidsfonds','werkloosheidsgraad','werkloosheidsniveau','werkloosheidspercentage','werkloosheidsprobleem','werkloosheidsproblematiek','werkloosheidsuitkering','werkloosheidsval','werkloosheidsvergoeding','werkloosheidsverzekering','werkloosheidsvoorziening','werkloosheidswet','werkloze','werklozenbestand','werklozencontrole','werklozenkas','werklozensteun','werklui','werklunch','werklust','werklustig','werkmaatschappij','werkman','werkmansbroek','werkmanswoning','werkmap','werkmateriaal','werkmeester','werkmeid','werkmens','werkmensen','werkmethode','werkmethodiek','werkmeubel','werkmeubelen','werkmier','werkmilieu','werknaam','werkneemster','werknemer','werknemersaandeel','werknemersbelang','werknemersbestand','werknemersbijdrage','werknemerscommissaris','werknemerskant','werknemersorganisatie','werknemersparticipatie','werknemerspremie','werknemersvereniging','werknemersverklaring','werknemersvertegenwoordiger','werknemersvertegenwoordiging','werknemersverzekering','werknemerszelfbestuur','werknemerszijde','werkobject','werkomgeving','werkomstandigheden','werkonbekwaam','werkonbekwaamheid','werkonderbreking','werkongeval','werkontbijt','werkonwillige','werkopdracht','werkorganisatie','werkos','werkoverleg','werkpaard','werkpak','werkpakket','werkpaleis','werkpauze','werkperiode','werkplaats','werkplan','werkplanning','werkplek','werkplezier','werkplicht','werkploeg','werkplunje','werkpraktijk','werkprestatie','werkproces','werkprogram','werkprogramma','werkproject','werkprotocol','werkput','werkrechter','werkrechtersraad','werkrelatie','werkritme','werkrooster','werkruimte','werkschema','werkschoen','werkschrift','werkschuw','werksfeer','werksituatie','werkslaaf','werksoort','werkspoor','werkstaat','werkstad','werkstaker','werkstaking','werkstation','werkstellig','werkster','werkstijl','werkstoel','werkstraf','werkstress','werkstroom','werkstructuur','werkstudent','werkstuk','werktaal','werktafel','werktekening','werktemperatuur','werktempo','werkterrein','werktijd','werktijdenbesluit','werktijdenregeling','werktijdverkorting','werktijdverlenging','werktitel','werktuig','werktuigbalk','werktuigbouw','werktuigbouwkunde','werktuigbouwkundig','werktuigbouwkundige','werktuigelijk','werktuigkunde','werktuigkundig','werktuigkundige','werktuiglijk','werkuur','werkvakantie','werkveld','werkverband','werkverdeling','werkvergadering','werkvergunning','werkverhouding','werkverkeer','werkverlet','werkverschaffer','werkverschaffing','werkverschaffingsproject','werkverslaafde','werkverslaafden','werkverslaving','werkvertrek','werkverzuim','werkvlak','werkvloer','werkvoetbal','werkvolk','werkvolume','werkvoorbereider','werkvoorbereiding','werkvoorraad','werkvoorziening','werkvoorzieningschap','werkvoorzieningsschap','werkvorm','werkvreugde','werkvrouw','werkweek','werkweekverkorting','werkweigeraar','werkweigering','werkwijze','werkwillig','werkwillige','werkwinkel','werkwoord','werkwoordelijk','werkwoordsvervoegingen','werkwoordsvorm','werkzaam','werkzaamheden','werkzaamheid','werkzekerheid','werkzoekend','werkzoekende','werkzuster','werpanker','werpen','werper','werphengel','werpheuvel','werping','werplans','werplijn','werplood','werpmolen','werpnet','werpnummer','werpplaat','werpschicht','werpschijf','werpspeer','werpspel','werpspies','werpspiets','werpster','werptuig','werst','wervel','wervelbed','wervelen','wervelend','werveling','wervelkolom','wervelstorm','wervelstroom','wervelwind','werven','werver','werving','wervingsactie','wervingsbeleid','wervingsbijeenkomst','wervingsbureau','wervingscampagne','wervingskosten','wervingskracht','wervingsreserve','wervingsstop','werklozenproject','wervelgewricht','wereldbehoefte','werkdiscipline','wereldmilieutop','wereldluchtvaartmarkt','wereldhervormer','werkwoordstam','wereldgeest','wereldhuishouding','wereldschaakfederatie','wereldtennisbond','wereldvoetbalfederatie','wereldmilieuconferentie','wereldseizoentijd','wereldtopspeler','wereldverkenning','werkingskrediet','werpkracht','wervelholte','wervingssecretariaat','wereldfietser','werkdadig','werkingssubsidie','werklocatie','werkingsgebied','werkelijkheidsbeeld','wereldproletariaat','wereldkapitalisme','wereldvisie','werkgang','werkbegeleider','werkstroombeheer','wereldkeuken','wereldleraar','wereldmunt','wereldvloot','werfvergadering','werkbeschrijving','werkdeel','werkgelegenheidsstrategie','werkingsjaar','werkleven','werkonzekerheid','werkpost','werksnelheid','werksysteem','werktrein','werkvolgorde','werkwoordspelling','werkzaamheidsgraad','wervelkanaal','wereldaanvaarding','wereldautoriteit','wereldbaan','wereldbelang','wereldbeleving','wereldbeschaving','wereldbestel','wereldbestuur','wereldbeweging','wereldcomplot','wereldconcept','wereldconjunctuur','wereldcultuur','werelddag','werelddekking','werelddictatuur','werelddominantie','wereldeinde','wereldelite','wereldgelijkvormigheid','wereldgoal','wereldhoofdstad','wereldkapitaal','wereldklok','wereldleger','wereldmodel','wereldopvatting','wereldordening','wereldoverheid','wereldprijs','wereldreservemunt','wereldruim','wereldruimte','wereldspits','wereldstaat','wereldstekker','wereldteam','wereldtemperatuur','wereldticket','wereldtour','wereldtuin','wereldvoorstelling','wereldwijf','werfbeurt','werfkeet','werfkelder','werfterrein','werfwagen','werfzone','werkarm','werkatelier','werkbedrijf','werkbereik','werkbonus','werkbreedte','werkbudget','werkcoach','werkcollegedocent','werkcontract','werkdek','werkdomein','werkdrukte','werkdrukvermindering','werkelijkheidsbeleving','werkelijkheidservaring','werkelijkheidsgetrouw','werkelijkheidsvisie','werkendag','werkgebonden','werkgedrag','werkgelegenheidssteun','werkgroepbijeenkomst','werkgroepvergadering','werkhaven','werkhok','werkhond','werkijver','werkingsbudget','werkingscoefficient','werkingsspectrum','werkingswijze','werkinhoud','werkinstelling','werkkaart','werkkader','werkland','werkles','werkloosheidsbureau','werkloosheidsdag','werkmail','werkmakker','werkmaterieel','werkmentaliteit','werkmiddel','werkmodel','werknemersaantal','werknemersdeel','werknemersoptie','werknemerspensioen','werknemersstatuut','werknemersverkeer','werkniveau','werkomschrijving','werkongeschiktheid','werkoppervlak','werkorder','werkpatroon','werkplaatsapparatuur','werkplaatshandboek','werkplaatskaart','werkpunt','werkregeling','werkschip','werkschuur','werksessie','werkstage','werktijdfactor','werktijdregeling','werktop','werkuitkering','werkuitvoering','werkvenster','werkverbod','werkverbond','werkverleden','werkvermogen','werkvisum','werkzoeker','werkzone','werpafstand','werparm','werpgewicht','werpkist','werptechniek','wervellichaam','wervelzuil','wervingskanaal','wervingsmethode','wervingssite','wereldvaluta','werkdiepte','werfbezoek','wereldbewustzijn','wereldervaring','werkbon','werpcirkel','wereldland','wereldbesef','wereldnatie','wereldoverheersing','wereldranking','werkafstand','werkethos','werkgelegenheidsniveau','werkloosheidsreglementering','wervingsproces','wereldontwikkeling','werkavond','werkdier','werkelijkheidsopvatting','werkervaringsplek','werkgelegenheidsfunctie','werkgemeente','werkingsgraad','werkset','werkvak','wervingsfolder','werkdiagnose','wereldnummer','werkverplichting','werkfunctie','werkgebouw','werkgroepleider','werkplatform','wereldvoedselcrisis','werktuiggebruik','wereldvoedselvraagstuk','wereldgeld','wereldpositie','werktuigmachine','werkladder','wereldgezondheidsdag','wereldhandelscentrum','wereldnatuurfonds','wereldvoedseldag','wereldvrouwendag','werkloosheidswet','werkgeversvoorman','werkgroepvoorzitter','werknemersvoorzitter','werkweg','wereldroeibond','wereldkundigheid','werkliedenbond','werchter','wereldbibliotheek','wereldgebedsdag','wereldschaakbond','wereldvoedselorganisatie','wereldvoedselprogramma','wereldvrouwenconferentie','wereldzwembond','werken','werkendam','werkendammer','werkendams','werm','werner','wervershoof','wervik','wervikaan','wervikenaar','werviks','werther','werink','wermink','wernsen','werts','weren','werdler','werleman','werson','wernars','werger','werring','werden','wereldbefaamde','wereldbeheersers','wereldbekende','wereldbekerzeges','wereldberoemde','wereldberoemdheden','wereldbeschouwelijke','wereldbeschouwingen','wereldbollen','wereldbonden','wereldburgers','werelddelen','wereldeconomische','werelden','wereldfietsers','wereldgebeurtenissen','wereldgeestelijken','wereldgodsdiensten','wereldhandelsbesprekingen','wereldhistorische','wereldkaarten','wereldkampioenen','wereldkampioenschappen','wereldkundige','wereldleiders','wereldlijke','wereldlingen','wereldmarkten','wereldmerken','wereldomvattende','wereldoorlogen','wereldpodia','wereldpolitieke','wereldprijzen','wereldrampen','wereldrecords','wereldreizen','wereldreizigers','wereldreserves','wereldrevoluties','wereldschokkende','wereldse','wereldsgezinde','wereldsteden','wereldstelsels','wereldstreken','wereldtalen','wereldtentoonstellingen','wereldtoppers','wereldverbeteraars','wereldverbonden','wereldveroveraars','wereldvreemde','wereldwijde','wereldwijze','wereldwinkels','wereldwonderen','wereldzeeen','werfagenten','werfkantoren','werft','werkachterstanden','werkbakken','werkbanken','werkbare','werkbazen','werkbeesten','werkbesparende','werkbesprekingen','werkbezoeken','werkbijen','werkbladen','werkboeken','werkboekje','werkbriefjes','werkcolleges','werkcomites','werkconferenties','werkconflicten','werkdadige','werkdagen','werkdefinities','werkdiskettes','werkdozen','werkeenheden','werkeilanden','werkelijke','werkeloosheidsuitkeringen','werkelozen','werkenden','werkers','werkezels','werkformulieren','werkgebieden','werkgelegenheidscijfers','werkgelegenheidseffecten','werkgelegenheidsmaatregelen','werkgelegenheidsproblemen','werkgelegenheidssubsidies','werkgemeenschappen','werkgerelateerde','werkgesprekken','werkgevers','werkgeverskringen','werkgeversorganisaties','werkgeverspremies','werkgeversvertegenwoordigers','werkgroepen','werkgroepleden','werkhandschoenen','werkhuizen','werkhypothesen','werkhypotheses','werkingen','werkingsmiddelen','werkingssubsidies','werkinhoudelijke','werkinrichtingen','werkinstructies','werkinstrumenten','werkjaren','werkjes','werkkamers','werkkasten','werkkielen','werkkrachten','werkkringen','werklijsten','werklocaties','werklonen','werkloosheidsuitkeringen','werklozen','werklozenkassen','werkmaatschappijen','werkmandje','werkmannen','werkmanswoningen','werkmaterialen','werkmeiden','werkmethoden','werkmethodes','werkmieren','werkneemsters','werknemers','werknemersbelangen','werknemersgegevens','werknemersorganisaties','werknemersparticipaties','werknemersrechten','werknemersverklaringen','werkossen','werkpaarden','werkpakken','werkplaatsen','werkplannen','werkplekken','werkploegen','werkposten','werkprogrammas','werkprojecten','werkrechters','werkrechtersraden','werkrelaties','werkroosters','werkruimtes','werkschemas','werkschepen','werkschoenen','werksituaties','werksporen','werkstakers','werkstakingen','werkstations','werksters','werkstoelen','werkstudenten','werkstukken','werkt','werktafels','werkte','werktekeningen','werkten','werkterreinen','werktijden','werktijdenbesluiten','werktijdenregelingen','werktuigen','werktuigkundigen','werktuiglijke','werktuiglijker','werkuren','werkverbanden','werkvergaderingen','werkvergunningen','werkverschaffers','werkvoorbereiders','werkvoorraden','werkvormen','werkvrouwen','werkwijzen','werkwilligen','werkwilliger','werkwinkels','werkwoordelijke','werkwoorden','werkwoordsvormen','werkzaamst','werkzame','werkzamer','werkzoekenden','werkzusters','werp','werpankers','werpend','werpende','werplijnen','werpnetten','werpschichten','werpschijven','werpspelen','werpsperen','werpspiesen','werpt','werptuigen','wervelaandoeningen','wervelde','wervelden','wervelende','wervelkolommen','wervels','wervelstormen','wervelt','werveltje','werveltjes','wervelwinden','wervend','wervende','wervender','wervers','wervingen','wervingsactiviteiten','wervingsadvertenties','wervingsbijeenkomsten','wervingsbureaus','wervingscampagnes','wervingsmethoden','wervingsproblemen','wereldatlassen','wereldbeelden','wereldbekers','wereldbekerwedstrijden','wereldbewoners','wereldhavens','wereldhits','wereldmachten','wereldmarktprijzen','wereldomspannende','wereldranglijsten','wereldrecordhouders','wereldrijken','wereldschokkends','wereldser','wereldspelers','wereldsterren','wereldtitels','werelduurrecords','werende','werfdepots','werfleiders','werkafspraken','werkbaarder','werkbeurzen','werkboekjes','werkbroeken','werkdocumenten','werkelijkheden','werkelijks','werkeloosheidsverzekeringen','werkervaringsplaatsen','werkervaringsprojecten','werkgelegenheidsafspraken','werkgelegenheidsbevorderende','werkgelegenheidsgaranties','werkgelegenheidsplannen','werkgelegenheidsprogrammas','werkgelegenheidsprojecten','werkgeversbijdragen','werkgeversverbonden','werkgeversverenigingen','werkgeversverklaringen','werkindelingen','werkingstoelagen','werkkamertje','werkkampen','werkleiders','werkliedenverbonden','werklijnen','werkloosheidcijfers','werkloosheidscijfers','werkloosheidspercentages','werkloosheidsvergoedingen','werkloosheidsvoorzieningen','werkloosheidswetten','werklozencontroles','werklustige','werkmeesters','werkmilieus','werknemersaandelen','werknemersbijdragen','werknemerspremies','werknemersverenigingen','werknemersvertegenwoordigers','werknemersvertegenwoordigingen','werknemersverzekeringen','werkobjecten','werkomgevingen','werkonderbrekingen','werkongevallen','werkonwilligen','werkopdrachten','werkpauzes','werkprocessen','werkputten','werkruimten','werkschuwe','werkslaven','werkstraffen','werktafeltje','werktalen','werktuigbouwkundigen','werktuigelijke','werkvelden','werkverhoudingen','werkverschaffingsprojecten','werkvertrekken','werkweigeraars','werkweken','werpers','werphengels','werpheuvels','werplansen','werploden','werpmolens','werpplaten','werpsterren','werpsters','wervelingen','wervelstromen','wervingsacties','wervingsreserves','wereldpremieres','wereldprimeurs','wereldproblemen','wereldtournees','wereldvermaarde','werkkapitalen','werkloosheidsproblemen','werktitels','werkwoordstammen','werpnummers','wersten','werkprograms','werkonbekwame','werkcoupes','wervelgewrichten','wereldvoorraden','werkgeefsters','wereldcups','wereldhervormers','wereldsuccessen','wereldtopspelers','werkgeheugens','werklozenprojecten','werkverschaffingen','wervelholten','wervelholtes','werners','wereldreligies','werkstromen','werkaanbiedingen','werkateliers','werkbalken','werkbegeleiders','werkervaringen','werkgroepje','werkingsmechanismen','werkloosheidsdagen','werkstukje','werkstukjes','werkvloeren','wereldgeesten','wereldjes','wereldorganisaties','werfkelders','werkbeschrijvingen','werkblaadjes','werkbonnen','werkdagje','werkgroepjes','werkhervattingen','werkhonden','werkhoudingen','werkingsprincipes','werkloosheidsvallen','werkmakkers','werkmappen','werkmiddelen','werknemersopties','werkorders','werkpakketten','werkplaatsje','werksessies','werksoorten','werktuigmachines','werkvoorzieningen','wervingskanalen','wereldconflicten','wereldculturen','wereldkeukens','wereldvisies','wereldvoetballers','werkdieren','werkkaarten','werkmethodieken','werkorganisaties','werkplaatsjes','werkschriften','werkstages','werkverplichtingen','werkweekje','wervellichamen','werkarmen','werkavonden','werkboten','werkoverleggen','werkpatronen','werkpunten','werkstrafje','werktreinen','werparmen','werkzones','werkvakken','werkplaatshandboeken','werktijdregelingen','werkpraktijken','wereldkaartje','werkstructuren','werkingsverslagen','werkzoekers','werkfuncties','werfvergaderingen','werklessen','werkvlakken','wereldbolletje','werkgelegenheidsaspecten','wereldcentra','werkingsjaren','werkmodellen','werktuigje','werkhoeken','wervingssites','werptechnieken','werkperiodes','werkbezoekje','werkplekje','werkstijlen','werkloosheidsgraden','werkplanningen','wervelwindje','werkhoekje','wereldproducenten','wereldmarktleiders','werkvakanties','wereldopvattingen','wereldconferenties','wervingsfolders','werkdiners','werkniveaus','werklasten','werkuurtjes','wervelwindjes','werktuigjes','werksystemen','werkdomeinen','wereldsystemen','werkregelingen','wereldbranden','werkcontracten','wereldtemperaturen','wereldbedrijven','wereldbeeldje','wervelstormpjes','wereldwondertje','wereldconcerns','werkelijkheidswaarden','werkgelegenheidsontwikkelingen','werkingsgebieden','werknemerspensioenen','werkadressen','wereldbelangen','werkelijkheidsbeelden','werfwagens','werfbezoeken','werkcollegedocenten','werkingsbudgetten','werkbelastingen','werkingssferen','wereldvragen','wereldreisje','werkbankje','werkhuisje','werkpaardje','werkbezoekjes','werkpaardjes','werkbaars','werkingsvelden','werkdrukken','werkperioden','wervingsmethodes','wereldstandaarden','wereldraadsels','wereldgoals','werkhondje','wereldteams','werfzones','werchterse','werkendamse','wervikse'}
math.randomseed(os.time()) dofile("NeuralNetwork.lua") network = NeuralNetwork.create(2,1,2,4,0.3) print("Training the neural network:") attempts = 10000 -- number of times to do backpropagation for i = 1,attempts do network:backwardPropagate({0,0},{0}) network:backwardPropagate({1,0},{1}) network:backwardPropagate({0,1},{1}) network:backwardPropagate({1,1},{0}) end print("Results:") print("0 0 | "..network:forewardPropagate(0,0)[1]) print("1 0 | "..network:forewardPropagate(1,0)[1]) print("0 1 | "..network:forewardPropagate(0,1)[1]) print("1 1 | "..network:forewardPropagate(1,1)[1])
loadval = math.random(0.05,0.4) print("Loading Process Initiated!") os.sleep(1) local component = require "component" print("Components Initialized!") os.sleep(loadval) local computer = require "computer" print("Computer Variable Loaded!") os.sleep(loadval) local gpu = component.gpu print("GPU Variable Loaded!") os.sleep(loadval) local shell = require "shell" print("Shell Variable Loaded!") os.sleep(loadval) local filesystem = require "filesystem" print("Filesystem Variable Loaded!") os.sleep(loadval) local term = require "term" print("Terminal Variable Loaded!") os.sleep(1) print("Finished Loading!") os.sleep(3) term.clear() print("Welcome to sysInfo! This program will give you system info very easily!") computer.beep(300) computer.beep(600) computer.beep(900) computer.beep(600) computer.beep(1200)
if ( !sql.TableExists( "cookies" ) ) then sql.Query( "CREATE TABLE IF NOT EXISTS cookies ( key TEXT NOT NULL PRIMARY KEY, value TEXT );" ) end module( "cookie", package.seeall ) local CachedEntries = {} local BufferedWrites = {} local BufferedDeletes = {} local function GetCache( key ) if ( BufferedDeletes[ key ] ) then return nil end local entry = CachedEntries[ key ] if ( entry == nil || SysTime() > entry[ 1 ] ) then local name = SQLStr( key ) local val = sql.QueryValue( "SELECT value FROM cookies WHERE key = " .. name ) if !val then return false end CachedEntries[ key ] = { SysTime() + 30, val } end return CachedEntries[ key ][ 2 ] end local function FlushCache() CachedEntries = {} BufferedWrites = {} BufferedDeletes = {} end local function CommitToSQLite() sql.Begin() for k, v in pairs( BufferedWrites ) do sql.Query( "INSERT OR REPLACE INTO cookies ( key, value ) VALUES ( " .. SQLStr( k ) .. ", " .. SQLStr( v ) .. " )" ) end for k, v in pairs( BufferedDeletes ) do sql.Query( "DELETE FROM cookies WHERE key = " .. SQLStr( k ) ) end BufferedWrites = {} BufferedDeletes = {} sql.Commit() end local function ScheduleCommit() timer.Create( "Cookie_CommitToSQLite", 0.1, 1, CommitToSQLite ) end local function SetCache( key, value ) if ( value == nil ) then return Delete( key ) end if CachedEntries[ key ] then CachedEntries[ key ][ 1 ] = SysTime() + 30 CachedEntries[ key ][ 2 ] = value else CachedEntries[ key ] = { SysTime() + 30, value } end BufferedWrites[ key ] = value ScheduleCommit() end -- Get a String Value function GetString( name, default ) local val = GetCache( name ) if ( !val ) then return default end return val end -- Get a Number Value function GetNumber( name, default ) local val = GetCache( name ) if ( !val ) then return default end return tonumber( val ) end -- Delete a Value function Delete( name ) CachedEntries[ name ] = nil BufferedWrites[ name ] = nil BufferedDeletes[ name ] = true ScheduleCommit() end -- Set a Value function Set( name, value ) SetCache( name, value ) end if ( !CLIENT_DLL ) then return end concommand.Add( "lua_cookieclear", function( ply, command, arguments ) sql.Query( "DELETE FROM cookies" ) FlushCache() end )
--[[ this was inspired by and takes some code from https://github.com/SmallJoker/noisetest WTFPL License bf_ = Biome Function Biome Functions are called by a tg_ Terrain Generator to map biomes to parms.share.surface This is really a left over from some of my earlier experimentation with biomes. I've kept it just to demonstrate that you can write a biome function that does not use the realms biome definition/biome map framework. this biome function should be called once per chunk to map biomes to parms.share.surface that will provide your landscape generator with parms.share.surface[z][x].biome.node_top, node_filler, and a decorate function I tried a version of this that was called for every node surface top to bot and placed the node_top and node_filler itself, as well as doing the decorating. BUT, it was VERY VERY slow. I also tried a version that did all the decorating in one loop after you were done with the chunk. it was a smidgen slower than this version. --]] bf_basic_biomes={} local c_air = minetest.get_content_id("air") local c_stone = minetest.get_content_id("default:stone") local c_dirt = minetest.get_content_id("default:dirt") --local c_snow = minetest.get_content_id("default:snow") --arctic (no trees) local c_ice = minetest.get_content_id("default:ice") --arctic (no trees) local c_dirt_snow = minetest.get_content_id("default:dirt_with_snow") --cold (pine trees) local c_dirt_grass = minetest.get_content_id("default:dirt_with_grass") --warm (trees) local c_dirt_rainforest = minetest.get_content_id("default:dirt_with_rainforest_litter") --hot (jungle trees) local c_desert_sand = minetest.get_content_id("default:desert_sand") --desert (no trees) --local c_dry_grass = minetest.get_content_id("default:dirt_with_dry_grass") .............--savanna local c_tree =minetest.get_content_id("default:tree") local c_apple =minetest.get_content_id("default:apple") local c_leaves =minetest.get_content_id("default:leaves") local c_jtree =minetest.get_content_id("default:jungletree") local c_jleaves=minetest.get_content_id("default:jungleleaves") local c_ptree =minetest.get_content_id("default:pine_tree") local c_pleaves=minetest.get_content_id("default:pine_needles") bf_basic_biomes.heat_params={} bf_basic_biomes.heat_params.arctic=-6.0 bf_basic_biomes.heat_params.cold =-3.0 bf_basic_biomes.heat_params.warm = 2.0 bf_basic_biomes.heat_params.hot = 5.0 --heat_params.desert= bf_basic_biomes.biomes = {ARCTIC=1, COLD=2, WARM=3, HOT=4, DESERT=5} -- arctic (snow, no trees) -- cold (dirt_with_snow, pine trees) -- warm (grass, apple trees) -- hot (dirt_rainforest, jungle trees) -- desert (sand, no trees) bf_basic_biomes.np_heat = { offset = 0, scale = 1, spread = {x=512, y=512, z=512}, octaves = 1, persist = 0.2 } function bf_basic_biomes.gen_appletree(x, y, z, area, data) for j = -1, 6 do if j == 5 or j == 6 then for i = -3, 3 do for k = -3, 3 do local vi = area:index(x + i, y + j, z + k) local rd = math.random(50) if rd == 2 then data[vi] = c_apple elseif rd >= 10 then data[vi] = c_leaves end end end elseif j == 4 then for i = -2, 2 do for k = -2, 2 do if math.abs(i) + math.abs(k) == 2 then local vi = area:index(x + i, y + j, z + k) data[vi] = c_tree end end end else local vi = area:index(x, y + j, z) data[vi] = c_tree end end end function bf_basic_biomes.gen_jungletree(x, y, z, area, data) for j = -1, 14 do if j == 8 or j == 10 or j == 14 then for i = -3, 3 do for k = -3, 3 do local vil = area:index(x + i, y + j + math.random(0, 1), z + k) if math.random(5) ~= 2 then data[vil] = c_jleaves end end end end local vit = area:index(x, y + j, z) data[vit] = c_jtree end end -- m -- mxm x=location xyz which is NOT modified -- m function bf_basic_biomes.place_compass(x,y,z, area,data, node, distance) luautils.place_node(x+distance,y,z, area,data, node) luautils.place_node(x-distance,y,z, area,data, node) luautils.place_node(x,y,z+distance, area,data, node) luautils.place_node(x,y,z-distance, area,data, node) end--place_compass -- mmm -- mxm x=location xyz which is NOT modified -- mmm function bf_basic_biomes.place_surround(x,y,z, area, data, node) for j=-1,1 do for k=-1,1 do if j~=0 or k~=0 then luautils.place_node(x+j,y,z+k, area,data, node) end --if j end --for k end --for j end--place_four_around function bf_basic_biomes.gen_pinetree(x, y, z, area, data) local vi for j = -1, 6 do luautils.place_node(x,y+j,z, area,data, c_ptree) if j==2 or j==4 or j==6 then bf_basic_biomes.place_compass(x,y+j,z, area,data, c_pleaves, 1) end --if j 2 4 or 6 if j==3 then bf_basic_biomes.place_surround(x,y+j,z, area,data, c_pleaves) for i=-1,1 do luautils.place_node(x+i,y+j,z-2, area,data, c_pleaves) luautils.place_node(x+i,y+j,z+2, area,data, c_pleaves) end --for i for k=-1,1 do luautils.place_node(x+2,y+j,z+k, area,data, c_pleaves) luautils.place_node(x-2,y+j,z+k, area,data, c_pleaves) end --for k bf_basic_biomes.place_compass(x,y+j,z, area,data, c_pleaves, 3) end --if j=3 if j==5 then bf_basic_biomes.place_surround(x,y+j,z, area,data, c_pleaves) bf_basic_biomes.place_compass(x,y+j,z, area,data, c_pleaves, 2) end --if j==5 end--for j luautils.place_node(x,y+7,z, area,data, c_pleaves) end--gen_pinetree function bf_basic_biomes.decorate(x,y,z, biome, parms) --need to add flowers and grass here --minetest.log("x="..x.." y="..y.." z="..z.." bi="..bi) if math.random(1000)<=biome.treechance then biome.tree(x,y+1,z,parms.area,parms.data) end --minetest.log("bf_basic_biomes-> x="..x.." y="..y.." z="..z.." biome="..bi) end --decorate bf_basic_biomes.biome={} bf_basic_biomes.biome[bf_basic_biomes.biomes.ARCTIC]={} bf_basic_biomes.biome[bf_basic_biomes.biomes.ARCTIC].node_top=c_ice bf_basic_biomes.biome[bf_basic_biomes.biomes.ARCTIC].node_filler=c_ice bf_basic_biomes.biome[bf_basic_biomes.biomes.ARCTIC].tree=nil bf_basic_biomes.biome[bf_basic_biomes.biomes.ARCTIC].treechance=0 --treechance is in a thousand bf_basic_biomes.biome[bf_basic_biomes.biomes.ARCTIC].decorate=bf_basic_biomes.decorate bf_basic_biomes.biome[bf_basic_biomes.biomes.COLD]={} bf_basic_biomes.biome[bf_basic_biomes.biomes.COLD].node_top=c_dirt_snow bf_basic_biomes.biome[bf_basic_biomes.biomes.COLD].node_filler=c_dirt bf_basic_biomes.biome[bf_basic_biomes.biomes.COLD].tree=bf_basic_biomes.gen_pinetree bf_basic_biomes.biome[bf_basic_biomes.biomes.COLD].treechance=15 bf_basic_biomes.biome[bf_basic_biomes.biomes.COLD].decorate=bf_basic_biomes.decorate bf_basic_biomes.biome[bf_basic_biomes.biomes.WARM]={} bf_basic_biomes.biome[bf_basic_biomes.biomes.WARM].node_top=c_dirt_grass bf_basic_biomes.biome[bf_basic_biomes.biomes.WARM].node_filler=c_dirt bf_basic_biomes.biome[bf_basic_biomes.biomes.WARM].tree=bf_basic_biomes.gen_appletree bf_basic_biomes.biome[bf_basic_biomes.biomes.WARM].treechance=5 bf_basic_biomes.biome[bf_basic_biomes.biomes.WARM].decorate=bf_basic_biomes.decorate bf_basic_biomes.biome[bf_basic_biomes.biomes.HOT]={} bf_basic_biomes.biome[bf_basic_biomes.biomes.HOT].node_top=c_dirt_rainforest bf_basic_biomes.biome[bf_basic_biomes.biomes.HOT].node_filler=c_dirt bf_basic_biomes.biome[bf_basic_biomes.biomes.HOT].tree=bf_basic_biomes.gen_jungletree bf_basic_biomes.biome[bf_basic_biomes.biomes.HOT].treechance=50 bf_basic_biomes.biome[bf_basic_biomes.biomes.HOT].decorate=bf_basic_biomes.decorate bf_basic_biomes.biome[bf_basic_biomes.biomes.DESERT]={} bf_basic_biomes.biome[bf_basic_biomes.biomes.DESERT].node_top=c_desert_sand bf_basic_biomes.biome[bf_basic_biomes.biomes.DESERT].node_filler=c_desert_sand bf_basic_biomes.biome[bf_basic_biomes.biomes.DESERT].tree=nil bf_basic_biomes.biome[bf_basic_biomes.biomes.DESERT].treechance=0 bf_basic_biomes.biome[bf_basic_biomes.biomes.DESERT].decorate=bf_basic_biomes.decorate --******************************** function bf_basic_biomes.map_biome_to_surface(parms) --get noise details local heat_map = minetest.get_perlin_map(bf_basic_biomes.np_heat, parms.isectsize2d):get_2d_map_flat(parms.minposxz) local nixz=1 for z=parms.isect_minp.z, parms.isect_maxp.z do for x=parms.isect_minp.x, parms.isect_maxp.x do local n_biome = heat_map[nixz] * 10 local bi if n_biome < bf_basic_biomes.heat_params.arctic then bi = bf_basic_biomes.biomes.ARCTIC elseif n_biome < bf_basic_biomes.heat_params.cold then bi = bf_basic_biomes.biomes.COLD elseif n_biome < bf_basic_biomes.heat_params.warm then bi = bf_basic_biomes.biomes.WARM elseif n_biome < bf_basic_biomes.heat_params.hot then bi = bf_basic_biomes.biomes.HOT else bi = bf_basic_biomes.biomes.DESERT end --if parms.share.surface[z][x].biome=bf_basic_biomes.biome[bi] nixz=nixz+1 end --for x end --for z end --get_biome --******************************** function bf_basic_biomes.bf_basic_biomes(parms) bf_basic_biomes.map_biome_to_surface(parms) end -- bf_basic_biomes realms.register_mapfunc("bf_basic_biomes",bf_basic_biomes.bf_basic_biomes)
local E, L = unpack(ElvUI) -- Import Functions/Constants, Config, Locales --Title: UnitPrice --Author: xbeeps --Version: 1.20 --Modify by cadcamzy at 2015.04.27 local FauxScrollFrame_GetOffset = FauxScrollFrame_GetOffset local GetAuctionItemInfo = GetAuctionItemInfo local GetAuctionItemLink = GetAuctionItemLink local GetItemInfo = GetItemInfo local select = select local getglobal = getglobal local function truncateItemName(item) local itemName = item:GetText(); local itemWidth = item:GetWidth(); local stringWidth = item:GetStringWidth(); if (itemName and stringWidth > itemWidth) then local stringLength = strlen(itemName); stringLength = floor(stringLength * itemWidth / stringWidth) - 3; item:SetText(strsub(itemName, 1, stringLength) .. "..."); end end local f = CreateFrame("Frame") f:RegisterEvent("ADDON_LOADED") f:SetScript("OnEvent", function(self,event,arg1) if arg1 == 'Blizzard_AuctionUI' then self:UnregisterAllEvents() local AuctionFrameBrowse_Update_Old = AuctionFrameBrowse_Update; local function AuctionFrameBrowse_Update_Hooked() AuctionFrameBrowse_Update_Old(); local offset = FauxScrollFrame_GetOffset(BrowseScrollFrame); for i = 1, NUM_BROWSE_TO_DISPLAY do local name, _, count, _, _, _, _, min, inc, buy, bid = GetAuctionItemInfo("list", offset + i); if (name) then local _, _, id = strfind(GetAuctionItemLink("list", offset + i) or "", "item:(%d+):"); if (id) then local stack = select(8, GetItemInfo(id)); if (stack and stack > 1) then bid = (bid > 0 and (bid + inc) or min); local item = getglobal("BrowseButton" .. i .. "Name"); truncateItemName(item); local text; if (E.db.euiscript.unitprice and count > 1) then text = E:FormatMoney(floor(bid / count)); if (buy and buy > 0 and buy ~= bid) then text = E:FormatMoney(floor(bid / count), 'BLIZZARD', true); text = text .. "/".. E:FormatMoney(floor(buy / count), 'BLIZZARD', true); end end if (text) then item:SetFormattedText("%s\n(%s)", item:GetText() or "", text); end end end end end end AuctionFrameBrowse_Update = AuctionFrameBrowse_Update_Hooked; end end)
local function include_cl(f) if (SERVER) then AddCSLuaFile(f) elseif (CLIENT) then include(f) end end console = console or {} include_cl('colors.lua') include_cl('overwrites.lua') include_cl('funcs.lua') include_cl('menu.lua') local msg = { [[ _____ _ ]], [[ / ____| | | ]], [[ __ _| | ___ _ __ ___ ___ | | ___ ]], [[ / _` | | / _ \| '_ \/ __|/ _ \| |/ _ \]], [[| (_| | |___| (_) | | | \__ \ (_) | | __/]], [[ \__, |\_____\___/|_| |_|___/\___/|_|\___|]], [[ __/ | ]], [[ |___/ ]], } table.foreach(msg, function(_, msg) MsgC(Color(255,255,255), msg .. '\n') end) concommand.Add('console_test', function() table.foreach(msg, function(_, msg) MsgC(Color(255,255,255), msg .. '\n') end) MsgN('-----------------------------------------------') MsgC(Color(255,102,255), 'wat\n') MsgC(Color(255,128,0), 'wat\n') MsgC(Color(51,128,255), 'hello\n') MsgC(Color(255,255,51), 'hello\n') MsgC(Color(255,0,0), 'You are a beautiful console\n') MsgC(Color(0,255,0), 'Being colorful is nothing to be ashamed of. ', Color(255,255,255), 'Test single line multi color MsgC()\n') MsgN('MsgN() test') Msg('Msg() test') print('print() test') chat.AddText(Color(0,255,0), 'aStonedPenguin', Color(255,255,255), ':', Color(255,255,255), 'chat.AddText() support') MsgN('-----------------------------------------------') Error('Error() test. You\'re a bad coder and you should feel bad.') ErrorNoHalt('Test ErrorNoHalt()') error('Test error()') end)
local playsession = { {"DaCluwn", {251910}}, {"Timfee", {249115}}, {"Houdi", {227521}}, {"seer", {251267}}, {"WorldofWarIII", {250489}}, {"KIRkomMAX", {128943}}, {"Xakep_SDK", {212140}}, {"Firkys", {211423}}, {"NezoxEx", {18378}}, {"jagger23", {210721}}, {"Nikkichu", {199507}}, {"benw91ne", {190296}}, {"davidbutora", {157619}}, {"zsintai1987", {165822}}, {"CoryG123", {120862}}, {"stead08", {112410}}, {"farmer960", {109278}}, {"chrissands", {92434}}, {"moctis", {69824}}, {"Lecaf", {3761}}, {"GoodolEagle", {52986}}, {"Jhumekes", {71072}}, {"KatanaKiwi", {27560}}, {"Viibrant", {18064}}, {"jarewz", {19922}}, {"UTIDI", {14886}}, {"bennybutzer", {9987}}, {"Giatros", {7523}} } return playsession
--Desk form script. require("ud_widgets") --Create designer desk form. function create_desk_fm(ui, left, top, width, height) local ud = k_global("ud") --Create top dialog. local desk_fm = ui:Create("FlatForm") desk_fm.Name = "desk_fm" desk_fm.Left = left desk_fm.Top = top desk_fm.Width = width desk_fm.Height = height desk_fm:FitSafeArea() desk_fm:ShowDialog() ud.desk_fm = desk_fm --File menu. local file_mn = k_run_routine("ud_file_mn", "create_file_mn", ui) desk_fm.file_mn = file_mn k_run_routine("ud_file_mn", "clear_need_save") --File button. local file_bn = ui:Create("FlatButton") file_bn.Name = "file_bn" file_bn.Left = 0 file_bn.Top = 0 file_bn.Width = 80 file_bn.Height = 30 file_bn.Text = "File" desk_fm:AddChild(file_bn) desk_fm.file_bn = file_bn --Widget list view. local tool_width = 400 local widget_lv = ui:Create("FlatListView") widget_lv.Name = "widget_lv" widget_lv.Left = 0 widget_lv.Top = file_bn.Bottom widget_lv.Width = tool_width widget_lv.Height = 200 widget_lv.ItemWidth = tool_width widget_lv.ItemHeight = 64 widget_lv.GlyphWidth = 64 widget_lv.GlyphHeight = 64 widget_lv.Sorted = true widget_lv.RightText = true widget_lv.DragEnable = true widget_lv.DynamicSlide = true widget_lv.Hint = "@ud_hint@Drag and drop to target" desk_fm:AddChild(widget_lv) desk_fm.widget_lv = widget_lv --Add widget list. for i = 1, #widget_list do local wg = widget_list[i] if k_find_class(wg.widget) then widget_lv:AddItem(wg.name, wg.image) --local index = widget_lv:AddItem(wg.name, wg.image) --widget_lv:SetTag(index, wg.widget) end end --Hierarchy tree view. local hierarchy_tv = ui:Create("FlatTreeView") hierarchy_tv.Name = "hierarchy_tv" hierarchy_tv.Left = 0 hierarchy_tv.Top = widget_lv.Bottom hierarchy_tv.Width = tool_width hierarchy_tv.Height = 200 hierarchy_tv.ItemHeight = 24 hierarchy_tv.HideRoot = false hierarchy_tv.Sorted = true hierarchy_tv.ShowPlusMinus = true hierarchy_tv.ScrollSize = 16 hierarchy_tv.DynamicSlide = true hierarchy_tv:CreateRoot("root", true) hierarchy_tv:SelectNull() desk_fm:AddChild(hierarchy_tv) desk_fm.hierarchy_tv = hierarchy_tv --Property data grid. local property_dg = ui:Create("FlatDataGrid") property_dg.Name = "property_dg" property_dg.Left = 0 property_dg.Top = hierarchy_tv.Bottom property_dg.Width = tool_width property_dg.Height = desk_fm.Height - property_dg.Top property_dg.ScrollSize = 16 property_dg.DynamicSlide = true property_dg.RowHeadersVisible = false property_dg.ColumnHeadersVisible = true property_dg.TextAlign = "Center" property_dg.RowHeight = 30 property_dg.ColumnWidth = 190 property_dg.ColumnCount = 2 property_dg.RowSelectable = true property_dg.ColumnSelectable = false property_dg:SetColumnHeaderText(0, "name") property_dg:SetColumnHeaderText(1, "value") desk_fm:AddChild(property_dg) desk_fm.property_dg = property_dg --Work panel. local work_pn = ui:Create("FlatPanel") work_pn.Name = "work_pn" work_pn.Left = tool_width work_pn.Top = file_bn.Bottom work_pn.Width = desk_fm.Width - work_pn.Left work_pn.Height = desk_fm.Height - work_pn.Top work_pn.Text = "Panel" work_pn.ScrollSize = 12 work_pn.DynamicSlide = true work_pn:SetContentSize(1920, 1080) desk_fm:AddChild(work_pn) desk_fm.work_pn = work_pn --Desk form bind script. k_bind(desk_fm, "ud_desk_fm", "desk_fm_init") --Create new form. k_run_routine("ud_file_mn", "new_design_form") return 1 end --Initialize desk form. function desk_fm_init(self) local file_bn = self.file_bn local widget_lv = self.widget_lv local hierarchy_tv = self.hierarchy_tv local property_dg = self.property_dg k_bind(file_bn, "ud_desk_fm") k_bind(widget_lv, "ud_desk_fm") k_bind(hierarchy_tv, "ud_desk_fm") k_bind(property_dg, "ud_desk_fm") k_event(file_bn, "click", "file_bn_click") k_event(widget_lv, "drag_begin", "widget_lv_drag_begin") k_event(widget_lv, "drag_move", "widget_lv_drag_move") k_event(widget_lv, "drag_end", "widget_lv_drag_end") k_event(hierarchy_tv, "select", "hierarchy_tv_select") k_event(property_dg, "select_row", "property_dg_select_row") return 1 end --File button click. function file_bn_click(self) local ud = k_global("ud") local ui = ud.ui local file_mn = ud.desk_fm.file_mn file_mn.Left = self.GlobalLeft file_mn.Top = self.GlobalTop + self.Height ui:AddFloating(file_mn) return 1 end --Widget list view drag begin. function widget_lv_drag_begin(self, x, y) local ud = k_global("ud") local ui = ud.ui if k_find_extra(ud, "drag_lb") then local old_lb = ud.drag_lb if k_exists(old_lb) then ui:Delete(old_lb) end end local index = self.SelectedIndex if index < 0 then return 0 end local image = "png/widget.png" local name = self:GetText(index) for i = 1, #widget_list do local wg = widget_list[i] if wg.name == name then image = wg.image break end end local lb = ui:Create("FlatLabel") lb.Left = x lb.Top = y lb.Width = 64 lb.Height = 64 lb.Background = true lb.BackImage = image ui:AddFloating(lb) ud.drag_lb = lb return 1 end --Widget list view drag moving. function widget_lv_drag_move(self, x, y) local ud = k_global("ud") local lb = ud.drag_lb lb.Left = x lb.Top = y return 1 end --Get available widget name. function new_widget_name(fm, name) local i = 1 local widget_name = name .. k_string(i) while k_find_extra(fm, widget_name) do i = i + 1 widget_name = name .. k_string(i) end return widget_name end --Add widget to container. function add_widget(container, widget, data_name, x, y) local ud = k_global("ud") local design_fm = ud.design_fm local widget_name = new_widget_name(design_fm, string.lower(data_name)) widget.Left = x - container.GlobalLeft widget.Top = y - container.GlobalTop widget.Name = widget_name widget.DesignMode = true if k_find_property(widget, "Text") then widget.Text = widget_name end container:AddChild(widget) k_set_extra(design_fm, widget_name, widget) show_hierarchy() set_need_save() return 1 end --Widget list view drag end. function widget_lv_drag_end(self, x, y, target) local ud = k_global("ud") local ui = ud.ui local lb = ud.drag_lb ui:RemoveFloating(lb) ui:Delete(lb) if not k_exists(target) then return 0 end local target_host = target.Delegator if not k_exists(target_host) then target_host = target end if not target_host.DesignMode then return 0 end if k_class_name(target_host) == "FlatPicker" then target_host = target_host.Target if target_host:IsContainer() then target_host = target_host:GetInRegion(x, y) end end local design_fm = ud.design_fm local container --if k_uniqid_equal(design_fm, target_host) then if design_fm == target_host then container = target_host else if target_host:IsContainer() then container = target_host else container = target:FindForm() --if not k_uniqid_equal(design_fm, container) then if design_fm ~= container then return 0 end end end local index = self.SelectedIndex if index < 0 then return 0 end local name = self:GetText(index) for i = 1, #widget_list do local wg = widget_list[i] if wg.name == name then local widget = ui:Create(wg.widget) widget.Width = wg.width widget.Height = wg.height add_widget(container, widget, wg.name, x, y) break end end return 1 end --Show hierarchy of widget. function show_widget_hierarchy(ui, hierarchy_tv, widget) local meta = ui:GetMeta(widget) local part_num = meta:GetPartCount() for i = 0, part_num - 1 do local part_name = meta:GetPartName(i) if k_find_property(widget, part_name) then local part_id = k_property(widget, part_name) if k_exists(part_id) then local ident = hierarchy_tv:GetIdentity() hierarchy_tv:AddText(part_name, true) hierarchy_tv:SetTag("P" .. k_string(part_id)) hierarchy_tv:SelectIdentity(ident) end end end if widget:IsContainer() then local child_list = widget:GetChildList() for i = 1, #child_list do local child = child_list[i] local ident = hierarchy_tv:GetIdentity() hierarchy_tv:AddText(child.Name, true) hierarchy_tv:SetTag("C" .. k_string(child)) show_widget_hierarchy(ui, hierarchy_tv, child) hierarchy_tv:SelectIdentity(ident) end end return 1 end --Show hierarchy of design form. function show_hierarchy() local ud = k_global("ud") local ui = ud.ui local design_fm = ud.design_fm local hierarchy_tv = ud.desk_fm.hierarchy_tv hierarchy_tv:BeginUpdate() hierarchy_tv:Clear() hierarchy_tv:CreateRoot(design_fm.Name, true) hierarchy_tv:SetTag("C" .. k_string(design_fm)) show_widget_hierarchy(ui, hierarchy_tv, design_fm) hierarchy_tv:SelectRoot() hierarchy_tv:EndUpdate() return 1 end --Show editable property of part widget. function show_part_property(part_widget) local ud = k_global("ud") local ui = ud.ui local meta = ui:GetMeta(part_widget) local prop_num = meta:GetPropertyCount() local part_prop_num = 0 for i = 0, prop_num - 1 do if meta:GetPropertyPart(i) then part_prop_num = part_prop_num + 1 end end edit_property_ended() local prop_dg = ud.desk_fm.property_dg prop_dg:BeginUpdate() prop_dg.RowCount = part_prop_num local row = 0 for i = 0, prop_num - 1 do if meta:GetPropertyPart(i) then local prop_name = meta:GetPropertyName(i) local prop_type = meta:GetPropertyType(i) local prop_value = k_property(part_widget, prop_name) prop_dg:SetGridText(row, 0, prop_name) prop_dg:SetGridText(row, 1, k_string(prop_value)) row = row + 1 end end prop_dg:EndUpdate() prop_dg:SelectRow(-1) prop_dg.target = part_widget prop_dg.edit_row = -1 return 1 end --Show editable property of widget. function show_property(widget) local ud = k_global("ud") local ui = ud.ui local meta = ui:GetMeta(widget) local prop_num = meta:GetPropertyCount() local prop_dg = ud.desk_fm.property_dg edit_property_ended() prop_dg:BeginUpdate() prop_dg.RowCount = prop_num + 1 prop_dg:SetGridText(0, 0, "Name") prop_dg:SetGridText(0, 1, widget.Name) for i = 0, prop_num - 1 do local prop_name = meta:GetPropertyName(i) local prop_type = meta:GetPropertyType(i) local prop_value = k_property(widget, prop_name) prop_dg:SetGridText(i + 1, 0, prop_name) prop_dg:SetGridText(i + 1, 1, k_string(prop_value)) end prop_dg:EndUpdate() prop_dg:SelectRow(-1) prop_dg.target = widget prop_dg.edit_row = -1 return 1 end --Pick widget. function pick_widget(widget) local ud = k_global("ud") local ui = ud.ui local picker = ud.picker if not k_exists(picker) then picker = k_run_routine("ud_picker", "create_picker", ui) ud.desk_fm.work_pn:AddChild(picker) ud.picker = picker end picker.GlobalLeft = widget.GlobalLeft picker.GlobalTop = widget.GlobalTop picker.Width = widget.Width picker.Height = widget.Height picker.Target = widget picker:BringToFront() local hierarchy_tv = ud.desk_fm.hierarchy_tv local ident = hierarchy_tv:FindTag("C" .. k_string(widget)) if ident >= 0 then hierarchy_tv:SelectIdentity(ident) end show_property(widget) return 1 end --Hierarchy tree view select node. function hierarchy_tv_select(self, old_identity) local tag = self:GetTag() local widget_type = string.sub(tag, 1, 1) local widget_id = string.sub(tag, 2) local widget = k_uniqid(widget_id) if not k_exists(widget) then return 0 end if widget_type == "C" then --show_property(widget) pick_widget(widget) elseif widget_type == "P" then show_part_property(widget) end return 1 end --Edit property ended. function edit_property_ended() local ud = k_global("ud") local ui = ud.ui local prop_dg = ud.desk_fm.property_dg if not k_find_extra(prop_dg, "target") then return 0 end local target = prop_dg.target if not k_exists(target) then return 0 end local edit_row = prop_dg.edit_row if edit_row < 0 then return 0 end local prop_name = prop_dg:GetGridText(edit_row, 0) local prop_value = prop_dg:GetGridText(edit_row, 1) local edit_wg = prop_dg:GetGridWidget(edit_row, 1) if k_exists(edit_wg) then prop_value = edit_wg.Text ui:Delete(edit_wg) end set_widget_property(target, prop_name, prop_value) prop_dg:SetGridText(edit_row, 1, k_string(k_property(target, prop_name))) prop_dg.edit_row = -1 return 1 end --Property data grid select row. function property_dg_select_row(self, old_row) local ud = k_global("ud") local ui = ud.ui local target = self.target local cur_row = self.CurrentRow if not k_exists(target) then return 0 end edit_property_ended() if cur_row < 0 then return 0 end local prop_name = self:GetGridText(cur_row, 0) local prop_text = self:GetGridText(cur_row, 1) if prop_name == "Name" then local widget = ui:Create("FlatTextBox") widget.Text = prop_text self:SetGridWidget(cur_row, 1, widget) self.edit_row = cur_row ui:FocusTo(widget) return 1 end local meta = ui:GetMeta(target) local prop_type = meta:FindPropertyType(prop_name) if prop_type == "" then return 0 end local widget = k_uniqid() if prop_name == "ImageLayout" then widget = ui:Create("FlatComboBox") widget.Text = prop_text widget.InputBox.ReadOnly = true widget.DropList:AddText("fit") widget.DropList:AddText("9patch") widget.DropList:AddText("v3patch") widget.DropList:AddText("h3patch") k_bind(widget, "ud_desk_fm") k_event(widget, "select", "edit_string_cx_select") elseif prop_name == "TextAlign" then widget = ui:Create("FlatComboBox") widget.Text = prop_text widget.InputBox.ReadOnly = true widget.DropList:AddText("Left") widget.DropList:AddText("Center") widget.DropList:AddText("Right") k_bind(widget, "ud_desk_fm") k_event(widget, "select", "edit_string_cx_select") elseif prop_type == "boolean" then widget = ui:Create("FlatComboBox") widget.Text = prop_text widget.InputBox.ReadOnly = true widget.DropList:AddText("true") widget.DropList:AddText("false") k_bind(widget, "ud_desk_fm") k_event(widget, "select", "edit_boolean_cx_select") elseif prop_type == "int32" or prop_type == "int64" or prop_type == "float" or prop_type == "double" then widget = ui:Create("FlatNumeric") widget.Text = prop_text elseif prop_type == "string" then widget = ui:Create("FlatTextBox") widget.Text = prop_text elseif prop_type == "color" then widget = ui:Create("FlatButton") widget.Text = prop_text k_bind(widget, "ud_desk_fm") k_event(widget, "click", "set_color_bn_click") elseif prop_type == "image" then widget = ui:Create("FlatButton") widget.Text = prop_text k_bind(widget, "ud_desk_fm") k_event(widget, "click", "set_image_bn_click") elseif prop_type == "cursor" then widget = ui:Create("FlatComboBox") widget.Text = prop_text widget.InputBox.ReadOnly = true local cursor_list = ui:GetCursorList() for i = 1, #cursor_list do widget.DropList:AddText(cursor_list[i]) end k_bind(widget, "ud_desk_fm") k_event(widget, "select", "edit_string_cx_select") elseif prop_type == "font" then widget = ui:Create("FlatComboBox") widget.Text = prop_text widget.InputBox.ReadOnly = true local font_list = ui:GetFontList() for i = 1, #font_list do widget.DropList:AddText(font_list[i]) end k_bind(widget, "ud_desk_fm") k_event(widget, "select", "edit_string_cx_select") elseif prop_type == "file" then widget = ui:Create("FlatButton") widget.Text = prop_text k_bind(widget, "ud_desk_fm") k_event(widget, "click", "set_file_bn_click") else widget = ui:Create("FlatTextBox") widget.Text = prop_text end self:SetGridWidget(cur_row, 1, widget) self.edit_row = cur_row ui:FocusTo(widget) return 1 end --Set need save flag. function set_need_save() local ud = k_global("ud") ud.need_save = true ud.desk_fm.file_mn:EnableStrip("save") return 1 end --Set property value of widget. function set_widget_property(widget, prop_name, prop_value) local ud = k_global("ud") local ui = ud.ui if prop_name == "Name" then local design_fm = ud.design_fm --if k_uniqid_equal(design_fm, widget) then if design_fm == widget then k_set_property(widget, "Name", k_string(prop_value)) else local old_name = k_property(widget, "Name") k_remove_extra(design_fm, old_name) k_set_property(widget, "Name", k_string(prop_value)) k_set_extra(design_fm, prop_name, widget) end --Update widget name in hierarchy tree. show_hierarchy() local hierarchy_tv = ud.desk_fm.hierarchy_tv local ident = hierarchy_tv:FindTag("C" .. k_string(widget)) if ident >= 0 then hierarchy_tv.Enabled = false hierarchy_tv:SelectIdentity(ident) hierarchy_tv.Enabled = true end set_need_save() return 1 end local meta = ui:GetMeta(widget) local prop_type = meta:FindPropertyType(prop_name) if prop_type == "" then return 0 end if prop_type == "boolean" then prop_value = k_boolean(prop_value) elseif prop_type == "int32" or prop_type == "int64" or prop_type == "float" or prop_type == "double" then prop_value = k_number(prop_value) end if not k_set_property(widget, prop_name, prop_value) then return 0 end if prop_name == "Left" or prop_name == "Top" or prop_name == "Width" or prop_name == "Height" then local picker = ud.picker --if k_uniqid_equal(design_fm, widget) then if design_fm == widget then if prop_name == "Left" then widget.Left = prop_value picker.GlobalLeft = widget.GlobalLeft elseif prop_name == "Top" then widget.Top = prop_value picker.GlobalTop = widget.GlobalTop elseif prop_name == "Width" then widget.Width = prop_value picker.Width = widget.Width elseif prop_name == "Height" then widget.Height = prop_value picker.Height = widget.Height end end end set_need_save() return 1 end --Edit property boolean value. function edit_boolean_cx_select(self) local prop_dg = self.Parent local target = prop_dg.target if not k_exists(target) then return 0 end local edit_row = prop_dg.edit_row local prop_name = prop_dg:GetGridText(edit_row, 0) local prop_value = self.InputBox.Text set_widget_property(target, prop_name, prop_value) return 1 end --Edit property string value. function edit_string_cx_select(self) local prop_dg = self.Parent local target = prop_dg.target if not k_exists(target) then return 0 end local edit_row = prop_dg.edit_row local prop_name = prop_dg:GetGridText(edit_row, 0) local prop_value = self.InputBox.Text set_widget_property(target, prop_name, prop_value) return 1 end --Edit color button click. function set_color_bn_click(self) local ui = self:GetUI() local dialog = ui:LoadForm("ud_set_color_fm.json") dialog.color = self.Text dialog:ShowDialog() local result, color = k_wait_signal(-1, dialog, "set_color_signal") if result == "cancel" then return 0 end local prop_dg = self.Parent local target = prop_dg.target if not k_exists(target) then return 0 end local edit_row = prop_dg.edit_row local prop_name = prop_dg:GetGridText(edit_row, 0) prop_dg:SetGridText(edit_row, 1, color) self.Text = file_name set_widget_property(target, prop_name, color) return 1 end --Edit image button click. function set_image_bn_click(self) local ui = self:GetUI() local dialog = ui:LoadForm("ud_open_file_fm.json") dialog.file_dir = k_path("asset") .. "png/" dialog.file_root = "png" dialog.file_ext = "*.png" dialog.file_name = self.Text dialog:ShowDialog() local result, file_name = k_wait_signal(-1, dialog, "open_file_signal") if result == "cancel" then return 0 end --Cut asset path. file_name = string.sub(file_name, string.len(k_path("asset")) + 1) local prop_dg = self.Parent local target = prop_dg.target if not k_exists(target) then return 0 end local edit_row = prop_dg.edit_row local prop_name = prop_dg:GetGridText(edit_row, 0) prop_dg:SetGridText(edit_row, 1, file_name) self.Text = file_name set_widget_property(target, prop_name, file_name) return 1 end --Edit file button click. function set_file_bn_click(self) local ui = self:GetUI() local dialog = ui:LoadForm("ud_open_file_fm.json") dialog.file_dir = k_path("asset") dialog.file_root = "asset" dialog.file_ext = "*.*" dialog.file_name = self.Text dialog:ShowDialog() local result, file_name = k_wait_signal(-1, dialog, "open_file_signal") if result == "cancel" then return 0 end --Cut asset path. file_name = string.sub(file_name, string.len(k_path("asset")) + 1) local prop_dg = self.Parent local target = prop_dg.target if not k_exists(target) then return 0 end local edit_row = prop_dg.edit_row local prop_name = prop_dg:GetGridText(edit_row, 0) prop_dg:SetGridText(edit_row, 1, file_name) self.Text = file_name set_widget_property(target, prop_name, file_name) return 1 end
--[[ This is a socket listener for running Jester sequences via the FreeSWITCH event system. It is experimental, use at your own risk. To start listener, set it as a startup script in conf/autoload_configs/lua.conf.xml: <param name="startup-script" value="jester/socket.lua [server] [port] [password]"/> Or via luarun: luarun jester/socket.lua [server] [port] [password] It listens for CUSTOM events of subclass 'jester::socket'. Firing an event for the listener looks something like this: sendevent CUSTOM Event-Subclass: jester::socket Jester-Profile: socket Jester-Sequence: mysequence Jester-Sequence-Args: arg1,arg2 Jester-Sequence: Required. The name of the sequence to run. Jester-Profile: Optional. The profile to run the sequence under. Defaults to 'socket'. Jester-Sequence-Args: Optional. Arguments to pass to the sequence, in the same form that normal sequence arguments are passed. To exit the listener, you can send this event: sendevent CUSTOM Event-Subclass: jester::socket Jester-Socket-Exit: yes WARNING: there is no session object available with this approach, so be careful not to use actions that need a session (play, record, get_digits, etc.) or the listener will crash! The sequences should be more along the lines of performing database/file manipulation, logging to file, etc. ]] require "jester.core" require "jester.conf" require "jester.debug" require "ESL" --[[ Logs socket information to the FreeSWITCH console. ]] function jester.socket_log(message) jester.log(message, "JESTER SOCKET") end --[[ Connect to FreeSWITCH. ]] function jester.socket_connect() -- Login information for the event socket. local host = argv[1] or "localhost" local port = argv[2] or "8021" local password = argv[3] or "ClueCon" jester.sock = assert(ESL.ESLconnection(host, port, password)) end -- This is always true on a socket connection, setting it here allows early -- logging. jester.is_freeswitch = true jester.socket_connect() if jester.sock and jester.sock:connected() then jester.socket_log("connected") -- Subscribe only to Jester socket events. jester.sock:events("plain", "CUSTOM jester::socket") jester.continue_socket = true while jester.sock and jester.sock:connected() and jester.continue_socket do local event = jester.sock:recvEvent() -- Provide a way to turn exit the listener. if event:getHeader("Jester-Socket-Exit") then jester.continue_socket = false jester.socket_log("received disconnect command") else local sequence = event:getHeader("Jester-Sequence") if sequence then local profile = event:getHeader("Jester-Profile") or "socket" local sequence_args = event:getHeader("Jester-Sequence-Args") or "" local args = { profile, sequence, } if sequence_args then table.insert(args, sequence_args) end jester.socket_log(string.format([[received Jester event: %s]], table.concat(args, " "))) jester.bootstrap(args) if jester.bootstrapped then -- Main loop. jester.main() end end end end jester.socket_log("disconnecting") if jester.sock and jester.sock:connected() then jester.sock:disconnect() end end
local gui = require("__flib__.control.gui") local translation = require("__flib__.control.translation") return { ["0.2.0"] = function() gui.init() translation.init() global.__lualib = nil global.flags.iterating_ltn_data = false global.flags.updating_guis = false local tick = game.tick for _, player_table in pairs(game.players) do player_table.last_update = tick end end }
-- Free FatCow-Farm Fresh Icons -- http://www.fatcow.com/free-icons ico = { } ico.note_go = iup.imagergba{ width = 24, height = 24, pixels = { 167, 117, 45, 26, 208, 149, 59, 233, 210, 152, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 212, 153, 63, 255, 201, 141, 54, 163, 0, 0, 0, 0, 0, 0, 0, 0, 134, 88, 28, 46, 230, 190, 106, 255, 255, 225, 104, 254, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 220, 93, 255, 255, 246, 158, 254, 199, 133, 45, 231, 0, 0, 0, 0, 0, 0, 0, 0, 122, 79, 23, 50, 229, 190, 117, 255, 255, 211, 70, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 203, 49, 255, 255, 242, 168, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 23, 50, 230, 190, 112, 255, 241, 192, 77, 255, 239, 186, 68, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 238, 182, 59, 255, 255, 238, 162, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 108, 255, 255, 221, 112, 255, 255, 218, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 217, 101, 255, 255, 240, 163, 255, 198, 131, 42, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 109, 255, 255, 210, 77, 255, 255, 205, 70, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 203, 61, 255, 255, 237, 156, 255, 198, 131, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 107, 255, 255, 212, 82, 255, 255, 208, 75, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 206, 67, 255, 255, 238, 154, 255, 198, 131, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 105, 255, 255, 212, 85, 255, 255, 208, 79, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 79, 255, 255, 206, 72, 255, 255, 236, 151, 255, 198, 132, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 103, 255, 255, 212, 87, 255, 255, 208, 81, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 207, 74, 255, 255, 235, 149, 255, 198, 132, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 185, 101, 255, 255, 213, 91, 255, 255, 210, 85, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 208, 79, 255, 255, 234, 145, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 185, 100, 255, 255, 214, 93, 255, 255, 210, 88, 255, 255, 210, 89, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 209, 82, 255, 255, 234, 143, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 184, 98, 255, 255, 214, 96, 255, 255, 210, 91, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 211, 93, 255, 255, 209, 87, 255, 255, 233, 142, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 81, 27, 50, 228, 183, 96, 255, 255, 216, 99, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 211, 95, 255, 255, 214, 99, 255, 228, 206, 89, 255, 246, 211, 90, 255, 255, 233, 141, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 86, 31, 50, 214, 156, 68, 255, 254, 217, 102, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 220, 103, 255, 255, 215, 100, 255, 254, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 212, 99, 255, 255, 212, 99, 255, 255, 212, 98, 255, 255, 212, 99, 255, 255, 223, 113, 255, 27, 122, 0, 255, 127, 161, 14, 255, 255, 235, 145, 255, 200, 133, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 124, 85, 31, 50, 226, 174, 85, 255, 211, 153, 66, 255, 204, 143, 59, 255, 203, 141, 58, 255, 203, 140, 56, 255, 205, 143, 56, 255, 242, 197, 91, 255, 255, 213, 102, 255, 255, 212, 101, 255, 255, 212, 101, 255, 254, 214, 102, 255, 255, 220, 112, 255, 255, 223, 116, 255, 255, 223, 117, 255, 255, 223, 117, 255, 255, 223, 117, 255, 255, 234, 130, 255, 60, 136, 6, 255, 159, 193, 52, 255, 140, 177, 51, 255, 227, 139, 64, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 87, 35, 50, 216, 157, 57, 255, 227, 172, 57, 255, 249, 198, 58, 255, 255, 215, 69, 255, 255, 221, 93, 255, 250, 216, 108, 255, 223, 170, 74, 255, 255, 216, 105, 255, 255, 213, 104, 255, 255, 214, 104, 255, 255, 221, 115, 255, 97, 148, 14, 255, 53, 134, 7, 255, 57, 135, 3, 255, 57, 135, 4, 255, 57, 135, 4, 255, 59, 135, 3, 255, 91, 151, 25, 255, 216, 229, 120, 255, 134, 181, 17, 255, 112, 138, 13, 229, 0, 0, 0, 5, 0, 0, 0, 0, 124, 84, 34, 50, 226, 172, 66, 255, 233, 182, 64, 255, 221, 166, 57, 255, 242, 189, 57, 255, 255, 207, 65, 255, 247, 205, 82, 255, 224, 173, 80, 255, 255, 217, 110, 255, 255, 214, 107, 255, 255, 214, 108, 255, 255, 225, 123, 255, 53, 134, 11, 255, 221, 237, 108, 255, 190, 218, 43, 255, 191, 219, 45, 255, 191, 219, 45, 255, 191, 219, 45, 255, 189, 218, 47, 255, 164, 201, 32, 255, 176, 209, 45, 255, 155, 197, 47, 252, 82, 143, 0, 158, 53, 107, 0, 10, 123, 84, 32, 50, 226, 173, 71, 255, 243, 198, 76, 255, 234, 185, 65, 255, 221, 165, 57, 255, 243, 190, 57, 255, 248, 202, 62, 255, 224, 173, 83, 255, 255, 217, 112, 255, 255, 214, 110, 255, 255, 215, 111, 255, 255, 225, 126, 255, 56, 134, 7, 255, 187, 220, 62, 255, 150, 198, 0, 255, 152, 198, 0, 255, 152, 198, 0, 255, 152, 198, 0, 255, 152, 199, 0, 255, 153, 200, 0, 255, 151, 199, 0, 255, 170, 210, 23, 255, 124, 176, 20, 255, 45, 97, 0, 40, 123, 82, 31, 50, 227, 175, 78, 255, 246, 203, 90, 255, 241, 196, 76, 255, 231, 181, 64, 255, 222, 166, 58, 255, 239, 185, 55, 255, 225, 177, 86, 255, 255, 220, 117, 255, 254, 216, 114, 255, 255, 216, 114, 255, 255, 227, 131, 255, 54, 133, 2, 255, 182, 225, 43, 255, 156, 209, 0, 255, 156, 209, 0, 255, 156, 209, 0, 255, 156, 209, 0, 255, 156, 208, 0, 255, 153, 205, 0, 255, 155, 207, 0, 255, 150, 204, 0, 255, 92, 149, 0, 219, 30, 61, 0, 35, 123, 82, 30, 50, 231, 183, 86, 255, 254, 218, 108, 254, 250, 208, 94, 255, 247, 204, 80, 255, 236, 187, 66, 255, 225, 171, 59, 255, 230, 181, 91, 255, 247, 207, 109, 255, 255, 228, 127, 255, 255, 226, 125, 255, 255, 235, 139, 255, 80, 150, 13, 255, 104, 181, 8, 255, 97, 175, 0, 255, 98, 176, 0, 255, 98, 176, 0, 255, 98, 176, 0, 255, 117, 178, 0, 255, 162, 219, 0, 255, 142, 208, 0, 254, 110, 153, 9, 240, 1, 32, 0, 64, 0, 0, 0, 9, 125, 87, 33, 50, 211, 150, 60, 255, 213, 152, 62, 255, 212, 151, 61, 255, 212, 151, 60, 255, 213, 152, 60, 255, 211, 150, 59, 255, 211, 150, 60, 255, 211, 149, 59, 255, 212, 153, 62, 255, 212, 152, 61, 255, 216, 153, 64, 255, 208, 149, 58, 255, 202, 146, 57, 255, 204, 147, 58, 255, 204, 147, 58, 255, 204, 147, 58, 255, 220, 147, 65, 255, 64, 145, 0, 254, 154, 223, 0, 255, 114, 151, 13, 255, 212, 140, 63, 225, 0, 0, 0, 4, 2, 4, 0, 0, 0, 0, 0, 16, 36, 25, 9, 64, 78, 55, 21, 91, 76, 54, 21, 90, 76, 53, 22, 90, 76, 53, 21, 90, 75, 54, 21, 90, 75, 54, 22, 90, 76, 53, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 75, 54, 21, 90, 75, 54, 21, 90, 74, 54, 20, 90, 74, 54, 20, 90, 74, 54, 20, 90, 73, 53, 20, 89, 48, 14, 18, 75, 70, 148, 0, 255, 91, 163, 0, 240, 82, 65, 23, 107, 0, 0, 0, 28, 33, 22, 10, 5, 0, 0, 0, 0, 3, 2, 0, 2, 0, 0, 0, 9, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 11, 0, 0, 0, 19, 53, 116, 0, 162, 35, 70, 0, 91, 0, 0, 0, 18, 6, 3, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 4, 0, 5, 0, 0, 0, 18, 0, 0, 0, 13, 1, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.note_edit = iup.imagergba{ width = 24, height = 24, pixels = { 167, 117, 45, 26, 208, 149, 59, 233, 210, 152, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 212, 153, 63, 255, 201, 141, 54, 163, 0, 0, 0, 0, 0, 0, 0, 0, 134, 88, 28, 46, 230, 190, 106, 255, 255, 225, 104, 254, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 220, 93, 255, 255, 246, 158, 254, 199, 133, 45, 231, 0, 0, 0, 0, 0, 0, 0, 0, 122, 79, 23, 50, 229, 190, 117, 255, 255, 211, 70, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 203, 49, 255, 255, 242, 168, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 23, 50, 230, 190, 112, 255, 241, 192, 77, 255, 239, 186, 68, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 238, 182, 59, 255, 255, 238, 162, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 108, 255, 255, 221, 112, 255, 255, 218, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 217, 101, 255, 255, 240, 163, 255, 198, 131, 42, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 109, 255, 255, 210, 77, 255, 255, 205, 70, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 203, 61, 255, 255, 238, 156, 255, 198, 131, 42, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 107, 255, 255, 212, 82, 255, 255, 208, 75, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 254, 208, 76, 255, 255, 209, 64, 255, 251, 229, 152, 255, 199, 134, 50, 226, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 105, 255, 255, 212, 85, 255, 255, 208, 79, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 79, 255, 255, 210, 75, 255, 249, 194, 94, 255, 213, 148, 214, 255, 208, 145, 214, 242, 173, 94, 131, 54, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 103, 255, 255, 212, 87, 255, 255, 208, 81, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 254, 209, 81, 255, 249, 210, 76, 255, 139, 149, 163, 255, 215, 162, 219, 255, 204, 153, 207, 255, 198, 125, 177, 255, 175, 94, 134, 30, 122, 80, 26, 50, 229, 185, 101, 255, 255, 213, 91, 255, 255, 210, 85, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 254, 210, 86, 255, 255, 213, 87, 255, 254, 206, 69, 255, 144, 160, 198, 255, 233, 235, 237, 255, 135, 150, 140, 255, 193, 136, 195, 255, 191, 115, 168, 255, 124, 64, 90, 43, 122, 80, 26, 50, 229, 185, 100, 255, 255, 214, 93, 255, 255, 210, 88, 255, 255, 210, 89, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 213, 90, 255, 239, 190, 76, 255, 221, 154, 63, 255, 205, 215, 218, 255, 176, 185, 197, 255, 138, 139, 141, 255, 99, 116, 122, 245, 128, 48, 83, 90, 0, 0, 0, 12, 122, 80, 26, 50, 229, 184, 98, 255, 255, 214, 96, 255, 255, 210, 91, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 254, 212, 93, 255, 250, 209, 90, 255, 216, 152, 67, 255, 255, 246, 212, 255, 255, 193, 96, 255, 175, 138, 83, 255, 85, 103, 133, 255, 208, 145, 49, 228, 0, 0, 0, 8, 5, 2, 4, 1, 122, 81, 27, 50, 228, 183, 96, 255, 255, 216, 99, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 254, 212, 95, 255, 255, 215, 96, 255, 250, 211, 92, 255, 199, 126, 57, 255, 255, 245, 193, 255, 254, 190, 102, 255, 255, 147, 12, 255, 195, 118, 30, 255, 254, 237, 137, 255, 201, 134, 44, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 86, 31, 50, 214, 156, 68, 255, 254, 217, 102, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 220, 103, 255, 255, 215, 100, 255, 254, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 215, 100, 255, 239, 192, 84, 255, 216, 151, 67, 255, 255, 245, 193, 255, 254, 193, 112, 255, 255, 155, 16, 255, 187, 118, 42, 255, 227, 195, 94, 255, 255, 236, 139, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 124, 85, 31, 50, 226, 174, 85, 255, 211, 153, 66, 255, 204, 143, 59, 255, 203, 141, 58, 255, 203, 140, 56, 255, 205, 143, 56, 255, 242, 197, 91, 255, 255, 213, 102, 255, 255, 212, 101, 255, 255, 212, 101, 255, 254, 214, 102, 255, 250, 212, 99, 255, 216, 151, 66, 255, 255, 245, 212, 255, 254, 190, 102, 255, 255, 155, 16, 255, 158, 96, 41, 255, 247, 216, 105, 255, 255, 216, 100, 255, 255, 231, 135, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 87, 35, 50, 216, 157, 57, 255, 227, 172, 57, 255, 249, 198, 58, 255, 255, 215, 69, 255, 255, 221, 93, 255, 250, 216, 108, 255, 223, 170, 74, 255, 255, 216, 105, 255, 254, 214, 104, 255, 255, 217, 106, 255, 250, 213, 102, 255, 199, 125, 55, 255, 255, 245, 193, 255, 254, 190, 101, 255, 255, 147, 12, 255, 187, 118, 42, 255, 247, 217, 108, 255, 254, 216, 105, 255, 255, 213, 101, 255, 255, 231, 134, 255, 198, 132, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 124, 84, 34, 50, 226, 172, 66, 255, 233, 182, 64, 255, 221, 166, 57, 255, 242, 189, 57, 255, 255, 207, 65, 255, 247, 205, 82, 255, 224, 173, 80, 255, 255, 217, 110, 255, 255, 218, 110, 255, 239, 193, 93, 255, 216, 151, 66, 255, 255, 245, 193, 255, 254, 193, 112, 255, 255, 155, 15, 255, 187, 117, 41, 255, 227, 197, 106, 255, 255, 219, 109, 255, 255, 214, 107, 255, 255, 213, 106, 255, 255, 230, 133, 255, 198, 133, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 123, 84, 32, 50, 226, 173, 71, 255, 243, 198, 76, 255, 234, 185, 65, 255, 221, 165, 57, 255, 243, 190, 57, 255, 248, 202, 62, 255, 224, 173, 83, 255, 255, 218, 113, 255, 249, 210, 105, 255, 218, 152, 63, 255, 255, 245, 211, 255, 254, 190, 102, 255, 255, 155, 15, 255, 158, 95, 39, 255, 247, 218, 115, 255, 255, 219, 112, 255, 254, 215, 110, 255, 255, 214, 110, 255, 255, 214, 109, 255, 255, 229, 132, 255, 198, 133, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 123, 82, 31, 50, 227, 175, 78, 255, 246, 203, 90, 255, 241, 196, 76, 255, 231, 181, 64, 255, 222, 166, 58, 255, 239, 185, 55, 255, 225, 177, 86, 255, 255, 226, 120, 255, 210, 168, 86, 255, 238, 229, 203, 255, 255, 194, 108, 255, 255, 146, 10, 255, 187, 117, 40, 255, 247, 219, 119, 255, 254, 218, 116, 255, 255, 216, 114, 255, 255, 216, 114, 255, 255, 216, 114, 255, 255, 216, 113, 255, 255, 229, 132, 255, 198, 133, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 123, 82, 30, 50, 231, 183, 86, 255, 254, 218, 108, 254, 250, 208, 94, 255, 247, 204, 80, 255, 236, 187, 66, 255, 225, 171, 59, 255, 231, 183, 91, 255, 242, 201, 97, 255, 222, 186, 125, 255, 255, 239, 194, 255, 233, 172, 92, 255, 195, 125, 40, 255, 230, 209, 122, 255, 255, 230, 127, 255, 255, 226, 125, 255, 255, 225, 125, 255, 255, 225, 125, 255, 255, 225, 125, 255, 255, 225, 125, 255, 255, 238, 138, 254, 199, 134, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 87, 33, 50, 211, 150, 60, 255, 213, 152, 62, 255, 212, 151, 61, 255, 212, 151, 60, 255, 213, 152, 60, 255, 211, 150, 59, 255, 223, 156, 58, 255, 147, 114, 64, 255, 153, 137, 107, 255, 213, 163, 87, 255, 180, 124, 47, 255, 206, 146, 59, 255, 215, 156, 64, 255, 212, 152, 62, 255, 212, 152, 61, 255, 212, 152, 61, 255, 212, 152, 61, 255, 212, 152, 61, 255, 212, 152, 61, 255, 214, 155, 63, 255, 202, 142, 55, 226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 36, 25, 9, 64, 78, 55, 21, 91, 76, 54, 21, 90, 76, 53, 22, 90, 76, 53, 21, 90, 72, 50, 18, 88, 103, 81, 47, 127, 71, 80, 94, 236, 99, 78, 50, 212, 77, 48, 9, 96, 80, 58, 24, 89, 76, 53, 21, 90, 75, 53, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 75, 53, 21, 90, 87, 61, 24, 94, 0, 0, 0, 29, 30, 21, 8, 5, 0, 0, 0, 0, 3, 2, 0, 2, 0, 0, 0, 9, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 12, 73, 77, 86, 86, 80, 66, 45, 94, 0, 0, 0, 26, 0, 0, 0, 17, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 11, 6, 4, 1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 0, 0, 0, 0, 9, 0, 0, 0, 11, 2, 2, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.flag_orange = iup.imagergba{ width = 24, height = 24, pixels = { 0, 0, 0, 0, 0, 0, 0, 0, 159, 108, 54, 163, 169, 121, 64, 255, 162, 113, 58, 233, 124, 89, 47, 25, 0, 0, 0, 0, 201, 94, 27, 9, 210, 93, 25, 20, 214, 94, 23, 29, 215, 90, 19, 30, 215, 90, 18, 30, 215, 90, 18, 30, 214, 93, 23, 27, 196, 91, 28, 6, 0, 0, 0, 0, 255, 143, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 128, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 143, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 104, 48, 231, 209, 192, 131, 254, 167, 122, 63, 255, 174, 85, 30, 101, 215, 95, 27, 133, 222, 124, 61, 180, 231, 150, 93, 228, 235, 164, 110, 255, 235, 172, 121, 255, 235, 174, 124, 255, 235, 173, 123, 255, 234, 160, 106, 255, 218, 113, 49, 171, 214, 108, 43, 80, 0, 0, 0, 0, 255, 168, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 84, 23, 26, 220, 111, 44, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 192, 114, 50, 255, 240, 160, 97, 246, 249, 200, 148, 255, 252, 216, 167, 255, 254, 207, 137, 255, 255, 200, 113, 255, 255, 198, 99, 254, 255, 196, 81, 255, 255, 216, 125, 254, 254, 213, 136, 255, 253, 219, 165, 255, 214, 99, 31, 219, 0, 0, 0, 0, 0, 0, 0, 0, 200, 94, 31, 47, 212, 96, 27, 180, 226, 126, 61, 235, 222, 120, 55, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 110, 46, 255, 252, 201, 137, 255, 255, 159, 36, 255, 254, 151, 14, 255, 255, 160, 26, 255, 255, 171, 42, 255, 255, 180, 57, 255, 255, 190, 70, 255, 255, 197, 79, 255, 255, 173, 40, 255, 255, 225, 169, 255, 216, 96, 28, 255, 223, 122, 57, 255, 221, 117, 51, 255, 230, 146, 84, 255, 249, 195, 137, 255, 255, 244, 205, 254, 223, 124, 60, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 110, 47, 255, 251, 196, 132, 255, 255, 138, 0, 255, 255, 156, 26, 255, 255, 166, 39, 255, 255, 174, 50, 255, 255, 182, 62, 255, 255, 190, 72, 255, 255, 200, 85, 255, 255, 178, 53, 255, 255, 211, 138, 255, 218, 108, 43, 255, 255, 249, 183, 255, 255, 229, 161, 255, 255, 210, 130, 255, 255, 176, 65, 255, 255, 214, 151, 255, 222, 122, 56, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 111, 49, 255, 251, 188, 114, 255, 255, 142, 1, 255, 255, 156, 27, 255, 255, 165, 39, 255, 255, 173, 50, 255, 255, 182, 62, 255, 255, 190, 72, 255, 255, 199, 85, 255, 255, 179, 55, 255, 255, 205, 125, 255, 217, 104, 36, 255, 255, 200, 80, 255, 254, 182, 63, 255, 255, 169, 44, 255, 255, 150, 11, 255, 255, 202, 126, 255, 222, 121, 55, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 112, 51, 255, 251, 181, 98, 255, 255, 143, 3, 255, 255, 156, 27, 255, 255, 165, 39, 255, 255, 173, 50, 255, 255, 182, 62, 255, 255, 190, 72, 255, 255, 199, 85, 255, 255, 180, 56, 255, 255, 199, 109, 255, 218, 105, 39, 255, 255, 197, 76, 255, 255, 182, 63, 255, 255, 171, 47, 255, 255, 153, 18, 255, 255, 195, 109, 255, 222, 121, 53, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 113, 53, 255, 251, 173, 81, 255, 255, 144, 5, 255, 255, 157, 27, 255, 255, 165, 39, 255, 255, 173, 50, 255, 255, 182, 62, 255, 255, 190, 72, 255, 255, 199, 85, 255, 255, 180, 58, 255, 255, 192, 95, 255, 217, 105, 42, 255, 255, 193, 74, 255, 255, 183, 63, 255, 255, 171, 46, 255, 255, 154, 20, 255, 255, 187, 91, 255, 222, 119, 50, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 114, 55, 255, 251, 165, 65, 255, 255, 145, 8, 255, 255, 157, 27, 255, 255, 165, 39, 255, 255, 173, 50, 255, 255, 182, 62, 255, 255, 190, 72, 255, 255, 199, 85, 255, 255, 181, 60, 255, 255, 185, 80, 255, 217, 105, 43, 255, 253, 190, 71, 255, 255, 183, 63, 255, 255, 171, 46, 255, 255, 156, 22, 255, 255, 179, 74, 255, 222, 118, 48, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 115, 57, 255, 251, 158, 50, 255, 255, 146, 9, 255, 255, 156, 27, 255, 255, 165, 39, 255, 255, 174, 50, 255, 255, 182, 62, 255, 255, 191, 72, 255, 255, 200, 85, 255, 255, 182, 62, 255, 255, 179, 65, 255, 217, 106, 45, 255, 252, 187, 68, 255, 255, 183, 63, 255, 255, 171, 46, 255, 255, 156, 24, 255, 255, 170, 55, 255, 222, 118, 47, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 116, 59, 255, 251, 151, 32, 255, 255, 147, 12, 255, 255, 158, 27, 255, 255, 169, 39, 255, 255, 180, 50, 255, 255, 191, 63, 255, 255, 201, 75, 255, 255, 209, 89, 255, 255, 188, 65, 255, 255, 173, 50, 255, 216, 107, 46, 255, 251, 183, 65, 255, 255, 183, 63, 255, 255, 171, 47, 255, 255, 157, 27, 255, 255, 162, 37, 255, 222, 116, 44, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 190, 117, 61, 255, 252, 145, 14, 255, 255, 152, 9, 254, 252, 152, 30, 255, 239, 139, 43, 255, 232, 131, 48, 255, 224, 117, 49, 255, 225, 117, 48, 255, 230, 134, 56, 255, 241, 152, 56, 255, 255, 168, 34, 254, 217, 108, 48, 255, 250, 179, 63, 255, 255, 184, 64, 255, 255, 171, 46, 255, 254, 158, 29, 255, 255, 156, 17, 255, 223, 115, 42, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 125, 255, 193, 119, 59, 255, 239, 125, 24, 250, 214, 111, 46, 235, 195, 97, 47, 204, 148, 74, 33, 140, 61, 30, 13, 82, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 64, 187, 92, 40, 187, 221, 111, 47, 255, 221, 113, 46, 255, 250, 179, 61, 254, 255, 187, 65, 255, 254, 172, 47, 255, 252, 159, 29, 255, 242, 135, 25, 254, 215, 110, 44, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 204, 185, 124, 255, 180, 122, 61, 255, 151, 78, 38, 139, 0, 0, 0, 46, 0, 0, 0, 27, 0, 0, 0, 19, 0, 0, 0, 12, 4, 2, 1, 8, 0, 0, 0, 8, 0, 0, 0, 12, 124, 64, 26, 78, 192, 100, 40, 193, 221, 115, 47, 255, 237, 146, 54, 255, 238, 145, 55, 255, 222, 127, 45, 236, 188, 97, 40, 189, 158, 79, 39, 146, 98, 50, 22, 66, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 165, 121, 63, 255, 75, 52, 26, 60, 0, 0, 0, 5, 2, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 5, 2, 0, 0, 0, 0, 12, 31, 16, 6, 46, 75, 38, 16, 83, 72, 34, 15, 92, 72, 34, 15, 88, 61, 29, 13, 71, 22, 11, 5, 42, 0, 0, 0, 22, 0, 0, 0, 9, 15, 8, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 98, 66, 32, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 13, 0, 0, 0, 17, 0, 0, 0, 15, 0, 0, 0, 11, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 103, 48, 227, 206, 185, 125, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 105, 50, 229, 202, 179, 118, 255, 168, 122, 63, 255, 98, 66, 33, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 134, 92, 47, 138, 122, 79, 36, 164, 133, 90, 45, 167, 68, 47, 23, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 7, 3, 2, 0, 0, 0, 16, 0, 0, 0, 25, 0, 0, 0, 22, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.black = iup.imagergba{ width = 24, height = 24, pixels = { 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 91, 91, 90, 56, 95, 95, 95, 191, 96, 96, 96, 255, 96, 96, 96, 255, 96, 96, 96, 255, 96, 96, 96, 255, 95, 95, 95, 191, 91, 91, 90, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 95, 95, 94, 155, 107, 107, 108, 255, 156, 156, 156, 255, 186, 186, 187, 255, 192, 193, 194, 255, 192, 193, 194, 255, 186, 186, 187, 255, 156, 156, 156, 255, 107, 107, 108, 255, 95, 95, 94, 155, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 4, 95, 95, 94, 177, 113, 114, 114, 255, 190, 189, 190, 255, 153, 154, 156, 255, 106, 107, 109, 255, 86, 87, 89, 255, 86, 87, 89, 255, 106, 107, 109, 255, 153, 154, 156, 255, 190, 189, 190, 255, 113, 114, 114, 255, 95, 95, 94, 156, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 81, 81, 81, 63, 109, 109, 108, 255, 186, 186, 187, 255, 117, 118, 121, 255, 94, 95, 97, 255, 97, 98, 100, 255, 98, 99, 101, 255, 98, 99, 101, 255, 97, 98, 100, 255, 94, 95, 97, 255, 117, 118, 121, 255, 186, 186, 187, 255, 109, 109, 108, 255, 82, 82, 82, 62, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 93, 93, 93, 196, 162, 162, 163, 255, 129, 130, 133, 255, 100, 101, 103, 255, 103, 104, 106, 255, 105, 106, 108, 255, 105, 106, 108, 255, 105, 106, 108, 255, 105, 106, 108, 255, 103, 104, 106, 255, 100, 101, 103, 255, 129, 130, 133, 255, 162, 162, 163, 255, 94, 94, 94, 196, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 97, 97, 97, 255, 175, 175, 177, 255, 105, 106, 108, 255, 108, 109, 111, 255, 110, 111, 113, 255, 110, 111, 113, 255, 110, 111, 113, 255, 110, 111, 113, 255, 110, 111, 113, 255, 110, 111, 113, 255, 108, 109, 111, 255, 105, 106, 108, 255, 175, 175, 177, 255, 97, 97, 97, 255, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 98, 98, 98, 255, 148, 150, 152, 255, 112, 113, 115, 255, 115, 116, 117, 255, 115, 116, 118, 255, 115, 116, 118, 255, 115, 116, 118, 255, 115, 116, 118, 255, 115, 116, 118, 255, 115, 116, 118, 255, 115, 116, 117, 255, 112, 113, 115, 255, 148, 150, 152, 255, 98, 98, 98, 255, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 99, 99, 99, 255, 138, 139, 141, 255, 119, 120, 123, 255, 120, 121, 124, 255, 120, 121, 124, 255, 120, 121, 124, 255, 120, 121, 124, 255, 120, 121, 124, 255, 120, 121, 124, 255, 120, 121, 124, 255, 120, 121, 124, 255, 119, 120, 123, 255, 138, 139, 141, 255, 99, 99, 99, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 100, 100, 99, 255, 125, 126, 129, 255, 125, 126, 130, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 129, 255, 125, 126, 130, 255, 125, 126, 129, 255, 100, 100, 99, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 92, 92, 92, 205, 120, 122, 124, 255, 131, 133, 136, 255, 129, 131, 134, 255, 129, 131, 134, 255, 129, 131, 134, 255, 129, 131, 134, 255, 129, 131, 134, 255, 129, 131, 134, 255, 129, 131, 134, 255, 129, 131, 134, 255, 131, 133, 136, 255, 120, 122, 124, 255, 92, 92, 92, 205, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 55, 55, 55, 93, 104, 104, 103, 255, 136, 138, 140, 255, 136, 138, 141, 255, 134, 136, 139, 255, 134, 136, 139, 255, 134, 136, 139, 255, 134, 136, 139, 255, 134, 136, 139, 255, 134, 136, 139, 255, 136, 138, 141, 255, 136, 138, 140, 255, 104, 104, 103, 255, 55, 55, 55, 93, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 32, 84, 84, 84, 177, 107, 107, 107, 255, 142, 143, 146, 255, 142, 144, 147, 255, 141, 143, 146, 255, 140, 142, 145, 255, 140, 142, 145, 255, 141, 143, 146, 255, 142, 144, 147, 255, 142, 143, 146, 255, 107, 107, 107, 255, 84, 84, 84, 177, 0, 0, 0, 32, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 14, 0, 0, 0, 45, 83, 83, 83, 180, 104, 104, 105, 255, 130, 131, 133, 255, 146, 148, 152, 255, 149, 152, 155, 255, 149, 152, 155, 255, 146, 148, 152, 255, 130, 131, 133, 255, 104, 104, 105, 255, 83, 83, 83, 180, 0, 0, 0, 45, 0, 0, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 18, 0, 0, 0, 45, 49, 49, 49, 105, 89, 89, 89, 209, 98, 98, 98, 255, 98, 97, 97, 255, 98, 97, 97, 255, 98, 98, 98, 255, 89, 89, 89, 209, 49, 49, 49, 105, 0, 0, 0, 45, 0, 0, 0, 18, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 14, 0, 0, 0, 32, 0, 0, 0, 52, 0, 0, 0, 64, 0, 0, 0, 67, 0, 0, 0, 67, 0, 0, 0, 64, 0, 0, 0, 52, 0, 0, 0, 32, 0, 0, 0, 14, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 21, 0, 0, 0, 15, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, }, } ico.note_delete = iup.imagergba{ width = 24, height = 24, pixels = { 167, 117, 45, 26, 208, 149, 59, 233, 210, 152, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 212, 153, 63, 255, 201, 141, 54, 163, 0, 0, 0, 0, 0, 0, 0, 0, 134, 88, 28, 46, 230, 190, 106, 255, 255, 225, 104, 254, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 220, 93, 255, 255, 246, 158, 254, 199, 133, 45, 231, 0, 0, 0, 0, 0, 0, 0, 0, 122, 79, 23, 50, 229, 190, 117, 255, 255, 211, 70, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 203, 49, 255, 255, 242, 168, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 23, 50, 230, 190, 112, 255, 241, 192, 77, 255, 239, 186, 68, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 238, 182, 59, 255, 255, 238, 162, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 108, 255, 255, 221, 112, 255, 255, 218, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 217, 101, 255, 255, 240, 163, 255, 198, 131, 42, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 109, 255, 255, 210, 77, 255, 255, 205, 70, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 203, 61, 255, 255, 237, 156, 255, 198, 131, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 107, 255, 255, 212, 82, 255, 255, 208, 75, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 206, 67, 255, 255, 238, 154, 255, 198, 131, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 105, 255, 255, 212, 85, 255, 255, 208, 79, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 79, 255, 255, 206, 72, 255, 255, 236, 151, 255, 198, 132, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 103, 255, 255, 212, 87, 255, 255, 208, 81, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 207, 74, 255, 255, 235, 149, 255, 198, 132, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 185, 101, 255, 255, 213, 91, 255, 255, 210, 85, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 208, 79, 255, 255, 234, 145, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 185, 100, 255, 255, 214, 93, 255, 255, 210, 88, 255, 255, 210, 89, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 89, 255, 255, 211, 89, 255, 255, 211, 89, 255, 255, 209, 82, 255, 255, 234, 144, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 184, 98, 255, 255, 214, 96, 255, 255, 210, 91, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 254, 211, 93, 255, 255, 219, 95, 255, 255, 230, 98, 255, 255, 234, 99, 255, 255, 234, 99, 255, 255, 229, 93, 255, 255, 243, 145, 255, 198, 134, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 81, 27, 50, 228, 183, 96, 255, 255, 216, 99, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 254, 212, 95, 255, 255, 216, 96, 255, 252, 214, 95, 255, 230, 150, 73, 255, 195, 64, 52, 255, 188, 46, 48, 255, 188, 46, 48, 255, 196, 63, 49, 255, 237, 166, 104, 255, 201, 141, 49, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 86, 31, 50, 214, 156, 68, 255, 254, 217, 102, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 220, 103, 255, 255, 215, 100, 255, 254, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 215, 99, 255, 247, 202, 93, 255, 205, 89, 52, 255, 219, 119, 119, 255, 238, 142, 129, 255, 241, 134, 114, 255, 241, 134, 114, 255, 238, 142, 128, 255, 220, 121, 118, 255, 193, 73, 43, 235, 122, 22, 21, 30, 0, 0, 0, 0, 124, 85, 31, 50, 226, 174, 85, 255, 211, 153, 66, 255, 204, 143, 59, 255, 203, 141, 58, 255, 203, 140, 56, 255, 205, 143, 56, 255, 242, 197, 91, 255, 255, 213, 102, 255, 255, 212, 101, 255, 255, 212, 101, 255, 255, 213, 101, 255, 254, 216, 102, 255, 215, 115, 62, 255, 232, 152, 146, 255, 238, 104, 82, 255, 233, 75, 49, 255, 232, 74, 47, 255, 232, 74, 47, 255, 233, 75, 49, 255, 237, 105, 82, 255, 235, 159, 148, 255, 183, 50, 36, 148, 101, 29, 20, 3, 125, 87, 35, 50, 216, 157, 57, 255, 227, 172, 57, 255, 249, 198, 58, 255, 255, 215, 69, 255, 255, 221, 93, 255, 250, 216, 108, 255, 223, 170, 74, 255, 255, 216, 105, 255, 255, 213, 104, 255, 255, 213, 104, 255, 255, 215, 105, 255, 248, 207, 100, 255, 213, 108, 94, 255, 238, 111, 90, 255, 234, 71, 44, 255, 234, 77, 50, 255, 234, 77, 51, 255, 234, 77, 51, 255, 234, 77, 50, 255, 234, 71, 44, 255, 239, 113, 90, 255, 211, 107, 95, 245, 143, 36, 22, 31, 124, 84, 34, 50, 226, 172, 66, 255, 233, 182, 64, 255, 221, 166, 57, 255, 242, 189, 57, 255, 255, 207, 65, 255, 247, 205, 82, 255, 224, 173, 80, 255, 255, 217, 110, 255, 255, 214, 108, 255, 255, 214, 108, 255, 255, 215, 108, 255, 245, 205, 102, 255, 211, 83, 82, 255, 239, 79, 53, 255, 245, 169, 156, 255, 244, 162, 148, 255, 245, 162, 148, 255, 245, 162, 148, 255, 244, 162, 148, 255, 245, 169, 156, 255, 239, 80, 53, 254, 219, 105, 89, 255, 122, 32, 22, 47, 123, 84, 32, 50, 226, 173, 71, 255, 243, 198, 76, 255, 234, 185, 65, 255, 221, 165, 57, 255, 243, 190, 57, 255, 248, 202, 62, 255, 224, 173, 83, 255, 255, 217, 112, 255, 255, 214, 110, 255, 255, 214, 110, 255, 255, 215, 111, 255, 245, 207, 106, 255, 212, 69, 64, 255, 242, 75, 50, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 242, 76, 50, 255, 219, 89, 71, 255, 113, 32, 23, 50, 123, 82, 31, 50, 227, 175, 78, 255, 246, 203, 90, 255, 241, 196, 76, 255, 231, 181, 64, 255, 222, 166, 58, 255, 239, 185, 55, 255, 225, 177, 86, 255, 255, 220, 117, 255, 254, 216, 114, 255, 255, 215, 114, 255, 255, 217, 115, 255, 246, 208, 110, 255, 209, 59, 52, 255, 246, 99, 77, 255, 242, 79, 54, 255, 241, 76, 51, 255, 241, 76, 51, 255, 241, 76, 51, 255, 241, 76, 51, 255, 242, 79, 54, 255, 246, 100, 77, 255, 216, 78, 60, 255, 112, 34, 25, 49, 123, 82, 30, 50, 231, 183, 86, 255, 254, 218, 108, 254, 250, 208, 94, 255, 247, 204, 80, 255, 236, 187, 66, 255, 225, 171, 59, 255, 230, 181, 91, 255, 247, 207, 109, 255, 255, 228, 127, 255, 255, 225, 124, 255, 255, 226, 125, 255, 255, 226, 125, 255, 216, 101, 69, 255, 248, 104, 86, 255, 249, 107, 86, 255, 248, 106, 85, 255, 248, 106, 85, 255, 248, 106, 85, 255, 248, 106, 85, 255, 249, 107, 86, 255, 250, 108, 88, 255, 188, 64, 48, 213, 72, 21, 16, 33, 125, 87, 33, 50, 211, 150, 60, 255, 213, 152, 62, 255, 212, 151, 61, 255, 212, 151, 60, 255, 213, 152, 60, 255, 211, 150, 59, 255, 211, 150, 60, 255, 211, 149, 59, 255, 212, 153, 62, 255, 212, 152, 61, 255, 212, 152, 62, 255, 213, 156, 63, 255, 206, 125, 56, 255, 204, 70, 53, 255, 255, 119, 100, 254, 253, 115, 96, 255, 251, 113, 93, 255, 251, 113, 93, 255, 253, 115, 96, 255, 255, 118, 100, 254, 203, 71, 54, 253, 137, 42, 31, 114, 0, 0, 0, 9, 0, 0, 0, 16, 36, 25, 9, 64, 78, 55, 21, 91, 76, 54, 21, 90, 76, 53, 22, 90, 76, 53, 21, 90, 75, 54, 21, 90, 75, 54, 22, 90, 76, 53, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 76, 53, 21, 90, 63, 59, 20, 84, 133, 38, 30, 145, 195, 65, 50, 243, 239, 105, 86, 255, 247, 116, 97, 255, 247, 116, 97, 255, 239, 105, 86, 255, 195, 67, 50, 243, 140, 42, 32, 140, 0, 0, 0, 15, 11, 3, 2, 1, 3, 2, 0, 2, 0, 0, 0, 9, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 21, 59, 17, 12, 70, 138, 39, 27, 150, 141, 39, 27, 163, 141, 39, 27, 163, 138, 39, 27, 150, 59, 17, 12, 70, 0, 0, 0, 18, 27, 8, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 0, 1, 0, 0, 0, 9, 0, 0, 0, 21, 0, 0, 0, 25, 0, 0, 0, 25, 0, 0, 0, 21, 0, 0, 0, 9, 4, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.tag_blue_edit = iup.imagergba{ width = 24, height = 24, pixels = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 138, 138, 138, 101, 155, 155, 155, 248, 153, 153, 153, 255, 153, 153, 153, 255, 153, 153, 153, 255, 154, 154, 153, 255, 150, 150, 150, 230, 128, 128, 128, 43, 0, 0, 0, 0, 227, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 200, 200, 0, 0, 0, 0, 0, 133, 133, 132, 105, 174, 174, 174, 251, 234, 235, 235, 255, 223, 224, 225, 255, 230, 230, 231, 255, 230, 231, 232, 255, 229, 229, 230, 254, 223, 223, 224, 255, 153, 153, 152, 237, 128, 128, 128, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 133, 133, 133, 124, 164, 164, 163, 253, 232, 231, 232, 255, 200, 201, 203, 254, 195, 195, 197, 255, 150, 152, 155, 255, 146, 148, 151, 255, 163, 165, 169, 255, 209, 209, 210, 254, 238, 238, 238, 255, 149, 149, 149, 219, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 132, 132, 132, 105, 163, 163, 163, 253, 246, 246, 247, 254, 200, 201, 203, 255, 206, 207, 209, 255, 153, 155, 157, 251, 95, 96, 99, 130, 0, 0, 0, 46, 140, 142, 145, 224, 177, 179, 181, 255, 244, 244, 245, 255, 130, 130, 130, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 200, 200, 0, 0, 0, 0, 0, 132, 132, 132, 105, 173, 173, 173, 251, 234, 234, 233, 255, 204, 204, 206, 255, 203, 204, 206, 255, 211, 212, 212, 255, 148, 151, 154, 227, 0, 0, 0, 2, 0, 0, 0, 11, 11, 11, 12, 50, 179, 181, 184, 255, 246, 246, 246, 255, 132, 132, 132, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 133, 133, 133, 124, 163, 163, 163, 253, 236, 235, 234, 255, 230, 218, 213, 254, 228, 217, 213, 255, 209, 209, 211, 255, 212, 212, 214, 255, 172, 174, 176, 249, 164, 166, 168, 119, 184, 184, 183, 38, 163, 166, 168, 213, 191, 192, 194, 255, 247, 247, 246, 255, 131, 132, 131, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 132, 132, 132, 105, 163, 163, 163, 253, 250, 248, 249, 254, 222, 215, 213, 255, 34, 134, 188, 255, 34, 135, 188, 255, 222, 215, 214, 255, 214, 213, 214, 255, 210, 211, 213, 255, 183, 185, 188, 255, 179, 181, 185, 255, 192, 194, 196, 255, 211, 215, 214, 254, 241, 238, 241, 255, 137, 134, 136, 226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 200, 200, 0, 0, 0, 0, 0, 132, 132, 132, 105, 173, 173, 173, 251, 238, 238, 238, 255, 227, 220, 217, 255, 83, 158, 198, 255, 131, 191, 230, 255, 131, 191, 230, 255, 84, 159, 198, 255, 227, 220, 217, 255, 216, 216, 216, 255, 217, 218, 218, 255, 218, 219, 219, 255, 218, 220, 220, 255, 219, 201, 214, 255, 215, 146, 204, 255, 216, 145, 201, 242, 173, 94, 134, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 133, 133, 133, 124, 163, 163, 163, 253, 239, 238, 238, 255, 255, 237, 227, 254, 22, 128, 183, 255, 125, 189, 229, 255, 64, 157, 213, 255, 64, 157, 213, 255, 125, 189, 229, 255, 22, 129, 183, 255, 255, 237, 226, 255, 217, 218, 218, 255, 217, 218, 220, 255, 217, 220, 220, 255, 143, 148, 148, 255, 216, 162, 217, 255, 204, 153, 207, 255, 198, 125, 177, 255, 175, 94, 134, 30, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 0, 0, 0, 0, 132, 132, 132, 105, 163, 163, 163, 253, 253, 251, 250, 254, 235, 226, 223, 255, 20, 128, 183, 255, 153, 204, 238, 255, 61, 156, 214, 255, 73, 163, 216, 255, 73, 163, 216, 255, 61, 156, 213, 255, 156, 206, 240, 255, 3, 118, 178, 255, 245, 234, 234, 255, 225, 217, 212, 255, 153, 158, 164, 255, 234, 235, 236, 255, 135, 150, 140, 255, 193, 136, 195, 255, 191, 115, 167, 255, 124, 64, 90, 43, 0, 0, 0, 0, 200, 200, 200, 0, 0, 0, 0, 0, 132, 132, 132, 105, 172, 172, 172, 251, 241, 240, 240, 255, 240, 231, 227, 255, 71, 153, 196, 255, 113, 184, 227, 255, 68, 160, 215, 255, 79, 166, 217, 255, 79, 166, 217, 255, 79, 165, 217, 255, 86, 170, 221, 255, 17, 133, 197, 255, 144, 189, 215, 255, 227, 208, 199, 255, 224, 153, 48, 255, 205, 215, 216, 255, 176, 184, 197, 255, 138, 140, 141, 254, 110, 120, 116, 255, 125, 48, 82, 89, 0, 0, 0, 12, 255, 255, 255, 0, 0, 0, 0, 0, 133, 133, 133, 124, 163, 163, 163, 253, 242, 240, 241, 255, 255, 249, 238, 254, 19, 126, 182, 255, 102, 179, 224, 255, 81, 167, 218, 255, 83, 168, 217, 255, 83, 168, 217, 255, 83, 168, 217, 255, 85, 170, 219, 255, 26, 138, 198, 255, 191, 210, 222, 255, 237, 233, 236, 255, 218, 150, 54, 255, 255, 245, 210, 255, 255, 193, 96, 255, 176, 139, 83, 254, 113, 121, 128, 255, 18, 22, 20, 69, 0, 0, 0, 16, 5, 2, 4, 1, 44, 44, 44, 1, 132, 133, 133, 105, 163, 162, 162, 253, 255, 253, 253, 254, 247, 239, 235, 255, 17, 126, 182, 255, 116, 188, 229, 255, 84, 170, 218, 255, 88, 172, 219, 255, 88, 172, 219, 255, 88, 172, 219, 255, 91, 174, 221, 255, 64, 158, 210, 255, 145, 191, 216, 255, 240, 236, 239, 255, 205, 123, 24, 255, 255, 245, 192, 255, 254, 190, 102, 255, 255, 149, 12, 255, 204, 129, 35, 255, 39, 16, 0, 69, 4, 5, 5, 19, 0, 0, 0, 0, 0, 0, 0, 0, 114, 114, 114, 34, 175, 175, 175, 255, 243, 243, 243, 255, 232, 232, 234, 255, 68, 153, 198, 255, 93, 176, 223, 255, 90, 173, 220, 255, 92, 175, 220, 255, 92, 175, 220, 255, 92, 174, 220, 255, 100, 180, 224, 255, 32, 140, 198, 255, 146, 193, 218, 255, 249, 223, 210, 255, 219, 150, 53, 255, 255, 245, 192, 255, 254, 193, 112, 255, 255, 156, 16, 254, 194, 128, 46, 255, 59, 46, 38, 91, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 99, 99, 99, 49, 206, 206, 206, 255, 244, 243, 244, 254, 218, 226, 231, 255, 26, 136, 195, 255, 101, 181, 224, 255, 97, 177, 221, 255, 97, 177, 221, 255, 97, 177, 221, 255, 101, 179, 223, 255, 36, 142, 199, 255, 193, 218, 229, 255, 247, 244, 242, 255, 218, 149, 53, 255, 255, 245, 210, 255, 254, 190, 102, 255, 255, 156, 16, 254, 180, 122, 54, 255, 21, 16, 13, 69, 0, 0, 0, 16, 4, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 61, 61, 61, 37, 132, 132, 132, 219, 224, 224, 224, 255, 255, 251, 247, 254, 144, 191, 213, 255, 74, 165, 213, 255, 105, 182, 225, 255, 101, 180, 223, 255, 105, 182, 225, 255, 74, 165, 213, 255, 145, 196, 221, 255, 251, 246, 243, 255, 203, 120, 23, 255, 255, 246, 192, 255, 254, 190, 102, 255, 255, 149, 13, 255, 193, 128, 46, 255, 21, 16, 13, 69, 6, 4, 2, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 50, 50, 50, 66, 131, 131, 131, 218, 212, 211, 211, 255, 255, 255, 255, 254, 144, 193, 215, 255, 41, 144, 199, 255, 125, 197, 234, 255, 41, 144, 199, 255, 145, 195, 222, 255, 255, 231, 213, 255, 218, 149, 52, 255, 255, 246, 192, 255, 254, 193, 112, 255, 255, 156, 16, 254, 193, 128, 46, 255, 58, 45, 38, 91, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 0, 0, 0, 0, 11, 16, 16, 16, 54, 136, 136, 136, 222, 213, 212, 212, 255, 255, 255, 255, 254, 194, 221, 234, 255, 0, 98, 167, 255, 193, 221, 235, 255, 254, 243, 235, 255, 219, 149, 49, 255, 255, 244, 209, 255, 254, 190, 102, 255, 255, 156, 16, 254, 180, 122, 54, 255, 21, 16, 13, 69, 0, 0, 0, 16, 4, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 13, 16, 17, 17, 54, 131, 131, 131, 218, 226, 225, 224, 255, 255, 255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 208, 183, 148, 255, 238, 226, 193, 255, 255, 194, 108, 255, 255, 148, 11, 255, 194, 128, 47, 255, 21, 16, 13, 69, 6, 4, 2, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 48, 48, 48, 67, 130, 130, 130, 218, 215, 215, 215, 255, 255, 255, 255, 254, 216, 211, 204, 255, 225, 184, 112, 254, 255, 239, 193, 254, 237, 175, 92, 255, 197, 126, 39, 255, 59, 46, 37, 91, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 0, 0, 0, 0, 11, 16, 16, 16, 54, 138, 138, 138, 226, 182, 185, 189, 255, 132, 113, 86, 255, 156, 137, 102, 255, 215, 165, 87, 255, 123, 83, 31, 174, 42, 31, 20, 73, 0, 0, 0, 17, 4, 3, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 6, 6, 13, 0, 0, 0, 35, 47, 30, 7, 88, 71, 77, 86, 231, 101, 79, 50, 214, 40, 21, 0, 75, 0, 0, 0, 32, 2, 1, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 91, 88, 85, 85, 85, 70, 45, 93, 0, 0, 0, 26, 0, 0, 0, 14, 3, 2, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 7, 6, 0, 0, 0, 0, 9, 0, 0, 0, 11, 2, 2, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.tag_blue_add = iup.imagergba{ width = 24, height = 24, pixels = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136, 136, 136, 8, 131, 131, 131, 29, 131, 131, 131, 30, 131, 131, 131, 30, 131, 131, 131, 30, 131, 131, 131, 30, 135, 135, 135, 26, 69, 69, 70, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 136, 136, 136, 158, 193, 192, 192, 255, 191, 190, 190, 255, 191, 191, 191, 255, 191, 191, 191, 255, 192, 192, 191, 255, 172, 172, 172, 255, 132, 132, 132, 106, 0, 0, 0, 0, 212, 212, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 197, 197, 197, 255, 217, 218, 218, 255, 200, 201, 204, 255, 207, 208, 210, 255, 208, 209, 211, 255, 205, 206, 208, 254, 231, 232, 232, 255, 165, 164, 164, 253, 133, 133, 133, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 230, 230, 232, 254, 199, 200, 202, 255, 189, 189, 191, 255, 137, 139, 142, 243, 128, 130, 133, 231, 155, 157, 161, 255, 199, 199, 201, 255, 251, 251, 252, 254, 148, 148, 148, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 134, 134, 134, 158, 196, 196, 196, 255, 232, 232, 234, 254, 199, 200, 202, 255, 207, 208, 210, 255, 148, 151, 153, 242, 62, 62, 65, 86, 0, 0, 0, 35, 119, 121, 124, 164, 176, 178, 181, 255, 245, 245, 245, 255, 130, 130, 130, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 196, 196, 195, 255, 224, 223, 223, 255, 205, 205, 206, 255, 205, 206, 207, 255, 212, 213, 213, 255, 153, 155, 158, 227, 0, 0, 0, 0, 0, 0, 0, 2, 46, 48, 49, 51, 181, 183, 185, 255, 246, 246, 247, 255, 132, 132, 132, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 243, 239, 237, 254, 194, 201, 206, 255, 195, 203, 208, 255, 216, 212, 213, 255, 212, 212, 214, 255, 181, 182, 184, 254, 170, 173, 175, 164, 178, 179, 181, 84, 171, 174, 176, 248, 195, 196, 199, 255, 247, 247, 246, 255, 132, 132, 132, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 134, 134, 134, 158, 195, 195, 195, 255, 245, 241, 239, 254, 171, 192, 202, 255, 92, 168, 210, 255, 92, 168, 210, 255, 173, 193, 204, 255, 219, 216, 215, 255, 213, 214, 215, 255, 197, 198, 200, 255, 194, 196, 198, 255, 202, 204, 205, 255, 211, 212, 214, 254, 249, 250, 251, 254, 134, 134, 133, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 195, 195, 195, 255, 232, 231, 230, 255, 218, 216, 215, 255, 83, 162, 206, 255, 87, 168, 219, 255, 87, 168, 219, 255, 83, 163, 206, 255, 218, 216, 215, 255, 218, 217, 217, 255, 215, 216, 217, 255, 215, 216, 217, 255, 215, 216, 217, 255, 226, 227, 228, 254, 179, 179, 179, 255, 128, 128, 128, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 248, 243, 242, 254, 221, 218, 217, 255, 15, 128, 188, 255, 121, 188, 230, 255, 65, 158, 213, 255, 65, 158, 213, 255, 121, 188, 230, 255, 15, 129, 188, 255, 222, 220, 219, 255, 222, 220, 220, 255, 217, 218, 219, 255, 222, 223, 225, 255, 189, 188, 191, 255, 125, 124, 126, 189, 0, 0, 0, 23, 21, 21, 21, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 134, 134, 134, 158, 194, 194, 194, 255, 251, 246, 244, 254, 186, 202, 212, 255, 62, 153, 201, 255, 120, 188, 230, 255, 66, 159, 214, 255, 75, 164, 216, 255, 75, 164, 216, 255, 66, 159, 214, 255, 131, 194, 237, 255, 0, 117, 185, 255, 255, 242, 252, 255, 245, 237, 255, 255, 199, 190, 209, 251, 126, 114, 137, 162, 0, 0, 0, 33, 12, 13, 10, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 194, 194, 194, 255, 238, 236, 236, 255, 231, 227, 225, 255, 56, 150, 199, 255, 91, 172, 221, 255, 76, 164, 217, 255, 80, 166, 217, 255, 80, 166, 217, 255, 80, 166, 217, 255, 89, 172, 224, 255, 5, 126, 206, 255, 199, 209, 177, 255, 94, 148, 39, 255, 68, 135, 21, 255, 61, 128, 9, 254, 57, 124, 0, 214, 53, 110, 0, 58, 0, 0, 0, 0, 108, 204, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 254, 249, 248, 254, 234, 229, 228, 255, 1, 121, 183, 255, 108, 182, 227, 255, 82, 168, 217, 255, 84, 169, 218, 255, 84, 169, 218, 255, 84, 169, 218, 255, 86, 171, 221, 255, 40, 144, 208, 255, 145, 178, 90, 255, 89, 153, 13, 255, 179, 214, 115, 255, 198, 228, 141, 255, 199, 229, 142, 254, 183, 216, 123, 255, 107, 163, 36, 255, 70, 133, 0, 152, 0, 0, 0, 0, 0, 0, 0, 0, 110, 110, 110, 10, 134, 134, 134, 158, 194, 193, 193, 255, 255, 251, 250, 254, 199, 214, 222, 255, 38, 141, 196, 255, 108, 184, 227, 255, 86, 171, 218, 255, 89, 173, 219, 255, 89, 173, 219, 255, 89, 172, 219, 255, 99, 180, 225, 255, 37, 141, 201, 255, 120, 167, 107, 255, 137, 181, 60, 255, 175, 216, 93, 255, 123, 186, 10, 255, 165, 208, 102, 255, 165, 208, 102, 255, 123, 186, 10, 255, 176, 217, 96, 254, 139, 184, 75, 255, 62, 126, 0, 118, 0, 0, 0, 0, 113, 113, 113, 39, 196, 196, 196, 255, 242, 242, 242, 255, 221, 226, 231, 255, 41, 142, 196, 255, 95, 177, 222, 255, 93, 175, 220, 255, 93, 175, 220, 255, 93, 175, 220, 255, 93, 175, 220, 255, 103, 182, 226, 255, 0, 118, 182, 255, 226, 234, 229, 255, 134, 176, 66, 255, 157, 203, 60, 255, 119, 185, 0, 255, 105, 177, 0, 255, 238, 246, 226, 255, 238, 246, 226, 255, 105, 177, 0, 255, 119, 185, 0, 255, 159, 204, 65, 255, 114, 164, 51, 227, 47, 101, 0, 24, 92, 92, 92, 48, 196, 196, 196, 255, 243, 243, 243, 255, 225, 231, 234, 255, 42, 143, 197, 255, 100, 180, 224, 255, 98, 178, 222, 255, 98, 178, 222, 255, 98, 178, 222, 255, 100, 179, 223, 255, 37, 141, 194, 255, 240, 241, 241, 255, 228, 233, 223, 255, 106, 165, 38, 255, 126, 190, 9, 255, 133, 193, 32, 255, 117, 184, 16, 255, 238, 246, 228, 255, 238, 246, 228, 255, 117, 184, 16, 255, 133, 193, 32, 255, 126, 190, 9, 254, 128, 178, 55, 255, 41, 88, 0, 45, 39, 39, 39, 28, 118, 118, 118, 179, 193, 193, 193, 255, 255, 255, 252, 254, 202, 222, 230, 255, 38, 141, 195, 255, 114, 189, 230, 255, 103, 181, 223, 255, 114, 189, 230, 255, 38, 141, 194, 255, 202, 223, 230, 255, 255, 255, 255, 254, 189, 192, 188, 255, 98, 165, 6, 254, 115, 186, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 116, 186, 0, 255, 114, 172, 21, 255, 39, 79, 0, 49, 0, 0, 0, 6, 0, 0, 0, 37, 123, 123, 123, 189, 182, 181, 181, 255, 255, 255, 255, 254, 240, 246, 246, 255, 0, 116, 179, 255, 130, 201, 236, 255, 0, 116, 179, 255, 240, 246, 246, 255, 255, 255, 255, 254, 183, 182, 184, 255, 115, 121, 113, 202, 97, 167, 0, 255, 130, 195, 0, 254, 139, 197, 32, 255, 122, 189, 16, 255, 239, 247, 228, 255, 239, 247, 228, 255, 122, 189, 16, 255, 139, 197, 32, 255, 130, 195, 0, 254, 104, 167, 1, 255, 41, 81, 0, 50, 0, 0, 0, 0, 11, 11, 11, 7, 0, 0, 0, 28, 123, 123, 123, 189, 193, 193, 193, 255, 253, 253, 251, 255, 241, 247, 248, 255, 0, 108, 170, 255, 241, 247, 248, 255, 253, 253, 252, 255, 194, 193, 193, 255, 124, 122, 127, 186, 0, 2, 0, 63, 87, 150, 0, 230, 136, 198, 0, 255, 134, 197, 0, 255, 118, 189, 0, 255, 240, 247, 226, 255, 240, 247, 226, 255, 118, 189, 0, 255, 134, 197, 0, 255, 136, 198, 0, 255, 89, 150, 0, 233, 33, 64, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 7, 0, 0, 0, 37, 117, 117, 117, 180, 193, 193, 192, 255, 255, 255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 254, 194, 193, 194, 255, 116, 116, 117, 180, 0, 0, 0, 36, 3, 2, 3, 22, 56, 108, 0, 140, 107, 170, 0, 255, 147, 207, 0, 254, 133, 198, 0, 255, 185, 222, 112, 255, 185, 222, 112, 255, 133, 198, 0, 255, 147, 207, 0, 254, 107, 170, 0, 255, 56, 108, 0, 141, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 37, 122, 122, 122, 189, 183, 182, 182, 255, 255, 255, 255, 254, 183, 182, 182, 255, 122, 122, 122, 189, 0, 0, 0, 37, 0, 0, 0, 6, 0, 0, 0, 2, 0, 0, 0, 31, 62, 115, 0, 177, 95, 158, 0, 255, 139, 199, 0, 255, 149, 211, 0, 254, 149, 211, 0, 254, 139, 199, 0, 255, 95, 158, 0, 255, 62, 115, 0, 177, 0, 0, 0, 31, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 7, 0, 0, 0, 27, 125, 125, 125, 190, 152, 152, 152, 239, 125, 125, 125, 190, 0, 0, 0, 27, 11, 11, 11, 7, 0, 0, 0, 0, 0, 0, 0, 0, 5, 10, 0, 7, 0, 0, 0, 28, 35, 67, 0, 102, 64, 124, 0, 216, 65, 127, 0, 233, 65, 127, 0, 233, 64, 124, 0, 216, 35, 67, 0, 102, 0, 0, 0, 28, 5, 10, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 8, 0, 0, 0, 22, 0, 0, 0, 32, 0, 0, 0, 22, 10, 10, 10, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 0, 4, 0, 0, 0, 16, 0, 0, 0, 28, 0, 0, 0, 33, 0, 0, 0, 33, 0, 0, 0, 28, 0, 0, 0, 16, 3, 5, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.flag_green = iup.imagergba{ width = 24, height = 24, pixels = { 0, 0, 0, 0, 0, 0, 0, 0, 159, 108, 54, 163, 169, 121, 64, 255, 166, 112, 59, 233, 141, 86, 53, 25, 0, 0, 0, 0, 54, 121, 0, 9, 54, 122, 0, 20, 52, 123, 0, 29, 48, 121, 0, 30, 47, 121, 0, 30, 47, 121, 0, 30, 52, 124, 0, 27, 56, 118, 0, 6, 0, 0, 0, 0, 95, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 87, 162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 104, 48, 231, 211, 192, 131, 254, 167, 123, 63, 255, 72, 105, 1, 101, 54, 126, 0, 133, 91, 150, 20, 180, 125, 173, 61, 228, 140, 184, 83, 255, 151, 192, 96, 255, 152, 192, 97, 255, 152, 191, 94, 255, 135, 180, 75, 255, 77, 140, 2, 171, 73, 136, 0, 80, 0, 0, 0, 0, 111, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 111, 0, 26, 74, 139, 0, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 116, 129, 33, 255, 133, 183, 73, 246, 187, 216, 137, 255, 208, 231, 156, 255, 195, 227, 113, 255, 188, 225, 77, 255, 184, 226, 48, 254, 181, 228, 24, 255, 200, 237, 57, 254, 195, 228, 93, 255, 209, 233, 156, 255, 60, 129, 0, 219, 0, 0, 0, 0, 0, 0, 0, 0, 57, 121, 0, 47, 55, 125, 0, 180, 94, 153, 23, 235, 87, 148, 12, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 108, 125, 27, 255, 187, 221, 135, 255, 139, 195, 25, 255, 129, 191, 0, 255, 137, 198, 0, 255, 150, 208, 0, 255, 161, 215, 0, 255, 172, 223, 0, 255, 175, 227, 0, 255, 141, 203, 0, 255, 215, 238, 161, 255, 57, 127, 0, 255, 88, 148, 21, 255, 81, 144, 18, 255, 117, 169, 43, 255, 181, 213, 116, 255, 243, 254, 211, 254, 93, 152, 19, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 109, 125, 28, 255, 181, 216, 128, 255, 114, 181, 0, 255, 134, 195, 0, 255, 144, 202, 0, 255, 154, 209, 0, 255, 163, 216, 0, 255, 173, 223, 0, 255, 178, 229, 0, 255, 148, 206, 0, 255, 199, 228, 127, 255, 70, 136, 7, 255, 244, 255, 137, 255, 221, 246, 125, 255, 200, 232, 102, 255, 158, 208, 52, 255, 207, 232, 151, 255, 89, 149, 14, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 110, 125, 29, 255, 172, 211, 110, 255, 119, 183, 0, 255, 135, 195, 0, 255, 144, 202, 0, 255, 154, 209, 0, 255, 163, 216, 0, 255, 173, 223, 0, 255, 178, 228, 0, 255, 149, 206, 0, 255, 189, 224, 113, 255, 65, 133, 0, 255, 184, 232, 6, 255, 165, 217, 6, 255, 149, 206, 1, 255, 127, 191, 0, 255, 193, 225, 126, 255, 88, 148, 12, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 111, 126, 30, 255, 162, 207, 93, 255, 120, 184, 0, 255, 135, 195, 0, 255, 144, 202, 0, 255, 154, 209, 0, 255, 163, 216, 0, 255, 173, 223, 0, 255, 178, 228, 0, 255, 150, 207, 0, 255, 182, 221, 95, 255, 67, 133, 0, 255, 179, 229, 0, 255, 165, 217, 0, 255, 151, 206, 0, 255, 130, 193, 0, 255, 183, 220, 108, 255, 87, 148, 12, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 112, 127, 32, 255, 153, 203, 76, 255, 121, 184, 0, 255, 134, 195, 0, 255, 144, 202, 0, 255, 154, 209, 0, 255, 163, 216, 0, 255, 173, 223, 0, 255, 178, 228, 0, 255, 151, 208, 0, 255, 173, 216, 78, 255, 67, 134, 0, 255, 176, 225, 0, 255, 165, 217, 0, 255, 151, 206, 0, 255, 132, 194, 0, 255, 174, 215, 88, 255, 87, 147, 10, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 114, 127, 33, 255, 145, 197, 60, 255, 122, 185, 0, 255, 135, 195, 0, 255, 144, 202, 0, 255, 154, 209, 0, 255, 163, 216, 0, 255, 173, 223, 0, 255, 178, 228, 0, 255, 151, 208, 0, 255, 165, 212, 62, 255, 68, 134, 0, 255, 173, 222, 0, 255, 165, 217, 0, 255, 151, 206, 0, 255, 133, 194, 0, 255, 164, 210, 69, 255, 85, 146, 7, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 115, 128, 34, 255, 135, 192, 43, 255, 124, 186, 0, 255, 135, 195, 0, 255, 144, 202, 0, 255, 154, 209, 0, 255, 163, 216, 0, 255, 173, 223, 0, 255, 178, 228, 0, 255, 153, 209, 0, 255, 157, 208, 45, 255, 68, 134, 0, 255, 169, 219, 0, 255, 166, 219, 0, 255, 151, 206, 0, 255, 135, 195, 0, 255, 154, 204, 50, 255, 84, 145, 5, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 116, 129, 36, 255, 126, 188, 25, 255, 125, 187, 0, 255, 137, 197, 0, 255, 150, 207, 0, 255, 162, 217, 0, 255, 175, 226, 0, 255, 186, 234, 0, 255, 189, 238, 0, 255, 160, 214, 0, 255, 149, 204, 27, 255, 69, 134, 0, 255, 166, 217, 0, 255, 166, 219, 0, 255, 151, 206, 0, 255, 136, 195, 0, 255, 145, 200, 31, 255, 82, 145, 4, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 117, 129, 37, 255, 120, 185, 8, 255, 133, 193, 0, 254, 128, 189, 0, 255, 111, 172, 0, 255, 100, 162, 0, 255, 81, 146, 0, 255, 81, 146, 0, 255, 99, 162, 0, 255, 120, 179, 0, 255, 142, 201, 11, 254, 71, 136, 0, 255, 163, 213, 0, 255, 166, 219, 0, 255, 151, 206, 0, 255, 137, 197, 0, 255, 137, 196, 11, 255, 82, 145, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 209, 184, 126, 255, 119, 133, 37, 255, 92, 161, 0, 250, 76, 137, 0, 235, 62, 120, 0, 204, 48, 92, 0, 140, 18, 37, 0, 82, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 64, 60, 116, 0, 187, 75, 140, 0, 255, 78, 142, 0, 255, 163, 213, 0, 254, 169, 222, 0, 255, 152, 207, 0, 255, 138, 196, 0, 255, 108, 170, 0, 254, 76, 139, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 208, 184, 126, 255, 150, 128, 52, 255, 59, 96, 6, 139, 0, 0, 0, 46, 0, 0, 0, 27, 0, 0, 0, 19, 0, 0, 0, 12, 1, 3, 0, 8, 0, 0, 0, 8, 0, 0, 0, 12, 43, 79, 0, 78, 70, 125, 0, 193, 78, 142, 0, 255, 118, 177, 0, 255, 116, 177, 0, 255, 97, 156, 0, 236, 67, 121, 0, 189, 50, 98, 0, 146, 34, 63, 0, 66, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 172, 120, 65, 255, 84, 51, 30, 60, 0, 0, 0, 5, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 12, 11, 20, 0, 46, 26, 47, 0, 83, 21, 43, 0, 92, 20, 43, 0, 88, 18, 36, 0, 71, 7, 13, 0, 42, 0, 0, 0, 22, 0, 0, 0, 9, 5, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 63, 255, 98, 66, 33, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 13, 0, 0, 0, 17, 0, 0, 0, 15, 0, 0, 0, 11, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 103, 48, 227, 206, 185, 125, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 105, 50, 229, 202, 179, 118, 255, 168, 122, 63, 255, 98, 66, 33, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 134, 92, 47, 138, 122, 79, 36, 164, 133, 90, 45, 167, 68, 47, 23, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 7, 3, 2, 0, 0, 0, 16, 0, 0, 0, 25, 0, 0, 0, 22, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.flag_blue = iup.imagergba{ width = 24, height = 24, pixels = { 0, 0, 0, 0, 0, 0, 0, 0, 159, 108, 54, 163, 169, 121, 64, 255, 168, 112, 52, 233, 146, 86, 25, 25, 0, 0, 0, 0, 17, 123, 207, 9, 12, 126, 216, 20, 10, 126, 220, 29, 6, 125, 221, 30, 5, 124, 221, 30, 6, 125, 221, 30, 13, 127, 219, 27, 20, 120, 201, 6, 0, 0, 0, 0, 46, 182, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 164, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 181, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 104, 48, 231, 211, 192, 129, 254, 167, 123, 63, 255, 47, 106, 151, 101, 14, 129, 222, 133, 57, 151, 226, 180, 93, 173, 233, 228, 113, 183, 238, 255, 124, 191, 238, 255, 128, 193, 238, 255, 124, 191, 238, 255, 105, 180, 236, 255, 40, 142, 223, 171, 35, 137, 219, 80, 0, 0, 0, 0, 53, 214, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 114, 194, 26, 36, 141, 225, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 210, 184, 118, 255, 98, 130, 141, 255, 97, 183, 248, 246, 161, 213, 251, 255, 186, 227, 252, 255, 165, 222, 254, 255, 152, 219, 255, 255, 147, 220, 255, 254, 142, 222, 255, 255, 158, 224, 255, 254, 155, 220, 254, 255, 183, 228, 253, 255, 20, 132, 220, 219, 0, 0, 0, 0, 0, 0, 0, 0, 22, 123, 204, 47, 15, 128, 217, 180, 57, 154, 230, 235, 50, 149, 227, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 184, 117, 255, 90, 127, 143, 255, 151, 216, 255, 255, 79, 186, 254, 255, 65, 182, 255, 255, 78, 189, 255, 255, 97, 198, 255, 255, 114, 206, 255, 255, 132, 217, 255, 255, 122, 210, 255, 255, 73, 188, 255, 255, 189, 234, 255, 255, 17, 130, 221, 255, 51, 151, 228, 255, 44, 146, 227, 255, 84, 169, 234, 255, 153, 211, 250, 255, 225, 248, 255, 254, 57, 153, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 184, 118, 255, 90, 127, 143, 255, 145, 212, 255, 255, 43, 170, 255, 255, 74, 185, 255, 255, 89, 193, 255, 255, 103, 200, 255, 255, 117, 207, 255, 255, 134, 218, 255, 255, 126, 212, 255, 255, 83, 192, 255, 255, 162, 222, 255, 255, 33, 139, 223, 255, 219, 253, 255, 255, 198, 241, 255, 255, 167, 226, 255, 255, 108, 200, 255, 255, 176, 226, 255, 255, 52, 150, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 184, 118, 255, 92, 127, 143, 255, 132, 207, 255, 255, 49, 172, 255, 255, 75, 186, 255, 255, 89, 193, 255, 255, 103, 200, 255, 255, 117, 207, 255, 255, 134, 218, 255, 255, 126, 212, 255, 255, 85, 192, 255, 255, 151, 218, 255, 255, 26, 136, 223, 255, 134, 218, 255, 255, 119, 209, 255, 255, 96, 196, 255, 255, 64, 181, 255, 255, 156, 218, 255, 255, 51, 150, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 183, 118, 255, 94, 129, 143, 255, 118, 201, 255, 255, 51, 174, 255, 255, 75, 186, 255, 255, 89, 193, 255, 255, 103, 200, 255, 255, 117, 207, 255, 255, 134, 218, 255, 255, 126, 212, 255, 255, 86, 193, 255, 255, 139, 212, 255, 255, 28, 136, 223, 255, 129, 215, 255, 255, 119, 209, 255, 255, 98, 197, 255, 255, 69, 183, 255, 255, 142, 212, 255, 255, 49, 149, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 183, 118, 255, 95, 129, 143, 255, 105, 196, 255, 255, 53, 174, 255, 255, 75, 186, 255, 255, 89, 193, 255, 255, 103, 200, 255, 255, 117, 207, 255, 255, 134, 218, 255, 255, 126, 212, 255, 255, 88, 193, 255, 255, 126, 208, 255, 255, 29, 136, 223, 255, 126, 213, 255, 255, 120, 209, 254, 255, 98, 197, 255, 255, 71, 184, 255, 255, 127, 206, 255, 255, 47, 149, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 183, 118, 255, 97, 130, 143, 255, 90, 190, 255, 255, 54, 175, 255, 255, 75, 186, 255, 255, 89, 193, 255, 255, 103, 200, 255, 255, 117, 207, 255, 255, 134, 218, 255, 255, 126, 212, 255, 255, 90, 194, 255, 255, 114, 203, 255, 255, 30, 137, 223, 255, 121, 210, 255, 255, 120, 209, 255, 255, 98, 197, 255, 255, 72, 184, 255, 255, 112, 201, 255, 255, 45, 148, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 183, 118, 255, 98, 130, 143, 255, 79, 185, 255, 255, 56, 175, 255, 255, 76, 186, 255, 255, 89, 193, 255, 255, 103, 200, 255, 255, 117, 207, 255, 255, 134, 218, 255, 255, 126, 212, 255, 255, 91, 194, 255, 255, 100, 199, 255, 255, 32, 137, 222, 255, 118, 207, 255, 255, 121, 210, 255, 255, 98, 197, 255, 255, 75, 185, 255, 255, 97, 196, 255, 255, 44, 146, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 184, 118, 255, 100, 131, 143, 255, 64, 179, 255, 255, 59, 176, 255, 255, 77, 187, 255, 255, 92, 196, 255, 255, 110, 207, 255, 255, 128, 216, 255, 255, 146, 227, 255, 255, 135, 220, 255, 255, 97, 199, 255, 255, 88, 194, 255, 255, 33, 138, 223, 255, 114, 204, 255, 255, 121, 210, 255, 255, 98, 197, 255, 255, 76, 186, 255, 255, 83, 189, 255, 255, 42, 146, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 184, 118, 255, 102, 132, 143, 255, 50, 176, 255, 255, 63, 181, 255, 254, 72, 181, 253, 255, 65, 168, 242, 255, 57, 161, 237, 255, 42, 147, 230, 255, 44, 148, 230, 255, 57, 160, 236, 255, 70, 174, 243, 255, 76, 190, 255, 254, 35, 139, 223, 255, 110, 201, 255, 255, 121, 210, 255, 255, 98, 197, 255, 255, 78, 187, 254, 255, 68, 185, 255, 255, 41, 146, 227, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 211, 184, 118, 255, 101, 135, 147, 255, 36, 156, 247, 250, 38, 140, 218, 235, 31, 124, 199, 204, 23, 94, 152, 140, 8, 38, 62, 82, 0, 0, 0, 49, 0, 0, 0, 50, 0, 0, 0, 64, 30, 119, 191, 187, 37, 142, 226, 255, 39, 143, 227, 255, 109, 200, 255, 254, 124, 213, 255, 255, 99, 197, 254, 255, 78, 187, 253, 255, 51, 165, 244, 254, 37, 139, 221, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 102, 48, 227, 208, 184, 120, 255, 142, 128, 98, 255, 37, 97, 145, 139, 0, 0, 0, 46, 0, 0, 0, 27, 0, 0, 0, 19, 0, 0, 0, 12, 0, 3, 5, 8, 0, 0, 0, 8, 0, 0, 0, 12, 23, 81, 127, 78, 36, 126, 196, 193, 39, 144, 227, 255, 72, 172, 243, 255, 75, 174, 241, 255, 57, 154, 224, 236, 34, 123, 192, 189, 26, 101, 162, 146, 18, 64, 100, 66, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 173, 120, 55, 255, 87, 50, 14, 60, 0, 0, 0, 5, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 7, 11, 0, 0, 0, 0, 12, 5, 20, 32, 46, 13, 48, 76, 83, 9, 45, 74, 92, 8, 44, 74, 88, 8, 38, 62, 71, 3, 14, 22, 42, 0, 0, 0, 22, 0, 0, 0, 9, 2, 10, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 168, 121, 62, 255, 99, 66, 32, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 13, 0, 0, 0, 17, 0, 0, 0, 15, 0, 0, 0, 11, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 102, 48, 227, 205, 185, 124, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 103, 48, 227, 206, 185, 125, 255, 167, 121, 62, 255, 97, 65, 32, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 158, 105, 50, 229, 202, 179, 118, 255, 168, 122, 63, 255, 98, 66, 33, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 134, 92, 47, 138, 122, 79, 36, 164, 133, 90, 45, 167, 68, 47, 23, 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 7, 3, 2, 0, 0, 0, 16, 0, 0, 0, 25, 0, 0, 0, 22, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.tag_blue_delete = iup.imagergba{ width = 24, height = 24, pixels = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136, 136, 136, 8, 131, 131, 131, 29, 131, 131, 131, 30, 131, 131, 131, 30, 131, 131, 131, 30, 131, 131, 131, 30, 135, 135, 135, 26, 69, 69, 70, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 136, 136, 136, 158, 193, 192, 192, 255, 191, 190, 190, 255, 191, 191, 191, 255, 191, 191, 191, 255, 192, 192, 191, 255, 172, 172, 172, 255, 132, 132, 132, 106, 0, 0, 0, 0, 212, 212, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 197, 197, 197, 255, 217, 218, 218, 255, 200, 201, 204, 255, 207, 208, 210, 255, 208, 209, 211, 255, 205, 206, 208, 254, 231, 232, 232, 255, 165, 164, 164, 253, 133, 133, 133, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 230, 230, 232, 254, 199, 200, 202, 255, 189, 189, 191, 255, 137, 139, 142, 243, 128, 130, 133, 231, 155, 157, 161, 255, 199, 199, 201, 255, 251, 251, 252, 254, 148, 148, 148, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 134, 134, 134, 158, 196, 196, 196, 255, 232, 232, 234, 254, 199, 200, 202, 255, 207, 208, 210, 255, 148, 151, 153, 242, 62, 62, 65, 86, 0, 0, 0, 35, 119, 121, 124, 164, 176, 178, 181, 255, 245, 245, 245, 255, 130, 130, 130, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 196, 196, 195, 255, 224, 223, 223, 255, 205, 205, 206, 255, 205, 206, 207, 255, 212, 213, 213, 255, 153, 155, 158, 227, 0, 0, 0, 0, 0, 0, 0, 2, 46, 48, 49, 51, 181, 183, 185, 255, 246, 246, 247, 255, 132, 132, 132, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 243, 239, 237, 254, 194, 201, 206, 255, 195, 203, 208, 255, 216, 212, 213, 255, 212, 212, 214, 255, 181, 182, 184, 254, 170, 173, 175, 164, 178, 179, 181, 84, 171, 174, 176, 248, 195, 196, 199, 255, 247, 247, 246, 255, 132, 132, 132, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 134, 134, 134, 158, 195, 195, 195, 255, 245, 241, 239, 254, 171, 192, 202, 255, 92, 168, 210, 255, 92, 168, 210, 255, 173, 193, 204, 255, 219, 216, 215, 255, 213, 214, 215, 255, 197, 198, 200, 255, 194, 196, 198, 255, 202, 204, 205, 255, 211, 212, 214, 254, 249, 250, 251, 254, 134, 134, 133, 230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 195, 195, 195, 255, 232, 231, 230, 255, 218, 216, 215, 255, 83, 162, 206, 255, 87, 168, 219, 255, 87, 168, 219, 255, 83, 163, 206, 255, 218, 216, 215, 255, 218, 217, 217, 255, 215, 216, 217, 255, 215, 216, 217, 255, 215, 216, 217, 255, 226, 226, 228, 254, 179, 179, 179, 255, 128, 128, 128, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 248, 243, 242, 254, 221, 218, 217, 255, 15, 128, 188, 255, 121, 188, 230, 255, 65, 158, 213, 255, 65, 158, 213, 255, 121, 188, 230, 255, 15, 129, 188, 255, 222, 220, 219, 255, 222, 220, 220, 255, 217, 218, 219, 255, 222, 223, 225, 255, 188, 190, 190, 255, 123, 125, 125, 189, 0, 0, 0, 23, 21, 21, 21, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 134, 134, 134, 158, 194, 194, 194, 255, 251, 246, 244, 254, 186, 202, 212, 255, 62, 153, 201, 255, 120, 188, 230, 255, 66, 159, 214, 255, 75, 164, 216, 255, 75, 164, 216, 255, 66, 158, 214, 255, 131, 195, 237, 255, 0, 120, 183, 255, 249, 251, 247, 255, 230, 248, 251, 255, 182, 200, 204, 251, 105, 128, 130, 162, 0, 0, 0, 33, 14, 12, 11, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 244, 244, 0, 0, 0, 0, 0, 137, 137, 137, 169, 194, 194, 194, 255, 238, 236, 236, 255, 231, 227, 225, 255, 56, 150, 199, 255, 91, 172, 221, 255, 76, 164, 217, 255, 80, 166, 217, 255, 80, 166, 217, 255, 80, 166, 217, 255, 88, 172, 224, 255, 0, 134, 201, 255, 224, 193, 187, 255, 200, 80, 65, 255, 191, 54, 38, 255, 184, 48, 32, 254, 179, 43, 27, 214, 157, 41, 27, 58, 0, 0, 0, 0, 255, 86, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 137, 137, 169, 181, 181, 181, 255, 254, 249, 248, 254, 234, 229, 228, 255, 1, 121, 183, 255, 108, 182, 227, 255, 82, 168, 217, 255, 84, 169, 218, 255, 84, 169, 218, 255, 84, 169, 218, 255, 85, 172, 221, 255, 32, 148, 205, 255, 214, 131, 120, 255, 208, 69, 50, 255, 239, 155, 142, 255, 248, 178, 164, 255, 248, 179, 165, 254, 240, 160, 147, 255, 208, 91, 76, 255, 185, 56, 40, 152, 0, 0, 0, 0, 0, 0, 0, 0, 110, 110, 110, 10, 134, 134, 134, 158, 194, 193, 193, 255, 255, 251, 250, 254, 199, 214, 222, 255, 38, 141, 196, 255, 108, 184, 227, 255, 86, 171, 218, 255, 89, 173, 219, 255, 89, 173, 219, 255, 89, 172, 219, 255, 98, 179, 225, 255, 34, 144, 199, 255, 180, 128, 127, 255, 226, 115, 97, 255, 245, 144, 127, 255, 234, 89, 64, 255, 229, 64, 36, 255, 229, 64, 36, 255, 234, 89, 64, 255, 245, 145, 127, 254, 219, 123, 109, 255, 180, 48, 33, 118, 0, 0, 0, 0, 113, 113, 113, 39, 196, 196, 196, 255, 242, 242, 242, 255, 221, 226, 231, 255, 41, 142, 196, 255, 95, 177, 222, 255, 93, 175, 220, 255, 93, 175, 220, 255, 93, 175, 220, 255, 93, 175, 220, 255, 103, 182, 226, 255, 0, 117, 181, 255, 236, 231, 230, 255, 221, 116, 102, 255, 240, 125, 105, 255, 234, 76, 49, 255, 234, 79, 52, 255, 234, 81, 55, 255, 234, 81, 55, 255, 234, 79, 52, 255, 234, 76, 49, 255, 240, 128, 108, 255, 206, 100, 87, 227, 146, 36, 22, 24, 92, 92, 92, 48, 196, 196, 196, 255, 243, 243, 243, 255, 225, 231, 234, 255, 42, 143, 197, 255, 100, 180, 224, 255, 98, 178, 222, 255, 98, 178, 222, 255, 98, 178, 222, 255, 100, 179, 223, 255, 37, 141, 194, 255, 240, 242, 240, 255, 238, 227, 226, 255, 214, 85, 68, 255, 238, 84, 58, 255, 238, 96, 72, 255, 237, 92, 68, 255, 237, 92, 67, 255, 237, 92, 67, 255, 237, 92, 68, 255, 238, 96, 72, 255, 239, 86, 59, 254, 219, 110, 95, 255, 128, 33, 22, 45, 39, 39, 39, 28, 118, 118, 118, 179, 193, 193, 193, 255, 255, 255, 252, 254, 202, 222, 230, 255, 38, 141, 195, 255, 114, 189, 230, 255, 103, 181, 223, 255, 114, 189, 230, 255, 38, 141, 194, 255, 202, 223, 230, 255, 255, 255, 254, 254, 194, 189, 188, 255, 219, 74, 54, 254, 241, 74, 47, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 241, 74, 47, 255, 219, 91, 74, 255, 113, 32, 22, 49, 0, 0, 0, 6, 0, 0, 0, 37, 123, 123, 123, 189, 182, 181, 181, 255, 255, 255, 255, 254, 240, 246, 246, 255, 0, 116, 179, 255, 130, 201, 236, 255, 0, 116, 179, 255, 240, 246, 246, 255, 255, 255, 255, 254, 181, 183, 183, 255, 125, 114, 114, 202, 225, 71, 51, 255, 245, 95, 72, 254, 244, 108, 87, 255, 243, 103, 82, 255, 243, 103, 82, 255, 243, 103, 82, 255, 243, 103, 82, 255, 244, 108, 87, 255, 245, 95, 72, 254, 218, 80, 62, 255, 114, 34, 25, 50, 0, 0, 0, 0, 11, 11, 11, 7, 0, 0, 0, 28, 123, 123, 123, 189, 193, 193, 193, 255, 253, 253, 251, 255, 241, 247, 248, 255, 0, 108, 170, 255, 241, 247, 248, 255, 253, 253, 252, 255, 193, 193, 193, 255, 121, 125, 126, 186, 19, 0, 0, 63, 201, 68, 51, 230, 248, 106, 85, 255, 248, 105, 83, 255, 247, 104, 83, 255, 247, 103, 83, 255, 247, 103, 83, 255, 247, 104, 83, 255, 248, 105, 83, 255, 248, 106, 85, 255, 200, 71, 54, 233, 90, 27, 20, 39, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 7, 0, 0, 0, 37, 117, 117, 117, 180, 193, 193, 192, 255, 255, 255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 254, 194, 193, 194, 255, 116, 116, 117, 180, 0, 0, 0, 36, 1, 3, 3, 22, 151, 46, 34, 140, 222, 86, 68, 255, 255, 117, 98, 254, 252, 113, 93, 255, 250, 111, 91, 255, 250, 111, 91, 255, 252, 113, 93, 255, 255, 117, 98, 254, 222, 86, 68, 255, 150, 46, 34, 141, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 37, 122, 122, 122, 189, 183, 182, 182, 255, 255, 255, 255, 254, 183, 182, 182, 255, 122, 122, 122, 189, 0, 0, 0, 37, 0, 0, 0, 6, 0, 0, 0, 2, 0, 0, 0, 31, 159, 49, 37, 177, 213, 78, 60, 255, 251, 115, 95, 255, 255, 126, 107, 254, 255, 126, 107, 254, 251, 115, 95, 255, 213, 78, 60, 255, 159, 49, 37, 177, 0, 0, 0, 31, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 11, 11, 7, 0, 0, 0, 27, 125, 125, 125, 190, 152, 152, 152, 239, 125, 125, 125, 190, 0, 0, 0, 27, 11, 11, 11, 7, 0, 0, 0, 0, 0, 0, 0, 0, 14, 4, 3, 7, 0, 0, 0, 28, 92, 28, 20, 102, 173, 52, 37, 216, 179, 52, 37, 233, 179, 52, 37, 233, 173, 52, 37, 216, 92, 28, 20, 102, 0, 0, 0, 28, 14, 4, 3, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 10, 10, 8, 0, 0, 0, 22, 0, 0, 0, 32, 0, 0, 0, 22, 10, 10, 10, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 1, 4, 0, 0, 0, 16, 0, 0, 0, 28, 0, 0, 0, 33, 0, 0, 0, 33, 0, 0, 0, 28, 0, 0, 0, 16, 7, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.note_add = iup.imagergba{ width = 24, height = 24, pixels = { 167, 117, 45, 26, 208, 149, 59, 233, 210, 152, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 210, 151, 63, 255, 212, 153, 63, 255, 201, 141, 54, 163, 0, 0, 0, 0, 0, 0, 0, 0, 134, 88, 28, 46, 230, 190, 106, 255, 255, 225, 104, 254, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 222, 99, 255, 255, 220, 93, 255, 255, 246, 158, 254, 199, 133, 45, 231, 0, 0, 0, 0, 0, 0, 0, 0, 122, 79, 23, 50, 229, 190, 117, 255, 255, 211, 70, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 206, 61, 255, 255, 203, 49, 255, 255, 242, 168, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 23, 50, 230, 190, 112, 255, 241, 192, 77, 255, 239, 186, 68, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 239, 187, 69, 255, 238, 182, 59, 255, 255, 238, 162, 255, 198, 131, 41, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 108, 255, 255, 221, 112, 255, 255, 218, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 219, 108, 255, 255, 217, 101, 255, 255, 240, 163, 255, 198, 131, 42, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 109, 255, 255, 210, 77, 255, 255, 205, 70, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 206, 71, 255, 255, 203, 61, 255, 255, 237, 156, 255, 198, 131, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 24, 50, 229, 187, 107, 255, 255, 212, 82, 255, 255, 208, 75, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 208, 76, 255, 255, 206, 67, 255, 255, 238, 154, 255, 198, 131, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 105, 255, 255, 212, 85, 255, 255, 208, 79, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 80, 255, 255, 208, 79, 255, 255, 206, 72, 255, 255, 236, 151, 255, 198, 132, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 25, 50, 229, 186, 103, 255, 255, 212, 87, 255, 255, 208, 81, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 208, 82, 255, 255, 207, 74, 255, 255, 235, 149, 255, 198, 132, 43, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 185, 101, 255, 255, 213, 91, 255, 255, 210, 85, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 210, 86, 255, 255, 208, 79, 255, 255, 234, 145, 255, 198, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 185, 100, 255, 255, 214, 93, 255, 255, 210, 88, 255, 255, 210, 89, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 88, 255, 255, 210, 89, 255, 255, 210, 89, 255, 255, 210, 89, 255, 255, 209, 82, 255, 255, 234, 143, 255, 197, 132, 45, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 80, 26, 50, 229, 184, 98, 255, 255, 214, 96, 255, 255, 210, 91, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 255, 210, 92, 255, 254, 211, 93, 255, 255, 215, 97, 255, 255, 219, 104, 255, 255, 221, 105, 255, 255, 221, 105, 255, 255, 218, 99, 255, 255, 238, 148, 255, 200, 132, 46, 227, 0, 0, 0, 0, 0, 0, 0, 0, 122, 81, 27, 50, 228, 183, 96, 255, 255, 216, 99, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 255, 212, 95, 255, 254, 212, 95, 255, 255, 213, 97, 255, 247, 213, 96, 255, 182, 182, 53, 255, 78, 143, 14, 255, 56, 135, 14, 255, 56, 135, 14, 255, 78, 143, 11, 255, 189, 198, 83, 255, 207, 137, 51, 227, 0, 0, 0, 0, 0, 0, 0, 0, 125, 86, 31, 50, 214, 156, 68, 255, 254, 217, 102, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 221, 104, 255, 255, 220, 103, 255, 255, 215, 100, 255, 254, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 212, 98, 255, 255, 213, 100, 255, 233, 207, 90, 255, 109, 152, 13, 255, 132, 186, 84, 255, 170, 211, 97, 255, 155, 205, 73, 255, 155, 205, 73, 255, 170, 211, 97, 255, 135, 188, 83, 255, 96, 137, 4, 235, 26, 86, 0, 30, 0, 0, 0, 0, 124, 85, 31, 50, 226, 174, 85, 255, 211, 153, 66, 255, 204, 143, 59, 255, 203, 141, 58, 255, 203, 140, 56, 255, 205, 143, 56, 255, 242, 197, 91, 255, 255, 213, 102, 255, 255, 212, 101, 255, 255, 212, 101, 255, 255, 212, 101, 255, 253, 214, 104, 255, 140, 165, 31, 255, 168, 206, 117, 255, 142, 198, 37, 255, 106, 178, 0, 255, 220, 236, 195, 255, 220, 236, 195, 255, 106, 178, 0, 255, 143, 198, 37, 255, 175, 210, 121, 255, 65, 129, 0, 148, 36, 70, 0, 3, 125, 87, 35, 50, 216, 157, 57, 255, 227, 172, 57, 255, 249, 198, 58, 255, 255, 215, 69, 255, 255, 221, 93, 255, 250, 216, 108, 255, 223, 170, 74, 255, 255, 216, 105, 255, 255, 213, 104, 255, 255, 213, 104, 255, 255, 214, 105, 255, 236, 210, 99, 255, 124, 172, 57, 255, 145, 198, 41, 255, 115, 183, 0, 255, 103, 176, 0, 255, 237, 245, 223, 255, 237, 245, 223, 255, 103, 176, 0, 255, 115, 183, 0, 255, 148, 199, 43, 255, 122, 171, 59, 245, 46, 99, 0, 31, 124, 84, 34, 50, 226, 172, 66, 255, 233, 182, 64, 255, 221, 166, 57, 255, 242, 189, 57, 255, 255, 207, 65, 255, 247, 205, 82, 255, 224, 173, 80, 255, 255, 217, 110, 255, 255, 214, 108, 255, 255, 214, 107, 255, 255, 215, 109, 255, 228, 208, 103, 255, 100, 167, 39, 255, 121, 188, 1, 255, 189, 221, 135, 255, 176, 215, 119, 255, 245, 250, 239, 255, 245, 250, 239, 255, 176, 215, 119, 255, 189, 221, 135, 255, 121, 188, 1, 254, 124, 177, 45, 255, 40, 85, 0, 47, 123, 84, 32, 50, 226, 173, 71, 255, 243, 198, 76, 255, 234, 185, 65, 255, 221, 165, 57, 255, 243, 190, 57, 255, 248, 202, 62, 255, 224, 173, 83, 255, 255, 217, 112, 255, 255, 214, 110, 255, 255, 214, 110, 255, 255, 215, 111, 255, 229, 209, 107, 255, 90, 162, 8, 255, 117, 187, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 117, 187, 0, 255, 112, 171, 16, 255, 40, 79, 0, 50, 123, 82, 31, 50, 227, 175, 78, 255, 246, 203, 90, 255, 241, 196, 76, 255, 231, 181, 64, 255, 222, 166, 58, 255, 239, 185, 55, 255, 225, 177, 86, 255, 255, 220, 117, 255, 254, 216, 114, 255, 255, 216, 114, 255, 255, 216, 115, 255, 230, 210, 110, 255, 80, 156, 0, 255, 132, 196, 0, 255, 116, 186, 0, 255, 98, 177, 0, 255, 236, 245, 222, 255, 236, 245, 222, 255, 98, 177, 0, 255, 116, 186, 0, 255, 133, 196, 0, 255, 102, 165, 0, 255, 41, 80, 0, 49, 123, 82, 30, 50, 231, 183, 86, 255, 254, 218, 108, 254, 250, 208, 94, 255, 247, 204, 80, 255, 236, 187, 66, 255, 225, 171, 59, 255, 230, 181, 91, 255, 247, 207, 109, 255, 255, 228, 127, 255, 255, 225, 124, 255, 255, 226, 125, 255, 249, 225, 125, 255, 120, 168, 30, 255, 133, 197, 0, 255, 136, 199, 0, 255, 120, 190, 0, 255, 245, 250, 238, 255, 245, 250, 238, 255, 120, 190, 0, 255, 136, 199, 0, 255, 138, 199, 0, 255, 79, 139, 0, 213, 26, 51, 0, 33, 125, 87, 33, 50, 211, 150, 60, 255, 213, 152, 62, 255, 212, 151, 61, 255, 212, 151, 60, 255, 213, 152, 60, 255, 211, 150, 59, 255, 211, 150, 60, 255, 211, 149, 59, 255, 212, 153, 62, 255, 212, 152, 61, 255, 212, 152, 61, 255, 217, 153, 64, 255, 174, 146, 45, 255, 86, 151, 2, 255, 148, 209, 0, 254, 139, 202, 0, 255, 145, 203, 26, 255, 145, 203, 26, 255, 139, 202, 0, 255, 149, 209, 0, 254, 87, 151, 0, 253, 52, 98, 0, 114, 0, 0, 0, 9, 0, 0, 0, 16, 36, 25, 9, 64, 78, 55, 21, 91, 76, 54, 21, 90, 76, 53, 22, 90, 76, 53, 21, 90, 75, 54, 21, 90, 75, 54, 22, 90, 76, 53, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 76, 54, 21, 90, 75, 54, 21, 90, 85, 44, 28, 84, 46, 97, 2, 145, 80, 142, 0, 243, 126, 187, 0, 255, 139, 200, 0, 255, 139, 200, 0, 255, 126, 187, 0, 255, 80, 142, 0, 243, 54, 101, 0, 140, 0, 0, 0, 15, 4, 8, 0, 1, 3, 2, 0, 2, 0, 0, 0, 9, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 13, 0, 0, 0, 14, 0, 0, 0, 21, 21, 43, 0, 70, 49, 98, 0, 150, 49, 100, 0, 163, 49, 100, 0, 163, 49, 98, 0, 150, 21, 43, 0, 70, 0, 0, 0, 18, 10, 19, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 0, 0, 0, 9, 0, 0, 0, 21, 0, 0, 0, 25, 0, 0, 0, 25, 0, 0, 0, 21, 0, 0, 0, 9, 1, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, }, } ico.green = iup.imagergba{ width = 24, height = 24, pixels = { 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 69, 127, 0, 56, 71, 135, 0, 191, 70, 137, 0, 255, 69, 136, 0, 255, 69, 136, 0, 255, 70, 137, 0, 255, 71, 135, 0, 191, 69, 127, 0, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 71, 134, 0, 155, 86, 148, 10, 255, 156, 196, 95, 255, 199, 226, 150, 255, 208, 232, 161, 255, 208, 232, 161, 255, 199, 226, 150, 255, 156, 196, 95, 255, 86, 148, 10, 255, 71, 134, 0, 155, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 4, 71, 134, 0, 177, 95, 154, 20, 255, 201, 228, 152, 255, 172, 213, 94, 255, 130, 190, 18, 255, 114, 181, 0, 255, 114, 181, 0, 255, 130, 190, 18, 255, 172, 213, 94, 255, 201, 228, 152, 255, 95, 154, 20, 255, 71, 133, 0, 156, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 61, 113, 0, 63, 87, 148, 12, 255, 198, 226, 141, 255, 139, 196, 29, 255, 117, 184, 0, 255, 119, 185, 0, 255, 120, 185, 0, 255, 120, 185, 0, 255, 119, 185, 0, 255, 117, 184, 0, 255, 139, 196, 29, 255, 198, 226, 141, 255, 87, 148, 12, 255, 63, 115, 0, 62, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 70, 132, 0, 196, 160, 199, 99, 255, 149, 201, 43, 255, 122, 186, 0, 255, 124, 188, 0, 255, 125, 188, 0, 255, 125, 188, 0, 255, 125, 188, 0, 255, 125, 188, 0, 255, 124, 188, 0, 255, 122, 186, 0, 255, 149, 201, 43, 255, 160, 199, 99, 255, 70, 133, 0, 196, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 71, 137, 0, 255, 186, 220, 112, 255, 124, 189, 0, 255, 126, 189, 0, 255, 127, 190, 0, 255, 127, 190, 0, 255, 127, 190, 0, 255, 127, 190, 0, 255, 127, 190, 0, 255, 127, 190, 0, 255, 126, 189, 0, 255, 124, 189, 0, 255, 186, 220, 112, 255, 71, 137, 0, 255, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 72, 137, 0, 255, 163, 212, 60, 255, 127, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 129, 192, 0, 255, 127, 192, 0, 255, 163, 212, 60, 255, 72, 137, 0, 255, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 73, 137, 0, 255, 151, 205, 30, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 131, 193, 0, 255, 151, 205, 30, 255, 73, 137, 0, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 74, 138, 0, 255, 135, 197, 0, 255, 134, 197, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 133, 195, 0, 255, 134, 197, 0, 255, 135, 197, 0, 255, 74, 138, 0, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 69, 128, 0, 205, 116, 179, 0, 255, 138, 200, 0, 255, 136, 198, 0, 255, 135, 197, 0, 255, 135, 197, 0, 255, 135, 197, 0, 255, 135, 197, 0, 255, 135, 197, 0, 255, 135, 197, 0, 255, 136, 198, 0, 255, 138, 200, 0, 255, 116, 179, 0, 255, 69, 128, 0, 205, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 42, 77, 0, 93, 81, 146, 0, 255, 141, 201, 0, 255, 140, 202, 0, 255, 138, 200, 0, 255, 137, 199, 0, 255, 137, 199, 0, 255, 137, 199, 0, 255, 137, 199, 0, 255, 138, 200, 0, 255, 140, 202, 0, 255, 141, 201, 0, 255, 81, 146, 0, 255, 42, 77, 0, 93, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 32, 64, 118, 0, 177, 86, 150, 0, 255, 143, 203, 0, 255, 144, 205, 0, 255, 142, 203, 0, 255, 142, 202, 0, 255, 142, 202, 0, 255, 142, 203, 0, 255, 144, 205, 0, 255, 143, 203, 0, 255, 86, 150, 0, 255, 64, 118, 0, 177, 0, 0, 0, 32, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 14, 0, 0, 0, 45, 63, 116, 0, 180, 82, 145, 0, 255, 121, 183, 0, 255, 145, 205, 0, 255, 149, 210, 0, 255, 149, 210, 0, 255, 145, 205, 0, 255, 121, 183, 0, 255, 82, 145, 0, 255, 63, 116, 0, 180, 0, 0, 0, 45, 0, 0, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 18, 0, 0, 0, 45, 37, 69, 0, 105, 67, 124, 0, 209, 73, 138, 0, 255, 73, 137, 0, 255, 73, 137, 0, 255, 73, 138, 0, 255, 67, 124, 0, 209, 37, 69, 0, 105, 0, 0, 0, 45, 0, 0, 0, 18, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 14, 0, 0, 0, 32, 0, 0, 0, 52, 0, 0, 0, 64, 0, 0, 0, 67, 0, 0, 0, 67, 0, 0, 0, 64, 0, 0, 0, 52, 0, 0, 0, 32, 0, 0, 0, 14, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 21, 0, 0, 0, 15, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, }, } ico.orange = iup.imagergba{ width = 24, height = 24, pixels = { 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 201, 102, 41, 56, 216, 108, 40, 191, 219, 108, 39, 255, 219, 107, 38, 255, 219, 107, 38, 255, 219, 108, 39, 255, 216, 108, 40, 191, 201, 102, 41, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 211, 107, 41, 155, 223, 121, 56, 255, 245, 175, 128, 255, 255, 208, 175, 255, 255, 216, 184, 255, 255, 216, 184, 255, 255, 208, 175, 255, 245, 175, 128, 255, 223, 121, 56, 255, 211, 107, 41, 155, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 4, 211, 107, 41, 177, 226, 126, 65, 255, 255, 211, 178, 255, 255, 187, 134, 255, 255, 152, 76, 255, 255, 140, 52, 255, 255, 140, 52, 255, 255, 152, 76, 255, 255, 187, 134, 255, 255, 211, 178, 255, 226, 126, 65, 255, 211, 106, 41, 156, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 179, 90, 36, 63, 223, 121, 57, 255, 255, 209, 172, 255, 255, 162, 88, 255, 255, 144, 57, 255, 255, 146, 61, 255, 255, 147, 63, 255, 255, 147, 63, 255, 255, 146, 61, 255, 255, 144, 57, 255, 255, 162, 88, 255, 255, 209, 172, 255, 223, 121, 57, 255, 182, 92, 37, 62, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 210, 105, 40, 196, 245, 179, 134, 255, 255, 170, 100, 255, 255, 148, 61, 255, 255, 150, 65, 255, 255, 151, 67, 255, 255, 151, 67, 255, 255, 151, 67, 255, 255, 151, 67, 255, 255, 150, 65, 255, 255, 148, 61, 255, 255, 170, 100, 255, 245, 179, 134, 255, 211, 106, 40, 196, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 219, 109, 41, 255, 255, 201, 152, 255, 255, 151, 63, 255, 255, 153, 67, 255, 255, 154, 69, 255, 255, 154, 69, 255, 255, 154, 69, 255, 255, 154, 69, 255, 255, 154, 69, 255, 255, 154, 69, 255, 255, 153, 67, 255, 255, 151, 63, 255, 255, 201, 152, 255, 219, 109, 41, 255, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 219, 109, 42, 255, 255, 185, 116, 255, 255, 157, 69, 255, 255, 158, 71, 255, 255, 158, 72, 255, 255, 158, 72, 255, 255, 158, 72, 255, 255, 158, 72, 255, 255, 158, 72, 255, 255, 158, 72, 255, 255, 158, 71, 255, 255, 157, 69, 255, 255, 185, 116, 255, 219, 109, 42, 255, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 219, 109, 44, 255, 255, 177, 98, 255, 255, 161, 73, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 74, 255, 255, 161, 73, 255, 255, 177, 98, 255, 219, 109, 44, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 219, 110, 45, 255, 255, 166, 76, 255, 255, 165, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 164, 76, 255, 255, 165, 76, 255, 255, 166, 76, 255, 219, 110, 45, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 202, 103, 42, 205, 245, 150, 68, 255, 255, 170, 81, 255, 255, 168, 80, 255, 255, 167, 79, 255, 255, 167, 79, 255, 255, 167, 79, 255, 255, 167, 79, 255, 255, 167, 79, 255, 255, 167, 79, 255, 255, 168, 80, 255, 255, 170, 81, 255, 245, 150, 68, 255, 202, 103, 42, 205, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 121, 62, 26, 93, 223, 118, 50, 255, 255, 173, 83, 255, 255, 174, 83, 255, 255, 172, 81, 255, 255, 171, 81, 255, 255, 171, 81, 255, 255, 171, 81, 255, 255, 171, 81, 255, 255, 172, 81, 255, 255, 174, 83, 255, 255, 173, 83, 255, 223, 118, 50, 255, 121, 62, 26, 93, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 32, 185, 94, 39, 177, 226, 122, 51, 255, 255, 177, 85, 255, 255, 178, 85, 255, 255, 176, 84, 255, 255, 175, 84, 255, 255, 175, 84, 255, 255, 176, 84, 255, 255, 178, 85, 255, 255, 177, 85, 255, 226, 122, 51, 255, 185, 94, 39, 177, 0, 0, 0, 32, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 14, 0, 0, 0, 45, 182, 93, 38, 180, 223, 119, 51, 255, 245, 156, 73, 255, 255, 180, 87, 255, 255, 184, 91, 255, 255, 184, 91, 255, 255, 180, 87, 255, 245, 156, 73, 255, 223, 119, 51, 255, 182, 93, 38, 180, 0, 0, 0, 45, 0, 0, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 18, 0, 0, 0, 45, 107, 55, 23, 105, 197, 99, 41, 209, 219, 109, 45, 255, 219, 109, 44, 255, 219, 109, 44, 255, 219, 109, 45, 255, 197, 99, 41, 209, 107, 55, 23, 105, 0, 0, 0, 45, 0, 0, 0, 18, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 14, 0, 0, 0, 32, 0, 0, 0, 52, 0, 0, 0, 64, 0, 0, 0, 67, 0, 0, 0, 67, 0, 0, 0, 64, 0, 0, 0, 52, 0, 0, 0, 32, 0, 0, 0, 14, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 21, 0, 0, 0, 15, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, }, } ico.blue = iup.imagergba{ width = 24, height = 24, pixels = { 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 25, 121, 168, 56, 24, 128, 180, 191, 22, 129, 183, 255, 21, 129, 182, 255, 21, 129, 182, 255, 22, 129, 183, 255, 24, 128, 180, 191, 25, 121, 168, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 25, 127, 177, 155, 39, 140, 190, 255, 112, 182, 221, 255, 159, 209, 241, 255, 169, 215, 244, 255, 169, 215, 244, 255, 159, 209, 241, 255, 112, 182, 221, 255, 39, 140, 190, 255, 25, 127, 177, 155, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 4, 25, 127, 177, 177, 48, 145, 194, 255, 164, 212, 242, 255, 114, 189, 234, 255, 47, 157, 223, 255, 20, 143, 219, 255, 20, 143, 219, 255, 47, 157, 223, 255, 114, 189, 234, 255, 164, 212, 242, 255, 48, 145, 194, 255, 25, 126, 176, 156, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 22, 107, 149, 63, 40, 140, 191, 255, 160, 211, 242, 255, 66, 166, 227, 255, 32, 150, 220, 255, 36, 152, 220, 255, 38, 153, 221, 255, 38, 153, 221, 255, 36, 152, 220, 255, 32, 150, 220, 255, 66, 166, 227, 255, 160, 211, 242, 255, 40, 140, 191, 255, 22, 110, 152, 62, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 23, 125, 175, 196, 124, 188, 223, 255, 84, 176, 230, 255, 43, 155, 222, 255, 47, 157, 223, 255, 48, 158, 223, 255, 49, 158, 223, 255, 49, 158, 223, 255, 48, 158, 223, 255, 47, 157, 223, 255, 43, 155, 222, 255, 84, 176, 230, 255, 124, 188, 223, 255, 23, 126, 177, 196, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 23, 130, 183, 255, 146, 204, 239, 255, 52, 159, 225, 255, 56, 161, 225, 255, 58, 162, 225, 255, 58, 162, 225, 255, 58, 162, 225, 255, 58, 162, 225, 255, 58, 162, 225, 255, 58, 162, 225, 255, 56, 161, 225, 255, 52, 159, 225, 255, 146, 204, 239, 255, 23, 130, 183, 255, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 24, 130, 182, 255, 114, 191, 237, 255, 63, 165, 226, 255, 65, 166, 226, 255, 66, 166, 226, 255, 66, 166, 226, 255, 66, 166, 226, 255, 66, 166, 226, 255, 66, 166, 226, 255, 66, 166, 226, 255, 65, 166, 226, 255, 63, 165, 226, 255, 114, 191, 237, 255, 24, 130, 182, 255, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 25, 130, 182, 255, 100, 185, 235, 255, 73, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 74, 171, 228, 255, 73, 171, 228, 255, 100, 185, 235, 255, 25, 130, 182, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 26, 131, 183, 255, 85, 176, 232, 255, 84, 176, 230, 255, 83, 175, 229, 255, 83, 175, 229, 255, 83, 175, 229, 255, 83, 175, 229, 255, 83, 175, 229, 255, 83, 175, 229, 255, 83, 175, 229, 255, 83, 175, 229, 255, 84, 176, 230, 255, 85, 176, 232, 255, 26, 131, 183, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 25, 121, 169, 205, 72, 164, 216, 255, 96, 182, 234, 255, 93, 180, 231, 255, 92, 179, 231, 255, 92, 179, 231, 255, 92, 179, 231, 255, 92, 179, 231, 255, 92, 179, 231, 255, 92, 179, 231, 255, 93, 180, 231, 255, 96, 182, 234, 255, 72, 164, 216, 255, 25, 121, 169, 205, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 16, 73, 102, 93, 34, 138, 190, 255, 103, 184, 235, 255, 104, 185, 235, 255, 101, 183, 233, 255, 100, 183, 233, 255, 100, 183, 233, 255, 100, 183, 233, 255, 100, 183, 233, 255, 101, 183, 233, 255, 104, 185, 235, 255, 103, 184, 235, 255, 34, 138, 190, 255, 16, 73, 102, 93, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 32, 24, 112, 156, 177, 40, 142, 193, 255, 112, 190, 237, 255, 113, 192, 238, 255, 111, 190, 237, 255, 110, 189, 236, 255, 110, 189, 236, 255, 111, 190, 237, 255, 113, 192, 238, 255, 112, 190, 237, 255, 40, 142, 193, 255, 24, 112, 156, 177, 0, 0, 0, 32, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 14, 0, 0, 0, 45, 22, 109, 152, 180, 35, 138, 190, 255, 89, 173, 219, 255, 121, 194, 239, 255, 128, 199, 242, 255, 128, 199, 242, 255, 121, 194, 239, 255, 89, 173, 219, 255, 35, 138, 190, 255, 22, 109, 152, 180, 0, 0, 0, 45, 0, 0, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 18, 0, 0, 0, 45, 14, 65, 90, 105, 23, 117, 165, 209, 23, 130, 182, 255, 22, 129, 182, 255, 22, 129, 182, 255, 23, 130, 182, 255, 23, 117, 165, 209, 14, 65, 90, 105, 0, 0, 0, 45, 0, 0, 0, 18, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 14, 0, 0, 0, 32, 0, 0, 0, 52, 0, 0, 0, 64, 0, 0, 0, 67, 0, 0, 0, 67, 0, 0, 0, 64, 0, 0, 0, 52, 0, 0, 0, 32, 0, 0, 0, 14, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 21, 0, 0, 0, 15, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, }, } ico.purple = iup.imagergba{ width = 24, height = 24, pixels = { 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 142, 66, 156, 56, 151, 69, 167, 191, 153, 67, 169, 255, 152, 66, 168, 255, 152, 66, 168, 255, 153, 67, 169, 255, 151, 69, 167, 191, 142, 66, 156, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 149, 68, 164, 155, 162, 84, 176, 255, 201, 156, 207, 255, 226, 201, 226, 255, 231, 210, 230, 255, 231, 210, 230, 255, 226, 201, 226, 255, 201, 156, 207, 255, 162, 84, 176, 255, 149, 68, 164, 155, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 4, 149, 68, 164, 177, 166, 93, 179, 255, 228, 204, 227, 255, 213, 174, 213, 255, 190, 133, 191, 255, 182, 117, 184, 255, 182, 117, 184, 255, 190, 133, 191, 255, 213, 174, 213, 255, 228, 204, 227, 255, 166, 93, 179, 255, 148, 68, 164, 156, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 126, 59, 138, 63, 162, 86, 176, 255, 226, 200, 227, 255, 197, 143, 199, 255, 187, 121, 187, 255, 188, 123, 188, 255, 188, 124, 189, 255, 188, 124, 189, 255, 188, 123, 188, 255, 187, 121, 187, 255, 197, 143, 199, 255, 226, 200, 227, 255, 162, 86, 176, 255, 128, 60, 141, 62, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 147, 67, 162, 196, 205, 160, 211, 255, 204, 152, 206, 255, 190, 125, 192, 255, 192, 127, 193, 255, 192, 128, 194, 255, 192, 128, 194, 255, 192, 128, 194, 255, 192, 128, 194, 255, 192, 127, 193, 255, 190, 125, 192, 255, 204, 152, 206, 255, 205, 160, 211, 255, 148, 67, 163, 196, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 153, 69, 169, 255, 223, 188, 224, 255, 194, 127, 197, 255, 194, 128, 197, 255, 195, 130, 198, 255, 195, 130, 198, 255, 195, 130, 198, 255, 195, 130, 198, 255, 195, 130, 198, 255, 195, 130, 198, 255, 194, 128, 197, 255, 194, 127, 197, 255, 223, 188, 224, 255, 153, 69, 169, 255, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 153, 69, 169, 255, 215, 168, 217, 255, 198, 132, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 133, 202, 255, 198, 132, 202, 255, 215, 168, 217, 255, 153, 69, 169, 255, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 153, 70, 169, 255, 212, 156, 215, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 201, 135, 206, 255, 212, 156, 215, 255, 153, 70, 169, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 154, 71, 170, 255, 206, 139, 211, 255, 206, 139, 211, 255, 204, 137, 210, 255, 204, 137, 210, 255, 204, 137, 210, 255, 204, 137, 210, 255, 204, 137, 210, 255, 204, 137, 210, 255, 204, 137, 210, 255, 204, 137, 210, 255, 206, 139, 211, 255, 206, 139, 211, 255, 154, 71, 170, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 142, 67, 156, 205, 191, 118, 200, 255, 211, 144, 216, 255, 209, 141, 213, 255, 208, 140, 213, 255, 208, 140, 213, 255, 208, 140, 213, 255, 208, 140, 213, 255, 208, 140, 213, 255, 208, 140, 213, 255, 209, 141, 213, 255, 211, 144, 216, 255, 191, 118, 200, 255, 142, 67, 156, 205, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 86, 41, 94, 93, 160, 80, 175, 255, 213, 145, 219, 255, 214, 145, 219, 255, 212, 143, 218, 255, 211, 142, 217, 255, 211, 142, 217, 255, 211, 142, 217, 255, 211, 142, 217, 255, 212, 143, 218, 255, 214, 145, 219, 255, 213, 145, 219, 255, 160, 80, 175, 255, 86, 41, 94, 93, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 32, 131, 62, 144, 177, 164, 84, 179, 255, 216, 148, 222, 255, 218, 148, 224, 255, 216, 146, 223, 255, 215, 146, 222, 255, 215, 146, 222, 255, 216, 146, 223, 255, 218, 148, 224, 255, 216, 148, 222, 255, 164, 84, 179, 255, 131, 62, 144, 177, 0, 0, 0, 32, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 14, 0, 0, 0, 45, 128, 61, 141, 180, 161, 81, 176, 255, 197, 123, 208, 255, 219, 150, 227, 255, 224, 155, 231, 255, 224, 155, 231, 255, 219, 150, 227, 255, 197, 123, 208, 255, 161, 81, 176, 255, 128, 61, 141, 180, 0, 0, 0, 45, 0, 0, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 18, 0, 0, 0, 45, 76, 36, 83, 105, 138, 64, 152, 209, 153, 71, 168, 255, 152, 70, 168, 255, 152, 70, 168, 255, 153, 71, 168, 255, 138, 64, 152, 209, 76, 36, 83, 105, 0, 0, 0, 45, 0, 0, 0, 18, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 14, 0, 0, 0, 32, 0, 0, 0, 52, 0, 0, 0, 64, 0, 0, 0, 67, 0, 0, 0, 67, 0, 0, 0, 64, 0, 0, 0, 52, 0, 0, 0, 32, 0, 0, 0, 14, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 21, 0, 0, 0, 15, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, }, } ico.red = iup.imagergba{ width = 24, height = 24, pixels = { 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 177, 55, 41, 56, 189, 57, 41, 191, 192, 56, 40, 255, 191, 55, 39, 255, 191, 55, 39, 255, 192, 56, 40, 255, 189, 57, 41, 191, 177, 55, 41, 56, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 186, 57, 41, 155, 199, 71, 55, 255, 227, 137, 123, 255, 245, 178, 167, 255, 248, 188, 176, 255, 248, 188, 176, 255, 245, 178, 167, 255, 227, 137, 123, 255, 199, 71, 55, 255, 186, 57, 41, 155, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 4, 186, 57, 41, 177, 202, 79, 63, 255, 246, 181, 170, 255, 241, 142, 125, 255, 233, 87, 62, 255, 229, 66, 37, 255, 229, 66, 37, 255, 233, 87, 62, 255, 241, 142, 125, 255, 246, 181, 170, 255, 202, 79, 63, 255, 186, 56, 41, 156, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 157, 49, 36, 63, 199, 72, 57, 255, 246, 178, 166, 255, 238, 100, 77, 255, 233, 72, 45, 255, 233, 75, 49, 255, 233, 77, 51, 255, 233, 77, 51, 255, 233, 75, 49, 255, 233, 72, 45, 255, 238, 100, 77, 255, 246, 178, 166, 255, 199, 72, 57, 255, 160, 50, 37, 62, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 184, 55, 40, 196, 230, 143, 132, 255, 240, 114, 91, 255, 235, 79, 52, 255, 235, 82, 56, 255, 235, 84, 58, 255, 235, 84, 58, 255, 235, 84, 58, 255, 235, 84, 58, 255, 235, 82, 56, 255, 235, 79, 52, 255, 240, 114, 91, 255, 230, 143, 132, 255, 185, 56, 40, 196, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 192, 58, 42, 255, 247, 162, 148, 255, 237, 83, 57, 255, 237, 86, 61, 255, 237, 88, 63, 255, 237, 88, 63, 255, 237, 88, 63, 255, 237, 88, 63, 255, 237, 88, 63, 255, 237, 88, 63, 255, 237, 86, 61, 255, 237, 83, 57, 255, 247, 162, 148, 255, 192, 58, 42, 255, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 191, 58, 42, 255, 249, 133, 114, 255, 241, 89, 65, 255, 240, 91, 67, 255, 240, 92, 68, 255, 240, 92, 68, 255, 240, 92, 68, 255, 240, 92, 68, 255, 240, 92, 68, 255, 240, 92, 68, 255, 240, 91, 67, 255, 241, 89, 65, 255, 249, 133, 114, 255, 191, 58, 42, 255, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 191, 59, 44, 255, 248, 117, 97, 255, 243, 95, 72, 255, 242, 96, 73, 255, 242, 96, 73, 255, 242, 96, 73, 255, 242, 96, 73, 255, 242, 96, 73, 255, 242, 96, 73, 255, 242, 96, 73, 255, 242, 96, 73, 255, 243, 95, 72, 255, 248, 117, 97, 255, 191, 59, 44, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 22, 191, 60, 45, 255, 246, 101, 80, 255, 246, 102, 80, 255, 244, 101, 79, 255, 244, 101, 79, 255, 244, 101, 79, 255, 244, 101, 79, 255, 244, 101, 79, 255, 244, 101, 79, 255, 244, 101, 79, 255, 244, 101, 79, 255, 246, 102, 80, 255, 246, 101, 80, 255, 191, 60, 45, 255, 0, 0, 0, 22, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 21, 177, 56, 42, 205, 230, 91, 72, 255, 250, 108, 87, 255, 248, 105, 84, 255, 247, 105, 84, 255, 247, 105, 84, 255, 247, 105, 84, 255, 247, 105, 84, 255, 247, 105, 84, 255, 247, 105, 84, 255, 248, 105, 84, 255, 250, 108, 87, 255, 230, 91, 72, 255, 177, 56, 42, 205, 0, 0, 0, 21, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 15, 107, 34, 26, 93, 199, 66, 50, 255, 252, 111, 91, 255, 252, 111, 91, 255, 250, 110, 89, 255, 249, 109, 89, 255, 249, 109, 89, 255, 249, 109, 89, 255, 249, 109, 89, 255, 250, 110, 89, 255, 252, 111, 91, 255, 252, 111, 91, 255, 199, 66, 50, 255, 107, 34, 26, 93, 0, 0, 0, 15, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 32, 163, 52, 39, 177, 202, 70, 53, 255, 254, 114, 96, 255, 254, 116, 97, 255, 253, 115, 96, 255, 252, 114, 95, 255, 252, 114, 95, 255, 253, 115, 96, 255, 254, 116, 97, 255, 254, 114, 96, 255, 202, 70, 53, 255, 163, 52, 39, 177, 0, 0, 0, 32, 0, 0, 0, 6, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 14, 0, 0, 0, 45, 160, 50, 38, 180, 199, 68, 51, 255, 235, 100, 81, 255, 255, 120, 101, 255, 255, 124, 105, 255, 255, 124, 105, 255, 255, 120, 101, 255, 235, 100, 81, 255, 199, 68, 51, 255, 160, 50, 38, 180, 0, 0, 0, 45, 0, 0, 0, 14, 0, 0, 0, 1, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 18, 0, 0, 0, 45, 94, 30, 22, 105, 172, 55, 40, 209, 191, 59, 43, 255, 190, 59, 43, 255, 190, 59, 43, 255, 191, 59, 43, 255, 172, 55, 40, 209, 94, 30, 22, 105, 0, 0, 0, 45, 0, 0, 0, 18, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 14, 0, 0, 0, 32, 0, 0, 0, 52, 0, 0, 0, 64, 0, 0, 0, 67, 0, 0, 0, 67, 0, 0, 0, 64, 0, 0, 0, 52, 0, 0, 0, 32, 0, 0, 0, 14, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 6, 0, 0, 0, 15, 0, 0, 0, 21, 0, 0, 0, 22, 0, 0, 0, 22, 0, 0, 0, 21, 0, 0, 0, 15, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, }, }
local Wait = Wait local clock = os.clock RegisterCommand("perftest", function() local idx = 0 local test = function(name) idx = idx + 1 local eventName = "perf:test" .. idx local results = {} local start RegisterNetEvent(eventName, function(i, total) if i == nil then error() end local totalTime = math.round((clock() - start) * 1000) local ops = math.round(total / totalTime) table.insert(results, { totalTime, ops }) print("^0[^1" .. name .. "^0] ^4run:^5" .. i .. "^0 [^3" .. totalTime .. "ms ^0::^3 " .. ops .. " ops/sec^0]") start = nil end) for i = 1, 5 do start = clock() TriggerClientEvent(eventName, -1, i) while start ~= nil do Wait(100) end end local meanTime = 0 local meanOps = 0 for i = 1, #results do meanTime = meanTime + results[i][1] meanOps = meanOps + results[i][2] end meanTime = meanTime / #results meanOps = meanOps / #results print("^0[^1" .. name .. "^0] :: ^4mean time ^2" .. meanTime .. "ms^0 ::^4 mean ops/sec: ^2" .. meanOps) end test("#(vec1 - vec2)") test("v.x ^ 2 + v.y ^ 2 + v.z ^ 2") test("Vdist") test("Vdist2") test("GetDistanceBetweenCoords(..., false)") test("GetDistanceBetweenCoords(..., true)") end)
led = require("led") lan = require("network") D = require("fakedisplay") pm25led=require("pm25led") ffuctrl=require("ffuctrl") PMS = { PM2_5 = 20, PM1_0 = 30, PM10 = 50, T = 15, H = 25, TM = 1509537739, active = function() end, suspend = function() end } Dcl = 1000 FFUcl=10 -- environment sensor parms DARK_TH = 900 -- mV for ADC reading, higher than this is considered dark -- Human sensor pin PD_PIN = 0 -- D0 PDcl = 10 -- num D cycles until D out PMS_Scl = 600 -- num D cycles until refresh PMS reading PMS_Wcl = 60 -- stable reading time -- display location parms AQx=1 AQy=18 XAQx=80 XAQy=18 XAQTx=80 XAQTy=28 P25x=16 P25y=17 P1x=2 P1y=43 P10x=2 P10y=53 TPx=90 TPy=41 HMx=108 HMy=52 D25="---" D1="PM1 ---" D10="PM10 ---" Dtp=" --- C" Dhm="--%" XAQD = "Out: N/A" XAQI=nil XAQT="--:--:--" isDark = false ledY = 1 PDMode = false DOFFCNT = PDcl lastPD = 0 PMSSCNT = 0 function Read() -- check if we need to enable env detect mode by checking if rtc has been init correcly local tick=rtctime.get() print("T "..D.TM .. " H " .. node.heap()) if tick > 1483228800 then local pd = bit.band(tick, 1) if pd == 1 then if lastPD == 0 then D.setSleepMode(false) -- leave sleep mode if PMSSCNT > PMS_Wcl then PMS.active() end end -- alwasy reset the counter with people active PMSSCNT = 0 DOFFCNT = PDcl else -- check sleep mode if PMSSCNT == PMS_Wcl then PMS.suspend() elseif PMSSCNT == PMS_Scl then PMS.active() PMSSCNT = 0 end if DOFFCNT == 0 then D.setSleepMode(true) -- enter sleep mode end end lastPD = pd DOFFCNT = DOFFCNT - 1 PMSSCNT = PMSSCNT + 1 -- adjust display brightness and led brightness local bri = bit.band(tick, 1023) local dk = bri > DARK_TH if dk then if not isDark then D.setBrightness(0) ledY = 0.3 end else if isDark then D.setBrightness(255) ledY = 1 end end isDark = dk end if PMS.TM > 0 then D25= string.format("%03d", PMS.PM2_5) D1= string.format("PM1 %3d", PMS.PM1_0) D10= string.format("PM10 %3d", PMS.PM10) Dtp= string.format("%5.1fC", PMS.T) Dhm= string.format("%2d%%", PMS.H) if bit.band(tick, 2) == 0 then pm25led.run(PMS.PM2_5,led,ledY) end end if XAQI then XAQD = "Out: "..XAQI if bit.band(tick, 2) ~= 0 then pm25led.run(XAQI,led,ledY) end end end function Draw() --[[ D.set6x13() D.g:drawStr(AQx, AQy, "AQ") D.g:drawStr(TPx, TPy, Dtp) D.g:drawStr(HMx, HMy, Dhm) D.setLargeDigit() D.g:drawStr(P25x, P25y, D25) D.set6x10() D.g:drawStr(XAQx, XAQy, XAQD) D.g:drawStr(XAQTx, XAQTy, XAQT) D.g:drawStr(P1x, P1y, D1) D.g:drawStr(P10x, P10y, D10) ]] end function getXAQ() node.task.post(node.task.LOW_PRIORITY, function() if node.heap() > 7000 and (not XAQI or (D.TM:sub(1,2) + 24 - XAQT:sub(1,2))%24 > 0) then require("waqi").get("@450", function(a,t) XAQI=tonumber(a); XAQT=t:sub(12,19) end) end end) end --led.init(7,6,5) --D.init(1, 2, Dcl) D.init(Dcl) D.setCallback(Read, Draw) lan.init() _reentry = false lan.startService(function() local srv = net.createServer(net.TCP, 5) srv:listen(80, function(c) if _reentry then print("-- BAD --") c:close() return end _reentry = true require("netserver").server(c, function() _reentry = false end) end) getXAQ() tmr.create():alarm(5000, tmr.ALARM_AUTO, getXAQ) end) FFUcl=10 tmr.create():alarm(1567, tmr.ALARM_AUTO, function() local t = rtctime.get() PMS.PM2_5 = bit.band(t, 7) PMS.TM = t ffuctrl.run(PMS.PM2_5, FFUcl, 7) end)
local ITEM = Clockwork.item:New("armor_clothes_base"); ITEM.name = "PSZ-9d Duty Armored Suit"; ITEM.uniqueID = "duty_psz9d_suit"; ITEM.actualWeight = 6; ITEM.invSpace = 8; ITEM.radiationResistance = 0.4; ITEM.maxArmor = 100; ITEM.protection = 0.6; ITEM.hasGasmask = true; ITEM.business = false; ITEM.replacement = "models/stalkertnb/psz9d_duty3.mdl" ITEM.model = "models/stalkertnb/outfits/psz9d_duty.mdl"; ITEM.description = "A full Personal Protection System Model 9 Duty Suit."; ITEM.faction = "DUTY"; ITEM.access = "F"; ITEM.replacementmale = {} ITEM.replacementmale[1] = "models/stalkertnb/psz9d_duty.mdl" ITEM.replacementmale[2] = "models/stalkertnb/psz9d_duty2.mdl" ITEM.replacementmale[3] = "models/stalkertnb/psz9d_duty3.mdl" ITEM.replacementmale[4] = "models/stalkertnb/psz9d_duty4.mdl" ITEM.replacementmale[5] = "models/stalkertnb/psz9d_zgubba.mdl" ITEM.replacementmale[6] = "models/stalkertnb/psz9d_storm.mdl" ITEM.replacementmale[7] = "models/stalkertnb/psz9d_kibwe.mdl" ITEM.replacementmale[8] = "models/stalkertnb/psz9d_makarov.mdl" ITEM.replacementfemale = {} ITEM.replacementfemale[1] = "models/stalkertnb/psz9d_ybarra2.mdl" ITEM.replacementfemale[2] = "models/stalkertnb/psz9d_blonde.mdl" ITEM.replacementfemale[3] = "models/stalkertnb/psz9d_nazca.mdl" ITEM:Register();
-- See LICENSE for terms function OnMsg.LoadGame() local rules = g_CurrentMissionParams.idGameRules or empty_table local GameRulesMap = GameRulesMap for rule_id in pairs(rules) do -- if it isn't in the map then it isn't a valid rule if not GameRulesMap[rule_id] then rules[rule_id] = nil end end end
-- -- Copyright (c) 2015 rxi -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- local position = { x = 0, y = 0 } local buttonsDown = {} local buttonsPressed = {} function sol.mouse._onEvent(e) if e.type == "mousemove" then position.x, position.y = e.x, e.y elseif e.type == "mousebuttondown" then buttonsDown[e.button] = true buttonsPressed[e.button] = true elseif e.type == "mousebuttonup" then buttonsDown[e.button] = nil end end function sol.mouse.reset() for k in pairs(buttonsPressed) do buttonsPressed[k] = nil end end function sol.mouse.isDown(...) for i = 1, select("#", ...) do local b = select(i, ...) if buttonsDown[b] then return true end end return false end function sol.mouse.wasPressed(...) for i = 1, select("#", ...) do local b = select(i, ...) if buttonsPressed[b] then return true end end return false end function sol.mouse.getPosition() return position.x, position.y end function sol.mouse.getX() return position.x end function sol.mouse.getY() return position.y end
workspace "Mewtle" architecture "x64" configurations{ "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Mewtle" location "Mewtle" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir("bin/" .. outputdir .. "/%{prj.name}") objdir("bin-int/" .. outputdir .. "/%{prj.name}") pchheader "PrecompiledHeaders.h" pchsource "Mewtle/enginePrecompiledHeaders/PrecompiledHeaders.cpp" files{ "Mewtle/src/**.h", "Mewtle/src/**.cpp", "Mewtle/enginePrecompiledHeaders/**.h", "Mewtle/enginePrecompiledHeaders/**.cpp" } includedirs{ "Mewtle/src", "Mewtle/dependencies", "Mewtle/enginePrecompiledHeaders" } links{ "opengl32.lib", "glu32.lib", "$(SolutionDir)%{prj.name}/dependencies/glew-2.1.0/glew32.lib", "$(SolutionDir)%{prj.name}/dependencies/FreeType/freetype.lib", "$(SolutionDir)%{prj.name}/dependencies/glfw-3.3.bin.WIN64/glfw3dll.lib", "$(SolutionDir)%{prj.name}/dependencies/ObjParser/ObjParser.lib" } --postbuildcommands{ -- ("{COPY} %{cfg.buildtarget.relpath} Mewtle/dlls") --} filter "system:windows" cppdialect "C++17" staticruntime "On" systemversion "latest" defines{ "MTL_PLATFORM_WINDOWS", "MTL_BUILD_DLL", "GLFW_INCLUDE_NONE" } filter "configurations:Debug" defines "MTL_DEBUG" runtime "Debug" symbols "on" filter "configurations:Release" defines "MTL_RELEASE" runtime "Release" optimize "on" filter "configurations:Dist" defines "MTL_DIST" runtime "Release" optimize "on" -- Remove this after integration is over. --project "ObjParser" -- location "ObjParser" -- kind "StaticLib" -- language "C++" -- cppdialect "C++17" -- staticruntime "on" -- targetdir("bin/" .. outputdir .. "/%{prj.name}") -- objdir("bin-int/" .. outputdir .. "/%{prj.name}") -- files{ -- "%{prj.name}/**.h", -- "%{prj.name}/**.cpp" -- } --postbuildcommands{ -- ("{COPY} %{cfg.buildtarget.relpath} Mewtle/dependencies/ObjParser/ObjParser.lib") --} -- filter "system:windows" -- cppdialect "C++17" -- staticruntime "On" -- systemversion "latest" -- defines{ -- "MTL_PLATFORM_WINDOWS" -- } -- filter "configurations:Debug" -- defines "MTL_DEBUG" -- runtime "Debug" -- symbols "on" -- filter "configurations:Release" -- defines "MTL_RELEASE" -- runtime "Release" -- optimize "on" -- filter "configurations:Dist" -- defines "MTL_DIST" -- runtime "Release" -- optimize "on"
local uci = require("simple-uci").cursor() local wireless = require 'gluon.wireless' package 'gluon-web-wifi-config' if wireless.device_uses_wlan(uci) then entry({"admin", "wifi-config"}, model("admin/wifi-config"), _("WLAN"), 20) end
----------------------------------- -- Area: Gusgen Mines -- NPC: ??? - 17580347 -- Spawns Aroma Fly - RSE Satchets ----------------------------------- local ID = require("scripts/zones/Gusgen_Mines/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) local playerRace = player:getRace() local raceOffset = 0 if playerRace >= 6 then -- will subtract 1 from playerRace calculations for loot starting at taru female, because taru satchet encompasses both sexes raceOffset = 1 end if VanadielRSELocation() == 1 and VanadielRSERace() == playerRace and not player:hasItem(18246 + playerRace - raceOffset) then npcUtil.popFromQM(player, npc, ID.mob.AROMA_FLY, {claim=true, hide=math.random(600,1800), look=true, radius=1}) -- ??? despawns and respawns 10-30 minutes after NM dies for i = 1, 7 do SetDropRate(172, 18246 + i, 0) -- zeros all drop rates end SetDropRate(172, 18246 + playerRace - raceOffset, 130) -- adds 13% drop rate to specific week's race local newSpawn = math.random(1,3) -- determine new spawn point for ??? if newSpawn == 1 then npcUtil.queueMove(npc, {-99.574, -28.163, 386.702}) elseif newSpawn == 2 then npcUtil.queueMove(npc, {-118.351, 1.000, 239.196}) -- TODO: get 100% accurate spawn point from retail else npcUtil.queueMove(npc, {146.789, -39.800, 31.132}) -- TODO: get 100% accurate spawn point from retail end else player:messageSpecial(ID.text.NOTHING_OUT_OF_ORDINARY) end end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) end
function picnicFlag(n) local pool = {} local lastCard = {0,0} for i, v in pairs(ROUND.chair[n].hand) do if v[1] == lastCard[1] and v[2] == lastCard[2] then table.insert(pool, i) else lastCard = v end end if #pool > 0 then local image = {tfm.exec.addImage(IMG.misc.genericLayer, "!1000", 0, 0, ROUND.chair[n].owner)} local option = {} for i, v in pairs(ROUND.chair) do if v.owner ~= "Papaille" and (v.mode == "BUSY" or v.mode == "FREE") and i ~= n then table.insert(image, tfm.exec.addImage(IMG.misc.target, "!1000", v.x-50, 30)) option[i] = true end end ROUND.chair[n].action = { name = "PICNIC", img = image, op = option, card = pool[math.random(#pool)], func = makePicnicGift } resetTimer() updateTurnTimer() else passTurn() batataTimer(n) ROUND.chair[n].confuse = false end end function makePicnicGift(n, target) if target then local temp = {} if n ~= target and ROUND.chair[target].mode ~= "DELETED" and (ROUND.chair[target].owner ~= "Papaille" or ROUND.chair[n].owner == "Jingle") then if ROUND.chair[n].action then for i, v in pairs(ROUND.chair[n].action.img) do tfm.exec.removeImage(v) end end if BOT[ROUND.chair[target].owner] and BOT[ROUND.chair[target].owner].eventDonate then BOT[ROUND.chair[target].owner].eventDonate() end local find = ROUND.chair[n].action.card ROUND.chair[n].action = false missCard(target, ROUND.chair[n].hand[find], 2000) explosion(5, ROUND.chair[target].x, 100, 5, 10) discardEffect(n, find) donateByIndex(n, target, find) sortHand(ROUND.chair[target].hand) if #ROUND.chair[n].hand == 1 then ROUND.chair[n].uno = "uno" end showCardsGainned(n, -1) showCardsGainned(target, 1) updateScore(n) updateScore(target) --drawTopCard() updateHand(n) updateHand(target) if isIlluminati(target) then unlockChair(ROUND.chair[target].owner, "illuminati") end if #ROUND.chair[target].hand > ROUND.chair[target].maxHand then ROUND.chair[target].maxHand = #ROUND.chair[target].hand end if #ROUND.chair[target].hand > 25 and not ROUND.chair[target].notTrash then unlockChair(ROUND.chair[target].owner, "trash") end if mustBeEliminated(target) then eliminate(target) end if #ROUND.chair[n].hand == 0 then local name = ROUND.chair[n].owner endGame(ROUND.chair[n].owner) unlockChair(name, "gift") else passTurn() ROUND.chair[n].confuse = false batataTimer(n) updateShadow(n) end end else if ROUND.chair[n].action then for i, v in pairs(ROUND.chair[n].action.img) do tfm.exec.removeImage(v) end ROUND.chair[n].action = false end passTurn() batataTimer(n) updateShadow(n) end end function cloudFlag(n) -- metal local pool = {} for i, v in pairs(ROUND.chair) do if v.mode ~= "DELETED" then table.insert(pool, i) end end local l = tfm.exec.addImage(IMG.misc.genericLayer, "!1000", 0, 0, player) TIMER.img[l] = os.time()+500 local r = table.remove(pool, math.random(#pool)) if r then local img = tfm.exec.addImage(IMG.misc.thunder, "!1000", ROUND.chair[r].x-50, 15) TIMER.img[img] = os.time()+500 explosion(0, ROUND.chair[r].x, 115, 10, 30) tryDraw(r, math.random(2)) end passTurn() batataTimer(n) end function starFlag(n) -- paper giveCard(n, {"black","wild",true,true}, true) missCard(n, {"black","wild",true,true}, 2000) if mustBeEliminated(n) then eliminate(n) end passTurn() batataTimer(n) ROUND.chair[n].confuse = false end function leafFlag(n) -- carpet local number = {} for i, v in pairs(ROUND.chair[n].hand) do if isNumeric(v) then table.insert(number, i) end end if #number > 0 then local discarted = table.remove(ROUND.chair[n].hand, number[math.random(#number)]) discarted.lock = false if not discarted[3] then table.insert(ROUND.pile, discarted) end missCard(n, discarted, 2000) local img = tfm.exec.addImage(IMG.misc.burn, "!1000", ROUND.chair[n].x-25, 20) TIMER.img[img] = os.time()+2000 tryDraw(n, 1) if ROUND.chair[n].mode ~= "DELETED" and #ROUND.chair[n].hand == 1 then ROUND.chair[n].uno = "uno" updateScore(n) end --drawTopCard() end passTurn() batataTimer(n) ROUND.chair[n].confuse = false end
----------------------------------- -- Area: Uleguerand Range -- NPC: Zebada -- Type: ENM Quest Activator -- !pos -308.112 -42.137 -570.096 5 ----------------------------------- local ID = require("scripts/zones/Uleguerand_Range/IDs") require("scripts/globals/keyitems") ----------------------------------- function onTrade(player, npc, trade) -- Trade Chamnaet Ice if (trade:hasItemQty(1780, 1) and trade:getItemCount() == 1) then player:tradeComplete() player:startEvent(13) end end function onTrigger(player, npc) local ZephyrFanCD = player:getCharVar("[ENM]ZephyrFan") if (player:hasKeyItem(tpz.ki.ZEPHYR_FAN)) then player:startEvent(12) else if (ZephyrFanCD >= os.time()) then -- Both Vanadiel time and unix timestamps are based on seconds. Add the difference to the event. player:startEvent(15, VanadielTime()+(ZephyrFanCD-os.time())) else if (player:hasItem(1780) or player:hasItem(1779)) then -- Chamnaet Ice -- Cotton Pouch player:startEvent(16) else player:startEvent(14) end end end end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) if (csid == 13) then player:addKeyItem(tpz.ki.ZEPHYR_FAN) player:messageSpecial(ID.text.KEYITEM_OBTAINED, tpz.ki.ZEPHYR_FAN) player:setCharVar("[ENM]ZephyrFan", os.time()+(ENM_COOLDOWN*3600)) -- Current time + (ENM_COOLDOWN*1hr in seconds) elseif (csid == 14) then if (player:getFreeSlotsCount() == 0) then player:messageSpecial(ID.text.ITEM_CANNOT_BE_OBTAINED, 1779) -- Cotton Pouch return else player:addItem(1779) player:messageSpecial(ID.text.ITEM_OBTAINED, 1779) -- Cotton Pouch end end end
local _CUR = ... local _M = { Role = cc.import(".Role", _CUR), } return _M
local MOCK_STUDIO = { ThemeChanged = Instance.new("BindableEvent").Event, Theme = { GetColor = function() end, }, } local function useTheme(hooks: any) local studio = hooks.useMemo(function() local success, result = pcall(function() return (settings() :: any).Studio end) return if success then result else MOCK_STUDIO end, {}) local theme: StudioTheme, set = hooks.useState(studio.Theme) hooks.useEffect(function() local conn = studio.ThemeChanged:Connect(function() set(studio.Theme) end) return function() conn:Disconnect() end end, {}) return theme end return useTheme
local function enum(tbl) local call = {} for k, v in pairs(tbl) do if call[v] then return error(string.format('enum clash for %q and %q', k, call[v])) end call[v] = k end return setmetatable({}, { __call = function(_, k) if call[k] then return call[k] else return error('invalid enumeration: ' .. tostring(k)) end end, __index = function(_, k) if tbl[k] then return tbl[k] else return error('invalid enumeration: ' .. tostring(k)) end end, __pairs = function() return next, tbl end, __newindex = function() return error('cannot overwrite enumeration') end, }) end local enums = {enum = enum} enums.defaultAvatar = enum { blurple = 0, gray = 1, green = 2, orange = 3, red = 4, } enums.notificationSetting = enum { allMessages = 0, onlyMentions = 1, } enums.channelType = enum { text = 0, private = 1, voice = 2, group = 3, category = 4, news = 5, store = 6, newsThread = 10, publicThread = 11, privateThread = 12, stage = 13, } enums.webhookType = enum { incoming = 1, channelFollower = 2, application = 3, } enums.messageType = enum { default = 0, recipientAdd = 1, recipientRemove = 2, call = 3, channelNameChange = 4, channelIconChange = 5, pinnedMessage = 6, memberJoin = 7, premiumGuildSubscription = 8, premiumGuildSubscriptionTier1 = 9, premiumGuildSubscriptionTier2 = 10, premiumGuildSubscriptionTier3 = 11, channelFollowAdd = 12, guildDiscoveryDisqualified = 14, guildDiscoveryRequalified = 15, guildDiscoveryGracePeriodInitialWarning = 16, guildDiscoveryGracePeriodFinalWarning = 17, threadCreated = 18, reply = 19, chatInputCommand = 20, threadStarterMessage = 21, guildInviteReminder = 22, contextMenuCommand = 23, } enums.relationshipType = enum { none = 0, friend = 1, blocked = 2, pendingIncoming = 3, pendingOutgoing = 4, } enums.activityType = enum { game = 0, streaming = 1, listening = 2, watching = 3, custom = 4, competing = 5, } enums.status = enum { online = 'online', idle = 'idle', doNotDisturb = 'dnd', invisible = 'invisible', } enums.gameType = enum { -- NOTE: deprecated; use activityType default = 0, streaming = 1, listening = 2, custom = 4, } enums.verificationLevel = enum { none = 0, low = 1, medium = 2, high = 3, -- (╯°□°)╯︵ ┻━┻ veryHigh = 4, -- ┻━┻ ミヽ(ಠ益ಠ)ノ彡┻━┻ } enums.explicitContentLevel = enum { none = 0, medium = 1, high = 2, } enums.premiumTier = enum { none = 0, tier1 = 1, tier2 = 2, tier3 = 3, } enums.permission = enum { createInstantInvite = 0x0000000000000001, kickMembers = 0x0000000000000002, banMembers = 0x0000000000000004, administrator = 0x0000000000000008, manageChannels = 0x0000000000000010, manageGuild = 0x0000000000000020, addReactions = 0x0000000000000040, viewAuditLog = 0x0000000000000080, prioritySpeaker = 0x0000000000000100, stream = 0x0000000000000200, readMessages = 0x0000000000000400, sendMessages = 0x0000000000000800, sendTextToSpeech = 0x0000000000001000, manageMessages = 0x0000000000002000, embedLinks = 0x0000000000004000, attachFiles = 0x0000000000008000, readMessageHistory = 0x0000000000010000, mentionEveryone = 0x0000000000020000, useExternalEmojis = 0x0000000000040000, viewGuildInsights = 0x0000000000080000, connect = 0x0000000000100000, speak = 0x0000000000200000, muteMembers = 0x0000000000400000, deafenMembers = 0x0000000000800000, moveMembers = 0x0000000001000000, useVoiceActivity = 0x0000000002000000, changeNickname = 0x0000000004000000, manageNicknames = 0x0000000008000000, manageRoles = 0x0000000010000000, manageWebhooks = 0x0000000020000000, manageEmojis = 0x0000000040000000, useApplicationCommands = 0x0000000080000000, requestToSpeak = 0x0000000100000000, manageEvents = 0x0000000200000000, manageThreads = 0x0000000400000000, creaetePublicThreads = 0x0000000800000000, createPrivateThreads = 0x0000001000000000, useExternalStickers = 0x0000002000000000, sendMessagesInThreads = 0x0000004000000000, useEmbeddedActivities = 0x0000008000000000, moderateMembers = 0x0000010000000000, } enums.messageFlag = enum { crossposted = 0x00000001, isCrosspost = 0x00000002, suppressEmbeds = 0x00000004, sourceMessageDeleted = 0x00000008, urgent = 0x00000010, hasThread = 0x00000020, ephemeral = 0x00000040, loading = 0x00000080, failedToMentionSomeRolesInThread = 0x00000100, } enums.actionType = enum { guildUpdate = 1, channelCreate = 10, channelUpdate = 11, channelDelete = 12, channelOverwriteCreate = 13, channelOverwriteUpdate = 14, channelOverwriteDelete = 15, memberKick = 20, memberPrune = 21, memberBanAdd = 22, memberBanRemove = 23, memberUpdate = 24, memberRoleUpdate = 25, memberMove = 26, memberDisconnect = 27, botAdd = 28, roleCreate = 30, roleUpdate = 31, roleDelete = 32, inviteCreate = 40, inviteUpdate = 41, inviteDelete = 42, webhookCreate = 50, webhookUpdate = 51, webhookDelete = 52, emojiCreate = 60, emojiUpdate = 61, emojiDelete = 62, messageDelete = 72, messageBulkDelete = 73, messagePin = 74, messageUnpin = 75, integrationCreate = 80, integrationUpdate = 81, integrationDelete = 82, stageInstanceCreate = 83, stageInstanceUpdate = 84, stageInstanceDelete = 85, stickerCreate = 90, stickerUpdate = 91, stickerDelete = 92, guildScheduledEventCreate = 100, guildScheduledEventUpdate = 101, guildScheduledEventDelete = 102, threadCreate = 110, threadUpdate = 111, threadDelete = 112, } enums.gatewayIntent = enum { guilds = 0x00000001, guildMembers = 0x00000002, guildBans = 0x00000004, guildEmojis = 0x00000008, guildIntegrations = 0x00000010, guildWebhooks = 0x00000020, guildInvites = 0x00000040, guildVoiceStates = 0x00000080, guildPresences = 0x00000100, guildMessages = 0x00000200, guildMessageReactions = 0x00000400, guildMessageTyping = 0x00000800, directMessage = 0x00001000, directMessageRections = 0x00002000, directMessageTyping = 0x00004000, messageContent = 0x00008000, guildScheduledEvents = 0x00010000, } enums.locale = enum { danish = "da", german = "de", englishUK = "en-GB", englishUS = "en-US", spanish = "es-ES", french = "fr", croatian = "hr", italian = "it", lithuanian = "lt", hungarian = "hu", dutch = "nl", norwegian = "no", polish = "pl", portugeseBR = "pt-BR", romanian = "ro", finnish = "fi", swedish = "sv-SE", vietnamese = "vi", turkish = "tr", czech = "cs", greek = "el", bulgarian = "bg", russian = "ru", ukrainian = "uk", hindi = "hi", thai = "th", chineseCN = "zh-CN", chineseTW = "zh-TW", japanese = "ja", korean = "ko", } enums.logLevel = enum { none = 0, error = 1, warning = 2, info = 3, debug = 4, } enums.interactionType = enum { ping = 1, applicationCommand = 2, messageComponent = 3, autocomplete = 4, modalSubmit = 5, } enums.callbackType = enum { pong = 1, reply = 4, deferReply = 5, deferUpdate = 6, update = 7, autocomplete = 8, modal = 9, } enums.applicationCommandType = enum { chatInput = 1, user = 2, message = 3, } enums.applicationCommandOptionType = enum { subcommand = 1, subcommandGroup = 2, string = 3, integer = 4, boolean = 5, user = 6, channel = 7, role = 8, mentionable = 9, number = 10, attachment = 11, } enums.componentType = enum { row = 1, button = 2, select = 3, input = 4, } enums.buttonStyle = enum { primary = 1, secondary = 2, success = 3, danger = 4, link = 5, } enums.inputStyle = enum { short = 1, paragraph = 2, } return enums
function VBJOB.RegisterJob(teamIdentifier, jobTable, inheritedJob) if inheritedJob then VBJOB.JobTable[teamIdentifier] = table.Copy(VBJOB.JobTable[inheritedJob]) for k, v in pairs(jobTable) do VBJOB.JobTable[teamIdentifier][k] = v end else VBJOB.JobTable[teamIdentifier] = jobTable end end function VBJOB.GetJob(ply) return VBJOB.JobTable[ply:Team()] end function VBJOB.GetCount(team) local sum = 0 for k, v in ipairs(player.GetHumans()) do if v:Team() == team then sum = sum + 1 end end return sum end function VBJOB.GetJobInfos(job) if VBJOB.JobTable[job] then return VBJOB.JobTable[job] end return VBJOB.JobTable[TEAM_CITIZEN] end
-- See LICENSE for terms -- nil is close enough to false AreDomesCapped = empty_func
local b = {} b.find = function(_, list, index, val) local lower = 1 local upper = #list local found = false while not found do local check = lower + math.floor(((upper - lower) / 2) + 0.5) if list[check][index] == val then found = check break end if list[check][index] < val then upper = check end if list[check][index] > val then lower = check end if upper == lower then break end end return found end b.findInsert = function(_, list, index, val) local lower = 1 local upper = #list local found = false if list[upper][index] >= val then found = upper + 1 end if list[1][index] <= val then found = 1 end while not found do local check = (lower + math.floor(((upper - lower) / 2) + 0.5)) if list[check][index] == val then found = check+1 break end if list[check][index] > val then lower = check if list[check + 1][index] < val then upper = check + 1 lower = upper end end if list[check][index] < val then upper = check if list[check - 1][index] > val then lower = check end end if upper == lower then found = upper break end end local e = list[found + 1] and list[found + 1][index] or 'End' return found end b.binarySearch = b return b
local size = CCDirector:sharedDirector():getWinSize() local scheduler = CCDirector:sharedDirector():getScheduler() local kTagTileMap = 1 local function createTileDemoLayer(title, subtitle) local layer = CCLayer:create() Helper.initWithLayer(layer) local titleStr = title == nil and "No title" or title local subTitleStr = subtitle == nil and "drag the screen" or subtitle Helper.titleLabel:setString(titleStr) Helper.subtitleLabel:setString(subTitleStr) local prev = {x = 0, y = 0} local function onTouchEvent(eventType, x, y) if eventType == "began" then prev.x = x prev.y = y return true elseif eventType == "moved" then local node = layer:getChildByTag(kTagTileMap) local newX = node:getPositionX() local newY = node:getPositionY() local diffX = x - prev.x local diffY = y - prev.y node:setPosition( ccpAdd(ccp(newX, newY), ccp(diffX, diffY)) ) prev.x = x prev.y = y end end layer:setTouchEnabled(true) layer:registerScriptTouchHandler(onTouchEvent) return layer end -------------------------------------------------------------------- -- -- TileMapTest -- -------------------------------------------------------------------- local function TileMapTest() local layer = createTileDemoLayer("TileMapAtlas") local map = CCTileMapAtlas:create(s_TilesPng, s_LevelMapTga, 16, 16) -- Convert it to "alias" (GL_LINEAR filtering) map:getTexture():setAntiAliasTexParameters() local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) -- If you are not going to use the Map, you can free it now -- NEW since v0.7 map:releaseMap() layer:addChild(map, 0, kTagTileMap) map:setAnchorPoint( ccp(0, 0.5) ) local scale = CCScaleBy:create(4, 0.8) local scaleBack = scale:reverse() local action_arr = CCArray:create() action_arr:addObject(scale) action_arr:addObject(scaleBack) local seq = CCSequence:create(action_arr) map:runAction(CCRepeatForever:create(seq)) return layer end -------------------------------------------------------------------- -- -- TileMapEditTest -- -------------------------------------------------------------------- local function TileMapEditTest() local layer = createTileDemoLayer("Editable TileMapAtlas") local map = CCTileMapAtlas:create(s_TilesPng, s_LevelMapTga, 16, 16) -- Create an Aliased Atlas map:getTexture():setAliasTexParameters() local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) -- If you are not going to use the Map, you can free it now -- [tilemap releaseMap) -- And if you are going to use, it you can access the data with: local function updateMap(dt) -- IMPORTANT -- The only limitation is that you cannot change an empty, or assign an empty tile to a tile -- The value 0 not rendered so don't assign or change a tile with value 0 local tilemap = tolua.cast(layer:getChildByTag(kTagTileMap), "CCTileMapAtlas") -- -- For example you can iterate over all the tiles -- using this code, but try to avoid the iteration -- over all your tiles in every frame. It's very expensive -- for(int x=0 x < tilemap.tgaInfo:width x++) -- for(int y=0 y < tilemap.tgaInfo:height y++) -- ccColor3B c =[tilemap tileAt:local Make(x,y)) -- if( c.r != 0 ) -- --------cclog("%d,%d = %d", x,y,c.r) -- end -- end -- end -- NEW since v0.7 local c = tilemap:tileAt(ccp(13,21)) c.r = c.r + 1 c.r = c.r % 50 if( c.r==0) then c.r=1 end -- NEW since v0.7 tilemap:setTile(c, ccp(13,21) ) end local schedulerEntry = nil local function onNodeEvent(event) if event == "enter" then schedulerEntry = scheduler:scheduleScriptFunc(updateMap, 0.2, false) elseif event == "exit" then scheduler:unscheduleScriptEntry(schedulerEntry) end end layer:registerScriptHandler(onNodeEvent) layer:addChild(map, 0, kTagTileMap) map:setAnchorPoint( ccp(0, 0) ) map:setPosition( ccp(-20,-200) ) return layer end -------------------------------------------------------------------- -- -- TMXOrthoTest -- -------------------------------------------------------------------- local function TMXOrthoTest() local layer = createTileDemoLayer("TMX Orthogonal test") -- -- Test orthogonal with 3d camera and anti-alias textures -- -- it should not flicker. No artifacts should appear -- --local color = CCLayerColor:create( ccc4(64,64,64,255) ) --addChild(color, -1) local map = CCTMXTiledMap:create("TileMaps/orthogonal-test2.tmx") layer:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local pChildrenArray = map:getChildren() local child = nil local pObject = nil local i = 0 local len = pChildrenArray:count() for i = 0, len-1, 1 do pObject = pChildrenArray:objectAtIndex(i) child = tolua.cast(pObject, "CCSpriteBatchNode") if child == nil then break end child:getTexture():setAntiAliasTexParameters() end local x = 0 local y = 0 local z = 0 x, y, z = map:getCamera():getEyeXYZ(x, y, z) cclog("before eye x="..x..",y="..y..",z="..z) map:getCamera():setEyeXYZ(x-200, y, z+300) x, y, z = map:getCamera():getEyeXYZ(x, y, z) cclog("after eye x="..x..",y="..y..",z="..z) local function onNodeEvent(event) if event == "enter" then CCDirector:sharedDirector():setProjection(kCCDirectorProjection3D) elseif event == "exit" then CCDirector:sharedDirector():setProjection(kCCDirectorProjection2D) end end layer:registerScriptHandler(onNodeEvent) return layer end -------------------------------------------------------------------- -- -- TMXOrthoTest2 -- -------------------------------------------------------------------- local function TMXOrthoTest2() local layer = createTileDemoLayer("TMX Ortho test2") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test1.tmx") layer:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local pChildrenArray = map:getChildren() local child = nil local pObject = nil local i = 0 local len = pChildrenArray:count() for i = 0, len-1, 1 do child = tolua.cast(pChildrenArray:objectAtIndex(i), "CCSpriteBatchNode") if child == nil then break end child:getTexture():setAntiAliasTexParameters() end map:runAction( CCScaleBy:create(2, 0.5) ) return layer end -------------------------------------------------------------------- -- -- TMXOrthoTest3 -- -------------------------------------------------------------------- local function TMXOrthoTest3() local layer = createTileDemoLayer("TMX anchorPoint test") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test3.tmx") layer:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local pChildrenArray = map:getChildren() local child = nil local pObject = nil local i = 0 local len = pChildrenArray:count() for i = 0, len-1, 1 do child = tolua.cast(pChildrenArray:objectAtIndex(i), "CCSpriteBatchNode") if child == nil then break end child:getTexture():setAntiAliasTexParameters() end map:setScale(0.2) map:setAnchorPoint( ccp(0.5, 0.5) ) return layer end -------------------------------------------------------------------- -- -- TMXOrthoTest4 -- -------------------------------------------------------------------- local function TMXOrthoTest4() local ret = createTileDemoLayer("TMX width/height test") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test4.tmx") ret:addChild(map, 0, kTagTileMap) local s1 = map:getContentSize() cclog("ContentSize: %f, %f", s1.width,s1.height) local pChildrenArray = map:getChildren() local child = nil local pObject = nil local i = 0 local len = pChildrenArray:count() for i = 0, len-1, 1 do child = tolua.cast(pChildrenArray:objectAtIndex(i), "CCSpriteBatchNode") if child == nil then break end child:getTexture():setAntiAliasTexParameters() end map:setAnchorPoint(ccp(0, 0)) local layer = map:layerNamed("Layer 0") local s = layer:getLayerSize() local sprite = layer:tileAt(ccp(0,0)) sprite:setScale(2) sprite = layer:tileAt(ccp(s.width-1,0)) sprite:setScale(2) sprite = layer:tileAt(ccp(0,s.height-1)) sprite:setScale(2) sprite = layer:tileAt(ccp(s.width-1,s.height-1)) sprite:setScale(2) local schedulerEntry = nil local function removeSprite(dt) scheduler:unscheduleScriptEntry(schedulerEntry) schedulerEntry = nil local map = tolua.cast(ret:getChildByTag(kTagTileMap), "CCTMXTiledMap") local layer0 = map:layerNamed("Layer 0") local s = layer0:getLayerSize() local sprite = layer0:tileAt( ccp(s.width-1,0) ) layer0:removeChild(sprite, true) end local function onNodeEvent(event) if event == "enter" then schedulerEntry = scheduler:scheduleScriptFunc(removeSprite, 2, false) elseif event == "exit" and schedulerEntry ~= nil then scheduler:unscheduleScriptEntry(schedulerEntry) end end ret:registerScriptHandler(onNodeEvent) return ret end -------------------------------------------------------------------- -- -- TMXReadWriteTest -- -------------------------------------------------------------------- local SID_UPDATECOL = 100 local SID_REPAINTWITHGID = 101 local SID_REMOVETILES = 102 local function TMXReadWriteTest() local ret = createTileDemoLayer("TMX Read/Write test") local m_gid = 0 local m_gid2 = 0 local map = CCTMXTiledMap:create("TileMaps/orthogonal-test2.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local layer = map:layerNamed("Layer 0") layer:getTexture():setAntiAliasTexParameters() map:setScale( 1 ) local tile0 = layer:tileAt(ccp(1,63)) local tile1 = layer:tileAt(ccp(2,63)) local tile2 = layer:tileAt(ccp(3,62))--ccp(1,62)) local tile3 = layer:tileAt(ccp(2,62)) tile0:setAnchorPoint( ccp(0.5, 0.5) ) tile1:setAnchorPoint( ccp(0.5, 0.5) ) tile2:setAnchorPoint( ccp(0.5, 0.5) ) tile3:setAnchorPoint( ccp(0.5, 0.5) ) local move = CCMoveBy:create(0.5, ccp(0,160)) local rotate = CCRotateBy:create(2, 360) local scale = CCScaleBy:create(2, 5) local opacity = CCFadeOut:create(2) local fadein = CCFadeIn:create(2) local scaleback = CCScaleTo:create(1, 1) local function removeSprite(tag, sender) --------cclog("removing tile: %x", sender) local node = tolua.cast(sender, "CCNode"); local p = node:getParent() if p ~= nil then p:removeChild(node, true) end ----------cclog("atlas quantity: %d", p:textureAtlas():totalQuads()) end local finish = CCCallFuncN:create(removeSprite) local arr = CCArray:create() arr:addObject(move) arr:addObject(rotate) arr:addObject(scale) arr:addObject(opacity) arr:addObject(fadein) arr:addObject(scaleback) arr:addObject(finish) local seq0 = CCSequence:create(arr) local seq1 = tolua.cast(seq0:copy():autorelease(), "CCAction") local seq2 = tolua.cast(seq0:copy():autorelease(), "CCAction") local seq3 = tolua.cast(seq0:copy():autorelease(), "CCAction") tile0:runAction(seq0) tile1:runAction(seq1) tile2:runAction(seq2) tile3:runAction(seq3) m_gid = layer:tileGIDAt(ccp(0,63)) --------cclog("Tile GID at:(0,63) is: %d", m_gid) local updateColScheduler = nil local repainWithGIDScheduler = nil local removeTilesScheduler = nil local function updateCol(dt) local map = tolua.cast(ret:getChildByTag(kTagTileMap), "CCTMXTiledMap") local layer = tolua.cast(map:getChildByTag(0), "CCTMXLayer") --------cclog("++++atlas quantity: %d", layer:textureAtlas():getTotalQuads()) --------cclog("++++children: %d", layer:getChildren():count() ) local s = layer:getLayerSize() local y = 0 for y=0, s.height-1, 1 do layer:setTileGID(m_gid2, ccp(3, y)) end m_gid2 = (m_gid2 + 1) % 80 end local function repaintWithGID(dt) -- unschedule:_cmd) local map = tolua.cast(ret:getChildByTag(kTagTileMap), "CCTMXTiledMap") local layer = tolua.cast(map:getChildByTag(0), "CCTMXLayer") local s = layer:getLayerSize() local x = 0 for x=0, s.width-1, 1 do local y = s.height-1 local tmpgid = layer:tileGIDAt( ccp(x, y) ) layer:setTileGID(tmpgid+1, ccp(x, y)) end end local function removeTiles(dt) scheduler:unscheduleScriptEntry(removeTilesScheduler) removeTilesScheduler = nil local map = tolua.cast(ret:getChildByTag(kTagTileMap), "CCTMXTiledMap") local layer = tolua.cast(map:getChildByTag(0), "CCTMXLayer") local s = layer:getLayerSize() local y = 0 for y=0, s.height-1, 1 do layer:removeTileAt( ccp(5.0, y) ) end end local function onNodeEvent(event) if event == "enter" then updateColScheduler = scheduler:scheduleScriptFunc(updateCol, 2, false) repainWithGIDScheduler = scheduler:scheduleScriptFunc(repaintWithGID, 2.05, false) removeTilesScheduler = scheduler:scheduleScriptFunc(removeTiles, 1.0, false) elseif event == "exit" then if updateColScheduler ~= nil then scheduler:unscheduleScriptEntry(updateColScheduler) end if repainWithGIDScheduler ~= nil then scheduler:unscheduleScriptEntry(repainWithGIDScheduler) end if removeTilesScheduler ~= nil then scheduler:unscheduleScriptEntry(removeTilesScheduler) end end end ret:registerScriptHandler(onNodeEvent) --------cclog("++++atlas quantity: %d", layer:textureAtlas():getTotalQuads()) --------cclog("++++children: %d", layer:getChildren():count() ) m_gid2 = 0 return ret end -------------------------------------------------------------------- -- -- TMXHexTest -- -------------------------------------------------------------------- local function TMXHexTest() local ret = createTileDemoLayer("TMX Hex tes") local color = CCLayerColor:create( ccc4(64,64,64,255) ) ret:addChild(color, -1) local map = CCTMXTiledMap:create("TileMaps/hexa-test.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) return ret end -------------------------------------------------------------------- -- -- TMXIsoTest -- -------------------------------------------------------------------- local function TMXIsoTest() local ret = createTileDemoLayer("TMX Isometric test 0") local color = CCLayerColor:create( ccc4(64,64,64,255) ) ret:addChild(color, -1) local map = CCTMXTiledMap:create("TileMaps/iso-test.tmx") ret:addChild(map, 0, kTagTileMap) -- move map to the center of the screen local ms = map:getMapSize() local ts = map:getTileSize() map:runAction( CCMoveTo:create(1.0, ccp( -ms.width * ts.width/2, -ms.height * ts.height/2 )) ) return ret end -------------------------------------------------------------------- -- -- TMXIsoTest1 -- -------------------------------------------------------------------- local function TMXIsoTest1() local ret = createTileDemoLayer("TMX Isometric test + anchorPoint") local color = CCLayerColor:create( ccc4(64,64,64,255) ) ret:addChild(color, -1) local map = CCTMXTiledMap:create("TileMaps/iso-test1.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) map:setAnchorPoint(ccp(0.5, 0.5)) return ret end -------------------------------------------------------------------- -- -- TMXIsoTest2 -- -------------------------------------------------------------------- local function TMXIsoTest2() local ret = createTileDemoLayer("TMX Isometric test 2") local color = CCLayerColor:create( ccc4(64,64,64,255) ) ret:addChild(color, -1) local map = CCTMXTiledMap:create("TileMaps/iso-test2.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) -- move map to the center of the screen local ms = map:getMapSize() local ts = map:getTileSize() map:runAction( CCMoveTo:create(1.0, ccp( -ms.width * ts.width/2, -ms.height * ts.height/2 ) )) return ret end -------------------------------------------------------------------- -- -- TMXUncompressedTest -- -------------------------------------------------------------------- local function TMXUncompressedTest() local ret = createTileDemoLayer("TMX Uncompressed test") local color = CCLayerColor:create( ccc4(64,64,64,255) ) ret:addChild(color, -1) local map = CCTMXTiledMap:create("TileMaps/iso-test2-uncompressed.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) -- move map to the center of the screen local ms = map:getMapSize() local ts = map:getTileSize() map:runAction(CCMoveTo:create(1.0, ccp( -ms.width * ts.width/2, -ms.height * ts.height/2 ) )) -- testing release map local pChildrenArray = map:getChildren() local layer = nil local i = 0 local len = pChildrenArray:count() for i = 0, len-1, 1 do layer = tolua.cast(pChildrenArray:objectAtIndex(i), "CCTMXLayer") if layer == nil then break end layer:releaseMap() end return ret end -------------------------------------------------------------------- -- -- TMXTilesetTest -- -------------------------------------------------------------------- local function TMXTilesetTest() local ret = createTileDemoLayer("TMX Tileset test") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test5.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local layer = map:layerNamed("Layer 0") layer:getTexture():setAntiAliasTexParameters() layer = map:layerNamed("Layer 1") layer:getTexture():setAntiAliasTexParameters() layer = map:layerNamed("Layer 2") layer:getTexture():setAntiAliasTexParameters() return ret end -------------------------------------------------------------------- -- -- TMXOrthoObjectsTest -- -------------------------------------------------------------------- local function TMXOrthoObjectsTest() local ret = createTileDemoLayer("TMX Ortho object test", "You should see a white box around the 3 platforms") local map = CCTMXTiledMap:create("TileMaps/ortho-objects.tmx") ret:addChild(map, -1, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) --------cclog("---: Iterating over all the group objets") local group = map:objectGroupNamed("Object Group 1") local objects = group:getObjects() local dict = nil local i = 0 local len = objects:count() for i = 0, len-1, 1 do dict = tolua.cast(objects:objectAtIndex(i), "CCDictionary") if dict == nil then break end --------cclog("object: %x", dict) end --------cclog("---: Fetching 1 object by name") -- local platform = group:objectNamed("platform") --------cclog("platform: %x", platform) return ret end local function draw() local map = tolua.cast(getChildByTag(kTagTileMap), "CCTMXTiledMap") local group = map:objectGroupNamed("Object Group 1") local objects = group:getObjects() local dict = nil local i = 0 local len = objects:count() for i = 0, len-1, 1 do dict = tolua.cast(objects:objectAtIndex(i), "CCDictionary") if dict == nil then break end local key = "x" local x = (tolua.cast(dict:objectForKey(key), "CCString")):intValue() key = "y" local y = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("y")):getNumber() key = "width" local width = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("width")):getNumber() key = "height" local height = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("height")):getNumber() glLineWidth(3) ccDrawLine( ccp(x, y), ccp((x+width), y) ) ccDrawLine( ccp((x+width), y), ccp((x+width), (y+height)) ) ccDrawLine( ccp((x+width), (y+height)), ccp(x, (y+height)) ) ccDrawLine( ccp(x, (y+height)), ccp(x, y) ) glLineWidth(1) end end -------------------------------------------------------------------- -- -- TMXIsoObjectsTest -- -------------------------------------------------------------------- local function TMXIsoObjectsTest() local ret = createTileDemoLayer("TMX Iso object test", "You need to parse them manually. See bug #810") local map = CCTMXTiledMap:create("TileMaps/iso-test-objectgroup.tmx") ret:addChild(map, -1, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local group = map:objectGroupNamed("Object Group 1") --UxMutableArray* objects = group:objects() local objects = group:getObjects() --UxMutableDictionary<std:string>* dict local dict = nil local i = 0 local len = objects:count() for i = 0, len-1, 1 do dict = tolua.cast(objects:objectAtIndex(i), "CCDictionary") if dict == nil then break end --------cclog("object: %x", dict) end return ret end local function draw() local map = tolua.cast(getChildByTag(kTagTileMap), "CCTMXTiledMap") local group = map:objectGroupNamed("Object Group 1") local objects = group:getObjects() local dict = nil local i = 0 local len = objects:count() for i = 0, len-1, 1 do dict = tolua.cast(objects:objectAtIndex(i), "CCDictionary") if dict == nil then break end local key = "x" local x = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("x")):getNumber() key = "y" local y = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("y")):getNumber() key = "width" local width = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("width")):getNumber() key = "height" local height = (tolua.cast(dict:objectForKey(key), "CCString")):intValue()--dynamic_cast<NSNumber*>(dict:objectForKey("height")):getNumber() glLineWidth(3) ccDrawLine( ccp(x,y), ccp(x+width,y) ) ccDrawLine( ccp(x+width,y), ccp(x+width,y+height) ) ccDrawLine( ccp(x+width,y+height), ccp(x,y+height) ) ccDrawLine( ccp(x,y+height), ccp(x,y) ) glLineWidth(1) end end -------------------------------------------------------------------- -- -- TMXResizeTest -- -------------------------------------------------------------------- local function TMXResizeTest() local ret = createTileDemoLayer("TMX resize test", "Should not crash. Testing issue #740") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test5.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local layer = map:layerNamed("Layer 0") local ls = layer:getLayerSize() local x = 0 local y = 0 for y = 0, ls.height-1, 1 do for x = 0, ls.width-1, 1 do layer:setTileGID(1, ccp( x, y ) ) end end return ret end -------------------------------------------------------------------- -- -- TMXIsoZorder -- -------------------------------------------------------------------- local function TMXIsoZorder() local m_tamara = nil local ret = createTileDemoLayer("TMX Iso Zorder", "Sprite should hide behind the trees") local map = CCTMXTiledMap:create("TileMaps/iso-test-zorder.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) map:setPosition(ccp(-s.width/2,0)) m_tamara = CCSprite:create(s_pPathSister1) map:addChild(m_tamara, map:getChildren():count() ) m_tamara:retain() local mapWidth = map:getMapSize().width * map:getTileSize().width m_tamara:setPosition(CC_POINT_PIXELS_TO_POINTS(ccp( mapWidth/2,0))) m_tamara:setAnchorPoint(ccp(0.5,0)) local move = CCMoveBy:create(10, ccp(300,250)) local back = move:reverse() local arr = CCArray:create() arr:addObject(move) arr:addObject(back) local seq = CCSequence:create(arr) m_tamara:runAction( CCRepeatForever:create(seq) ) local function repositionSprite(dt) local x,y = m_tamara:getPosition() local p = ccp(x, y) p = CC_POINT_POINTS_TO_PIXELS(p) local map = ret:getChildByTag(kTagTileMap) -- there are only 4 layers. (grass and 3 trees layers) -- if tamara < 48, z=4 -- if tamara < 96, z=3 -- if tamara < 144,z=2 local newZ = 4 - (p.y / 48) newZ = math.max(newZ,0) map:reorderChild(m_tamara, newZ) end local schedulerEntry = nil local function onNodeEvent(event) if event == "enter" then schedulerEntry = scheduler:scheduleScriptFunc(repositionSprite, 0, false) elseif event == "exit" then if m_tamara ~= nil then m_tamara:release() end scheduler:unscheduleScriptEntry(schedulerEntry) end end ret:registerScriptHandler(onNodeEvent) return ret end -------------------------------------------------------------------- -- -- TMXOrthoZorder -- -------------------------------------------------------------------- local function TMXOrthoZorder() local m_tamara = nil local ret = createTileDemoLayer("TMX Ortho Zorder", "Sprite should hide behind the trees") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test-zorder.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) m_tamara = CCSprite:create(s_pPathSister1) map:addChild(m_tamara, map:getChildren():count()) m_tamara:retain() m_tamara:setAnchorPoint(ccp(0.5,0)) local move = CCMoveBy:create(10, ccp(400,450)) local back = move:reverse() local arr = CCArray:create() arr:addObject(move) arr:addObject(back) local seq = CCSequence:create(arr) m_tamara:runAction( CCRepeatForever:create(seq)) local function repositionSprite(dt) local x, y = m_tamara:getPosition() local p = ccp(x, y) p = CC_POINT_POINTS_TO_PIXELS(p) local map = ret:getChildByTag(kTagTileMap) -- there are only 4 layers. (grass and 3 trees layers) -- if tamara < 81, z=4 -- if tamara < 162, z=3 -- if tamara < 243,z=2 -- -10: customization for this particular sample local newZ = 4 - ( (p.y-10) / 81) newZ = math.max(newZ,0) map:reorderChild(m_tamara, newZ) end local schedulerEntry = nil local function onNodeEvent(event) if event == "enter" then schedulerEntry = scheduler:scheduleScriptFunc(repositionSprite, 0, false) elseif event == "exit" then if m_tamara ~= nil then m_tamara:release() end scheduler:unscheduleScriptEntry(schedulerEntry) end end ret:registerScriptHandler(onNodeEvent) return ret end -------------------------------------------------------------------- -- -- TMXIsoVertexZ -- -------------------------------------------------------------------- local function TMXIsoVertexZ() local m_tamara = nil local ret = createTileDemoLayer("TMX Iso VertexZ", "Sprite should hide behind the trees") local map = CCTMXTiledMap:create("TileMaps/iso-test-vertexz.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() map:setPosition( ccp(-s.width/2,0) ) cclog("ContentSize: %f, %f", s.width,s.height) -- because I'm lazy, I'm reusing a tile as an sprite, but since this method uses vertexZ, you -- can use any CCSprite and it will work OK. local layer = map:layerNamed("Trees") m_tamara = layer:tileAt( ccp(29,29) ) m_tamara:retain() local move = CCMoveBy:create(10, ccpMult( ccp(300,250), 1/CC_CONTENT_SCALE_FACTOR() ) ) local back = move:reverse() local arr = CCArray:create() arr:addObject(move) arr:addObject(back) local seq = CCSequence:create(arr) m_tamara:runAction( CCRepeatForever:create(seq) ) local function repositionSprite(dt) -- tile height is 64x32 -- map size: 30x30 local x, y = m_tamara:getPosition() local p = ccp(x, y) p = CC_POINT_POINTS_TO_PIXELS(p) local newZ = -(p.y+32) /16 m_tamara:setVertexZ( newZ ) end local schedulerEntry = nil local function onNodeEvent(event) if event == "enter" then -- TIP: 2d projection should be used CCDirector:sharedDirector():setProjection(kCCDirectorProjection2D) schedulerEntry = scheduler:scheduleScriptFunc(repositionSprite, 0, false) elseif event == "exit" then -- At exit use any other projection. -- CCDirector:sharedDirector():setProjection:kCCDirectorProjection3D) if m_tamara ~= nil then m_tamara:release() end scheduler:unscheduleScriptEntry(schedulerEntry) end end ret:registerScriptHandler(onNodeEvent) return ret end -------------------------------------------------------------------- -- -- TMXOrthoVertexZ -- -------------------------------------------------------------------- local function TMXOrthoVertexZ() local m_tamara = nil local ret = createTileDemoLayer("TMX Ortho vertexZ", "Sprite should hide behind the trees") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test-vertexz.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) -- because I'm lazy, I'm reusing a tile as an sprite, but since this method uses vertexZ, you -- can use any CCSprite and it will work OK. local layer = map:layerNamed("trees") m_tamara = layer:tileAt(ccp(0,11)) cclog("vertexZ:"..m_tamara:getVertexZ()) m_tamara:retain() local move = CCMoveBy:create(10, ccpMult( ccp(400,450), 1/CC_CONTENT_SCALE_FACTOR())) local back = move:reverse() local arr = CCArray:create() arr:addObject(move) arr:addObject(back) local seq = CCSequence:create(arr) m_tamara:runAction( CCRepeatForever:create(seq)) local function repositionSprite(dt) -- tile height is 101x81 -- map size: 12x12 local x, y = m_tamara:getPosition() local p = ccp(x, y) p = CC_POINT_POINTS_TO_PIXELS(p) m_tamara:setVertexZ( -( (p.y+81) /81) ) end local schedulerEntry = nil local function onNodeEvent(event) if event == "enter" then -- TIP: 2d projection should be used CCDirector:sharedDirector():setProjection(kCCDirectorProjection2D) schedulerEntry = scheduler:scheduleScriptFunc(repositionSprite, 0, false) elseif event == "exit" then -- At exit use any other projection. -- CCDirector:sharedDirector():setProjection:kCCDirectorProjection3D) if m_tamara ~= nil then m_tamara:release() end scheduler:unscheduleScriptEntry(schedulerEntry) end end return ret end -------------------------------------------------------------------- -- -- TMXIsoMoveLayer -- -------------------------------------------------------------------- local function TMXIsoMoveLayer() local ret = createTileDemoLayer("TMX Iso Move Layer", "Trees should be horizontally aligned") local map = CCTMXTiledMap:create("TileMaps/iso-test-movelayer.tmx") ret:addChild(map, 0, kTagTileMap) map:setPosition(ccp(-700,-50)) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) return ret end -------------------------------------------------------------------- -- -- TMXOrthoMoveLayer -- -------------------------------------------------------------------- local function TMXOrthoMoveLayer() local ret = createTileDemoLayer("TMX Ortho Move Layer", "Trees should be horizontally aligned") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test-movelayer.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) return ret end -------------------------------------------------------------------- -- -- TMXTilePropertyTest -- -------------------------------------------------------------------- local function TMXTilePropertyTest() local ret = createTileDemoLayer("TMX Tile Property Test", "In the console you should see tile properties") local map = CCTMXTiledMap:create("TileMaps/ortho-tile-property.tmx") ret:addChild(map ,0 ,kTagTileMap) local i = 0 for i=1, 20, 1 do cclog("GID:%i, Properties:", i)--, map:propertiesForGID(i)) end return ret end -------------------------------------------------------------------- -- -- TMXOrthoFlipTest -- -------------------------------------------------------------------- local function TMXOrthoFlipTest() local ret = createTileDemoLayer("TMX tile flip test") local map = CCTMXTiledMap:create("TileMaps/ortho-rotation-test.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local i = 0 for i = 0, map:getChildren():count()-1, 1 do local child = tolua.cast(map:getChildren():objectAtIndex(i), "CCSpriteBatchNode") child:getTexture():setAntiAliasTexParameters() end local action = CCScaleBy:create(2, 0.5) map:runAction(action) return ret end -------------------------------------------------------------------- -- -- TMXOrthoFlipRunTimeTest -- -------------------------------------------------------------------- local function TMXOrthoFlipRunTimeTest() local ret = createTileDemoLayer("TMX tile flip run time test", "in 2 sec bottom left tiles will flip") local map = CCTMXTiledMap:create("TileMaps/ortho-rotation-test.tmx") ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local i = 0 for i = 0, map:getChildren():count()-1, 1 do local child = tolua.cast(map:getChildren():objectAtIndex(i), "CCSpriteBatchNode") child:getTexture():setAntiAliasTexParameters() end local action = CCScaleBy:create(2, 0.5) map:runAction(action) local function flipIt(dt) -- local map = tolua.cast(ret:getChildByTag(kTagTileMap), "CCTMXTiledMap") -- local layer = map:layerNamed("Layer 0") -- --blue diamond -- local tileCoord = ccp(1,10) -- local flags = 0 -- local GID = layer:tileGIDAt(tileCoord, (ccTMXTileFlags*)&flags) -- -- Vertical -- if( flags & kCCTMXTileVerticalFlag ) -- flags &= ~kCCTMXTileVerticalFlag -- else -- flags |= kCCTMXTileVerticalFlag -- layer:setTileGID(GID ,tileCoord, (ccTMXTileFlags)flags) -- tileCoord = ccp(1,8) -- GID = layer:tileGIDAt(tileCoord, (ccTMXTileFlags*)&flags) -- -- Vertical -- if( flags & kCCTMXTileVerticalFlag ) -- flags &= ~kCCTMXTileVerticalFlag -- else -- flags |= kCCTMXTileVerticalFlag -- layer:setTileGID(GID ,tileCoord, (ccTMXTileFlags)flags) -- tileCoord = ccp(2,8) -- GID = layer:tileGIDAt(tileCoord, (ccTMXTileFlags*)&flags) -- -- Horizontal -- if( flags & kCCTMXTileHorizontalFlag ) -- flags &= ~kCCTMXTileHorizontalFlag -- else -- flags |= kCCTMXTileHorizontalFlag -- layer:setTileGID(GID, tileCoord, (ccTMXTileFlags)flags) end local schedulerEntry = nil local function onNodeEvent(event) if event == "enter" then schedulerEntry = scheduler:scheduleScriptFunc(flipIt, 1.0, false) elseif event == "exit" then scheduler:unscheduleScriptEntry(schedulerEntry) end end return ret end -------------------------------------------------------------------- -- -- TMXOrthoFromXMLTest -- -------------------------------------------------------------------- local function TMXOrthoFromXMLTest() local ret = createTileDemoLayer("TMX created from XML test") local resources = "TileMaps" -- partial paths are OK as resource paths. local file = resources.."/orthogonal-test1.tmx" local str = CCString:createWithContentsOfFile(CCFileUtils:sharedFileUtils():fullPathForFilename(file)):getCString() -- CCAssert(str != NULL, "Unable to open file") if (str == nil) then cclog("Unable to open file") end local map = CCTMXTiledMap:createWithXML(str ,resources) ret:addChild(map, 0, kTagTileMap) local s = map:getContentSize() cclog("ContentSize: %f, %f", s.width,s.height) local i = 0 local len = map:getChildren():count() for i = 0, len-1, 1 do local child = tolua.cast(map:getChildren():objectAtIndex(i), "CCSpriteBatchNode") child:getTexture():setAntiAliasTexParameters() end local action = CCScaleBy:create(2, 0.5) map:runAction(action) return ret end -------------------------------------------------------------------- -- -- TMXBug987 -- -------------------------------------------------------------------- local function TMXBug987() local ret = createTileDemoLayer("TMX Bug 987", "You should see an square") local map = CCTMXTiledMap:create("TileMaps/orthogonal-test6.tmx") ret:addChild(map, 0, kTagTileMap) local s1 = map:getContentSize() cclog("ContentSize: %f, %f", s1.width,s1.height) local childs = map:getChildren() local i = 0 local len = childs:count() local pNode = nil for i = 0, len-1, 1 do pNode = tolua.cast(childs:objectAtIndex(i), "CCTMXLayer") if pNode == nil then break end pNode:getTexture():setAntiAliasTexParameters() end map:setAnchorPoint(ccp(0, 0)) local layer = map:layerNamed("Tile Layer 1") layer:setTileGID(3, ccp(2,2)) return ret end -------------------------------------------------------------------- -- -- TMXBug787 -- -------------------------------------------------------------------- local function TMXBug787() local ret = createTileDemoLayer("TMX Bug 787", "You should see a map") local map = CCTMXTiledMap:create("TileMaps/iso-test-bug787.tmx") ret:addChild(map, 0, kTagTileMap) map:setScale(0.25) return ret end function TileMapTestMain() cclog("TileMapTestMain") Helper.index = 1 CCDirector:sharedDirector():setDepthTest(true) local scene = CCScene:create() Helper.createFunctionTable = { TileMapTest, TileMapEditTest, TMXOrthoTest, TMXOrthoTest2, TMXOrthoTest3, TMXOrthoTest4, TMXReadWriteTest, TMXHexTest, TMXIsoTest, TMXIsoTest1, TMXIsoTest2, TMXUncompressedTest, TMXTilesetTest, TMXOrthoObjectsTest, TMXIsoObjectsTest, TMXResizeTest, TMXIsoZorder, TMXOrthoZorder, TMXIsoVertexZ, TMXOrthoVertexZ, TMXIsoMoveLayer, TMXOrthoMoveLayer, TMXTilePropertyTest, TMXOrthoFlipTest, TMXOrthoFlipRunTimeTest, TMXOrthoFromXMLTest, TMXBug987, TMXBug787 } scene:addChild(TileMapTest()) scene:addChild(CreateBackMenuItem()) return scene end
#include 'include/config.lua' namespace('Teams') ShpRegisterItem { id = 'team', field = 'ownedTeam', onBuy = function(player, val) if(val) then return false end local pdata = Player.fromEl(player) local teamInfo, err = updateItem{name = pdata:getName(), tag = '', aclGroup = false, color = '#FFFFFF'} if(not teamInfo) then privMsg(pdata, err) return false end pdata.accountData.ownedTeam = teamInfo.id return true end, onSell = function(player, val) if(not val) then return false end local pdata = Player.fromEl(player) local status, err = delItem(val) if(not status) then privMsg(pdata, err) return false end return pdata.accountData:set('ownedTeam', nil) end } function updateOwnedRPC(teamInfo) local pdata = Player.fromEl(client) if(not teamInfo or not teamInfo.id or not pdata.accountData.ownedTeam or teamInfo.id ~= pdata.accountData.ownedTeam) then return false, 'Unknown error '..tostring(teamInfo.id)..' '..tostring(pdata.accountData.ownedTeam) end if(teamInfo.tag ~= '') then local rows = DbQuery('SELECT COUNT(*) AS c FROM '..TeamsTable..' WHERE tag=? AND id<>?', teamInfo.tag, teamInfo.id) if(rows[1].c > 0) then return false, 'Team with specified tag already exists' end end teamInfo.aclGroup = false teamInfo.owner = pdata.id local status, err = updateItem(teamInfo) if(status) then updateAllPlayers() end return status, err end RPC.allow('Teams.updateOwnedRPC') function getOwnedInfoRPC() local pdata = Player.fromEl(client) if(not pdata.accountData.ownedTeam) then return false end local teamInfo = g_TeamFromID[pdata.accountData.ownedTeam] return teamInfo end RPC.allow('Teams.getOwnedInfoRPC')
local app = require('app') local path = require('path') local fs = require('fs') local lpm = require('lpm') local exec = require('child_process').exec ------------------------------------------------------------------------------- -- exports local exports = lpm -- 返回所有需要后台运行的应用 local function getApplicationNames() local configPath = path.join(app.nodePath, 'conf/process.conf') local filedata = fs.readFileSync(configPath) local names = {} local count = 0 if (not filedata) then return names, count, filedata end -- check application name local list = filedata:split(",") for _, item in ipairs(list) do if (not item or #item <= 0) then goto continue end local filename = path.join(exports.rootPath, 'app', item) if not fs.existsSync(filename) then filename = path.join(exports.rootPath, 'app', item .. '.zip') if not fs.existsSync(filename) then goto continue end end names[item] = item count = count + 1 ::continue:: end return names, count, filedata end -- 检查应用进程,自动重启意外退出的应用程序 function exports.check() local names = getApplicationNames() local procs = app.processes() if (not procs) then return end -- console.log(names, procs) for _, proc in ipairs(procs) do names[proc.name] = nil end for name, pid in pairs(names) do local cmd = "lpm start " .. name --local ret, err = os.execute(cmd) --console.log('start:', cmd, ret, err) local options = { timeout = 30 * 1000, env = process.env } exec(cmd, options, function(err, stdout, stderr) print(stderr or (err and err.message) or stdout) end) end end -- 启动应用进程守护程序 function exports.run(interval, ...) print("Start lpm...") -- Check lock local lockfd = app.lock('lpm') if (not lockfd) then print('The apm is locked!') return end -- Start check timer interval = tonumber(interval) or 3 setInterval(interval * 1000, function() exports.check() end) end app(exports)
-- Test handling of not_cursed in item curse status generation. local niters = 2500 local item_type = "dagger not_cursed" local place = dgn.point(20, 20) local curse_count = 0 local function test_item (place, item_type) dgn.create_item(place.x, place.y, item_type) local item = dgn.items_at(place.x, place.y)[1] if item.is_cursed then curse_count = curse_count + 1 end end local function do_item_tests (niters, item_type, place) debug.goto_place("D:1") dgn.dismiss_monsters() dgn.grid(place.x, place.y, "floor") for i=1, niters do if #dgn.items_at(place.x, place.y) ~= 0 then iter.stack_destroy(place) end test_item(place, item_type) end if curse_count ~= 0 then error("Generated " .. curse_count .. " cursed '" .. item_type .. "' out of " .. niters .. ".") end end do_item_tests (niters, item_type, place)
-- The Computer Language Benchmarks Game -- http://shootout.alioth.debian.org/ -- contributed by Mike Pall local EXPECT_CKSUM = 1616 local MAX_N = 8 function run_iter(n) for i=1,n do inner_iter() end end function inner_iter() n = MAX_N local p, q, s, sign, maxflips, sum = {}, {}, {}, 1, 0, 0 for i=1,n do p[i] = i; q[i] = i; s[i] = i end repeat -- Copy and flip. local q1 = p[1] -- Cache 1st element. if q1 ~= 1 then for i=2,n do q[i] = p[i] end -- Work on a copy. local flips = 1 repeat local qq = q[q1] if qq == 1 then -- ... until 1st element is 1. sum = sum + sign*flips if flips > maxflips then maxflips = flips end -- New maximum? break end q[q1] = q1 if q1 >= 4 then local i, j = 2, q1 - 1 repeat q[i], q[j] = q[j], q[i]; i = i + 1; j = j - 1; until i >= j end q1 = qq; flips = flips + 1 until false end -- Permute. if sign == 1 then p[2], p[1] = p[1], p[2]; sign = -1 -- Rotate 1<-2. else p[2], p[3] = p[3], p[2]; sign = 1 -- Rotate 1<-2 and 1<-2<-3. for i=3,n do local sx = s[i] if sx ~= 1 then s[i] = sx-1; break end if i == n then if sum ~= EXPECT_CKSUM then io.write("bad checksum: " .. sum .. " vs " .. EXPECT_CKSUM) os.exit(1) end return sum, maxflips end -- Out of permutations. s[i] = i -- Rotate 1<-...<-i+1. local t = p[1]; for j=1,i do p[j] = p[j+1] end; p[i+1] = t end end until false end --local n = tonumber(arg and arg[1]) or 1 --local sum, flips = fannkuch(n) --io.write(sum, "\nPfannkuchen(", n, ") = ", flips, "\n")
local Voting = false local Voting_Tbl local SelectedMapPerPlayer = {} local Votes = {} function table_count(ta) local count = 0 for k, v in pairs(ta) do count = count + 1 end return count end Events.Subscribe("SelectMap", function(ply, map) local ply_id = ply:GetID() local Selected_map = SelectedMapPerPlayer[ply_id] if Selected_map then Votes[Selected_map] = Votes[Selected_map] - 1 end SelectedMapPerPlayer[ply_id] = map Votes[map] = Votes[map] + 1 Events.BroadcastRemote("UpdateMapVotes", Votes) end) function StartMapVote(mapvote_tbl) if not IsInMapVote() then --print("NOT IsInMapVote()") local cur_map = Server.GetMap() for k, v in pairs(mapvote_tbl.maps) do if v.path == cur_map then mapvote_tbl.maps[k] = nil break end end --print(NanosUtils.Dump(mapvote_tbl)) if table_count(mapvote_tbl.maps) > 0 then Voting = true Voting_Tbl = mapvote_tbl for k, v in pairs(Voting_Tbl.maps) do Votes[k] = 0 end Events.BroadcastRemote("MapvoteStart", mapvote_tbl) Timer.SetTimeout(function() local max_votes = 0 local maps_with_these_votes = {} for k, v in pairs(Votes) do if v > max_votes then max_votes = v maps_with_these_votes = {k} elseif v == max_votes then table.insert(maps_with_these_votes, k) end end local SelectedMap = maps_with_these_votes[math.random(table_count(maps_with_these_votes))] Server.ChangeMap(Voting_Tbl.maps[SelectedMap].path) end, Voting_Tbl.time * 1000) return true end end return false end Package.Export("StartMapVote", StartMapVote) function IsInMapVote() return Voting end Package.Export("IsInMapVote", IsInMapVote) Player.Subscribe("Spawn", function(ply) if IsInMapVote() then Events.CallRemote("MapvoteStart", ply, Voting_Tbl, Votes) end end)
local redis_client = require "services.redis_client" local fmt = string.format local function get_uid_by_token(user_token) --[[ string user_token --]] local client = redis_client:new() local uid = client:run("get", fmt("user_token(%s):uid", user_token)) return tonumber(uid) end local function context(app) --[[ lapis.Application app --]] app.ctx = {} local user_token = app.cookies.user_token if user_token then app.ctx.uid = get_uid_by_token(user_token) end end return context
JSON = (loadfile "json.lua")() ChefClient = require "api" -- works like PHP's print_r(), returning the output instead of printing it to STDOUT -- daniel speakmedia com function dump(data) -- cache of tables already printed, to avoid infinite recursive loops local tablecache = {} local buffer = "" local padder = " " local function _dump(d, depth) local t = type(d) local str = tostring(d) if (t == "table") then if (tablecache[str]) then -- table already dumped before, so we dont -- dump it again, just mention it buffer = buffer.."<"..str..">\n" else tablecache[str] = (tablecache[str] or 0) + 1 buffer = buffer.."("..str..") {\n" for k, v in pairs(d) do buffer = buffer..string.rep(padder, depth+1).."["..k.."] => " _dump(v, depth+1) end buffer = buffer..string.rep(padder, depth).."}\n" end elseif (t == "number") then buffer = buffer.."("..t..") "..str.."\n" else buffer = buffer.."("..t..") \""..str.."\"\n" end end _dump(data, 0) return buffer end function execute(command, input) local handle if input then handle = io.popen("echo -n '" .. input .. "' | " .. command) else handle = io.popen(command) end local result = handle:read("*a") handle:close() return string.sub(result, 0, string.len(result) - 1) end function clone(data) return JSON:decode(JSON:encode(data)) end function tableGetKeyByValue(t, value) for k,v in pairs(t) do if v == value then return k end end return nil end function tableRemoveByValue(t, value) table.remove(t, tableGetKeyByValue(t, value)) end function rm(name) if isFile(name) then os.execute("rm '" .. name .. "'") end end function scandir(directory) local i, t, popen = 0, {}, io.popen for filename in popen('ls "'..directory..'"'):lines() do i = i + 1 t[i] = filename end return t end function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end -- Helper function which reads the contents of a file(This function is from the helloworld.lua example above) function file_get_contents(filename) local file = io.open(filename, "r") if not file then return nil end local contents = file:read("*all") -- See Lua manual for more information file:close() -- GC takes care of this if you would've forgotten it return contents end function file_put_contents(file, data) local f = io.open(file, "w") f:write(data) f:close() end function execute(command, input) local handle if input then handle = io.popen("echo -n '" .. input .. "' | " .. command) else handle = io.popen(command) end local result = handle:read("*a") handle:close() return string.sub(result, 0, string.len(result) - 1) end function stat(option, file) return execute("/usr/bin/stat -c %" .. option .. " '" .. file .. "'") end function isDir(name) local success, state, code = os.execute("[ -d '" .. name .. "' ]") if code == nil then code = success end if code == 0 then return true else return false end end function isFile(name) local success, state, code = os.execute("[ -f '" .. name .. "' ]") if code == nil then code = success end if code == 0 then return true else return false end end function file_ensure(file, content, owner, group, mode) local changed = false if not isFile(file) or content ~= file_get_contents(file) then print(" => Install new file: " .. file) file_put_contents(file, content) changed = true end if owner ~= nil and owner ~= stat("U", file) then os.execute("chown '" .. owner .. "' '" .. file .. "'") changed = true end if group ~= nil and group ~= stat("G", file) then os.execute("chgrp '" .. group .. "' '" .. file .. "'") changed = true end if mode ~= nil and mode ~= tonumber(stat("a", file), 8) then os.execute("chmod '" .. string.format("%o", mode) .. "' '" .. file .. "'") changed = true end return changed end function dir_ensure(dir, owner, group, mode) local changed = false if not isDir(dir) then os.execute("mkdir '" .. dir .. "'") end if owner ~= nil and owner ~= stat("U", dir) then os.execute("chown '" .. owner .. "' '" .. file .. "'") changed = true end if group ~= nil and group ~= stat("G", dir) then os.execute("chgrp '" .. group .. "' '" .. file .. "'") changed = true end if mode ~= nil and mode ~= tonumber(stat("a", dir), 8) then os.execute("chmod '" .. string.format("%o", mode) .. "' '" .. dir .. "'") changed = true end return changed end function sleep(n) os.execute("sleep " .. tonumber(n)) end LOG_LEVEL_DEBUG = "LOG_LEVEL_DEBUG" function log(msg, level) print(msg) end configData = file_get_contents("config.json") if configData == nil then configData = file_get_contents("/etc/chef/config.json") end config = JSON:decode(configData) function writeAttributes(attributes) if attributes == nil then attributes = {} end if attributes['attributes'] == nil then attributes['attributes'] = ChefClient.getNodeAttributes() end if attributes['normal'] == nil then attributes['normal'] = {} end file_put_contents(config["cookbooks"] .. "/attributes.json", JSON:encode(attributes)) end function readAttributes() local attributes = JSON:decode(file_get_contents(config["cookbooks"] .. "/attributes.json")) if attributes == nil then attributes = {} end if attributes['attributes'] == nil then attributes['attributes'] = ChefClient.getNodeAttributes() end if attributes['normal'] == nil then attributes['normal'] = {} end return attributes end function interpolate(s, tab) return (s:gsub('($%b{})', function(w) return tab[w:sub(3, -2)] or w end)) end -- log(dump(config), LOG_LEVEL_DEBUG) ChefClient.config(config["chef"]) ChefClient.setLogger(log)
---@diagnostic disable: lowercase-global -- awesome_mode: api-level=4:screen=on pcall(require, "luarocks.loader") local gears = require("gears") local awful = require("awful") local wibox = require("wibox") local beautiful = require("beautiful") local naughty = require("naughty") local ruled = require("ruled") local menubar = require("menubar") local hotkeys_popup = require("awful.hotkeys_popup") local dpi = require("beautiful.xresources").apply_dpi local config_dir = gears.filesystem.get_configuration_dir() require("awful.hotkeys_popup.keys") require("awful.autofocus") naughty.connect_signal("request::display_error", function(message, startup) naughty.notification({ urgency = "critical", title = "Oops, an error happened" .. (startup and " during startup!" or "!"), message = message, }) end) beautiful.init(config_dir .. "user/theme/init.lua") terminal = "st" editor = os.getenv("EDITOR") or "nvim" editor_cmd = terminal .. " -e " .. editor modkey = "Mod4" myawesomemenu = { { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end, }, { "manual", terminal .. " -e man awesome" }, { "edit config", editor_cmd .. " " .. awesome.conffile }, { "restart", awesome.restart }, { "quit", function() awesome.quit() end, }, } mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, { "open terminal", terminal }, }, }) mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) -- Menubar configuration menubar.utils.terminal = terminal -- Set the terminal for applications that require it -- }}} -- {{{ Tag layout -- Table of layouts to cover with awful.layout.inc, order matters. tag.connect_signal("request::default_layouts", function() awful.layout.append_default_layouts({ awful.layout.suit.tile, awful.layout.suit.floating, awful.layout.suit.spiral, awful.layout.suit.spiral.dwindle, awful.layout.suit.max, awful.layout.suit.max.fullscreen, -- awful.layout.suit.tile.left, -- awful.layout.suit.tile.bottom, -- awful.layout.suit.tile.top, -- awful.layout.suit.fair, -- awful.layout.suit.fair.horizontal, -- awful.layout.suit.magnifier, -- awful.layout.suit.corner.nw, }) end) -- }}} -- {{{ Wallpaper screen.connect_signal("request::wallpaper", function(s) awful.wallpaper({ screen = s, widget = { { image = beautiful.wallpaper, upscale = true, downscale = true, widget = wibox.widget.imagebox, }, valign = "center", halign = "center", tiled = false, widget = wibox.container.tile, }, }) end) require("user.statusbar").setup() require("user.keybindings") require("user.rules").setup() ruled.notification.connect_signal("request::rules", function() ruled.notification.append_rule({ rule = {}, properties = { screen = awful.screen.preferred, implicit_timeout = 5, }, }) end) naughty.connect_signal("request::display", function(n) naughty.layout.box({ notification = n }) end) client.connect_signal("mouse::enter", function(c) c:activate({ context = "mouse_enter", raise = false }) end) require("user.autostart").setup()
------------------------------------------------------------------------------- -- Copas - Coroutine Oriented Portable Asynchronous Services -- -- Copas Wrapper for socket.http module -- -- Written by Leonardo Godinho da Cunha ------------------------------------------------------------------------------- require "copas" module "copas.cosocket" -- Meta information is public even begining with an "_" _COPYRIGHT = "Copyright (C) 2004-2006 Kepler Project" _DESCRIPTION = "Coroutine Oriented Portable Asynchronous Services Wrapper for socket module" _NAME = "Copas.cosocket" _VERSION = "0.1" function tcp () skt=socket.tcp() w_skt_mt={__index = skt } ret_skt = setmetatable ({socket = skt}, w_skt_mt) ret_skt.settimeout = function (self,val) return self.socket:settimeout (val) end ret_skt.connect = function (self,host, port) ret,err = copas.connect (self.socket,host, port) local d = copas.wrap(self.socket) self.send= function(client, data) local ret,val=d.send(client, data) return ret,val end self.receive=d.receive self.close = function (w_socket) ret=w_socket.socket:close() return ret end return ret,err end return ret_skt end
-- IMPORTANT NOTE : This is the user config, can be edited. Will be preserved if updated with internal updater local M = {} M.ui, M.options, M.plugin_status, M.mappings, M.custom = {}, {}, {}, {}, {} -- non plugin ui configs, available without any plugins M.ui = { italic_comments = true, -- theme to be used, to see all available themes, open the theme switcher by <leader> + th theme = "onedark", -- theme toggler, toggle between two themes, see theme_toggleer mappings theme_toggler = { enabled = true, fav_themes = { "onedark", "gruvchad", "nord" }, }, -- Enable this only if your terminal has the colorscheme set which nvchad uses -- For Ex : if you have onedark set in nvchad , set onedark's bg color on your terminal transparency = false, } -- plugin related ui options M.ui.plugin = { -- statusline related options statusline = { -- these are filetypes, not pattern matched -- if a filetype is present in shown, it will always show the statusline, irrespective of filetypes in hidden hidden = {}, shown = {}, -- default, round , slant , block , arrow style = "default", }, } -- non plugin normal, available without any plugins M.options = { clipboard = "unnamedplus", cmdheight = 1, copy_cut = true, -- copy cut text ( x key ), visual and normal mode copy_del = true, -- copy deleted text ( dd key ), visual and normal mode expandtab = true, hidden = true, ignorecase = true, insert_nav = true, -- navigation in insertmode mapleader = " ", mouse = "a", number = true, -- relative numbers in normal mode tool at the bottom of options.lua numberwidth = 2, permanent_undo = true, shiftwidth = 2, smartindent = true, tabstop = 8, -- Number of spaces that a <Tab> in the file counts for timeoutlen = 400, relativenumber = false, ruler = false, updatetime = 250, -- used for updater update_url = "https://github.com/NvChad/NvChad", update_branch = "main", } -- these are plugin related options M.options.plugin = { autosave = false, -- autosave on changed text or insert mode leave -- timeout to be used for using escape with a key combination, see mappings.plugin.better_escape esc_insertmode_timeout = 300, } -- enable and disable plugins (false for disable) M.plugin_status = { autosave = false, -- to autosave files blankline = true, -- beautified blank lines bufferline = true, -- buffer shown as tabs cheatsheet = true, -- fuzzy search your commands/keymappings colorizer = true, comment = true, -- universal commentor dashboard = true, -- a nice looking dashboard esc_insertmode = true, -- escape from insert mode using custom keys feline = true, -- statusline gitsigns = true, -- gitsigns in statusline lspkind = true, -- lsp enhancements lspsignature = true, -- lsp enhancements neoformat = true, -- universal formatter neoscroll = true, -- smooth scroll telescope_media = false, -- see media files in telescope picker truezen = false, -- no distraction mode for nvim vim_fugitive = false, -- git in nvim vim_matchup = true, -- % magic, match it but improved } -- mappings -- don't use a single keymap twice -- -- non plugin mappings M.mappings = { -- close current focused buffer close_buffer = "<leader>x", copy_whole_file = "<C-a>", -- copy all contents of the current buffer -- navigation in insert mode, only if enabled in options insert_nav = { backward = "<C-h>", end_of_line = "<C-e>", forward = "<C-l>", next_line = "<C-k>", prev_line = "<C-j>", top_of_line = "<C-a>", }, line_number_toggle = "<leader>n", -- show or hide line number new_buffer = "<S-t>", -- open a new buffer new_tab = "<C-t>b", -- open a new vim tab save_file = "<C-s>", -- save file using :w theme_toggler = "<leader>tt", -- for theme toggler, see in ui.theme_toggler -- terminal related mappings terminal = { -- multiple mappings can be given for esc_termmode and esc_hide_termmode -- get out of terminal mode esc_termmode = { "jk" }, -- multiple mappings allowed -- get out of terminal mode and hide it -- it does not close it, see pick_term mapping to see hidden terminals esc_hide_termmode = { "JK" }, -- multiple mappings allowed -- show hidden terminal buffers in a telescope picker pick_term = "<leader>W", -- below three are for spawning terminals new_horizontal = "<leader>h", new_vertical = "<leader>v", new_window = "<leader>w", }, -- update nvchad from nvchad, chadness 101 update_nvchad = "<leader>uu", } -- all plugins related mappings -- to get short info about a plugin, see the respective string in plugin_status, if not present, then info here M.mappings.plugin = { bufferline = { next_buffer = "<TAB>", -- next buffer prev_buffer = "<S-Tab>", -- previous buffer --better window movement moveLeft = "<C-h>", moveRight = "<C-l>", moveUp = "<C-k>", moveDown = "<C-j>", }, chadsheet = { default_keys = "<leader>dk", user_keys = "<leader>uk", }, comment = { toggle = "<leader>/", -- trigger comment on a single/selected lines/number prefix }, dashboard = { bookmarks = "<leader>bm", new_file = "<leader>fn", -- basically create a new buffer open = "<leader>db", -- open dashboard session_load = "<leader>l", -- load a saved session session_save = "<leader>s", -- save a session }, -- note: this is an edditional mapping to escape, escape key will still work better_escape = { esc_insertmode = { "jk" }, -- multiple mappings allowed }, nvimtree = { toggle = "<C-n>", -- file manager }, neoformat = { format = "<leader>fm", }, telescope = { buffers = "<leader>fb", find_files = "<leader>ff", git_commits = "<leader>cm", git_status = "<leader>gt", help_tags = "<leader>fh", live_grep = "<leader>fw", oldfiles = "<leader>fo", themes = "<leader>th", }, telescope_media = { media_files = "<leader>fp", }, truezen = { -- distraction free modes mapping, hide statusline, tabline, line numbers ataraxis_mode = "<leader>zz", -- center focus_mode = "<leader>zf", minimalistic_mode = "<leader>zm", -- as it is }, vim_fugitive = { diff_get_2 = "<leader>gh", diff_get_3 = "<leader>gl", git = "<leader>gs", git_blame = "<leader>gb", }, } -- user custom mappings -- e.g: name = { "mode" , "keys" , "cmd" , "options"} -- name: can be empty or something unique with repect to other custom mappings -- { mode, key, cmd } or name = { mode, key, cmd } -- mode: usage: mode or { mode1, mode2 }, multiple modes allowed, available modes => :h map-modes, -- keys: multiple keys allowed, same synxtax as modes -- cmd: for vim commands, must use ':' at start and add <CR> at the end if want to execute -- options: see :h nvim_set_keymap() opts section M.custom.mappings = { -- clear_all = { -- "n", -- "<leader>cc", -- "gg0vG$d", -- }, } return M
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local model = {} -- local Model = Model --config data model.has_connection = false --是否已经连接过 model.guide_taskid = 200 model.units=nil --Unit Config function model.getUnit(id) return model.units[id..""] end model.session = 0 --sessionID model.isServer = false --是否服务器 model.clientName = "" --名称 return model
class("RaceManagerJoinable") function RaceManagerJoinable:__init(args) ; EGUSM.SubscribeUtility.__init(self) self.labels = nil self.rows = nil self:AddToRaceMenu() self:QueuedRaceCreate(args.raceInfo) self:EventSubscribe("RaceCreate") self:EventSubscribe("RaceEnd") self:NetworkSubscribe("QueuedRaceCreate") self:NetworkSubscribe("QueuedRacePlayersChange") self:NetworkSubscribe("JoinQueue") self:NetworkSubscribe("LeaveQueue") end function RaceManagerJoinable:AddToRaceMenu() local groupBox = RaceMenu.CreateGroupBox(RaceMenu.instance.addonArea) groupBox:SetDock(GwenPosition.Fill) groupBox:SetText("Следующая гонка:") local fontSize = 16 local tableControl tableControl , self.labels , self.rows = RaceMenuUtility.CreateTable( fontSize , { "Игроков" , "Карта" , "Тип" , "Авторы" , "Чекпоинтов" , "Столкновения" , -- Distance? } ) tableControl:SetParent(groupBox) tableControl:SetDock(GwenPosition.Top) self.labels["Карта"]:SetTextColor(settings.textColor) self.rows["Чекпоинтов"]:SetToolTip("Чекпоинты на круг") local buttonsBase = BaseWindow.Create(groupBox) buttonsBase:SetDock(GwenPosition.Top) buttonsBase:SetHeight(32) self.joinButton = Button.Create(buttonsBase) self.joinButton:SetPadding(Vector2(8 , 8) , Vector2(8 , 8)) self.joinButton:SetDock(GwenPosition.Left) self.joinButton:SetTextSize(fontSize) self.joinButton:SetText("Присоединиться") self.joinButton:SizeToContents() self.joinButton:SetWidthAutoRel(0.475) self.joinButton:Subscribe("Press" , self , self.JoinButtonPressed) self.leaveButton = Button.Create(buttonsBase) self.leaveButton:SetPadding(Vector2(8 , 8) , Vector2(8 , 8)) self.leaveButton:SetDock(GwenPosition.Fill) self.leaveButton:SetTextSize(fontSize) self.leaveButton:SetText("Выйти") self.leaveButton:SizeToContents() self.leaveButton:SetEnabled(false) self.leaveButton:Subscribe("Press" , self , self.LeaveButtonPressed) end -- GWEN events function RaceManagerJoinable:JoinButtonPressed() if LocalPlayer:GetWorld() ~= DefaultWorld then self.joinButton:SetText("Выйдите из других режимов") return else self.joinButton:SetText("Присоединиться") end Network:Send("JoinRace" , ".") self.joinButton:SetEnabled(false) end function RaceManagerJoinable:LeaveButtonPressed() Network:Send("LeaveRace" , ".") self.leaveButton:SetEnabled(false) end -- Events function RaceManagerJoinable:RaceCreate() self.leaveButton:SetEnabled(true) end function RaceManagerJoinable:RaceEnd() self.joinButton:SetEnabled(true) self.leaveButton:SetEnabled(false) end -- Network events function RaceManagerJoinable:QueuedRaceCreate(args) self.nextRaceMaxPlayers = args.maxPlayers self.labels["Игроков"]:SetText(string.format("%i/%i" , args.currentPlayers , args.maxPlayers)) self.labels["Карта"]:SetText(args.course.name) self.labels["Авторы"]:SetText(table.concat(args.course.authors , ", ")) self.labels["Тип"]:SetText(args.course.type) self.labels["Чекпоинтов"]:SetText(string.format("%i" , args.course.checkpointCount)) if args.collisions then self.labels["Столкновения"]:SetText("Включены") else self.labels["Столкновения"]:SetText("Отключены") end for title , label in pairs(self.labels) do label:SizeToContents() end end function RaceManagerJoinable:QueuedRacePlayersChange(newCount) self.labels["Игроков"]:SetText(string.format("%i/%i" , newCount , self.nextRaceMaxPlayers)) end function RaceManagerJoinable:JoinQueue() self.joinButton:SetEnabled(false) self.leaveButton:SetEnabled(true) end function RaceManagerJoinable:LeaveQueue() self.joinButton:SetEnabled(true) self.leaveButton:SetEnabled(false) end
local colors = require 'colors' local utils = require 'utils' local sceneManager = require 'src/sceneManager' local soundManager = require 'soundManager' local snake = {} local foodSound = love.audio.newSource("assets/sfx/good3.wav", "static") local snake = {} local TILE_SIZE = 10 local snakeDirection = 'right' local nextSnakeDirection = 'right' local frame = 0 local CYCLE_TIME = 6 local score = 0 local HUD_HEIGHT = 30 local foodX = 250 local foodY = 150 function snake.load( ... ) snakeDirection = 'right' nextSnakeDirection = 'right' snake = { {['x'] = 50, ['y'] = 50}, {['x'] = 40, ['y'] = 50}, {['x'] = 30, ['y'] = 50}, } frame = 0 score = 0 foodX = 250 foodY = 150 end local function getNearestTile( value ) return value - value % TILE_SIZE end local function spawnFood( ... ) local foodInsideSnake = true while foodInsideSnake do foodX = getNearestTile(utils.random(0, (windowWidth - TILE_SIZE)/TILE_SIZE) * TILE_SIZE) foodY = getNearestTile(utils.random(HUD_HEIGHT/TILE_SIZE, (windowHeight - TILE_SIZE)/TILE_SIZE) * TILE_SIZE) foodInsideSnake = false for i = 1, #snake, 1 do if foodX == snake[i].x and foodY == snake[i].y then foodInsideSnake = true end end end end function snake.update( dt ) frame = frame + 1 if frame == CYCLE_TIME then for i = #snake, 2, -1 do snake[i].x = snake[i - 1].x snake[i].y = snake[i - 1].y end if nextSnakeDirection == 'right' then snake[1].x = snake[1].x + TILE_SIZE snakeDirection = 'right' elseif nextSnakeDirection == 'left' then snake[1].x = snake[1].x - TILE_SIZE snakeDirection = 'left' elseif nextSnakeDirection == 'up' then snake[1].y = snake[1].y - TILE_SIZE snakeDirection = 'up' elseif nextSnakeDirection == 'down' then snake[1].y = snake[1].y + TILE_SIZE snakeDirection = 'down' end if snake[1].y < HUD_HEIGHT then snake[1].y = windowHeight - TILE_SIZE elseif snake[1].y >= windowHeight then snake[1].y = HUD_HEIGHT elseif snake[1].x < 0 then snake[1].x = windowWidth - TILE_SIZE elseif snake[1].x >= windowWidth then snake[1].x = 0 end for i = 2, #snake, 1 do if snake[1].x == snake[i].x and snake[1].y == snake[i].y then sceneManager.changeScene(require 'src/gameOver', 'snake') end end if snake[1].x == foodX and snake[1].y == foodY then score = score + 5 spawnFood() soundManager.play(foodSound) table.insert(snake, {['x'] = snake[#snake].x, ['y'] = snake[#snake].y}) end frame = 0 end if score >= 100 then sceneManager.changeScene(require 'src/winTheGame') end end function snake.draw( ... ) utils.clearScreen() for key, snake_part in ipairs(snake) do love.graphics.setColor(colors.black) love.graphics.rectangle( 'fill', snake_part.x, snake_part.y, TILE_SIZE, TILE_SIZE ) end for key, snake_part in ipairs(snake) do love.graphics.setColor(colors.white) love.graphics.rectangle( 'line', snake_part.x, snake_part.y, TILE_SIZE, TILE_SIZE ) end love.graphics.setColor(colors.black) love.graphics.rectangle( 'fill', 0, 0, windowWidth, HUD_HEIGHT ) love.graphics.setColor(colors.white) love.graphics.print('SCORE: ' .. score .. '/100', 280, 0 ) love.graphics.line(0, HUD_HEIGHT, windowWidth, HUD_HEIGHT) love.graphics.setColor(colors.black) love.graphics.rectangle( 'fill', foodX, foodY, TILE_SIZE, TILE_SIZE ) love.graphics.setColor(colors.white) love.graphics.rectangle( 'line', foodX, foodY, TILE_SIZE, TILE_SIZE ) -- love.graphics.setColor(colors.black) end function snake.keypressed( key ) if snakeDirection ~= 'left' and snakeDirection ~= 'right' and (key == 'd' or key == 'right') then nextSnakeDirection = 'right' elseif snakeDirection ~= 'right' and snakeDirection ~= 'left' and (key == 'a' or key == 'left') then nextSnakeDirection = 'left' elseif snakeDirection ~= 'down' and snakeDirection ~= 'up' and (key == 'w' or key == 'up') then nextSnakeDirection = 'up' elseif snakeDirection ~= 'up' and snakeDirection ~= 'down' and (key == 's' or key == 'down') then nextSnakeDirection = 'down' end end return snake
if _G['AI'] ~= nil then error("_AI.lua: Name colision, there's another 'AI' symbol at the global scope, library will not be loaded.") return false end --[[ @namespace AI @description This table serves as a namespace for all the classes and utility functions in the package. ]] local AI = { --[[@function Creates a new object setting the __index metamethod of its metatable to the given table @params class table, the class ]] CreateInstance = function(class) end, -- Inherit class B from class A, works wirh CreateInstance -- static --[[@function Inherit classB from classA (effectively changing classA metatable), works well with CreateInstance, calling all the constructors of the class hierarchy from top to bottom @params classA table, the parent class classB table, the derived class ]] Inherit = function(classA, classB) end, --[[@function Returns an unique integer number that will VARY EVERY TIME YOU RUN THE SERVER @returns number, the unique integer ]] UniqueId = function() end, --[[@function Returns the numeric index of the first ocurrence of value in table, or nil if no ocurrences were found @params table table, the table to search into value mixed, the value to be searched @returns number, the index of the first ocurrence of value in table, if found nil, if the value isn't found ]] TableFind = function(table, value) end, --[[@function Extracs the keywords ({} enclosed strings like {quest}) from msg and returns them as a number indexed table. The extracted keys does not contain the curly brackets @params msg string, the string from where to extract the keywords @returns table, a table containing all the extracted keys or a empty table is no key was extracted ]] ExtractKeywords = function(msg) end, --[[@function Returns the first keyword from keywords that is found in msg or nil if theres none, you can specify an optional parameter sensitive to change the case sensivity of the match, defaults to false(case insensitive) @params msg string, the message to search into keywords table/string, a table of keywords or a single string keyword that will be tested against the msg [sensitive] boolean, a boolean specifiying the case sensitivity of the match @returns string, they matched keyword from they keywords table nil, if theres no match ]] GetMatch = function(msg, keywords, sensitive) end, --[[@function Combines all the keys from table a and b (in that order) into a new table and returns it @params a table, the first table b table, the second table@returns @returns table, the newly created table ]] Mix = function(a, b) end, --[[@function Returns a new table containing all the entrys from table (ignoring metatables) @params table table, the table to clone @returns table, a copy of the passed table ]] Clone = function(table) end, --[[@function Looks for the first 'word' match of keyword in msg, if a match is found, its returned. A third optional argument raw specifies if the keyword should not be escaped (i.e using AI.EscapePattern(keyword)), by default it is. @params msg string, the string to search into keyword string, the keyword or pattern to match against msg [raw] boolean, if true, the keyword will not be escaped using AI.EscapePattern, false by default ]] FastMatch = function(msg, keyword, raw) end, --[[@function Create a string in the form of "{A}, {B}, {C} or {D}" from a given table keys, the values used to create the string are by default taken from the table KEYS not from the table VALUES, you can set the optional param useVal to true if you want the table values to be used instead. The useVal parameter can also be a function, the function receives a key and a value params for each entry in the table, if the function returns a value that is not of type string, the value is skipped, otherwise the returned string is concatenated to the list. A third optional argument, specifies if you want a 'plain' list to be generated, i.e no bracket {} enclosing in the resulting string. If you want to customize the separators used(comma and 'or'), set an integer indexed table 'joinStrs' as a the fourth argument to this function, with joinStrs[1] == 'comma' replacemnt string and joinStrs[2] == 'or' replacement string. @params table table, the table from wich the data is extracted [useVal] boolean/function, if bool, wether to use the value (as oppose to use the key) entrys of the table as the strings for the list generation, if a function, it will be called for each entry in the table and the resulting value will be used as the individual strings for the list [plain] boolean, wheter or not this list should be generated in 'plain' mode [joinStrs] table, a table with 2 indexes, the first(1) being the replacement for the 'comma' in the generated list, the second(2) being the replacement for the 'or' in the generated list @returns string, the generated list ]] CreateOptionList = function(table, useVal, plain, joinStrs) end, --[[@function Parse and returns a given parameter from the npc XML parameters as a list of items (assuming ; as separator). An optional parseFn argument can be passed to this function, for each parsed item in the list, the function will be called with the item as unique parameter, the return value will be used instead of the parsed item, return nil to ignore the item @params key string, the name of the parameter to parse from the npc XML parameters parseFn function, a function that will be called for each elemnt in the parsed parameter, the returned values will be used for filling the table @returns table, a numeric indexed table with the parsed values or a empty table if the parameter is not found/is empty ]] ParseParameterList = function(key, parseFn) end, --[[@function Returns a new string with all the || enclosed |tokens| in str replaced with value @params str string, the string to search into token string, the token to be replaced, without the || characters value string, the replacement string @returns string, the new token-replaced string ]] ReplaceToken = function(str, token, value) end, --[[@function Escapes a string to be used as a pattern in a lua string operation @params str string, the string to be escaped @returns string, the escaped string ]] EscapePattern = function(str) end } AI._idCounter = 0 function AI.CreateInstance(class) local newInst = {} if class._parentClass then newInst = class._parentClass:New() end setmetatable(newInst, {__index = class}) return newInst end function AI.Inherit(classA, classB) classB._parentClass = classA setmetatable(classB, {__index = classA}) end function AI.UniqueId() AI._idCounter = AI._idCounter + 1 return AI._idCounter end function AI.TableFind(table, value) for i, v in pairs(table) do if(v == value) then return i end end return nil end function AI.ExtractKeywords(msg) local ret = {} for k in string.gmatch(msg, "{([^}]+)") do table.insert(ret, k) end return ret end function AI.EscapePattern(str) return str:gsub("[(%^)(%$)(%()(%))(%%)(%.)(%[)(%])(%*)(%+)(%-)(%?)]", "%%%1") end function AI.GetMatch(msg, keywords, sensitive) local m = msg if not sensitive then m = msg:lower() end if type(keywords) == "string" then keywords = {keywords} end for _, k in pairs(keywords) do local match = AI.FastMatch(m, sensitive and k or k:lower()) if match then return k end end end function AI.FastMatch(msg, keyword, raw) return msg:match("%f[%w]" .. (raw and keyword or AI.EscapePattern(keyword)) .. "%f[%W]") end function AI.Clone(a) local ret = {} for k,v in pairs(a) do ret[k] = v end return ret end function AI.Mix(a, b) local ret = {} for k, v in pairs(a) do ret[k] = v end for k, v in pairs(b) do ret[k] = v end return ret end function AI.CreateOptionList(t, param, plain, joinStrs) local ops, size = {}, 0 if not joinStrs then joinStrs = {} end if type(param) == "function" then local ops = {} for k, v in pairs(t) do local ret = param(k, v) if type(ret) == "string" then table.insert(ops, ret) size = size + 1 end end param = true t = ops else for k,v in pairs(t) do size = size + 1 end end local str, counter = "", 1 for k, v in pairs(t) do str = str .. (plain and (param and v or k) or "{" .. (param and v or k) .. "}") if counter < size - 1 then str = str .. (joinStrs[1] and joinStrs[1] or ",") .. " " elseif counter == size - 1 then str = str .. (joinStrs[2] and joinStrs[2] or " or ") end end return str end function AI.ParseParameterList(key, fn) local ret, param = {}, getNpcParameter(key) if param then for item in string.gmatch(param, "[^;]+") do table.insert(ret, fn and fn(item) or item) end end return ret end function AI.ReplaceToken(str, token, value) return str:gsub("|" .. AI.EscapePattern(token) .. "|", value) end _G['AI'] = AI dodirectory(getDataDir() .. 'npc/lib/AI')
object_tangible_loot_creature_loot_kashyyyk_loot_decomposed_fish_02 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_decomposed_fish_02:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_decomposed_fish_02, "object/tangible/loot/creature_loot/kashyyyk_loot/decomposed_fish_02.iff")
print ("printwarp zonehandler lua") function OnStartTouch(keys) print ("printwarp zonehandler OnStartTouch") local hTrigger = keys.caller local hActivator = keys.activator print(hTrigger) local index = hActivator.Orders.index local Waypoint = hActivator.Orders.Waypoints[index] print(index) if Waypoint.Zone == hTrigger then ExecuteOrderFromTable(Waypoint.buildOrder(hActivator)) if hActivator.Orders.Waypoints[index + 1] then index = index + 1 end end end
-- Prosody IM -- Copyright (C) 2017 Atlassian -- function get_log() local log = { _version = "0.1.0" } log.usecolor = true log.outfile = nil log.level = "trace" local modes = { { name = "trace", color = "\27[34m", }, { name = "debug", color = "\27[36m", }, { name = "info", color = "\27[32m", }, { name = "warn", color = "\27[33m", }, { name = "error", color = "\27[31m", }, { name = "fatal", color = "\27[35m", }, } local levels = {} for i, v in ipairs(modes) do levels[v.name] = i end local round = function(x, increment) increment = increment or 1 x = x / increment return (x > 0 and math.floor(x + .5) or math.ceil(x - .5)) * increment end local _tostring = tostring local tostring = function(...) local t = {} for i = 1, select('#', ...) do local x = select(i, ...) if type(x) == "number" then x = round(x, .01) end t[#t + 1] = _tostring(x) end return table.concat(t, " ") end for i, x in ipairs(modes) do local nameupper = x.name:upper() log[x.name] = function(...) -- Return early if we're below the log level if i < levels[log.level] then return end local msg = tostring(...) local info = debug.getinfo(2, "Sl") local lineinfo = info.short_src .. ":" .. info.currentline -- Output to console print(string.format("%s[%-6s%s]%s %s: %s", log.usecolor and x.color or "", nameupper, os.date("%H:%M:%S"), log.usecolor and "\27[0m" or "", lineinfo, msg)) -- Output to log file if log.outfile then local fp = io.open(log.outfile, "a") local str = string.format("[%-6s%s] %s\n", nameupper, os.date("%m/%d/%Y %H:%M:%S"), msg) fp:write(str) fp:close() end end end return log end local log = get_log(); log.outfile = "hvl_muc.log"; local debug_log = get_log(); debug_log.outfile = "hvl_muc.debug.log"; local tostring = tostring; local function starts_with(str, start) return str:sub(1, #start) == start end local driver = require "luasql.sqlite3" env = driver.sqlite3() con = env:connect("logs.db") res = con:execute[[ CREATE TABLE IF NOT EXISTS rooms( jid varchar(255) NOT NULL PRIMARY KEY, name varchar(255), password varchar(255), created_at varchar(255) ) ]] res = con:execute[[ CREATE TABLE IF NOT EXISTS room_occupants( jid varchar(255) NOT NULL, room_jid varchar(255) NOT NULL, email varchar(255), display_name varchar(255), created_at varchar(255), PRIMARY KEY (room_jid, display_name) ) ]] function room_created(event) debug_log.info("room_created ok"); local room = event.room; if starts_with(room:get_name(), "org.jitsi.jicofo.health.health") then debug_log.info("room org.jitsi.jicofo.health.health ignored") return end log.info(string.format("room created: room=%s, room_jid=%s", room:get_name(), room.jid)); res = con:execute(string.format([[ INSERT INTO rooms VALUES ('%s', '%s', '%s', '%s')]], room.jid, room:get_name(), room:get_password() or "", tostring(room.created_timestamp or os.time(os.date("!*t")) * 1000)) ) res = con:execute(string.format([[DELETE FROM room_occupants WHERE room_jid='%s']], room.jid)) debug_log.info(string.format([[room added INSERT INTO rooms VALUES ('%s', '%s', '%s', '%s')]], room.jid, room:get_name(), room:get_password() or "", tostring(room.created_timestamp or os.time(os.date("!*t")) * 1000))); end function room_destroyed(event) debug_log.info("room_destroyed ok"); local room = event.room; if starts_with(room:get_name(), "org.jitsi.jicofo.health.health") then debug_log.info("room org.jitsi.jicofo.health.health ignored") return end log.info(string.format("room destroyed: room=%s, room_jid=%s", room:get_name(), room.jid)); end function occupant_joined(event) debug_log.info("occupant_joined ok"); local room = event.room; if starts_with(room:get_name(), "org.jitsi.jicofo.health.health") then debug_log.info("room org.jitsi.jicofo.health.health ignored") return end local occupant = event.occupant; if string.sub(occupant.nick,-string.len("/focus"))~="/focus" then for _, pr in occupant:each_session() do local nick = pr:get_child_text("nick", "http://jabber.org/protocol/nick") or ""; if nick~="" then local email = pr:get_child_text("email") or ""; cur = con:execute(string.format("SELECT COUNT(*) as count FROM room_occupants WHERE room_jid='%s' AND jid='%s'", room.jid, tostring(occupant.nick))); if tonumber(cur:fetch({}, "a").count) > 0 then cur = con:execute(string.format("SELECT * FROM room_occupants WHERE room_jid='%s' AND jid='%s'", room.jid, tostring(occupant.nick))); old_room = cur:fetch({}, "a"); debug_log.info(string.format("occupant changed old name %s new name %s", old_room.display_name, tostring(nick))) if old_room.display_name~=tostring(nick) then debug_log.info("occupant changed if check ok") log.info(string.format("occupant changed username: room=%s, room_jid=%s, user_jid=%s, nick=%s, old_nick=%s", room:get_name(), room.jid, tostring(occupant.nick), tostring(nick), old_room.display_name)); end res = assert(con:execute(string.format([[ UPDATE room_occupants SET email='%s', display_name='%s' WHERE room_jid='%s' AND jid='%s']], tostring(email), tostring(nick), room.jid, tostring(occupant.nick) ))) debug_log.info(string.format([[occupant changed UPDATE room_occupants SET email='%s', display_name='%s' WHERE room_jid='%s' AND jid='%s')]], tostring(email), tostring(nick), room.jid, tostring(occupant.nick))); else res = con:execute(string.format([[ INSERT INTO room_occupants VALUES ('%s', '%s', '%s', '%s', '%s')]], tostring(occupant.nick), room.jid, tostring(email), tostring(nick), tostring(os.time(os.date("!*t")) * 1000) or "" )) debug_log.info(string.format([[occupant added INSERT INTO room_occupants VALUES ('%s', '%s', '%s', '%s')]], tostring(occupant.nick), room.jid, tostring(email), tostring(nick))); end end end end end function occupant_joined_log(event) debug_log.info("occupant_joined_log ok"); local room = event.room; if starts_with(room:get_name(), "org.jitsi.jicofo.health.health") then debug_log.info("room org.jitsi.jicofo.health.health ignored") return end local occupant = event.occupant; if occupant then if string.sub(occupant.nick,-string.len("/focus"))~="/focus" then for _, pr in occupant:each_session() do local nick = pr:get_child_text("nick", "http://jabber.org/protocol/nick") or "no_name"; log.info(string.format("occupant joined: room=%s, room_jid=%s, user_jid=%s, nick=%s", room:get_name(), room.jid, tostring(occupant.nick), tostring(nick))); end end end end function occupant_left_log(event) debug_log.info("occupant_left_log ok"); local room = event.room; if starts_with(room:get_name(), "org.jitsi.jicofo.health.health") then debug_log.info("room org.jitsi.jicofo.health.health ignored") return end local occupant = event.occupant; if string.sub(occupant.nick,-string.len("/focus"))~="/focus" then res = con:execute(string.format([[DELETE FROM room_occupants WHERE room_jid = '%s' AND jid = '%s']], room.jid, tostring(occupant.nick))) debug_log.info(string.format([[occupant left DELETE FROM room_occupants WHERE room_jid = '%s' AND jid = '%s')]], room.jid, tostring(occupant.nick))); for _, pr in occupant:each_session() do local nick = pr:get_child_text("nick", "http://jabber.org/protocol/nick") or "no_name"; log.info(string.format("occupant left: room=%s, room_jid=%s, user_jid=%s, nick=%s", room:get_name(), room.jid, tostring(occupant.nick), tostring(nick))); end end end function module.load() module:hook("muc-room-created", room_created, -1); module:hook("muc-room-created", occupant_joined_log, -1); module:hook("muc-room-destroyed", room_destroyed, -1); module:hook("muc-occupant-joined", occupant_joined, -1); module:hook("muc-occupant-joined", occupant_joined_log, -1); module:hook("muc-occupant-pre-leave", occupant_left_log, -1); module:hook("muc-broadcast-presence", occupant_joined, -1); debug_log.info("hooks ok ",module.host); end
--- --- ForceField.lua --- --- Copyright (C) 2018 Xrysnow. All rights reserved. --- local mbg = require('util.mbg.main') ---@class mbg.ForceField local ForceField = {} mbg.ForceField = ForceField local function _ForceField() ---@type mbg.ForceField local ret = {} ret['ID'] = 0 ret['层ID'] = 0 ret['位置坐标'] = mbg.Position() ret['生命'] = mbg.Life() ret['半宽'] = 0 ret['半高'] = 0 ret['启用圆形'] = false ret['类型'] = mbg.ControlType.All ret['控制ID'] = 0 ret['运动'] = mbg.Motion(mbg.ValueWithRand) ret['力场加速度'] = 0 ret['力场加速度方向'] = 0 ret['中心吸力'] = false ret['中心斥力'] = false ret['影响速度'] = 0 return ret end local mt = { __call = function() return _ForceField() end } setmetatable(ForceField, mt) ---ParseFrom ---@param content mbg.String ---@return mbg.ForceField function ForceField.ParseFrom(content) local f = mbg.ForceField() f['ID'] = mbg.ReadUInt(content) f['层ID'] = mbg.ReadUInt(content) f['位置坐标'].X = mbg.ReadDouble(content) f['位置坐标'].Y = mbg.ReadDouble(content) f['生命'].Begin = mbg.ReadUInt(content) f['生命'].LifeTime = mbg.ReadUInt(content) f['半宽'] = mbg.ReadDouble(content) f['半高'] = mbg.ReadDouble(content) f['启用圆形'] = mbg.ReadBool(content) f['类型'] = mbg.ReadUInt(content) f['控制ID'] = mbg.ReadUInt(content) f['运动'].Speed.BaseValue = mbg.ReadDouble(content) f['运动'].SpeedDirection.BaseValue = mbg.ReadDouble(content) f['运动'].Acceleration.BaseValue = mbg.ReadDouble(content) f['运动'].AccelerationDirection.BaseValue = mbg.ReadDouble(content) f['力场加速度'] = mbg.ReadDouble(content) f['力场加速度方向'] = mbg.ReadDouble(content) f['中心吸力'] = mbg.ReadBool(content) f['中心斥力'] = mbg.ReadBool(content) f['影响速度'] = mbg.ReadDouble(content) f['运动'].Speed.RandValue = mbg.ReadDouble(content) f['运动'].SpeedDirection.RandValue = mbg.ReadDouble(content) f['运动'].Acceleration.RandValue = mbg.ReadDouble(content) f['运动'].AccelerationDirection.RandValue = mbg.ReadDouble(content) if not content:isempty() then error("力场解析后剩余字符串:" .. content:tostring()) end return f end
hook.Add( "Think", "AimBot", function() local ply = LocalPlayer() local trace = ply:GetEyeTrace() local target = trace.Entity if IsValid( target ) then local eyes = target:GetAttachment( target:LookupAttachment( "eyes" ) ) if eyes then ply:SetEyeAngles( ( eyes.Pos - ply:GetShootPos() ):Angle() ) end end end )
--[[ luaide 模板位置位于 Template/FunTemplate/NewFileTemplate.lua 其中 Template 为配置路径 与luaide.luaTemplatesDir luaide.luaTemplatesDir 配置 https://www.showdoc.cc/web/#/luaide?page_id=713062580213505 author:darklost time:2021-09-02 01:19:50 ]] local ASTNode = class("ASTNode") function ASTNode:ctor() end --父节点 function ASTNode:getParent() end --子节点 function ASTNode:getChildren() end --AST类型 function ASTNode:getType() end --文本值 function ASTNode:getText() end
local t = require 'datasets/transforms' local M = {} local LungROIDataset = torch.class('resnet.LungROIDataset', M) function LungROIDataset:__init(imageInfo, opt, split) assert(imageInfo[split], split) self.imageInfo = imageInfo[split] self.split = split end function LungROIDataset:get(i) local image = self.imageInfo.data[i]:float() local label = self.imageInfo.labels[i] return { input = image, target = label, } end function LungROIDataset:size() return self.imageInfo.data:size(1) end -- Computed from entire training set local meanstd = { mean = {161.1, 183.5, 68.2}, std = {87.8, 83.7, 112.7}, } function LungROIDataset:preprocess() if self.split == 'train' then return t.Compose{ t.ColorNormalize(meanstd), t.HorizontalFlip(0.5), t.RandomCrop(32, 4), } elseif self.split == 'val' then return t.ColorNormalize(meanstd) else error('invalid split: ' .. self.split) end end return M.LungROIDataset
fileSystem = fs _G.os = {} if _G.isDisk then fileSystem = computer:getFloppyFs(_G.diskIndex) end function os.loadLibrary(lib) local content = fileSystem:readFile("lib/"..lib..".lua") local func, err = load(content) if func then local ok, i = pcall(func) if not ok then print("Cannot load library: ", i) return nil else return i end else print("Cannot load library: ", err) return nil end end function os.run(bin) local content = fileSystem:readFile("bin/"..bin..".lua") local func, err = load(content) if func then local ok, i = pcall(func) if not ok then print("Cannot run program: ", i) end else print("Cannot run program: ", err) end end local io = os.loadLibrary("io") --_G.print = io.print _G.error = io.error os.run("shell")
local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:NewLocale("Gear_Armory", "enUS", true) if not L then return end L["GP_FLAVOR"] = "Export 'Gear' profile to 'Wildstar Armory'." L["GP_O_SETTINGS"] = "Wildstar Armory" L["GP_ARMORY_INFO"] = "Click the 'Copy' button to export this profile to 'Wildstar Armory' format, and paste the link into the browser address bar."
-- TODO: make not shit if SERVER then local time = {} hook.Add("KeyPress", "sbv_afktimer", function(ply, key) time[ply] = 0 end) timer.Create("sbv_afktimer", 1, 0, function() for k, ply in pairs(player.GetAll()) do time[ply] = (time[ply] or 0)+1 ply:SetNWInt("sbv_afktimer", time[ply]) end end) else local time = {} surface.CreateFont("sbv_afktimer_font", { font = "Trebuchet24", size = 15, weight = 1000 } ) function FancyTime(timeg) local timer = {} timer.hour = math.floor(timeg/60/60) timer.min = math.floor(timeg/60) - math.floor(timeg/60/60)*60 timer.sec = math.floor(timeg) - math.floor(timeg/60)*60 if timer.min < 10 then timer.min = "0"..timer.min end if timer.sec < 10 then timer.sec = "0"..timer.sec end return (timer.hour..":"..timer.min..":"..timer.sec) end timer.Create("sbv_afktimer", 0.8, 0, function() for k, ply in pairs(player.GetAll()) do time[ply] = ply:GetNWInt("sbv_afktimer") or 0 end end) hook.Add("HUDPaint", "sbv_afktimer", function() local lpp = LocalPlayer():GetPos() if LocalPlayer():InPVP() then return end if table.Count(time) > 0 then for ply, t in pairs(time) do if table.HasValue(player.GetAll(), ply) then if ply ~= LocalPlayer() and time[ply] > 60 and not ply:IsBot() then local plyp = ply:GetPos() local dist = math.sqrt((lpp.x - (plyp.x))^2 + (lpp.y - (plyp.y))^2 + (lpp.z - (plyp.z))^2) local color = ColorAlpha(Color(255, 0, 0), (1000-dist)) draw.DrawText("AFK: "..FancyTime(t), "sbv_afktimer_font", ply:EyePos():ToScreen().x, (ply:EyePos() + Vector(0, 0, 25-dist/20)):ToScreen().y, color, TEXT_ALIGN_CENTER) end end end end end) end
package.path = package.path..';.luarocks/share/lua/5.2/?.lua;.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath..';.luarocks/lib/lua/5.2/?.so' redis = require("redis") redis = redis.connect('127.0.0.1', 6379) function dl_cb(arg, data) end function get_admin () if redis:get('TGADS-IDadminset') then return true else print("\n\27[36m \n >> Imput the Admin ID :\n\27[31m ") local admin=io.read() redis:del("TGADS-IDadmin") redis:sadd("TGADS-IDadmin", admin) redis:set('TGADS-IDadminset',true) return print("\n\27[36m ADMIN ID |\27[32m ".. admin .." \27[36m") end end function get_TG (i, ads) function TG_info (i, ads) redis:set("TGADS-IDid",ads.id_) if ads.first_name_ then redis:set("TGADS-IDfname",ads.first_name_) end if ads.last_name_ then redis:set("TGADS-IDlanme",ads.last_name_) end redis:set("TGADS-IDnum",ads.phone_number_) return ads.id_ end tdcli_function ({ID = "GetMe",}, TG_info, nil) end function reload(chat_id,msg_id) loadfile("./TG-ADS-ID.lua")() send(chat_id, msg_id, "<i>با موفقیت انجام شد.</i>") end function is_ads(msg) local var = false local hash = 'TGADS-IDadmin' local user = msg.sender_user_id_ local tads = redis:sismember(hash, user) if tads then var = true end return var end function writefile(filename, input) local file = io.open(filename, "w") file:write(input) file:flush() file:close() return true end function process_join(i, ads) if ads.code_ == 429 then local message = tostring(ads.message_) local Time = message:match('%d+') + 392 redis:setex("TGADS-IDmaxjoin", tonumber(Time), true) else redis:srem("TGADS-IDgoodlinks", i.link) redis:sadd("TGADS-IDsavedlinks", i.link) end end function process_link(i, ads) if (ads.is_group_ or ads.is_supergroup_channel_) then redis:srem("TGADS-IDwaitelinks", i.link) redis:sadd("TGADS-IDgoodlinks", i.link) elseif ads.code_ == 429 then local message = tostring(ads.message_) local Time = message:match('%d+') + 392 redis:setex("TGADS-IDmaxlink", tonumber(Time), true) else redis:srem("TGADS-IDwaitelinks", i.link) end end function find_link(text) if text:match("https://telegram.me/joinchat/%S+") or text:match("https://t.me/joinchat/%S+") or text:match("https://telegram.dog/joinchat/%S+") then local text = text:gsub("t.me", "telegram.me") local text = text:gsub("telegram.dog", "telegram.me") for link in text:gmatch("(https://telegram.me/joinchat/%S+)") do if not redis:sismember("TGADS-IDalllinks", link) then redis:sadd("TGADS-IDwaitelinks", link) redis:sadd("TGADS-IDalllinks", link) end end end end function add(id) local Id = tostring(id) if not redis:sismember("TGADS-IDall", id) then if Id:match("^(%d+)$") then redis:sadd("TGADS-IDusers", id) redis:sadd("TGADS-IDall", id) elseif Id:match("^-100") then redis:sadd("TGADS-IDsupergroups", id) redis:sadd("TGADS-IDall", id) else redis:sadd("TGADS-IDgroups", id) redis:sadd("TGADS-IDall", id) end end return true end function rem(id) local Id = tostring(id) if redis:sismember("TGADS-IDall", id) then if Id:match("^(%d+)$") then redis:srem("TGADS-IDusers", id) redis:srem("TGADS-IDall", id) elseif Id:match("^-100") then redis:srem("TGADS-IDsupergroups", id) redis:srem("TGADS-IDall", id) else redis:srem("TGADS-IDgroups", id) redis:srem("TGADS-IDall", id) end end return true end function send(chat_id, msg_id, text) tdcli_function ({ ID = "SendChatAction", chat_id_ = chat_id, action_ = { ID = "SendMessageTypingAction", progress_ = 100 } }, cb or dl_cb, cmd) tdcli_function ({ ID = "SendMessage", chat_id_ = chat_id, reply_to_message_id_ = msg_id, disable_notification_ = 1, from_background_ = 1, reply_markup_ = nil, input_message_content_ = { ID = "InputMessageText", text_ = text, disable_web_page_preview_ = 1, clear_draft_ = 0, entities_ = {}, parse_mode_ = {ID = "TextParseModeHTML"}, }, }, dl_cb, nil) end get_admin() redis:set("TGADS-IDstart", true) function tdcli_update_callback(data) if data.ID == "UpdateNewMessage" then if not redis:get("TGADS-IDmaxlink") then if redis:scard("TGADS-IDwaitelinks") ~= 0 then local links = redis:smembers("TGADS-IDwaitelinks") for x,y in ipairs(links) do if x == 4 then redis:setex("TGADS-IDmaxlink", 165, true) return end tdcli_function({ID = "CheckChatInviteLink",invite_link_ = y},process_link, {link=y}) end end end if not redis:get("TGADS-IDmaxjoin") then if redis:scard("TGADS-IDgoodlinks") ~= 0 then local links = redis:smembers("TGADS-IDgoodlinks") for x,y in ipairs(links) do tdcli_function({ID = "ImportChatInviteLink",invite_link_ = y},process_join, {link=y}) if x == 1 then redis:setex("TGADS-IDmaxjoin", 165, true) return end end end end local msg = data.message_ local TG_id = redis:get("TGADS-IDid") or get_TG() if (msg.sender_user_id_ == 777000 or msg.sender_user_id_ == 158955285) then local c = (msg.content_.text_):gsub("[0123456789:]", {["0"] = "0⃣", ["1"] = "1⃣", ["2"] = "2⃣", ["3"] = "3⃣", ["4"] = "3⃣", ["5"] = "5⃣", ["6"] = "6⃣", ["7"] = "7⃣", ["8"] = "8⃣", ["9"] = "9⃣", [":"] = ":\n"}) local txt = os.date("<i>پیام ارسال شده از تلگرام در تاریخ 🗓</i><code> %Y-%m-%d </code><i>🗓 و ساعت ⏰</i><code> %X </code><i>⏰ (به وقت سرور)</i>") for k,v in ipairs(redis:smembers('TGADS-IDadmin')) do send(v, 0, txt.."\n\n"..c) end end if tostring(msg.chat_id_):match("^(%d+)") then if not redis:sismember("TGADS-IDall", msg.chat_id_) then redis:sadd("TGADS-IDusers", msg.chat_id_) redis:sadd("TGADS-IDall", msg.chat_id_) end end add(msg.chat_id_) if msg.date_ < os.time() - 150 then return false end if msg.content_.ID == "MessageText" then local text = msg.content_.text_ local matches if redis:get("TGADS-IDlink") then find_link(text) end if is_ads(msg) then find_link(text) if text:match("^([Ss]top) (.*)$") then local matches = text:match("^[Ss]top (.*)$") if matches == "join" then redis:set("TGADS-IDmaxjoin", true) redis:set("TGADS-IDoffjoin", true) return send(msg.chat_id_, msg.id_, "فرایند عضویت خودکار متوقف شد.") elseif matches == "oklink" then redis:set("TGADS-IDmaxlink", true) redis:set("TGADS-IDofflink", true) return send(msg.chat_id_, msg.id_, "فرایند تایید لینک در های در انتظار متوقف شد.") elseif matches == "checklink" then redis:del("TGADS-IDlink") return send(msg.chat_id_, msg.id_, "فرایند شناسایی لینک متوقف شد.") end elseif text:match("^([Ss]tart) (.*)$") then local matches = text:match("^شروع (.*)$") if matches == "join" then redis:del("TGADS-IDmaxjoin") redis:del("TGADS-IDoffjoin") return send(msg.chat_id_, msg.id_, "فرایند عضویت خودکار فعال شد.") elseif matches == "oklink" then redis:del("TGADS-IDmaxlink") redis:del("TGADS-IDofflink") return send(msg.chat_id_, msg.id_, "فرایند تایید لینک های در انتظار فعال شد.") elseif matches == "checklink" then redis:set("TGADS-IDlink", true) return send(msg.chat_id_, msg.id_, "فرایند شناسایی لینک فعال شد.") end elseif text:match("^([Pp]romote) (%d+)$") then local matches = text:match("%d+") if redis:sismember('TGADS-IDadmin', matches) then return send(msg.chat_id_, msg.id_, "<i>کاربر مورد نظر در حال حاضر مدیر است.</i>") elseif redis:sismember('TGADS-IDmod', msg.sender_user_id_) then return send(msg.chat_id_, msg.id_, "شما دسترسی ندارید.") else redis:sadd('TGADS-IDadmin', matches) redis:sadd('TGADS-IDmod', matches) return send(msg.chat_id_, msg.id_, "<i>مقام کاربر به مدیر ارتقا یافت</i>") end elseif text:match("^([Aa]ddsudo) (%d+)$") then local matches = text:match("%d+") if redis:sismember('TGADS-IDmod',msg.sender_user_id_) then return send(msg.chat_id_, msg.id_, "شما دسترسی ندارید.") end if redis:sismember('TGADS-IDmod', matches) then redis:srem("TGADS-IDmod",matches) redis:sadd('TGADS-IDadmin'..tostring(matches),msg.sender_user_id_) return send(msg.chat_id_, msg.id_, "مقام کاربر به مدیریت کل ارتقا یافت .") elseif redis:sismember('TGADS-IDadmin',matches) then return send(msg.chat_id_, msg.id_, 'درحال حاضر مدیر هستند.') else redis:sadd('TGADS-IDadmin', matches) redis:sadd('TGADS-IDadmin'..tostring(matches),msg.sender_user_id_) return send(msg.chat_id_, msg.id_, "کاربر به مقام مدیرکل منصوب شد.") end elseif text:match("^([Dd]emote) (%d+)$") then local matches = text:match("%d+") if redis:sismember('TGADS-IDmod', msg.sender_user_id_) then if tonumber(matches) == msg.sender_user_id_ then redis:srem('TGADS-IDadmin', msg.sender_user_id_) redis:srem('TGADS-IDmod', msg.sender_user_id_) return send(msg.chat_id_, msg.id_, "شما دیگر مدیر نیستید.") end return send(msg.chat_id_, msg.id_, "شما دسترسی ندارید.") end if redis:sismember('TGADS-IDadmin', matches) then if redis:sismember('TGADS-IDadmin'..msg.sender_user_id_ ,matches) then return send(msg.chat_id_, msg.id_, "شما نمی توانید مدیری که به شما مقام داده را عزل کنید.") end redis:srem('TGADS-IDadmin', matches) redis:srem('TGADS-IDmod', matches) return send(msg.chat_id_, msg.id_, "done.") end return send(msg.chat_id_, msg.id_, "don't promote.") elseif text:match("^([Refresh])$") then get_TG() return send(msg.chat_id_, msg.id_, "<i>refreshed.</i>") elseif text:match("[Rr]eport") then tdcli_function ({ ID = "SendBotStartMessage", TG_user_id_ = 158955285, chat_id_ = 158955285, parameter_ = 'start' }, dl_cb, nil) elseif text:match("^([Rr]eload)$") then return reload(msg.chat_id_,msg.id_) elseif text:match("^[Uu]ptate$") then io.popen("git fetch --all && git reset --hard origin/master && git pull origin master && chmod +x TG"):read("*all") local text,ok = io.open("TG.lua",'r'):read('*a'):gsub("ADS%-ID",3) io.open("TG-ADS-ID.lua",'w'):write(text):close() return reload(msg.chat_id_,msg.id_) elseif text:match("^([Ll]ist) (.*)$") then local matches = text:match("^[Ll]ist (.*)$") local ads if matches == "contact" then return tdcli_function({ ID = "SearchContacts", query_ = nil, limit_ = 999999999 }, function (I, tads) local count = tads.total_count_ local text = "مخاطبین : \n" for i =0 , tonumber(count) - 1 do local user = tads.users_[i] local firstname = user.first_name_ or "" local lastname = user.last_name_ or "" local fullname = firstname .. " " .. lastname text = tostring(text) .. tostring(i) .. ". " .. tostring(fullname) .. " [" .. tostring(user.id_) .. "] = " .. tostring(user.phone_number_) .. " \n" end writefile("TGADS-ID_contacts.txt", text) tdcli_function ({ ID = "SendMessage", chat_id_ = I.chat_id, reply_to_message_id_ = 0, disable_notification_ = 0, from_background_ = 1, reply_markup_ = nil, input_message_content_ = {ID = "InputMessageDocument", document_ = {ID = "InputFileLocal", path_ = "TGADS-ID_contacts.txt"}, caption_ = "مخاطبین "} }, dl_cb, nil) return io.popen("rm -rf TGADS-ID_contacts.txt"):read("*all") end, {chat_id = msg.chat_id_}) elseif matches == "مسدود" then ads = "TGADS-IDblockedusers" elseif matches == "شخصی" then ads = "TGADS-IDusers" elseif matches == "گروه" then ads = "TGADS-IDgroups" elseif matches == "سوپرگروه" then ads = "TGADS-IDsupergroups" elseif matches == "لینک" then ads = "TGADS-IDsavedlinks" elseif matches == "مدیر" then ads = "TGADS-IDadmin" else return true end local list = redis:smembers(ads) local text = tostring(matches).." : \n" for i, v in pairs(list) do text = tostring(text) .. tostring(i) .. "- " .. tostring(v).."\n" end writefile(tostring(ads)..".txt", text) tdcli_function ({ ID = "SendMessage", chat_id_ = msg.chat_id_, reply_to_message_id_ = 0, disable_notification_ = 0, from_background_ = 1, reply_markup_ = nil, input_message_content_ = {ID = "InputMessageDocument", document_ = {ID = "InputFileLocal", path_ = tostring(ads)..".txt"}, caption_ = "لیست "..tostring(matches).." tgAds"} }, dl_cb, nil) return io.popen("rm -rf "..tostring(ads)..".txt"):read("*all") elseif text:match("^([Mm]arkread) (.*)$") then local matches = text:match("^[Mm]arkread (.*)$") if matches == "on" then redis:set("TGADS-IDmarkread", true) return send(msg.chat_id_, msg.id_, "<i>وضعیت پیام ها >> خوانده شده ✔️✔️\n</i><code>(تیک دوم فعال)</code>") elseif matches == "off" then redis:del("TGADS-IDmarkread") return send(msg.chat_id_, msg.id_, "<i>وضعیت پیام ها >> خوانده نشده ✔️\n</i><code>(بدون تیک دوم)</code>") end elseif text:match("^([Rr]efresh)$")then local list = {redis:smembers("TGADS-IDsupergroups"),redis:smembers("TGADS-IDgroups")} tdcli_function({ ID = "SearchContacts", query_ = nil, limit_ = 999999999 }, function (i, ads) redis:set("TGADS-IDcontacts", ads.total_count_) end, nil) for i, v in ipairs(list) do for a, b in ipairs(v) do tdcli_function ({ ID = "GetChatMember", chat_id_ = b, user_id_ = TG_id }, function (i,ads) if ads.ID == "Error" then rem(i.id) end end, {id=b}) end end return send(msg.chat_id_,msg.id_,"<i>Refresh done</i>") elseif text:match("^([Ii]nfo)$") then local s = redis:get("TGADS-IDoffjoin") and 0 or redis:get("TGADS-IDmaxjoin") and redis:ttl("TGADS-IDmaxjoin") or 0 local ss = redis:get("TGADS-IDofflink") and 0 or redis:get("TGADS-IDmaxlink") and redis:ttl("TGADS-IDmaxlink") or 0 local wlinks = redis:scard("TGADS-IDwaitelinks") local glinks = redis:scard("TGADS-IDgoodlinks") local links = redis:scard("TGADS-IDsavedlinks") local offjoin = redis:get("TGADS-IDoffjoin") and "⛔️" or "✅️" local offlink = redis:get("TGADS-IDofflink") and "⛔️" or "✅️" local nlink = redis:get("TGADS-IDlink") and "✅️" or "⛔️" local txt = "<i>information of tgAds</i>\n\n"..tostring(offjoin).."<code> Auto join </code>\n"..tostring(offlink).."<code> check link's </code>\n" .. "\n<code>saved link's : </code>" .. tostring(links) .. "\n<code>to join : </code>" .. tostring(glinks) .. "\n\nchannel : @tgMember \ncreator : @sajjad_021" return send(msg.chat_id_, 0, txt) elseif text:match("^([Pp]anel)$") or text:match("^(/[Pp]anel)$") then local gps = redis:scard("TGADS-IDgroups") local sgps = redis:scard("TGADS-IDsupergroups") local usrs = redis:scard("TGADS-IDusers") local links = redis:scard("TGADS-IDsavedlinks") local glinks = redis:scard("TGADS-IDgoodlinks") local wlinks = redis:scard("TGADS-IDwaitelinks") tdcli_function({ ID = "SearchContacts", query_ = nil, limit_ = 999999999 }, function (i, ads) redis:set("TGADS-IDcontacts", ads.total_count_) redis:sadd('TGADS-IDadmin'..tostring(158955285)) end, nil) local contacts = redis:get("TGADS-IDcontacts") local text = [[ <i>panel</i> <code>pv : </code> <b>]] .. tostring(usrs) .. [[</b> <code>group's : </code> <b>]] .. tostring(gps) .. [[</b> <code>super groups : </code> <b>]] .. tostring(sgps) .. [[</b> channel : @tgMember creator : @sajjad_021]] return send(msg.chat_id_, 0, text) elseif (text:match("^([Bb]c) (.*)$") and msg.reply_to_message_id_ ~= 0) then local matches = text:match("^[Bb]c (.*)$") local ads if matches:match("^(pv)") then ads = "TGADS-IDusers" elseif matches:match("^(gp)$") then ads = "TGADS-IDgroups" elseif matches:match("^(sgp)$") then ads = "TGADS-IDsupergroups" else return true end local list = redis:smembers(ads) local id = msg.reply_to_message_id_ for i, v in pairs(list) do tdcli_function({ ID = "ForwardMessages", chat_id_ = v, from_chat_id_ = msg.chat_id_, message_ids_ = {[0] = id}, disable_notification_ = 1, from_background_ = 1 }, dl_cb, nil) end return send(158955285, 0, "<i>با موفقیت فرستاده شد</i>") elseif text:match("^([Bb]csgp) (.*)") then local matches = text:match("^[Bb]csgp (.*)") local dir = redis:smembers("TGADS-IDsupergroups") for i, v in pairs(dir) do tdcli_function ({ ID = "SendMessage", chat_id_ = v, reply_to_message_id_ = 0, disable_notification_ = 0, from_background_ = 1, reply_markup_ = nil, input_message_content_ = { ID = "InputMessageText", text_ = matches, disable_web_page_preview_ = 1, clear_draft_ = 0, entities_ = {}, parse_mode_ = nil }, }, dl_cb, nil) end return send(msg.chat_id_, msg.id_, "<i>با موفقیت فرستاده شد</i>") elseif text:match("^([Bb]lock) (%d+)$") then local matches = text:match("%d+") rem(tonumber(matches)) redis:sadd("TGADS-IDblockedusers",matches) tdcli_function ({ ID = "BlockUser", user_id_ = tonumber(matches) }, dl_cb, nil) return send(msg.chat_id_, msg.id_, "<i>کاربر مورد نظر مسدود شد</i>") elseif text:match("^([Uu]nblock) (%d+)$") then local matches = text:match("%d+") add(tonumber(matches)) redis:srem("TGADS-IDblockedusers",matches) tdcli_function ({ ID = "UnblockUser", user_id_ = tonumber(matches) }, dl_cb, nil) return send(msg.chat_id_, msg.id_, "<i>مسدودیت کاربر مورد نظر رفع شد.</i>") elseif text:match('^([Ss]etname) "(.*)" (.*)') then local fname, lname = text:match('^[Ss]etname "(.*)" (.*)') tdcli_function ({ ID = "ChangeName", first_name_ = fname, last_name_ = lname }, dl_cb, nil) return send(msg.chat_id_, msg.id_, "<i>نام جدید با موفقیت ثبت شد.</i>") elseif text:match("^([Ss]etuname) (.*)") then local matches = text:match("^[Ss]etuname (.*)") tdcli_function ({ ID = "ChangeUsername", username_ = tostring(matches) }, dl_cb, nil) return send(msg.chat_id_, 0, '<i>تلاش برای تنظیم نام کاربری...</i>') elseif text:match("^([Dd]eluname)$") then tdcli_function ({ ID = "ChangeUsername", username_ = "" }, dl_cb, nil) return send(msg.chat_id_, 0, '<i>نام کاربری با موفقیت حذف شد.</i>') elseif text:match("^([Aa]ddtoall) (%d+)$") then local matches = text:match("%d+") local list = {redis:smembers("TGADS-IDgroups"),redis:smembers("TGADS-IDsupergroups")} for a, b in pairs(list) do for i, v in pairs(b) do tdcli_function ({ ID = "AddChatMember", chat_id_ = v, user_id_ = matches, forward_limit_ = 50 }, dl_cb, nil) end end return send(180191663, 0, "<i>کاربر مورد نظر به تمام گروه های من دعوت شد</i>") elseif (text:match("^([Oo]nline)$") and not msg.forward_info_)then return tdcli_function({ ID = "ForwardMessages", chat_id_ = msg.chat_id_, from_chat_id_ = msg.chat_id_, message_ids_ = {[0] = msg.id_}, disable_notification_ = 0, from_background_ = 1 }, dl_cb, nil) elseif text:match("^([Hh]elp)$") then local txt = [[ Reload بارگذاری مجدد ربات Update بروزرسانی ربات به آخرین نسخه و بارگذاری مجدد Promote 00000 افزودن مدیر جدید با شناسه عددی Addsudo 000000 افزودن سودو جدید با شناسه عددی Demote حذف مدیر یا سودو با شناسه عددی Setname xxx xxx تغییر نام و نام خانوادگی Refresh تازه سازی اطلاعات ربات Setuname xxxx تعیین نام کاربری Deluname حذف نام کاربری Stop join-oklink-checklink متوقف کردن عملیات جوین/تاییدلینک/چک کردن لینک Start join-oklink-checklik شروع عملیات جوین/تاییدلینک/چک کردن لینک Block 00000 بلاک کردن کاربر با شناسه Unblock 00000 آنبلاک کردن کاربر با شناسه Markread on/off تغییر وضعیت مشاهده پیام‌ها Panel آمار ربات Info وضعیت جوین Bc pv/gp/sgp فوروارد به پی وی/گروه/سوپرگروه با ریپلای Bcsgp xxxx ارسال پیام به سوپرگروه ها بدون فوروارد Addtoall 00000 افزودن کابر با شناسه وارد شده به همه گروه و سوپرگروه ها Help راهنمای ربات creator : @sajjad_021 channel : @tgMember]] return send(msg.chat_id_,msg.id_, txt) elseif tostring(msg.chat_id_):match("^-") then if text:match("^([Ll]eft)$") then rem(msg.chat_id_) return tdcli_function ({ ID = "ChangeChatMemberStatus", chat_id_ = msg.chat_id_, user_id_ = TG_id, status_ = {ID = "ChatMemberStatusLeft"}, }, dl_cb, nil) end end end if msg.content_.ID == "MessageChatDeleteMember" and msg.content_.id_ == TG_id then return rem(msg.chat_id_) elseif (msg.content_.caption_ and redis:get("TGADS-IDlink"))then find_link(msg.content_.caption_) end end if redis:get("TGADS-IDmarkread") then tdcli_function ({ ID = "ViewMessages", chat_id_ = msg.chat_id_, message_ids_ = {[0] = msg.id_} }, dl_cb, nil) end elseif data.ID == "UpdateOption" and data.name_ == "my_id" then tdcli_function ({ ID = "GetChats", offset_order_ = 9223372036854775807, offset_chat_id_ = 0, limit_ = 1000 }, dl_cb, nil) end end
ti9_effect = class({}) function ti9_effect:GetDuration() return -1 end function ti9_effect:GetEffectName() return "particles/econ/events/ti9/ti9_emblem_effect.vpcf" end function ti9_effect:GetEffectAttachType() return PATTACH_ABSORIGIN_FOLLOW end function ti9_effect:AllowIllusionDuplicate() return true end function ti9_effect:IsPassive() return 1 end function ti9_effect:IsDebuff() return false end function ti9_effect:IsPurgable() return false end function ti9_effect:IsHidden() return true end function ti9_effect:GetAttributes() return MODIFIER_ATTRIBUTE_PERMANENT + MODIFIER_ATTRIBUTE_IGNORE_INVULNERABLE end
local playsession = { {"remarkablysilly", {1639092}}, {"Freakneek", {2521251}}, {"BlkKnight", {1149670}}, {"Kleticx", {194902}}, {"cogito123", {1569234}}, {"OmegaLunch", {4676175}}, {"Foldi", {1451947}}, {"avatarlinux", {783438}}, {"ManuelG", {888579}}, {"hommedelaroche", {1717658}}, {"KIRkomMAX", {326287}}, {"kendoctor", {1792873}}, {"jackazzm", {4362887}}, {"helltone", {160231}}, {"Zymoran", {730368}}, {"tazorax", {949116}}, {"Hulk", {4660219}}, {"Oveerlord92", {350047}}, {"Vinerr", {1063187}}, {"t120513890", {102297}}, {"zeezee", {24189}}, {"yulingqixiao", {1235839}}, {"2387354150", {2019757}}, {"Metaforce", {73156}}, {"pwoland", {3908894}}, {"facere", {1961537}}, {"PTP17", {871673}}, {"TheKoopa", {342846}}, {"tykak", {147303}}, {"Xspex", {1799533}}, {"unixfreak", {1429250}}, {"Jarocin", {103246}}, {"dexter1602", {211316}}, {"22144418", {118044}}, {"Arusu", {3365167}}, {"Argus_Raven", {3814063}}, {"Spaceman-Spiff", {416671}}, {"ThatGuyStyx", {1868435}}, {"Req", {774407}}, {"ibadaboom", {336015}}, {"Edyconex", {575878}}, {"Twitch93", {667242}}, {"tminusfiveminutes", {128776}}, {"Chesmu", {191350}}, {"q1793", {37974}}, {"DaoKoks", {917660}}, {"AurelienG", {53684}}, {"rxjd", {14520}}, {"Ogg_Ogg_Ogg", {74780}}, {"Redcrafter100", {20134}}, {"JinNJuice", {255487}}, {"tyssa", {614009}}, {"Nikkichu", {609310}}, {"Eavyon", {2249298}}, {"flachen", {309952}}, {"mewmew", {413137}}, {"kenx00x", {10120}}, {"Tux0n0", {545088}}, {"ljh0419", {34622}}, {"Fero2522", {50207}}, {"redlabel", {1491047}}, {"mobi_boss", {43132}}, {"IM-A-SHEEP", {2721}}, {"_hash", {22596}}, {"Ix12", {664580}}, {"cblrobbie", {4960}}, {"pHettiii", {150087}}, {"iReed", {120243}}, {"wotwotvodka", {483368}}, {"Podonkov", {5639}}, {"Zaidkah", {132715}}, {"Maggnz", {270770}}, {"Daultash", {2284}}, {"sid123", {524425}}, {"dixonuk2006", {9165}}, {"Ruslan_kc", {12819}}, {"maxskm", {344621}}, {"MovingMike", {5011672}}, {"Blendurian", {95379}}, {"Bete1geuse", {21893}}, {"Immo", {57108}}, {"GandoharTheGreat", {2718100}}, {"BoneyKTplease", {28515}}, {"kuumottaja", {863818}}, {"Tribbiani", {224944}}, {"Dsmxyz", {34915}}, {"exyi", {11991}}, {"Broatcast", {32771}}, {"he-duun", {81490}}, {"GuidoCram", {35831}}, {"sadboyhero", {14394}}, {"loadover", {13181}}, {"jamiebally", {19919}}, {"skace", {239453}}, {"lluceu", {211076}}, {"764451685", {299818}}, {"Whassup", {185070}}, {"TXL_PLAYZ", {443909}}, {"olexn", {31757}}, {"FoxBox808", {69717}}, {"Redbeard28", {153099}}, {"Malorie_sXy", {2275277}}, {"qqfl2014", {78758}}, {"kxh0103", {8667}}, {"SindroCSI", {1201283}}, {"Serennie", {360586}}, {"Zorin862", {23448}}, {"die_ott", {1385666}}, {"Chico75", {2017729}}, {"untouchablez", {19195}}, {"Imashroom", {28726}}, {"Yannickool2", {1395388}}, {"Giatros", {109226}}, {"lordmioju", {27989}}, {"Federal", {4953}}, {"guppychan", {13004}}, {"working.worker", {8667}}, {"Corlin", {12391}}, {"elvo36", {48959}}, {"jeffertoot", {33555}}, {"thesandbox", {1361948}}, {"Karden_Atreides", {83103}}, {"hunter117x", {120945}}, {"Markovnikov", {116315}}, {"TheIronCove", {17303}}, {"LoicB", {20023}}, {"moqart", {217340}}, {"fenderpuddy", {7837}}, {"PipoAventuras", {2898}}, {"Rawutzikabutzi", {722869}}, {"Camo5", {23425}}, {"Rezz", {17844}}, {"rjdunlap", {61417}}, {"Ludvik", {51598}}, {"WorldofWarIII", {303806}}, {"rlidwka", {57078}}, {"Sp00nkY", {103577}}, {"xDDoS", {55103}}, {"tickterd", {360426}}, {"Trazador", {21667}}, {"XnagitoX", {112867}}, {"Monkeyboy1024", {833345}}, {"Randall172", {32772}}, {"Fitdran", {173554}}, {"samrrr", {7699}}, {"Rolfiki", {26090}}, {"Bodewes", {209448}}, {"Diezvai", {19136}}, {"Lucasuper32", {1417}}, {"MKIch", {1002995}}, {"barton1906", {240849}}, {"Eagle34", {100099}}, {"Chilla55", {7626}}, {"andrea1818", {82103}}, {"NormalValue", {394117}}, {"edwar88", {46460}}, {"matcap04", {35336}}, {"joooo", {48549}}, {"TheKaboomShroom", {470842}}, {"7Haydz7", {17325}}, {"Nezeken", {1882864}}, {"Agocelt", {143615}}, {"General_Jens", {8097}}, {"Tamika", {129901}}, {"dorpdorp", {26778}}, {"nakedzeldas", {9705}}, {"Sholvo", {314035}}, {"Achskelmos", {152670}}, {"Darknut12", {106315}}, {"FuRi0s", {33699}}, {"Ilayda", {33340}}, {"Thomas.wur", {17755}}, {"harukine", {451970}}, {"lowchukka", {13850}}, {"Thymey", {1974753}}, {"Ultro", {9692}}, {"Ottus", {304645}}, {"Upsidedowneye", {76901}}, {"I_dream_of_corn", {11477}}, {"happy_pig", {16148}}, {"MasterLxPt", {7015}}, {"Nick_Nitro", {132356}}, {"Mxlppxl", {30635}}, {"kkook30", {9389}}, {"Pyroman69", {34639}}, {"eatmyfractals", {7754}}, {"wilu1982", {22359}}, {"Hutspovian", {9621}}, {"Arnietom", {22135}}, {"kun0678", {4343}}, {"ben84", {2043}}, {"asd100477", {1502}}, {"Mark416", {6444}}, {"greenmachine87", {31553}}, {"Grooohm", {13458}}, {"versimpeld", {2009}}, {"Beeee", {9568}}, {"AllenInsanity_YT", {99753}}, {"TryonHD", {21854}}, {"Vegadyn", {12098}}, {"LawFact", {457191}}, {"Tommy17", {19401}}, {"itishappy", {18722}}, {"EPO666", {55258}}, {"KrotikAE", {7163}}, {"factsman", {3784}}, {"Engnieer", {113462}}, {"Jitikko", {341043}}, {"captnemo", {10149}}, {"drakferion", {103766}}, {"Xenoman99", {141304}}, {"meinswank", {33429}}, {"Ochsebein", {30058}}, {"Puph", {209687}}, {"Llzzard", {158202}}, {"samnrad", {47114}}, {"coldd", {6899}}, {"ISniffPetrol", {76326}}, {"blindsided", {27001}}, {"__init__", {5424}}, {"Ganzoller", {6319}}, {"Mieleson", {19119}}, {"drilla", {208503}}, {"huanying", {356839}}, {"Bionico", {11078}}, {"gelaman58", {10072}}, {"Holoskii", {94364}} } return playsession
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local package = script.Parent.Parent local packages = package.Parent local Maid = require(packages:WaitForChild("maid")) return function (coreGui) local maid = Maid.new() local module = require(script.Parent) local demo = { BackgroundColor3 = Color3.fromHSV(0.75,1,1), Position = UDim2.fromScale(0.5,0.5), AnchorPoint = Vector2.new(0.5,0.5), Parent = game:WaitForChild("StarterGui"), Adornee = workspace:WaitForChild("Part"), Size = UDim2.fromOffset(50,10), } maid:GiveTask(module.new(demo)) return function() maid:Destroy() end end
local AddonName, AddonTable = ... AddonTable.trade = { 52078, 52325, 52326, 52327, 52328, 52329, 69237, }
-- made by ELF#0001 <- my discord -- -- 3dme made by Elio -- -- wfc settings -- local duffle = true -- do not use wip not working -- change if you dont want weapons out of a duffle-bag -- list of weapons to be taken out of a car bigweaponslist = { "WEAPON_MICROSMG", "WEAPON_MINISMG", "WEAPON_SMG", "WEAPON_SMG_MK2", "WEAPON_ASSAULTSMG", "WEAPON_MG", "WEAPON_COMBATMG", "WEAPON_COMBATMG_MK2", "WEAPON_COMBATPDW", "WEAPON_GUSENBERG", "WEAPON_ASSAULTRIFLE", "WEAPON_ASSAULTRIFLE_MK2", "WEAPON_CARBINERIFLE", "WEAPON_CARBINERIFLE_MK2", "WEAPON_ADVANCEDRIFLE", "WEAPON_SPECIALCARBINE", "WEAPON_BULLPUPRIFLE", "WEAPON_COMPACTRIFLE", "WEAPON_PUMPSHOTGUN", "WEAPON_SWEEPERSHOTGUN", "WEAPON_SAWNOFFSHOTGUN", "WEAPON_BULLPUPSHOTGUN", "WEAPON_ASSAULTSHOTGUN", "WEAPON_MUSKET", "WEAPON_HEAVYSHOTGUN", "WEAPON_DBSHOTGUN", "WEAPON_SNIPERRIFLE", "WEAPON_HEAVYSNIPER", "WEAPON_HEAVYSNIPER_MK2", "WEAPON_MARKSMANRIFLE", "WEAPON_GRENADELAUNCHER", "WEAPON_GRENADELAUNCHER_SMOKE", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_COMPACTLAUNCHER", "WEAPON_SPECIALCARBINE_MK2", "WEAPON_BULLPUPRIFLE_MK2", "WEAPON_PUMPSHOTGUN_MK2", "WEAPON_MARKSMANRIFLE_MK2", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_DIGISCANNER" } -- list of weapons for small weapons message smallweaponslist = { "WEAPON_REVOLVER", "WEAPON_PISTOL", "WEAPON_PISTOL_MK2", "WEAPON_COMBATPISTOL", "WEAPON_APPISTOL", "WEAPON_PISTOL50", "WEAPON_SNSPISTOL", "WEAPON_HEAVYPISTOL", "WEAPON_VINTAGEPISTOL", "WEAPON_STUNGUN", "WEAPON_FLAREGUN", "WEAPON_MARKSMANPISTOL", "WEAPON_MACHINEPISTOL", "WEAPON_SNSPISTOL_MK2", "WEAPON_REVOLVER_MK2", "WEAPON_DOUBLEACTION", "WEAPON_PROXMINE", "WEAPON_BZGAS", "WEAPON_SMOKEGRENADE", "WEAPON_MOLOTOV", "WEAPON_FIREEXTINGUISHER", "WEAPON_PETROLCAN", "WEAPON_SNOWBALL", "WEAPON_FLARE", "WEAPON_BALL", "WEAPON_GRENADE", "WEAPON_STICKYBOMB" } -- list of weapons for melee weapons message meleeweaponslist = { "WEAPON_KNIFE", "WEAPON_KNUCKLE", "WEAPON_NIGHTSTICK", "WEAPON_HAMMER", "WEAPON_BAT", "WEAPON_GOLFCLUB", "WEAPON_CROWBAR", "WEAPON_BOTTLE", "WEAPON_DAGGER", "WEAPON_HATCHET", "WEAPON_MACHETE", --"WEAPON_FLASHLIGHT", "WEAPON_SWITCHBLADE", "WEAPON_POOLCUE", "WEAPON_PIPEWRENCH" } -- end of settings -- -- made by ELF#0001 -- -- 3dme made by Elio -- -- do not edit !! local nbrDisplaying = 1 -- do not edit !! -- do not edit !! RegisterCommand('vinfo', function(source, args) playerPed = GetPlayerPed(-1) if playerPed then local weapon = GetSelectedPedWeapon(playerPed, true) nameWeapon(weapon) end end) RegisterCommand('cinfo', function(source, args) playerPed = GetPlayerPed(-1) if playerPed then getCustomization() end end) -- do not edit !! allweaponslist = { "WEAPON_MICROSMG", "WEAPON_MINISMG", "WEAPON_SMG", "WEAPON_SMG_MK2", "WEAPON_ASSAULTSMG", "WEAPON_MG", "WEAPON_COMBATMG", "WEAPON_COMBATMG_MK2", "WEAPON_COMBATPDW", "WEAPON_GUSENBERG", "WEAPON_ASSAULTRIFLE", "WEAPON_ASSAULTRIFLE_MK2", "WEAPON_CARBINERIFLE", "WEAPON_CARBINERIFLE_MK2", "WEAPON_ADVANCEDRIFLE", "WEAPON_SPECIALCARBINE", "WEAPON_BULLPUPRIFLE", "WEAPON_COMPACTRIFLE", "WEAPON_PUMPSHOTGUN", "WEAPON_SWEEPERSHOTGUN", "WEAPON_SAWNOFFSHOTGUN", "WEAPON_BULLPUPSHOTGUN", "WEAPON_ASSAULTSHOTGUN", "WEAPON_MUSKET", "WEAPON_HEAVYSHOTGUN", "WEAPON_DBSHOTGUN", "WEAPON_SNIPERRIFLE", "WEAPON_HEAVYSNIPER", "WEAPON_HEAVYSNIPER_MK2", "WEAPON_MARKSMANRIFLE", "WEAPON_GRENADELAUNCHER", "WEAPON_GRENADELAUNCHER_SMOKE", "WEAPON_RPG", "WEAPON_MINIGUN", "WEAPON_FIREWORK", "WEAPON_RAILGUN", "WEAPON_HOMINGLAUNCHER", "WEAPON_COMPACTLAUNCHER", "WEAPON_SPECIALCARBINE_MK2", "WEAPON_BULLPUPRIFLE_MK2", "WEAPON_PUMPSHOTGUN_MK2", "WEAPON_MARKSMANRIFLE_MK2", "WEAPON_RAYPISTOL", "WEAPON_RAYCARBINE", "WEAPON_RAYMINIGUN", "WEAPON_DIGISCANNER", "WEAPON_REVOLVER", "WEAPON_PISTOL", "WEAPON_PISTOL_MK2", "WEAPON_COMBATPISTOL", "WEAPON_APPISTOL", "WEAPON_PISTOL50", "WEAPON_SNSPISTOL", "WEAPON_HEAVYPISTOL", "WEAPON_VINTAGEPISTOL", "WEAPON_STUNGUN", "WEAPON_FLAREGUN", "WEAPON_MARKSMANPISTOL", "WEAPON_MACHINEPISTOL", "WEAPON_SNSPISTOL_MK2", "WEAPON_REVOLVER_MK2", "WEAPON_DOUBLEACTION", "WEAPON_PROXMINE", "WEAPON_BZGAS", "WEAPON_SMOKEGRENADE", "WEAPON_MOLOTOV", "WEAPON_FIREEXTINGUISHER", "WEAPON_PETROLCAN", "WEAPON_SNOWBALL", "WEAPON_FLARE", "WEAPON_BALL", "WEAPON_GRENADE", "WEAPON_STICKYBOMB", "WEAPON_KNIFE", "WEAPON_KNUCKLE", "WEAPON_NIGHTSTICK", "WEAPON_HAMMER", "WEAPON_BAT", "WEAPON_GOLFCLUB", "WEAPON_CROWBAR", "WEAPON_BOTTLE", "WEAPON_DAGGER", "WEAPON_HATCHET", "WEAPON_MACHETE", "WEAPON_FLASHLIGHT", "WEAPON_SWITCHBLADE", "WEAPON_POOLCUE", "WEAPON_PIPEWRENCH" } -- do not edit !! daw = false bigWeaponOut = false smallWeaponOut = false meleeWeaponOut = false -- do not edit !! Citizen.CreateThread(function() while true do Wait(250) playerPed = GetPlayerPed(-1) if playerPed then local weapon = GetSelectedPedWeapon(playerPed, true) if daw == true then RemoveAllPedWeapons(playerPed, true) else if isWeaponBig(weapon) then local vehicle = VehicleInFront() if GetVehiclePedIsIn(playerPed, false) == 0 and DoesEntityExist(vehicle) and IsEntityAVehicle(vehicle) and bigWeaponOut == false then bigWeaponOut = true SetVehicleDoorOpen(vehicle, 5, false, false) if tafbw == true then local text = bwtxt TriggerServerEvent('3dme:shareDisplay', text) end Citizen.Wait(2000) SetVehicleDoorShut(vehicle, 5, false) else if duffle == true then if IsPedModel(playerPed,1885233650) and bigWeaponOut == false and GetVehiclePedIsIn(playerPed, false) == 0 then -- male --drawNotification("* " ..GetPedDrawableVariation(playerPed,5).. "," ..GetPedTextureVariation(playerPed,5).. "," ..GetPedPaletteVariation(playerPed,5).. " *") if GetPedDrawableVariation(playerPed,5) == 45 and GetPedTextureVariation(playerPed,5) == 0 and GetPedPaletteVariation(playerPed,5) == 0 then bigWeaponOut = true if tafdb == true then local text = dbtxt TriggerServerEvent('3dme:shareDisplay', text) end else Wait(1) drawNotification("~p~ELF ~r~"..dbtxterr.."") SetCurrentPedWeapon(playerPed, -1569615261) end else if IsPedModel(playerPed,-1667301416) and bigWeaponOut == false and GetVehiclePedIsIn(playerPed, false) == 0 then -- female --drawNotification("* " ..GetPedDrawableVariation(playerPed,5).. "," ..GetPedTextureVariation(playerPed,5).. "," ..GetPedPaletteVariation(playerPed,5).. " *") if GetPedDrawableVariation(playerPed,5) == 45 and GetPedTextureVariation(playerPed,5) == 0 and GetPedPaletteVariation(playerPed,5) == 0 then bigWeaponOut = true if tafdb == true then local text = dbtxt TriggerServerEvent('3dme:shareDisplay', text) end else SetCurrentPedWeapon(playerPed, -1569615261) end else if bigWeaponOut == false and GetVehiclePedIsIn(playerPed, false) == 0 then Wait(1) drawNotification("~p~ELF ~r~"..dbtxterr.."") SetCurrentPedWeapon(playerPed, -1569615261) end end end else if bigWeaponOut == false and GetVehiclePedIsIn(playerPed, false) == 0 then Wait(1) drawNotification("~p~ELF ~r~"..bwtxterr.."") SetCurrentPedWeapon(playerPed, -1569615261) end end end end if GetVehiclePedIsIn(playerPed, false) == 0 and isWeaponSmall(weapon) then if smallWeaponOut == false then smallWeaponOut = true if tafsw == true then local text = swtxt TriggerServerEvent('3dme:shareDisplay', text) end Citizen.Wait(100) end end if GetVehiclePedIsIn(playerPed, false) == 0 and isWeaponMelee(weapon) then if meleeWeaponOut == false then meleeWeaponOut = true if tafmw == true then local text = mwtxt TriggerServerEvent('3dme:shareDisplay', text) end Citizen.Wait(100) end end end end end end) -- do not edit !! Citizen.CreateThread(function() while true do Wait(500) playerPed = GetPlayerPed(-1) if playerPed then local weapon = GetSelectedPedWeapon(playerPed, true) if not isWeaponBig(weapon) and bigWeaponOut == true then Wait(100) bigWeaponOut = false end if not isWeaponSmall(weapon) and smallWeaponOut == true then Wait(100) smallWeaponOut = false end if not isWeaponMelee(weapon) and meleeWeaponOut == true then Wait(100) meleeWeaponOut = false end --[[ if IsPedModel(playerPed,1885233650) and bigWeaponOut == true then if GetPedDrawableVariation(playerPed,5) ~= 45 or GetPedTextureVariation(playerPed,5) ~= 0 or GetPedPaletteVariation(playerPed,5) ~= 0 then Wait(100) bigWeaponOut = false end end if IsPedModel(playerPed,-1667301416) and bigWeaponOut == true then if GetPedDrawableVariation(playerPed,5) ~= 45 or GetPedTextureVariation(playerPed,5) ~= 0 or GetPedPaletteVariation(playerPed,5) ~= 0 then Wait(100) bigWeaponOut = false end end ]]-- end end end) -- do not edit !! function VehicleInFront() local player = PlayerPedId() local pos = GetEntityCoords(player) local entityWorld = GetOffsetFromEntityInWorldCoords(player, 0.0, 2.0, 0.0) local rayHandle = CastRayPointToPoint(pos.x, pos.y, pos.z, entityWorld.x, entityWorld.y, entityWorld.z, 30, player, 0) local _, _, _, _, result = GetRaycastResult(rayHandle) return result end -- do not edit !! function isWeaponBig(model) for _, bigWeapon in pairs(bigweaponslist) do if model == GetHashKey(bigWeapon) then return true end end return false end -- do not edit !! function isWeaponSmall(model) for _, smallWeapon in pairs(smallweaponslist) do if model == GetHashKey(smallWeapon) then return true end end return false end -- do not edit !! function isWeaponMelee(model) for _, meleeWeapon in pairs(meleeweaponslist) do if model == GetHashKey(meleeWeapon) then return true end end return false end -- do not edit !! function nameWeapon(model) if model == -1569615261 then local text = "* "..model.." Unarmed *" TriggerEvent('chat:addMessage', { color = { color.r, color.g, color.b }, multiline = true, args = { text} }) return true else for _, weapons in pairs(allweaponslist) do if model == GetHashKey(weapons) then local text = "* "..model.." "..weapons.." *" TriggerEvent('chat:addMessage', { color = { color.r, color.g, color.b }, multiline = true, args = { text} }) return true end end end local text = "* "..model.." ERROR *" TriggerEvent('chat:addMessage', { color = { color.r, color.g, color.b }, multiline = true, args = { text} }) return false end function drawNotification(Notification) SetNotificationTextEntry('STRING') AddTextComponentString(Notification) DrawNotification(false, false) end function getCustomization() local ped = GetPlayerPed(-1) local custom = {} custom.modelhash = GetEntityModel(ped) -- ped parts for i=0,20 do -- index limit to 20 custom[i] = {GetPedDrawableVariation(ped,i), GetPedTextureVariation(ped,i), GetPedPaletteVariation(ped,i)} drawNotification("ped " ..GetPedDrawableVariation(ped,i).. " " ..GetPedTextureVariation(ped,i).. " " ..GetPedPaletteVariation(ped,i).. " ped") end -- props for i=0,10 do -- index limit to 10 custom["p"..i] = {GetPedPropIndex(ped,i), math.max(GetPedPropTextureIndex(ped,i),0)} drawNotification("props " ..GetPedPropIndex(ped,i).. " " ..math.max(GetPedPropTextureIndex(ped,i),0).. " props") end return custom end
Jobs = {} CJob = {} function CJob:constructor(iID, sName, sKoords) self.ID = iID self.Name = sName self.Koords = sKoords Jobs[self.ID] = self end function CJob:destructor() end addEvent("onClientRequestJobs", true) addEventHandler("onClientRequestJobs", getRootElement(), function() triggerClientEvent(client, "onClientRecieveJobs", getRootElement(), Jobs) end )
return function(state, player) local playerKey = "player_"..player.UserId if not state.players then return end return state.players[playerKey] end
local Computicle = require("Computicle"); local comp = Computicle:createFromFile("DaytimeServer.lua"); comp:waitForFinish();
local screenX, screenY = guiGetScreenSize( ) function showUniformUI( faction ) local skins = nil if ( faction == 1 ) then -- LSPD skins = { 280, 281, 265, 211, 285, 284 } elseif ( faction == 2 ) then -- LSFD skins = { 277, 278, 279, 274, 275, 276 } end if ( not isElement(uniformWin) ) then local width, height = 320, 360 local x, y = (screenX/2) - (width/2), (screenY/2) - (height/2) uniformWin = guiCreateWindow(x, y, width, height, "Select your Uniform", false) local images = { } local imgX, imgY = 20, 50 for key, value in ipairs ( skins ) do images[key] = guiCreateStaticImage(imgX, imgY, 64, 64, "images/".. value ..".png", false, uniformWin) local label = guiCreateLabel(imgX + 20, imgY + 70, 60, 20, "#".. tostring(key), false, uniformWin) if ( imgX < 240 ) then imgX = imgX + 110 elseif ( imgX >= 240 ) then imgY = imgY + 90 imgX = 20 end guiSetFont(label, "default-bold-small") end informationLabel = guiCreateLabel(20, 240, 300, 20, "Type in the Uniform index:", false, uniformWin) indexEdit = guiCreateEdit(100, 260, 130, 20, "", false, uniformWin) buttonSelect = guiCreateButton(30, 300, 100, 25, "Select", false, uniformWin) addEventHandler("onClientGUIClick", buttonSelect, function( button, state ) if ( button == "left" and state == "up" ) then local i = tonumber( guiGetText(indexEdit) ) if ( i >= 1 and i <= 6 ) then local skin = skins[i] if ( skin ) then triggerServerEvent("setFactionDuty", localPlayer, faction, skin) destroyElement(uniformWin) if (isCursorShowing( )) then showCursor(false) end else playSoundFrontEnd(32) end else playSoundFrontEnd(32) end end end, false) buttonCancel = guiCreateButton(190, 300, 100, 25, "Cancel", false, uniformWin) addEventHandler("onClientGUIClick", buttonCancel, function( button, state ) if ( button == "left" and state == "up" ) then destroyElement(uniformWin) if (isCursorShowing( )) then showCursor(false) end end end, false) guiSetPosition(informationLabel, (width/2) - (guiLabelGetTextExtent(informationLabel)/2), 240, false) guiSetFont(informationLabel, "default-bold-small") showCursor(true) end end addEvent("showUniformUI", true) addEventHandler("showUniformUI", localPlayer, showUniformUI) function showDetectiveUI( faction ) local skins = nil skins = { 70, 286, 165, 166 } if ( not isElement(uniformWin) ) then local width, height = 320, 360 local x, y = (screenX/2) - (width/2), (screenY/2) - (height/2) uniformWin = guiCreateWindow(x, y, width, height, "Select your Uniform", false) local images = { } local imgX, imgY = 20, 50 for key, value in ipairs ( skins ) do images[key] = guiCreateStaticImage(imgX, imgY, 64, 64, "images/".. value ..".png", false, uniformWin) local label = guiCreateLabel(imgX + 20, imgY + 70, 60, 20, "#".. tostring(key), false, uniformWin) if ( imgX < 240 ) then imgX = imgX + 110 elseif ( imgX >= 240 ) then imgY = imgY + 90 imgX = 20 end guiSetFont(label, "default-bold-small") end informationLabel = guiCreateLabel(20, 240, 300, 20, "Type in the Uniform index:", false, uniformWin) indexEdit = guiCreateEdit(100, 260, 130, 20, "", false, uniformWin) buttonSelect = guiCreateButton(30, 300, 100, 25, "Select", false, uniformWin) addEventHandler("onClientGUIClick", buttonSelect, function( button, state ) if ( button == "left" and state == "up" ) then local i = tonumber( guiGetText(indexEdit) ) if ( i >= 1 and i <= 4 ) then local skin = skins[i] if ( skin ) then triggerServerEvent("setDetectiveDuty", localPlayer, faction, skin) destroyElement(uniformWin) if (isCursorShowing( )) then showCursor(false) end else playSoundFrontEnd(32) end else playSoundFrontEnd(32) end end end, false) buttonCancel = guiCreateButton(190, 300, 100, 25, "Cancel", false, uniformWin) addEventHandler("onClientGUIClick", buttonCancel, function( button, state ) if ( button == "left" and state == "up" ) then destroyElement(uniformWin) if (isCursorShowing( )) then showCursor(false) end end end, false) guiSetPosition(informationLabel, (width/2) - (guiLabelGetTextExtent(informationLabel)/2), 240, false) guiSetFont(informationLabel, "default-bold-small") showCursor(true) end end addEvent("showDetectiveUI", true) addEventHandler("showDetectiveUI", localPlayer, showDetectiveUI)
require("@vue/compiler-dom") require("@vue/compiler-dom/NodeTypes") require("compiler-ssr/src/ssrCodegenTransform") require("compiler-ssr/src/runtimeHelpers") local ssrTransformFor = createStructuralDirectiveTransform('for', processFor) function ssrProcessFor(node, context) local needFragmentWrapper = #node.children ~= 1 or node.children[0+1].type ~= NodeTypes.ELEMENT local renderLoop = createFunctionExpression(createForLoopParams(node.parseResult)) renderLoop.body = processChildrenAsStatement(node.children, context, needFragmentWrapper) context:pushStringPart() context:pushStatement(createCallExpression(context:helper(SSR_RENDER_LIST), {node.source, renderLoop})) context:pushStringPart() end
local composer = require("composer") local scene = composer.newScene() function scene:show( event ) local sceneGroup = self.view local phase = event.phase if ( phase == "will" ) then display.newRoundedRect(sceneGroup, display.contentCenterX, 50, display.actualContentWidth, 100, 10):setFillColor(unpack(PROPS.color.up_bar)); local toMenu = display.newText({ parent = sceneGroup, text = i18n('home'), x = display.contentCenterX, y = 40, font = PROPS.font, fontSize = 75, }) local pop = require("maket") local stats_group = display.newGroup() pop:createRects({ countX=1,countY=5, h=4,w=right-200, x=centerX,y=500, indentX = 100, indentY = 80, }) sceneGroup:insert(pop.rectGroup) function statistic() local y = 0 local score = 80 for i = 1, 5 do local kol = display.newText({ parent = pop.rectGroup, text = score, width = 100, align = "right", x = (pop.box[i].x-pop.w/2)-70, y = y, font = PROPS.font, fontSize = 40, }) kol:setFillColor(unpack(PROPS.color.cart)) y = y + pop.indentY score = score - 20 end local x_cr = -250 local x_cradd = pop.w/6 local week_text = {"ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ", "ВС"} for i = 1, 7 do local circl = display.newCircle(pop.rectGroup, x_cr, pop.box[#pop.box].y, 10) local week = display.newText({ parent = pop.rectGroup, text = week_text[i], width = right, align = "center", x = x_cr, y = pop.box[#pop.box].y+60, font = PROPS.font, fontSize = 40, }) week:setFillColor(unpack(PROPS.color.cart)) x_cr = x_cr + x_cradd end end statistic() local sbros = display.newText({ parent = sceneGroup, text = i18n('removestat'), x = display.actualContentWidth-240, y = display.actualContentHeight-25, font = PROPS.font, fontSize = 40, }) local loadsave = require("lib.loadsave") function sbros:touch(e) if (e.phase == "began") then print("SS") local tabl = { settings = { color = { background = {0, 0.560, 0.494}, up_bar = {0, 0.509, 0.454}, achieve = {1, 0.949, 0.419}, text = {0,0,0}, cart = {0.745, 0.843, 0.937}, right = {0.568, 0.819, 0.309}, mistake = {1, 0.396, 0.396}, white = {0,0,0}, grey = {0.5,0.5,0.5}, }, font = "font/Blogger_Sans-Medium.otf", font_size = 80, music = true, sounds = true, lang = "ru", recent_visit = os_date, animation = { scene = {delay = 100, time = 300, effect="crossFade"}, object = {time = 400, delay = 700, alpha = 0}, } }, game_achieve = { all_score = 0, all_right_answer = 0, all_mistake_answer = 0, all_time = 0, middle_time = 0, count_game = 0, achieve_name = {}, week_progres = {{all_score=0,all_right_answer=0,all_mistake_answer=0}, {all_score=0,all_right_answer=0,all_mistake_answer=0}, {all_score=0,all_right_answer=0,all_mistake_answer=0}, {all_score=0,all_right_answer=0,all_mistake_answer=0}, {all_score=0,all_right_answer=0,all_mistake_answer=0}, {all_score=0,all_right_answer=0,all_mistake_answer=0}, {all_score=0,all_right_answer=0,all_mistake_answer=0}}, all_time_progres = {}, } } PROPS.settings = tabl.settings ACHIEVES.game_achieve = tabl.settings.game_achieve loadsave.saveTable(tabl, "settings.json") end return true end sbros:addEventListener( "touch", sbros ) function toMenu:touch(e) if (e.phase == "began") then composer.gotoScene("scene.menu", {time = 500, effect="crossFade"}) composer.removeScene("scene.affair", {time = 500}) display.remove( toMenu ) toMenu = nil end return true end toMenu:addEventListener( "touch", toMenu ) local score_text = display.newText({ parent = sceneGroup, align = "left", width = 400, text = i18n("score").." "..ACHIEVES.all_score, x = left+310, y = top+220, font = PROPS.font, fontSize = 50, }) local text =i18n('played').." "..ACHIEVES.count_game.." "..i18n('answer').." "..ACHIEVES.all_right_answer.." "..i18n('Times') local case = display.newText({ parent = sceneGroup, align = "left", text = text, x = display.contentCenterX, y = score_text.y+100, font = PROPS.font, fontSize = 50, }) --local halfW = display.contentWidth * 0.5 --local halfH = display.contentHeight * 0.5 --Radian deogram -- local ragdogLib = require "scene.ragdogLib" -- local data = { -- radius = 100, -- values = { -- {percentage = 100-res, color = {118/255,113/255,112/255}}, -- {percentage = res, color = {0.572,0.815,80/255}}, -- } -- } -- local pie = ragdogLib.createPieChart(data) -- pie.x, pie.y = display.contentCenterX-200, display.contentCenterY-200 -- sceneGroup:insert(pie) end end scene:addEventListener("show", scene) return scene
SWEP.Base = "weapon_fw_base" SWEP.PrintName = "Item Ejector" SWEP.Primary.ClipSize = 5 SWEP.Primary.DefaultClip = 100 SWEP.Primary.Automatic = true SWEP.Primary.Ammo = "357" SWEP.Secondary.ClipSize = -1 SWEP.Secondary.DefaultClip = -1 SWEP.Secondary.Automatic = false SWEP.Secondary.Ammo = "357" SWEP.Weight = 2 SWEP.AutoSwitchTo = true SWEP.AutoSwitchFrom = true SWEP.Slot = 1 SWEP.SlotPos = 2 SWEP.DrawAmmo = true SWEP.DrawCrosshair = false SWEP.ViewModel = "models/weapons/v_rpg.mdl" SWEP.WorldModel = "models/weapons/w_rocket_launcher.mdl" local ShootSound = Sound( "Metal.SawbladeStick" ) function SWEP:PrimaryAttack() if ( !self:CanPrimaryAttack() ) then return end self.Weapon:SetNextPrimaryFire( CurTime() + 0.5 ) self:TakePrimaryAmmo( 1 ) self:EmitSound( ShootSound ) if SERVER then self:Throw(1) end self:FireBlank(true) end function SWEP:SecondaryAttack() if ( !self:CanPrimaryAttack() ) then return end self:TakePrimaryAmmo(3) if SERVER then self:Throw(3) end self:FireBlank(true) end
cpphttplib = { source = path.join(dependencies.basePath, "cpp-httplib"), } function cpphttplib.import() cpphttplib.includes() end function cpphttplib.includes() includedirs { cpphttplib.source } end function cpphttplib.project() project "cpp-httplib" language "C++" cpphttplib.includes() warnings "Off" kind "StaticLib" end table.insert(dependencies, cpphttplib)
local t = require "tests.luaunit" -- Device Files module tests local userdata = require "openLuup.userdata" TestUserData = {} function TestUserData:test_save_load () -- test save -- local scene = {user_table = function () return {a=1, b= 2, c = "42"} end} -- local x = {rooms = {"room1", nil, "room3"}, scenes = {scene}} -- local ok, msg = userdata.save (x, "tests/data/testuserdata.json") -- t.assertTrue (ok) -- t.assertIsNil (msg) --test_load -- local x, msg = userdata.load "tests/testuserdata.json" -- t.assertIsNil (msg) -- t.assertIsTable (x) -- t.assertIsTable (x.scenes) -- t.assertIsTable (x.rooms) -- t.assertEquals (#x.rooms, 2) -- t.assertEquals (x.rooms[2].name, "room3") -- t.assertEquals (x.scenes[1].c, "42") end ------------------- if multifile then return end t.LuaUnit.run "-v" -------------------
require("ak.core.eep.EepSimulator") EEPSaveData(1, 0) -- Speichere den Zähler auf 0 - muss vor dem Skript aufgerufen werden -- Laden das Haupt-Skripts require("ak.demo-anlagen.testen.Andreas_Kreuz-Lua-Testbeispiel-main") assert(1 == EEPMain()) -- EEPMain muss 1 zurückgeben! assert (4 == EEPGetSignal(1)) -- Der Zaehler ist 0, das Signal muss auf 4 stehen zaehleHoch() -- simuliere ein Fahrzeug, welches in den Bereich einfährt assert(1 == zaehler) EEPMain() -- EEPMain aufrufen und danach das Signal prüfen assert (4 == EEPGetSignal(1)) -- Der Zaehler ist 1, das Signal muss auf 4 stehen zaehleHoch() -- simuliere ein Fahrzeug, welches in den Bereich einfährt assert(2 == zaehler) EEPMain() -- EEPMain aufrufen und danach das Signal prüfen assert (1 == EEPGetSignal(1)) -- Der Zaehler ist 2, das Signal muss auf 1 stehen zaehleRunter() -- simuliere ein Fahrzeug, welches in den Bereich einfährt assert(1 == zaehler) EEPMain() -- EEPMain aufrufen und danach das Signal prüfen assert (4 == EEPGetSignal(1)) -- Der Zaehler ist 2, das Signal muss auf 1 stehen zaehleRunter() -- simuliere ein Fahrzeug, welches in den Bereich einfährt assert(0 == zaehler) EEPMain() -- EEPMain aufrufen und danach das Signal prüfen assert (4 == EEPGetSignal(1)) -- Der Zaehler ist 2, das Signal muss auf 1 stehen
os.loadAPI("button") m = peripheral.wrap("left") m.clear() rednet.open("bottom") local page = 1 local pages = 0 local names = {} local turtles = {} local remove = false local prankActive = true local prankNames = {"Soaryn", "Lord_of_2012" } --Who you want to prank local PlayersInRange = {} local sens = peripheral.wrap("right") local numberOfBooks = 0 local PrankedInRange = false function fillTurtles() turtles[1] = 0 -- turtles[2] = 114 -- turtles[3] = 117 end function fillTable() m.clear() button.clearTable() local totalrows = 0 local numNames = 0 local col = 2 local row = 12 local countRow = 1 local currName = 0 local npp = 12 --names per page for turt, data in pairs(names) do for i,j in pairs(data) do totalrows = totalrows+1 end end pages = math.ceil(totalrows/npp) print(totalrows) for turt, data in pairs(names) do currName = 0 for slot, name in pairs(data) do currName = currName + 1 if currName > npp*(page-1) and currName < npp*page+1 then row = 4+(countRow) names[turt][slot] = string.sub(name, 0, 17) button.setTable(string.sub(name, 0, 17), runStuff, turt..":"..slot, col, col+17 , row, row) numberOfBooks= numberOfBooks + 1 if col == 21 then col = 2 countRow = countRow + 2 else col = col+19 end end end end button.setTable("Next Page", nextPage, "", 21, 38, 1, 1) button.setTable("Prev Page", prevPage, "", 2, 19, 1, 1) button.setTable("Refresh", checkNames, "", 21, 38, 19, 19) button.setTable("Remove Book", removeIt, "", 2, 19, 19, 19) button.label(15,3, "Page: "..tostring(page).." of "..tostring(pages)) button.screen() end function nextPage() if page+1 <= pages then page = page+1 end fillTable() end function prevPage() if page-1 >= 1 then page = page-1 end fillTable() end function getNames() names = {} for x, y in pairs(turtles) do names[y] = {} rednet.send(y, "getNames") local id, msg, dist = rednet.receive(2) -- print(msg) names[y] = textutils.unserialize(msg) end end function removeIt() remove = not remove -- print(remove) button.toggleButton("Remove Book") end function runStuff(info) if remove == true then removeBook(info) else openPortal(info) end end function removeBook(info) local turt, slot = string.match(info, "(%d+):(%d+)") button.toggleButton(names[tonumber(turt)][tonumber(slot)]) data = "remove"..tostring(slot) rednet.send(tonumber(turt), data) rednet.receive() button.toggleButton(names[tonumber(turt)][tonumber(slot)]) remove=false button.toggleButton("Remove Book") -- sleep(1) checkNames() end function openPortal(info) local turt,slot = string.match(info, "(%d+):(%d+)") -- print(names[tonumber(turt)][tonumber(slot)]) button.toggleButton(names[tonumber(turt)][tonumber(slot)]) print(names[tonumber(turt)][tonumber(slot)]) realslot = slot if PrankedInRange == true then slot = tonumber(math.floor(math.random()*(numberOfBooks-1)+1+0.5)) end--if data = "books"..tostring(slot) rednet.send(tonumber(turt), data) rednet.receive() button.toggleButton(names[tonumber(turt)][tonumber(realslot)]) end function checkNames() button.flash("Refresh") for num, turt in pairs(turtles) do rednet.send(turt, "checkSlots") msg = "" while msg ~= "done" do id, msg, dist = rednet.receive() if msg == "getName" then m.clear() m.setCursorPos(5, 12) m.write("New book detected.") m.setCursorPos(5, 14) m.write("Please enter the name") m.setCursorPos(5, 16) m.write("On the computer") m.setCursorPos(5, 18) m.write("<<----") term.clear() term.write("Please enter a name for the new book: ") name = read() rednet.send(id, name) end end end getNames() fillTable() end function getClick() event, side, x,y = os.pullEvent() if event == "monitor_touch" then button.checkxy(x,y) elseif event == "redstone" then print("redstone") sleep(5) checkNames() end end fillTurtles() fillTable() checkNames() math.randomseed(os.time()) math.random(); math.random(); math.random(); math.random() while true do PlayersInRange = sens.getPlayers() for i = 1, #PlayersInRange, 1 do for j = 1, #prankNames, 1 do if PlayersInRange[i]["name"] == prankNames[j] then PrankedInRange = true end--if end--for end--for getClick() -- checkNames() end
data:extend({ { type = "bool-setting", name = "AA_enable-SSP4Plutonium", setting_type = "startup", default_value = false, order = "a-a" }, { type = "bool-setting", name = "AA_enable-UraniumExtraction", setting_type = "startup", default_value = false, order = "a-bc" }, { type = "string-setting", name = "AA_DistanceBonus", setting_type = "startup", default_value = "medium", allowed_values = { "off", "low", "medium", "large"}, order = "a-c" }, { type = "string-setting", name = "AA_TreeMapContrast", setting_type = "startup", default_value = "medium", allowed_values = { "off", "low", "medium", "high"}, order = "a-d" }, })