content
stringlengths
5
1.05M
mysql = exports.mrp_mysql objects = { } function loadDimension(dimension, demotable) if dimension then objects[ dimension ] = { } local tableselect = "objects" if demotable then tableselect = "tempobjects" end dbQuery( function(qh) ...
function math.clamp(min, value, max) if min > max then min, max = max, min end return math.max(min, math.min(max, value)) end function getIndex(table, object, column) local index = -1 for ind, name in pairs(table) do if column then if object[column] == name then ...
--[[ KahLua KonferSK - a suicide kings loot distribution addon. WWW: http://kahluamod.com/ksk Git: https://github.com/kahluamods/konfersk IRC: #KahLua on irc.freenode.net E-mail: cruciformer@gmail.com Please refer to the file LICENSE.txt for the Apache License, Version 2.0. Copyright 2008-...
local playsession = { {"Matik12", {1553}}, {"Lestibornes", {100948}}, {"bogg19", {77330}}, {"Ruuyji", {56767}}, {"lukasz_liberda", {53039}} } return playsession
-- Free Haven function events.AfterLoadMap() Party.QBits[180] = true -- Town portal Party.QBits[958] = true -- DDMapBuff, changed for rev4 for merge end ---------------------------------------- -- Loretta Fleise's fix prices quest Game.MapEvtLines:RemoveEvent(14) evt.house[14] = 472 evt.map[14] = function() StdQue...
module("extensions.wumao", package.seeall) extension = sgs.Package("wumao") fiftycents1=sgs.General(extension, "fiftycents1","shu",9, true, true) fiftycents2=sgs.General(extension, "fiftycents2$","shu",6, true, true) function penaltyNullification (player) local room=player:getRoom() local count=player:getMark...
local _={} _[8]={} _[7]={} _[6]={tags=_[8],text="ho"} _[5]={tags=_[7],text="ah"} _[4]={_[5],_[6]} _[3]={"return"} _[2]={"text",_[4]} _[1]={"wait",5} return {_[1],_[2],_[3]} --[[ { "wait", 5 } { "text", { { tags = {}, text = "ah" }, { tags = {}, text = "ho" } } } { "return" } ]]--
-- Copyright (c) 2016 Thermo Fisher Scientific -- -- 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, ...
print('COW: Loading LUA Backend...') Json = require('packages/'..GetPackageName()..'/server/library/json'); -- START LUA API -- -- BASE ENTITY FUNCTIONS -- --[[ function COW_Get%ENTITIY%Dimension(data) return Json.encode({dim = Get%ENTITIY%Dimension(Json.decode(data)["entity"])}) end function COW_Set%ENTITIY%Dime...
local ManorManufactureModule = require "module.ManorManufactureModule" local ManorModule = require "module.ManorModule" local HeroModule = require "module.HeroModule" local CommonConfig = require "config.commonConfig" local ItemHelper = require "utils.ItemHelper" local View = {}; function View:Start(data) self.view ...
local modes = {} modes['Sprint'] = true local checkpoints function onMapStart(mapInfo, mapOptions, gameOptions) for i, player in ipairs(getElementsByType("player")) do triggerClientEvent(player, "deleteSigns" ,root) end if not modes[exports.race:getRaceMode()] then return false end checkpoints = exports.ra...
function init(virtual) if not virtual then energy.init() datawire.init() entity.setInteractive(true) --table of batteries in the charger self.batteries = {} -- will be updated when batteries are checked self.totalUnusedCapacity = 0 self.totalStoredEnergy = 0 --maximum energy to...
coroutine.wrap(function () print() local Args = args table.remove(Args, 0) table.remove(Args, 1) _G.WorkingOS = Args[1] table.remove(Args, 1) _G.GitLib = require("Github-Lib") _G.Logger = require("Logger") _G.BuildHelper = require("BuildHelper") _G.FS = require("fs") _G.J...
object_tangible_quest_box_large = object_tangible_quest_shared_box_large:new { } ObjectTemplates:addTemplate(object_tangible_quest_box_large, "object/tangible/quest/box_large.iff")
Fade.kMetabolizeAnimationDelay = 0.65 function Fade:GetMaxShieldAmount() return math.floor(math.min(self:GetBaseHealth() * kFadeMucousShieldPercent, kMucousShieldMaxAmount)) end function Fade:GetHasMetabolizeAnimationDelay() return self.timeMetabolize + Fade.kMetabolizeAnimationDelay > Shared.GetTime() end
local traceback = require "gg.base.traceback" function onerror(errmsg) local stack = traceback.getfulltrace() if errmsg then errmsg = string.format("%s\n%s",errmsg,stack) else errmsg = stack end print(errmsg) logger.logf("error","error",errmsg) end -- 扩展skynet local skynet_getenv = skynet.getenv function sky...
local env, pairs, ipairs = env, pairs, ipairs local math, table, string, class, event = env.math, env.table, env.string, env.class, env.event local type,tostring,tonumber=type,tostring,tonumber local clear=table.clear local grid = class() local console = console local getWidth = console.getBufferWidth local getScreenWi...
local path = (...):sub(1, #(...) - #(".physics.Physics")) local Luaoop = require(path..".3p.Luaoop") local nvec = require(path..".3p.nvec") ---@type NVec local KMath = require(path..".math.Math") ---@type L2DF.Math local PhysicsInput = require(path..".physics.PhysicsInput") ---@type L2DF.PhysicsInput local PhysicsJso...
local __FILE__=tostring(debugstack(1,2,0):match("(.*):1:")) -- Always check line number in regexp and file, must be 1 --[===[@debug@ print('Loaded',__FILE__) --@end-debug@]===] local function pp(...) print(GetTime(),"|cff009900",__FILE__:sub(-15),strjoin(",",tostringall(...)),"|r") end --*TYPE module --*CONFIG noswitch...
--[[ LICENSE HEADER The MIT License (MIT) Copyright © 2017-2021 Jordan Irwin (AntumDeluge) See: LICENSE.txt --]] local addLightItems = function(mod, itemlist) if core.get_modpath(mod) then for _, i in ipairs(itemlist) do walking_light.addLightItem(mod .. ":" .. i) end end end -- Illuminate glow_gla...
return { on_init = function(client) -- :help lspconfig-logging -- :lua vim.cmd('e'..vim.lsp.get_log_path()) vim.lsp.set_log_level('trace') require('vim.lsp.log').set_format_func(vim.inspect) end, }
-- WinBase.lua -- From WinBase.h local ffi = require "ffi" require ("WTypes"); require ("ntstatus"); local advapiLib = ffi.load("AdvApi32"); INVALID_HANDLE_VALUE = ffi.cast("HANDLE",ffi.cast("LONG_PTR",-1)); INVALID_FILE_SIZE = (0xFFFFFFFF); INVALID_SET_FILE_POINTER = (-1); INVALID_FILE_ATTRIBUTES = (-1)...
-- 0: GPIO16 -- 1: GPIO5 -- 2: GPIO4 -- 3: GPIO0 DHT Temp hum sensor (?) -- 4: GPIO2 -- 5: GPIO14 -- 6: GPIO12 -- 7: GPIO13 -- 8: GPIO15 -- 9: GPIO3 -- 10: GPIO1 -- 11: GPIO9 -- 12: GPIO10 gpioPins = { -- indicator_led = 5, dht = 3 }
local X = {} local utility = require(GetScriptDirectory() .. "/util") local castEntityTarget = 0; local castPointTarget = 0; local castAoeTarget = 0; local castNoTarget = 0; local castTreeTarget = 0; local RB = Vector(-7200,-6666) local DB = Vector(7137,6548) local BlinkLikeAbility = { 'antimage_blink', 'faceless_vo...
Locales['en'] = { ['by_default'] = 'Por defecto', ['installed'] = 'Instalado', ['already_own'] = 'Ya tienes: ~b~%s~s~', ['not_enough_money'] = 'No puedes permitirte esta modificacion.', ['purchased'] = '¡Modificacion comprada!', ['press_custom'] = 'Presiona ~INPUT_PICKUP~ to ~y~personalizar~s~ vehiculo.', ...
require "/scripts/vec2.lua" function init() self.recoil = 0 self.recoilRate = 0 self.fireOffset = config.getParameter("fireOffset") updateAim() self.active = false storage.fireTimer = storage.fireTimer or 0 end function update(dt, fireMode, shiftHeld) updateAim() storage.fireTimer = math.max(storag...
StateMachine = class({}) function StateMachine:constructor( context ) self.states = {} self.currentState = nil self.context = context end function StateMachine:AddState( name, state ) --Store state self.states[ name ] = { func = state, name = name, context = {} } --Set a default state in case no starting state...
-- ---------------------------------------------- -- Copyright(c) 2018, CounterFlow AI, Inc. All Rights Reserved. -- author: Andrew Fast <af@counterflowai.com> -- -- Use of this source code is governed by a BSD-style -- license that can be found in the LICENSE.txt file. -- ----------------------------------------------...
-- SilentsReplacement -- Maid -- July 06, 2021 --[[ Maid.new() --> Maid [] Maid.IsMaid(self : any) --> boolean [IsMaid] -- Only when accessed from an object created by Maid.new(): Maid:AddTask( task : table | function | RBXScriptConnection, customCleanupMethod : string | nil ) --> task [] Maid:Cleanup() --...
local censusData = loadfile(arg[1])() local rapidjson = require('rapidjson') print (rapidjson.encode(load("return " .. arg[2])()))
local Tool = {} function Tool.new(params) local params = params or {} local self = setmetatable(params, Tool) -- install nvim function self:load() local node_version = '16.x' print(textWarning('> Installing Node.js with NVM')) os.execute(string.format('nvm install node', node_version)) p...
txd = engineLoadTXD("comet.txd") engineImportTXD(txd, 480) dff = engineLoadDFF("comet.dff", 480) engineReplaceModel(dff, 480)
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: A6 local Method = { GET = 0, HEAD = 1, POST = 2, PUT = 3, DELETE = 4, MKCOL = 5, COPY = 6, MOVE = 7, OPTIONS = 8, PROPFIND = 9, PROPPATCH = 10, LOCK = 11, UNLOCK = 12, PATCH = 13...
local Binary, parent = torch.class('bnn.Binary','nn.Module') function Binary:updateOutput(input) if self.train then self.output:resizeAs(input):copy(input) self.output:sign() return self.output else return input:sign() end end function Binary:updateGradInput(input,gradOutpu...
------------------------------------------------------------------------ --[[ MultiCudaTensor ]]-- -- This experimental tensor is used by the NCEModule in dpnn to -- distribute weight/gradWeight over 2 gpus. -- The MCT only implements the small fraction of use-cases that the -- NCEModule requires. --------------------...
--- Font --- --- The Font object is the only type of object that is not attached to a parent widget; indeed, its purpose is to be shared between other objects that share font characteristics. In this way, changes to the Font object will update the text appearance of all text objects that have it set as their Font usin...
--new --BlackDragon -- --Trigger --Triggernumber,Type,Person --0,D, MANUEL50 --1,D, WISEGUY 100 --2,D, --3 -- --Startnode, Person --0, WISEGUY --50, MANUEL 1649 --100, WISEGUY --150, LUCY 1670 --200, LEONE 1671 --250, LUCKY 1672 -- --Items --Drogenpaket --Missionbase Eintrag --NPC0 NPC1 NPC2 NPC3 T...
local Settings = require(script.PlayFabSettings); local PlayFabAdmin = require(script.PlayFabAdmin); local PlayFabClient = require(script.PlayFabClient); local PlayFabMatchmaker = require(script.PlayFabMatchmaker); local PlayFabServer = require(script.PlayFabServer); local PlayFabAuthentication = require(script.PlayFa...
local SFW_DIR = "../thirdparty/simplefilewatcher" project "simplefilewatcher" kind "StaticLib" sysincludedirs { SFW_DIR .. "/include" } files { SFW_DIR .. "/include/**.h", SFW_DIR .. "/source/**.cpp" }
-- -- @copyright (c) 2015 Upstart Illustration LLC. All rights reserved. -- local AdRegisterNetworkRequest = Class() AdRegisterNetworkRequest.implements("bridge.BridgeRequestProtocol") function AdRegisterNetworkRequest.new(self) local network function self.init(_network) network = _network end ...
local AceConfig = LibStub("AceConfig-3.0") local AceConfigDialog = LibStub("AceConfigDialog-3.0") local _, addon = ... local utils = addon.utils local errors = addon.errors --[[------------------------------------------------------------------- -- Logic ----------------------------------------------------------------...
-- Copyright (c) 2018, xiedacon. test(Array.indexOf({ "a", "b", "c" }, "a"), 0) test(Array.indexOf({ "a", "b", "c" }, "b"), 1) test(Array.indexOf({ "a", "b", "c" }, "c"), 2) test(Array.indexOf({ "a", "b", "c" }, "b", 1), 1) test(Array.indexOf({ "a", "b", "c" }, "b", 2), -1) test(Array.indexOf({ "a", "b", "c" }, "b", -...
local _mouseListener = nil local _mouseCallbackMap = {} -- 鼠标移动事件 local _nodeZorderList = {} -- z 次序由高到底排列 -- 只处理无按键下的鼠标移动 local _curFocusedNode = nil local function _updateNodeZorderList() _nodeZorderList = {} local function searchNode(node) if not node:isVisible() then return ...
-- Commands vim.cmd [[ command! Format execute 'lua vim.lsp.buf.formatting()' ]]
base_research = nil base_research = {} local temp_res_1 = { Name = "GunTurretHealthUpgrade1", RequiredResearch = "", -- <list of prerequisite research items> RequiredSubSystems = "Research | AdvancedResearch & PlatformProduction", -- <li...
global = { httpLineEndTag = "<br>", httpMultiLineTag = "<br><br>", httpBoldTagBegin = "<b>"; httpBoldTagEnd = "</b>", summaryOkText = "Keyword hit count is ", detialOkText = "Below hit index is ", summaryFailText = "No Keyword match.", }
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- License -- ============================================================= --[[ > SSK is free to use. > SSK is free to edit. > ...
local t = Def.ActorFrame {}; t[#t+1] = Def.ActorFrame { InitCommand=cmd(Center); Def.Quad{ OnCommand=cmd(zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,color("0,0,0,1")); }; LoadActor("1") .. { OnCommand=cmd(diffusealpha,0;linear,0.5;diffusealpha,1;sleep,4;linear,0.5;diffusealpha,0); }; LoadActor("2") .. { O...
local JD = GameMain:GetMod("IZDCA") function JD:Hension() local Npc = me.npcObj if Npc.MaxLing <= 766000 then local Practice = Npc.PropertyMgr.Practice local Time = (Npc.MaxLing / Practice:BaseAbsorbEffectGold()) local Value = Practice:GoldEffectSpeed(Npc.Key) Practice:MakeGold...
local type = type local pairs = pairs local type = type local mrandom = math.random local sgsub = string.gsub local _M = {} function _M.clear_slash(s) s, _ = sgsub(s, "(/+)", "/") return s end function _M.is_table_empty(t) if t == nil or _G.next(t) == nil then return true else return...
-- "imports" local Point2D = require "Point2D" local Point3D = require "Point3D" local Position = require "Position" -- Testing Point2D class local point = Point2D:new(10, 20) print( point:getX(), point:getY() ) -- prints: 10 20 -- Testing Position class local pos = Position:new(10, 20) print...
--print("GUI: Parsing dialogue screen...") dofilepath("data:ui\\newui\\Styles\\HWRM_Style\\HWRMDefines.lua") dofilepath("data:scripts\\utilfunc.lua") dofilepath("data:scripts\\TMG_dialoguedata.lua") dofilepath("data:scripts\\TMG_interfacescripts.lua") dofilepath("player:TestMissionGrid\\TMG_tempdialoguestatus.lua") --...
local info = { version = 1.002, comment = "filetypes for textadept for context/metafun", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", } -- todo: add the same ones as we have in scite local...
#!/usr/bin/env luajit local ldb = require("lua-db") local clock = require("lua-db.clock") -- create input and output handler for application local cio = ldb.input_output.new_from_args({ default_mode = "sdl", sdl_width = 640, sdl_height = 480, limit_fps = 10 }, arg) cio:init() -- create drawbuffer of native displa...
local TimerResponseBuilder ={} local App42ResponseBuilder = require("App42-Lua-API.App42ResponseBuilder") local Timer = require("App42-Lua-API.Timer") function TimerResponseBuilder:buildResponse(json) local timer =Timer:new() local timerJSONObj = App42ResponseBuilder:getServiceJSONObject("timer",json) if ti...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Automation") local _G = _G local UnitAffectingCombat = _G.UnitAffectingCombat local AcceptResurrect = _G.AcceptResurrect local C_Timer_After = _G.C_Timer.After local UnitIsDeadOrGhost = _G.UnitIsDeadOrGhost local DoEmote = _G.DoEmote local GameLocale = ...
local responses = require "kong.tools.responses" local utils = require "kong.tools.utils" local sha512 = require("kong.plugins.keystone.sha512") local kutils = require ("kong.plugins.keystone.utils") local policies = require ("kong.plugins.keystone.policies") local function get_default_configuration(self, dao_factory)...
local Modules = script.Parent.Parent.Parent local Roact = require(Modules.Roact) local RoactRodux = require(Modules.RoactRodux) local Cryo = require(Modules.Cryo) local closePrompt = require(Modules.Plugin.Actions.closePrompt) local Serializer = require(Modules.Plugin.Utilities.Serializer) local Dialog = require(scrip...
local new_player = require('archetypes.player') local new_defensive = require('archetypes.defensivePlant') local new_valuable = require('archetypes.valuablePlant') local new_red_beetle = require('archetypes.red_beetle') local new_platform = require('archetypes.platform') local new_beetle_spawner = require('archetypes.b...
return { source = "airlock.ogg", volume = 1 }
--[[ Copyright (c) 2017 David-John Miller AKA Anoyomouse * Part of the Warehousing mod * * See License.txt in the project directory for license information. --]] local WAREHOUSING_VERSION = "{{VERSION}}"
function Any(t, predicate, iter) t = t or {} iter = iter or ipairs for k, v in iter(t) do if predicate(v, k) then return true end end return false end function Keys(t) local keys = {} for k, v in pairs(t) do table.insert(keys, k) end return keys...
echo(true) if spawn(arg[0]..[[\..\..\tppsss.exe]]) then timeout = 2 RC = expect("[y/n]") echo(false) if RC==0 then send("n\r") end expect("$$$>") --Online send("fetch\r") --Fetch to fail history without Steam cookie if not yet set expect("$$$>") send("setup\r") exp...
-- @4thAxis -- 08/04/2020 local module = {} -------------------------------------------------------------------- --------------------------- Imports ------------------------------ -------------------------------------------------------------------- local RunService = game:GetService("RunService") ----------------...
---@class CS.UnityEngine.WWWForm ---@field public headers CS.System.Collections.Generic.Dictionary_CS.System.String_CS.System.String ---@field public data Byte[] ---@type CS.UnityEngine.WWWForm CS.UnityEngine.WWWForm = { } ---@return CS.UnityEngine.WWWForm function CS.UnityEngine.WWWForm.New() end ---@overload fun(fie...
before_each(function() lor = _G.lor app = lor({ debug = true }) Request = _G.request Response = _G.response req = Request:new() res = Response:new() end) after_each(function() lor = nil app = nil Request = nil Response = nil req = nil res = nil end) -- remi...
-- -- c_key_auto_repeat.lua -- ------------------------------------------------------------- -- Keyboard auto-repeat ------------------------------------------------------------- KeyAutoRepeat = {} KeyAutoRepeat.repeatDelay = 500 -- Wait before 1st repeat KeyAutoRepeat.repeatRateInitial = 100 -- Delay between re...
style = ...
-- On map load writes information about the loaded region to gamelog.txt -- By Kurik Amudnil and Warmist (http://www.bay12forums.com/smf/index.php?topic=91166.msg4467072#msg4467072) local function write_gamelog(msg) local log = io.open('gamelog.txt', 'a') log:write(msg.."\n") log:close() end local functio...
--rivers-- mewmew made this -- require "modules.satellite_score" require "modules.spawners_contain_biters" require "modules.dynamic_landfill" require "modules.rocks_yield_ore" local event = require 'utils.event' local table_insert = table.insert local math_random = math.random local simplex_noise = require 'utils.si...
local present, betteresc = pcall(require, "better_escape") if not present then return end local config = { mapping = {"jk", "jj"}, timeout = vim.o.timeoutlen, clear_empty_lines = false, keys = "<Esc>" } betteresc.setup(config)
-- -- Copyright (C) 2021 Masatoshi Fukunaga -- -- 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, ...
--[[ -- All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or -- its licensors. -- -- For complete copyright and license terms please see the LICENSE at the root of this -- distribution (the "License"). All use of this software is governed by the License, -- or, if provided, by the license be...
local Object = require("third_party/classic") local Entity = require("modules/Entity") local Background = Entity:extend() function Background:new(img, x, y, w, h, vel, name, inb) Background.super.new(self, img, x, y, w, h, vel) self.name = name end function Background:get_x() return self.pos.x end function Backg...
local AddOn_Name, ns = ... local L = LibStub("AceLocale-3.0"):NewLocale(AddOn_Name,"enUS",true) L["Hide Helm"] = true L["Hide Shoulders"] = true L["Hide Back"] = true L["Hide Belt"] = true L["Global Defaults"] = true L["Character Defaults"] = true L["Use Global"] = true L["Expand Variants"] = true L["Coming soon!"] = ...
Auctionator.Config.Options.SMALL_TABS = "small_tabs" Auctionator.Config.Options.PET_TOOLTIPS = "pet_tooltips" Auctionator.Config.Options.AUTOSCAN = "autoscan_2" Auctionator.Config.Options.AUTOSCAN_INTERVAL = "autoscan_interval" Auctionator.Config.Options.SHOW_SELLING_PRICE_HISTORY = "show_selling_price_history" Auction...
--[[--------------------------------------------------------------------------- gName-Changer | CONFIGURATION This addon has been created & released for free by Gaby Steam : https://steamcommunity.com/id/EpicGaby ----------------...
local M = {} M.setup = function() local null_ls = require "null-ls" local b = null_ls.builtins null_ls.config { debounce = 150, sources = { b.formatting.black, -- b.formatting.isort, b.formatting.prettierd, b.diagnostics.shellcheck, b.formatting.stylua, }, } end retu...
local max_charge = {50000, 200000, 300000} local power_usage_per_node = {200, 500, 600} local S = technic.getter minetest.register_craft({ output = 'technic:mining_drill', recipe = { {'default:tin_ingot', 'technic:diamond_drill_head', 'default:tin_ingot'}, {'technic:stainless_steel_ingot', 'basic_ma...
data:extend{ -- global { type = "int-setting", name = "ltnm-stations-per-tick", setting_type = "runtime-global", minimum_value = 1, default_value = 10, order = "a" }, -- player { type = "bool-setting", name = "ltnm-show-alert-popups", setting_type = "runtime-per-user", ...
local vim = vim local util = require 'vim.lsp.util' local M = {} local config = { anchor = "NW", relative = "cursor", row = 1, col = 0, border = "rounded", winblend = 0, max_width = 120, max_height = 10, auto_choose = false, use_icons = pcall(require, 'nvim-web-devicons') } M.setup ...
local M = {} local config = require('windex.config') local utils = require('windex.utils') local maximize = require('windex.maximize') local terminal_maximized local terminal_restore_option local previous_buffer local terminal_buffer -- Toggle the native terminal. M.toggle = function(maximize_option, command) if v...
--[[ Copyright (C) 2019 Onset Roleplay Developers: * Logic_ Contributors: * Blue Mountains GmbH ]]-- -- Variables local ENTER_DISTANCE = 200.0 -- Functions function GetNearestVehicleAndDoor(passenger) passenger = passenger or false local x, y, z = GetPlayerLocation() local vx, vy, vz = 0.0, 0.0, 0.0 local cl...
local GUI = require("GUI") local system = require("System") local filesystem = require("Filesystem") local component = require("Component") local paths = require("Paths") local internet = require("Internet") local json = require("JSON") local cp = require("CubiPlayer") ------------------------------------------------...
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor. bantha_horns = { minimumLevel = 0, maximumLevel = 0, customObjectName = "", directObjectTemplate = "object/tangible/mission/quest_item/mat_rags_q3_needed.iff", craftingValues = {}, customizationStringNames = {}, customizationValues = {} } addLoo...
macros.enable_fn = function(next_char) return macros.token_filter(next_char, function(t, i) if t == '<name>' and i == 'fn' then return 'function' else return t, i end end) end load[[ @enable_fn fn add(x, y) return x + y end print(add(1, 2)) --> 3...
-- main scope local default = {} do local proxy = {} function default:__index(key) return proxy[key] end function default:__newindex(key, value) if proxy[key] ~= nil then error("Don't change that!") end proxy[key] = value end function proxy:foo() ...
ClassicLFGEventBus = {} ClassicLFGEventBus.__index = ClassicLFGEventBus setmetatable(ClassicLFGEventBus, { __call = function (cls, ...) return cls.new(...) end, }) function ClassicLFGEventBus.new(name, guild, level, class, talents) local self = setmetatable({}, ClassicLFGEventBus) self.Listene...
return { _type_ = 'Item', id = 1002, name = "道具2", desc = "道具1", num = 20, price = 30, }
FX_TacticalReport_LineColors_def = --RGBA { {floor(0.368417*255 + 0.5), floor(0.506779*255 + 0.5), floor(0.709798*255 + 0.5), 255}, {255, 255, 255, 255}, {floor(0.560181*255 + 0.5), floor(0.691569*255 + 0.5), floor(0.194885*255 + 0.5), 255}, {floor(0.922526*255 + 0.5), floor(0.385626*255 + 0.5), floor(0.209179...
local bump = require '/3rdModule/bump' local anim8 = require '/3rdModule/anim8' local SolidBox = require '/src/SolidBox' local Character = require '/src/Character' local Hero = require '/src/Hero' local image, animation local world = bump.newWorld() local toDrawList = {} debug = true function pointAt( ... ) -- body ...
--[[--ldoc desc @module LoginScene @author %s Date %s ]] local ViewScene = require("framework.scenes.ViewScene"); local LoginScene = class("LoginScene",ViewScene); local LoginCtr = import("LoginCtr") local VIEW_TYPE = { NONE = 1; LOGIN = 2; REGISTER = 3; } ---配置事件监听函数 LoginScene.s_eventFuncMap = { --...
return { ["comment"]="% generated by mtxrun --script pattern --convert", ["exceptions"]={ ["n"]=0, }, ["metadata"]={ ["mnemonic"]="ml", ["source"]="hyph-ml", ["texcomment"]="% These patterns originate from\ % https://github.com/santhoshtr/hyphenation/)\ % and have been adapted for hyph-utf8 (for use in T...
-- by Qige <qigezhao@gmail.com> -- 2017.08.22 -- DEBUG USE ONLY --local DBG = print local function DBG(msg) end local Cache = require 'arn.utils.cache' local Ccff = require 'arn.utils.ccff' local exec = Ccff.execute local sfmt = string.format local slen = string.len local ssub = string.sub local sgsub = ...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/LandMode/DefendStructure.lua#5 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * * -- * ** ...
add_sprites( renderer.add_texture('data/textures/sheets/hud_spritesheet.tga'), { {name="hud_0", x="230", y="0", w="30", h="38"}, {name="hud_1", x="196", y="41", w="26", h="37"}, {name="hud_2", x="55", y="98", w="32", h="38"}, {name="hud_3", x="239", y="80", w="28", h="38"}, {name="hud_4", x="238", y="122",...
local todo_comments = require 'todo-comments' todo_comments.setup { keywords = { FIX = { icon = ' ', color = 'error', alt = { 'FIXME', 'BUG', 'FIXIT', 'ISSUE' }, }, TODO = { icon = ' ', color = 'info' }, HACK = { icon = ' ', color = 'warning' }, WARN = { icon = ' ', color = ...
buffer = Procedural.TextureBuffer(128) Procedural.Labyrinth(buffer):process() tests:addTextureBuffer(buffer)
local Clock = {} return Clock
local ui = require("ui.main") local uie = require("ui.elements.main") local uiu = require("ui.utils") require("ui.elements.basic") require("ui.elements.layout") -- Basic view box. uie.add("scrollbox", { base = "group", interactive = 1, style = { barPadding = 0, }, wiggleroom = 4, ini...