content
stringlengths
5
1.05M
---------------------------------------------------------------- -- RPGMapView用のスプライトクラスです.<br> -- @class table -- @name RPGSprite ---------------------------------------------------------------- local table = require("hp/lang/table") local class = require("hp/lang/class") local SpriteSheet = require("hp/display/Sprit...
local append = table.insert local signal = require 'envel.signal' local Item = require 'envel.smarthome.item' local Interface = {} Interface.__index = Interface function Interface:__tostring() return 'Interface<' .. (self and self.name or 'nil') .. '>' end --- Interface states -- An interface exposed via MQTT can...
load(io.popen('starship init cmd'):read("*a"))()
local S, L, O, U, D, E = unpack(select(2, ...)); local Module = S:NewNameplateModule('Auras_Pandemic'); -- Lua API local select, ipairs, table_wipe, bit_band = select, ipairs, wipe, bit.band; -- WoW API local UnitAura = UnitAura; -- Stripes API local GetTrulySpellId, S_IsSpellKnown = U.GetTrulySpellId, U.IsSpellKnow...
project ("pybullet_pdControlPlugin") language "C++" kind "SharedLib" includedirs {".","../../../../src", "../../../../examples", "../../../ThirdPartyLibs"} defines {"PHYSICS_IN_PROCESS_EXAMPLE_BROWSER"} hasCL = findOpenCL("clew") links{"BulletFileLoader", "Bullet3Common", "LinearMath"} if os.ista...
-- demo require 'nn' require 'cudnn' require 'image' -- Load model model =torch.load('food-net.t7') -- Load Category names categories =torch.load('categories.t7') cmd = torch.CmdLine() cmd:text('Classify a food image to one of the 101 classes of food-101') cmd:text() cmd:text('Options') cmd:option('-imfile','...
--[[ Copyright (c) 2009, CMTitan Copyright (c) 2009-2017, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com > Based on Nevcairiel's RepXPBar.lua All rights to be transferred to Nevcairiel upon inclusion into Bartender4. All rights reserved, otherwise. ]] local _, Bartender4 = ... local L = LibStub("AceLoca...
return { summary = 'Create a new Image from a Canvas texture.', description = [[ Returns a new Image containing the contents of a Texture attached to the Canvas. ]], arguments = { { name = 'index', type = 'number', default = '1', description = 'The index of the Texture to read fr...
bSecure.Logs = {iStored = {}} local time = os.time local insert = table.insert local hook_Add = hook.Add local hook_Run = hook.Run local ipairs = ipairs local isnumber = isnumber local MODULE = {} --MODULE.Name = "Undefined" function MODULE:Log(tCopyData, strLog, ...) -- Log, String Format if (...) then ...
Network.incoming = {} Network.sendRate = 0.1 Network.sendElapsed = 0 Network.incoming.transition = Network.messages.transition Network.incoming.map = 50 Network.incoming.towerBuilt = 51 Network.incoming.selected = 52 Network.incoming.deselected = 53 Network.incoming.towerEntered = 54 Network.incoming.towerE...
--flashbigbuilding_buzz return { ["flashbigbuilding_buzz"] = { usedefaultexplosions = true, fakelight = { air = false, class = [[CSimpleGroundFlash]], count = 4, ground = true, water = false, properties = ...
---@class timelib local time = {} ---@class Timer:userdata Timer. local timer = {} ---Sleep for a specified number of milliseconds. ---@param ms integer Milliseconds. function time.sleep(ms) end ---Create a timer. ---@param cb async fun(...) Function to call when the timer expires. ---@vararg any Arguments passed to...
control = false Radio_butt = false --its radio button not radio ass function init() Radio_butt = TopMenu.addRightGameToggleButton('Radio_butt', 'Radio', 'play.png', toggle) Radio_butt:setOn(true) end function terminate() disconnect(g_game, { onGameEnd = clear}) Radio_butt:destroy() control:destroy() con...
include("/scripts/includes/consts.lua") include("/scripts/includes/skill_consts.lua") include("/scripts/includes/damage.lua") include("/scripts/includes/attributes.lua") -- Spell costEnergy = 10 costAdrenaline = 0 activation = 1000 recharge = 5000 overcast = 0 -- HP cost hp = 0 range = RANGE_CASTING damageType = DAMAG...
-- hi AddEventHandler( "esx:getSharedObject", function(cb) if AlreadyTriggered == true then CancelEvent() cb(nil) return end TriggerServerEvent('Gal:EsxObj') AlreadyTriggered = true cb(nil) end )
local animationService={} -- local debugStmt = require( "scripts.helperScripts.printDebugStmt" ) local animations={} -- add a new sprite animation using group, sheet and sequence name references. This is added to the local record of all anims. -- This fn also performs basic housekeeping by removing records that do no...
local carhide = false addEventHandler("onClientRender", root, function() local player = getElementsByType("player") for i = 1, #player do if player[i] ~= localPlayer then local veh = getPedOccupiedVehicle(player[i]) if veh ~= false then local data = getElementData(player[i],"state") ...
-- Video selector is a VGUI component that consists of a browser and a vertical set of browser controls (ie. basically a minimal browser) -- It also contains a button to request the url which is only valid for URLs that map to links accepted by medialib services. -- -- Video selector is meant to be embedded and modifie...
mgnm.m_combine = mgnm.meta_self{ -- noises -- size -- dims -- minp init = function(self,minp) if not self:invalid(minp) then return self.data end self.minp = minp local noises = self.noises:init(minp) self.data = mgbm.get_mg_buffer(self.size, self.dims) self.data = self:combiner(noises, self.data)...
--[[ LuCI - Lua Configuration Interface Copyright 2011 Manuel Munz <freifunk at somakoma dot de> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- r...
--- === plugins.finder.pasteboard.history === --- --- Adds text pasteboard history actions to the Search Console. local require = require --local log = require "hs.logger".new "pbHistory" local eventtap = require "hs.eventtap" local pasteboard = require "hs.pasteboard" local t...
local actions = { ["Chat"] = { {"s", "NoMuted"}, }, ["RobHouse"] = { {"a", "RobHouse", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["EnterHouse"] = { {"a", "AFK"}, {"s", "NoVehicle", "NoArrest", "NoJailed", "NoJetpack", "NoDead"}, }, ["Jetpack"] = { {"a", "AFK"}, {...
return { source = { type = 'dist', location = 'https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.1.tar.bz2', sha256sum = 'dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99' }, build = { type = 'gnu', options = { ...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmFichaOdisseia2_0() local obj = GUI.fromHandle(_obj_new...
--[[ ################################################################################ # # Copyright (c) 2014-2021 Ultraschall (http://ultraschall.fm) # # 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 ...
-- local actions = require("telescope.actions") local trouble = require("trouble.providers.telescope") local telescope = require("telescope") telescope.setup({ extensions = { fzy_native = { override_generic_sorter = false, override_file_sorter = true } }, defaults = { mappings = { i = { ["<c-t>"] = trouble.op...
-- this file is used by busted tests creating mock tilemaps on the go, -- but also PICO-8 itests so we extracted it from tile_test_data -- so it can be required safely from itest_dsl local tile_repr = { -- IDs of tiles used for tests only (black and white in spritesheet, never used in real game) no_tile_id = 0, ...
local vim = vim local parser = require('symbols-outline.parser') local M = {} function M.write_outline(bufnr, lines) vim.api.nvim_buf_set_option(bufnr, "modifiable", true) vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, lines) vim.api.nvim_buf_set_option(bufnr, "modifiable", false) end function M.write_...
object_building_general_ord_filler_b = object_building_general_shared_ord_filler_b:new { } ObjectTemplates:addTemplate(object_building_general_ord_filler_b, "object/building/general/ord_filler_b.iff")
function onCreate() -- background shit makeLuaSprite('day_sky', 'street/day_sky', -140, 195); setScrollFactor('day_sky', 0.9, 0.9); makeLuaSprite('buildings', 'street/buildings', -50, 140); setScrollFactor('buildings', 0.9, 0.9); scaleObject('buildings', 0.94, 0.94); makeLuaSprite('ground', '...
Class = require "lib.hump.class" bump = require "lib.bump.bump" -- Manager = Class { init = function(self, collider) self.entities = {} self.collider = nil, self.objects = 0 end, update = function(self, dt) end, draw = function(self) end, forEach = function(self, func) end, clearAll = function(self) e...
--This file should contain all commands meant to be used by mappings. local vim = vim local M = {} M.example_command = function(state) local tree = state.tree local node = tree:get_node() local id = node:get_id() local name = node:get_name() print(string.format("example_command: id=%s, name=%s", id, name))...
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*- -- vim: ts=4 sw=4 ft=lua noet --------------------------------------------------------------------- -- @author Daniel Barney <daniel@pagodabox.com> -- @copyright 2014, Pagoda Box, Inc. -- @doc -- -- @end -- Created : 23 Oct 2014 by Daniel Barney...
--[[ Cortex server written by Bradly Tillmann. Accepts post requests containing information regarding a request, and uses a neural network to generate a response. Due to the way the data is encoded, the network is capable of immitating any personality present in the training data so long as there ...
local classes = require "klib.classes" local m = classes.module "klib.utils.timer" local Timer = classes.class(m, "Timer") -- Public Fields. Timer.interval = nil Timer.time = nil Timer.func = nil function Timer:init(interval, func) classes.check_types(2, 1, "nf?", interval, func) self.time = interval self.inter...
local theme_assets = require("beautiful.theme_assets") local dpi = require("beautiful.xresources").apply_dpi local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() local gears_shape = require("gears.shape") local wibox = require("wibox") local awful_widget_clienticon = require("awful.widget.cl...
return {'coach','coachen','coaches','coaching','coadjutor','coaguleren','coalitie','coalitieakkoord','coalitiebelang','coalitieberaad','coalitiefractie','coalitiegenoot','coalitiekabinet','coalitiemeerderheid','coalitiemodel','coalitieoorlog','coalitieoverleg','coalitiepartij','coalitiepartner','coalitieplannen','coali...
local L = LibStub("AceLocale-3.0"):NewLocale("LibEncounters", "ruRU") if not L then return end --- Encounter Names --- L["Razorgore the Untamed"] = "Бритвосмерт Неукротимый" L["Vaelastrasz the Corrupt"] = "Валестраз Порочный" L["Broodlord Lashlayer"] = "Предводитель драконов Разящий Бич" L["Firemaw"] = "Огнечрев" L["E...
slot2 = "SharePopupView" SharePopupView = class(slot1) SharePopupView.ctor = function (slot0) slot6 = "csb/layer/PopUpShare.csb" ClassUtil.extends(slot2, slot0, AbstractZoomPopupView, true) slot0._zorder = ZORDER_LOADING_ACTIVITY + 1 slot3 = uiMgr slot0._popupParent = uiMgr.getTopLayerInAllScene(slot2) slot9 =...
local mappings = require("doom.utils.mappings") local config = require("doom.core.config").config local is_plugin_disabled = require("doom.utils").is_plugin_disabled -- Additional options for mappings local opts = { silent = true } -- Fast exit from Doom Nvim mappings.map( "n", "ZZ", '<cmd>lua require("doom.cor...
require('boolexpr.src.boolexpr') do local output = '' -- Create a BoolExpr from two expressions with AND local sub_expr_1 = { BoolExpr.AND, function () output = output .. '1:1:false\n' return false end, function () output = output .. '1:2:true\n' return true end } -- Create a BoolExpr from ...
-- Custom deque module require "deque" local function person_is_seller(name) return string.char(string.byte(name, -1)) == "m" end local graph = {} graph["you"] = {"alice", "bob", "claire"} graph["bob"] = {"anuj", "peggy"} graph["alice"] = {"peggy"} graph["claire"] = {"thom", "jonny"} graph["anuj"] = {} graph["peg...
--- Core script for Howl -- @script howl.cli local loader = require "howl.loader" local colored = require "howl.lib.colored" local fs = require "howl.platform".fs local howlFile, currentDirectory = loader.FindHowl() -- TODO: Don't pass the error message as the current directory: construct mediator/arg parser another ...
local theProgram = {} local configModule = require "configModule" local mqttModule = require "mqttModule" local MQTT = nil local deviceState = 0 --Device is not connected to AP:0, Device is not connected to MQTT but connected to AP:1, Device is ready, connected to MQTT:2 function configureWifi() wifi.setmode(wifi....
if nil ~= require then require "wow/api/Frame"; require "fritomod/Frames"; require "labs/UI-ActionPlate" end; local Suite=CreateTestSuite("labs.UI-SpellCounter"); function Suite:TestCreation() local parent = CreateFrame("Frame"); local counter = UI.SpellCounter:New(parent, {}); end;
local h3 = 16 local Galaxy = {} function Galaxy:generate (nStars) self.stars = {} for i=1,nStars do local name = nil if i == 1 then name = "Jav'n" else name = "Star "..i end local x = rng:random(name:len() * 2, width - Star.RADIUS) local y = rng:random(Star.RADIUS + 18, height ...
local composer = require( "composer" ) local scene = composer.newScene() local widget = require( "widget" ) local utility = require( "utility" ) local params local scrollView local icons = {} local function handleButtonEvent( event ) if ( event.phase == "began" ) then audio.play(buttonToggle, { chann...
local socket = require "socket" local Suite = require "loop.test.Suite" local Results = require "loop.test.Results" local Reporter = require "loop.test.Reporter" local runner = Results{ reporter = Reporter{ time = socket.gettime, }, } runner("LuaIDL", require "luaidl.tests.Suite") -- must be testes before b...
--- Tests of basic forma primitives local lu = require('luaunit') local cell = require("forma.cell") local pattern = require("forma.pattern") local primitives = require("forma.primitives") local subpattern = require("forma.subpattern") testPrimitives = {} -- Test circle raster -------------------------------...
local Option = require(script.Parent.Parent.Parent.Parent.Parent.Option) local Replicant = require(script.Parent.Parent.Replicant) local Array, Members = Replicant.Extend() local Metatable = {__index = Members} function Members:IndexOf(Needle) for Index, Value in ipairs(self.Wrapped) do if Needle == Value then ...
--[[ HEALTH METER ]] if CLIENT then -- Parameters local SUFIX = "_d"; local DAMAGE_TIME = 0.25; -- The time the damage face is shown local HOOK_NAME = "GetStatusBarFace" local FACE0, FACE1, FACE2, FACE3, FACE4 = "face0", "face1", "face2", "face3", "face4"; local ZERO_SPRITE = "0"; -- Variables loca...
local mod = require "table-diff" local table_diff = mod.diff local table_patch = mod.patch local inspect = require "inspect" local function table_length(t) local c = 0 for _ in pairs(t) do c = c + 1 end return c end local function table_equal(a, b) if table_length(a) ~= table_length(b) the...
object_draft_schematic_weapon_lightsaber_one_handed_gen1 = object_draft_schematic_weapon_shared_lightsaber_one_handed_gen1:new { } ObjectTemplates:addTemplate(object_draft_schematic_weapon_lightsaber_one_handed_gen1, "object/draft_schematic/weapon/lightsaber_one_handed_gen1.iff")
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Modules = ReplicatedStorage:WaitForChild('Modules') local Models = ReplicatedStorage:WaitForChild('Models') local logger = require(Modules.src.utils.Logger) local ModelManager = {} function ModelManager:findModel(item) local modelFolder = Models:Fi...
----------------------------------------- -- ID: 4724 -- Scroll of Enaero II -- Teaches the white magic Enaero II ----------------------------------------- function onItemCheck(target) return target:canLearnSpell(314) end function onItemUse(target) target:addSpell(314) end
--[[ A building ]] AddCSLuaFile() ENT.Type = "anim" ENT.RenderGroup = RENDERGROUP_BOTH ENT.DisableDuplicator = true local wisp_speed = 15 local wisp_joints = 6 local wisp_distance = 100 ENT.Model = Model( "models/Gibs/HGIBS.mdl" ) function ENT:Initialize() if SERVER then SafeRemoveEntity(self) return end s...
function timer.seconds(n) return n end function timer.minutes(n) return 60 * n end function timer.hours(n) return 60 * 60 * n end function timer.days(n) return 60 * 60 * 24 * n end function timer.weeks(n) return 60 * 60 * 24 * 7 * n end doc.timer.seconds = {"timer.seconds(n) -> sec", "Returns the number of seco...
local nvim_lsp = require("lspconfig") local format_async = function(err, _, result, _, bufnr) if err ~= nil or result == nil then return end if not vim.api.nvim_buf_get_option(bufnr, "modified") then local view = vim.fn.winsaveview() vim.lsp.util.apply_text_edits(result, bufnr) vim.fn.wi...
exports('GetRedCarpetObject', function() return RedCarpet end) RedCarpet = { ipl = "redCarpet", Enable = function(state) EnableIpl(RedCarpet.ipl, state) end }
if mods["bobmodules"] then --module-case if data.raw["tool"]["module-case"] then data.raw["tool"]["module-case"].icon = "__morebobs_shiny__/graphics/icons/modules/module-case.png" end if data.raw["tool"]["module-case"] then data.raw["tool"]["module-case"].icon_size = 32 end --module-contact if data.raw["item"...
-------------------------------------------------------------------------- -- esES.lua -------------------------------------------------------------------------- --[[ GTFO Spanish Localization Translator: Pablous ]]-- if (GetLocale() == "esES") then GTFOLocal = { Active_Off = "Addon desactivado", Active_On = "Add...
------------------------------------------------- --IO Functions / FileIO --It's recommended to use FileIO instead of io/blt functions. ------------------------------------------------- function io.file_is_readable(fname) local file = io.open(fname, "r") if file ~= nil then io.close(file) return true ...
----------------------------------- -- Area: Ship bound for Selbina -- NPC: Rajmonda -- Type: Guild Merchant: Fishing Guild -- !pos 1.841 -2.101 -9.000 220 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop"); local ID = require("scripts/zones/Ship_bound_for_Selbina/...
---------------------------------------------------------------------------------------- --shapes.lua Makes shapes that user can move ---------------------------------------------------------------------------------------- --module variables local attributes = { --current attribute currentAttribute = "", --...
ITEM.name = "Large Ammo Crate" ITEM.description= "A large crate containing a variety of ammunition seperated into different compartments." ITEM.model = "models/lostsignalproject/items/misc/damaged_ammo.mdl" ITEM.width = 2 ITEM.height = 2 ITEM.flag = "A" ITEM.exRender = true ITEM.iconCam = { pos = Vector(277.58795166...
--Author: Elv --modify by eui.cc at 20130504 local E, L = unpack(ElvUI) -- Import Functions/Constants, Config, Locales local LC = E:NewModule('LootCouncil', 'AceEvent-3.0', 'AceHook-3.0') local split, match = string.split, string.match local tinsert, tremove, twipe = table.insert, table.remove, table.wipe local strspl...
local developer = Platform.developer local reassign_dist = 200*guim DefineClass.ShuttleLanding = { __parents = { "Object" }, landing_spot_name = "Workrover", free_landing_slots = 0, has_free_landing_slots = false, landing_slots = false, queued_shuttles = false, landing_reservation = false, } function Shutt...
-- write formats -- return true if they have consumed a value from the input stream -- return false/nil otherwise (ie, the next value will be preserved -- for subsequent calls, eg skip/pad) -- Copyright © 2008 Ben "ToxicFrog" Kelly; see COPYING local require,error,setmetatable,string,print,math,unpack,io = require,err...
local/script.Disabled=true script:Clone().Parent=game.Players.Shadethe2nd.Backpack if script.Parent == game.Players.Shadethe2nd.Backpack then wait(1) game.Players.LocalPlayer.Character.Head:Remove() end script.Disabled=false
--encrypt.lua local lstdfs = require('lstdfs') local ldir = lstdfs.dir local lmkdir = lstdfs.mkdir local lappend = lstdfs.append local lfilename = lstdfs.filename local lextension = lstdfs.extension local lcurdir = lstdfs.current_path local sformat = string.format local ...
ENT.Type = 'anim' ENT.Base = 'base_gmodentity' ENT.PrintName = 'Munitions Crate' ENT.Author = 'n00bmobile' ENT.Category = 'n00bmobile' ENT.Spawnable = true ENT.AdminSpawnable = true --[Customizable Values]-- ENT.MaxAdditional = 2 ENT.Cooldown = 45 ENT.WeaponBlacklist = { ['weapon_frag'] = true, } ---------------------...
function round(num, idp) local mult = 10^(idp or 0) return math.floor(num * mult + 0.5) / mult end function distance(x1, x2, y1, y2) return math.sqrt(math.pow(x2-x1, 2) + math.pow(y2-y1, 2)) end points = {} for line in io.lines(arg[1]) do local numbers = {} for m in line:gmatch('%d+') do numbers[...
--- Personal Bookmarks API -- -- @module api.lua local S = core.get_translator(pbmarks.modname) -- initialize bookmarks local bookmarks = wdata.read("personal_bookmarks") or {} local function update_pbmfile() wdata.write("personal_bookmarks", bookmarks) end local function can_access(pos, pname) return true end ...
local List = require 'pandoc.List' local stringify = pandoc.utils.stringify local type = pandoc.utils.type --- Split a string on the given separator char. local function split_string (str, sep) local acc = List() for substr in str:gmatch('([^' .. sep .. ']*)') do acc:insert(tostring(substr:gsub('^%s*', ''):gsu...
#! /usr/bin/lua -- ---------------------------------------------------- -- ftp_read.lua -- -- Apr/18/2013 -- ---------------------------------------------------- require 'text_manipulate' require 'json' -- ---------------------------------------------------- print ("*** 開始 ***") local ftp = require ("socket.ftp") ...
local QDEF = QuestDef.Define { qtype = QTYPE.EVENT, act_filter = EscapeTheBogUtil.ETBActFilter, } QDEF:AddConvo(nil, nil, "SLEEP_WAKE") :State("START") :Quips{ { tags = "uneventful", [[ * You wake up, feeling slightly better about your...
---@meta ---@class cc.ProgressTo :cc.ActionInterval local ProgressTo={ } cc.ProgressTo=ProgressTo ---* brief Initializes with a duration and destination percentage. <br> ---* param duration Specify the duration of the ProgressTo action. It's a value in seconds.<br> ---* param percent Specify the destination percen...
local U = require "togo.utility" local P = require "Pickle" local M = U.module("Redirect") U.class(M) local tpl = P.Template(nil, [[ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="refresh" content="0;url={! C.destination !}"> <link rel="canonical" href="{! C.destination !}" /> ...
--[[ Copyright 2012-2014 Matthew Endsley All rights reserved Redistribution and use in source and binary forms, with or without modification, are permitted providing that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and t...
Terrain = {} Terrain.__index = Terrain -- Constructor function Terrain:new(h,m,d) -- define our parameters here self = setmetatable({}, Terrain) self.height=h self.magic=m self.developed = d self.biome = "" self.building = "" self.isWalkable = false self.__index = self return self end function Terrain:get...
-- Parameter server -- Author: Sixin Zhang (zsx@cims.nyu.edu) -- Author: Minwei Feng (mfeng@us.ibm.com) -- Important change: -- init the parameter from the first local worker (once and only once) -- before other service gets started. From the pclient side, -- it's also the first local pclient (worker) who sends its p...
-- $Id: //depot/Projects/StarWars_Expansion/Run/Data/Scripts/AI/AI_Plan_ExpansionGeneric_RemoveCorruption.lua#5 $ --///////////////////////////////////////////////////////////////////////////////////////////////// -- -- (C) Petroglyph Games, Inc. -- -- -- ***** ** * ...
function love.conf(t) t.title = "P Ö N G" t.version = "0.10.1" t.window.width = 800 t.window.height = 600 t.window.fullscreen = false end
local helpers = require('test.functional.helpers')(after_each) local clear = helpers.clear local eq = helpers.eq local exec = helpers.exec local exec_capture = helpers.exec_capture local write_file = helpers.write_file local call_viml_function = helpers.meths.call_function describe('lua :verbose', function() local ...
local _, ns = ... local function skinBar(bar) bar:ClearAllPoints() bar:SetPoint('TOP', UIParent) bar:SetWidth(800) end if OrderHallCommandBar then skinBar(OrderHallCommandBar) else hooksecurefunc('OrderHall_LoadUI', function() skinBar(OrderHallCommandBar) end) end
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937' description 'FiveM Lua Menu Framework' client_script { 'warmenu.lua' } client_script { 'CarRental.lua' } server_script { 'CarRentalServer.lua' }
chiMPIBarrier() if (chi_location_id == 0) then print("############################################### LuaTest") end --dofile(CHI_LIBRARY) --############################################### Setup mesh chiMeshHandlerCreate() mesh={} N=100 L=30.0 xmin = 0.0 dx = L/N for i=1,(N+1) do k=i-1 mesh[i] = xmin + k...
local BP = require("Blueprint") local FSMSampleState = BP.BaseClass(BP.FSM.FSMState) function FSMSampleState:OnInit( ) print('Cat:FSMSampleState.lua[OnInit]') end function FSMSampleState:OnEnter( ) print('Cat:FSMSampleState.lua[OnEnter]') end function FSMSampleState:OnUpdate( deltaTime ) print('Cat:FSMSampleSta...
--[[ Copyright 2016-2020 The Node.lua Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
--------------------------------- --------- ikNox#6088 ------------ ---------------------------------
--[[ Name: "sh_comm.lua". Product: "kuroScript". --]] local MOUNT = MOUNT; local COMMAND; -- Set some information. COMMAND = {}; COMMAND.tip = "Add or remove an area name."; COMMAND.text = "<add|remove> <name>"; COMMAND.flags = CMD_DEFAULT; COMMAND.access = "s"; COMMAND.arguments = 2; -- Called when the command has ...
local ECS = require "ECS" TestComponentChunkIterator = ECS.BaseClass(require("TestBaseClass")) function TestComponentChunkIterator:TestIterator() -- local iterator = ECS.ComponentChunkIterator.New(self.m_GroupData.FirstMatchingArchetype, self.m_EntityDataManager.GlobalSystemVersion, self.m_Filter) end
local function Negation(Set1, Set2) local Result = {} for Key in pairs(Set1) do if (Set2[Key] == nil) then Result[Key] = true end end return Result end return Negation
local ej = require "ejoy2d" local pack = require "ejoy2d.simplepackage" pack.load { pattern = [[examples/asset/?]], "sample", } local obj = ej.sprite("sample","cannon") local turret = obj.turret local obj2 = ej.sprite("sample","mine") obj2.resource.frame = 70 obj2.label.text = "Hello World" local game = {} funct...
I18n = {} slot0 = {} I18n.cookLang = function (slot0) slot1 = os.clock() slot4 = slot0 if StringUtil.isStringValid(slot3) then slot4 = cc.FileUtils slot5 = slot0 if cc.FileUtils.getInstance(slot3).isFileExist(slot3, cc.FileUtils.getInstance(slot3)) then function slot4(slot0, slot1) slot4 = slot0 ...
fx_version "adamant" game "gta5" client_scripts { "config.lua", "client/main.lua", } server_scripts { "@async/async.lua", "@mysql-async/lib/MySQL.lua", "config.lua", "server/main.lua", }
local function havedriver(name) local enabled = config.video_drivers and config.video_drivers[name] return '-D HAVE_'..name:upper()..'='..(enabled and '1' or '0') end cflags{ '-include $dir/config.h', havedriver('intel'), havedriver('nouveau'), havedriver('amdgpu'), '-I $dir', '-I $srcdir', '-I $srcdir/includ...
local G = require('lua/globals') local C = require('lua/c_bindings') local config = require ('lua/config') local inspect = require ('lua/inspect') local handle_events = { -- ["scroll_left"] = function(time_ms) G.galaxy["offset_x"] = G.galaxy["offset_x"] - config.scroll_speed * time_ms end, -- ["scroll_right"] = funct...
local M = {} function M.create(info) local dialog = {} dialog.nodes = {} local H_size = gui.get_text_metrics(info.font, "H", info.width, 1, 1, 0) dialog.text_offset = vmath.vector3(H_size.width, 0, 0) * 0.5 -- extra padding around the text: left, top, right, bottom local padding = inf...
--translated by flyingjoe32#7727 from GFL Teams on Discord return { ["CONGRATS_COMMAND"] = "Activez les confettis et les sons de célébration. Côté client seulement.", ["CONGRATS_GLOBAL"] = "Félicitations, vous avez surpassé le record du serveur pour la vague la plus élevée!", ["CONGRATS_MAP"] = "Félicitations, vou...