content
stringlengths
5
1.05M
DEFAULT_CHAT_FRAME:AddMessage('[IncompleteAchievements] "Incomplete" option has been selected by default in achievements dropdown menu', 1,1,0) local frame = CreateFrame ("Button", "IncompleteAchievementsFrame", UIParent) frame:RegisterEvent("ADDON_LOADED") frame:SetScript("OnEvent", function (self,event,arg1,...) if ...
-- test reconnecting a socket, should return an error "already connected" -- test based on Windows behaviour, see comments in `copas.connect()` function local copas = require("copas") local socket = require("socket") local skt = copas.wrap(socket.tcp()) local done = false copas.addthread(function() copas.sleep(0) ...
-- -- Name: monodevelop/monodevelop.lua -- Purpose: Define the MonoDevelop action. -- Author: Manu Evans -- Created: 2013/10/28 -- Copyright: (c) 2013-2015 Manu Evans and the Premake project -- local p = premake p.modules.monodevelop = {} local m = p.modules.monodevelop m._VERSION = p._VER...
WADemoLuaAlertView = {} function WADemoLuaAlertView.show(title,message,cancelButtonTitle,otherButtonTitles,cancelFunc,otherFunc) local param = {title = title,message = message,cancelButtonTitle = cancelButtonTitle,otherButtonTitles = otherButtonTitles,cancelFunc = cancelFunc ,otherFunc = otherFunc} luaoc.callStatic...
AuctionatorItemKeyCellTemplateMixin = CreateFromMixins(AuctionatorCellMixin, AuctionatorRetailImportTableBuilderCellMixin) function AuctionatorItemKeyCellTemplateMixin:Init() self.Text:SetJustifyH("LEFT") end function AuctionatorItemKeyCellTemplateMixin:Populate(rowData, index) AuctionatorCellMixin.Populate(self,...
--[[ Placeholder page for SettingsHub that manages top level Roact view This page is a container and controller for the Roact app --]] local CoreGui = game:GetService("CoreGui") local RobloxGui = CoreGui:WaitForChild("RobloxGui") local ShareGame = RobloxGui.Modules.Settings.Pages.ShareGame local Constants = requi...
--[[ Provides: autocrafting, resource limits, on-demand crafting. Turtle crafting: 1. The turtle must have a crafting table equipped. 2. Equip the turtle with an introspection module. ]]-- _G.requireInjector(_ENV) local Config = require('config') local Event = require('event') local Milo =...
class 'DateTime' function DateTime:__init() self.CLtime = os.date( "%X" ) self.CLdate = os.date("%d/%m/%Y") Events:Subscribe( "Render", self, self.Render ) end function DateTime:Render() if Game:GetState() ~= GUIState.Game or Game:GetSetting(4) <= 1 then return end if not LocalPlayer:GetValue( "Clock...
-- Copyright 2017 Yousong Zhou <yszhou4tech@gmail.com> -- Licensed to the public under the Apache License 2.0. local ss = require("luci.model.shadowsocks-libev") local m, s, o m = Map("shadowsocks-libev", translate("Redir Rules"), translate("On this page you can configure how traffics are to be \ forwarded to ss...
local replicatedStorage = game:GetService("ReplicatedStorage") local gui = script.Parent.Parent local message = replicatedStorage.Message local remaining = replicatedStorage.Remaining local display = {} local messageLabel = gui:WaitForChild("Message") local remainingLabel = gui:WaitForChild("Remaining") mess...
require('constants') local base_hp = get_creature_base_hp(PLAYER_ID) local base_ap = get_creature_base_ap(PLAYER_ID) set_creature_current_hp(PLAYER_ID, base_hp) set_creature_current_ap(PLAYER_ID, base_ap) remove_negative_statuses_from_creature(PLAYER_ID) add_message_with_pause("FAIRY_SPIRIT_HEAL_SID") clea...
local plane local spritesLOD = { bottom = dxCreateTexture("assets/plane_bottom.png"), side = dxCreateTexture("assets/plane_side.png"), tail = dxCreateTexture("assets/plane_tail.png") } local planeLODColor = tocolor(255, 255, 255, 255) local startTime = 0 local velocityX = 0 local velocityY = 0 local sta...
local M = {} local system_name = sys.get_sys_info().system_name local is_debug = sys.get_engine_info().is_debug M.platform = {} M.platform.name = system_name M.platform.is_desktop = system_name == 'Darwin' or system_name == 'Linux' or system_name == 'Windows' or system_name == 'HTML5' M.platform.is_html5 = system_nam...
nnoremap("<Leader>w", ":w<CR>") nnoremap("<Leader>W", ":wa<CR>") vnoremap("<Leader>w", "<C-c>:w<CR>") inoremap("<Leader>w", "<C-o>:w<CR>") nnoremap("<Leader>q", ":q<CR>") vnoremap("<Leader>q", "<C-c>:q<CR>") inoremap("<Leader>q", "<C-o>:q<CR>") nnoremap("<Leader>Q", ":bdelete!<CR>") nnoremap("<Leader>R", ":edit!<CR>") ...
-- find the packages: package.path = '../utf8.lua/?.lua;../?.lua;' .. package.path zmd = require 'zmdocument' -- run test on authors print('% --- Test authors') print('% one author:') print(zmd.formatAuthorsBase('Eskimon', '', false)) print('% three authors:') print(zmd.formatAuthorsBase('Karnaj, Heziode, pierre_24',...
ENT.Type = "anim" ENT.Base = "base_rd3_entity" ENT.PrintName = "Heavy Water Electrolyzer" list.Set("LSEntOverlayText", "generator_liquid_hvywater", { HasOOO = true, resnames = {"energy", "water"}, genresnames = {"heavy water"} })
function User:Create(data) return setmetatable(data, User) end
material_science = {} local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) -- Settings dofile(modpath .. "/settings.lua") -- Materials dofile(modpath .. "/materials.lua") -- Recipes dofile(modpath .. "/recipes.lua") -- Machines dofile(modpath .. "/blocks/alkali_metal_extractor....
--[[ Copyright (c) 2016-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 tnt ...
-- language support local S = ethereal.intllib -- stair mods active local stairs_redo = stairs and stairs.mod and stairs.mod == "redo" local stairs_plus = minetest.global_exists("stairsplus") -- stair selection function local do_stair = function(description, name, node, groups, texture, sound) if stairs_redo then ...
addEvent ( "VDBGPhone:App->Vehicles:onPanelOpened", true ) addEventHandler ( "VDBGPhone:App->Vehicles:onPanelOpened", root, function ( ) local cars = exports.VDBGVehicles:getAccountVehicles ( getAccountName ( getPlayerAccount ( source ) ) ) triggerClientEvent ( source, "VDBGPhone:App->Vehicles:onClientGetVehicles", ...
function love.conf(t) t.window.width = 15 * 20 t.window.height = 15 * 15 t.window.title = "Snake" end
panshee_elder = Creature:new { objectName = "@mob/creature_names:panshee_elder", randomNameType = NAME_GENERIC, randomNameTag = true, socialGroup = "panshee_tribe", faction = "panshee_tribe", level = 46, chanceHit = 0.48, damageMin = 375, damageMax = 460, baseXp = 4461, baseHAM = 9800, baseHAMmax = 12000, ...
function createDots(grid) -- create paladin dot group 1 (dot, tooltip, texture, name, class) local x = ((1-1)*5)+1 newDot(_G["Dot_"..x], _G["Tooltip_"..x], _G["Texture_"..x], grid[1][1][1], grid[1][1][2]) -- create dots group 2 to 8 for i=2,8 do for j=1,5 do local player = grid[i][j] local class = (player...
-- osc: sine, square, triangle and saw oscillators local defs = {name = 'Osc', knobs = {}} -- Define all the functions that map a phase to a [-1, 1] amplitude. -- Lua is pretty verbose here :( This should really all be 5 lines. -- Note that these all have a periodicity of 2, just 'cuz local function sine(phase) ...
--[[ file:cx_struct.lua desc:扯旋 auth:Caorl Luo ]] ---@alias cx_score number ---积分 ---@alias cx_double number ---倍数 ---@alias cx_type senum ---牌型 ---@alias cx_index number ---下标 ---@alias cx_enum senum ---枚举 ---@alias cx_seat number ---位置 ---@alias cx_card number ---牌值 ---@alias cx_value number ---...
local spritesheet = spritesheet --[[-------------------------------------------- Icons spritesheet ----------------------------------------------]] local mpSpritesheetMat = Material( "mediaplayer/ui/spritesheet2015-10-7.png" ) local blockSize = 24 local function mpIcon( name, i, j, w, h ) return { name = name, ...
-- TODO: long term - implement new UI resembling original game design -- more code cleanup? local SCREEN_WIDTH, SCREEN_HEIGHT = guiGetScreenSize() -- -- client HUD definitions -- _hud = {} -- loading screen _hud.loadingScreen = {} _hud.loadingScreen.deathmatchText = dxText:create("Deathmatch", 0, 0, false...
-- rats minetest.register_abm({ nodenames = { "default:dirt", "default:dirt_with_grass", "default:dirt_with_dry_grass", "seasons:spring_default_dirt_with_grass", "seasons:fall_default_dirt_with_grass", "seasons:winter_default_dirt_with_grass", "default:dirt_with_rainforest_litter", "default:dir...
local util = require('pipes_util') local push = util.push local pop = util.pop local isEmpty = util.isEmpty -- local inner = require('pipes_inner') local typeLua = inner.typecode('lua') -- local pps = {} if not PIPES_C_LIB then PIPES_C_LIB = OPEN_PIPES_C_LIB() end local _c = PIPES_C_LIB local _co = coroutine l...
return function(player,attackRate) return { type = script.Name, player = player, attackRate = attackRate, replicateTo = player, } end
require('plugin.mappings') require('plugin.settings') vim.g.coq_settings = { xdg = false, auto_start = 'shut-up', display = { pum = { fast_close = false, source_context = {"[", "]"}, }, preview = { border = "single", positions = { east = 1, south = 2, north = 3, west = 4, }, }...
------------------------------------------------------------------------------- -- Imports ------------------------------------------------------------------------------- dofile("src/ParticleHelper.lua" ) dofile("src/Settings.lua") dofile("src/Assets.lua") dofile("src/GameState.lua") dofile("src/Util.lua") dofile("src/...
local setTimeout = require('async.time').setTimeout local flow = {} flow.ratelimiter = function(persecond) local func_list = {} local arg_list = {} local currently_running = 0 local waiting = false local rate = 1000 / (persecond or 100) local exec_next exec_next = function() if #func_list ...
-- lib/server/networking.lua -- add some network strings util.AddNetworkString("bsu_client_ready") -- used to tell the server when the clientside part of the addon has loaded util.AddNetworkString("bsu_rpc") -- used for client RPC system util.AddNetworkString("bsu_client_info") -- used to send client info to the serv...
concommand.Add( "SetSCarPlayerSCarKey", function( ply, com, args ) ply.ScarSpecialKeyInput[SCarKeys.KeyVarTransTable[math.floor(tonumber(args[1]))]] = math.floor(tonumber(args[2])) end) function SCarKeys:KeyDown(ply, key) if ply and key and ply.ScarSpecialKeyInput[key] and ply.ScarSpecialKeyInput[key] == 2 then retu...
local class = require("heart.class") local M = class.newClass() function M:init(engine, config) self.engine = assert(engine) self.parentConstraintEntities = assert(self.engine.componentEntitySets.parentConstraint) self.parentConstraintComponents = assert(self.engine.componentManagers.parentConstraint)...
local BuildingProperties = {} local defines = {} local building = { maxHp = 1800, -- 最大 HP maxArmor = 0, -- 最大装甲 } defines["BuildingP001"] = building ---------------------- local building = { maxHp = 1800, -- 最大 HP maxArmor = 0, -- 最大装甲 } defines["Buil...
-- get machine info: this needs to be loaded *before* the node9 cdefs -- first the misc machine info ffi.cdef[[ extern char *hostcpu(); extern char *hostos(); /* the machine architecture word size in bytes, usually 4 or 8 */ extern int wordsize(); /* number of 32-bit words (ints) in the os machine state */ ext...
----------------------------------------------------------- --To be removed ----------------------------------------------------------- function cmd_set_xp(player, cmd, args, argStr) local amount = tonumber(argStr) if(amount != nil) then player_manager.RunClass( player, "SetXP", amount) player_manager.RunClass( p...
local g, o, wo, bo = vim.g, vim.o, vim.wo, vim.bo local utils = require "utils" local map = utils.map -- BASE VIM KEYBINDINGS local expr = { expr = true } local remap = { noremap = false } local silent = { silent = true } local silent_expr = { silent = true, expr = true } local silent_remap = { silent = true, noremap ...
CombatControls = {} -- private variables local combatControlsButton local combatControlsWindow local fightOffensiveBox local fightBalancedBox local fightDefensiveBox local chaseModeButton local safeFightButton local fightModeRadioGroup -- private functions local function onFightModeChange(self, selectedFightButton) ...
workspace "tp1" architecture "x64" configurations { "debug", "release" } folder = "%{cfg.buildcfg}/%{cfg.system}/%{cfg.architecture}" project "wav" location "config/%{prj.name}" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("bin/%{prj.na...
local middle = require 'hawk/middleclass' local machine = require 'hawk/statemachine' local app = require 'app' local anim8 = require 'vendor/anim8' local gamestate = require 'vendor/gamestate' local timer = require 'vendor/timer' local tween = require 'vendor/tween' local game = require 'game' local camera = requir...
inviteView2= { name="inviteView2",type=0,typeName="View",time=0,x=-1,y=0,width=1280,height=720,visible=1,nodeAlign=kAlignCenter,fillParentWidth=1,fillParentHeight=1, { name="bg",type=1,typeName="Image",time=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,file="...
--import local WIM = WIM; local _G = _G; local CreateFrame = CreateFrame; local table = table; local string = string; --set namespace setfenv(1, WIM); local Menu = CreateModule("Menu", true); local groupCount = 0; local buttonCount = 0; local lists = { whisper = {}, chat = {} } local maxButtons = { whis...
local outerFolder = (...):match('(.-)[^%.]+$') return { Scene = require(outerFolder .. 'scene'), Object = require(outerFolder .. 'scene-data.object'), Material = require(outerFolder .. 'scene-data.material'), Light = require(outerFolder .. 'scene-data.light') }
OCRP_VehicleGas = 0 OCRP_CurCar = "none" function GetCurCar(umsg) local car = umsg:ReadString() if car == "none" then return end if not GAMEMODE.OCRP_Cars[car] then return end OCRP_CurCar = GAMEMODE.OCRP_Cars[car].Name end usermessage.Hook("OCRP_UpdateCurCar", GetCurCar) net.Receive("OCRP_SendAllCars"...
local function isModuleAvailable(name) if package.loaded[name] then return true else for _, searcher in ipairs(package.searchers or package.loaders) do local loader = searcher(name) if type(loader) == 'function' then package.preload[name] = loader return true end end ...
local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local dpi = xresources.apply_dpi local gears = require("gears") local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() local theme = {} theme.font_family = "JetBrains Mono Regular" theme...
TOOL.Category = "Resource Distribution" TOOL.Name = "#Resource Valves" TOOL.DeviceName = "Resource Valve" TOOL.DeviceNamePlural = "Resource Valves" TOOL.ClassName = "valves" TOOL.DevSelect = true TOOL.CCVar_type = "rd_ent_valve" TOOL.CCVar_sub_type = "normal" TOOL.CCVar_model = "models/ResourcePump/resourcepum...
function AgiSteal( keys ) local hero = keys.target local caster = keys.caster local ability = keys.ability local AGIMultiplier = ability:GetLevelSpecialValueFor("agi_steal_multiplier", (ability:GetLevel() - 1)) local heroAGI = hero:GetLevel() local AGIGain = heroAGI * AGIMultiplier local currentAGI = caster:GetModifier...
-- Configurations --- plc_prompt_type is whether the displayed prompt is the full path or only the folder name -- Use: -- "full" for full path like C:\Windows\System32 local promptTypeFull = "full" -- "folder" for folder name only like System32 local promptTypeFolder = "folder" -- "smart" to switch in git re...
-- Addon: PersonalAssistant -- Developer: Klingo PA = {} PA.AddonVersion = "1.8.2" -- 1.3.3 fix -- http://www.esoui.com/forums/showthread.php?t=2054 -- http://www.esoui.com/forums/showthread.php?t=1944 -- TODO: -- Update Currency System: https://forums.elderscrollsonline.com/en/discussion/200789/imperial-city-api-pa...
--All of these functions are related to updating the ui from the data or vice versa. local lib = LibStub:GetLibrary("LibUIDropDownMenu-4.0") --Will take in the string ID and return the appropriate Locky Frame function NL.GetLockyFriendFrameById(LockyFrameID) for key, value in pairs(LockyFrame.scrollframe.content.Locky...
if (GetLocale() ~= "deDE") then return; end -- @EXACT = true: Translation has to be the exact(!) match in the clients language, -- beacause it carries technical semantics -- @EXACT = false: Translation can be done freely, because text is only descriptive -- Class Names -- @EXACT = false VUHDO_I18N_WARR...
--------------------------------------------------------------------------- -- Recording Input while Rewinding Playback frame-by-frame -- by AnS, 2012 --------------------------------------------------------------------------- -- Showcases following functions: -- * joypad.getimmediate() -- * taseditor.getrecorder...
local Dta = select(2, ...) Dta.move = {} ------------------------------- -- POSITION CHECKBOXES / BUTTON HANDLERS ------------------------------- function Dta.move.ModeSwapped(move_ui) move_ui.x:SwapText() move_ui.y:SwapText() move_ui.z:SwapText() end function Dta.move.modifyPositionModeAbsChanged() local move_u...
-- Super Mario Sunshine (PAL v1.0) local core = require("games.core") return core.newGame(0x803FBBF4)
function binInventoryChange() if entity.id() then local container = entity.id() local frames = entity.configParameter("binFrames", 9) local fill = math.ceil(frames * fillPercent(container)) if self.fill ~= fill then self.fill = fill entity.setAnimationState("fill", tostring(fill)) end ...
local TokenBuffer = assert(yatm_oku.TokenBuffer) local match_tokens = assert(yatm_oku.match_tokens) local string_pad_leading = assert(foundation.com.string_pad_leading) local string_rsub = assert(foundation.com.string_rsub) local string_hex_pair_to_byte = assert(foundation.com.string_hex_pair_to_byte) local Parser = {...
--------------------------------- --! @file TimeMeasure.lua --! @brief 時間計測ヘルパ関数定義 --------------------------------- --[[ Copyright (c) 2017 Nobuhiko Miyamoto ]] local TimeMeasure= {} --_G["openrtm.TimeMeasure"] = TimeMeasure TimeMeasure.new = function() local obj = {} return obj end return TimeMeasure
local Log = require "log" local io = require "io" local os = require "os" local string = require "string" local date = require "date" local lfs = require "lfs" local DIR_SEP = package.config:sub(1,1) local IS_WINDOWS = DIR_SEP == '\\' local function remove_dir_end(str) return (string.gsub(str, '[\\/...
print( "yowhat?" ) print( 3 + 2 ) a = 1
-- -------------------------------------------------------- -- static background image local file = ... -- We want the Shared BG to be used on the following screens. local SharedBackground = { ["ScreenInit"] = true, ["ScreenLogo"] = true, ["ScreenTitleMenu"] = true, ["ScreenTitleJoin"] = true, ["ScreenSelectProf...
local root = script.Parent.Parent local G = require(root.G) local Slider = {} Slider.__index = Slider Slider.New = function(label, parent, min, max, default, round, snapping) local self = setmetatable({}, Slider) self._maid = G.classes["Maid"].New() self.event = G.classes["Event"].New() self.label = label o...
-- A water mill produces LV EUs by exploiting flowing water across it -- It is a LV EU supplier and fairly low yield (max 180EUs) -- It is a little over half as good as the thermal generator. local S = technic.getter local cable_entry = "^technic_cable_connection_overlay.png" minetest.register_alias("water_mill", "t...
--[[ Autoinstall plugin Licensed by Creative Commons Attribution-ShareAlike 4.0 http://creativecommons.org/licenses/by-sa/4.0/ Dev: TheHeroeGAC Designed By Gdljjrod & DevDavisNunez. Collaborators: BaltazaR4 & Wzjk. ]] local psvita_callback = function () menu_ps() end local psp_callback = function () me...
me = Game.Players.yfc rdist = 15 mod = Instance.new("Model") mod.Parent = me.Character mod.Name = "mod" local dist = rdist * 2 orb = Instance.new("Part") orb.Parent = mod orb.Name = "Head" orb.Shape = "Ball" orb.BrickColor = BrickColor.new("Mid grey") orb.Anchored = true orb.TopSurface = "Smooth" orb.Bottom...
return{ name= 'robot', type= 'vehicle', hasAttack = true, move = {'loop', {'2,1','1,1','3,1','1,1'}, .25}, attack = {'loop', {'1-3,1'}, .25}, height = 223, width = 216, xOffset= 40, yOffset= -17, }
local I18N = require("api.I18N") local Draw = require("api.Draw") local Gui = require("api.Gui") local Ui = require("api.Ui") local UiTheme = require("api.gui.UiTheme") local IUiLayer = require("api.gui.IUiLayer") local TopicWindow = require("api.gui.TopicWindow") local InputHandler = require("api.gui.InputHandler") l...
--[[ Nether mod for minetest Copyright (C) 2013 PilzAdam Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ...
#!/usr/bin/env lua -- (C) Copyright 2009 Hewlett-Packard Development Company, L.P. -- -- 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 -- TH...
local map = vim.api.nvim_set_keymap -- moved to whichkey -- map('n', '<Leader>w', ':write<cr>', {noremap = true}) map("i", "jk", "<Esc>", { noremap = true }) -- skip if module(s) isn't loaded local status_ok, bufferline = pcall(require, "bufferline") if status_ok then map("n", "<Tab>", ":BufferLineCycleNext<CR>", { s...
---@class love local m = {} --region Data ---@class Data : Object ---The superclass of all data. local Data = {} ---Gets a pointer to the Data. ---@return light userdata function Data:getPointer() end ---Gets the size of the Data. ---@return number function Data:getSize() end ---Gets the full Data as a string. ---@r...
------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------ -- ...
--[[ This file is part of script complex Properties Ribbon Copyright (c) 2020-2021 outsidepro-arts License: MIT License ---------- Let me say a few word before starts LUA - is not object oriented programming language, but very flexible. Its flexibility allows to realize OOP easy via metatables. In this scripts the ps...
object_mobile_azure_cabal_greel_smuggler_f_02 = object_mobile_shared_azure_cabal_greel_smuggler_f_02:new { } ObjectTemplates:addTemplate(object_mobile_azure_cabal_greel_smuggler_f_02, "object/mobile/azure_cabal_greel_smuggler_f_02.iff")
--[[ ]]-- --Plutonium local RunService = game:service'RunService' local Camera = Workspace.CurrentCamera or nil local Lighting = game.Lighting local Version = "XV415" local Player = game.Players.LocalPlayer or game.Players.runtoheven local UserInterface = game:service'UserInputService' local RF = game.ReplicatedSt...
---------MOVEAPI--------- --GlobalVars-- xCord = 0 yCord = 0 zCord = 0 facing = 0 --GlobalVars END-- function forward(moveAmount) for u=1, moveAmount do if turtle.forward() then if (facing == 0) then xCord = xCord + 1 elseif (facing == 1) then yCord = yCord - 1...
object_tangible_tcg_series5_hangar_ships_tie_interceptor = object_tangible_tcg_series5_hangar_ships_shared_tie_interceptor:new { } ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_tie_interceptor, "object/tangible/tcg/series5/hangar_ships/tie_interceptor.iff")
-- Activate debug console by Ctrl+F1 function events.KeyDown(t) if t.Key == const.Keys.F1 and Keys.IsPressed(const.Keys.CTRL) then t.Key = 0 debug.debug() end end
local job = {} job.http = require("job/http") job.conf = require("conf/job") return job
local gps = require("nvim-gps") local function whichLsp() local msg = 'No Active Lsp' local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') local clients = vim.lsp.get_active_clients() if next(clients) == nil then return msg end for _, client in ipairs(clients) do local filetypes = client.config.filetype...
--阳夏的有顶天 local m=14050016 local cm=_G["c"..m] function cm.initial_effect(c) --cannot be destroyed local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetValue(1) c:RegisterEffect(e1) ...
local goldBarLayout= { name="goldBarLayout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=1280,height=720,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignCenter, { name="Image_mask",type=0,typeName="Image",time=119620067,x=327,y=182,width=64,height=64,nodeAlign=kAlignTopLeft,visible=1,fillPare...
-- This thread accepts incoming requests on one channel, and pushes back responses -- on another channel. -- These two channels can be passed as var args, or will otherwise default to -- "http_requests" and "http_responses". -- Requests need to be a single URL. This module currently only supports GET -- requests. local...
-- IMPORTS -- ======= local lfs = require("lfs") -- RECURSE -- ======= function build(in_dir, out_dir, tl, path, depth) -- set defaults for init if not path then path = in_dir end if not depth then depth = 1 end -- make current path dir local tmp = "." for p in path:gsub("^" .. in_dir, out_dir):gmat...
------------------------------------------------------------------- --------------------------- Utilities --------------------------- ------------------------------------------------------------------- --[[ Utils: string utils.getField (str, kwrd) -- extract field value from line (comma separated) ...
-- To run this test: -- TEST_FILE=test/functional/example_spec.lua make functionaltest local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear = helpers.clear local command = helpers.command local eq = helpers.eq local feed = helpers.feed descr...
local Map = require "maps.map" local TwinHousesWalk = Map:new() function TwinHousesWalk:new(o, control) o = o or Map:new(o, control) setmetatable(o, self) self.__index = self return o end function TwinHousesWalk:create() Map.create(self) end function TwinHousesWalk:enter() Map.enter(self) end function...
local PluginRoot = script.Parent.Parent.Parent.Parent local Roact = require(PluginRoot.Libs.Roact) local SelectorContext = Roact.createContext() local SelectorController = Roact.Component:extend("SelectorController") function SelectorController:init() local mainManager = self.props.mainManager self.mainManager = m...
--map based functions, version 42.06a --[[ changeInorganic(x,y,z,inorganic,dur) - Changes the inorganic of the specified position changeTemperature(x,y,z,temperature,dur) - Changes the temperature of the specified position (doesn't really work well since the game constantly reupdates temperatures) checkBounds(po...
-- Acrobat Master v2.1 by Cegaiel -- -- Immediately upon Starting: -- Searches your acro menu for all of your acro buttons. It will not include acro move names on the list, that is not inside of a button. -- Displays your available moves in a list with a checkbox beside each one. If checked, it will click the move ...
--require "defines" DEBUG = false --[[ General notes for those planning to utilize this API: - do not combine entities from multiple mods, unless it's the vehicle 'turrets' included in this APIs - add this mod as a dependancy unless you want unexpected weird behavior - the teleport command works on many enti...
-- ======================================================================== -- MANDATORY (MUST BE CAREFULLY CHECKED AND PROPERLY SET!) -- ======================================================================== -- Name of this instance, defaults to name of config file -- -----------------------------------------------...
return { Colors = { Background = Color3.fromRGB(255, 211, 49), --// Background Color of UI Accent = Color3.fromRGB(56, 56, 56), --// Accent Color of UI PrimaryText = Color3.fromRGB(25, 25, 25), --// Primary Text Color SuggestionText = Color3.fromRGB(95, 95, 95), --// Suggestion Text Color Divider = Color3.fr...
unit = "km/h" -- DEFAULT function updateUnit(setting, oldValue, newValue, retry) if (eventName == "onClientLoadSettings") then unit = exports.UCDsettings:getSetting("speedunit") elseif (eventName == "onClientSettingChange" and setting == "speedunit") then unit = newValue elseif (eventName == "onClientResourceSt...
local PING = {} PING.OK = { short = 'PING_OK $(server) $(ip) $(seq) $(ttl) $(time) $(um)', expanded = '64 bytes from $(server) $(ip): icmp_seq=$(seq) ttl=$(ttl) time=$(time) $(um)', expected = {'$(time) <= 200'}, alarm = {'$(time) > 400'} } PING.NAME_RESOLUTION_FAIL = { short = 'PING_NR_FAIL $(ser...
local ffi = require('ffi') local spi = require('pllj.spi').spi local bit = require("bit") local C = ffi.C; local trigger_event = { when ={ [tonumber(C.TRIGGER_EVENT_BEFORE)] = "before", [tonumber(C.TRIGGER_EVENT_AFTER)] = "after", [tonumber(C.TRIGGER_EVENT_INSTEAD)] = "instead", }, ...