content stringlengths 5 1.05M |
|---|
local E, L = unpack(ElvUI) -- Import Functions/Constants, Config, Locales
local S = E:NewModule('NewFunc', 'AceEvent-3.0')
SPLASH_SCREENS['singleFunc'] = {
id = 1,
questID = nil,
leftTex = "splash-601-topleft",
rightTex = "splash-601-right",
bottomTex = "splash-601-botleft",
header = 'EUI '..L['singleFunc'],
... |
vim.opt.list = true
vim.opt.listchars:append("space: ")
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#E06C75 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent2 guifg=#E5C07b gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent3 guifg=#98C379 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent4 gu... |
data:extend(
{
--shell-brick
{
type = "ammo",
name = "piercing-shotgun-shell-brick",
icon = "__Advanced-Tanks__/graphics/icons/shell-brick.png",
flags = {"goes-to-main-inventory"},
ammo_type =
{
category = "shotgun-shell",
target_type = "direction",
source_effec... |
local E = {vars = {}, defs = {}}
E.macros = {
';\n',-- ')',
'~', '=',
'?', '|',
'&',
}
E.operators = {
'+%-',
'/*×÷%%',
'%^',
}
function E.eval(expression)
if expression == '()' then
return io.read()
end
if expression:find('^ *[0-9,]+%.?[0]* *$') then
return (expression:gsub... |
DefineClass.OrbitalProbe = {
__parents = { "BaseBuilding", "CityObject", "Shapeshifter", "PinnableObject" },
flags = { efWalkable = false, efCollision = false, efApplyToGrids = false },
properties = {
{ id = "display_name", default = T(3525, "Orbital Probe") },
{ id = "display_icon", default = "UI/Icons/Building... |
local adns = require "net.adns";
local rbl = module:get_option_string("registration_rbl");
local function reverse(ip, suffix)
local a,b,c,d = ip:match("^(%d+).(%d+).(%d+).(%d+)$");
if not a then return end
return ("%d.%d.%d.%d.%s"):format(d,c,b,a, suffix);
end
module:hook("user-registered", function (event)
local... |
return [[
#Base text for Hungarian language
[hu]
lang = Magyar #Full language name
AuthorText = Fordítók: Xenox, Lackó #Author text
#Workshop errors
Workshop.Title = Tartalom kezelő
Workshop.FilesMissing = Néhány kiegészítő fájl hiányzik, vagy hibás.\nHa a Műhel... |
require 'utils'
_G.data = {}
local all_recipes = {}
function data:extend( p_recipe_list )
all_recipes = table.union(all_recipes, p_recipe_list)
end
require 'recipe.ammo'
require 'recipe.capsule'
require 'recipe.demo-furnace-recipe'
require 'recipe.demo-recipe'
require 'recipe.demo-turret'
require 'recipe.equipment... |
local M = {}
function M.apply(colors)
local set_highlight = require('lighthaus.utils').set_highlight
set_highlight('StartifyBracket', colors.grey)
set_highlight('StartifyFile', colors.green2)
set_highlight('StartifyFooter', colors.grey)
set_highlight('StartifyHeader', colors.cyan2)
set_highlight('Startify... |
-- tolua: typedef class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, ... |
-- TODO: Persist data between save and load of game?
-- TODO: Add clear navigation command?
if onServer() then
printlog("NAV: On Server")
-- Imports
package.path = package.path .. ";data/scripts/lib/?.lua"
require( "stringutility" )
require( "faction" )
-- Module Scoped Variables
local factionNavi... |
local Log = {}
--- Adds a log entry using Plenary.log
---@param msg any
---@param level string [same as vim.log.log_levels]
function Log:add_entry(msg, level)
assert(type(level) == "string")
if self.__handle then
-- plenary uses lower-case log levels
self.__handle[level:lower()](msg)
end
local status_o... |
require 'plugins.galaxyline.setting'
|
--[[lit-meta
name = "commandia"
version = "0.0.1"
dependencies = {}
description = "A simple to use commands manager/handler for the Discord library Discordia"
tags = { "discordia", "commandia", "discord", "bot", "commands" }
license = "MIT"
author = { name = "Bilal2453" }
]]
return {
Manager = require... |
-- A set that acts like an array
-- Uses 2 tables for O(1) lookups of keys or values
---@class ArraySet
---@field arr table<any, any>
---@field set table<any, any>
local ArraySet = {}
---@param arr? table<any, any>
function ArraySet.new(arr)
arr = arr or {}
local self = setmetatable({ arr = {}, set = {} }, Arr... |
-- -*- lua -*-
--
-- Module file created by Anaconda builder
--
whatis([[Name : anaconda]])
whatis([[Version : 2021-03-tf2]])
help([[This is an automatically created Anaconda installation.]])
prepend_path("PATH", "/usr/local/modules/miniconda/bin/")
setenv("CONDA_PREFIX", "/usr/local/modules/miniconda/") |
Locales['br'] = {
['bought'] = 'você comprou ~b~1x ',
['not_enough'] = 'você não tem ~r~dinheiro suficiente~s~.',
['press_menu'] = 'Pressione ~INPUT_CONTEXT~ para acessar a loja.',
['press_menu_mafia'] = 'Pressione ~INPUT_CONTEXT~ para acessar a loja.\n~INPUT_REPLAY_SCREENSHOT~ to racket',
[... |
print("Including Common/Draw/* files")
dofile(CommonScriptsFolder.."/Draw/CreateSprite.lua")
dofile(CommonScriptsFolder.."/Draw/CreateMultiTextLine.lua") |
-- If your action has no objects, do: name = prop_none and set all numerical values to 0.0".
config = {
newUsers = {
DefaultDepartment = "civilian",
DefaultRank = 0,
DefaultPermissionLevel = 0
},
bindings = {
interact_position = 51, -- E
use_police_menu = 166, -- F5
accept_fine = 246, -- Y
refuse_fin... |
return {'meyerode','meyer','meys'} |
if SL.Global.GameMode ~= "Casual" then return end
return Def.BitmapText{
Font="Common Bold",
Text=THEME:GetString("ScreenEvaluation", "PressStartToContinue"),
InitCommand=function(self)
self:xy(_screen.cx, _screen.cy + 170):zoom(0.55)
:diffusealpha(0):shadowlength(0.5)
end,
OnCommand=function(self)
self:sl... |
local M = {}
local cb_list = require'cb_list'.get_list() --list of callbacks for readings
local vlring=require('vl53ring')
local table_sort = table.sort
--CONSTANTS
local N_SENSORS = 6
local N_SENSORS_2= N_SENSORS/2
assert(N_SENSORS %2 == 0, 'median optimized for par N_SENSORS')
local WIN_SIZE = 3 -- glo... |
--[[
GD50 2018
Pong Remake
pong-4
"The Ball Update"
-- Main Program --
Author: Colton Ogden
cogden@cs50.harvard.edu
Originally programmed by Atari in 1972. Features two
paddles, controlled by players, with the goal of getting
the ball past your opponent's edge. First to 10 po... |
local fb = require("swig_fribidi")
local iconv = require("iconv")
local text8 = "Ленивый рыжий кот شَدَّة latin العَرَبِية";
local ic = assert(iconv.open("UTF-32LE", "UTF-8"))
local text = ic:iconv(text8)
local nLineSize = #text/4
local pTempLogicalLine = fb.new_FriBidiCharArray(nLineSize)
local pTempVisualLine = f... |
local function set_alpha(name, a)
local player = minetest.get_player_by_name(name)
if not player then
return false
else
local nametag_attributes = player:get_nametag_attributes()
nametag_attributes.color.a = a
player:set_nametag_attributes(nametag_attributes)
return true
end
end
minetest.r... |
-- pluginable_mixin
-- created on 2021/8/25
-- author @zoloypzuo
local IPlugin = {
Execute = nil; -- function
userData = nil; -- void*
}
local PluginableMixin = Mixin(function(self)
self.plugins = {} -- List[IPlugin]
end)
function PluginableMixin:AddPlugin(type_, ...)
assert(type(type_) == "table", "... |
-- credit to atom0s for help with decompiling
-- Decompiled using luadec 2.2 rev: for Lua 5.1 from https://github.com/viruscamp/luadec
return {
EXTRA_REWARD = {},
MONTHLY_CARD = {
[1001] = {
ActiveReward = {
{ 1001002, 300 },
},
DayReward = {
... |
function SFX()
-- sound = love.audio.newSource("pling.wav", "static") -- the "static" tells LÖVE to load the file into memory, good for short sound effects
local bgm = love.audio.newSource("src/sounds/bgm.mp3", "stream") -- the "stream" tells LÖVE to stream the file from disk, good for longer music tracks
b... |
--KyYay's interpolation library
local self = {}
local moving = {}
self.loopmode = "CAP"
function self.applyloopmode(t)
if self.loopmode == "CAP" then
return math.max(math.min(t,1),0)
elseif self.loopmode == "REFLECT" then
return math.min(t%2,-t%2)
end
return t
end
function self.linear(s,e,t)
t = self.applylo... |
local g = vim.g
local stdpath = vim.fn.stdpath
g.vsnip_snippet_dir = stdpath('config') .. '/vsnip'
g.vsnip_filetypes = {
typescript={'javascript'},
typescriptreact={'javascript'},
javascript={'javascript'},
javascriptreact={'javascript'},
gitcommit={'gitcommit'},
rust={'rust'}
}
|
return {
[13001]={animation_id=13001,move=true,move_type=1,move_speed=1000.0,attack="attack",injured="injured",hurt_effect_file="hurt_light",},
[13002]={animation_id=13002,attack="skill_sound",props_ready_file="effects_magic_attack_ready_1",props_flying_file="effects_magic_attack_sprint_1",flying_speed=1000.0,multi_pro... |
include("shared.lua")
include("cl_roundmanager.lua")
include("cl_message.lua")
include("cl_player.lua")
include("cl_hud.lua")
include("cl_language.lua")
include("cl_menu.lua")
include("cl_keymanager.lua")
include("cl_derma.lua")
include("cl_scoreboard.lua")
function GM:PlayerFootstep(ply)
return !ply:GetFootstep() -... |
local assert = require "luassert.assert"
local stub = require "luassert.stub"
local main = require "atlas.server.main"
local Server = require "atlas.server.server"
local assertions = require "atlas.test.assertions"
local loop = require "atlas.test.loop"
local function build_mock_server()
return {
accept = funct... |
L = LANG.GetLanguageTableReference("de")
L[PIRATE.name] = "Pirat"
L[PIRATE.defaultTeam] = "Team Piraten"
L["info_popup_" .. PIRATE.name] = [[Du bist ein Pirat! Tu dich mit jemandem zusammen und kämpfe für Gold und Punkte.]]
L["body_found_" .. PIRATE.abbr] = "Er war ein Pirat..."
L["search_role_" .. PIRATE.abbr] = "Die... |
#!/usr/bin/env lua-any
-- Lua-Versions: 5.3 5.2 5.1
local prefix="PioneerDDJSX2."
local channel={ [0]="0", "[Channel1]","[Channel2]","[Channel3]","[Channel4]" }
local leftright={ "LEFT","RIGHT","LEFT","RIGHT" }
local function control(c,k,d,s,m,g)
local template=[[
<control>
<group>@_GROUP... |
solution "gmsv_fileio"
language "C++"
location (os.get() .. "/" .. _ACTION)
flags {"Symbols", "NoEditAndContinue", "NoPCH", "StaticRuntime", "EnableSSE"}
targetdir ("build/" .. os.get())
includedirs {"include/"}
if (os.is("linux") or os.is("macosx")) then
buildoptions {"-fPIC"}
end
configurations
{
"Rele... |
function stepHit(step)
if step == 1 then
for i = 0, 3 do
tweenPosXAngle(i, _G['defaultStrum'..i..'X'] - 1000, getActorAngle(i) - 360, 0.05, i)
tweenFadeIn(i, 0, 0.05)
end
for i = 4, 7 do
tweenPosXAngle(i, _G['defaultStrum'..i..'X'] - 275, getActorAngle(... |
ENT.Base = "dronesrewrite_base"
ENT.Type = "anim"
ENT.PrintName = "Plasma Bomb Drone"
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Category = "Drones Rewrite"
ENT.UNIT = "PB"
ENT.Weight = 120
ENT.Model = "models/dronesrewrite/plasmabomb/plasmabomb.mdl"
ENT.DoExplosionEffect = false
ENT.HealthAmount = 50
ENT.... |
CommonScriptsFolder="data/scripts/Common"
-- подключение независимых файлов
dofile(CommonScriptsFolder.."/assert.lua")
dofile(CommonScriptsFolder.."/ConvertToFunction.lua")
dofile(CommonScriptsFolder.."/CreateMethodForObject.lua")
dofile(CommonScriptsFolder.."/TempGlobals.lua")
dofile(CommonScriptsFolder.."/Get... |
object_tangible_loot_creature_loot_kashyyyk_loot_minstyngar_fang_01 = object_tangible_loot_creature_loot_kashyyyk_loot_shared_minstyngar_fang_01:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_kashyyyk_loot_minstyngar_fang_01, "object/tangible/loot/creature_loot/kashyyyk_loot/minstyngar_fang_01... |
local eonz = require 'eonz'
local table = eonz.pf.table
local string = eonz.pf.string
local SyntaxNode = require 'eonz.lexer.syntax_node'
return function(LuaParser, define_rule)
define_rule { name = 'function_name',
function (self)
local node = self:peek({'.', ':'}, 2)
and self:variable_reference()
or se... |
-- inserts a new beat at the correct index.
-- Has several options for how to handle the associated table
print()
print("in insert_between, 'lam' is :", tostring(lam))
print("in insert_between, 'is_sorted' is :", tostring(lam.basic.is_sorted))
print()
--local add = require(_lamroot..'src/basic_met... |
-- require("prototypes.entities")
data:extend({
{
type = "sound",
name = "nevergonnagive",
filename = "__Roadrunner__/sounds/nevergonnagiveyouup.ogg",
volume = 1
}
}) |
if vim.g.did_load_filetypes and vim.g.did_load_filetypes ~= 0 then
return
end
-- For now, make this opt-in with a global variable
if vim.g.do_filetype_lua ~= 1 then
return
end
vim.cmd [[
augroup filetypedetect
au BufRead,BufNewFile * call v:lua.vim.filetype.match(expand('<afile>'))
" These *must* be sourced afte... |
-----------------------------------
-- Area: Port Bastok
-- NPC: Latifah
-- Involved in Quest: Stamp Hunt
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local StampHunt = player:getQ... |
local memory = require "memory"
local system = require "coutil.system"
newtest("stdio") --------------------------------------------------------------
do case "file"
local inputpath = os.tmpname()
local outputpath = os.tmpname()
writeto(inputpath, "Hello world!\n")
local stdin = assert(io.open(inputpath, "r"))
l... |
ITEM.name = "Bowl"
ITEM.desc = "A dirty ceramic bowl"
ITEM.model = "models/z-o-m-b-i-e/metro_2033/station_props/m33_plate_03.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.money = {1, 3}
|
local ffi = require "ffi"
local R3E_FULL_DRIVERS = R3E_FULL_DRIVERS or 128
local R3E_SHARED_MEMORY_NAME = "$R3E"
local R3E_DEFS_COMMON = [[
typedef int32_t r3e_int32;
typedef float r3e_float32;
typedef double r3e_float64;
typedef uint8_t r3e_u8char;
#pragma pack(1)
typedef enum
{
// Major version number to... |
local merge = require('./init')
local t1 = {a = 'hello', b = 'world'}
local t1addon = {c = 'goodbye', d = 'universe'}
assert(merge(t1, t1addon), { b = 'world', d = 'universe', a = 'hello', c = 'goodbye' })
local t2 = {a = 'hello', b = 'world'}
assert(merge(t2, t2), { a = 'hello', b = 'world' })
local t3 = {a = 'he... |
return require('packer').startup(function()
-- Packer can manage itself
use 'wbthomason/packer.nvim'
use 'morhetz/gruvbox'
use 'tpope/vim-fugitive'
use {
'nvim-telescope/telescope.nvim',
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}
}
use {'nvim-telescope/telescope-fzf-native.n... |
local log = require('telescope.log')
local entry_display = {}
-- index are used to determine the correct order
-- elements = {
-- [1] = { element, max width }, -- max width should be greater than 0
-- [2] = { a, 0 } -- Use 0 to disable max width
-- [3] = { b, 0 } -- If b is nil, skip this column, should skip co... |
local sorters = require "telescope.sorters"
local util = require("telescope._extensions.frecency.util")
local my_sorters = {}
local substr_highlighter = function(_, prompt, display)
local highlights = {}
display = display:lower()
local search_terms = util.split(prompt, "%s")
local hl_start, hl_end
for ... |
local function status_line()
local mode = "%-5{%v:lua.string.upper(v:lua.vim.fn.mode())%}"
local file_name = "%-.16t"
local buf_nr = "[%n]"
local modified = " %-m"
local file_type = " %y"
local right_align = "%="
local line_no = "%10([%l/%L%)]"
local pct_thru_file = "%5p%%"
return string.format(
... |
--=======================================
-- filename: squareshape.lua
-- author: Shane Krolikowski
-- created: Sept. 25, 2017
-- description: Square shape.
--=======================================
local Cell = require 'cell'
local SquareShape = Class{
__includes = require 'shapes.shape'
}
local col... |
------------------------------------------------------------------------------------------------------------
-- Cairo UI - Develop by David Lannan
--
-- Design Notes:
-- The aim of the UI is to provide pixel consistancy for scalable graphics. What this means is the art
-- and the scalable graphics use a common mea... |
padawan_spice_mom_01_convo_template = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "padawan_spice_mom_01_conv_handler",
screens = {}
}
intro = ConvoScreen:new {
id = "intro",
leftDialog = "@conversation/padawan_spice_mom_01:s_4f24860b", -- Hello dear, I'm a single mother and co... |
package("imagemagick")
set_homepage("https://imagemagick.org/script/index.php")
set_description("ImageMagick is a FOSS software suite for modifying images. This does NOT provide any of the utilities. It installs the C/C++ Libraries.")
add_urls("https://download.imagemagick.org/ImageMagick/download/ImageMagi... |
AchievementScreenshots = Object:extend()
function AchievementScreenshots:new()
self.font = fonts.Anonymous_8
self.big_font = fonts.m5x7_16
self.main_canvas = love.graphics.newCanvas(10*64, 10*64)
self.active = true
self.y_offsets = {['Fighter'] = -2, ['Crusader'] = 0, ['Rogue'] = -2, ['Bit Hunter... |
require 'pl'
local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)()
package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path
require 'os'
require 'w2nn'
local srcnn = require 'srcnn'
local function cudnn2cunn(cudnn_model)
local cunn_model = srcn... |
--[[
Copyright (c) 2014-2017 Chukong Technologies 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 restriction, including without limitation the rights
to use, copy, modify, merge, pu... |
--------------------------------------------------------------------------------
-- Sample code is MIT licensed, see http://www.coronalabs.com/links/code/license
-- Copyright (C) 2013 Corona Labs Inc. All Rights Reserved.
--------------------------------------------------------------------------------
--
-- To test thi... |
-- mdotengine - particle file
-- Local definitions
local Vector = require("Vector")
local Particle = {}
Particle.__index = Particle
function Particle:New(x, y, r, l)
local attributes = {
isParticle = true, -- identifier
pos = Vector:New(x, y), ... |
main_quest=true
markers = {
{
map = "res/map/marshland/marshland.tmx",
position = {1925, 1275},
step = 0
},
{
map = "res/map/marshland/marshland.tmx",
position = {1925, 1275},
step = -1
},
}
|
function love.draw()
love.graphics.print("Lovely, it works!", 580, 360)
end |
function generate_decoratives_for_all_existing_chunks()
local decorative_names = {}
for k,v in pairs(game.decorative_prototypes) do
if v.autoplace_specification then
decorative_names[#decorative_names+1] = k
end
end
for _, surface in pairs(game.surfaces) do
for chunk in surface.get_chunks() do
surf... |
package.path = package.path .. ";/home/OpenGlassesOS/lib/?.lua;/home/OpenGlassesOS/lib/?/init.lua;/home/OpenGlassesOS/?.lua"
print("running")
local rect = require("overlay/Rect")
w = rect()
|
local __name = ...
local lib4
local splash
if __name == 'main' then
splash = love
love.window.setMode(768, 512)
love.window.setTitle('splash')
else
splash = {}
lib4 = require('lib4')
end
local floor
local screen
local rain
local stars
local transition
local seq
local frame
function splash:_load(... |
-- ---------------------------------------------
-- util.lua 2014/06/05
-- Copyright (c) 2013-2014 Jun Mizutani,
-- released under the MIT open source license.
-- ---------------------------------------------
local ffi = require("ffi")
ffi.cdef[[
typedef struct timeval {
long tv_sec;
long tv_usec... |
-- Module metrics provides access to various metrics providers supported by envel
return {
prometheus = require("envel.metrics.prometheus"),
} |
local Players = game:GetService("Players")
local ServerScriptService = game:GetService("ServerScriptService")
local Workspace = game:GetService("Workspace")
local dataStore = game:GetService("DataStoreService")
local DataStore2 = require(game.ServerStorage.DataStore2)
DataStore2.Combine("DATA", "Gems","Scavanger","Col... |
local module = {}
local animateInTweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Back)
local animateOutTweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Quint)
function module.animateIn(Window)
if not Window.Visible then
Window.UIScale.Scale = 0.95
module.Fader.FadeIn(Window, 0.2)
module.Tween(Window.UIScale, ani... |
local _ = function(k, ...) return ImportPackage("i18n").t(GetPackageName(), k, ...) end
gatherTable = {
{
gather_zone = {-96766, 88886, 180},
gather_item = "unprocessed_rock",
gather_tool = "pickaxe",
process_zone = {-82629, 90991, 481},
process_item ... |
local assets=
{
Asset("ANIM", "anim/swap_bedroll_furry.zip"),
}
local function onsleep(inst, sleeper)
local br = nil
if inst.components.stackable then
br = inst.components.stackable:Get()
else
br = inst
end
if br and br.components.finiteuses then
if br.components.finiteuses:GetUses() <= 1 then
br:Remov... |
-- This file is automatically generated, do not edit!
-- Path of Building
--
-- Intelligence support gems
-- Skill data (c) Grinding Gear Games
--
local skills, mod, flag, skill = ...
skills["SupportAddedChaosDamage"] = {
name = "Added Chaos Damage",
color = 3,
support = true,
requireSkillTypes = { 10, 1, },
addS... |
-- module
local PythonBridgeModule = {}
local rawget, rawset = rawget, rawset
local bridge = CANDY_PYTHON_BRIDGE
-- 在非编辑器的情况下
if not bridge then return setmetatable ( PythonBridgeModule, { __index = function () return function () end end } ) end
--------------------------------------------------------------------
... |
data:extend(
{
{
type = "recipe",
name = "lucky-box",
energy_required = 2,
ingredients =
{
{"wooden-chest", 1},
{"iron-gear-wheel", 3},
{"electronic-circuit", 5},
{"grenade", 2},
},
result = "lucky-box"
},
}
) |
-- mod_file_management
--
-- Copyright (C) 2019 Emmanuel Gil Peyrot
--
-- This file is MIT/X11 licensed.
--
module:depends("http_upload");
local dataform_new = require "util.dataforms".new;
local adhoc_new = module:require "adhoc".new;
local adhoc_simple_form = require "util.adhoc".new_simple_form;
local adhoc_initial... |
-- Number
testvalue_num = 900.0
-- Integer
testvalue_int = -900
-- Unsigned
testvalue_uint = 900
-- String
testvalue_str = "900"
function_return = GlobalAddString("test");
loluademo_return = LoluaDemo.AddFive(1);
loluademo_inst = LoluaDemo.New();
loluademo_inst:SetX(10);
loluademo_getx = loluademo_inst:GetX();
loluad... |
if nil ~= require then
require "fritomod/currying";
end;
if Mixins == nil then
Mixins = {};
end;
-- Adds an operation for keys and values to the specified library. The operation
-- is given the appropriate iterator function for the item type.
--
-- library
-- the library that is the target of this mixin
-- name
--... |
local gradient = ix.util.GetMaterial("vgui/gradient-u")
local gradient2 = ix.util.GetMaterial("vgui/gradient-d")
local PANEL = {}
AccessorFunc(PANEL, "color", "Color")
AccessorFunc(PANEL, "value", "Value", FORCE_NUMBER)
AccessorFunc(PANEL, "boostValue", "Boost", FORCE_NUMBER)
AccessorFunc(PANEL, "max", "Max", FORCE_... |
--!A cross-platform build utility based on Lua
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apach... |
-- mpvSockets, one socket per instance, removes socket on exit
local utils = require 'mp.utils'
local function get_temp_path()
local example_temp_file_path = os.tmpname()
-- remove generated temp file
os.remove(example_temp_file_path)
return utils.split_path(example_temp_file_path)
end
local functi... |
-----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (South Tower)
-- !pos 0 -6.250 -736.912 33
-----------------------------------
local ID = require("scripts/zones/AlTaieu/IDs");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;... |
-- Rigidly defined PseudoInstance class system to instantiate Roblox-like instances
-- @documentation https://rostrap.github.io/Libraries/Classes/PseudoInstance/
-- @author Validark
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Resources = require(ReplicatedStorage:WaitForChild("Resources"))
lo... |
ys = ys or {}
slot1 = ys.Battle.BattleConfig
slot2 = ys.Battle.BattleTargetChoise
slot3 = ys.Battle.BattleUnitEvent
ys.Battle.BattelUAVUnit = class("BattelUAVUnit", ys.Battle.BattleAircraftUnit)
ys.Battle.BattelUAVUnit.__name = "BattelUAVUnit"
ys.Battle.BattelUAVUnit.MOVE_STATE = "MOVE_STATE"
ys.Battle.BattelUAVUnit.HO... |
project "Sim"
generateMessages("../src/sim/events")
language "C#"
kind "SharedLib"
files { "../src/sim/**.cs", "../src/sim/**.event"}
links { "System", "OpenTK", "Util", "Engine", "Renderer", "Audio", "Engine", "GpuNoise", "Terrain", "UI", "Lua" }
location "sim"
vpaths { ["*"] = "../src/sim" }
|
--[[
@Authors: Ben Dol (BeniS)
@Details: Helper methods for global use.
]]
Helper = {}
function Helper.safeDelay(min, max)
if g_game.isOfficialTibia() then
return math.random(min, max)
end
return min
end
function Helper.safeUseInventoryItem(itemId, forceCheck)
if forceCheck or g_game.isOfficialTibia(... |
local Tunnel = PlayState:addState('Tunnel')
local DURATION = 35.2 - 23.5
function Tunnel:enteredState()
if ANDROID or IOS then
love.system.unlockAchievement(IDS.ACH_REACH_THE_TUNNEL)
end
local hallway = self:addEntity(Hallway())
self:flashWhite(1.0)
local tunnel = self:addEntity(TunnelEntity())
sel... |
-- -*- lua -*-
help([[
This loads the MKL library environment.
Version 2018.2.
Modifies: LD_LIBRARY_PATH, LIBRARY_PATH, MANPATH, NLSPATH, CPATH, MIC_LIBRARY_PATH, MIC_LD_LIBRARY_PATH
]])
-- Here are some local variables for paths and version numbering
local pkgVersion = '18.0.2'
local pkgName ... |
----------------------------------------------------------------------
-- L00: Leatrix Maps Library
----------------------------------------------------------------------
-- LibDBIcon 8.0.4 by funkehdude
-- 11: LibStub: (?s)-- LibStubStart\R?\K.*?(?=-- LibStubEnd)
-- 12: LibCallbackHandler: (?s)-- CallbackStart\R?\... |
precondition = "ENEMIES_CONTAINED_DEAD"
function onEnterTrigger(context, trigger, collider)
DisableMovementInput(context);
DisableAbilityInput(context);
player = GetPlayerCharacter(context);
MoveTo(player, 65, 15, 5.0);
Yield(trigger, 5.0);
CameraMoveTo(context, 72, 15, 1.0);
CameraZoomTo(c... |
local mod = mod_loader.mods[modApi.currentMod]
local path = mod.scriptPath
local utils = require(path .."libs/utils")
local menu = require(path .."libs/menu")
local UiAnim2 = require(path .."ui/anim/uiAnim2")
local UiCover = require(path .."ui/cover")
local Ui2 = require(path .."ui/Ui2")
local this = Class.inherit(UiC... |
-- Destroys cargo over time
if onClient() then return end
-- namespace DestroyCargoBuff
DestroyCargoBuff = {}
local data
function DestroyCargoBuff.initialize(volume, frequency)
if volume and frequency then
data = {
volume = volume,
frequency = frequency
}
end
end
function... |
local Screen = require "widgets/screen"
local AnimButton = require "widgets/animbutton"
local ImageButton = require "widgets/imagebutton"
local Text = require "widgets/text"
local Image = require "widgets/image"
local Widget = require "widgets/widget"
local Levels = require "map/levels"
require("constants")
local c... |
object_building_kashyyyk_mun_kash_imprv_streetlamp_s02 = object_building_kashyyyk_shared_mun_kash_imprv_streetlamp_s02:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_mun_kash_imprv_streetlamp_s02, "object/building/kashyyyk/mun_kash_imprv_streetlamp_s02.iff")
|
--[[
Cyber Bruiser Class Made by Fenrier.
]]
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Cha... |
local ChandelierExit = {}
setmetatable(ChandelierExit, {
__call = function(self, period, multiplier)
local AverageTrueRange = require "AverageTrueRange"
local Minimum = require "Minimum"
local Maximum = require "Maximum"
local ce = {}
setmetatable(ce, {
__tostri... |
object_mobile_vehicle_mine = object_mobile_shared_vehicle_mine:new {
}
ObjectTemplates:addTemplate(object_mobile_vehicle_mine, "object/mobile/vehicle_mine.iff")
|
--
-- Sounds
--
function default.node_sound_defaults(table)
table = table or {}
table.footstep = table.footstep or
{name = "", gain = 1.0}
table.dug = table.dug or
{name = "default_dug_node", gain = 0.25}
table.place = table.place or
{name = "default_place_node_hard", gain = 1.0}
return table
end
functi... |
---@class LuaCodeWriter
CodeWriter = fclass()
function CodeWriter:ctor()
self.indent_str = "\t"
self.end_of_line = "\n"
self.lines = {}
end
function CodeWriter:WriteMark()
table.insert(self.lines, "--- This is an automatically generated class by FairyGUI. Please do not modify it. ---")
table.inse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.