content
stringlengths
5
1.05M
-- Lua bindings for /Volumes/Brume/Celedev CodeFlow/CodeFlow Sample Applications/SceneKitVehicle/SceneKitVehicle/AppDelegate.h -- Generated by Celedev® LuaBindingsGenerator on 2016-10-10 15:27:17 +0000 -- Objective C interface: @interface AppDelegate local AppDelegate = objc.classInterface ("AppDelegate") --[[ @inhe...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by apple. --- DateTime: 2018/9/14 上午12:09 --- --- @class InfoText : NewGameObject --- @param area Area --- @param x number --- @param y number --- @param opts table --- @field text string --- @field font Font --- @field color table --- @field sx numbe...
--[[ -- added by wsh @ 2017-12-05 -- 服务器数据 --]] local ServerItemData = { -- 服务器ID server_id = 0, -- 区域ID area_id = 0, -- 服务器状态:0-良好、1-普通、2-爆满、3-未开服 state = 0, -- 是否推荐 recommend = true, } ---@class ServerData:Singleton local ServerData = BaseClass("ServerData", Singleton) local ServerItem = DataClass("ServerIt...
--[[ -- © 2021 Emmanuel Lajeunesse -- DebuGui Documentation -- DebuGui : First point of Access -- NewWindow (GuiName, InitData) -- @Description: Creates a GuiWindow object and returns it -- @Parameters: GuiName (string) = Name of GuiWindow object internally InitData (table) = A bunch of data you c...
-- Dependencies local Math = require("engine.Math") local Video = require("engine.Video") local Renderer = require("game.editor.Renderer") local Widget = require("game.editor.dialog.Widget") -- Scroller class local Scroller = Widget:derive("Scroller") -- Constructor function Scroller:Scroller(target, x, y, w...
local Camera = require("game.Camera") local Class = require("game.Class") local M = Class.new() function M:init(engine, config) self.engine = assert(engine) config = config or {} self.camera = Camera.new(self.engine, config.camera) local viewportConfig = config.viewport or {} self.viewport = { x = vie...
data:extend({ { type = "fluid", name = "pollution", default_temperature = 15, max_temperature = 100, gas_temperature = 0, base_color = { r = 0.95, g = 0.9, b = 0.9 }, flow_color = { r = 0.95, g = 0.9, b = 0.9 }, icon = "__better-air-filtering__/graphic...
-- From: https://gist.github.com/HoraceBury/9431861 -- converts a table of {x,y,x,y,...} to points {x,y} function tableToPoints( tbl ) local pts = {} for i=1, #tbl-1, 2 do pts[#pts+1] = { x=tbl[i], y=tbl[i+1] } end return pts end function ordinal_numbers(n) local ordinal, digit = {"st", "nd", "rd...
return { name = "More Water Please", author = "evilnote4d", version = "0.6", data = [[ ############# ###########+# #@g##$#####~# # #####~# # uouo u~~~# # uouo u~~~# # ### ## #########~~## #### x x ## #### x xg ## #### x x ## ############# ]], }
--[[ ########################################################################## L E V E L E D I T O R Health warning: Not much work has gone into making this code beautiful. Read it at your own risk. ########################################################################## for k = 1, 16 do p...
object_intangible_beast_bm_reptilian_flier = object_intangible_beast_shared_bm_reptilian_flier:new { } ObjectTemplates:addTemplate(object_intangible_beast_bm_reptilian_flier, "object/intangible/beast/bm_reptilian_flier.iff")
return { tllcaps = { acceleration = 0.015, activatewhenbuilt = true, brakerate = 0.09, buildangle = 16384, buildcostenergy = 1005322, buildcostmetal = 79492, buildpic = "tllcaps.dds", buildtime = 550000, canattack = true, canguard = true, canmove = true, canpatrol = true, cansto...
local lg = love.graphics local function assertScalingMode(scalingMode) assert(scalingMode == "fit" or scalingMode == "floor", ('wrong scaling mode: %q, expected "fit" or "floor"'):format(scalingMode)) return scalingMode end local function clamp(x, min, max) if x > max then return max e...
return { { entity = 'player', n = 1 }, { entity = 'strongneg', n = 2 }, { entity = 'strongpos', n = 3 }, { entity = 'simplepos', n = 10 }, { entity = 'slowpos', n = 5 }, { entity = 'simpleneg', n = 10 }, { entity = 'large', n = 3 }, }
class 'Speedometer' function Speedometer:__init() self.enabled = true self.center_aligned = false self.unit = 1 -- 0: m/s 1: km/h 2: mph self.position = LocalPlayer:GetPosition() self:CreateSettings() self.speed_text_size = TextSize.Gigantic self.unit_text_size = TextSize.Huge self.zer...
local exports = {} exports.name = "remix" exports.version = "0.0.2" exports.description = "remix support plugin" exports.license = "The BSD 3-Clause License" exports.author = { name = "Kyle" } return exports
local core = {} local ffi = require("ffi") local platform = require("socket.platform") local enums = require("socket.enums") local helpers = require("socket.helpers") local select = require("socket.select") local library = platform.library ffi.cdef([[ typedef unsigned short sa_family_t; typedef unsigned int socklen...
--- --- Generated by MLN Team (https://www.immomo.com) --- Created by MLN Team. --- DateTime: 15-01-2020 17:35 --- --- --- 偏好设置的读写接口 --- ---@note 对应iOS系统的NSUserDefault,对应Android的SharePreference ---@class PreferenceUtils @parent class ---@public field name string ---@type PreferenceUtils PreferenceUtils= { _priveta...
local chaos = require "chaoticmods.libchaoticmods" local Class = require "Base.Class" local GainBias = require "Unit.ViewControl.GainBias" local Gate = require "Unit.ViewControl.Gate" local Unit = require "Unit" local LogisticMapUnit = Class {} LogisticMapUnit:include(Unit) function LogisticMapUnit:init(args) args...
local Class = Class or {} --Note: --only single inherent, we can just use setmetatable(NewClass, ParentClass) --local SubClass = Class(ParentClass) function Class:__call(InParentClass) --declare a new Class local NewClass = {} --construct function NewClass:new() local Obj = {} setmet...
--- 游戏心跳 --- @module Client Heartbeat, Client-side --- @copyright Lilith Games, Avatar Team --- @author Yuancheng Zhang local ClientHeartbeat = {} -- Localize global vars local FrameworkConfig = FrameworkConfig -- 心跳包间隔时间,单位:秒 local HEARTBEAT_DELTA = FrameworkConfig.Client.HeartbeatDelta -- 心跳阈值,单位:秒,范围定义如下: -- ...
config = {} -- How much ofter the player position is updated ? config.RefreshTime = 100 -- default sound format for interact config.interact_sound_file = "ogg" -- is emulator enabled ? config.interact_sound_enable = false -- how much close player has to be to the sound before starting updating position ? config.dis...
-- Copyright (c) 2014 Joseph Wallace -- Copyright (c) 2015 Phil Leblanc -- License: MIT - see LICENSE file ------------------------------------------------------------ -- 170612 SHA-3 padding fixed. -- (reported by Michael Rosenberg https://github.com/doomrobo) -- 150827 original code modified and optimized -- (mor...
XBar.Lng = { ["Ttip"]={ ["CfgBtn1"]="XBar 設定画面", ["CfgBtn2"]="左クリックで設定メニューを開く.\n右クリックでアドオンメニューを開く.\nホイールクリックで自動前進.", ["SysBtn1"]="システム機能", ["SysBtn2"]="左クリックでメインメニューを開く.\n右クリックでシステムメニューを開く.\n中クリックで ReloadUI() 実行.", ["DspBtn1"]="左クリックでワープスクロールを開く.\n右クリックでワールドマップを切り替えます.\n中クリックで画質を低いに設定する.", ["SndBtn1"]="左クリ...
local screenName = Var("LoadingScreen") or ... local topScreen assert(type(screenName) == "string", "Screen Name was missing when loading _mouse.lua") BUTTON:ResetButtonTable(screenName) local function cursorCheck() -- show cursor if in fullscreen if not PREFSMAN:GetPreference("Windowed") and not PREFSMAN:Get...
---------------------------- -- Deathrun -- -- Created by Skeyler.com -- ---------------------------- include("shared.lua") include("sh_maps.lua") include("sh_meta.lua") include("sh_library.lua") include("player_class/player_deathrun.lua") SS.Scoreboard.SortRight = true timer.Crea...
local M = {} local ext_drivers = {} local use_builtin = true function M.add_drivers(driver) table.insert(ext_drivers, driver) end function M.disable_builtin() use_builtin = false end function M.complete(ctx, cb) for _, driver in ipairs(ext_drivers) do driver.compfunc(ctx) end if not use_builtin then retu...
--- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- local TestCase = require "wLuaUnit.TestCase" --- -- Checks that the TemplateData.HitMissStatistics class works as expected. -- -- @type TestHitMissStatistics -- local TestHitMissStatistics = TestCase:extend() --- -- T...
//=============================================================================// // ___ ___ _ _ _ __ _ ___ ___ __ __ // |_ _|| __| / \ | \_/ | / _| / \ | o \ o \\ V / // | | | _| | o || \_/ | ( |_n| o || / / \ / // |_| |___||_n_||_| |_| \__/|_n_||_|\\_|\\ |_| 2007 // //===================...
local request = require "wsapi.request" local response = require "wsapi.response" local util = require "wsapi.util" local _, lfs = pcall(require, "lfs") local _, md5 = pcall(require, "md5") local R = require "mk.routes" local mk = { _NAME = "mk" } mk._NAME = "mk" mk._VERSION = "0.1" mk._COPYRIGHT = "Copyright (C) 2...
local KUI, E, L, V, P, G = unpack(select(2, ...)) local KUF = KUI:GetModule("KUIUnits") local DA = KUI:GetModule("DebuffsAlert") local KUIC = E:GetModule('KuiCastbar') local UF = E:GetModule("UnitFrames") -- Cache global variables -- Lua functions local _G = _G local type = type local pairs = pairs local tonumber = to...
local v,s,t,f = require("Vec2"),require("Size"),true,false return {"Array",{"Phyx.Rect","rect","Dynamic",v(0,-38),0,v(0,0),s(138,87),1,0.4,0.4,0,0,f,v(0,-10),f,f,0,{"Array",{"Phyx.SubDisk",v(0,39),68,1,0.4,0.4,f,0}},"Model/duality.clip|d1",v(0,32)}}
local System = require('eccles.System') local sleep if love ~= nil then sleep = love.timer.sleep else local time = os.time sleep = function(s) local start = time() while (time() - start) < s do local _ = nil end end end local IntervalSystem do local _parent_0 = System local _base_0 = { ...
-- 私人房进入弹框 local PrivateRoomEnterLayer = class(CommonGameLayer); PrivateRoomEnterLayer.Delegate = { onEnterLayerClose = "onEnterLayerClose", onCheckGameInstallStatus = "onCheckGameInstallStatus"; -- 判断是否安装 onCheckCanEnterRoom = "onCheckCanEnterRoom"; -- 判断满足进入条件 onShowEnterTipsView = "onShowEnte...
local find find = function(originalTable, findValue) for index, wrappedTable in pairs(originalTable) do if wrappedTable == findValue then return wrappedTable else return nil end end end local function getParentOf(tagVal) local recursiveLoop recursiveLoop = function(parent) for k, v in pairs(parent) d...
if (SERVER) then AddCSLuaFile() end --MP40 sound.Add({ name="Weapon_mp40.Single", volume = 1.0, pitch = {100,105}, sound = "weapons/mp40/mp40_fp.wav", level = 142, channel = CHAN_STATIC }) sound.Add({ name="Weapon_mp40.SingleSilenced", volume = 1.0, pitch = {100,105}, sound = "weapons/mp40/mp40_suppressed_fp...
ENT.Type = "anim" ENT.Base = "durgz_base" ENT.PrintName = "PCP" ENT.Nicknames = {"PCP"} ENT.OverdosePhrase = {"overdosed on"} ENT.Author = "cheesylard (inspired by ninjers)" ENT.Spawnable = false ENT.AdminSpawnable = false ENT.Information = "GODLIKE!!!" ENT.TRANSITION_TIME = 3 --function for high visuals if(CLIEN...
local function genCode(handler) local settings = handler.project:GetSettings("Publish").codeGeneration local codePkgName = handler:ToFilename(handler.pkg.name); --convert chinese to pinyin, remove special chars etc. local exportCodePath = handler.exportCodePath..'/'..codePkgName local namespaceName = co...
--- Coroutine wait utilities. -- -- 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...
-- Project: LOOP Class Library -- Release: 2.3 beta -- Title : Visualization of Lua Values -- Author : Renato Maia <maia@inf.puc-rio.br> local _G = require "_G" local select = _G.select local type = _G.type local next = _G.next local pairs = _G.pairs local rawget = _G.rawget local rawset = _G.rawset local setmetatabl...
return { fields = { remove = { type = "table", schema = { fields = { body = {type = "array", default = {}}, headers = {type = "array", default = {}}, querystring = {type = "array", default = {}} } } }, replace = { type = "table", ...
local gameCode = '' local target = '$HOSTNAME' local pointers = {} function getAllData(t, prevData) -- if prevData == nil, start empty, otherwise start with prevData local data = prevData or {} -- copy all the attributes from t for k,v in pairs(t) do data[k] = data[k] or v end -- get t...
--esmobs v1.3 --maikerumine --made for Extreme Survival game --Borrowed code from throwing: --https://github.com/PilzAdam/throwing --License: WTFPL -- axe (weapon) mobs:register_arrow(":mobs:axebullet", { visual = "sprite", visual_size = {x = 0.3, y = 0.3}, textures = {"default_tool_meseaxe.png"}, velocity = 7...
local ffi = require('ffi') local buffer = require('buffer') local mm = require('mm') ffi.cdef [[ typedef bool (*cmp_reader) (struct cmp_ctx_s *ctx, void *data, size_t limit); typedef bool (*cmp_skipper) (struct cmp_ctx_s *ctx, ...
ITEM.name = "Бинт" ITEM.desc = "Аспетический бинт для остановки кровотечения и предотвращения попадания в рану инфекции. При обычном кровотечении позволяет перевязать рану, при артериальном - перетянуть артерию. \n\nХАРАКТЕРИСТИКИ: \n-изделие первой помощи" ITEM.category = "Медицина" ITEM.price = 520 ITEM.weight =...
----------------------------------- -- Area: Northern San d'Oria -- NPC: Kasaroro -- Type: Consulate Representative -- Involved in Mission: 2-3 Windurst -- !pos -72 -3 34 231 ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/keyitems") require("scri...
-- water minetest.register_node("coloredwater:water_source_red", { description = "Red Water Source", inventory_image = minetest.inventorycube("coloredwater_water_base.png^[colorize:#ff000080:70]"), drawtype = "liquid", tiles = { { name = "coloredwater_water_source_animated_base.png^[colorize:#ff000080:70]", ...
workspace "SGL" startproject "TestProject" configurations { "Debug", "Release", } platforms { "x86", "x86_64" } filter "configurations:Debug" symbols "On" defines { "SGL_DEBUG" } filter "configurations:Release" optimize "On" ...
ys = ys or {} ys.Battle.SpellState = class("SpellState", ys.Battle.IUnitState) ys.Battle.SpellState.__name = "SpellState" ys.Battle.SpellState.Ctor = function (slot0) slot0.super.Ctor() end ys.Battle.SpellState.AddIdleState = function (slot0, slot1, slot2) slot1:OnIdleState() end ys.Battle.SpellState.AddMoveState ...
local nodefactory = require("core/nodefactory") local hb = require("justenoughharfbuzz") local ot = require("core/opentype-parser") local syms = require("packages/math/unicode-symbols") local atomType = syms.atomType local symbolDefaults = syms.symbolDefaults local elements = {} local mathMode = { display = 0, d...
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by xxw. --- DateTime: 2019/9/3 22:58 --- --print(package.path) --function max(a) -- local m = 1 -- local mi = a[m] -- for i, v in ipairs(a) do -- if v > mi -- then -- mi = v -- m = i -- end -- e...
local ADDON_NAME = ... CCDebugEnabled = false local function logString(stmt) print(ADDON_NAME .. ": " .. stmt) end -- https://stackoverflow.com/a/41943392 local function serializeTable(tbl, indent) if not indent then indent = 0 end local toprint = string.rep(" ", indent) .. "{\r\n" indent = indent + 2 ...
return { parse = 1, }
-- /****************************************************************************** -- Copyright (c) 2021 NovAtel Inc. -- -- 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 r...
require 'cairo' require './_main' function conky_main () if conky_window == nil then return end local surface = cairo_xlib_surface_create( conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height) local canvas = cairo_create(surface) local width = ...
local class = require 'middleclass' -- DIコンテナ local container = class 'container' -- 初期化 function container:initialize(t) self.bindings = t or {} end -- オーバーライド:呼び出し function container:__call(...) return self:get(...) end -- バインド function container:bind(from, to) self.bindings[from] = to return sel...
-- 自定义菜单栏 local frequency = 0.8 -- 速度以秒为单位来检查剪贴板的变化。如果你检查过于频繁,就会松性能,如果你检查稀疏松散的副本 local hist_size = 20 -- 历史记录的最大数量 local label_length = 70 local honor_clearcontent = false -- 如果任何应用程序清除纸板,我们也将它从历史中删除 https://groups.google.com/d/msg/hammerspoon/skEeypZHOmM/Tg8QnEj_N68J local pasteOnSelect = false local jumpcut = hs.men...
-- The Legend of Zelda: Four Swords Plus (NTSC-J v1.0) local core = require("games.core") return core.newGame(0x805256B8)
------------------------------------------------------------------------------ -- -- lgi Lua-side core module selector -- -- Copyright (c) 2010, 2011, 2015 Pavel Holejsovsky -- Licensed under the MIT license: -- http://www.opensource.org/licenses/mit-license.php -- --------------------------------------------------...
-- ====================== -- CONTEXT MENU RESPONDER -- ====================== Ext.RegisterNetListener("S7UCL::ContextMenu", function (channel, payload) local payload = Ext.JsonParse(payload) or {} Destringify(payload) -- Converts stringified numeric keys back into numbers if payload.actionID == 27701 t...
function draw_bloom(self) print("extra", 52,52,8) print("hot", 52,60,8) print("text", 52,68,8) bloom_tex = {} for y=1,128 do row = {} for x=1,128 do add(row, 0) end add(bloom_tex, row) end region_min=64-16 region_max=65+16 str = (1 + cos(self.theta)) / 8 for y=region_min,re...
local _G = _G; local ABP_4H = _G.ABP_4H; local debugOpts = { -- If set, extra debug messages will be printed. -- Verbose = true, -- If set, "BROADCAST" will get rerouted to "WHISPER" even in a group. -- PrivateComms = true, -- If set, some extra logging will be printed for comms. -- DebugComm...
object_tangible_loot_creature_loot_collections_space_capacitor_mark_01_corellian = object_tangible_loot_creature_loot_collections_space_shared_capacitor_mark_01_corellian:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_capacitor_mark_01_corellian, "object/tangible/loot/creatur...
if SERVER then AddCSLuaFile("ix_bird.lua") end if CLIENT then SWEP.Slot = 3 SWEP.SlotPos = 5 SWEP.DrawAmmo = false SWEP.PrintName = "Bird" SWEP.DrawCrosshair = true end SWEP.Author = "Arny" SWEP.Contact = "" SWEP.Category = "Bird" SWEP.Slot = 3 SWEP.SlotPos = 5 SWEP.Weight = 5 SWEP.Spawna...
local route_226_0 = DoorSlot("route_226","0") local route_226_0_hub = DoorSlotHub("route_226","0",route_226_0) route_226_0:setHubIcon(route_226_0_hub) local route_226_1 = DoorSlot("route_226","1") local route_226_1_hub = DoorSlotHub("route_226","1",route_226_1) route_226_1:setHubIcon(route_226_1_hub)
local core = require 'core' local util = require 'plugins.lxpm.util' local net = { git_status = { ok = "cloned", exists_or_not_found = "exists or not found", } } ---@param filename string ---@param url string ---@param callback fun(boolean, string) function net.download(filename, url, callback) core.add...
--[[ # Copyright 2001-2014 Cisco Systems, Inc. and/or its affiliates. All rights # reserved. # # This file contains proprietary Detector Content created by Cisco Systems, # Inc. or its affiliates ("Cisco") and is distributed under the GNU General # Public License, v2 (the "GPL"). This file may also include Detector Co...
local _, Addon = ... -- TODO: What happens if a raid member joins (CompactRaidFrame is created) while the UI is hidden and the player is in combat? -- 1x [ADDON_ACTION_BLOCKED] AddOn 'DynamicCam' tried to call the protected function 'CompactRaidFrame1:Show()'. -- For debugging: -- local debugFrameName = "StatusTr...
local ITEM = Clockwork.item:New(); ITEM.name = "Broken 357 Magnum"; ITEM.model = "models/weapons/w_357.mdl"; ITEM.weight = 2; ITEM.category = "Materials"; ITEM.description = "A small pistol, the coated silver is rusting away."; -- Called when a player drops the item. function ITEM:OnDrop(player, position) end; ITEM:...
--------------------------------------------- -- Syphon Discharge -- -- Family: Xzomit -- Type: Breath -- Can be dispelled: N/A -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Water Damage Knockback. --------------------------------------------- require("scripts/globals/settings") req...
-- engine bustedhelper equivalent for game project -- it adds ingame common module, since the original bustedhelper.lua -- is part of engine and therefore cannot reference game modules -- it also adds visual ingame add-on to simulate main providing it to any ingame scripts -- this is useful even when the utest doesn'...
ENT.Type = "anim" ENT.Base = "base_anim" util.PrecacheModel("models/sassafrass/icecube.mdl")
local ArrayList = require "arraylist" function test1() local a = ArrayList({1,2,3,4,5}) for k,v in ipairs(a) do print(k, v) end end function test2() local ArrayList = dofile("arraylist.lua") local a = ArrayList({1,2,3}) local b = ArrayList({7,8,9}) a:append(b) print(a) local new_a = a...
--[[ Copyright (c) 2015 Natanael Copa <ncopa@alpinelinux.org> Copyright (c) 2015 Eivind Uggedal <eivind@uggedal.com> This content is released under the MIT License. --]] net = require("net") json = require("cjson") local M = {} local function versions(self) local vers = {} local baseurl = "http://ftp.gnome.org/p...
-- Code created by Kwik - Copyright: kwiksher.com {{year}} -- Version: {{vers}} -- Project: {{ProjName}} -- local _Command = {} ----------------------------- ----------------------------- local _K = require "Application" function _Command:new() local command = {} -- function command:execute(params) lo...
Config = {} Config.Locale = 'en' Config.EnablePrice = true -- false = bikes for free Config.EnableEffects = false Config.EnableBlips = true Config.PriceTriBike = 89 Config.PriceScorcher = 99 Config.PriceCruiser = 129 Config.PriceBmx = 109 Config.TypeMarker = 1 Config....
object_tangible_loot_creature_loot_collections_aurebesh_tile_zerek = object_tangible_loot_creature_loot_collections_shared_aurebesh_tile_zerek:new { } ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_aurebesh_tile_zerek, "object/tangible/loot/creature/loot/collections/aurebesh_tile_zerek.iff...
local LibBagButton = Wheel:Set("LibBagButton", 57) if (not LibBagButton) then return end local LibEvent = Wheel("LibEvent") assert(LibEvent, "LibBagButton requires LibEvent to be loaded.") local LibMessage = Wheel("LibMessage") assert(LibMessage, "LibBagButton requires LibMessage to be loaded.") local LibClientBui...
local enable = gui.new_checkbox('Enable', 'translator', false); enable:set_tooltip('Enables translator') local translateRealtime = gui.new_checkbox('Enable realtime translation(Crashes)', 'translator_realtime', false); translateRealtime:set_tooltip('Translate realtime') local apiKey = gui.new_textbox("API-Key", "transl...
function EFFECT:Init( data ) self.Index = data:GetAttachment() self:SetModel("models/munitions/round_100mm_shot.mdl") if not ( self.Index ) then --self:Remove() self.Alive = false return end self.CreateTime = ACF.CurTime local Hit = data:GetScale() local Bullet = ACF.BulletEffect[self.Index...
-- from http://lua-users.org/wiki/RangeIterator -- range(start) returns an iterator from 1 to a (step = 1) -- range(start, stop) returns an iterator from a to b (step = 1) -- range(start, stop, step) returns an iterator from a to b, counting by step. range = function (i, to, inc) if i == nil then re...
local greenBeaconMK2 = table.deepcopy(data.raw["beacon"]["beacon"]) greenBeaconMK2.name = "green-beacon-mk2" greenBeaconMK2.minable.result = "green-beacon-mk2" greenBeaconMK2.allowed_effects = {"consumption"} greenBeaconMK2.energy_usage = "240kW" greenBeaconMK2.distribution_effectivity = 0.75 greenBeaconMK2.base_pictur...
----------------------------------- -- Area: Toraimarai Canal -- NPC: ??? -- Involved In Quest: The Root of the Problem -- !pos -137 16 151 169 ----------------------------------- function onTrade(player,npc,trade) end function onTrigger(player,npc) if player:getCharVar("rootProblem") == 2 then if player...
--[[ main.lua Constant specifics for the addon --]] local ADDON, Addon = ... Addon.ItemSlot = Addon.Item -- deprecated behavior Addon.Slash = 'bgn'
local mock = require "deftest.mock.mock" return function() local state = require "in.state" describe("state", function() before(function() mock.mock(msg) msg.post.replace(function() end) end) after(function() mock.unmock(msg) end) it("should post a message to acquire input focus", function() ...
local dt = require "decisiontree._env" local PSEUDOCOUNT = 1.0 local MIN_LOGISTIC = 1E-8 local MAX_LOGISTIC = 1.0 - MIN_LOGISTIC -- Create counts of possible results (last column of each row is the result) function dt.uniquecounts(counts, inputset, nclass) counts = counts or inputset.input.new() nclass = nclass...
local ComboBoxStyle = {} function ComboBoxStyle.set(c) ComboBox.setTextColor(c, 255, 255, 255, 255) ComboBox.setTextScale(c, 0.6, 0.6) ComboBox.setTextAlign(c, TextAlign.LEFT) ComboBox.setBackColor(c, 128, 128, 128, 128) ComboBox.setBackHoverColor(c, 128, 128, 128, 255) ComboBox.enable(c) end function Com...
----------------------------------------- -- ID: 14787 -- Item: Deadeye Earring -- Item Effect: Ranged Attack 20 -- Duration: 3 Minutes ----------------------------------------- require("scripts/globals/status") function onItemCheck(target) local effect = target:getStatusEffect(tpz.effect.ENCHANTMENT) if effec...
BLT = {} ModPath = "" function BLT:mockSetModPath(path) ModPath = path end function log(str) print(str) end
local sf = string.format local pipe = require('f.function.pipe') local function setup () -- show the cursorline only in the active window {{{1 local cursor_line_augroup = vim.api.nvim_create_augroup('CursorLine', {clear = true}) vim.api.nvim_create_autocmd({'BufEnter', 'WinEnter', 'BufWinEnter'}, { ...
-- Copyright 2021 - Deviap (deviap.com) -- Author(s): Sanjay-B(Sanjay) -- Creates the Settings page. local card = require("devgit:source/libraries/UI/components/cards/editApp.lua") local gridLayout = require("devgit:source/libraries/UI/constraints/controllers/gridLayout.lua") local tab = require("devgit:source/librarie...
local has_luasocket, socket = pcall(require, 'socket') local M = {} if has_luasocket then M.precision = 4 M.now = socket.gettime elseif os ~= nil then M.precision = 0 M.now = function() return os.time(os.date('*t')) end else error('No clock capability') end return M
--@name Swerve --@author --@shared --@include libraries/safenet.txt require("libraries/safenet.txt") safeNet = safeNet or net if SERVER then -- Server --@include libraries/minigame.txt --@include libraries/extralib.txt --@include libraries/chatlib.txt require("libraries/minigame.txt") requi...
--ZFUNC-matchesf-v1 local function matchesf( pattern ) --> func return function ( str ) local i = string.find( str, pattern ) return i ~= nil end end return matchesf
local API = {}; API.delay = function(s, callback) local Timer = CustomTypes:createType('Timer'); Timer:Start(s, callback); end; wait = API.delay; delay = API.delay; Time = API;
function CreatEnumTable(tbl, index) local enumtbl = {} local enumindex = index or 0 for i, v in ipairs(tbl) do enumtbl[v] = enumindex + i end return enumtbl end EntityTypes = { "kPlayerBullet", "kPlayerMissiles", "kEnemyBullet", "kPlayer", "kEnemy", "kEnemyF...
-- ---------------------------------------------------------------------------- -- A persistent timer for World Bosses. -- ---------------------------------------------------------------------------- -- addonName, addonTable = ...; local _, WBT = ...; local NameplateTracker = {}; WBT.NameplateTracker = NameplateTrac...
---@module output output = {text={},targetLine={},targetTiles={},potentialTargets={},cursorX=0,cursorY=0,mouseX=0,mouseY=0,buffer={},toDisp={{},{},{}},camera={x=1,y=1,xMod=0,yMod=0},shakeTimer=0,shakeDist=0} ---Add text to the output buffer --@param txt String. The text to print function output:out(txt) if action ~=...
----------------------------------------------------------------------------------------- -- -- title.lua -- ----------------------------------------------------------------------------------------- local widget = require "widget"; local composer = require( "composer" ) local scene = composer.newScene() local homePage...
vim.g.UltiSnipsExpandTrigger='<F2>' vim.g.UltiSnipsJumpForwardTrigger='<Tab>' vim.g.UltiSnipsJumpBackwardTrigger='<S-Tab>' vim.g.UltiSnipsSnippetDirectories={ 'UltiSnips', 'custom_snippets' } vim.g.UliSnipsListSnippets='<F2>' vim.g.UltiSnipsRemoveSelectModeMappings = 0 vim.g.UltiSnipsEditSplit='context' vim.g.UltiSnips...