content
stringlengths
5
1.05M
--!strict --[[ ManualResetEvent. Inspired by C#'s System.Threading.ManualResetEventSlim class. Think of it like a Luau-based mutable boolean where you can wait until it is set to true. METHODS: - Set() -- Sets the event's state to SET, and allows any code yielding from :Wait() to execute. - Reset() -- Sets ...
function balancedness( proposedclassid, oldclassid ) local playersInATeamCount, dualpm, toomanybg = 0, false, false local playersInATeam = {} for _, value in ipairs( getElementsByType( "player" ) ) do if value and isElement( value ) and getPlayerClassID( value ) then local team = classes[getPlayerClassID( va...
local abs, floor, sort, unpack = math.abs, math.floor, table.sort, table.unpack or unpack local function list_concat (left, right) return left:slice():push(right:unpack()) end return require 'construct.Collection' : derive(function (fn, List) function fn:append (value) self.data[self:length() + 1] = List:nil_val...
slot0 = class("USDefenceMainPage", import(".TemplatePage.PreviewTemplatePage")) slot0.OnInit = function (slot0) slot0.super.OnInit(slot0) slot0:initUI() end slot0.OnFirstFlush = function (slot0) slot0.super.OnFirstFlush(slot0) slot0:initData() slot0:submitFinishedTask() end slot0.OnDataSetting = function (slot0...
local eventBuffer = {} AddUIHandler('getNew', function(data, cb) local localBuf = eventBuffer eventBuffer = {} cb(localBuf) end) function printTo(channel, data) table.insert(eventBuffer, { meta = 'print', channel = channel, data = data }) PollUI() end function addCha...
local Component = require "component" local Controller = Component:extend() Controller.name = "Controller" Controller.inputControlled = true function Controller:initialize(actor) actor.inputControlled = self.inputControlled end return Controller
local _, private = ... if private.isClassic then return end --[[ Lua Globals ]] -- luacheck: globals --[[ Core ]] local Aurora = private.Aurora local Base = Aurora.Base local Skin = Aurora.Skin local Color = Aurora.Color --[[ do AddOns\Blizzard_AzeriteRespecUI.lua end ]] --[[ do AddOns\Blizzard_AzeriteRespecUI.xml ...
-- functions for dealing with symbol lines function parse_symbol_line(symbols) -- Parse a symbol defintion line -- Returns a table containing each symbol and an advance field -- Advance can be "note" or "bar" local symbol_list = split(symbols, '%s') local all_symbols = {} local symb...
local gears = require("gears") local wibox = require("wibox") local beautiful = require("beautiful") local dpi = beautiful.xresources.apply_dpi local temp_bar = wibox.widget { max_value = 100, background_color = beautiful.xcolor0 .. 55, color = beautiful.xcolor8 .. 55, shape = gears.shape.squircle, ...
for line in io.lines(arg[1]) do local sep, v, vk, res = line:find(";"), {}, {}, {} local n = tonumber(line:sub(sep+1)) for i in line:sub(1, sep):gmatch("%d+") do v[tonumber(i)], vk[#vk+1] = true, i end for i = 1, #vk do if 2*vk[i] < n and v[n-vk[i]] then res[#res+1] = vk[i] .. "," .. tostring(n-...
local wibox = require("wibox") local awful = require("awful") local naughty = require("naughty") function showEmailWidgetPopup() local save_offset = offset local popuptext = "test" naughty.notify({ title = "Unread emails", text = awful.util.pread("python /home/username/.config/awesome/getUnreadEmails.py"), t...
g, angle = love.graphics, 26 * math.pi / 180 wid, hei = g.getWidth(), g.getHeight() function rotate( x, y, a ) local s, c = math.sin( a ), math.cos( a ) local a, b = x * c - y * s, x * s + y * c return a, b end function branches( a, b, len, ang, dir ) len = len * .76 if len < 5 then return end g.setColor( l...
-- Example: Dispay modes -- Author: surtic function load() -- Get the display modes. modes = love.graphics.getModes() -- The table looks like this: -- modes = { -- { width = 800, height = 600 }, -- { width = 1024, height = 768 }, -- } local font = love.graphics.newFont(love.default_...
require('modules.Entities.Projectile') require('modules.Upgrades.Multishot') require('modules.Upgrades.DefaultShot') if(debug) then require('modules.UI.DebugMenu') require('modules.UI.Grid') end --Function for Player Input that isn't handled by the normal callbacks currently. May move later function...
local HttpService: HttpService = game:GetService("HttpService") local ReplicatedStorage: ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService: RunService = game:GetService("RunService") local types = require(script.Types) local t = types.t local like = types.like local RemoteLocation = "Portal" l...
local originy = 0 function onCreate() originy = getProperty('dad.y') end function opponentNoteHit(i,d,t,s) if not getPropertyFromGroup('notes',i,'gfNote') then setProperty('dad.y',originy+20) doTweenY('wifjwiaf','dad',originy,0.08,'linear') if getProperty('health') > 0.1 then setProperty('health',get...
local K, C = unpack(select(2, ...)) local Module = K:GetModule("Miscellaneous") -- Sourced: Tukui (Tukz) local _G = _G local date = _G.date local math_floor = _G.math.floor local string_format = _G.string.format local unpack = _G.unpack local CreateFrame = _G.CreateFrame local GetBattlefieldStatus = _G.GetBattlefiel...
-- Plain Text return { name = "Plain Text", lexer = 1, extensions = "txt" }
-------------------------------------------------------------------------------- --PerfectWorld6.lua map script (c)2010-2018 Rich Marinaccio --version 8 -------------------------------------------------------------------------------- --This map script uses various manipulations of Perlin noise to create --landform...
----------------------------------------- -- ID: 18159 -- Item: Demon Arrow -- Additional Effect: 12% Attack Down ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onAdditionalEffect(p...
--* Peripherals *-- local comperator = peripheral.wrap("top") --* Constants *-- local MAX_SIGNAL = 15 local INTERVAL = 8 local OUTPUT_SIDE = "bottom" local PAUSE_SIDE = "left" --* Variables *-- local i = INTERVAL --* Functions *-- --[[ returns a pretty timestamp for logging ]] function tim...
MODULE.ready = false function MODULE:init() if not self.ready then return end Hooks:PreHook(HUDStatsScreen, "_animate_show_stats_left_panel", "BTMShowNewTabMenu", function() self:show() end) Hooks:PostHook(HUDStatsScreen, "_animate_hide_stats_left_panel", "BTMHideNewTabMenu", function() self:hide() end) --...
-------------------------------------------------------------------------------- -- dsl-fsm/check.lua: DSL FSM validator -- This file is a part of le-dsl-fsm project -- Copyright (c) LogicEditor <info@logiceditor.com> -- Copyright (c) le-dsl-fsm authors -- See file `COPYRIGHT` for the license. -------------------------...
local helpers = require "spec.helpers" local kong_client = require "kong_client.spec.test_helpers" describe("Add Header", function() local kong_sdk, send_request, send_admin_request setup(function() --helpers.start_kong({ plugins = "add-header" }) assert(helpers.start_kong({ plugi...
--- === plugins.finalcutpro.application.manager === --- --- Registers Final Cut Pro with the Core Application Manager. local require = require local config = require "cp.config" local fcp = require "cp.apple.finalcutpro" local plugin = { id = "finalcutpro.application.manager", group ...
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. local argcheck = req...
local setmetatable = setmetatable local Dependency = {} local mt = {__index=Dependency} local function get_keys(self, master_key) local n = self.cache:get(master_key) if not n then return nil end local keys = {} for i=1, n do keys[i] = master_key .. tostring(i) end local ke...
local conf = require "conf" local path_util = require "utils.path_util" local exports = {} local pages = path_util.read_pages_folder() local function html_header() local nav = [[ <li> <span><a title="home page" class="" href="/">home</a></span> </li> ]] for k, v in ...
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' client_script "cablecar.lua" server_script "cablecar_controller.lua"
local addon = CreateFrame("CheckButton", "HoverFocusButton", nil, "SecureActionButtonTemplate") local blizz = {PlayerFrame,PetFrame,PartyMemberFrame1,PartyMemberFrame2,PartyMemberFrame3,PartyMemberFrame4,PartyMemberFrame1PetFrame,PartyMemberFrame2PetFrame,PartyMemberFrame3PetFrame,PartyMemberFrame4PetFrame,TargetFrame,...
SrcDir = os.getcwd() LibDir = os.getcwd().."/../ThirdParty/" function defineProject(projectType, useReflection, projectName) location (os.getcwd().."/Build") kind (projectType) language "C++" cppdialect "C++17" targetdir (os.getcwd().."/Binaries/") objdir (os.getcwd().."/Intermediates/".."%{cfg.longname}") ...
require("LoaderLastUpdated") require("LoaderSettings") -- Switch DNS to Google (from OpenDNS [default]) net.dns.setdnsserver("8.8.8.8",0) net.dns.setdnsserver("8.8.4.4",1) --[[ -- From http://www.esp8266.com/viewtopic.php?f=19&t=1149 local function download(path, filename, cb) tmr.wdclr() httpDL = require("httpDL...
------------------------------- RESOURCES COLLECTOR --------------------------- -- Entity -- local rcE = {} rcE.type = "container" rcE.name = "ResourcesCollector" rcE.icon = "__Mobile_Factory_Graphics__/graphics/entity/ResourcesCollectorI.png" rcE.icon_size = 256 rcE.flags = {"placeable-neutral", "player-creation", "n...
local opts = { root_dir = function(fname) local util = require "lspconfig.util" local root_files = { "pyproject.toml", "setup.py", "setup.cfg", "requirements.txt", "Pipfile", "manage.py", "pyrightconfig.json", } return util.root_pattern(unpack(root_files))(fna...
local E, L, V, P, G, _ = unpack(select(2, ...)); --Engine if C.combattext.enable ~= true then return end ---------------------------------------------------------------------------------------- -- The best way to add or delete spell is to go at www.wowhead.com, search for a spell. -- Example: Blizzard -> http://www.wo...
io.stdout:setvbuf'no';io.stderr:setvbuf'no'; package.path = "../src/lua/?.lua;" .. package.path -- Require lua-sendmail version > 0.1.4 local uv = require "lluv" local curl = require "lluv.curl" local sendmail = require "sendmail" -- Use basic request based on EventEmitter local function AsyncSendMail(queu...
local PLUGIN = PLUGIN PLUGIN.spawnedContainers = PLUGIN.spawnedContainers or {} PLUGIN.spawners = PLUGIN.spawners or {} PLUGIN.curTime = 1 function PLUGIN:Think() if ix.config.Get("lootEnabled") and self.spawners != nil then if (CurTime() < (self.curTime + ix.config.Get("lootContainerTime"))) then return ...
return class("SummerRemakePTPage", import(".TemplatePage.PtTemplatePage"))
-- Copyright 2014-2015 Greentwip. All Rights Reserved. local armature = class("armature") function armature:point_from_string(point_string) local str_point = {} for str in string.gmatch(point_string, "(-*[0-9]+.[0-9]+)") do str_point[#str_point + 1] = tonumber(str) end local point = cc.p(st...
-- limit_frequency_token_bucket.lua -- 令牌桶限流,允许延迟处理,允许突发流量 -- rate: 120/min,最大通过请求 max <= 120次 , 请求分流到每个500ms时刻执行。 -- 每个0-500ms时间窗内,最大允许通过 1+10 个请求,此max=11个请求可同时执行,无需等待。 -- 对请求流出进行规整。 local limit_req = require "resty.limit.req" -- 这里设置rate=2/s,漏桶桶容量设置为60,允许突发流量,突发流量将直接发送 -- 因为resty.limit.req代码中控制粒度为毫秒级别,所以可以做到毫秒级别的...
if Settings == nil then Settings = { Enabled = true, ChanceZone = 5, ChatType = 'SAY' } end local function SpeakZone() local message = string.format("Never thought I'd find myself back in %s again.", GetZoneText()) if Settings.ChatType == 'PRIVATE' then print(message) else SendChatMessage(message, Setti...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Balakaf -- Type: Standard NPC -- !pos 25.505 -6.999 126.478 50 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(515) end function onEventUpdate(player, csid, op...
local PANEL = {} function PANEL:Init() self:SetTitle("PointShop Color Chooser") self:SetSize(300, 300) self:SetBackgroundBlur(true) self:SetDrawOnTop(true) self.colorpicker = vgui.Create('DColorMixer', self) --colorpicker:DockMargin(0, 0, 0, 60) self.colorpicker:Dock(FILL) local done = vgui.Create('DButt...
local hyper = {"ctrl", "alt", "cmd"} -- Smart configuration reloading hs.loadSpoon("ReloadConfiguration") spoon.ReloadConfiguration:start() -- Fokus hs.loadSpoon("Fokus") spoon.Fokus:init() -- Pomodoro hs.loadSpoon("Pomodoro") spoon.Pomodoro:init() -- Miro's windows manager. hs.loadSpoon("MiroWindowsManager") hs.w...
function readfile(erase) file = io.open("file.txt", "r") io.input(file) text = io.read() io.close() if erase == true: file = io.open("file.txt", "w+") io.output(file) io.write("") io.close() return text end function writefile(text) file = io.open("file.txt", "w+") io.output(file) io.w...
local o = vim.opt o.ignorecase = true -- Ignore case in search patterns o.smartcase = true -- Ignore case in search patterns if no upper case o.number = true -- Show line numbers o.relativenumber = true -- Use relative line numbers o.hlsearch = true ...
-- ===================================================================== -- -- nvim-telescope.lua - -- -- Created by liubang on 2020/12/13 13:38 -- Last Modified: 2020/12/13 13:38 -- -- ===================================================================== local actions = require('telescope.actions') local telescope = ...
--- -- @module ScaleModel local ScaleModel = {} local CLASS_NAME_TO_MIN_SIZE = { ["TrussPart"] = Vector3.new(2, 2, 2); ["UnionOperation"] = Vector3.new(0, 0, 0); } local MIN_PART_SIZE = Vector3.new(0.05, 0.05, 0.05) function ScaleModel.scalePartSize(part, scale) local partSize = part.Size local mesh = part:Fi...
-- Test argument list commands local helpers = require('test.functional.helpers')(after_each) local clear, command, eq = helpers.clear, helpers.command, helpers.eq local eval, exc_exec, neq = helpers.eval, helpers.exc_exec, helpers.neq if helpers.pending_win32(pending) then return end describe('argument list command...
-- Importing libraries local gears = require('gears') local awful = require('awful') local wibox = require('wibox') require('awful.autofocus') local beautiful = require('beautiful') local keys = require('keys') -- Variables theme_path = string.format('%s/.config/awesome/themes/%s.lua', os.getenv('HOME'), 'default') be...
local elementAlpha = {} --Таблица сохранения альфа-канала local funTab = {} --Таблица, в которую сохраняются функции по событиям ------------------------------------------------------------ --====================РАБОТА С КЛЮЧАМИ====================-- ------------------------------------------------------------ --Клю...
--Prevent imposters function scanForTag(old,new) if type(string.find(string.lower(new),"ech0",1,true)) == "number" or type(string.find(string.lower(new),"Ech0",1,true)) == "number" or type(string.find(string.lower(new),"Echo",1,true)) == "number" or type(string.find(string.lower(new),"echo",1,true)) == "number" or typ...
local api = require("fromage") local client = api() local enumerations = client.enumerations() coroutine.wrap(function() client.connect("Username#0000", "password") if client.isConnected() then print("Editing profile:") print(client.updateProfile({ community = enumerations.community.en, birthday = "10/10...
ExportShadingTexturesCommand = Command:extends{} ExportShadingTexturesCommand.className = "ExportShadingTexturesCommand" function ExportShadingTexturesCommand:init(path) self.path = path end local function ExportShadingTextures(path) for texType, shadingTexObj in pairs(SB.model.textureManager.shadingTextures)...
ITEM.name = "Breach Charge" ITEM.model = "models/props_c17/consolebox05a.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.category = "Equipment" ITEM.price = 600 ITEM.desc = "An explosive charged that can be mounted onto a locked door allowing you to breach it." -- You can use hunger table? i guess? ITEM.functions = ITEM.fun...
local dlt = require('dlt._env') -- Code adapted from https://github.com/soumith/dcgan.torch local function getClosures(net,sbn) local function Conv(nIn,nOut) net:add(nn.SpatialConvolution(nIn,nOut,4,4,2,2,1,1)) end local function FConv(nIn,nOut) net:add(nn.SpatialFullConvolution(nIn,nOut,4...
---- -- -- handler = {} handler["^/$"] = "index.lua" handler["^/index.html$"] = "index.lua" handler["^/request1$"] = "misc/request1.lua"
-- USAGE -- --[[ spacer.create_space('space1', { { name='id', type='num' }, -- 1 { name='name', type='str' }, -- 2 { name='type', type='str' }, -- 3 { name='status', type='str' }, -- 4 { name='extra', type='*' }, -- 5 }, { { name = 'primary', type = 'hash...
return PlaceObj("ModDef", { "title", "Terraforming Existing Saves", "id", "ChoGGi_TerraformingExistingSaves", "steam_id", "1743037670", "pops_any_uuid", "28d1b7b6-c0ff-4ed0-8d10-a254a3e773e0", "lua_revision", 1007000, -- Picard "version", 4, "version_major", 0, "version_minor", 4, "image", "Preview.png", "aut...
local Cookie = include("cookie", ...) local platform = include("platform", ...) local cached = include(".db.cached", ...) local uuid = include(".lib.uuid", ...) local kMSessionKey = "mrsid" local kMSessionTimeout = 3600*24*365 local function get_data_from_cache(sessionid) return cached.get(sessionid) ...
att.PrintName = "Foregrip" att.Icon = Material("vgui/fas2atts/foregrip") att.Description = "A vertical forward grip or foregrip is a vertical pistol grip mounted on the fore-end of a long-barrel firearm, designed for grasping by the frontal support hand." att.AutoStats = true att.Slot = "fas2_grip" att.SortOrder = 1...
object_mobile_tcg_familiar_snow_speeder = object_mobile_shared_tcg_familiar_snow_speeder:new { } ObjectTemplates:addTemplate(object_mobile_tcg_familiar_snow_speeder, "object/mobile/tcg_familiar_snow_speeder.iff")
color = {} color["0"] = colors.white color["1"] = colors.orange color["2"] = colors.magenta color["3"] = colors.lightBlue color["4"] = colors.yellow color["5"] = colors.lime color["6"] = colors.pink color["7"] = colors.gray color["8"] = colors.lightGray color["9"] = colors.cyan color["a"] = colors.purple color["d"] =...
--[[ Description: Handles player-related Admin events/checks. Author: Sceleratis Date: 1/8/2022 --]] local Root, Utilities, Service, Package; return { Init = function(cRoot, cPackage) Root = cRoot Package = cPackage Utilities = Root.Utilities Service = Root.Utilities.Services --// Do init Root.Cor...
-- Creator: -- AltiV, Decemeber 28th, 2019 LinkLuaModifier("modifier_generic_orb_effect_lua", "components/modifiers/generic/modifier_generic_orb_effect_lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_generic_charges", "components/modifiers/generic/modifier_generic_charges", LUA_MODIFIER_MOTION_NONE) Link...
local lg = love.graphics testlayer = {} testlayer["WATER"] = {26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26, 26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26, 26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26, 26,26,26,26,26,26,26,26,26,26,...
local api = vim.api return { ---VIM augroup command helper --- augroup = function(group_name, definitions) api.nvim_command("augroup " .. group_name) api.nvim_command "autocmd!" for _, def in ipairs(definitions) do if def then api.nvim_command("autocmd " .. def) end end a...
--==[ Ayu ]==-- -- Config require('ayu').setup({ mirage = false, overrides = {}, }) vim.cmd[[colorscheme ayu-dark]]
-- -------------------- -- TellMeWhen -- Originally by Nephthys of Hyjal <lieandswell@yahoo.com> -- Other contributions by: -- Sweetmms of Blackrock, Oozebull of Twisting Nether, Oodyboo of Mug'thol, -- Banjankri of Blackrock, Predeter of Proudmoore, Xenyr of Aszune -- Currently maintained by -- Cybeloras of Aerie ...
local states = require 'states' local fonts = require 'fonts' local sounds = require 'sounds' local input = require 'input' local menu --GUIMenu module local fixedTimer = 0 local FIXED_INTERVAL = 1 / 60 -- Window settings local WW = 800 --Unit width local WH = 600 --Unit height WS = 1 --Window scale function love.loa...
-- There is simplified implementation of JS written in LUA. -- The main purpose is to give an insight of what JS is from inside. ----------------------------------------------------------------------------------------------------------------------------------------------- -- ...
------------------------------------------------------------------------ --[[ SaveToFile ]]-- -- Strategy. Not an Observer. -- Saves version of the subject with the lowest error ------------------------------------------------------------------------ local SaveToFile = torch.class("dp.SaveToFile") SaveToFile.isSaveToFi...
-- Tree Monster (or Tree Gollum) by PilzAdam mobs:register_mob("mobs:tree_monster", { -- animal, monster, npc, barbarian type = "monster", -- aggressive, deals 9 damage to player when hit passive = false, attack_type = "dogfight", pathfinding = false, reach = 2, damage = 5, -- health & armor hp_min = 20, h...
id = 'V-38643' severity = 'medium' weight = 10.0 title = 'There must be no world-writable files on the system.' description = 'Data in world-writable files can be modified by any user on the system. In almost all circumstances, files can be configured using a combination of user and group permissions to support whateve...
local exerciseTraining = Action() function exerciseTraining.onUse(player, item, fromPosition, target, toPosition, isHotkey) local playerId = player:getId() local targetId = target:getId() if target:isItem() and (table.contains(HouseDummies, targetId) or table.contains(FreeDummies, targetId)) then if onExerciseTr...
--[[---------------------------------------------------------------------------- FtpUploadExportServiceProvider.lua Export service provider description for Lightroom FtpUpload uploader -------------------------------------------------------------------------------- ADOBE SYSTEMS INCORPORATED Copyright 2007 Adobe Sy...
-- Copyright (c) 2015-2017 Lymia Alusyia <lymia@lymiahugs.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, co...
local unpack = table.unpack or unpack local mobdebug = require "mobdebug" local json = require "json" function lines_from(file) local f = assert(io.open(file, "r")) local t = f:read("*all") f:close() return t end local function serialize(value, options) return mobdebug.line(value, options) end function Fix...
----------------------------------- -- Ability: Eagle Eye Shot -- Delivers a powerful and accurate ranged attack. -- Obtained: Ranger Level 1 -- Recast Time: 1:00:00 -- Duration: Instant ----------------------------------- require("scripts/globals/weaponskills") require("scripts/globals/settings") require("scripts/glob...
vim.g.autoload_last_session = false vim.g.autosave_last_session = false
svar = {} local svars = {} function svar.get(var) return svars[var] or os.getenv(var) end function svar.set(var, val) svars[var] = tostring(val) end function svar.get_all() return svars end
EnterGame = { } -- private variables local loadBox local enterGame local enterGameButton local clientBox local protocolLogin local server = nil local versionsFound = false local customServerSelectorPanel local serverSelectorPanel local serverSelector local clientVersionSelector local serverHostTextEdit local remember...
require("prototypes.entity.ship") table.insert(data.raw["technology"]["automobilism"].effects, {type="unlock-recipe", recipe="basic-ship"})
function Client_PresentSettingsUI(rootParent) local vert = UI.CreateVerticalLayoutGroup(rootParent); UI.CreateLabel(vert).SetText('Overlord Castle Bonus Value:' .. Mod.Settings.BonusValue); UI.CreateLabel(vert).SetText('Overlord Castle Troop Value:' .. Mod.Settings.TroopValue); UI.CreateLabel(vert).SetText('Maxi...
require('mono.utils.mono-publib') require('mono.utils.mono-error') require('mono.metadata.object-forward') ffi.cdef [[ typedef struct _MonoAssembly MonoAssembly; typedef struct _MonoAssemblyName MonoAssemblyName; typedef struct _MonoTableInfo MonoTableInfo; typedef enum { MONO_IMAGE_OK, MONO_IMAGE_ERROR_ERRNO, MO...
local invitational_pin_map = require("qnFiles/qnPlist/hall/invitational_pin"); local invitational_calendar= { name="invitational_calendar",type=0,typeName="View",time=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignLeft, { name="shieldBg",type=1,typeName="Image",time=0...
ID = "Shader" shaders = { develop2d_color = { vs = { "data/shader/develop.hlsl", "TestVS" }, ps = { "data/shader/develop.hlsl", "TestPS" }, }, }
-- -- Created by: Cyril. -- Created at: 15/6/20 下午2:37 -- Email: houshoushuai@gmail.com -- local assert, error = assert, error local pairs = pairs local getmetatable = getmetatable local type = type local tonumber, tostring = tonumber, tostring local t_insert = table.insert local t_concat = table.concat local strform...
--------------------------------- -- Calculates the n-th Fibonacci -- By Donno <darkdonno@gmail.com --------------------------------- function fib(n) -- Calcuates the n-th Fibonacci number. -- -- \param n the n-th number in the Fibonacci sequence -- \return the n-th Fibonacci number -- local last = 0 loc...
ModalButton = {} ModalButton.__index = ModalButton function ModalButton:Create(params) local this = { mTexture = Texture.Find(params.texture), mTextureOn = Texture.Find(params.textureOn), mBaseSprite = Sprite.Create(), mInFocus = false, OnGainFocus = params.OnGainFocus or...
----------------------------------- -- Area: Bastok Mines -- NPC: Vaghron -- Type: Adventurer's Assistant -- !pos -39.162 -1 -92.147 234 ----------------------------------- require("scripts/globals/quests") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) ...
local function carefulSet(bad_cells, x, y) if bad_cells[x] == nil then bad_cells[x] = {} end bad_cells[x][y] = true end local function carefulGet(bad_cells, x, y) if bad_cells[x] then return bad_cells[x][y] end return false end local function getGridPos(x, y) return x / push:getWidth() * game.map.width, y /...
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
-------------------------------------------------------------------------------- -- Module Declaration -- local mod, CL = BigWigs:NewBoss("Ancient Protectors", 1279, 1207) if not mod then return end mod:RegisterEnableMob(83894, 83892, 83893) -- Dulhu, Life Warden Gola, Earthshaper Telu mod.engageId = 1757 mod.respawn...
local module = {} function module:Init(settingsGui) settingsGui.UI.Container.UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() settingsGui.UI.Container.CanvasSize = UDim2.new(0, 0, 0, math.ceil(settingsGui.UI.Container.UIListLayout.AbsoluteContentSize.Y) + 25) settingsGui.UI.Scroller...
-- oooooo v1.9.1 -- 6 x digital tape loops -- -- llllllll.co/t/oooooo -- -- -- -- ▼ instructions below ▼ -- -- E1 selects loops -- E2 changes mode/parameter -- -- in tape mode: -- K2 stops -- K2 again resets -- K3 plays -- K1+K2 clears -- K1+K2 again resets -- K1+K3 primes recording -- K1+K3 again records -- -- in o...
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ahaadah -- !pos -70 -6 105 50 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(870) end function onEventUpdate(player, csid, option) end function onEventFinish...
------------------- -- CONFIGURATION -- ------------------- v = game.Players.LocalPlayer WorkspaceParent = false Bin = Instance.new("HopperBin",v.Backpack) Bin.Name = "GUI" Bin.Selected:connect(function(mouse) ----------------------- -- GUI Establishment -- ----------------------- Gui = Instance.new("Scre...
local Reducers = script.Parent local CurrentCharacter = require(Reducers.CurrentCharacter) local PlayingSwimAnimation = require(Reducers.PlayingSwimAnimation) local CharacterModelVersion = require(Reducers.CharacterModelVersion) local TryOnCharacterModelVersion = require(Reducers.TryOnCharacterModelVersion) return fu...
function mapblock_lib.set_param2(node_param2_map, mapblock) local replacement_id_map = {} for key, value in pairs(node_param2_map) do local key_id = minetest.get_content_id(key) replacement_id_map[key_id] = value end for i, node_id in ipairs(mapblock.node_ids) do if replacement_id_map[node_id] ~= nil then ...