content
stringlengths 5
1.05M
|
---|
local function ContextContains(context, find)
local findType = type(find)
for i,v in pairs(context) do
if findType == "string" and StringHelpers.Equals(find, v, true) then
return true
elseif findType == "table" and Common.TableHasEntry(find, v, true) then
return true
end
end
return false
end
---Applies ExtraProperties/SkillProperties.
---@param source EsvCharacter
---@param target EsvGameObject|number[]
---@param properties StatProperty[]
---@param targetPosition number[]|nil
---@param radius number|nil
---@param skill string|nil
function GameHelpers.ApplyProperties(source, target, properties, targetPosition, radius, skill)
local t = type(target)
if skill then
local stat = Ext.GetStat(skill)
if t == "table" then
radius = radius or math.max(stat.ExplodeRadius or stat.AreaRadius or 3)
Ext.ExecuteSkillPropertiesOnPosition(skill, source.MyGuid, target, radius, "AoE", false)
elseif t == "userdata" then
Ext.ExecuteSkillPropertiesOnTarget(skill, source.Handle, target.Handle, targetPosition or target.WorldPos, "Target", false)
else
target = Ext.GetGameObject(target)
Ext.ExecuteSkillPropertiesOnTarget(skill, source.Handle, target.Handle, targetPosition or target.WorldPos, "Target", false)
end
return true
end
local canTargetItems = false
if skill then
if Ext.StatGetAttribute(skill, "CanTargetItems") == "Yes" then
canTargetItems = true
end
end
for i,v in pairs(properties) do
local actionTarget = target
if ContextContains(v.Context, "Target") then
actionTarget = target
elseif ContextContains(v.Context, "Self") then
actionTarget = source
end
local aType = type(actionTarget)
if aType == "string" or aType == "number" then
actionTarget = Ext.GetGameObject(actionTarget) or actionTarget
aType = type(actionTarget)
end
if v.Type == "Status" then
if v.Action == "EXPLODE" then
if v.StatusChance >= 1.0 then
GameHelpers.Skill.Explode(source, v.StatsId, actionTarget)
elseif v.StatusChance > 0 then
if Ext.Random(0.0, 1.0) <= v.StatusChance then
GameHelpers.Skill.Explode(source, v.StatsId, actionTarget)
end
end
else
if actionTarget then
if v.StatusChance >= 1.0 then
GameHelpers.Status.Apply(actionTarget, v.Action, v.Duration, 0, source, radius, canTargetItems)
elseif v.StatusChance > 0 then
local statusObject = {
StatusId = v.Action,
StatusType = GameHelpers.Status.GetStatusType(v.Action),
ForceStatus = false,
StatusSourceHandle = source.Handle,
TargetHandle = aType == "userdata" and target.Handle or nil,
CanEnterChance = Ext.Round(v.StatusChance * 100)
}
if Ext.Random(0,100) <= Game.Math.StatusGetEnterChance(statusObject, true) then
GameHelpers.Status.Apply(actionTarget, v.Action, v.Duration, 0, source, radius, canTargetItems)
end
end
end
end
elseif v.Type == "SurfaceTransform" then
local x,y,z = 0,0,0
if targetPosition then
x,y,z = table.unpack(targetPosition)
else
if aType == "table" then
x,y,z = table.unpack(actionTarget)
elseif aType == "userdata" then
x,y,z = table.unpack(actionTarget.WorldPos)
elseif aType == "string" then
x,y,z = GetPosition(actionTarget)
end
end
TransformSurfaceAtPosition(x, y, z, v.Action, "Ground", 1.0, 6.0, source)
elseif v.Type == "Force" then
local distance = math.floor(v.Arg2/6) or 1.0
GameHelpers.ForceMoveObject(source, actionTarget, distance, nil, actionTarget.WorldPos)
end
end
return true
end
---Get a character's party members.
---@param partyMember string
---@param includeSummons boolean
---@param includeFollowers boolean
---@param excludeDead boolean
---@param includeSelf boolean
---@return string[]
function GameHelpers.GetParty(partyMember, includeSummons, includeFollowers, excludeDead, includeSelf)
partyMember = StringHelpers.GetUUID(partyMember or CharacterGetHostCharacter())
local party = {}
if includeSelf then
party[partyMember] = true
end
local allParty = Osi.DB_LeaderLib_AllPartyMembers:Get(nil)
if allParty ~= nil then
for i,v in pairs(allParty) do
local uuid = StringHelpers.GetUUID(v[1])
local isDead = CharacterIsDead(uuid) == 1
if not isDead or excludeDead ~= true then
if uuid == partyMember and not includeSelf then
--Skip
else
if CharacterIsInPartyWith(partyMember, uuid) == 1
and (CharacterIsSummon(uuid) == 0 or includeSummons)
and (CharacterIsPartyFollower(uuid) == 0 or includeFollowers)
then
party[uuid] = true
end
end
end
end
end
local data = {}
for uuid,b in pairs(party) do
data[#data+1] = uuid
end
return data
end
---Roll between 0 and 100 and see if the result is below a number.
---@param chance integer The minimum number that must be met.
---@param includeZero boolean If true, 0 is not a failure roll, otherwise the roll must be higher than 0.
---@return boolean,integer
function GameHelpers.Roll(chance, includeZero)
if chance <= 0 then
return false,0
elseif chance >= 100 then
return true,100
end
local roll = Ext.Random(0,100)
if includeZero == true then
return (roll <= chance),roll
else
return (roll > 0 and roll <= chance),roll
end
end
---Clears the action queue that may block things like skill usage via scripting.
---@param character string
---@param purge boolean|nil
function GameHelpers.ClearActionQueue(character, purge)
if purge then
CharacterPurgeQueue(character)
else
CharacterFlushQueue(character)
end
CharacterMoveTo(character, character, 1, "", 1)
CharacterSetStill(character)
end
---Sync an item or character's scale to clients.
---@param object string|EsvCharacter|EsvItem
function GameHelpers.SyncScale(object)
if object and type(object) ~= "userdata" then
object = Ext.GetGameObject(object)
end
if object then
Ext.BroadcastMessage("LeaderLib_SyncScale", Ext.JsonStringify({
UUID = object.MyGuid,
Scale = object.Scale,
Handle = object.NetID
--Handle = Ext.HandleToDouble(object.Handle)
}))
end
end
---Set an item or character's scale, and sync it to clients.
---@param object EsvCharacter|string
---@param scale number
---@param persist boolean|nil
function GameHelpers.SetScale(object, scale, persist)
if object and type(object) ~= "userdata" then
object = Ext.GetGameObject(object)
end
if object and object.SetScale then
object:SetScale(scale)
GameHelpers.SyncScale(object)
if persist == true then
PersistentVars.ScaleOverride[object.MyGuid] = scale
end
end
end
function GameHelpers.IsInCombat(uuid)
if ObjectIsCharacter(uuid) == 1 and CharacterIsInCombat(uuid) == 1 then
return true
else
local db = Osi.DB_CombatObjects:Get(uuid, nil)
if db ~= nil and #db > 0 then
return true
end
end
return false
end
function GameHelpers.IsActiveCombat(id)
if not id or id == -1 then
return false
end
local db = Osi.DB_LeaderLib_Combat_ActiveCombat(id)
if db and #db > 0 then
return true
end
return false
end
---Deprecated
---@see GameHelpers.Combat.GetCharacters
---@param id integer
---@return EsvCharacter[]|nil
function GameHelpers.GetCombatCharacters(id)
local combat = Ext.GetCombat(id)
if combat then
local objects = {}
for i,v in pairs(combat:GetAllTeams()) do
objects[#objects+1] = v.Character
end
return objects
end
return nil
end
---@param dialog string
---@vararg string
---@return boolean
function GameHelpers.IsInDialog(dialog, ...)
local targets = {}
for i,v in pairs({...}) do
targets[StringHelpers.GetUUID(v)] = true
end
if #targets == 0 then
return false
end
local instanceDb = Osi.DB_DialogName:Get(dialog, nil)
if instanceDb and #instanceDb > 0 then
local instance = instanceDb[1][2]
local playerDb = Osi.DB_DialogPlayers:Get(instance, nil, nil)
if playerDb and #playerDb > 0 then
for _,v in pairs(playerDb) do
local inst,actor,slot = table.unpack(v)
if targets[StringHelpers.GetUUID(actor)] == true then
return true
end
end
end
local npcDb = Osi.DB_DialogNPCs:Get(instance, nil, nil)
if npcDb and #npcDb > 0 then
for _,v in pairs(npcDb) do
local inst,actor,slot = table.unpack(v)
if targets[StringHelpers.GetUUID(actor)] == true then
return true
end
end
end
end
return false
end
---@vararg string
---@return boolean
function GameHelpers.IsInAnyDialog(...)
local targets = {}
for i,v in pairs({...}) do
local uuid = StringHelpers.GetUUID(v)
local playerDb = Osi.DB_DialogPlayers:Get(nil, uuid, nil)
if playerDb and #playerDb > 0 then
return true
end
local npcDb = Osi.DB_DialogNPCs:Get(nil, uuid, nil)
if npcDb and #npcDb > 0 then
return true
end
end
return false
end
---@param dialog string
---@vararg string
---@return integer|nil
function GameHelpers.GetDialogInstance(dialog, ...)
local targets = {}
for i,v in pairs({...}) do
targets[StringHelpers.GetUUID(v)] = true
end
local instanceDb = Osi.DB_DialogName:Get(dialog, nil)
if instanceDb and #instanceDb > 0 then
local instance = instanceDb[1][2]
if #targets == 0 then
return instance
end
local playerDb = Osi.DB_DialogPlayers:Get(instance, nil, nil)
if playerDb and #playerDb > 0 then
for _,v in pairs(playerDb) do
local inst,actor,slot = table.unpack(v)
if targets[StringHelpers.GetUUID(actor)] == true then
return instance
end
end
end
local npcDb = Osi.DB_DialogNPCs:Get(instance, nil, nil)
if npcDb and #npcDb > 0 then
for _,v in pairs(npcDb) do
local inst,actor,slot = table.unpack(v)
if targets[StringHelpers.GetUUID(actor)] == true then
return instance
end
end
end
end
return nil
end
---@param object EsvCharacter|EsvItem|UUID|NETID
---@param level integer
function GameHelpers.SetExperienceLevel(object, level)
if type(object) ~= "userdata" then
object = GameHelpers.TryGetObject(object)
end
if object then
if GameHelpers.Ext.ObjectIsItem(object) then
if not GameHelpers.Item.IsObject(object) then
if level > object.Stats.Level then
ItemLevelUpTo(object.MyGuid, level)
return true
else
local xpNeeded = Data.LevelExperience[level]
if xpNeeded then
if xpNeeded == 0 then
object.Stats.Experience = 1
Timer.StartOneshot("", 250, function()
object.Stats.Experience = 0
end)
else
object.Stats.Experience = xpNeeded
end
return true
end
end
else
ItemLevelUpTo(object.MyGuid, level)
return true
end
else
if object.Stats and level < object.Stats.Level then
local xpNeeded = Data.LevelExperience[level]
if xpNeeded then
if xpNeeded == 0 then
object.Stats.Experience = 1
Timer.StartOneshot("", 250, function()
object.Stats.Experience = 0
end)
else
object.Stats.Experience = xpNeeded
end
return true
end
else
CharacterLevelUpTo(object.MyGuid, level)
return true
end
end
end
return false
end
---@param character EsvCharacter|UUID|NETID
---@param level integer
function GameHelpers.Character.SetLevel(character, level)
return GameHelpers.SetExperienceLevel(character, level)
end |
tile_grass_plains, tile_beach, tile_forest, tile_ocean, tile_mountain = 0, 1, 2, 3, 4
gamestate_menu, gamestate_game = 0, 1
technology_unit_settler, technology_unit_scout, technology_unit_builder, technology_unit_warrior = 0, 1, 2, 3
technology_building_wall, technology_building_bank = 30, 31 |
Aye = LibStub("AceAddon-3.0"):NewAddon("Aye");
local Aye = Aye;
-- libs
-- external /libs as Aye.libs objects
Aye.libs = {};
Aye.libs.Config = LibStub("AceConfig-3.0");
Aye.libs.ConfigDialog = LibStub("AceConfigDialog-3.0");
Aye.libs.ConfigRegistry = LibStub("AceConfigRegistry-3.0");
Aye.libs.DB = LibStub("AceDB-3.0");
-- utils
-- /utils as Aye.utils functions
Aye.utils = {};
-- modules
-- /modules as Aye.modules.MODULE_NAME objects with optional .events
Aye.modules = {};
-- options
-- Aye.default.global.MODULE_NAME
-- Aye.options.args.MODULE_NAME
Aye.default = {global = {}};
Aye.options = {
name = "All your exigents",
type = "group",
args = {},
};
-- popup to show for insane players
-- credits for idea to Torhal#WoWUIDev. Thanks!
StaticPopupDialogs["AYE_INSANITY"] = {
text =
"|cffe6cc80Aye!|r You are manually loading things that are disabled without first loading their dependencies. |cffff4040You are insane!|r\n\n"
.. "|cff9d9d9dYour insanity could have lured some bugs to the addon.|r What do you wish to do with your insanely loaded addon?"
,
button1 = "Keep Enabled & Reload",
button2 = "Disable & Reload",
OnAccept = function() ReloadUI() end,
OnCancel = function() DisableAddOn(Aye.unload); ReloadUI() end,
timeout = 0,
whileDead = true,
hideOnEscape = false,
preferredIndex = 3,
};
-- errors
-- list of errors to report
Aye.errors = {}; |
--- === cp.web.text ===
---
--- Functions for managing text on the web.
local sbyte, schar = string.byte, string.char
local sfind, ssub, gsub = string.find, string.sub, string.gsub
local mod = {}
local function sub_hex_ent(s)
return schar(tonumber(s, 16))
end
local function sub_dec_ent(s)
return schar(tonumber(s))
end
--- cp.web.text.unescapeXML(s) -> string
--- Function
--- Unescapes a string from XML encoding.
---
--- Parameters:
--- * s - The string you want to unescape
---
--- Returns:
--- * The string, unescaped.
function mod.unescapeXML(s)
if not s then
return nil
end
s = gsub(s, "<", "<")
s = gsub(s, ">", ">")
s = gsub(s, "'", "'")
s = gsub(s, """, '"')
s = gsub(s, "&#x(%x+);", sub_hex_ent)
s = gsub(s, "&#(%d+);", sub_dec_ent)
s = gsub(s, "&", "&")
return s
end
--- cp.web.text.escapeXML(s) -> string
--- Function
--- Escapes a string
---
--- Parameters:
--- * s - The string you want to escape
---
--- Returns:
--- * The string, escaped for XML.
function mod.escapeXML(s)
if not s then
return nil
end
s = gsub(s, "&", "&")
s = gsub(s, "<", "<")
s = gsub(s, ">", ">")
s = gsub(s, "'", "'")
s = gsub(s, '"', """)
return s
end
return mod |
local awful = require('awful')
local wibox = require('wibox')
local awful = require('awful')
local gears = require('gears')
local naughty = require('naughty')
local watch = awful.widget.watch
local apps = require('configuration.apps')
local clickable_container = require('widget.clickable-container')
local dpi = require('beautiful').xresources.apply_dpi
local config_dir = gears.filesystem.get_configuration_dir()
local widget_icon_dir = config_dir .. 'widget/vpn/icons/'
local return_button = function()
local vpn_imagebox = wibox.widget {
nil,
{
id = 'icon',
image = widget_icon_dir .. 'vpn' .. '.png',
widget = wibox.widget.imagebox,
resize = true,
visible = false
},
nil,
expand = 'none',
layout = wibox.layout.align.vertical
}
local vpn_percentage_text = wibox.widget {
id = 'percent_text',
text = 'vpn',
font = 'Hack Nerd Bold 11',
align = 'center',
valign = 'center',
visible = false,
widget = wibox.widget.textbox
}
local vpn_widget = wibox.widget {
layout = wibox.layout.fixed.horizontal,
spacing = dpi(0),
vpn_imagebox,
vpn_percentage_text
}
local vpn_button = wibox.widget {
{
vpn_widget,
margins = dpi(7),
widget = wibox.container.margin
},
widget = clickable_container
}
vpn_button:buttons(
gears.table.join(
awful.button(
{},
1,
nil,
function()
end
)
)
)
vpn_widget:connect_signal(
'mouse::enter',
function()
end
)
local last_status = "Disconnected"
local show_vpn_warning = function(vpn_percentage)
if last_status == tostring(vpn_percentage) then
return
end
last_status = tostring(vpn_percentage)
naughty.notification ({
icon = widget_icon_dir .. 'vpn.png',
app_name = 'System notification',
title = 'VPN ' .. tostring(vpn_percentage),
urgency = 'normal'
})
end
local update_vpn = function()
awful.spawn.easy_async_with_shell(
[[
/opt/cisco/anyconnect/bin/vpn state | grep "state:" | awk 'NR==1{print $4}'
]],
function(stdout)
local vpn_percentage = stdout
--naughty.notify({text = tostring(stdout)})
show_vpn_warning(vpn_percentage)
vpn_imagebox.icon.visible = true
vpn_widget.spacing = dpi(5)
vpn_percentage_text.visible = true
vpn_percentage_text:set_text(vpn_percentage)
end
)
end
-- Watch status if charging, discharging, fully-charged
watch(
[[
/opt/cisco/anyconnect/bin/vpn state
]],
5,
function(widget, stdout)
update_vpn()
end
)
return vpn_button
end
return return_button
|
--[[
Adds a new config code.
False is the default setting, so that the value will be for standart settings "false"
--]]
local PLUGIN = PLUGIN
local Clockwork = Clockwork
Clockwork.config:Add("quick_raise_enable", false);
--[[
This function is a PLUGIN Hook. It checks if the code is 1 = true or 0 = false.
If its false no one can QuickRaise
If its true it will run the default code from sv_kernel.
--]]
-- A Function to check if the config setting is on false.
function PLUGIN:PlayerCanQuickRaise(player, weapon, key)
if (Clockwork.config:Get("quick_raise_enable"):GetBoolean() == false) then
return false;
end;
end; |
local transmitter_options = {
["all_noise"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "dropout",
["transmissionDropout"] = 0.3,
},
{
["transmissionNoiseType"] = "dropout",
["transmissionDropout"] = 0.7,
},
{
["transmissionNoiseType"] = "cropout",
["transmissionCropout"] = 0.3,
},
{
["transmissionNoiseType"] = "cropout",
["transmissionCropout"] = 0.7,
},
{
["transmissionNoiseType"] = "crop",
["transmissionCropSize"] = 0.3,
},
{
["transmissionNoiseType"] = "crop",
["transmissionCropSize"] = 0.7,
},
{
["transmissionNoiseType"] = "gaussian",
["transmissionGaussianSigma"] = 2,
},
{
["transmissionNoiseType"] = "gaussian",
["transmissionGaussianSigma"] = 4,
},
{
["transmissionNoiseType"] = "jpegu",
["transmissionJPEGU_yd"] = 0,
["transmissionJPEGU_yc"] = 5,
["transmissionJPEGU_uvd"] = 0,
["transmissionJPEGU_uvc"] = 3,
},
{
["transmissionNoiseType"] = "jpegq",
["transmissionJPEGQuality"] = 90,
},
-- {
-- ["transmissionNoiseType"] = "jpegq",
-- ["transmissionJPEGQuality"] = 50,
-- },
-- {
-- ["transmissionNoiseType"] = "jpegq",
-- ["transmissionJPEGQuality"] = 10,
-- },
},
["crop_drop"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "cropsize",
["transmissionCropSize"] = 24,
},
{
["transmissionNoiseType"] = "dropoutcrop",
["transmissionCropSize"] = 24,
["transmissionDropout"] = 0.6,
},
},
["jpeg_combined"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "jpegq",
["transmissionJPEGQuality"] = 50,
},
-- {
-- ["transmissionNoiseType"] = "jpegq",
-- ["transmissionJPEGQuality"] = 10,
-- },
{
["transmissionNoiseType"] = "jpegu",
["transmissionJPEGU_yd"] = 0,
["transmissionJPEGU_yc"] = 5,
["transmissionJPEGU_uvd"] = 0,
["transmissionJPEGU_uvc"] = 3,
},
},
["gaussian_combined"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "gaussian",
["transmissionGaussianSigma"] = 2,
},
{
["transmissionNoiseType"] = "gaussian",
["transmissionGaussianSigma"] = 4,
},
},
["crop+drop"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "cropsize",
["transmissionCropSize"] = 24,
},
{
["transmissionNoiseType"] = "dropout",
["transmissionDropout"] = 0.5,
},
},
["crop+drop"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "cropsize",
["transmissionCropSize"] = 24,
},
{
["transmissionNoiseType"] = "dropout",
["transmissionDropout"] = 0.5,
},
},
["resize"] = {
{
["transmissionNoiseType"] = "identity",
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 64,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 80,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 96,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 112,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 144,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 160,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 176,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 192,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 208,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 224,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 240,
},
{
["transmissionNoiseType"] = "resize",
["transmissionOutsize"] = 256,
},
},
}
local CombinedTransmitter, parent = torch.class('nn.CombinedTransmitter', 'nn.Module')
function CombinedTransmitter:__init(recipe)
parent.__init(self)
self.transmitters = {}
self.current = 1
for index, new_opt in ipairs(transmitter_options[recipe]) do
self.transmitters[index], _ = assert(dofile('./transmitter.lua')(new_opt))
end
end
function CombinedTransmitter:updateOutput(input)
self.output = self.transmitters[self.current]:forward(input)
return self.output
end
function CombinedTransmitter:updateGradInput(input, gradOutput)
self.gradInput = self.transmitters[self.current]:backward(input, gradOutput)
self.current = self.current + 1
if self.current > #(self.transmitters) then
self.current = 1
end
return self.gradInput
end
function CombinedTransmitter:clearState()
self.current = 1
parent.clearState(self)
end
|
local M = {}
local api = vim.api
local fn = vim.fn
local utils = require('bqf.utils')
local log = require('bqf.log')
local ffi = require('bqf.ffi')
-- Code in this file relates to source code
-- https://github.com/neovim/neovim/blob/master/src/nvim/window.c
-- bfraction: before scroll_to_fraction, afraction: after scroll_to_fraction
-- bfraction = bwrow / bheight and afraction = awrow / aheight
-- bfraction = afraction ==> bwrow / bheight = awrow / aheight
-- FRACTION_MULT = 16384L
-- wp->w_fraction = ((long)wp->w_wrow * FRACTION_MULT + FRACTION_MULT / 2) / (long)wp->w_height_inner;
local function cal_fraction(wrow, height)
return math.floor((wrow * 16384 + 8192) / height)
end
-- wp->w_wrow = ((long)wp->w_fraction * (long)height - 1L) / FRACTION_MULT;
local function cal_wrow(fraction, height)
return math.floor((fraction * height - 1) / 16384)
end
-- Check out 'void scroll_to_fraction(win_T *wp, int prev_height)' in winodw.c for more details.
local function evaluate_wrow(fraction, height, lines_size)
local wv = fn.winsaveview()
local lnum = wv.lnum
local wrow = cal_wrow(fraction, height)
local line_size = lines_size[0] - 1
local sline = wrow - line_size
log.debug('wrow:', wrow, 'sline:', sline)
if sline >= 0 then
-- plines_win(wp, lnum, false)
local rows = lines_size[lnum]
if sline > height - rows then
sline = height - rows
wrow = wrow - rows + line_size
end
end
if sline < 0 then
-- TODO extremely edge case
wrow = line_size
elseif sline > 0 then
while sline > 0 and lnum > 1 do
lnum = lnum - 1
if lnum == wv.topline then
-- plines_win_nofill(wp, lnum, true)
line_size = lines_size[lnum] + wv.topfill
else
-- plines_win(wp, lnum, true)
line_size = lines_size[lnum]
end
sline = sline - line_size
end
if sline < 0 then
wrow = wrow - line_size - sline
elseif sline > 0 then
wrow = wrow - sline
end
end
log.debug('evaluated wrow:', wrow, 'fraction:', fraction, 'height:', height)
return wrow
end
local function do_filter(frac_list, height, lines_size)
local t = {}
local true_wrow = fn.winline() - 1
log.debug('true_wrow:', true_wrow)
for _, frac in ipairs(frac_list) do
local wrow = evaluate_wrow(frac, height, lines_size)
if true_wrow == wrow then
table.insert(t, frac)
end
end
return t
end
-- If the lnum hasn't been changed, even if the window is resized, the fraction is still a constant.
-- And we can use this feature to find out the possible fraction with changing window height.
-- Check out 'void scroll_to_fraction(win_T *wp, int prev_height)' in winodw.c for more details.
local function filter_fraction(frac_list, lines_size, max_hei)
local asc
local height = api.nvim_win_get_height(0)
local h = height
local min_hei = math.max(vim.o.wmh, 1)
if max_hei then
asc = true
else
asc = false
max_hei = vim.o.lines
end
while #frac_list > 1 and h >= min_hei and h <= max_hei do
frac_list = do_filter(frac_list, h, lines_size)
h = asc and h + 1 or h - 1
api.nvim_win_set_height(0, h)
if asc and api.nvim_win_get_height(0) ~= h then
break
end
end
if h ~= height then
api.nvim_win_set_height(0, height)
end
return frac_list
end
-- TODO line_size can't handle virt_lines and diff filter
local function line_size(lnum, col, wrap, per_lwidth)
if not wrap then
return 1
end
local l
if ffi then
if col then
l = ffi.plines_win_col(lnum, col)
else
l = ffi.plines_win(lnum)
end
else
if not col then
col = '$'
end
l = math.ceil(math.max(fn.virtcol({lnum, col}) - 1, 1) / per_lwidth)
end
log.debug(l, lnum)
return l
end
-- current line number size may greater than 1, must be consider its value after wrappered, use
-- 0 as index in lines_size
local function get_lines_size(winid, pos)
local per_lwidth = ffi and 1 or api.nvim_win_get_width(winid) - utils.textoff(winid)
local wrap = ffi and true or vim.wo[winid].wrap
local lnum, col = unpack(pos)
return setmetatable({}, {
__index = function(tbl, i)
if i == 0 then
rawset(tbl, i, line_size(lnum, col, wrap, per_lwidth))
else
rawset(tbl, i, line_size(i, nil, wrap, per_lwidth))
end
return tbl[i]
end
})
end
function M.evaluate(winid, pos, awrow, aheight, bheight, lbwrow, lfraction)
-- s_bwrow: the minimum bwrow value
-- Below formula we can derive from the known conditions
local s_bwrow = math.ceil(awrow * bheight / aheight - 0.5)
if s_bwrow < 0 or bheight == aheight then
return
end
-- e_bwrow: the maximum bwrow value
-- There are not enough conditions to derive e_bwrow, so we have to figure it out by
-- guessing, and confirm the range of bwrow. It seems that s_bwrow plug 5 as a minimum and
-- 1.2 as a scale is good to balance performance and accuracy
local e_bwrow = math.max(s_bwrow + 5, math.ceil(awrow * 1.2 * bheight / aheight - 0.25))
local lines_size = get_lines_size(winid, pos)
if lbwrow and awrow == evaluate_wrow(lfraction, aheight, lines_size) then
return lfraction, awrow
end
local frac_list = {}
for bw = s_bwrow, e_bwrow do
table.insert(frac_list, cal_fraction(bw, bheight))
end
log.debug('before frac_list', frac_list)
frac_list = filter_fraction(frac_list, lines_size)
log.debug('first frac_list:', frac_list)
frac_list = filter_fraction(frac_list, lines_size, aheight + 9)
log.debug('second frac_list:', frac_list)
if #frac_list > 0 then
local fraction = frac_list[1]
return fraction, evaluate_wrow(fraction, bheight, lines_size)
end
end
function M.resetview(topline, lnum, col, curswant)
fn.winrestview({topline = topline, lnum = lnum, col = col, curswant = curswant})
-- topline may not be changed sometimes without winline()
fn.winline()
end
function M.tune_line(winid, topline, lsizes)
if not vim.wo[winid].wrap or lsizes == 0 then
return lsizes
end
log.debug('lsizes:', lsizes)
local i_start, i_end, i_inc, should_continue, len
local folded_other_lnum
local function neg_one(i)
local _ = i
return -1
end
if lsizes > 0 then
i_start, i_end, i_inc = topline - 1, math.max(1, topline - lsizes), -1
should_continue = function(iter)
return iter >= i_end
end
len = lsizes
folded_other_lnum = fn.foldclosed
else
i_start, i_end, i_inc = topline, topline - lsizes - 1, 1
should_continue = function(iter)
return iter <= i_end
end
len = -lsizes
folded_other_lnum = fn.foldclosedend
end
if not vim.wo[winid].foldenable then
folded_other_lnum = neg_one
end
log.debug(i_start, i_end, i_inc, len)
return utils.win_execute(winid, function()
local per_lwidth = ffi and 1 or api.nvim_win_get_width(winid) - utils.textoff(winid)
local loff, lsize_sum = 0, 0
local i = i_start
while should_continue(i) do
log.debug('=====================================================')
log.debug('i:', i, 'i_end:', i_end)
local fo_lnum = folded_other_lnum(i)
if fo_lnum == -1 then
local lsize = line_size(i, nil, true, per_lwidth)
log.debug('lsize_sum:', lsize_sum, 'lsize:', lsize, 'lnum:', i)
lsize_sum = lsize_sum + lsize
loff = loff + 1
else
log.debug('fo_lnum:', fo_lnum)
lsize_sum = lsize_sum + 1
loff = loff + math.abs(fo_lnum - i) + 1
i_end = i_end + fo_lnum - i
i = fo_lnum
end
log.debug('loff:', loff)
log.debug('=====================================================')
i = i + i_inc
if lsize_sum >= len then
break
end
end
loff = lsizes > 0 and loff or -loff
log.debug('line_offset:', loff)
return loff
end)
end
return M
|
-- factoids.lua - channel specific factoids
function factoid_get_channel(channel)
local chan = channel
if type(cfg.channel[channel].factoids) == "string" then
chan = "#" .. cfg.channel[channel].factoids
end
return chan
end
function forget_factoid(sender, channel, params)
if cfg.channel[channel] and cfg.channel[channel].factoids then
local chan = factoid_get_channel(channel)
factoids[chan] = factoids[chan] or {}
local trigger = params:match("^(.+)$")
if trigger then
trigger = trigger:gsub("[%s%?.!]+$", ""):lower()
local fact = factoids[chan][trigger]
if fact then
factoids[chan][trigger] = nil
saveFactoids(chan)
say(channel or sender, ("I forgot '%s'"):format(trigger))
else
say(channel or sender, ("I don't have anything called '%s' :("):format(trigger))
end
return true
end
else
say(channel or sender, "Factoids aren't enabled for this channel :(")
end
end
function list_factoids(sender, channel, params)
if cfg.channel[channel] and cfg.channel[channel].factoids then
local chan = factoid_get_channel(channel)
factoids[chan] = factoids[chan] or {}
facts = ""
for trigger, fact in pairs(factoids[chan]) do
facts = facts .. ("%s: %s\n"):format(trigger, fact)
end
local f = io.open("output.txt", "w")
if f then
f:write(facts)
f:close()
local prg = io.popen( ([[cat output.txt | curl -F type=nocode -F "token=%s" -F paste='<-' https://paste.apache.org/store]]):format(cfg.secretary.pasteToken), "r")
if prg then
local link = prg:read("*l")
prg:close()
say(channel or sender, ("%s: See %s"):format(sender, link))
end
end
else
say(channel or sender, "Factoids aren't enabled for this channel :(")
end
end
function factoid_scanner(sender, channel, channelLine, struct)
if cfg.channel[channel] and cfg.channel[channel].factoids then
local chan = factoid_get_channel(channel)
factoids[chan] = factoids[chan] or {}
local line = channelLine:gsub("[%s?.!]+$", ""):lower()
local foundFact = false
-- Setting a factoid
local recipient, text = channelLine:match("^([^:,]+)[,:] (.+)")
if recipient and text and recipient:lower() == cfg.irc.nick:lower() then
local firstWord = text:match("^(%S+)")
local assignment = text:match("^%S+%s+(is)")
if not (HelperFunctions[firstWord] and not assignment) then
-- Setting a new fact
local trigger, fact = text:match("^(.-) is (.+)$")
if trigger and not trigger:match("^no,? ") then
if hasKarma(struct, 3) then
trigger = trigger:gsub("[%s%?.!]+$", ""):lower()
if factoids[chan][trigger] then
say(channel or sender, ("But %s is already something else :()"):format(trigger))
return true
else
factoids[chan][trigger] = fact
saveFactoids(chan)
say(channel or sender, ("Okay, %s."):format(sender))
return true
end
else
say(channel or sender, "You need karma level 3 to set factoids.")
return true
end
end
-- Fixing a fact
local trigger, fact = text:match("^no, (.-) is (.+)$")
if trigger then
if hasKarma(struct, 3) then
trigger = trigger:gsub("[%s%?.!]+$", ""):lower()
factoids[chan][trigger] = fact
saveFactoids(chan)
say(channel or sender, ("Okay, %s."):format(sender))
else
say(channel or sender, "You need karma level 3 to set factoids.")
end
return true
end
-- Displaying the literal value of a fact
local trigger = text:match("^literal (.+)$")
if trigger then
trigger = trigger:gsub("[%s%?.!]+$", ""):lower()
local fact = factoids[chan][trigger]
if fact then
say(channel or sender, ("'%s' is: %s"):format(trigger, fact))
else
say(channel or sender, ("I don't have anything called '%s' :()"):format(trigger))
end
return true
end
end
else
local fact = factoids[chan][line]
if fact then
local other = fact:match("^see (.+)")
if other and factoids[chan][other] then
fact = factoids[chan][other]
end
local action = "reply"
if fact:match("^<(.-)> .+$") then
action, fact = fact:match("^<(.-)> (.+)$")
action = action:lower()
end
if action == "reply" then
say(channel or sender, fact)
end
return true
end
end
return foundFact
end
return false
end
function saveFactoids(channel)
channel = channel:gsub("[^#a-zA-Z0-9%-%_.]+", "")
local f = io.open(("./factoids_%s.txt"):format(channel), "w")
for trigger, fact in pairs(factoids[channel] or {}) do
f:write( ("%s %s\n"):format(trigger, fact) )
end
f:close()
end
-- register event callbacks
registerLogger("factoids", ".+", factoid_scanner)
registerHelperFunction("factoids", list_factoids, "Lists the currently known factoids for a given channel", 3)
registerHelperFunction("forget", forget_factoid, "Forgets a factoid, if it exists", 3)
-- Load factoids
factoids = factoids or {}
for chan, config in pairs(cfg.channel) do
if config.factoids then
factoids[chan] = {}
local f = io.open(("./factoids_%s.txt"):format(chan))
if f then
local line = f:read("*l")
while line do
local trigger, fact = line:match("^(.-) (.+)$")
factoids[chan][trigger] = fact
line = f:read("*l")
end
f:close()
end
end
end
|
--require("timeline/timelineBase");
TLAType = {
Move = 1, --位移
Alpha = 2, --透明度
Scale = 3, --缩放
Rotate = 4, --旋转
-- Color = 5, --变色
-- Clip = 6, --剪辑
}
TimelineAnim = class();
function TimelineAnim.ctor(self,target,duration,delay)
self.m_target = target;
self.m_duration = duration;
self.m_delay = delay;
self.m_valueMap = {};
self.m_eventListener = nil;
self.m_propArr = {};
self.m_animArr = {};
self.m_endFuncArr = {};
target = nil;
end
function TimelineAnim.dtor(self)
for i = 1,#self.m_animArr do
delete(self.m_animArr[i]);
self.m_animArr[i] = nil;
end
self.m_animArr = {};
self.m_propArr = {};
self.m_endFuncArr = {};
self.m_valueMap = {};
self.m_endFuncArr = {};
self.m_eventListener = nil;
end
function TimelineAnim.setMove(self,endX,endY,animType)
self.m_valueMap[TLAType.Move] = {endX,endY,animType};
end
function TimelineAnim.setAlpha(self,startValue,endValue,animType)
self.m_valueMap[TLAType.Alpha] = {startValue,endValue,animType};
end
function TimelineAnim.setScale(self,startX,startY,endX,endY,animType,center,x,y)
self.m_valueMap[TLAType.Scale] = {startX,startY,endX,endY,animType,center,x,y};
end
function TimelineAnim.setRotate(self,startRotate,endRotate,animType,center,x,y)
self.m_valueMap[TLAType.Rotate] = {startRotate,endRotate,animType,center,x,y};
end
function TimelineAnim.create(self)
for k,v in pairs(self.m_valueMap) do
if TimelineAnim.typeCreatFuncMap[k] then
TimelineAnim.typeCreatFuncMap[k](self,unpack(v));
end
end
end
function TimelineAnim.createMove(self,endX,endY,animType)
local startX,startY = self.m_target:getPos();
local dx = (endX - startX) * System.getLayoutScale();
local dy = (endY - startY) * System.getLayoutScale();
local animsX = new(AnimDouble,animType or kAnimNormal,0,dx,self.m_duration,self.m_delay or 0);
local animsY = new(AnimDouble,animType or kAnimNormal,0,dy,self.m_duration,self.m_delay or 0);
table.insert(self.m_animArr,animsX);
table.insert(self.m_animArr,animsY);
local prop = new(PropTranslate,animsX,animsY);
table.insert(self.m_propArr,prop);
if self.m_eventListener == nil then
self.m_eventListener = animsX;
end
function endAnim(target,endX,endY)
target:setPos(endX,endY);
end
table.insert(self.m_endFuncArr,{func = endAnim,params = {self.m_target,endX,endY}});
end
function TimelineAnim.createAlpha(self,startValue,endValue,animType)
self.m_target:setTransparency(1);
local anim = new(AnimDouble,animType or kAnimNormal,startValue,endValue,self.m_duration,self.m_delay or 0);
table.insert(self.m_animArr,anim);
local prop = new(PropTransparency,anim);
table.insert(self.m_propArr,prop);
if self.m_eventListener == nil then
self.m_eventListener = anim;
end
end
function TimelineAnim.createScale(self,startX,startY,endX,endY,animType,center,x,y)
local animsX = new(AnimDouble,animType or kAnimNormal,startX,endX,self.m_duration,self.m_delay or 0);
local animsY = new(AnimDouble,animType or kAnimNormal,endX,endY,self.m_duration,self.m_delay or 0);
table.insert(self.m_animArr,animsX);
table.insert(self.m_animArr,animsY);
local prop = new(PropScale,animsX,animsY,center, x, y);
table.insert(self.m_propArr,prop);
if self.m_eventListener == nil then
self.m_eventListener = animsX;
end
end
function TimelineAnim.createRotate(self,startRotate,endRotate,animType,center,x,y)
local anim = new(AnimDouble,animType or kAnimNormal,startRotate,endRotate,self.m_duration,self.m_delay or 0);
table.insert(self.m_animArr,anim);
local prop = new(PropRotate,anim,center, x, y);
table.insert(self.m_propArr,prop);
if self.m_eventListener == nil then
self.m_eventListener = anim;
end
end
TimelineAnim.typeCreatFuncMap = {
[TLAType.Move] = TimelineAnim.createMove;
[TLAType.Alpha] = TimelineAnim.createAlpha;
[TLAType.Scale] = TimelineAnim.createScale;
[TLAType.Rotate] = TimelineAnim.createRotate;
}
function TimelineAnim.getDuration(self)
return self.m_duration;
end
function TimelineAnim.getTarget(self)
return self.m_target;
end
function TimelineAnim.getPropArr(self)
return self.m_propArr;
end
function TimelineAnim.getAnimArr(self)
return self.m_animArr;
end
function TimelineAnim.getEventListener(self)
return self.m_eventListener;
end
function TimelineAnim.onEndAnim(self)
for i = 1,#self.m_endFuncArr do
local func = self.m_endFuncArr[i].func;
local params = self.m_endFuncArr[i].params;
func(unpack(params));
end
end |
--------------------------------------------------------------------------------
-- Statistical functions module.
--
-- Copyright (C) 2011-2016 Stefano Peluchetti. All rights reserved.
--------------------------------------------------------------------------------
-- Variances and covariances are computed according to the unbiased version of
-- the algorithm.
-- Welford-type algorithms are used for superior numerical stability, see:
-- http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance
-- http://www.johndcook.com/standard_deviation.html
-- TODO: BIC, AIC.
-- TODO: Function join(...) to join results for parallel computing.
-- TODO: Speed-up via OpenBLAS.
local ffi = require "ffi"
local alg = require "sci.alg"
local sqrt, abs, max, log = math.sqrt, math.abs, math.max, math.log
local vec, mat, arrayct = alg.vec, alg.mat, alg.arrayct
local typeof, metatype = ffi.typeof, ffi.metatype
local function clear(x)
for i=1,#x do
x[i] = 0
end
end
local function mean(x)
if #x < 1 then
error("#x >=1 required: #x="..#x)
end
local mu = 0
for i=1,#x do
mu = mu + (x[i] - mu)/i
end
return mu
end
local function var(x)
if #x < 2 then
error("#x >= 2 required: #x"..#x)
end
local mu, s2 = 0, 0
for i=1,#x do
local delta = x[i] - mu
mu = mu + delta/i
s2 = s2 + delta*(x[i] - mu)
end
return s2/(#x - 1)
end
local function cov(x, y)
local mux, muy, s2c = 0, 0, 0
if not #x == #y then
error("#x ~= #y: #x="..#x..", #y="..#y)
end
if #x < 2 then
error("#x >= 2 required: #x="..#x)
end
for i=1,#x do
local deltax = x[i] - mux
local deltay = y[i] - muy
local r = 1/i
mux = mux + deltax*r
muy = muy + deltay*r
s2c = s2c + deltax*(y[i] - muy)
end
return s2c/(#x - 1)
end
local function cor(x, y)
return cov(x, y)/sqrt(var(x)*var(y))
end
local function chk_dim(self, x)
local d = self._d
if d ~= #x then
error("argument with #="..#x.." passed to statistics of dimension="..d)
end
return d
end
local function chk_eq_square(X, Y)
local n, m = X:nrow(), X:ncol()
local ny, my = Y:nrow(), Y:ncol()
if not (n == m and n == ny and n == my) then
error("arguments must be square matrices of equal size, passed: "..n.."x"..m
..", "..ny.."x"..my)
end
return n, m
end
local function dim(self)
return self._d
end
local function len(self)
return self._n
end
local function tos_mean(self)
local m = vec(self._d)
self:mean(m)
return "mean:\n"..m:width()
end
local meand_mt = {
dim = dim,
len = len,
clear = function(self)
self._n = 0
clear(self._mu)
end,
push = function(self, x)
local d = chk_dim(self, x)
self._n = self._n + 1
for i=1,d do self._mu[i] = self._mu[i] + (x[i] - self._mu[i])/self._n end
end,
mean = function(self, mean)
local d = chk_dim(self, mean)
if self._n < 1 then
error("n >= 1 required: n="..self._n)
end
for i=1,d do mean[i] = self._mu[i] end
end,
__tostring = tos_mean,
}
meand_mt.__index = meand_mt
local mean0_mt = {
dim = dim,
len = len,
clear = function(self)
self._n = 0
self._mu = 0
end,
push = function(self, x)
self._n = self._n + 1
self._mu = self._mu + (x - self._mu)/self._n
end,
mean = function(self)
return self._mu
end,
__tostring = tos_mean,
}
mean0_mt.__index = mean0_mt
local meand_ct = typeof("struct { int32_t _d, _n; $& _mu; }", arrayct)
local mean0_ct = typeof("struct { int32_t _d, _n; double _mu; }")
meand_ct = metatype(meand_ct, meand_mt)
mean0_ct = metatype(mean0_ct, mean0_mt)
local function tos_var(self)
local v = mat(self._d, self._d)
self:var(v)
return tos_mean(self).."\nvar:\n"..v:width()
end
local vard_mt = {
dim = dim,
len = len,
clear = function(self)
self._n = 0
clear(self._mu)
clear(self._s2)
end,
push = function(self, x)
local d = chk_dim(self, x)
self._n = self._n + 1
local r = 1/self._n
for i=1,d do
self._delta[i] = x[i] - self._mu[i]
self._mu[i] = self._mu[i] + self._delta[i]*r
self._s2[i] = self._s2[i] + self._delta[i]*(x[i] - self._mu[i])
end
end,
mean = meand_mt.mean,
var = function(self, var)
local d = chk_dim(self, var)
if self._n < 2 then
error("n >= 2 required: n="..self._n)
end
for i=1,d do var[i] = self._s2[i]/(self._n - 1) end
end,
__tostring = tos_var,
}
vard_mt.__index = vard_mt
local var0_mt = {
dim = dim,
len = len,
clear = function(self)
self._n = 0
self._mu = 0
self._s2 = 0
end,
push = function(self, x)
self._n = self._n + 1
local r = 1/self._n
self._delta = x - self._mu
self._mu = self._mu + self._delta*r
self._s2 = self._s2 + self._delta*(x - self._mu)
end,
mean = mean0_mt.mean,
var = function(self)
if self._n < 2 then
error("n >= 2 required: n="..self._n)
end
return self._s2/(self._n - 1)
end,
__tostring = tos_var,
}
var0_mt.__index = var0_mt
local vard_ct = typeof("struct { int32_t _d, _n; $& _mu; $& _delta; $& _s2; }",
arrayct, arrayct, arrayct)
local var0_ct = typeof("struct { int32_t _d, _n; double _mu, _delta, _s2; }")
vard_ct = metatype(vard_ct, vard_mt)
var0_ct = metatype(var0_ct, var0_mt)
-- Y *can* alias X.
local function covtocor(X, Y)
local n, m = chk_eq_square(X, Y)
for r=1,n do
for c=1,m do
if r ~= c then
Y[{r,c}] = X[{r,c}]/sqrt(X[{r,r}]*X[{c,c}])
end
end
end
for i=1,n do Y[{i,i}] = 1 end
end
local function tos_cor(self)
local c, r = mat(self._d, self._d), mat(self._d, self._d)
self:cov(c)
self:cor(r)
return tos_mean(self).."\ncov:\n"..c:width().."\ncor:\n"..r:width()
end
local covd_mt = {
dim = dim,
len = len,
clear = function(self)
self._n = 0
clear(self._mu)
clear(self._s2)
end,
push = function(self, x)
local d = chk_dim(self, x)
self._n = self._n + 1
local r = 1/self._n
for i=1,d do
self._delta[i] = x[i] - self._mu[i]
self._mu[i] = self._mu[i] + self._delta[i]*r
end
for i=1,d do for j=1,d do
self._s2[{i,j}] = self._s2[{i,j}] + self._delta[i]*(x[j] - self._mu[j])
end end
end,
mean = meand_mt.mean,
var = function(self, var)
local d = chk_dim(self, var)
if self._n < 2 then
error("n >= 2 required: n="..self._n)
end
for i=1,d do var[i] = self._s2[{i,i}]/(self._n - 1) end
end,
cov = function(self, cov)
local n, m = chk_eq_square(self._s2, cov)
if self._n < 2 then
error("n >= 2 required: n="..self._n)
end
for i=1,n do for j=1,m do
cov[{i,j}] = self._s2[{i,j}]/(self._n - 1)
end end
end,
cor = function(self, cor)
self:cov(cor)
covtocor(cor, cor)
end,
__tostring = tos_cor,
}
covd_mt.__index = covd_mt
local covd_ct = typeof("struct { int32_t _d, _n; $& _mu; $& _delta; $& _s2; }",
arrayct, arrayct, arrayct)
covd_ct = metatype(covd_ct, covd_mt)
local samples_mt = {
dim = dim,
len = len,
clear = function(self)
self._n = 0
self._x = { }
end,
push = function(self, x)
local d = chk_dim(self, x)
self._n = self._n + 1
self._x[n] = x:copy()
end,
samples = function(self, samples)
local n, m = samples:nrow(), samples:ncol()
if n ~= self._n or m ~= self._d then
error("output matrix has wrong dimensions")
end
for i=1,n do for j=1,m do
samples[{i,j}] = self._x[{i,j}]
end end
end,
}
samples_mt.__index = samples_mt
local anchor = setmetatable({ }, { __mode = "k" })
local function olmean(dim)
if dim == 0 then
return mean0_ct(dim)
else
local mu = vec(dim)
local v = meand_ct(dim, 0, mu)
anchor[v] = { mu }
return v
end
end
local function olvar(dim)
if dim == 0 then
return var0_ct(dim)
else
local mu, delta, s2 = vec(dim), vec(dim), vec(dim)
local v = vard_ct(dim, 0, mu, delta, s2)
anchor[v] = { mu, delta, s2 }
return v
end
end
local function olcov(dim)
local mu, delta, s2 = vec(dim), vec(dim), mat(dim, dim)
local v = covd_ct(dim, 0, mu, delta, s2)
anchor[v] = { mu, delta, s2 }
return v
end
local function olsamples(dim)
return setmetatable({ _d = dim, _n = 0, _x = { } }, samples_mt)
end
return {
mean = mean,
var = var,
cov = cov,
cor = cor,
covtocor = covtocor,
olmean = olmean,
olvar = olvar,
olcov = olcov,
olsamples = olsamples,
}
|
local Tunnel = module("vrp", "lib/Tunnel")
local Proxy = module("vrp", "lib/Proxy")
MySQL = module("vrp_mysql", "MySQL")
vRP = Proxy.getInterface("vRP")
vRPclient = Tunnel.getInterface("vRP","vRP_trucker")
vRPCtruck = Tunnel.getInterface("vRP_trucker","vRP_trucker")
vRPtruck = {}
Tunnel.bindInterface("vRP_trucker",vRPtruck)
Proxy.addInterface("vRP_trucker",vRPtruck)
x, y, z = 20.78282737732,-2486.6345214844,6.0067796707154
trailerCoords = {
[1] = {45.078811645508,-2475.0646972656,6.3240194320678, 1},
[2] = {42.933082580566,-2476.9184570312,6.905936717987, 1},
[3] = {41.984375,-2479.5810546875,6.9055109024048, 1},
[4] = {40.802635192872,-2482.0200195312,5.9073495864868, 1},
[5] = {38.894924163818,-2483.9655761718,5.9065561294556, 1}
}
trucks = {"kamaz", "k54115", "daf", "man", "haulmaster2", "nav9800", "phantom3", "ramvan"}
trailers = {"TANKER", "TRAILERS", "TRAILERS2"}
activeDeliveries = {}
unloadLocations = {
{"Tesco Extra", 186.87092590332,6614.294921875,31.82873916626, "Fuel", 9102}, --Blaine
{"Middlemore Farm", 2015.2478027344,4979.3334960938,41.288940429688, "Fertilizer", 7728}, --Ferma
{"Fishing Triton", 3806.3562011718,4457.3383789062,4.3696641921998, "Boat Parts", 7909}, --Iesirea inspre mare partea dreapta
{"Motor Wood", -577.99694824218,5325.5283203125,70.263298034668, "Engine Parts", 7835}, -- Blaine cherestea
{"Golden Fish", 1309.264038086,4328.076171875,38.1669921875, "Fishing Nets", 6936}, -- Pescarie lacul din mijloc
{"Secret Army", -2069.2082519532,3386.5070800782,31.282091140748, "Uranium", 6234}, -- Blaine cherestea
{"Ardmore Construction", 870.50927734375,2343.2783203125,51.687889099122, "Bricks", 4904}, -- Aproape de armata
{"Los Santos Government", 2482.4860839844,-443.32431030274,92.992576599122, "Guns", 3299}, -- facilitate secreta los santos dreapta
{"Trevor Airport", 1744.2651367188,3289.7778320312,41.102840423584, "Aeronautical Components", 6028}, -- aeroport trevor
{"Pet Shop", 562.17309570312,2722.1853027344,42.060230255126, "Animal Food", 5237}, -- petshop xtremezone
{"Gallery Mall", -2318.4116210938,280.80227661132,169.467086792, "Furnish", 3627}, -- mall Xtremezone
{"The Cement Factory", 1215.9357910156,1877.8912353516,78.845520019532, "Stone", 4526}, -- Fabrica de ciment la iesire din los santos
{"Peregrine Farm", -50.683254241944,1874.984008789,196.8624572754, "Fertilizer", 4366}, -- Langa Poacher
{"SPAM", -64.300018310546,6275.9194335938,31.35410118103, "Live Poultry", 8763}, -- Langa Poacher
{"Super Tools", 2672.3757324218,3518.2490234375,52.712032318116, "Tools", 6564}, -- Paralel cu Human Labs
{"Lance Industry", 849.52270507812,2201.7373046875,51.490081787116, "Pesticides", 4761}, -- Langa constructia din mijloc
{"Aircraft Cemetery", 2333.0327148438,3137.6437988282,48.178939819336, "Parts", 6081}, --
{"Saskia Water Plant", -1921.7559814454,2045.240234375,140.73533630372, "Bottles", 4932}, -- Podgorie
{"Seven Gas Station", 2563.6311035156,419.98919677734,108.45681762696, "Fuel", 3863} --Benzinarie
}
deliveryDistances = {}
deliveryCompany = {"ACI SRL", "ACC", "EuroAcres", "EuroGoodies", "GlobeEUR", "Renar Logistik", "S.A.L S.R.L", "TE Logistica", "Tesoro Gustoso", "Tradeaux"}
AddEventHandler("vRP:playerSpawn",function(user_id,source,first_spawn)
vRPclient.addBlip(source,{x, y, z, 318, 3, "Logistics"})
end)
function vRPtruck.getTrucks()
return trucks, trailers
end
function vRPtruck.finishTruckingDelivery(distance)
thePlayer = source
local user_id = vRP.getUserId({thePlayer})
deliveryMoney = math.ceil(distance*3.80)
vRPclient.notify(thePlayer, {"~w~[TRUCK] ~g~You delivered the cargo and received ~r~$"..deliveryMoney})
vRP.giveMoney({user_id, deliveryMoney})
end
function vRPtruck.payTrailerFine()
thePlayer = source
local user_id = vRP.getUserId({thePlayer})
if(vRP.tryFullPayment({user_id, 5000}))then
vRPclient.notify(thePlayer, {"~w~[TRUCKER] ~r~The trailer was totalled! You paid damage of ~g~$5000"})
end
end
function vRPtruck.updateBayStats(theBay, stats)
trailerCoords[theBay][4] = stats
end
local function takeDeliveryJob(thePlayer, theDelivery)
lBay = 0
for i, v in pairs(trailerCoords) do
if(v[4] == 1)then
lBay = i
trailerCoords[lBay][4] = 0
break
end
end
if(lBay ~= 0)then
vRPCtruck.spawnTrailer(thePlayer, {lBay, trailerCoords[lBay]})
local user_id = vRP.getUserId({thePlayer})
activeDeliveries[user_id] = unloadLocations[theDelivery]
vRPCtruck.saveDeliveryDetails(thePlayer, {activeDeliveries[user_id]})
vRP.closeMenu({thePlayer})
vRPclient.notify(thePlayer, {"~w~[TRUCKER] ~g~Go to ~r~"..activeDeliveries[user_id][1].." ~g~to deliver ~r~"..activeDeliveries[user_id][5]})
else
vRPclient.notify(thePlayer, {"~w~[TRUCKER] ~r~There are no empty slots for the trailer! Please come back later!"})
return
end
end
trucker_menu = {name="Logistics Deliveries",css={top="75px", header_color="rgba(0,125,255,0.75)"}}
RegisterServerEvent("openTruckerJobs")
AddEventHandler("openTruckerJobs", function()
thePlayer = source
local user_id = vRP.getUserId({thePlayer})
for i, v in ipairs(unloadLocations) do
deliveryName = tostring(v[1])
dX, dY, dZ = v[2], v[3], v[4]
deliveryType = v[5]
deliveryDistance = v[6]
deliveryMoney = math.ceil(deliveryDistance*3.80)
theCompany = deliveryCompany[math.random(1, #deliveryCompany)]
trucker_menu[deliveryName] = {function() takeDeliveryJob(thePlayer, i) end, "Logistics Company: <font color='yellow'>"..theCompany.."</font><br>Cargo: <font color='red'>"..deliveryType.."</font><br>Distance: <font color='red'>"..(deliveryDistance/1000).." KM</font><br>Pay: <font color='green'>$"..deliveryMoney.."</font>"}
end
vRP.openMenu({thePlayer,trucker_menu})
end)
|
require "AutoreleasePool"
require "CommonUtils"
Object = {};
Object.__index = Object;
Object.__classname = "Object";
--class(Object);
function Object:get(objectId--[[option]])
local obj = {};
obj.__propertylist = {};
setmetatable(obj, self);
function self.__newindex(t, k, v)
--print(type(v).."\t"..k..","..tostring(v));
if type(v) == "table" and v.retain then
t:setProperty(k, v);
else
if v == nil then
local plist = rawget(t, "__propertylist");
local ev = rawget(plist, k);
if ev then
t:setProperty(k, v);
end
else
rawset(t, k, v);
end
end
end
function self.__index(t, k)
local v = rawget(t, k);
local metatable = getmetatable(t);
if v == nil and metatable then
v = metatable[k];
end
if v == nil then
local plist = rawget(t, "__propertylist");
if plist ~= nil then
v = rawget(plist, k);
end
end
return v;
end
obj.__objectid = objectId;
if objectId == nil or not isObjCObject(objectId) then
obj.__retaincount = 1;
end
obj:init();
return obj:autorelease();
end
function Object:new()
return self:get();
end
function Object:init()
end
function Object:dealloc()
for k, v in pairs(self.__propertylist) do
if v and type(v) == "table" and v.id then
v:release();
end
end
self.__objectid = nil;
end
-- instance methods
function Object:id()
return self.__objectid;
end
function Object:release()
if self.__retaincount then
self.__retaincount = self.__retaincount - 1;
if self.__retaincount == 0 then
self:dealloc();
end
else
local objectid = self:id()
if self:retainCount() == 1 then
self:dealloc();
end
runtime::releaseObject(objectid);
end
end
function Object:retain()
if self.__retaincount then
self.__retaincount = self.__retaincount + 1;
else
runtime::retainObject(self:id());
end
return self;
end
function Object:retainCount()
if self.__retaincount then
return self.__retaincount;
end
return runtime::objectRetainCount(self:id());
end
function Object:equals(obj)
if obj.id then
local sb, se = string.find(self:id(), obj:id());
if sb and se then
return se == string.len(self:id());
end
end
return false;
end
function Object:classname()
return self.__classname;
end
function Object:autorelease()
local success = _autorelease_pool_addObject(self);
if success == false then
print("error, autorelease failed, no pool around");
end
return self;
end
function Object:hash()
return runtime::invokeMethod(self:id(), "hash");
end
function Object:objCClassName()
return runtime::objectClassName(self:id());
end
function Object.objectIsKindOfClass(objId, className)
return toLuaBool(runtime::invokeClassMethod("LIRuntimeUtils", "object:isKindOfClass:", objId, className));
end
function Object:isKindOfClass(className)
return self.objectIsKindOfClass(self:id(), className);
end
function Object:objCDescription()
return runtime::objectDescription(self:id());
end
function Object:setAssociatedObject(obj)
if obj.id then
obj = obj:id();
end
runtime::invokeClassMethod("LIRuntimeUtils", "setAssociatedObjectFor:key:value:policy:override", self:id(), "", obj, 1, toObjCBool(true));
end
function Object:associatedObject()
local objId = runtime::invokeClassMethod("LIRuntimeUtils", "getAssociatedObjectWithAppId:forObject:key:", AppContext.current(), self:id(), "");
return Object:new(objId);
end
function Object:removeAssociatedObject()
runtime::invokeClassMethod("LIRuntimeUtils", "removeAssociatedObjectsForObject:", self:id());
end
function Object:setProperty(k, v)
if v then
v:retain();
end
local oldValue = self.__propertylist[k];
if oldValue then
oldValue:release();
oldValue = nil;
end
self.__propertylist[k] = v;
end
|
--[[--
by ALA @ 163UI/网易有爱, http://wowui.w.163.com/163ui/
CREDIT shagu/pfQuest(MIT LICENSE) @ https://github.com/shagu
--]]--
----------------------------------------------------------------------------------------------------
local __addon, __ns = ...;
_G.__ala_meta__ = _G.__ala_meta__ or { };
__ala_meta__.quest = __ns;
local core = { };
__ns.core = core;
__ns.____bn_tag = select(2, BNGetInfo());
__ns.__dev = select(2, GetAddOnInfo("!!!!!DebugMe")) ~= nil;
__ns.__toc = select(4, GetBuildInfo());
__ns.__expansion = GetExpansionLevel();
__ns.__maxLevel = GetMaxLevelForExpansionLevel(__ns.__expansion);
__ns.__fenv = setmetatable({ }, {
__index = _G,
__newindex = function(t, key, value)
rawset(t, key, value);
print("cdx assign global", key, value);
return value;
end,
}
);
if __ns.__dev then
setfenv(1, __ns.__fenv);
end
local _G = _G;
local _ = nil;
--------------------------------------------------
--> Time
local _debugprofilestart, _debugprofilestop = debugprofilestart, debugprofilestop;
local TheFuckingAccurateTime = _G.AccurateTime;
-- Fuck the fucking idiot's code. I think his head is full of bullshit.
if TheFuckingAccurateTime ~= nil then
_debugprofilestart = TheFuckingAccurateTime._debugprofilestart or _debugprofilestart;
_debugprofilestop = TheFuckingAccurateTime._debugprofilestop or _debugprofilestop;
end
--
local _LT_devDebugProfilePoint = {
["*"] = 0,
};
local function _F_devDebugProfileStart(key)
_LT_devDebugProfilePoint[key] = _debugprofilestop();
end
local function _F_devDebugProfileTick(key)
local _val = _LT_devDebugProfilePoint[key];
if _val ~= nil then
_val = _debugprofilestop() - _val;
_val = _val - _val % 0.0001;
return _val;
end
end
__ns._F_devDebugProfileStart = _F_devDebugProfileStart;
__ns._F_devDebugProfileTick = _F_devDebugProfileTick;
local _LN_devTheLastDebugProfilePoint = _debugprofilestop();
function _G.debugprofilestart()
_LN_devTheLastDebugProfilePoint = _debugprofilestop();
end
function _G.debugprofilestop()
return _debugprofilestop() - _LN_devTheLastDebugProfilePoint;
end
--> Time
if GetTimePreciseSec == nil then
_F_devDebugProfileStart("_sys._1core.time.alternative");
GetTimePreciseSec = function()
return _F_devDebugProfileTick("_sys._1core.time.alternative");
end
end
local _LN_devBaseTime = GetTimePreciseSec();
function __ns._F_devGetPreciseTime()
local _now = GetTimePreciseSec() - _LN_devBaseTime + 0.00005;
return _now - _now % 0.0001;
end
-->
--[=[dev]=] if __ns.__dev then __ns._F_devDebugProfileStart('module.init'); end
local SET = nil;
--> SafeCall
local xpcall = xpcall;
local _F_ErrorHandler = geterrorhandler();
hooksecurefunc("seterrorhandler", function(handler)
_F_ErrorHandler = handler;
end);
function core._F_SafeCall(func, ...)
return xpcall(func, _F_ErrorHandler, ...);
end
-->
--> EventHandler
local _EventHandler = CreateFrame("FRAME");
core.__eventHandler = _EventHandler;
local function _noop_()
end
--> Simple Event Dispatcher
local function OnEvent(self, event, ...)
return __ns[event](...);
end
function _EventHandler:FireEvent(event, ...)
local func = __ns[event];
if func then
return func(...);
end
end
function _EventHandler:RegEvent(event, func)
__ns[event] = func or __ns[event] or _noop_;
self:RegisterEvent(event);
self:SetScript("OnEvent", OnEvent);
end
function _EventHandler:UnregEvent(event)
self:UnregisterEvent(event);
end
--> run_on_next_tick -- execute 0.2s ~ 0.3s later
local run_on_next_tick_func_1 = { };
local run_on_next_tick_func_2 = { };
local run_on_next_tick_hash_1 = { };
local run_on_next_tick_hash_2 = { };
local timer = 0.0;
-- run in sequence of 'insert'
local function run_on_next_tick_handler(self, elasped)
timer = timer + elasped;
if timer >= 0.15 then
timer = 0.0;
local func = tremove(run_on_next_tick_func_2, 1);
while func ~= nil do
if run_on_next_tick_hash_2[func] ~= nil then
func();
-- run_on_next_tick_hash_2[func] = nil;
end
func = tremove(run_on_next_tick_func_2, 1);
end
if run_on_next_tick_func_1[1] == nil then
_EventHandler:SetScript("OnUpdate", nil);
run_on_next_tick_hash_1 = { };
run_on_next_tick_hash_2 = { };
else
run_on_next_tick_func_1, run_on_next_tick_func_2 = run_on_next_tick_func_2, run_on_next_tick_func_1;
-- run_on_next_tick_hash_1, run_on_next_tick_hash_2 = run_on_next_tick_hash_2, run_on_next_tick_hash_1;
run_on_next_tick_hash_2 = run_on_next_tick_hash_1;
run_on_next_tick_hash_1 = { };
end
end
end
function _EventHandler:run_on_next_tick(func)
if run_on_next_tick_hash_1[func] ~= nil then
return false;
end
-- if run_on_next_tick_hash_2[func] ~= nil then
-- return false;
-- end
local index = #run_on_next_tick_func_1 + 1;
run_on_next_tick_func_1[index] = func;
run_on_next_tick_hash_1[func] = index;
self:SetScript("OnUpdate", run_on_next_tick_handler);
return true;
end
-->
-->
--> Const
core.__const = {
TAG_DEFAULT = '__pin_tag_default',
TAG_WM_COMMON = '__pin_tag_wm_common',
TAG_WM_LARGE = '__pin_tag_wm_large',
TAG_WM_VARIED = '__pin_tag_wm_varied',
TAG_MM_COMMON = '__pin_tag_mm_common',
TAG_MM_LARGE = '__pin_tag_mm_large',
TAG_MM_VARIED = '__pin_tag_mm_varied',
};
-->
--> Restricted Implementation
local select = select;
local loadstring = loadstring;
local tostring = tostring;
local table_concat = table.concat;
local _F_SafeCall = core._F_SafeCall;
local _LT_CorePrint_Method = setmetatable(
{
[0] = function()
DEFAULT_CHAT_FRAME:AddMessage("\124cff00ff00>\124r nil");
end,
['*'] = function(...)
local _nargs = select('#', ...);
local _argsv = { ... };
for _index = _nargs, 1, -1 do
if _argsv[_index] ~= nil then
_nargs = _index;
break;
end
end
for _index = 1, _nargs do
_argsv[_index] = tostring(_argsv[_index]);
end
DEFAULT_CHAT_FRAME:AddMessage("\124cff00ff00>\124r " .. table_concat(_argsv, " "));
end,
},
{
__index = function(t, nargs)
if nargs > 0 and nargs < 8 then
local _head = "local tostring = tostring;\nreturn function(arg1";
local _body = ") DEFAULT_CHAT_FRAME:AddMessage(\"\124cff00ff00>\124r \" .. tostring(arg1)";
local _tail = "); end";
for _index = 2, nargs do
_head = _head .. ", arg" .. _index;
_body = _body .. " .. \" \" .. tostring(arg" .. _index .. ")";
end
local _func0, _err = loadstring(_head .. _body .. _tail);
if _func0 == nil then
local _func = t['*'];
t[nargs] = _func;
return _func;
else
local _, _func = _F_SafeCall(_func0);
if _func == nil then
_func = t['*'];
end
t[nargs] = _func;
return _func;
end
else
local _func = t['*'];
t[nargs] = _func;
return _func;
end
end,
}
);
for _index = 1, 8 do
local _func = _LT_CorePrint_Method[_index];
end
local function _F_CorePrint(...)
local _func = _LT_CorePrint_Method[select('#', ...)];
if _func ~= nil then
_func(...);
end
end
__ns._F_CorePrint = _F_CorePrint;
-->
--> string
local gsub = gsub;
local function BuildRegularExp(pattern)
-- escape magic characters
pattern = gsub(pattern, "([%+%-%*%(%)%?%[%]%^])", "%%%1");
-- remove capture indexes
pattern = gsub(pattern, "%d%$", "");
-- catch all characters
pattern = gsub(pattern, "(%%%a)", "%(%1+%)");
-- convert all %s to .+
pattern = gsub(pattern, "%%s%+", ".+");
-- set priority to numbers over strings
pattern = gsub(pattern, "%(.%+%)%(%%d%+%)", "%(.-%)%(%%d%+%)");
return pattern;
end
core.__L_QUEST_MONSTERS_KILLED = BuildRegularExp(QUEST_MONSTERS_KILLED);
core.__L_QUEST_ITEMS_NEEDED = BuildRegularExp(QUEST_ITEMS_NEEDED);
core.__L_QUEST_OBJECTS_FOUND = BuildRegularExp(QUEST_OBJECTS_FOUND);
if strfind(QUEST_MONSTERS_KILLED, ":") then
core.__L_QUEST_DEFAULT_PATTERN = "(.+):";
else
core.__L_QUEST_DEFAULT_PATTERN = "(.+):";
end
local LevenshteinDistance;
if CalculateStringEditDistance ~= nil then
LevenshteinDistance = CalculateStringEditDistance;
else
-- credit to https://gist.github.com/Badgerati/3261142
local strbyte, min = strbyte, math.min;
function LevenshteinDistance(str1, str2)
-- quick cut-offs to save time
if str1 == "" then
return #str2;
elseif str2 == "" then
return #str1;
elseif str1 == str2 then
return 0;
end
local len1 = #str1;
local len2 = #str2;
local matrix = { };
-- initialise the base matrix values
for i = 0, len1 do
matrix[i] = { };
matrix[i][0] = i;
end
for j = 0, len2 do
matrix[0][j] = j;
end
-- actual Levenshtein algorithm
for i = 1, len1 do
for j = 1, len2 do
if strbyte(str1, i) == strbyte(str2, j) then
matrix[i][j] = min(matrix[i - 1][j] + 1, matrix[i][j - 1] + 1, matrix[i - 1][j - 1]);
else
matrix[i][j] = min(matrix[i - 1][j] + 1, matrix[i][j - 1] + 1, matrix[i - 1][j - 1] + 1)
end
end
end
-- return the last value - this is the Levenshtein distance
return matrix[len1][len2];
end
end
local BIG_NUMBER = 4294967295;
local function FindMinLevenshteinDistance(str, loc, ids)
local bestDistance = BIG_NUMBER;
local bestIndex = -1;
for index = 1, #ids do
local id = ids[index];
local text = loc[id];
if text ~= nil then
local distance = LevenshteinDistance(str, text);
if distance < bestDistance then
bestDistance = distance;
bestIndex = index;
end
end
end
return ids[bestIndex], bestIndex, bestDistance;
end
core.FindMinLevenshteinDistance = FindMinLevenshteinDistance;
-->
--> bit-data
local bitrace = {
["Human"] = 1,
["Orc"] = 2,
["Dwarf"] = 4,
["NightElf"] = 8,
["Scourge"] = 16,
["Tauren"] = 32,
["Gnome"] = 64,
["Troll"] = 128,
["Goblin"] = 256,
["BloodElf"] = 512,
["Draenei"] = 1024,
};
local racebit = { }; for _race, _bit in next, bitrace do racebit[_bit] = _race; end
local bitclass = {
["WARRIOR"] = 1,
["PALADIN"] = 2,
["HUNTER"] = 4,
["ROGUE"] = 8,
["PRIEST"] = 16,
["SHAMAN"] = 64,
["MAGE"] = 128,
["WARLOCK"] = 256,
["DRUID"] = 1024,
};
local classbit = { }; for _class, _bit in next, bitclass do classbit[_bit] = _class; end
local __player_race = select(2, UnitRace('player'));
local __player_race_bit = bitrace[__player_race];
local __player_class = UnitClassBase('player');
local __player_class_bit = bitclass[__player_class];
local _bit_band = bit.band;
local function bit_check(_b1, _b2)
return _bit_band(_b1, _b2) ~= 0;
end
local function bit_check_race(_b)
return _bit_band(_b, __player_race_bit) ~= 0;
end
local function bit_check_class(_b)
return _bit_band(_b, __player_class_bit) ~= 0;
end
local function bit_check_race_class(_b1, _b2)
return _bit_band(_b1, __player_race_bit) ~= 0 and _bit_band(_b2, __player_class_bit) ~= 0;
end
core.__bitrace = bitrace;
core.__racebit = racebit;
core.__bitclass = bitclass;
core.__classbit = classbit;
core.__player_race = __player_race;
core.__player_race_bit = __player_race_bit;
core.__player_class = __player_class;
core.__player_class_bit = __player_class_bit;
core.__bit_check = bit_check;
core.__bit_check_race = bit_check_race;
core.__bit_check_class = bit_check_class;
core.__bit_check_race_class = bit_check_race_class;
-->
--> Map -- 坐标系转换方法,参考自HandyNotes -- C_Map效率非常低,可能因为构建太多Mixin(CreateVector2D)
--
--[[
mapType
0 = COSMIS
1 = WORLD
2 = CONTINENT
3 = ZONE
4 = DUNGEON
5 = MICRO
6 = ORPHAN
]]
local tremove, next = tremove, next;
local UnitPosition = UnitPosition;
local C_Map = C_Map;
local C_Map_GetBestMapForUnit = C_Map.GetBestMapForUnit;
local C_Map_GetWorldPosFromMapPos = C_Map.GetWorldPosFromMapPos;
local C_Map_GetMapChildrenInfo = C_Map.GetMapChildrenInfo;
local C_Map_GetMapGroupID = C_Map.GetMapGroupID;
local C_Map_GetMapGroupMembersInfo = C_Map.GetMapGroupMembersInfo;
local C_Map_GetMapInfo = C_Map.GetMapInfo;
local C_Map_GetMapInfoAtPosition = C_Map.GetMapInfoAtPosition;
--
local WORLD_MAP_ID = C_Map.GetFallbackWorldMapID() or 947; -- 947
local mapMeta = { }; -- [map] = { 1width, 2height, 3left, 4top, [instance], [name], [mapType], [parent], [children], [adjoined], }
local worldMapData= { -- [instance] = { 1width, 2height, 3left, 4top, }
[0] = { 44688.53, 29795.11, 32601.04, 9894.93 }, -- Eastern Kingdoms
[1] = { 44878.66, 29916.10, 8723.96, 14824.53 }, -- Kalimdor
};
local __player_map_id = C_Map_GetBestMapForUnit('player');
--> data
local mapHandler = CreateFrame("FRAME");
mapHandler:SetScript("OnEvent", function(self, event)
local map = C_Map_GetBestMapForUnit('player');
if __player_map_id ~= map then
__player_map_id = map;
_EventHandler:FireEvent("__PLAYER_ZONE_CHANGED", map);
end
end);
mapHandler:UnregisterAllEvents();
mapHandler:RegisterEvent("ZONE_CHANGED_NEW_AREA");
mapHandler:RegisterEvent("ZONE_CHANGED");
mapHandler:RegisterEvent("ZONE_CHANGED_INDOORS");
mapHandler:RegisterEvent("NEW_WMO_CHUNK");
mapHandler:RegisterEvent("PLAYER_ENTERING_WORLD");
-- 地图坐标系【右手系,右下为0】(x, y, z) >> 地图坐标系【左手系,左上为0】(-y, -x, z)
local vector0000 = CreateVector2D(0, 0);
local vector0505 = CreateVector2D(0.5, 0.5);
local processMap = nil;
processMap = function(map)
local meta = mapMeta[map];
if meta == nil then
local data = C_Map_GetMapInfo(map);
if data ~= nil then
-- get two positions from the map, we use 0/0 and 0.5/0.5 to avoid issues on some maps where 1/1 is translated inaccurately
local instance, x00y00 = C_Map_GetWorldPosFromMapPos(map, vector0000);
local _, x05y05 = C_Map_GetWorldPosFromMapPos(map, vector0505);
if x00y00 ~= nil and x05y05 ~= nil then
local top, left = x00y00:GetXY();
local bottom, right = x05y05:GetXY();
local width, height = (left - right) * 2, (top - bottom) * 2;
bottom = top - height;
right = left - width;
meta = { width, height, left, top, instance = instance, name = data.name, mapType = data.mapType, };
mapMeta[map] = meta;
else
meta = { 0, 0, 0, 0, instance = instance or -1, name = data.name, mapType = data.mapType, };
mapMeta[map] = meta;
end
local pmap = data.parentMapID;
if pmap ~= nil then
local pmeta = processMap(pmap);
if pmeta ~= nil then
meta.parent = pmap;
local cmaps = pmeta.children;
if cmaps == nil then
cmaps = { };
pmeta.children = cmaps;
end
cmaps[map] = 1;
end
end
local children = C_Map_GetMapChildrenInfo(map);
if children ~= nil and children[1] ~= nil then
for index = 1, #children do
local cmap = children[index].mapID;
if cmap ~= nil then
local cmeta = processMap(cmap);
if cmeta ~= nil then
local cmaps = meta.children;
if cmaps == nil then
cmaps = { };
meta.children = cmaps;
end
cmaps[cmap] = 1;
end
end
end
end
-- process sibling maps (in the same group)
-- in some cases these are not discovered by GetMapChildrenInfo above
--> Maybe classic doesnot use it.
local groupID = C_Map_GetMapGroupID(map);
if groupID then
local groupMembers = C_Map_GetMapGroupMembersInfo(groupID);
if groupMembers ~= nil and groupMembers[1] ~= nil then
for index = 1, #groupMembers do
local mmap = groupMembers[index].mapID;
if mmap ~= nil then
processMap(mmap);
end
end
end
end
for x = 0.00, 1.00, 0.25 do
for y = 0.00, 1.00, 0.25 do
local adata = C_Map_GetMapInfoAtPosition(map, x, y);
if adata ~= nil then
local amap = adata.mapID;
if amap ~= nil and amap ~= map then
local ameta = processMap(amap);
if ameta ~= nil and ameta.parent ~= map then
local amaps = meta.adjoined;
if amaps == nil then
amaps = { [amap] = 1, };
meta.adjoined = amaps;
else
amaps[amap] = 1;
end
end
end
end
end
end
end
end
return meta;
end
-- find all maps in well known structures
processMap(WORLD_MAP_ID);
-- try to fill in holes in the map list
for map = 1, 2000 do
processMap(map);
end
if __ns.__toc >= 20000 and __ns.__toc < 30000 then
local data = {
[1944] = { 1946, 1952, },
[1946] = { 1944, 1949, 1951, 1952, 1955, },
[1948] = { 1952, },
[1949] = { 1946, 1953, },
[1951] = { 1946, 1952, 1955, },
[1952] = { 1944, 1946, 1948, 1951, 1955, },
[1953] = { 1949, },
[1955] = { 1946, 1951, 1952, },
--
[1947] = { 1950, },
[1950] = { 1947, },
[1941] = { 1942, 1954, },
[1942] = { 1941, },
[1954] = { 1941, },
};
for map, list in next, data do
local meta = mapMeta[map];
if meta ~= nil then
local amaps = meta.adjoined;
for _, val in next, list do
if mapMeta[val] ~= nil then
if amaps == nil then
amaps = { [val] = 1, };
meta.adjoined = amaps;
else
amaps[val] = 1;
end
end
end
end
end
end
-->
-- return map, x, y
local function GetUnitPosition(unit)
local y, x, _z, map = UnitPosition(unit);
return map, y, x;
end
-- return map, x, y --> bound to [0.0, 1.0]
local function GetZonePositionFromWorldPosition(map, x, y)
local data = mapMeta[map];
if data ~= nil and data[2] ~= 0 then
x, y = (data[3] - x) / data[1], (data[4] - y) / data[2];
if x <= 1.0 and x >= 0.0 and y <= 1.0 and y >= 0.0 then
return map, x, y;
end
end
return nil, nil, nil;
end
-- return instance, x[0.0, 1.0], y[0.0, 1.0]
local function GetWorldPositionFromZonePosition(map, x, y)
local data = mapMeta[map];
if data ~= nil then
x, y = data[3] - data[1] * x, data[4] - data[2] * y;
return data.instance, x, y;
end
return nil, nil, nil;
end
-- return instance, x, y
local function GetWorldPositionFromAzerothWorldMapPosition(instance, x, y)
local data = worldMapData[instance]
if data ~= nil then
x, y = data[3] - data[1] * x, data[4] - data[2] * y;
return instance, x, y;
end
return nil, nil, nil;
end
-- return instance, x, y
local function GetAzerothWorldMapPositionFromWorldPosition(instance, x, y)
local data = worldMapData[instance]
if data ~= nil then
x, y = (data[3] - x) / data[1], (data[4] - y) / data[2];
if x <= 1.0 and x >= 0.0 and y <= 1.0 and y >= 0.0 then
return instance, x, y;
end
end
return nil, nil, nil;
end
-- return map, x, y
local function GetUnitZonePosition(unit)
local y, x, _z, map = UnitPosition(unit);
if x ~= nil and y ~= nil then
return GetZonePositionFromWorldPosition(C_Map_GetBestMapForUnit(unit), x, y);
end
end
local function GetPlayerZone()
return __player_map_id;
end
-- return map, x, y
local function GetPlayerZonePosition()
local y, x, _z, instance = UnitPosition('player');
if x ~= nil and y ~= nil then
return GetZonePositionFromWorldPosition(__player_map_id, x, y);
end
end
local function GetAllMapMetas()
return mapMeta;
end
local function GetMapMeta(map)
return mapMeta[map];
end
local function GetMapParent(map)
if meta ~= nil then
return meta.parent;
end
end
local function GetMapAdjoined(map)
local meta = mapMeta[map];
if meta ~= nil then
return meta.adjoined;
end
end
local function GetMapChildren(map)
local meta = mapMeta[map];
if meta ~= nil then
return meta.children;
end
end
core.GetUnitPosition = GetUnitPosition;
core.GetZonePositionFromWorldPosition = GetZonePositionFromWorldPosition;
core.GetWorldPositionFromZonePosition = GetWorldPositionFromZonePosition;
core.GetWorldPositionFromAzerothWorldMapPosition = GetWorldPositionFromAzerothWorldMapPosition;
core.GetAzerothWorldMapPositionFromWorldPosition = GetAzerothWorldMapPositionFromWorldPosition;
core.GetUnitZonePosition = GetUnitZonePosition;
core.GetPlayerZone = GetPlayerZone;
core.GetPlayerZonePosition = GetPlayerZonePosition;
---/run ac=__ala_meta__.quest.core
---/print ac.GetWorldPositionFromZonePosition(ac.GetPlayerZonePosition())
---/print UnitPosition('player')
---/print ac.GetPlayerZonePosition()
---/print LibStub("HereBeDragons-2.0"):GetPlayerZonePosition()
---/print C_Map.GetWorldPosFromMapPos(1416, CreateVector2D(0.184, 0.88))
---/print ac.GetWorldPositionFromZonePosition(1416, 0.184, 0.88)
---/print ac.GetZonePositionFromWorldPosition(1416,select(2,ac.GetWorldPositionFromZonePosition(1416, 0.184, 0.88)))
core.GetAllMapMetas = GetAllMapMetas;
core.GetMapMeta = GetMapMeta;
core.GetMapParent = GetMapParent;
core.GetMapAdjoined = GetMapAdjoined;
core.GetMapChildren = GetMapChildren;
--
local function PreloadCoords(info)
local coords = info.coords;
local wcoords = info.wcoords;
if coords ~= nil and wcoords == nil then
wcoords = { };
info.wcoords = wcoords;
local num_coords = #coords;
local index = 1;
while index <= num_coords do
local coord = coords[index];
local instance, x, y = GetWorldPositionFromZonePosition(coord[3], coord[1] * 0.01, coord[2] * 0.01);
-- local instance, v = C_Map.GetWorldPosFromMapPos(coord[3], CreateVector2D(coord[1], coord[2])); -- VERY SLOW, 90ms vs 1200ms
-- coord[5] = x;
-- coord[6] = y;
-- coord[7] = instance;
if x ~= nil and y ~= nil and instance ~= nil then
local wcoord = { x, y, instance, coord[4], };
wcoords[index] = wcoord;
coord[5] = wcoord;
index = index + 1;
else
tremove(coords, index);
num_coords = num_coords - 1;
end
end
local pos = num_coords + 1;
for index = 1, num_coords do
local coord = coords[index];
local wcoord = wcoords[index];
local map = coord[3];
local amaps = GetMapAdjoined(map);
if amaps ~= nil then
for amap, _ in next, amaps do
local amap, x, y = GetZonePositionFromWorldPosition(amap, wcoord[1], wcoord[2]);
if amap ~= nil then
coords[pos] = { x * 100.0, y * 100.0, amap, coord[4], wcoord, };
pos = pos + 1;
end
end
end
local cmaps = GetMapChildren(map);
if cmaps ~= nil then
for cmap, _ in next, cmaps do
local cmap, x, y = GetZonePositionFromWorldPosition(cmap, wcoord[1], wcoord[2]);
if cmap ~= nil then
coords[pos] = { x * 100.0, y * 100.0, cmap, coord[4], wcoord, };
pos = pos + 1;
end
end
end
local pmap = GetMapParent(map);
if pmap ~= nil then
local pmap, x, y = GetZonePositionFromWorldPosition(pmap, wcoord[1], wcoord[2]);
if pmap ~= nil then
coords[pos] = { x * 100.0, y * 100.0, pmap, coord[4], wcoord, };
pos = pos + 1;
end
end
end
end
end
__ns.core.PreloadCoords = PreloadCoords;
-->
--> Texture
local IMG_PATH = "Interface\\AddOns\\CodexLite\\img\\";
local IMG_INDEX = {
IMG_DEF = 1,
IMG_S_HIGH_LEVEL = 2,
IMG_S_COMMING = 3,
IMG_S_LOW_LEVEL = 4,
IMG_S_REPEATABLE = 5,
IMG_E_UNCOMPLETED = 6,
IMG_S_VERY_HARD = 7,
IMG_S_EASY = 8,
IMG_S_HARD = 9,
IMG_S_NORMAL = 10,
IMG_E_COMPLETED = 11,
};
local IMG_PATH_PIN = IMG_PATH .. "PIN";
local IMG_PATH_AVL = IMG_PATH .. "AVL";
local IMG_PATH_CPL = IMG_PATH .. "CPL";
local IMG_LIST = {
[IMG_INDEX.IMG_DEF] = { IMG_PATH_PIN, nil, nil, nil, 0001, },
[IMG_INDEX.IMG_S_HIGH_LEVEL] = { IMG_PATH_AVL, 1.00, 0.10, 0.10, 9990, },
[IMG_INDEX.IMG_S_COMMING] = { IMG_PATH_AVL, 1.00, 0.25, 0.25, 9991, },
[IMG_INDEX.IMG_S_LOW_LEVEL] = { IMG_PATH_AVL, 0.65, 0.65, 0.65, 9992, },
[IMG_INDEX.IMG_S_REPEATABLE] = { IMG_PATH_AVL, 0.25, 0.50, 0.75, 9993, },
[IMG_INDEX.IMG_E_UNCOMPLETED] = { IMG_PATH_CPL, 0.65, 0.65, 0.65, 9994, },
[IMG_INDEX.IMG_S_VERY_HARD] = { IMG_PATH_AVL, 1.00, 0.50, 0.00, 9995, },
[IMG_INDEX.IMG_S_EASY] = { IMG_PATH_AVL, 0.25, 0.75, 0.25, 9996, },
[IMG_INDEX.IMG_S_HARD] = { IMG_PATH_AVL, 1.00, 0.75, 0.00, 9997, },
[IMG_INDEX.IMG_S_NORMAL] = { IMG_PATH_AVL, 1.00, 1.00, 0.00, 9998, },
[IMG_INDEX.IMG_E_COMPLETED] = { IMG_PATH_CPL, 1.00, 0.90, 0.00, 9999, },
};
local TIP_IMG_LIST = { };
for index, info in next, IMG_LIST do
if (info[2] ~= nil and info[3] ~= nil and info[4] ~= nil) and (info[2] ~= 1.0 or info[3] ~= 1.0 or info[4] ~= 1.0) then
TIP_IMG_LIST[index] = format("\124T%s:0:0:0:0:1:1:0:1:0:1:%d:%d:%d\124t", info[1], info[2] * 255, info[3] * 255, info[4] * 255);
else
TIP_IMG_LIST[index] = format("\124T%s:0\124t", info[1]);
end
end
local _bit_band = bit.band;
local function GetQuestStartTexture(info)
local TEXTURE = IMG_INDEX.IMG_S_NORMAL;
local min = info.min;
local diff = min - __ns.__player_level;
if diff > 0 then
if diff > 1 then
TEXTURE = IMG_INDEX.IMG_S_HIGH_LEVEL;
else
TEXTURE = IMG_INDEX.IMG_S_COMMING;
end
else
local exflag = info.exflag;
if exflag ~= nil and _bit_band(exflag, 1) ~= 0 then
TEXTURE = IMG_INDEX.IMG_S_REPEATABLE;
else
local lvl = info.lvl;
if lvl >= SET.quest_lvl_red then
TEXTURE = IMG_INDEX.IMG_S_VERY_HARD;
elseif lvl >= SET.quest_lvl_orange then
TEXTURE = IMG_INDEX.IMG_S_HARD;
elseif lvl >= SET.quest_lvl_yellow then
TEXTURE = IMG_INDEX.IMG_S_NORMAL;
elseif lvl >= SET.quest_lvl_green then
TEXTURE = IMG_INDEX.IMG_S_EASY;
else
TEXTURE = IMG_INDEX.IMG_S_LOW_LEVEL
end
end
end
return TEXTURE;
end
core.IMG_INDEX = IMG_INDEX;
core.IMG_PATH = IMG_PATH;
core.IMG_PATH_PIN = IMG_PATH_PIN;
core.IMG_LIST = IMG_LIST;
core.TIP_IMG_LIST = TIP_IMG_LIST;
core.GetQuestStartTexture = GetQuestStartTexture;
-->
--> Quest
local GetQuestTagInfo = GetQuestTagInfo;
local QuestTagCache = {
[373] = 81,
[4146] = 81,
[5342] = 0,
[5344] = 0,
[6846] = 41,
[6901] = 41,
[7001] = 41,
[7027] = 41,
[7161] = 41,
[7162] = 41,
[7841] = 0,
[7842] = 0,
[7843] = 0,
[8122] = 41,
[8386] = 41,
[8404] = 41,
[8405] = 41,
[8406] = 41,
[8407] = 41,
[8408] = 41,
};
function __ns.GetQuestTagInfo(quest)
local tag = QuestTagCache[quest];
if tag == nil then
tag = GetQuestTagInfo(quest);
if tag ~= nil then
QuestTagCache[quest] = tag;
end
end
return tag;
end
-->
--> Misc
local UnitHelpFac = { AH = 1, };
if UnitFactionGroup('player') == "Alliance" then
UnitHelpFac.A = 1;
else
UnitHelpFac.H = 1;
end
__ns.core.UnitHelpFac = UnitHelpFac;
local date = date;
local function _log_(...)
if __ns.__dev then
_F_CorePrint(date('\124cff00ff00%H:%M:%S\124r cl'), ...);
end
end
__ns._log_ = _log_;
-->
--> performance
local __PERFORMANCE_LOG_TAGS = { -- [tag] = check_bigger_than_10.0
[''] = false,
['*'] = false,
['#'] = false,
['@'] = false,
['$'] = false,
['^'] = false,
[':'] = false,
['-'] = false,
['+'] = false,
--
['module.init'] = false,
['module.init.init'] = true,
['module.init.init.patch'] = true,
['module.init.init.extra_db'] = true,
['module.init.init.extra_db.faction'] = true,
['module.init.init.extra_db.item2quest'] = true,
['module.init.init.extra_db.del_unused'] = true,
['module.init.init.setting'] = true,
['module.init.init.core'] = true,
['module.init.init.map'] = true,
['module.init.init.comm'] = true,
['module.init.init.util'] = true,
['module.db-extra'] = false,
['module.patch'] = false,
['module.core'] = false,
['module.core.UpdateQuests'] = false,
['module.core.|cffff0000UpdateQuests|r'] = false,
['module.core.UpdateQuestGivers'] = true,
['module.map'] = false,
['module.map.Minimap_DrawNodesMap'] = true,
['module.map.OnMapChanged'] = true,
['module.map.OnCanvasScaleChanged'] = true,
['module.util'] = false,
};
__ns.__performance_start = _F_devDebugProfileStart;
function __ns.__performance_log_tick(tag, ex1, ex2, ex3)
local val = __PERFORMANCE_LOG_TAGS[tag];
if val ~= nil then
local cost = __ns._F_devDebugProfileTick(tag);
if val == false or cost >= 10.0 then
cost = cost - cost % 0.0001;
_F_CorePrint(date('\124cff00ff00%H:%M:%S\124r cl'), tag, cost, ex1, ex2, ex3);
end
end
end
function __ns.__opt_log(tag, ...)
_F_CorePrint(date('\124cff00ff00%H:%M:%S\124r cl'), tag, ...);
end
-->
--> INITIALIZE
local function init()
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.patch'); end
__ns.apply_patch();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.patch'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.extra_db'); end
__ns.load_extra_db();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.extra_db'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.setting'); end
__ns.setting_setup();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.setting'); end
SET = __ns.__setting;
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.map'); end
__ns.map_setup();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.map'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.comm'); end
__ns.comm_setup();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.comm'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.core'); end
__ns.core_setup();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.core'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_start('module.init.init.util'); end
__ns.util_setup();
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init.util'); end
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init.init'); end
if __ala_meta__.initpublic then __ala_meta__.initpublic(); end
end
function __ns.PLAYER_ENTERING_WORLD()
_EventHandler:UnregEvent("PLAYER_ENTERING_WORLD");
C_Timer.After(0.1, init);
end
function __ns.LOADING_SCREEN_ENABLED()
_EventHandler:UnregEvent("LOADING_SCREEN_ENABLED");
end
function __ns.LOADING_SCREEN_DISABLED()
_EventHandler:UnregEvent("LOADING_SCREEN_DISABLED");
C_Timer.After(0.1, init);
end
-- _EventHandler:RegEvent("PLAYER_ENTERING_WORLD");
-- _EventHandler:RegEvent("LOADING_SCREEN_ENABLED");
_EventHandler:RegEvent("LOADING_SCREEN_DISABLED");
-->
--[=[dev]=] if __ns.__dev then __ns.__performance_log_tick('module.init'); end
|
Peter = Player:extend("Peter")
function Peter:new(...)
Peter.super.new(self, ...)
self:setImage("peter", 31)
self.anim:add("run", "16>23", function () return 12 * AXIS[1].x end, nil, {{0, -3},{0, -1},{0, -1},{0, -3},{0, -3},{0, -1},{0, -1},{0, -3}})
self.anim:add("run_menu", "16>23")
self.anim:add("idle", "1>15", nil, nil, {{0, 0},{0, 0},{0, 0},{0, 0},{0, 0},{0, 0},{0, 0},{0, 0},{0, -1},{0, -1},{0, -1},{0, -1},{0, -1},{0, -1},{0, -1}})
self.anim:add("jump", {23,16}, nil, "once", {{0, -3}, {0, -3}})
self.anim:add("fall", 16, nil, nil, {{0, -3}})
self.anim:clone("idle", "idle_drag")
self.anim:add("run_drag", "24>31", function () return 12 * AXIS[1].x end, nil, {{0, -4},{0, -2},{0, -2},{0, -4},{0, -4},{0, -2},{0, -2},{0, -4}})
self.anim:add("jump_drag", {31,24}, nil, "once", {{0, -3}, {0, -3}})
self.anim:add("fall_drag", 24, nil, nil, {{0, -3}})
self.separatePriority:set(0)
if DATA.options.controller.singleplayer then
self.keys = {
left = {"j"},
right = {"l"},
jump = {"i"},
teleport = {"k"},
buy = {"u"},
sit = {"o"},
teleportcheckpoint = {"u"}
}
else
self.keys = {
left = {"left"},
right = {"right"},
jump = {"g"},
teleport = {"h"},
buy = {"t"},
sit = {"y"},
teleportcheckpoint = {"t"}
}
end
self.SFX.jump = SFX("sfx/heart_jump")
self.SFX.hurt = SFX("sfx/hurt_peter")
self.SFX.teleport = SFX("sfx/teleport_peter")
self.id = "peter"
self.player_id = 1
self.z = ZMAP.Peter
self.teleportOffset = -10
self.teleportReadySprite = Sprite(0, -40, "teleport_icons", 8)
-- self.teleportReadySprite.offset.x = -4
self.teleportReadySprite.anim:add("!", 1)
self.teleportReadySprite.anim:add("x", 2)
self.teleportReadySprite.anim:add("o", 3)
self.teleportReadySprite.anim:add("<", 4)
self.hitbox = self:addHitbox("solid", 20, self.height * .9)
self.teleportHitboxLeft = self:addHitbox("teleport_left", -self.width/2, self.teleportOffset, self.width, self.height)
self.teleportHitboxLeft.solid = false
self.teleportHitboxLeft.own = true
self.teleportHitboxLeft.flipRelative.x = false
self.teleportHitboxRight = self:addHitbox("teleport_right", self.width/2, self.teleportOffset, self.width, self.height)
self.teleportHitboxRight.solid = false
self.teleportHitboxRight.own = true
self.teleportHitboxRight.flipRelative.x = false
self.doorKey = Sprite(9, -6, "levelprops/hand_key", 2)
self.doorKey.anim:add("hold", 2)
self.canPickUpKeys = true
self.holdingKey = false
self.draggingSomething = false
self.sittingOnTimon = false
self.skullSprite = Sprite(2, -10, "players/peter_skull")
end
function Peter:update(dt)
Peter.super.update(self, dt)
if self.sittingOnTimon then
self:stopMoving()
end
if GM then
if GM.currentLevelName == "level4_intro" then
if self.y > 1000 then
GM:goToNextLevel()
end
end
end
end
function Peter:draw()
if self.sittingOnTimon then
self.flip.x = self.partner.flip.x
end
Peter.super.draw(self)
if not self.visible then return end
if self.holdingKey then
if self.sittingOnTimon then
self.doorKey.flip.x = self.flip.x
local offset = self.partner.anim:getOffset()
self.doorKey.offset.x = -_.boolsign(self.flip.x) * 2
local off = 17
if offset then
self.doorKey.offset.y = offset.y
self.doorKey.offset.y = self.doorKey.offset.y - off
else
self.doorKey.offset.y = -off
end
self.doorKey.alpha = self.alpha
self.doorKey:drawAsChild(self)
else
self.doorKey.flip.x = self.flip.x
local offset = self.anim:getOffset()
if offset then
self.doorKey.offset.y = offset.y
end
self.doorKey.alpha = self.alpha
self.doorKey:drawAsChild(self)
end
end
end
function Peter:onOverlap(e, mine, his)
if mine.solid then
if e:is(Box) then
if mine:bottom(true) > his:top(true) then
if e.x ~= e.last.x then
if self.x == self.last.x then
self:getSquashed()
return false
end
if e.last.x < e.x then
if self.velocity.x < 0 then
self:getSquashed()
return false
end
end
if e.last.x > e.x then
if self.velocity.x > 0 then
self:getSquashed()
return false
end
end
end
if self:fromAbove(his, mine) then
self:getSquashed()
return false
end
end
end
end
Peter.super.onOverlap(self, e, mine, his)
end
function Peter:pickUpKey()
self.draggingSomething = true
self.holdingKey = true
end
function Peter:releaseKey()
self.draggingSomething = false
self.holdingKey = false
end
function Peter:getSkullPos()
return self:getRelPos(2, -10)
end
function Peter:toggleSit()
if not self.sittingOnTimon then
self:sitOnTimon()
end
end
function Peter:sitOnTimon()
self.sittingOnTimon = true
self.solid = 0
self.visible = false
self.hitbox.auto = false
self.inControl = false
self.partner:havePeterSitOnMe()
end
function Peter:getOffTimon()
self.solid = 1
self.sittingOnTimon = false
self.velocity.y = -200
self.y = self.y - 20
self.visible = true
self.inControl = true
self.hitbox.auto = true
end |
local strings = {} -- internal array with translated strings
URL = require "socket.url"
JSON = (loadfile "./libs/dkjson.lua")()
function string:escape_hard(ft)
if ft == 'bold' then
return self:gsub('%*', '')
elseif ft == 'italic' then
return self:gsub('_', '')
elseif ft == 'fixed' then
return self:gsub('`', '')
elseif ft == 'link' then
return self:gsub(']', '')
else
return self:gsub('[*_`[%]]', '')
end
end
-- Evaluates the Lua's expression
local function eval(str)
return load('return ' .. str)()
end
function bk(str)
return load('return ' .. str)
end
function string:trim() -- Trims whitespace from a string.
local s = self:gsub('^%s*(.-)%s*$', '%1')
return s
end
local function parse(filename)
local state = 'ign_msgstr' -- states of finite state machine
local msgid, msgstr
local result = {}
for line in io.lines(filename) do
line = line:trim()
local input, argument = line:match('^(%w*)%s*(".*")$')
if line:match('^#,.*fuzzy') then
input = 'fuzzy'
end
assert(state == 'msgid' or state == 'msgstr' or state == 'ign_msgid' or state == 'ign_msgstr')
assert(input == nil or input == '' or input == 'msgid' or input == 'msgstr' or input == 'fuzzy')
if state == 'msgid' and input == '' then
msgid = msgid .. eval(argument)
elseif state == 'msgid' and input == 'msgstr' then
msgstr = eval(argument)
state = 'msgstr'
elseif state == 'msgstr' and input == '' then
msgstr = msgstr .. eval(argument)
elseif state == 'msgstr' and input == 'msgid' then
if msgstr ~= '' then result[msgid:gsub('^\n', '')] = msgstr end
msgid = eval(argument)
state = 'msgid'
elseif state == 'msgstr' and input == 'fuzzy' then
if msgstr ~= '' then result[msgid:gsub('^\n', '')] = msgstr end
if not config.allow_fuzzy_translations then
state = 'ign_msgid'
end
elseif state == 'ign_msgid' and input == 'msgstr' then
state = 'ign_msgstr'
elseif state == 'ign_msgstr' and input == 'msgid' then
msgid = eval(argument)
state = 'msgid'
elseif state == 'ign_msgstr' and input == 'fuzzy' then
state = 'ign_msgid'
end
end
if state == 'msgstr' and msgstr ~= '' then
result[msgid:gsub('^\n', '')] = msgstr
end
return result
end
local locale = {} -- table with exported functions
locale.language = 'en' -- default language
function locale.init(directory)
directory = directory or "languages"
for lang_code in pairs(config.available_languages) do
strings[lang_code] = parse(string.format('%s/%s.po', directory, lang_code))
end
end
function locale.yandex(lang , text)
if config.yandex then
local base = 'https://translate.yandex.net/api/v1.5/tr.json/translate?'
local key = 'trnsl.1.1.20170311T141713Z.3a91dbd0a344703d.aab83ca14bed666e712ff6166bb699440057b113'
if not key then
return text
end
local url = base..'key='.. key ..'&text=' ..URL.escape(text:escape_hard()) .. '&lang=' .. lang
local dat, code = performRequest(url)
local tab = JSON.decode(dat)
return tab.text[1]
end
return text
end
function locale.translate(msgid)
local b = function()
if locale.language ~= 'en' then
return locale.yandex(locale.language , msgid)
else
print('wtf')
return msgid
end
end
print(msgid , locale.language)
return strings[locale.language][msgid:gsub('^\n', ''):escape_hard()] or b()
end
_ = locale.translate
locale.init()
return locale |
test_run = require('test_run').new()
SERVERS = {'election_replica1', 'election_replica2', 'election_replica3'}
test_run:create_cluster(SERVERS, 'replication')
test_run:wait_fullmesh(SERVERS)
is_leader_cmd = 'return box.info.election.state == \'leader\''
test_run:cmd("setopt delimiter ';'")
function get_leader_nr()
local leader_nr = 0
test_run:wait_cond(function()
for nr = 1,3 do
local is_leader = test_run:eval('election_replica'..nr, is_leader_cmd)[1]
if is_leader then
leader_nr = nr
return true
end
end
return false
end)
return leader_nr
end;
test_run:cmd("setopt delimiter ''");
leader_nr = get_leader_nr()
assert(leader_nr ~= 0)
term = test_run:eval('election_replica'..leader_nr,\
'return box.info.election.term')[1]
next_nr = leader_nr % 3 + 1
-- Someone else may become a leader, thus promote may fail. But we're testing
-- that it takes effect at all, so that's fine.
_ = pcall(test_run.eval, test_run, 'election_replica'..next_nr, 'box.ctl.promote()')
new_term = test_run:eval('election_replica'..next_nr,\
'return box.info.election.term')[1]
assert(new_term > term)
leader_nr = get_leader_nr()
assert(leader_nr ~= 0)
test_run:drop_cluster(SERVERS)
|
#!/usr/bin/env tarantool
require('strict').on()
local log = require('log')
local ffi = require('ffi')
local clock = require('clock')
local watchdog = require('watchdog')
local t0 = clock.monotonic()
local enable_coredump = arg[1]
if enable_coredump == 'true' then
enable_coredump = true
elseif enable_coredump == 'false' then
enable_coredump = false
else
enable_coredump = nil
end
watchdog.start(1, enable_coredump)
ffi.cdef[[unsigned int sleep(unsigned int seconds);]]
log.info("Running ffi.sleep(2)")
ffi.C.sleep(2)
local t1 = clock.monotonic()
log.info("Still alive after %f sec", t1-t0)
os.exit(1)
|
-- LLL - Lua Low Level
-- September, 2015
-- Author: Gabriel de Quadros Ligneul
-- Copyright Notice for LLL: see lllcore.h
--
-- Obtained at:
-- qt.lua,15 (one edge vector)
-- Julia sets via interval cell-mapping (quadtree version)
local benchmark_util = require 'benchmarks/util'
benchmark_util(function()
local io=io
local root,exterior
local cx,cy
local Rxmin,Rxmax,Rymin,Rymax=-2.0,2.0,-2.0,2.0
local white=1.0
local black=0.0
local gray=0.5
local N=0
local nE=0
local E={}
local write=io.write
local function output(a1,a2,a3,a4,a5,a6)
write(
a1 or ""," ",
a2 or ""," ",
a3 or ""," ",
a4 or ""," ",
a5 or ""," ",
a6 or ""," \n")
end
local function imul(xmin,xmax,ymin,ymax)
local mm=xmin*ymin
local mM=xmin*ymax
local Mm=xmax*ymin
local MM=xmax*ymax
local m,M=mm,mm
if m>mM then m=mM elseif M<mM then M=mM end
if m>Mm then m=Mm elseif M<Mm then M=Mm end
if m>MM then m=MM elseif M<MM then M=MM end
return m,M
end
local function isqr(xmin,xmax)
local u=xmin*xmin
local v=xmax*xmax
if xmin<=0.0 and 0.0<=xmax then
if u<v then return 0.0,v else return 0.0,u end
else
if u<v then return u,v else return v,u end
end
end
local function f(xmin,xmax,ymin,ymax)
local x2min,x2max=isqr(xmin,xmax)
local y2min,y2max=isqr(ymin,ymax)
local xymin,xymax=imul(xmin,xmax,ymin,ymax)
return x2min-y2max+cx,x2max-y2min+cx,2.0*xymin+cy,2.0*xymax+cy
end
local function outside(xmin,xmax,ymin,ymax)
local x,y
if 0.0<xmin then x=xmin elseif 0.0<xmax then x=0.0 else x=xmax end
if 0.0<ymin then y=ymin elseif 0.0<ymax then y=0.0 else y=ymax end
return x^2+y^2>4.0
end
local function inside(xmin,xmax,ymin,ymax)
return xmin^2+ymin^2<=4.0 and xmin^2+ymax^2<=4.0 and
xmax^2+ymin^2<=4.0 and xmax^2+ymax^2<=4.0
end
local function newcell()
return {nil,nil,nil,nil,color=gray}
end
local function addedge(a,b)
nE=nE+1
E[nE]=b
end
local function refine(q)
if q.color==gray then
if q[1]==nil then
q[1]=newcell()
q[2]=newcell()
q[3]=newcell()
q[4]=newcell()
else
refine(q[1])
refine(q[2])
refine(q[3])
refine(q[4])
end
end
end
local function clip(q,xmin,xmax,ymin,ymax,o,oxmin,oxmax,oymin,oymax)
local ixmin,ixmax,iymin,iymax
if xmin>oxmin then ixmin=xmin else ixmin=oxmin end
if xmax<oxmax then ixmax=xmax else ixmax=oxmax end
if ixmin>=ixmax then return end
if ymin>oymin then iymin=ymin else iymin=oymin end
if ymax<oymax then iymax=ymax else iymax=oymax end
--if ixmin<=ixmax and iymin<=iymax then
if iymin<iymax then
if q[1]==nil then
addedge(o,q)
else
local xmid=(xmin+xmax)/2.0
local ymid=(ymin+ymax)/2.0
clip(q[1],xmin,xmid,ymid,ymax,o,oxmin,oxmax,oymin,oymax)
clip(q[2],xmid,xmax,ymid,ymax,o,oxmin,oxmax,oymin,oymax)
clip(q[3],xmin,xmid,ymin,ymid,o,oxmin,oxmax,oymin,oymax)
clip(q[4],xmid,xmax,ymin,ymid,o,oxmin,oxmax,oymin,oymax)
end
end
end
local function map(q,xmin,xmax,ymin,ymax)
--xmin,xmax,ymin,ymax=f(xmin,xmax,ymin,ymax,cx,cy)
xmin,xmax,ymin,ymax=f(xmin,xmax,ymin,ymax)
if outside(xmin,xmax,ymin,ymax) then
q.color=white
else
if not inside(xmin,xmax,ymin,ymax) then addedge(q,exterior) end
clip(root,Rxmin,Rxmax,Rymin,Rymax,q,xmin,xmax,ymin,ymax)
end
end
local function update(q,xmin,xmax,ymin,ymax)
if q.color==gray then
if q[1]==nil then
local b=nE
q[2]=nE+1
map(q,xmin,xmax,ymin,ymax)
q[3]=nE
else
local xmid=(xmin+xmax)/2.0
local ymid=(ymin+ymax)/2.0
update(q[1],xmin,xmid,ymid,ymax)
update(q[2],xmid,xmax,ymid,ymax)
update(q[3],xmin,xmid,ymin,ymid)
update(q[4],xmid,xmax,ymin,ymid)
end
end
end
local function color(q)
if q.color==gray then
if q[1]==nil then
for i=q[2],q[3] do
if E[i].color~=white then return end
end
q.color=white N=N+1
else
color(q[1])
color(q[2])
color(q[3])
color(q[4])
end
end
end
local function prewhite(q)
if q.color==gray then
if q[1]==nil then
for i=q[2],q[3] do
local c=E[i].color
if c==white or c==-gray then
q.color=-gray
N=N+1
return
end
end
else
prewhite(q[1])
prewhite(q[2])
prewhite(q[3])
prewhite(q[4])
end
end
end
local function recolor(q)
if q.color==-gray then
q.color=gray
elseif q.color==gray then
if q[1]==nil then
q.color=black
else
recolor(q[1])
recolor(q[2])
recolor(q[3])
recolor(q[4])
end
end
end
local function area(q)
if q[1]==nil then
if q.color==white then return 0.0,0.0
elseif q.color==black then return 0.0,1.0
else return 1.0,0.0 end
else
local g1,b1=area(q[1])
local g2,b2=area(q[2])
local g3,b3=area(q[3])
local g4,b4=area(q[4])
return (g1+g2+g3+g4)/4.0, (b1+b2+b3+b4)/4.0
end
end
local function colorup(q)
if q[1]~=nil and q.color==gray then
local c1=colorup(q[1])
local c2=colorup(q[2])
local c3=colorup(q[3])
local c4=colorup(q[4])
if c1==c2 and c1==c3 and c1==c4 then
if c1~=gray then
q[1]=nil; --q[2]=nil; q[3]=nil; q[4]=nil
N=N+1 end
q.color=c1
end
end
return q.color
end
local function save(q,xmin,ymin,N)
if q[1]==nil or N==1 then
output(xmin,ymin,N,q.color)
else
N=N/2
local xmid=xmin+N
local ymid=ymin+N
save(q[1],xmin,ymin,N)
save(q[2],xmid,ymin,N)
save(q[3],xmin,ymid,N)
save(q[4],xmid,ymid,N)
end
end
local function show(p)
local N=2^10
-- io.output(p..".box")
output(N)
save(root,0,0,N)
-- io.close()
end
local t0=0
local function memory(s)
local t=os.clock()
--local dt=string.format("%f",t-t0)
local dt=t-t0
io.stdout:write(s,"\t",dt," sec\t",t," sec\t",math.floor(collectgarbage"count"/1024),"M\n")
t0=t
end
local function do_(f,s)
local a,b=f(root,Rxmin,Rxmax,Rymin,Rymax)
memory(s)
return a,b
end
local function julia(l,a,b)
memory"begin"
cx=a cy=b
root=newcell()
exterior=newcell() exterior.color=white
show(0)
for i=1,l do print("\nstep",i)
nE=0
do_(refine,"refine")
do_(update,"update")
repeat
N=0 color(root,Rxmin,Rxmax,Rymin,Rymax) print("color",N)
until N==0 memory"color"
repeat
N=0 prewhite(root,Rxmin,Rxmax,Rymin,Rymax) print("prewhite",N)
until N==0 memory"prewhite"
do_(recolor,"recolor")
do_(colorup,"colorup") print("colorup",N)
local g,b=do_(area,"area") print("area",g,b,g+b)
show(i) memory"output"
print("edges",nE)
end
end
--julia(14,0.25,0.35)
--julia(14, -.12, .74 )
--julia(14,0,0)
--julia(12,0.25,0)
--julia(9,0.24,0)
--julia(9,0.26,0)
--julia(13,0,1)
--julia(12,-1.1,0)
--julia(9,-0.12,0.5)
-- figures for paper
--julia(14,0,1)
--julia(14,-1,0)
--julia(12,-0.12, 0.64)
--julia(14,-0.12, 0.60)
--julia(14,-0.12, 0.30)
-- julia (level, a, b) -- julia set de c= a + b i
julia(10,-0.25, 0.74)
end)
|
return {
summary = 'Different types of Source effects.',
description = 'Different types of effects that can be applied with `Source:setEffectEnabled`.',
values = {
{
name = 'absorption',
description = 'Models absorption as sound travels through the air, water, etc.'
},
{
name = 'falloff',
description = 'Decreases audio volume with distance (1 / max(distance, 1)).'
},
{
name = 'occlusion',
description = 'Causes audio to drop off when the Source is occluded by geometry.'
},
{
name = 'reverb',
description = 'Models reverb caused by audio bouncing off of geometry.'
},
{
name = 'spatialization',
description = 'Spatializes the Source using either simple panning or an HRTF.'
},
{
name = 'transmission',
description = 'Causes audio to be heard through walls when occluded, based on audio materials.'
}
},
notes = [[
The active spatializer will determine which effects are supported. If an unsupported effect is
enabled on a Source, no error will be reported. Instead, it will be silently ignored.
TODO: expose a table of supported effects for spatializers in docs or from Lua.
]]
}
|
--[
-- RnWriter.lua
--
-- Este arquivo cria uma table contendo funções utilizadas pelo teste automático.
--
--]
RnWriter = {
readers = 0,
writers = 0,
wantToWrite = 0,
reader_blocked = function(self)
if(self.writers == 0 and self.wantToWrite == 0) then
print("Error: reader blocked with no writers/wantToWrite!")
end
end,
reader_reading = function(self)
if(self.writers > 0) then
print("Error: reader reading with ".. self.writers .. " writer(s)!")
end
self.readers = self.readers + 1
end,
reader_released = function(self)
self.readers = self.readers - 1
end,
writer_wantsToWrite = function(self)
self.wantToWrite = self.wantToWrite + 1
end,
writer_blocked = function(self)
if(self.writers == 0 and self.readers == 0) then
print("Error: writer blocked with no readers/writers!")
end
end,
writer_writing = function(self)
if(self.writers > 0 or self.readers > 0) then
print("Error: writer writing with " .. self.writers .. [[ writer(s)
and ]] .. self.readers .. " reader(s)!")
end
self.wantToWrite = self.wantToWrite - 1
self.writers = self.writers + 1
end,
writer_released = function(self)
self.writers = self.writers - 1
end,
}
|
----------------------------------------------------------------
-- RC522 RFID Reader for NodeMCU LUA
-- By Ben Jackson
-- This is a port of:
-- https://github.com/ondryaso/pi-rc522 -> Python
-- https://github.com/ljos/MFRC522 -> Arduino
-- to be used with MFRC522 RFID reader and s50 tag (but can work with other tags)
pin_ss = 8 -- SS (marked as SDA) pin
mode_idle = 0x00
mode_auth = 0x0E
mode_receive = 0x08
mode_transmit = 0x04
mode_transrec = 0x0C
mode_reset = 0x0F
mode_crc = 0x03
auth_a = 0x60
auth_b = 0x61
act_read = 0x30
act_write = 0xA0
act_increment = 0xC1
act_decrement = 0xC0
act_restore = 0xC2
act_transfer = 0xB0
act_reqidl = 0x26
act_reqall = 0x52
act_anticl = 0x93
act_select = 0x93
act_end = 0x50
reg_tx_control = 0x14
length = 16
num_write = 0
authed = false
RC522 = {}
RC522.__index = RC522
--------------------------------------------------------
-- Converts a table of numbers into a HEX string
function appendHex(t)
strT = ""
for i,v in ipairs(t) do
strT = strT.."0x"..string.format("%X", t[i]).." "
end
return strT
end
--------------------------------------------------------
-- Writes to a register
-- address The address of the register
-- value The value to write to the register
function RC522.dev_write(address, value)
gpio.write(pin_ss, gpio.LOW)
num_write = spi.send(1, bit.band(bit.lshift(address,1), 0x7E), value)
gpio.write(pin_ss, gpio.HIGH)
end
--------------------------------------------------------
-- Reads a register
-- address The address of the register
-- returns:
-- the byte at the register
function RC522.dev_read(address)
local val = 0;
gpio.write(pin_ss, gpio.LOW)
spi.send(1,bit.bor(bit.band(bit.lshift(address,1), 0x7E), 0x80))
val = spi.recv(1,1)
gpio.write(pin_ss, gpio.HIGH)
return string.byte(val)
end
--------------------------------------------------------
-- Adds a bitmask to a register
-- address The address of the register
-- mask The mask to update the register with
function RC522.set_bitmask(address, mask)
local current = RC522.dev_read(address)
RC522.dev_write(address, bit.bor(current, mask))
end
--------------------------------------------------------
-- Removes a bitmask from a register
-- address The address of the register
-- mask The mask to update the register with
function RC522.clear_bitmask(address, mask)
local current = RC522.dev_read(address)
RC522.dev_write(address, bit.band(current, bit.bnot(mask)))
end
--------------------------------------------------------
-- Reads the firmware version
function RC522.getFirmwareVersion()
return RC522.dev_read(0x37)
end
--------------------------------------------------------
-- Checks to see if there is a TAG in the vacinity
-- Returns false if tag is present, otherwise returns true
function RC522.request()
req_mode = { 0x26 } -- find tag in the antenna area (does not enter hibernation)
err = true
back_bits = 0
RC522.dev_write(0x0D, 0x07) -- bitFramingReg
err, back_data, back_bits = RC522.card_write(mode_transrec, req_mode)
if err or (back_bits ~= 0x10) then
return false, nil
end
return true, back_data
end
--------------------------------------------------------
-- Sends a command to a TAG
-- command The command to the RC522 to send to the commandto the tag
-- data The data needed to complete the command. THIS MUST BE A TABLE
-- returns:
-- error true/false
-- back_data A table of the returned data (index starting at 1)
-- back_length The number of bits in the returned data
function RC522.card_write(command, data)
back_data = {}
back_length = 0
local err = false
local irq = 0x00
local irq_wait = 0x00
local last_bits = 0
n = 0
if command == mode_auth then
irq = 0x12
irq_wait = 0x10
end
if command == mode_transrec then
irq = 0x77
irq_wait = 0x30
end
RC522.dev_write(0x02, bit.bor(irq, 0x80)) -- CommIEnReg
RC522.clear_bitmask(0x04, 0x80) -- CommIrqReg
RC522.set_bitmask(0x0A, 0x80) -- FIFOLevelReg
RC522.dev_write(0x01, mode_idle) -- CommandReg - no action, cancel the current action
for i,v in ipairs(data) do
RC522.dev_write(0x09, data[i]) -- FIFODataReg
end
RC522.dev_write(0x01, command) -- execute the command
-- command is "mode_transrec" 0x0C
if command == mode_transrec then
-- StartSend = 1, transmission of data starts
RC522.set_bitmask(0x0D, 0x80) -- BitFramingReg
end
--- Wait for the command to complete so we can receive data
i = 25 --- WAS 20000
while true do
tmr.delay(1)
n = RC522.dev_read(0x04) -- ComIrqReg
i = i - 1
if not ((i ~= 0) and (bit.band(n, 0x01) == 0) and (bit.band(n, irq_wait) == 0)) then
break
end
end
RC522.clear_bitmask(0x0D, 0x80) -- StartSend = 0
if (i ~= 0) then -- Request did not timeout
if bit.band(RC522.dev_read(0x06), 0x1B) == 0x00 then -- Read the error register and see if there was an error
err = false
-- if bit.band(n,irq,0x01) then
-- err = false
-- end
if (command == mode_transrec) then
n = RC522.dev_read(0x0A) -- find out how many bytes are stored in the FIFO buffer
last_bits = bit.band(RC522.dev_read(0x0C),0x07)
if last_bits ~= 0 then
back_length = (n - 1) * 8 + last_bits
else
back_length = n * 8
end
if (n == 0) then
n = 1
end
if (n > length) then -- n can't be longer that 16
n = length
end
for i=1, n do
xx = RC522.dev_read(0x09)
back_data[i] = xx
end
end
else
err = true
end
end
return err, back_data, back_length
end
--------------------------------------------------------
-- Reads the serial number of just one TAG so that it can be identified
-- returns:
-- error true/false
-- back_data the serial number of the tag
function RC522.anticoll()
back_data = {}
serial_number = {}
serial_number_check = 0
RC522.dev_write(0x0D, 0x00)
serial_number[1] = act_anticl
serial_number[2] = 0x20
err, back_data, back_bits = RC522.card_write(mode_transrec, serial_number)
if not err then
if table.maxn(back_data) == 5 then
for i, v in ipairs(back_data) do
serial_number_check = bit.bxor(serial_number_check, back_data[i])
end
if serial_number_check ~= back_data[4] then
err = true
end
else
err = true
end
end
return error, back_data
end
--------------------------------------------------------
-- Uses the RC522 to calculate the CRC of a tabel of bytes
-- Data Table of bytes to calculate a CRC for
-- returns:
-- ret_data Tabel of the CRC values; 2 bytes
function RC522.calculate_crc(data)
RC522.clear_bitmask(0x05, 0x04)
RC522.set_bitmask(0x0A, 0x80) -- clear the FIFO pointer
for i,v in ipairs(data) do -- Write all the data in the table to the FIFO buffer
RC522.dev_write(0x09, data[i]) -- FIFODataReg
end
RC522.dev_write(0x01, mode_crc)
i = 255
while true do
n = RC522.dev_read(0x05)
i = i - 1
if not ((i ~= 0) and not bit.band(n,0x04)) then
break
end
end
-- read the CRC result
ret_data = {}
ret_data[1] = RC522.dev_read(0x22)
ret_data[2] = RC522.dev_read(0x21)
return ret_data
end
|
local i = require('plenary.iterators')
dump(i.split(" hello person dude ", " "):tolist())
-- dump(("hello person"):find("person"))
|
local buffer = require('vgit.buffer')
local assert = require('vgit.assertion').assert
local pfiletype = require('plenary.filetype')
local M = {}
M.cwd_filename = function(filepath)
assert(type(filepath) == 'string', 'type error :: expected string')
local end_index = nil
for i = #filepath, 1, -1 do
local letter = filepath:sub(i, i)
if letter == '/' then
end_index = i
end
end
if not end_index then
return ''
end
return filepath:sub(1, end_index)
end
M.relative_filename = function(filepath)
assert(type(filepath) == 'string', 'type error :: expected string')
local cwd = vim.loop.cwd()
if not cwd or not filepath then
return filepath
end
if filepath:sub(1, #cwd) == cwd then
local offset = 0
if cwd:sub(#cwd, #cwd) ~= '/' then
offset = 1
end
filepath = filepath:sub(#cwd + 1 + offset, #filepath)
end
return filepath
end
M.short_filename = function(filepath)
assert(type(filepath) == 'string', 'type error :: expected string')
local filename = ''
for i = #filepath, 1, -1 do
local letter = filepath:sub(i, i)
if letter == '/' then
break
end
filename = letter .. filename
end
return filename
end
M.filename = function(buf)
assert(type(buf) == 'number', 'type error :: expected number')
local filepath = vim.api.nvim_buf_get_name(buf)
return M.relative_filename(filepath)
end
M.filetype = function(buf)
assert(type(buf) == 'number', 'type error :: expected number')
return buffer.get_option(buf, 'filetype')
end
M.detect_filetype = pfiletype.detect
M.tmpname = function()
local length = 6
local res = ''
for _ = 1, length do
res = res .. string.char(math.random(97, 122))
end
return string.format('/tmp/%s_vgit', res)
end
M.read_file = function(filepath)
assert(type(filepath) == 'string', 'type error :: expected string')
local fd = vim.loop.fs_open(filepath, 'r', 438)
if fd == nil then
return { 'File not found' }, nil
end
local stat = vim.loop.fs_fstat(fd)
if stat.type ~= 'file' then
return { 'File not found' }, nil
end
local data = vim.loop.fs_read(fd, stat.size, 0)
if not vim.loop.fs_close(fd) then
return { 'Failed to close file' }, nil
end
return nil, vim.split(data, '[\r]?\n')
end
M.write_file = function(filepath, lines)
assert(type(filepath) == 'string', 'type error :: expected string')
assert(vim.tbl_islist(lines), 'type error :: expected list table')
local f = io.open(filepath, 'wb')
for i = 1, #lines do
local l = lines[i]
f:write(l)
f:write('\n')
end
f:close()
end
M.remove_file = function(filepath)
assert(type(filepath) == 'string', 'type error :: expected string')
return os.remove(filepath)
end
M.exists = function(filepath)
assert(type(filepath) == 'string', 'type error :: expected string')
return (vim.loop.fs_stat(filepath) and true) or false
end
return M
|
local select, type, tostring = select, type, tostring
local pairs, error, setmetatable = pairs, error, setmetatable
local format, io_stderr = string.format, io.stderr
local string_len, string_byte = string.len, string.byte
local sqrt, tonumber = math.sqrt, tonumber
local floor = math.floor
local collectgarbage = collectgarbage
--[[--
UTILITIES
--]]--
-----------------
-- fast assert --
-----------------
do
local oldassert, format, select = assert, string.format, select
assert = function(condition, ...)
if condition then return condition end
if select('#', ...) > 0 then
oldassert(condition, format(...))
else
oldassert(condition)
end
end
end
local Expression = require 'wyx.component.Expression'
-- verify that all the given objects are of the given type
function verify(theType, ...)
local isExpr
if type(theType) == 'expression' then
isExpr = Expression.isCreatedExpression
end
for i=1,select('#', ...) do
local x = select(i, ...)
local xType = type(x)
if isExpr then
assert(isExpr(x), 'type was %s: %q, expected: expression',
xType,
tostring(x))
else
assert(xType == theType, 'type was %s: %q, expected: %s',
xType,
tostring(x),
theType)
end
end
return true
end
-- verify that the given object is one of any of the given types
function verifyAny(theObject, ...)
local theType = type(theObject)
local is = false
for i=1,select('#', ...) do
local x = select(i, ...)
if 'expression' == x then
if Expression.isCreatedExpression(theObject) then
is = true
break
end
end
if theType == x then
is = true
break
end
end
assert(is, 'type was %s: %q, expected any of: %s',
theType,
tostring(theObject),
table.concat({...}, ', '))
return true
end
--------------------------
-- handy switch statement --
--------------------------
function switch(x)
return function (of)
local what = of[x] or of.default
if type(what) == "function" then
return what()
end
return what
end
end
------------------------------
-- get nearest power of two --
------------------------------
function nearestPO2(x)
local po2 = {0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096}
assert(x <= po2[#po2], 'higher than %d is not supported', po2[#po2])
for i=#po2-1,1,-1 do
if x > po2[i] then return po2[i+1] end
end
return 2
end
-------------------
-- common colors --
-------------------
colors = {}
local p100 = 255
local p90, p80, p70 = floor(p100*0.9), floor(p100*0.8), floor(p100*0.7)
local p60, p50, p40 = floor(p100*0.6), floor(p100*0.5), floor(p100*0.4)
local p30, p20, p10 = floor(p100*0.3), floor(p100*0.2), floor(p100*0.1)
colors.BLACK = {0, 0, 0, p100}
colors.BLACK_A90 = {0, 0, 0, p90}
colors.BLACK_A85 = {0, 0, 0, floor(p100*0.85)}
colors.BLACK_A80 = {0, 0, 0, p80}
colors.BLACK_A70 = {0, 0, 0, p70}
colors.BLACK_A60 = {0, 0, 0, p60}
colors.BLACK_A50 = {0, 0, 0, p50}
colors.BLACK_A40 = {0, 0, 0, p40}
colors.BLACK_A30 = {0, 0, 0, p30}
colors.BLACK_A20 = {0, 0, 0, p20}
colors.BLACK_A10 = {0, 0, 0, p10}
colors.BLACK_A00 = {0, 0, 0, 0}
colors.WHITE = {p100, p100, p100, p100}
colors.WHITE_A00 = {p100, p100, p100, 0}
colors.GREY90 = {p90, p90, p90, p100}
colors.GREY80 = {p80, p80, p80, p100}
colors.GREY70 = {p70, p70, p70, p100}
colors.GREY60 = {p60, p60, p60, p100}
colors.GREY50 = {p50, p50, p50, p100}
colors.GREY40 = {p40, p40, p40, p100}
colors.GREY30 = {p30, p30, p30, p100}
colors.GREY20 = {p20, p20, p20, p100}
colors.GREY10 = {p10, p10, p10, p100}
colors.RED = {p100, 0, 0, p100}
colors.LIGHTRED = {p100, p60, p60, p100}
colors.DARKRED = {p30, 0, 0, p100}
colors.YELLOW = {p100, p90, 0, p100}
colors.LIGHTYELLOW = {p100, floor(p100*0.95), p80, p100}
colors.DARKYELLOW = {p30, p20, 0, p100}
colors.ORANGE = {p100, floor(p100*0.75), p30, p100}
colors.LIGHTORANGE = {p100, floor(p100*0.88), p70, p100}
colors.DARKORANGE = {p70, floor(p100*0.52), p20, p100}
colors.BROWN = {p50, p40, p20, p100}
colors.DARKBROWN = {p30, floor(p100*0.25), floor(p100*0.15), p100}
colors.GREEN = {0, p100, 0, p100}
colors.LIGHTGREEN = {p70, p100, p70, p100}
colors.DARKGREEN = {0, p30, 0, p100}
colors.BLUE = {p30, p30, p100, p100}
colors.LIGHTBLUE = {p70, p70, p100, p100}
colors.DARKBLUE = {0, 0, p30, p100}
colors.BLUE_A70 = {p10, p10, p100, p70}
colors.PURPLE = {p100, p40, p100, p100}
colors.LIGHTPURPLE = {p100, p80, p100, p100}
colors.DARKPURPLE = {p30, 0, p30, p100}
function colors.clone(c) return {c[1], c[2], c[3], c[4]} end
function colors.multiply(color, ...)
local r, g, b, a = unpack(color)
a = a or 255
local num = select('#', ...)
for i=1,num do
local c = select(i, ...)
if c then
r = floor((r * c[1]) / 255)
g = floor((g * c[2]) / 255)
b = floor((b * c[3]) / 255)
if c[4] then
a = floor((a * c[4]) / 255)
end
end
end
return r, g, b, a
end
-------------
-- warning --
-------------
function warning(msg, ...)
msg = msg or 'unknown warning'
msg = 'Warning: '..msg..'\n'
io_stderr:write(format(msg, ...))
if Console then Console:print(colors.YELLOW, msg, ...) end
end
-------------------
-- class helpers --
-------------------
local _mt = {__mode = 'k'}
local _classCache = {}
local _verifyCache = setmetatable({}, _mt)
-- cache class objects (even though Lua does this).
-- this also helps to avoid weird loop errors with require.
function getClass(classPath)
verify('string', classPath)
local theClass = _classCache[classPath]
if nil == theClass then
local ok,res = pcall(require, classPath)
if not ok then error(res) end
theClass = res
_classCache[classPath] = theClass
end
return theClass
end
-- return true if the given object is an instance of the given class
function isClass(class, obj)
if obj == nil then return false end
_verifyCache[class] = _verifyCache[class] or setmetatable({}, _mt)
local is = _verifyCache[class][obj]
if nil == is then
local theClass = type(class) == 'string' and getClass(class) or class
is = type(obj) == 'table'
and nil ~= obj.is_a
and type(obj.is_a) == 'function'
and obj:is_a(theClass)
_verifyCache[class][obj] = is
if theClass ~= class then
_verifyCache[theClass] = _verifyCache[theClass] or setmetatable({}, _mt)
_verifyCache[theClass][obj] = is
end
end
return is
end
-- assert that the given objects are all instances of the given class
function verifyClass(class, ...)
for i=1,select('#', ...) do
local obj = select(i, ...)
assert(isClass(class, obj),
'expected %s (was %s, %s)', tostring(class), type(obj), tostring(obj))
end
return true
end
-------------------------
-- 2d vector functions --
-------------------------
vec2 = {}
function vec2.len2(x, y) return x*x + y*y end
function vec2.len(x, y) return sqrt(vec2.len2(x, y)) end
function vec2.equal(x1, y1, x2, y2) return x1 == x2 and y1 == y2 end
function vec2.tostring(x, y) return format("(%d,%d)", x,y) end
function vec2.tostringf(x, y) return format("(%.2f,%.2f)", x,y) end
-----------------------------
-- decimal to hex and back --
-----------------------------
function dec2hex(n) return format('%x', n) end
function hex2dec(n) return tonumber(n, 16) end
-----------------------------------
-- string hash (thanks, WoWWiki) --
-----------------------------------
function strhash(s)
local len = string_len(s)
local counter = 1
for i=1,len,3 do
counter = (counter*8161 % 4294967279) +
(string_byte(s,i)*16776193) +
((string_byte(s,i+1) or (len-i+256))*8372226) +
((string_byte(s,i+2) or (len-i+256))*3932164)
end
return (counter % 4294967291)
end
--[[--
LÖVE UTILITIES
--]]--
---------------------------
-- loaders for resources --
---------------------------
local function Proxy(loader)
return setmetatable({}, {__index = function(self, k)
local v = loader(k)
rawset(self, k, v)
return v
end})
end
State = Proxy(function(k)
return assert(love.filesystem.load('state/'..k..'.lua'))()
end)
Font = Proxy(function(k)
return love.graphics.newFont('font/dejavu.ttf', k)
end)
Image = Proxy(function(k)
local img = love.graphics.newImage('image/'..k..'.png')
img:setFilter('nearest', 'nearest')
return img
end)
UI = Proxy(function(k)
return assert(love.filesystem.load('ui/'..k..'.lua'))()
end)
Sound = Proxy(function(k)
return love.audio.newSource(
love.sound.newSoundData('sound/'..k..'.ogg'),
'static')
end)
-------------------
-- resize screen --
-------------------
function resizeScreen(width, height)
local curW, curH = love.graphics.getWidth(), love.graphics.getHeight()
if width ~= curW or height ~= curH then
local modes = love.graphics.getModes()
local w, h
for i=1,#modes do
w = modes[i].width
h = modes[i].height
if w <= width and h <= height then break end
end
if w ~= curW or h ~= curH then
assert(love.graphics.setMode(w, h))
if Console then
Console:print('Graphics mode changed to %dx%d', w, h)
end
end
end
-- global screen width/height
WIDTH, HEIGHT = love.graphics.getWidth(), love.graphics.getHeight()
end
--------------------------------------------------
-- reduce memory leaking in love.graphics.print --
--------------------------------------------------
-- the love.graphics.print functions, when used many times on the screen, have
-- a very noticable effect on rising memeory. This just adds a collectgarbage
-- call to these functions to help.
local _lgprint = love.graphics.print
local _lgprintf = love.graphics.printf
function love.graphics.print(...)
_lgprint(...)
collectgarbage('step', 0)
end
function love.graphics.printf(...)
_lgprintf(...)
collectgarbage('step', 0)
end
--[[--
AUDIO MANAGER
--]]--
do
-- will hold the currently playing sources
local sources = {}
local pairs, ipairs, type = pairs, ipairs, type
-- check for sources that finished playing and remove them
function love.audio.update()
local remove = {}
for _,s in pairs(sources) do
if s:isStopped() then
remove[#remove + 1] = s
end
end
for i,s in ipairs(remove) do
sources[s] = nil
end
end
-- overwrite love.audio.play to create and register source if needed
local play = love.audio.play
function love.audio.play(what, how, loop)
local src = what
if type(what) ~= "userdata" or not what:typeOf("Source") then
src = love.audio.newSource(what, how)
src:setLooping(loop or false)
end
play(src)
sources[src] = src
return src
end
-- stops a source
local stop = love.audio.stop
function love.audio.stop(src)
if not src then return end
stop(src)
sources[src] = nil
end
end
--[[--
local Deque = getClass 'wyx.kit.Deque'
local rendercache = Deque()
local _setRenderTarget = love.graphics.setRenderTarget
function love.graphics.setRenderTarget(target, ...)
if nil == target then
rendercache:pop_back()
else
rendercache:push_back(target)
end
if rendercache:size() > 1 then
warning('setRenderTarget set to new target without unsetting old target')
end
_setRenderTarget(target, ...)
end
--]]--
--[[--
local numFramebuffers = 0
local _newFramebuffer = love.graphics.newFramebuffer
love.graphics.newFramebuffer = function(...)
numFramebuffers = numFramebuffers + 1
print(format('framebuffer count: %d', numFramebuffers))
return _newFramebuffer(...)
end
--]]--
|
-----------------------------------
-- Area: Davoi
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.DAVOI] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6388, -- Obtained: <item>.
GIL_OBTAINED = 6389, -- Obtained <number> gil.
KEYITEM_OBTAINED = 6391, -- Obtained key item: <keyitem>.
NOT_ENOUGH_GIL = 6393, -- You do not have enough gil.
ITEMS_OBTAINED = 6397, -- You obtain <number> <item>!
NOTHING_OUT_OF_ORDINARY = 6402, -- There is nothing out of the ordinary here.
FELLOW_MESSAGE_OFFSET = 6417, -- I'm ready. I suppose.
CONQUEST_BASE = 7049, -- Tallying conquest results...
FISHING_MESSAGE_OFFSET = 7208, -- You can't fish here.
CAVE_HAS_BEEN_SEALED_OFF = 7352, -- The cave has been sealed off by some sort of barrier.
MAY_BE_SOME_WAY_TO_BREAK = 7353, -- There may be some way to break through.
POWER_OF_THE_ORB_ALLOW_PASS = 7355, -- The disruptive power of the orb allows passage through the barrier.
QUEMARICOND_DIALOG = 7374, -- I can't believe I've lost my way! They must have used an Orcish spell to change the terrain! Yes, that must be it!
YOU_SEE_NOTHING = 7408, -- There is nothing here.
AN_ORCISH_STORAGE_HOLE = 7450, -- An Orcish storage hole. There is something inside, but you cannot open it without a key.
A_WELL = 7452, -- A well, presumably dug by Orcs.
CHEST_UNLOCKED = 7471, -- You unlock the chest!
COMMON_SENSE_SURVIVAL = 7972, -- It appears that you have arrived at a new survival guide provided by the Adventurers' Mutual Aid Network. Common sense dictates that you should now be able to teleport here from similar tomes throughout the world.
},
mob =
{
HAWKEYED_DNATBAT_PH =
{
[17387558] = 17387567, -- 337.116 -1.167 -110.483
[17387560] = 17387567, -- 336.498 -0.563 -138.502
[17387563] = 17387567, -- 371.525 0.235 -176.188
},
STEELBITER_GUDRUD_PH =
{
[17387578] = 17387585, -- 252.457 3.501 -248.655
},
TIGERBANE_BAKDAK_PH =
{
[17387602] = 17387606, -- 158 -0.662 -18
[17387603] = 17387606, -- 153.880 -0.769 -18.092
},
POISONHAND_GNADGAD_PH =
{
[17387634] = 17387644, -- -53.910 -0.583 56.606
[17387635] = 17387644, -- -62.647 -0.468 24.442
[17387636] = 17387644, -- -64.578 -0.658 61.273
[17387637] = 17387644, -- -59.013 -0.590 14.783
[17387638] = 17387644, -- -50.158 -0.537 22.257
[17387639] = 17387644, -- -56.626 -0.607 63.285
[17387640] = 17387644, -- -54.694 -0.545 42.385
[17387641] = 17387644, -- -60.057 -0.655 29.127
},
BLUBBERY_BULGE_PH =
{
[17387919] = 17387920, -- -225.237 2.295 -294.764
},
GAVOTVUT = 17387965,
BARAKBOK = 17387966,
BILOPDOP = 17387967,
DELOKNOK = 17387968,
PURPLEFLASH_BRUKDOK = 17387969,
ONE_EYED_GWAJBOJ = 17387970,
THREE_EYED_PROZPUZ = 17387971,
},
npc =
{
HIDE_FLAP_OFFSET = 17388023,
STORAGE_HOLE = 17388025,
TREASURE_CHEST = 17388027,
},
}
return zones[tpz.zone.DAVOI]
|
-- inculdes
return {
width = 32,
height = 48,
greeting = 'Hello and welcome to {{teal}}Winter Wonderland{{white}}!',
animations = {
default = {
'loop',{'1,1','11,1'},.5,
},
walking = {
'loop',{'1,1','2,1','3,1'},.2,
},
},
stare = true,
talk_items = {
{ ['text']='i am done with you' },
{ ['text']='How do I get out of here?' },
{ ['text']='Professor Duncan?' },
{ ['text']='Who are you?' },
},
talk_responses = {
["Who are you?"]={
"I am a Christmas Wizard!",
"And definitely not a psych professor.",
},
["How do I get out of here?"]={
"You must venture to the {{olive}}Cave of Frozen Memories{{white}},",
"And there you shall find the exit.",
},
["Professor Duncan?"]={
"I do not have the slightest idea",
"What you're talking about.",
},
},
} |
-- Copyright (c) 2021 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local class = require "moonpie.class"
local list = require "moonpie.collections.list"
local qt_node = class({})
function qt_node:constructor(props)
self.x = props.x
self.y = props.y
self.width = props.width
self.height = props.height
self.depth = props.depth
end
function qt_node:add(item)
self.items = self.items or {}
self.items[#self.items + 1] = item
end
function qt_node:contains(x, y, width, height)
return self.x < x + width and
x < self.x + self.width and
self.y < y + height and
y < self.y + self.height
end
local quad_tree = class({})
function quad_tree:constructor(props)
self.width = props.width
self.height = props.height
self.max_depth = props.max_depth
self.root = qt_node:new { x = 1, y = 1, width = self.width, height = self.height, depth = 1 }
end
function quad_tree:add(item)
local leaf_nodes = self:get_leaf_nodes(item.x, item.y, item.width, item.height, self.root)
for _, v in ipairs(leaf_nodes) do
v:add(item)
end
end
function quad_tree:get_leaf_nodes(x, y, width, height, node, results)
results = results or {}
if node:contains(x, y, width, height) then
if node.depth < self.max_depth then
-- Check children
if not node.tl then
-- create nodes
local sw, sh = node.width / 2, node.height / 2
local next_depth = node.depth + 1
node.tl = qt_node:new { x = node.x , y = node.y, width = sw, height = sh, depth = next_depth }
node.tr = qt_node:new { x = node.x + sw, y = node.y, width = sw, height = sh, depth = next_depth }
node.bl = qt_node:new { x = node.x , y = node.y + sh, width = sw, height = sh, depth = next_depth }
node.br = qt_node:new { x = node.x + sw, y = node.y + sh, width = sw, height = sh, depth = next_depth }
end
self:get_leaf_nodes(x, y, width, height, node.tl, results)
self:get_leaf_nodes(x, y, width, height, node.tr, results)
self:get_leaf_nodes(x, y, width, height, node.bl, results)
self:get_leaf_nodes(x, y, width, height, node.br, results)
return results
else
results[#results + 1] = node
return results
end
end
end
function quad_tree:find(x, y, width, height)
local items = list:new()
local leaf_nodes = self:get_leaf_nodes(x, y, width, height, self.root)
for _, v in ipairs(leaf_nodes) do
for _, item in ipairs(v.items) do
if not items:contains(item) then
items:add(item)
end
end
end
return items
end
return quad_tree |
-----------------------------------------------------------------------------------------------
-- Client Lua Script for Gear_Armory
-- Copyright (c) NCsoft. All rights reserved
-----------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------
-- Gear_Armory Module Definition
-----------------------------------------------------------------------------------------------
local Gear_Armory = {}
-----------------------------------------------------------------------------------------------
-- Localisation
-----------------------------------------------------------------------------------------------
local L = Apollo.GetPackage("Gemini:Locale-1.0").tPackage:GetLocale("Gear_Armory", true)
-----------------------------------------------------------------------------------------------
-- Lib gear
-----------------------------------------------------------------------------------------------
local LG = Apollo.GetPackage("Lib:LibGear-1.0").tPackage
-----------------------------------------------------------------------------------------------
-- Constants
-----------------------------------------------------------------------------------------------
-- version
local Major, Minor, Patch = 1, 0, 3
local GP_VER = string.format("%d.%d.%d", Major, Minor, Patch)
local GP_NAME = "Gear_Armory"
-----------------------------------------------------------------------------------------------
-- Plugin data
-----------------------------------------------------------------------------------------------
local tPlugin = {
name = GP_NAME, -- addon name
version = GP_VER, -- addon version
flavor = L["GP_FLAVOR"], -- addon description
icon = "LOADED FROM GEAR", -- icon plugin name for setting and ui_setting, loaded from 'gear'
on = true, -- enable/disable
setting = {
name = L["GP_O_SETTINGS"], -- setting name to view in gear setting window
-- parent setting
[1] = {
},
},
ui_setting = { -- ui setting for gear profil
-- sType = 'toggle_unique' (on/off state, only once can be enabled in all profil, but all can be disabled)
-- sType = 'toggle' (on/off state)
-- sType = 'push' (on click state)
-- sType = 'none' (no state, only icon to identigy the plugin)
-- sType = 'action' (no state, only push to launch action like copie to clipboard)
[1] = { sType = "push", Saved = nil,}, -- first setting button is always the plugin icon
},
}
-- comm timer to init plugin
local tComm, bCall
-- futur array for tgear.gear updated
local tLastGear = nil
-- anchor
local tAnchor = { l = 0, t = 0, r = 0, b = 0 }
-----------------------------------------------------------------------------------------------
-- Initialization
-----------------------------------------------------------------------------------------------
function Gear_Armory:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function Gear_Armory:Init()
Apollo.RegisterAddon(self, false, nil, {"Gear"})
end
-----------------------------------------------------------------------------------------------
-- OnLoad
-----------------------------------------------------------------------------------------------
function Gear_Armory:OnLoad()
Apollo.RegisterEventHandler("Generic_GEAR_PLUGIN", "ON_GEAR_PLUGIN", self) -- add event to communicate with gear
tComm = ApolloTimer.Create(1, true, "_Comm", self) -- init comm for plugin
end
---------------------------------------------------------------------------------------------------
-- _Comm
---------------------------------------------------------------------------------------------------
function Gear_Armory:_Comm()
if LG._isaddonup("Gear") then -- if 'gear' is running , go next
tComm:Stop()
tComm = nil -- stop init comm timer
if bCall == nil then LG.initcomm(tPlugin) end -- send information about me, setting etc..
end
end
-----------------------------------------------------------------------------------------------
--- all plugin communicate with gear in this function
-----------------------------------------------------------------------------------------------
function Gear_Armory:ON_GEAR_PLUGIN(sAction, tData)
-- answer come from gear, the gear version, gear is up
if sAction == "G_VER" and tData.owner == GP_NAME then
if bCall ~= nil then return end
bCall = true
end
-- answer come from gear, the gear array updated
if sAction == "G_GEAR" then
tLastGear = tData
end
-- action request come from gear, the plugin are enable or disable, if this information is for me go next
if sAction == "G_ON" and tData.owner == GP_NAME then
-- update enable/disable status
tPlugin.on = tData.on
if not tPlugin.on then
-- close dialog
self:OnCloseDialog()
end
end
-- answer come from gear, the setting plugin update, if this information is for me go next
if sAction == "G_UI_ACTION" and tData.owner == GP_NAME then
-- we request we want last gear array
Event_FireGenericEvent("Generic_GEAR_PLUGIN", "G_GET_GEAR", nil)
-- get armory for ngearid target
self:ShowArmory(tData.ngearid)
end
end
-----------------------------------------------------------------------------------------------
-- ShowArmory
-----------------------------------------------------------------------------------------------
function Gear_Armory:ShowArmory(nGearId)
if self.ArmoryWnd ~= nil then self.ArmoryWnd:Destroy() end
local sArmory = self:GetAmoryItem(nGearId)
if sArmory == nil then return end
self.xmlDoc = XmlDoc.CreateFromFile("Gear_Armory.xml")
self.ArmoryWnd = Apollo.LoadForm(self.xmlDoc, "Dialog_wnd", nil, self)
self.ArmoryWnd:FindChild("TitleUp"):SetText(tPlugin.setting.name)
local wndInside = Apollo.LoadForm(self.xmlDoc, "Inside_wnd", self.ArmoryWnd, self)
wndInside:FindChild("ArmoryInfo_Wnd"):SetText(L["GP_ARMORY_INFO"])
self.ArmoryWnd:FindChild("ClipboardCopy_Btn"):SetActionData(GameLib.CodeEnumConfirmButtonType.CopyToClipboard, sArmory)
self:LastAnchor(self.ArmoryWnd, false)
self.ArmoryWnd:Show(true)
end
---------------------------------------------------------------------------------------------------
-- OnCloseDialog
---------------------------------------------------------------------------------------------------
function Gear_Armory:OnCloseDialog( wndHandler, wndControl, eMouseButton )
if self.ArmoryWnd == nil then return end
self:LastAnchor(self.ArmoryWnd, true)
self.ArmoryWnd:Destroy()
self.ArmoryWnd = nil
self.xmlDoc = nil
end
-----------------------------------------------------------------------------------------------
-- GetAmoryItem
-----------------------------------------------------------------------------------------------
function Gear_Armory:GetAmoryItem(nGearId)
local website = "http://ws-armory.github.io"
local tClass = {
[GameLib.CodeEnumClass.Warrior] = Apollo.GetString("ClassWarrior"),
[GameLib.CodeEnumClass.Engineer] = Apollo.GetString("ClassEngineer"),
[GameLib.CodeEnumClass.Esper] = Apollo.GetString("ClassESPER"),
[GameLib.CodeEnumClass.Medic] = Apollo.GetString("ClassMedic"),
[GameLib.CodeEnumClass.Stalker] = Apollo.GetString("ClassStalker"),
[GameLib.CodeEnumClass.Spellslinger] = Apollo.GetString("ClassSpellslinger"),
}
local nItemId = nil
local url = nil
local unit = GameLib.GetPlayerUnit()
for nSlot, oLink in pairs(tLastGear[nGearId]) do
if tonumber(nSlot) ~= nil then
if nSlot ~= 6 and nSlot ~= 9 and nSlot < 17 then
local oItem = LG._SearchIn(oLink, 1) -- search in inventory
if oItem ~= nil then nItemId = oItem:GetItemId()
else
oItem = LG._SearchIn(oLink, 3) -- -- search in equipped
if oItem ~= nil then nItemId = oItem:GetItemId() end
end
if nItemId then
if url == nil or url == '' then
url = website .. "/?" .. nSlot .. "=" .. nItemId
else
url = url .. "&" .. nSlot .. "=" .. nItemId
end
end
end
end
end
if url == nil then return nil end
local title = unit:GetName() .. " - " .. tClass[unit:GetClassId()] .. " [" .. unit:GetLevel() .. "]"
url = url .. "&title=" .. self:urlencode(title)
return url
end
-----------------------------------------------------------------------------------------------
-- urlencode https://gist.github.com/ignisdesign/4323051
-----------------------------------------------------------------------------------------------
function Gear_Armory:urlencode(str)
if (str) then
str = string.gsub (str, "\n", "\r\n")
str = string.gsub (str, "([^%w ])",
function (c) return string.format ("%%%02X", string.byte(c)) end)
str = string.gsub (str, " ", "+")
end
return str
end
-----------------------------------------------------------------------------------------------
-- LastAnchor
-----------------------------------------------------------------------------------------------
function Gear_Armory:LastAnchor(oWnd, bSave)
if oWnd then
if not bSave and tAnchor.b ~= 0 then
oWnd:SetAnchorOffsets(tAnchor.l, tAnchor.t, tAnchor.r, tAnchor.b)
elseif bSave then
tAnchor.l, tAnchor.t, tAnchor.r, tAnchor.b = oWnd:GetAnchorOffsets()
end
end
end
---------------------------------------------------------------------------------------------------
-- OnWndMove
---------------------------------------------------------------------------------------------------
function Gear_Armory:OnWndMove( wndHandler, wndControl, nOldLeft, nOldTop, nOldRight, nOldBottom )
self:LastAnchor(self.ArmoryWnd, true)
end
---------------------------------------------------------------------------------------------------
-- OnSave
---------------------------------------------------------------------------------------------------
function Gear_Armory:OnSave(eLevel)
if eLevel ~= GameLib.CodeEnumAddonSaveLevel.Character then return end
local tData = { }
tData.config = {
ver = GP_VER,
on = tPlugin.on,
}
return tData
end
---------------------------------------------------------------------------------------------------
-- OnRestore
---------------------------------------------------------------------------------------------------
function Gear_Armory:OnRestore(eLevel,tData)
if eLevel ~= GameLib.CodeEnumAddonSaveLevel.Character then return end
if tData.config.on ~= nil then tPlugin.on = tData.config.on end
end
-----------------------------------------------------------------------------------------------
-- Gear_Armory Instance
-----------------------------------------------------------------------------------------------
local Gear_ArmoryInst = Gear_Armory:new()
Gear_ArmoryInst:Init()
|
local math = require("math")
math.randomseed(os.time())
return function()
return (''..math.random()):sub(3)
end
|
local args = love.arg.parseGameArguments(arg)
local processed, last = {}, nil
for i=1, #args do
local notFirstChar = args[i]:sub(1,1) ~= "-"
if last and notFirstChar then
if type(processed[last]) ~= "table" then
processed[last] = {args[i]}
else
processed[last][#processed[last]+1] = args[i]
end
elseif notFirstChar then
processed[#processed+1] = args[i]
else
processed[args[i]] = true
last = args[i]
end
end
return {
raw = args,
processed = processed
} |
package("scons")
set_kind("binary")
set_homepage("https://scons.org")
set_description("A software construction tool")
add_urls("https://github.com/SCons/scons/archive/refs/tags/$(version).zip",
"https://github.com/SCons/scons.git")
add_versions("4.1.0", "106259e92ba001feae5b50175bcec92306d0420bb08229fb037440cf303fcfc3")
add_versions("4.3.0", "c8cb3be5861c05a46250c60938857b9711c29a1500001da187e36dc05ee70295")
add_deps("python 3.x", {kind = "binary"})
on_install("@windows", "@linux", "@macosx", "@msys", function (package)
local python_version = package:dep("python"):version()
local scons_version = package:version()
local scons_egg = "SCons-" .. scons_version:major() .. "." .. scons_version:minor() .. "." .. scons_version:patch() .. "-py" .. python_version:major() .. "." .. python_version:minor() .. ".egg"
local pyver = ("python%d.%d"):format(python_version:major(), python_version:minor())
local PYTHONPATH = package:installdir("lib")
local PYTHONPATH1 = path.join(PYTHONPATH, pyver)
PYTHONPATH = path.join(PYTHONPATH, "site-packages", scons_egg)
PYTHONPATH1 = path.join(PYTHONPATH1, "site-packages", scons_egg)
package:addenv("PYTHONPATH", PYTHONPATH, PYTHONPATH1)
-- setup.py install needs these
if package:version():ge("4.3.0") then
io.writefile("scons.1", "")
io.writefile("scons-time.1", "")
io.writefile("sconsign.1", "")
else
io.writefile("build/doc/man/scons.1", "")
io.writefile("build/doc/man/scons-time.1", "")
io.writefile("build/doc/man/sconsign.1", "")
end
os.vrunv("python", {"setup.py", "install", "--prefix", package:installdir()})
if package:is_plat("windows") then
os.mv(package:installdir("Scripts", "*"), package:installdir("bin"))
os.rmdir(package:installdir("Scripts"))
end
end)
on_test(function (package)
os.vrun("scons --version")
end)
|
local env = {}
for k, v in pairs(_G) do
env[k] = v
end
env._G = env
_MTA = env |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('AmbientLife', {
group = "Work",
id = "WorkDefault",
param1 = "unit",
param2 = "bld",
PlaceObj('XPrgVisitSlot', {
'unit', "unit",
'bld', "bld",
'group', "Holder",
}),
})
|
slot0 = class("BackYardThemeTemplatePurchaseMsgbox", import("...Shop.msgbox.BackYardThemeMsgBoxPage"))
slot0.SetUp = function (slot0, slot1, slot2, slot3)
slot0.dorm = slot2
slot0.template = slot1
slot0.player = slot3
slot0.count = 1
slot0.maxCount = 1
slot0:UpdateMainInfo()
slot0:UpdateRes()
slot0:UpdateBtns()
slot0:UpdatePrice()
slot0:Show()
end
slot0.UpdateMainInfo = function (slot0)
slot0.nameTxt.text = slot0.template:GetName()
slot0.descTxt.text = slot0.template:GetDesc()
setActive(slot0.icon.gameObject, false)
setActive(slot0.rawIcon.gameObject, false)
BackYardThemeTempalteUtil.GetTexture(slot0.template:GetTextureIconName(), slot0.template:GetIconMd5(), function (slot0)
if not IsNil(slot0.rawIcon) and slot0 then
setActive(slot0.rawIcon.gameObject, true)
slot0.rawIcon.texture = slot0
end
end)
end
slot0.GetAddList = function (slot0)
slot1 = {}
slot3 = slot0.dorm:GetAllFurniture()
for slot7, slot8 in pairs(slot2) do
if pg.furniture_data_template[slot7] then
slot10 = 0
if not slot3[slot7] then
slot9 = Furniture.New({
id = slot7
})
else
slot10 = slot9.count
end
if slot9:canPurchase() and slot9:inTime() and slot9:canPurchaseByDormMoeny() then
for slot14 = 1, slot8 - slot10, 1 do
table.insert(slot1, slot9)
end
end
end
end
return slot1
end
return slot0
|
function DataShow_OnDragStart()
DataShow:StartMoving();
end
function DataShow_OnDragStop()
DataShow:StopMovingOrSizing();
end
function DataShow_OnLoad()
DataShow:RegisterForDrag("LeftButton");
--local button = CreateFrame("Button", "only_for_testing", DataShow)
-- button:SetPoint("CENTER", DataShow, "CENTER", 0, 0)
-- button:SetWidth(200)
-- button:SetHeight(50)
-- button:SetText("My Test")
-- button:SetNormalFontObject("GameFontNormalSmall")
end
function bCopyLastHourPlayers_OnClick()
PrintRoles();
-- if BgPlayers == nil then
-- print("No player was founded")
-- return
-- end
-- local currentTime = GetServerTime()
-- local Players = ""
-- local OneHourSeconds = 60*60
-- for name, _ in pairs(BgPlayers) do
-- local item = LastSeenPlayers[name]
-- local diff = currentTime - item.last_seen
-- if diff < OneHourSeconds then
-- Players = Players.."\n"..name
-- end
-- end
end
|
vim.g.EditorConfig_exclude_patterns = {'fugitive://.*'}
vim.cmd [[
augroup editor_config
autocmd!
autocmd FileType gitcommit let b:EditorConfig_disable = 1
augroup end
]]
|
local IpBanCheck = true -- Script should check ip for banning?
local JoinCoolDown = {}
local DatabaseStuff = {}
local BannedAccounts = {}
local Admins = {
"steam:11000",
"example",
}
SendMessage = function(Source,Title,Color,Msg)
if Source == 0 then
print(Title,Msg)
else
TriggerClientEvent('chatMessage', Source, Title, Color, Msg)
end
end
DisplayTime = function(time)
local days = math.floor(time/86400)
local remaining = time % 86400
local hours = math.floor(remaining/3600)
remaining = remaining % 3600
local minutes = math.floor(remaining/60)
remaining = remaining % 60
local seconds = remaining
if (hours < 10) then
hours = "0" .. tostring(hours)
end
if (minutes < 10) then
minutes = "0" .. tostring(minutes)
end
if (seconds < 10) then
seconds = "0" .. tostring(seconds)
end
answer = tostring(days)..' Day(s) '..hours..':'..minutes..':'..seconds
return answer
end
AddEventHandler('esx:playerLoaded', function(source)
local source = source
local BannedAlready2 = false
local isBypassing2 = false
local Steam = "NONE"
local Lice = "NONE"
local Lice2 = "NONE"
local Live = "NONE"
local Xbox = "NONE"
local Discord = "NONE"
local IP = "NONE"
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1,string.len("steam:")) == "steam:" then
Steam = v
elseif string.sub(v, 1,string.len("license:")) == "license:" then
Lice = v
elseif string.sub(v, 1,string.len("license2:")) == "license2:" then
Lice2 = v
elseif string.sub(v, 1,string.len("live:")) == "live:" then
Live = v
elseif string.sub(v, 1,string.len("xbl:")) == "xbl:" then
Xbox = v
elseif string.sub(v,1,string.len("discord:")) == "discord:" then
Discord = v
elseif string.sub(v, 1,string.len("ip:")) == "ip:" then
IP = v
end
end
if GetNumPlayerTokens(source) == 0 or GetNumPlayerTokens(source) == nil or GetNumPlayerTokens(source) < 0 or GetNumPlayerTokens(source) == "null" or GetNumPlayerTokens(source) == "**Invalid**" or not GetNumPlayerTokens(source) then
DiscordLog(source, "Player Token Numbers Are Unknown")
DropPlayer(source, "HR_BanSystem: \n There is a problem retrieving your fivem informations \n Please Restart FiveM.")
return
end
for a, b in pairs(BannedAccounts) do
for c, d in pairs(b) do
for e, f in pairs(json.decode(d.Tokens)) do
for g = 0, GetNumPlayerTokens(source) - 1 do
if GetPlayerToken(source, g) == f or d.License == tostring(Lice) or d.License2 == tostring(Lice2) or d.Live == tostring(Live) or d.Xbox == tostring(Xbox) or d.Discord == tostring(Discord) or (IpBanCheck and d.IP == tostring(IP) or false) or d.Steam == tostring(Steam) then
if (type(d.Expire) == 'string' and string.lower(d.Expire) == "permanet") or os.time() < tonumber(d.Expire) then
BannedAlready2 = tostring(d.Reason)
if d.Steam ~= tostring(Steam) then
isBypassing2 = d.Expire
end
break
else
CreateUnbanThread(tostring(d.Steam))
break
end
end
end
end
end
end
if BannedAlready2 then
DiscordLog(source, "Has tried To join. (Rejected from joining before loading into the server) Ban Reason: " .. BannedAlready2)
DropPlayer(source, "You were banned from this server.")
end
if isBypassing2 then
DiscordLog(source, "Has tried To join using Bypass method by changing identifiers (New identifiers has been banned.")
BanNewAccount(tonumber(source), "Tried To Bypass HR_BanSystem", isBypassing2)
DropPlayer(source, "You were banned from this server.")
end
end)
AddEventHandler('Initiate:BanSql', function(hex, id, reason, name, day)
local time
if (type(day) == 'string' and string.lower(day) == "permanet") or tonumber(day) == 0 then
time = "Permanet"
else
time = tonumber(day)
end
MySQL.Async.execute('UPDATE hr_bansystem SET Reason = @Reason, isBanned = @isBanned, Expire = @Expire WHERE Steam = @Steam',
{
['@isBanned'] = 1,
['@Reason'] = reason,
['@Steam'] = hex,
['@Expire'] = (type(time) == 'string' and time) or (os.time() + (time * 86400))
})
TriggerClientEvent('chat:addMessage', -1, {
template = '<div style="padding: 0.5vw; margin: 0.5vw; background-color: rgba(255, 131, 0, 0.4); border-radius: 3px;"><i class="fas fa-exclamation-triangle"></i> [Punishment]<br> {1}</div>',
args = { name, '^1' .. name .. ' ^0has been banned, Reason: ^1' ..reason.." ^0Duration: ^1".. (type(day) == 'string' and "Permanet" or time .." ^0 Day(s).")}
})
DropPlayer(id, reason)
SetTimeout(5000, function()
ReloadBans()
end)
end)
AddEventHandler('TargetPlayerIsOffline', function(hex, reason, xAdmin, day)
local time
if (type(day) == 'string' and string.lower(day) == "permanet") or tonumber(day) == 0 then
time = "Permanet"
else
time = tonumber(day)
end
MySQL.Async.fetchAll('SELECT Steam FROM hr_bansystem WHERE Steam = @Steam',
{
['@Steam'] = hex
}, function(data)
if data[1] then
MySQL.Async.execute('UPDATE hr_bansystem SET Reason = @Reason, isBanned = @isBanned, Expire = @Expire WHERE Steam = @Steam',
{
['@isBanned'] = 1,
['@Reason'] = reason,
['@Steam'] = hex,
['@Expire'] = (type(time) == 'string' and time) or (os.time() + (time * 86400))
})
TriggerClientEvent('chat:addMessage', -1, {
template = '<div style="padding: 0.5vw; margin: 0.5vw; background-color: rgba(255, 131, 0, 0.4); border-radius: 3px;"><i class="fas fa-exclamation-triangle"></i> [Punishment]<br> {1}</div>',
args = { hex, '^1' .. hex .. ' ^0has been banned, Reason: ^1' ..reason.." ^0Duration: t ^1".. (type(day) == 'string' and "Permanet" or time .." ^0 Day(s).")}
})
SetTimeout(5000, function()
ReloadBans()
end)
else
SendMessage(xAdmin, "[Database]", {255, 0, 0}, "^0I Can't find this steam hex. :( It is incorrect")
end
end)
end)
AddEventHandler('playerConnecting', function(name, setKickReason)
local source = source
local BannedAlready = false
local isBypassing = false
local Steam = "NONE"
local Lice = "NONE"
local Lice2 = "NONE"
local Live = "NONE"
local Xbox = "NONE"
local Discord = "NONE"
local IP = "NONE"
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1,string.len("steam:")) == "steam:" then
Steam = v
elseif string.sub(v, 1,string.len("license:")) == "license:" then
Lice = v
elseif string.sub(v, 1,string.len("license2:")) == "license2:" then
Lice2 = v
elseif string.sub(v, 1,string.len("live:")) == "live:" then
Live = v
elseif string.sub(v, 1,string.len("xbl:")) == "xbl:" then
Xbox = v
elseif string.sub(v,1,string.len("discord:")) == "discord:" then
Discord = v
elseif string.sub(v, 1,string.len("ip:")) == "ip:" then
IP = v
end
end
if Steam == nil or Lice == nil or Steam == "" or Lice == "" or Steam == "NONE" or Lice == "NONE" then
setKickReason("\n \n HR_BanSystem: \n Your Steam identifier could not be fetched. \n Please restart your steam, then start your FiveM again.")
CancelEvent()
return
end
if GetNumPlayerTokens(source) == 0 or GetNumPlayerTokens(source) == nil or GetNumPlayerTokens(source) < 0 or GetNumPlayerTokens(source) == "null" or GetNumPlayerTokens(source) == "**Invalid**" or not GetNumPlayerTokens(source) then
DiscordLog(source, "Max Token Numbers Are nil")
setKickReason("\n \n HR_BanSystem: \n There is a problem retrieving your fivem informations \n Please Restart FiveM.")
CancelEvent()
return
end
if JoinCoolDown[Steam] == nil then
JoinCoolDown[Steam] = os.time()
elseif os.time() - JoinCoolDown[Steam] < 15 then
setKickReason("\n \n HR_BanSystem: \n Don't spam the connect button!")
CancelEvent()
return
else
JoinCoolDown[Steam] = nil
end
for a, b in pairs(BannedAccounts) do
for c, d in pairs(b) do
for e, f in pairs(json.decode(d.Tokens)) do
for g = 0, GetNumPlayerTokens(source) - 1 do
if GetPlayerToken(source, g) == f or d.License == tostring(Lice) or d.License2 == tostring(Lice2) or d.Live == tostring(Live) or d.Xbox == tostring(Xbox) or d.Discord == tostring(Discord) or (IpBanCheck and d.IP == tostring(IP) or false) or d.Steam == tostring(Steam) then
if (type(d.Expire) == 'string' and string.lower(d.Expire) == "permanet") or os.time() < tonumber(d.Expire) then
BannedAlready = tostring(d.Reason)
if d.Steam ~= tostring(Steam) then
isBypassing = d.Expire
end
setKickReason("\n \n HR_BanSystem: \n Ban ID: #"..d.ID.."\n Reason: "..d.Reason.."\n Expiration: You have been banned for ".. ((type(d.Expire) == 'string' and string.lower(d.Expire) == "permanet") and "Permanet" or DisplayTime((tonumber(d.Expire) - os.time()))) .." ! \nHWID: "..f)
CancelEvent()
break
else
CreateUnbanThread(tostring(d.Steam))
break
end
end
end
end
end
end
if not BannedAlready and not isBypassing then
InitiateDatabase(tonumber(source))
end
if BannedAlready then
DiscordLog(source, "Has tried To join. (Rejected from joining before loading into the server) Ban Reason: " .. BannedAlready)
end
if isBypassing then
DiscordLog(source, "Has tried To join using Bypass method by changing identifiers (New identifiers has been banned.)")
BanNewAccount(tonumber(source), "Tried To Bypass HR_BanSystem", isBypassing)
end
end)
function CreateUnbanThread(Steam)
MySQL.Async.fetchAll('SELECT Steam FROM hr_bansystem WHERE Steam = @Steam',
{
['@Steam'] = Steam
}, function(data)
if data[1] then
MySQL.Async.execute('UPDATE hr_bansystem SET Reason = @Reason, isBanned = @isBanned, Expire = @Expire WHERE Steam = @Steam',
{
['@isBanned'] = 0,
['@Reason'] = "",
['@Steam'] = Steam,
['@Expire'] = 0
})
SetTimeout(5000, function()
ReloadBans()
end)
end
end)
end
function InitiateDatabase(source)
local source = source
local ST = "None"
local LC = "None"
local LC2 = "None"
local LV = "None"
local XB = "None"
local DS = "None"
local IiP = "None"
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1,string.len("steam:")) == "steam:" then
ST = v
elseif string.sub(v, 1,string.len("license:")) == "license:" then
LC = v
elseif string.sub(v, 1,string.len("license2:")) == "license2:" then
LC2 = v
elseif string.sub(v, 1,string.len("live:")) == "live:" then
LV = v
elseif string.sub(v, 1,string.len("xbl:")) == "xbl:" then
Xbox = v
elseif string.sub(v,1,string.len("discord:")) == "discord:" then
DS = v
elseif string.sub(v, 1,string.len("ip:")) == "ip:" then
IiP = v
end
end
if ST == "None" then print(source.." Failed To Create User") return end
DatabaseStuff[ST] = {}
for i = 0, GetNumPlayerTokens(source) - 1 do
table.insert(DatabaseStuff[ST], GetPlayerToken(source, i))
end
MySQL.Async.fetchAll('SELECT * FROM hr_bansystem WHERE Steam = @Steam',
{
['@Steam'] = ST
}, function(data)
if data[1] == nil then
MySQL.Async.execute('INSERT INTO hr_bansystem (Steam, License, License2, Tokens, Discord, IP, Xbox, Live, Reason, Expire, isBanned) VALUES (@Steam, @License, @License2, @Tokens, @Discord, @IP, @Xbox, @Live, @Reason, @Expire, @isBanned)',
{
['@Steam'] = ST,
['@License'] = LC,
['@License2'] = LC2,
['@Discord'] = DS,
['@Xbox'] = XB,
['@IP'] = IiP,
['@Live'] = LV,
['@Reason'] = "",
['@Tokens'] = json.encode(DatabaseStuff[ST]),
['@Expire'] = 0,
['@isBanned'] = 0
})
DatabaseStuff[ST] = nil
end
end)
end
function BanNewAccount(source, Reason, Time)
local source = source
local ST = "None"
local LC = "None"
local LC2 = "None"
local LV = "None"
local XB = "None"
local DS = "None"
local IiP = "None"
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1,string.len("steam:")) == "steam:" then
ST = v
elseif string.sub(v, 1,string.len("license:")) == "license:" then
LC = v
elseif string.sub(v, 1,string.len("license2:")) == "license2:" then
LC2 = v
elseif string.sub(v, 1,string.len("live:")) == "live:" then
LV = v
elseif string.sub(v, 1,string.len("xbl:")) == "xbl:" then
Xbox = v
elseif string.sub(v,1,string.len("discord:")) == "discord:" then
DS = v
elseif string.sub(v, 1,string.len("ip:")) == "ip:" then
IiP = v
end
end
if ST == "None" then print(source.." Failed To Create User") return end
DatabaseStuff[ST] = {}
for i = 0, GetNumPlayerTokens(source) - 1 do
table.insert(DatabaseStuff[ST], GetPlayerToken(source, i))
end
MySQL.Async.fetchAll('SELECT * FROM hr_bansystem WHERE Steam = @Steam',
{
['@Steam'] = ST
}, function(data)
if data[1] == nil then
MySQL.Async.execute('INSERT INTO hr_bansystem (Steam, License, License2, Tokens, Discord, IP, Xbox, Live, Reason, Expire, isBanned) VALUES (@Steam, @License, @License2, @Tokens, @Discord, @IP, @Xbox, @Live, @Reason, @Expire, @isBanned)',
{
['@Steam'] = ST,
['@License'] = LC,
['@License2'] = LC2,
['@Discord'] = DS,
['@Xbox'] = XB,
['@IP'] = IiP,
['@Live'] = LV,
['@Reason'] = Reason,
['@Tokens'] = json.encode(DatabaseStuff[ST]),
['@Expire'] = Time,
['@isBanned'] = 1
})
DatabaseStuff[ST] = nil
SetTimeout(5000, function()
ReloadBans()
end)
end
end)
end
RegisterCommand('banreload', function(source, args)
if source == 0 or IsPlayerAllowedToBan(source) then
ReloadBans()
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0Ban List Reloaded.")
end
end)
RegisterServerEvent("HR_BanSystem:BanMe")
AddEventHandler("HR_BanSystem:BanMe", function(Reason, Time)
local source = source
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1, string.len("steam:")) == "steam:" then
Cheat = v
end
end
TriggerEvent('Initiate:BanSql', Cheat, tonumber(source), tostring(Reason), GetPlayerName(source), Time)
end)
function BanThis(source, Reason, Times)
local time = Times
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1, string.len("steam:")) == "steam:" then
STP = v
end
end
if Times == nil or not Times then
time = 365
end
TriggerEvent('Initiate:BanSql', STP, tonumber(source), tostring(Reason), GetPlayerName(source), time)
end
RegisterCommand('ban', function(source, args)
local source = source
local target = tonumber(args[1])
if source == 0 or IsPlayerAllowedToBan(source) then
if args[1] then
if string.lower(tostring(args[2])) == 'permanet' or tonumber(args[2]) then
if tostring(args[3]) then
if tonumber(args[1]) then
if GetPlayerName(target) then
for k, v in ipairs(GetPlayerIdentifiers(target)) do
if string.sub(v, 1, string.len("steam:")) == "steam:" then
Hex = v
end
end
DiscordLog(tonumber(source), "Banned " .. tostring(GetPlayerName(target)) .. " for " .. (string.lower(tostring(args[2])) == 'permanet' and "Permanet" or (tonumber(args[2]) == 0 and "Permanet" or tonumber(args[2]))) .. " Reason: " .. table.concat(args, " ",3) )
TriggerEvent('Initiate:BanSql', Hex, tonumber(target), table.concat(args, " ",3), GetPlayerName(target), args[2])
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0Player Is Not Online.")
end
else
if string.find(args[1], "steam:") ~= nil then
DiscordLog(tonumber(source), "Banned " .. tostring(args[1]) .. " for " .. (string.lower(tostring(args[2])) == 'permanet' and "Permanet" or (tonumber(args[2]) == 0 and "Permanet" or tonumber(args[2]))) .. " Reason: " .. table.concat(args, " ",3) )
TriggerEvent('TargetPlayerIsOffline', args[1], table.concat(args, " ",3), tonumber(source), args[2])
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0The entered steam hex is incorrect.")
end
end
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0Please enter a ban reason.")
end
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0Please enter the ban duration.")
end
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0Please enter the player server ID or steam hex.")
end
else
if source ~= 0 then
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0You don't have admin's privilege.")
end
end
end)
RegisterServerEvent("HR_BanSystem:ClientLoaded")
AddEventHandler("HR_BanSystem:ClientLoaded", function()
local source = source
local ST = "None"
for k, v in ipairs(GetPlayerIdentifiers(source)) do
if string.sub(v, 1,string.len("steam:")) == "steam:" then
ST = v
break
end
end
if ST == "None" then print(source.." Failed To KVP Check") return end
TriggerClientEvent("HR_BanSystem:playerLoaded", source, ST)
end)
RegisterServerEvent("HR_BanSystem:CheckBan")
AddEventHandler("HR_BanSystem:CheckBan", function(hex)
local source = source
MySQL.Async.fetchAll('SELECT * FROM hr_bansystem WHERE Steam = @Steam',
{
['@Steam'] = hex
}, function(data)
if data[1] then
if data[1].isBanned == 1 then
DiscordLog(source, "Has tried to Bypass the ban system with KVP Method")
DropPlayer(source, "You were already banned fromn this server!")
end
end
end)
end)
RegisterCommand('unban', function(source, args)
if source == 0 or IsPlayerAllowedToBan(source) then
if tostring(args[1]) then
MySQL.Async.fetchAll('SELECT Steam FROM hr_bansystem WHERE Steam = @Steam',
{
['@Steam'] = args[1]
}, function(data)
if data[1] then
MySQL.Async.execute('UPDATE hr_bansystem SET Reason = @Reason, isBanned = @isBanned, Expire = @Expire WHERE Steam = @Steam',
{
['@isBanned'] = 0,
['@Reason'] = "",
['@Steam'] = args[1],
['@Expire'] = 0
})
SetTimeout(5000, function()
ReloadBans()
end)
DiscordLog(tonumber(source), "Unbanned " .. tostring(args[1]))
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^2Player unbanned successfully.")
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0The entered steam hex is incorrect.")
end
end)
else
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0The entered steam hex is incorrect.")
end
else
if source ~= 0 then
SendMessage(source, "[BanSystem]", {255, 0, 0}, " ^0You don't have admin's privilege.")
end
end
end)
function ReloadBans()
Citizen.CreateThread(function()
BannedAccounts = {}
MySQL.Async.fetchAll('SELECT * FROM hr_bansystem', {}, function(info)
for i = 1, #info do
if info[i].isBanned == 1 then
Citizen.Wait(2)
table.insert(BannedAccounts, {info[i]})
end
end
end)
end)
end
MySQL.ready(function()
ReloadBans()
print("Ban List Loaded")
end)
function IsPlayerAllowedToBan(player)
local allowed = false
for i, id in ipairs(Admins) do
for x, pid in ipairs(GetPlayerIdentifiers(player)) do
if string.lower(pid) == string.lower(id) then
allowed = true
end
end
end
return allowed
end
function DiscordLog(source, method)
PerformHttpRequest("",function(err, text, headers)
end, "POST",
json.encode(
{
username = "Player",
embeds = {
{
["color"] = 65280,
["author"] = {
["name"] = "Ban Logs ",
["icon_url"] = ""
},
["description"] = "** 🌐 Ban Log 🌐**\n```css\n[Guy]: " .. (source == 0 and "Console" or GetPlayerName(source)) .. "\n" .. "[ID]: " .. (source == 0 and "Console" or source) .. "\n" .. "[Method]: " .. method .. "\n```",
["footer"] = {
["text"] = "© Ban Logs- " .. os.date("%x %X %p"),
["icon_url"] = ""
}
}
},
avatar_url = ""
}
),
{
["Content-Type"] = "application/json"
})
end
|
local function Reply(source, message)
if source == 0 then
print(message)
else
TriggerClientEvent("chat:notify", source, {
class = "inform",
text = message,
})
end
end
local function DropItemsInCategory(source, ...)
local args = {...}
if #args == 0 then
return false, "No category!"
end
local ped = GetPlayerPed(source) or 0
if not DoesEntityExist(ped) then return false end
local items = {}
local extra = ""
for _, category in ipairs(args) do
local _items = Inventory.categories[category]
if not _items then
return false, "Category '"..category.."' does not exist!"
end
for name, item in pairs(_items) do
items[name] = item
end
if extra ~= "" then
extra = extra..", "
end
extra = extra..category
end
local container = Inventory:RegisterContainer({
temporary = true,
type = "debug",
coords = GetEntityCoords(ped) - vector3(0.0, 0.0, 1.0),
heading = (GetEntityHeading(ped) + 180.0) % 360.0,
})
for name, item in pairs(items) do
container:AddItem(item.name, item.stack or 1)
end
exports.log:Add({
source = source,
verb = "spawned",
noun = "drop",
extra = extra,
})
return true
end
exports.chat:RegisterCommand("a:giveitem", function(source, args, command, cb)
-- Item.
local item = Inventory:GetItem(FormatName(args[1] or ""))
if item == nil then
Reply(source, "Invalid item!")
return
end
-- Quantity.
local quantity = tonumber(args[2] or 1)
if quantity == nil then
quantity = 1
end
-- Player.
local player = Inventory.players[tonumber(args[3] or source)]
if player == nil then
Reply(source, "Invalid player!")
return
end
-- Get fields.
local fields = args[4]
if fields ~= nil and item.fields ~= nil then
fields = fields:gsub("'", "\"")
fields = json.decode(fields)
for key, value in pairs(fields) do
if item.fields[key] == nil then
fields[key] = nil
end
end
else
fields = nil
end
-- Give item.
local retval, message = table.unpack(Inventory:GiveItem(source, item.id, quantity, fields))
if retval then
Reply(source, ("Gave %sx %s!"):format(quantity, item.name))
else
Reply(source, ("Couldn't give item! (%s)"):format(message or "error"))
end
end, {
description = "Give an item!",
parameters = {
{ name = "Item", help = "Name of the item" },
{ name = "Quantity", help = "How much to give" },
{ name = "Source", help = "Who to give it to (optional)" },
{ name = "Fields", help = "" },
}
}, "Admin")
exports.chat:RegisterCommand("a:givemoney", function(source, args, command, cb)
-- Quantity.
local quantity = tonumber(args[1] or 1)
if quantity == nil then
quantity = 100
else
quantity = math.min(quantity, 2147483647)
end
if quantity <= 0 then
return
end
-- Player.
local player = Inventory.players[tonumber(args[2] or source)]
if not player or not player.container then
Reply(source, "Invalid player!")
return
end
-- Give money.
local retval, message = player.container:AddMoney(quantity, true)
if type(retval) == "number" and retval > 0.001 then
Reply(source, ("Gave $%s"):format(retval))
else
Reply(source, ("Couldn't give money! (%s)"):format(message or "error"))
end
end, {
description = "Give some money!",
parameters = {
{ name = "Amount", help = "How much money to give" },
{ name = "Source", help = "Who to give it to (optional)" },
}
}, "Admin")
exports.chat:RegisterCommand("a:droprandom", function(source, args, command, cb)
local ped = GetPlayerPed(source) or 0
if not DoesEntityExist(ped) then return end
local containerType = "debug"
local container = Inventory:RegisterContainer({
temporary = true,
type = containerType,
coords = GetEntityCoords(ped) - vector3(0.0, 0.0, 1.0),
heading = (GetEntityHeading(ped) + 180.0) % 360.0,
})
local settings = Config.Containers[containerType]
for i = 0, settings.width * settings.height do
local item = Inventory:GetRandomItem()
local quantity = Inventory:Random(1, item.stack or 1)
container:AddItem(item.name, quantity)
end
end, {}, "Admin")
local categories = ""
for name, items in pairs(Inventory.categories) do
if categories ~= "" then
categories = categories..", "
end
categories = categories..name
end
exports.chat:RegisterCommand("a:drop", function(source, args, command, cb)
for k, v in ipairs(args) do
args[k] = v:lower()
end
local retval, result = DropItemsInCategory(source, table.unpack(args))
if retval then
cb("success", "Good work, monkey!")
else
cb("error", result or "Failed.")
end
end, {
description = "Drop all items given a specific category.",
parameters = {
{ name = "Category", description = "The category or categories to generate. Separate multiple categories with a space. Valid categories: "..categories },
}
}, "Admin") |
dofile("GameUtil.lua");
dofile("GameWorld.lua");
local wareHouseFactory=dofile(getDefaultScriptPath() .. "\\WareHouse.lua");
local wareHouse=wareHouseFactory.create(getDefaultScriptPath());
local nbcFactory=dofile(getDefaultScriptPath() .. "\\NaiveBayseClassifier.lua");
classifier=nbcFactory.create();
--build C45
local records={};
for recordIndex=1, wareHouse:getRecordCount() do
records[recordIndex]=wareHouse:getRecord(recordIndex);
end
for recordIndex=1, wareHouse:getRecordCount() do
local predicted=classifier:predict(records[recordIndex], records, wareHouse:getClassAttribute());
local recorded=records[recordIndex]:getAttributeValue("class");
print2Console("recorded: " .. recorded .. "\tpredicted: " .. predicted);
end |
local input_file = "input.txt"
local area = {}
local length = 0
local width = 1
for line in io.lines( input_file )
do
length = length + 1
area[ length ] = {}
for j = 1, string.len( line )
do
area[ length ][ j ] = string.sub( line, j, j )
width = j
end
end
function print_area()
for x = 1, length do
for y = 1, width do
io.write( area[ x ][ y ] )
end
print()
end
end
function get_min_x_and_y( x, y )
local min_x
if x - 1 == 0 then min_x = x else min_x = x - 1 end
local min_y
if y - 1 == 0 then min_y = y else min_y = y - 1 end
local max_x
if x == length then max_x = length else max_x = x + 1 end
local max_y
if y == width then max_y = width else max_y = y + 1 end
return min_x, min_y, max_x, max_y
end
function open_should_become_tree( x, y )
local count = 0
local min_x, min_y, max_x, max_y = get_min_x_and_y( x, y )
for i = min_x, max_x do
for j = min_y, max_y do
if not (x == i and y == j ) and area[ i ][ j ] == '|' then
count = count + 1
end
end
end
return count >= 3
end
function tree_should_become_lumberyard( x, y )
local count = 0
local min_x, min_y, max_x, max_y = get_min_x_and_y( x, y )
for i = min_x, max_x do
for j = min_y, max_y do
if not (x == i and y == j ) and area[ i ][ j ] == '#' then
count = count + 1
end
end
end
return count >= 3
end
function lumberyard_should_remain( x, y )
local lumberyard_count = 0
local tree_count = 0
local min_x, min_y, max_x, max_y = get_min_x_and_y( x, y )
for i = min_x, max_x do
for j = min_y, max_y do
if not (x == i and y == j ) then
local value = area[ i ][ j ]
if value == '|' then
tree_count = tree_count + 1
elseif value == '#' then
lumberyard_count = lumberyard_count + 1
end
end
end
end
return lumberyard_count > 0 and tree_count > 0
end
function calculate_value()
local trees = 0
local lumber = 0
for x = 1, length do
for y = 1, width do
local value = area[ x ][ y ]
if value == "|" then trees = trees + 1
elseif value == "#" then lumber = lumber + 1 end
end
end
return trees * lumber
end
function calculate_next_score()
local new_map = {}
for x = 1, length do
new_map[ x ] = {}
for y = 1, width do
local value = area[ x ][ y ]
if value == '.' then
if open_should_become_tree( x, y ) then
new_map[ x ][ y ] = "|"
else
new_map[ x ][ y ] = value
end
elseif value == '|' then
if tree_should_become_lumberyard( x, y ) then
new_map[ x ][ y ] = "#"
else
new_map[ x ][ y ] = value
end
elseif value == '#' then
if lumberyard_should_remain( x, y ) then
new_map[ x ][ y ] = "#"
else
new_map[ x ][ y ] = "."
end
end
end
end
area = new_map
return calculate_value()
end
function find_pattern_start()
local prev_score = -1
for i = 1, 1000000000 do
local value = calculate_next_score()
if prev_score == value then
return i, prev_score
else
prev_score = value
end
end
end
local idx, score = find_pattern_start()
print( idx, score )
local pattern = {}
local next
local i = 1
while next ~= score do
next = calculate_next_score()
pattern[ i ] = next
i = i + 1
end
function get_index( i, offset, size )
local idx = ( i - offset ) % size
if idx == 0 then idx = size end
return idx
end
local idx = get_index( 1000000000, 433, i )
print ( pattern[ idx ] ) |
local R = require("../dist/lamda")
TestFunc = {}
local this = TestFunc
function TestFunc.test_always()
local v_zero = R.always(0)
this.lu.assertEquals(v_zero(), 0)
this.lu.assertEquals(v_zero(), v_zero())
local always_curried = R.always()
local v_two = always_curried(2)
this.lu.assertEquals(v_two(), 2)
this.lu.assertEquals(v_two(), v_two())
end
function TestFunc.test_tf()
this.lu.assertFalse(R.F())
this.lu.assertTrue(R.T())
end
function TestFunc.test_allPass()
local pred = R.allPass(R.gt(5), R.lt(3))
this.lu.assertTrue(pred(4))
this.lu.assertFalse(pred(2))
this.lu.assertFalse(pred(8))
pred = R.allPass()
this.lu.assertTrue(pred())
pred = R.allPass(R.o(R.equals(3), R.size), R.all(R.equals(3)))
this.lu.assertTrue(pred({3, 3, 3}))
this.lu.assertFalse(pred({3, 3}))
this.lu.assertFalse(pred({}))
this.lu.assertFalse(pred({2, 3, 3}))
end
function TestFunc.test_and_()
this.lu.assertTrue(R.and_(true, true))
this.lu.assertFalse(R.and_(true, false))
this.lu.assertFalse(R.and_(false, true))
this.lu.assertFalse(R.and_(false, false))
end
function TestFunc.test_anyPass()
local pred = R.anyPass(R.gt(3), R.lt(5))
this.lu.assertTrue(pred(2))
this.lu.assertTrue(pred(8))
this.lu.assertFalse(pred(4))
pred = R.anyPass()
this.lu.assertFalse(pred())
pred = R.anyPass(R.o(R.equals(3), R.size), R.all(R.equals(3)))
this.lu.assertTrue(pred({3, 3, 3, 3, 3, 3}))
this.lu.assertFalse(pred({2, 3}))
this.lu.assertTrue(pred({}))
this.lu.assertTrue(pred({2, 3, 3}))
end
function TestFunc.test_apply()
local f = function (a, b, c)
return a + b + c
end
this.lu.assertEquals(R.apply(f, {1,2,3}), 6)
local max = R.apply(math.max)
this.lu.assertEquals(max({1,2,3,4}), 4)
end
function TestFunc.test_ascend()
local byAge = R.ascend(R.prop('age'))
local people = {
{ name = 'Emma', age = 70 },
{ name = 'Peter', age = 78 },
{ name = 'Mikhail', age = 62 },
}
local peopleByYoungestFirst = R.sort(byAge, people)
this.lu.assertEquals(peopleByYoungestFirst, {{name = "Mikhail", age = 62}, {name = "Emma", age = 70}, {name = "Peter", age = 78}})
end
function TestFunc.test_descend()
local byAge = R.descend(R.prop('age'))
local people = {
{ name = 'Emma', age = 70 },
{ name = 'Peter', age = 78 },
{ name = 'Mikhail', age = 62 },
}
local peopleByYoungestFirst = R.sort(byAge, people)
this.lu.assertEquals(peopleByYoungestFirst, {{name = "Peter", age = 78}, {name = "Emma", age = 70}, {name = "Mikhail", age = 62}})
end
function TestFunc.test_ary()
local f = function(a, b, c, d, e, f, g)
return {a, b, c, d, e, f, g}
end
local uf = R.unary(f)
this.lu.assertEquals(uf(1,2,3,4,5,6,7), {1})
this.lu.assertEquals(uf(), {})
local bf = R.binary(f)
this.lu.assertEquals(bf(1,2,3,4,5,6,7), {1,2})
this.lu.assertEquals(bf(1), {1})
this.lu.assertEquals(bf(), {})
local ff = R.nAry(4, f)
this.lu.assertEquals(ff(1,2,3,4,5,6,7), {1,2,3,4})
this.lu.assertEquals(ff(1), {1})
this.lu.assertEquals(ff(), {})
end
function TestFunc.test_bind()
local obj = {a = 1}
function obj:modify()
self.a = 2
end
local modify_a = R.bind(obj.modify, obj)
modify_a()
this.lu.assertEquals(obj.a, 2)
end
function TestFunc.test_both()
local gt = R.gt(100)
local lt = R.lt(50)
this.lu.assertTrue(R.both(gt, lt)(75))
this.lu.assertFalse(R.both(gt, lt)(25))
local len3_and_all_gt_5 = R.both(R.o(R.equals(3), R.size))(R.all(R.lt(5)))
this.lu.assertTrue(len3_and_all_gt_5({6,7,8}))
this.lu.assertFalse(len3_and_all_gt_5({3,7,8}))
end
function TestFunc.test_cond()
local cond = R.cond({
{R.equals(5), R.T},
{R.equals(8), R.F},
{R.lt(100), function(v) return v*2 end}
})
this.lu.assertTrue(cond(5))
this.lu.assertFalse(cond(8))
this.lu.assertEquals(cond(150), 300)
this.lu.assertNil(cond(50))
end
function TestFunc.test_comparator()
local byAge = R.comparator(function(a, b)
return a.age < b.age
end)
local people = {
{ name = 'Emma', age = 70 },
{ name = 'Peter', age = 78 },
{ name = 'Mikhail', age = 62 },
}
local peopleByYoungestFirst = R.sort(byAge, people)
this.lu.assertEquals(peopleByYoungestFirst, {{name = "Mikhail", age = 62}, {name = "Emma", age = 70}, {name = "Peter", age = 78}})
end
function TestFunc.test_complement()
local isNotNil = R.complement(R.isNil)
this.lu.assertTrue(R.isNil(nil))
this.lu.assertFalse(isNotNil(nil))
this.lu.assertFalse(R.isNil(7))
this.lu.assertTrue(isNotNil(7))
end
function TestFunc.test_converge()
local average = R.converge(R.divide, {R.sum, R.length})
this.lu.assertEquals(average({1,2,3,10}), 4)
local strangeConcat = R.converge(R.concat, {R.toUpper, R.toLower})
this.lu.assertEquals(strangeConcat("Hello"), "HELLOhello")
end
function TestFunc.test_curry()
local f1 = R.curry1(function(a) return a + 1 end)
this.lu.assertEquals(f1()()(5), 6)
local f2 = R.curry2(function(a, b) return a + b end)
this.lu.assertEquals(f2()(5)()(6), 11)
f2 = R.curry2(function(a, b, c) return a + b + c end)
this.lu.assertEquals(f2()(5)()(6, 1), 12)
local f3 = R.curry3(function(a, b, c) return a + b + c end)
this.lu.assertEquals(f3()(1)()(2,3), 6)
f3 = R.curry3(function(a, b, c, d) return a + b + c + d end)
this.lu.assertError(f3()(1)(), 2, 3)
this.lu.assertEquals(f3()(1)()(2,3,4), 10)
local f5 = R.curryN(5, function(a, b, c, d, e) return a + b + c + d + e end)
this.lu.assertEquals(f5()(1)()(2,3)()()(4)(-10), 0)
end
function TestFunc.test_either()
this.lu.assertFalse(R.either(R.gte(3), R.lte(5))(4))
this.lu.assertTrue(R.either(R.gte(3), R.lte(5))(2))
this.lu.assertTrue(R.either(R.gte(3), R.lte(5))(6))
end
function TestFunc.test_flip()
local f = function(a,b,c,d)
return a..b..c..d
end
this.lu.assertEquals(R.flip(f)(1,2,3,4), "2134")
this.lu.assertIsFunction(R.flip(f)(1))
local strangelt = R.flip(R.gt)
this.lu.assertEquals(R.sort(strangelt, {5,1,3,2,4}), {1,2,3,4,5})
end
function TestFunc.test_identity()
local obj = {}
this.lu.assertIs(R.identity(obj), obj)
local f = function() end
this.lu.assertIs(R.identity(f), f)
end
function TestFunc.test_ifelse()
local whaterve = R.ifElse(
R.has('count'),
R.dissoc('count'),
R.assoc('count', 1)
)
this.lu.assertEquals(whaterve({}), {count = 1})
this.lu.assertEquals(whaterve({count = 1}), {})
end
function TestFunc.test_juxt()
local getRange = R.juxt({math.min, math.max})
this.lu.assertEquals(getRange(1,-2,3,-4), {-4,3})
local judgeValue = R.juxt({R.all(R.equals(1)), R.any(R.gt(3))})
this.lu.assertEquals(judgeValue({1,2,3,4}), {false, true})
end
function TestFunc.test_map()
this.lu.assertEquals(R.map(R.add(3), {1,2,3}), {4,5,6})
this.lu.assertEquals(R.sort(R.lt, R.map(R.add(3), {a=1,b=2,c=3})), {4,5,6}) --map could not assume the key sequences
local revert_map = R.compose(R.merge, R.unpack, R.map(R.flip(R.objOf)))
this.lu.assertEquals({a=1,b=2,c=3}, revert_map({a=1,b=2,c=3}))
end
function TestFunc.test_mapAccum()
local digits = {'1', '2', '3', '4'}
local appender = R.juxt({R.concat, R.concat})
this.lu.assertEquals(R.mapAccum(appender, 0, digits), {"01234", {"01", "012", "0123", "01234"}})
end
function TestFunc.test_mapAccumRight()
local digits = {'1', '2', '3', '4'}
local appender = R.juxt({R.concat, R.concat})
this.lu.assertEquals(R.mapAccumRight(appender, 5, digits), {{'12345', '2345', '345', '45'}, '12345'})
end
function TestFunc.test_memoizeWith()
local count = 0
local factorial = R.memoizeWith(R.identity, function(n)
count = count + 1
return R.product(R.range(1, n + 1))
end)
this.lu.assertEquals(factorial(5), 120)
this.lu.assertEquals(factorial(5), 120)
this.lu.assertEquals(factorial(5), 120)
this.lu.assertEquals(count, 1)
this.lu.assertEquals(factorial(6), 720)
this.lu.assertEquals(count, 2)
end
function TestFunc.test_memoize()
local count = 0
local factorial = R.memoize(function(n)
count = count + 1
return R.product(R.range(1, n + 1))
end)
this.lu.assertEquals(factorial(5), 120)
this.lu.assertEquals(factorial(5), 120)
this.lu.assertEquals(factorial(5), 120)
this.lu.assertEquals(count, 1)
this.lu.assertEquals(factorial(6), 720)
this.lu.assertEquals(count, 2)
end
function TestFunc.test_not_()
this.lu.assertFalse(R.not_(true))
this.lu.assertTrue(R.not_(false))
this.lu.assertFalse(R.not_(1))
this.lu.assertFalse(R.not_(0))
end
function TestFunc.test_or_()
this.lu.assertTrue(R.or_(true, true))
this.lu.assertTrue(R.or_(true, false))
this.lu.assertTrue(R.or_(false, true))
this.lu.assertFalse(R.or_(false, false))
end
function TestFunc.test_pipe()
local f = R.pipe(R.add(1), R.add(2), R.minus(R.__, 3), R.multiply(4), R.add(5))
this.lu.assertEquals(f(10), 45)
end
function TestFunc.test_compose()
local f = R.compose(R.add(1), R.add(2), R.minus(R.__, 3), R.multiply(4), R.add(5))
this.lu.assertEquals(f(10), 60)
end
function TestFunc.test_of()
this.lu.assertEquals(R.of(42), {42})
this.lu.assertEquals(R.of({42}), {{42}})
end
function TestFunc.test_once()
local addOnce = R.once(R.add(1))
this.lu.assertEquals(addOnce(10), 11)
this.lu.assertEquals(addOnce(11), 11)
this.lu.assertEquals(addOnce(function()
this.lu.assertFalse(true) --never be called
end), 11)
end
function TestFunc.test_partial()
local double = R.partial(R.multiply, 2)
this.lu.assertEquals(double(2), 4)
local greet = function (salutation, title, firstName, lastName)
return salutation .. ', ' .. title .. ' ' .. firstName .. ' ' .. lastName .. '!'
end
local sayHello = R.partial(greet, 'Hello')
local sayHelloToMs = R.partial(sayHello, 'Ms.')
this.lu.assertEquals(sayHelloToMs('Jane', 'Jones'), 'Hello, Ms. Jane Jones!')
local greetMsJaneJones = R.partialRight(greet, 'Ms.', 'Jane', 'Jones')
this.lu.assertEquals(greetMsJaneJones('Hello'), 'Hello, Ms. Jane Jones!')
end
function TestFunc.test_mirror()
local obj = {a=1, b=2}
this.lu.assertEquals(R.mirror(obj), {{a=1, b=2}, {a=1, b=2}})
this.lu.assertEquals(R.mirrorBy(R.size, {1,2,3}), {{1,2,3}, 3})
this.lu.assertEquals(R.mirrorBy(R.clone)({1,2,3}), {{1,2,3}, {1,2,3}})
end
function TestFunc.test_tap()
this.lu.assertEquals(R.tap(R.partial(R.show, "x is"), 100), 100)
local count = 1
local r = R.tap(function()
count = count + 1
end, count)
this.lu.assertEquals(count + r, 2 + 1)
end
function TestFunc.test_tryCatch()
this.lu.assertTrue(R.tryCatch(R.prop('x'), R.F)({x = true}))
this.lu.assertFalse(R.tryCatch(R.prop('x'), R.F, R.F)({x = true}))
this.lu.assertFalse(R.tryCatch(R.prop('x'), R.F)(1))
this.lu.assertTrue(R.tryCatch(R.prop('x'), R.F, R.T)(1))
end
function TestFunc.test_unapply()
this.lu.assertEquals(R.unapply(R.sum)(1,2,3), 6)
this.lu.assertEquals(R.unapply(R.sum)(), 0)
end
function TestFunc.test_unless()
local safeInc = R.unless(R.isString, R.inc)
this.lu.assertEquals(safeInc('a'), 'a')
this.lu.assertEquals(safeInc(1), 2)
end
function TestFunc.test_until_()
this.lu.assertEquals(R.until_(R.gt(R.__, 100), R.multiply(2))(1), 128)
end
function TestFunc.test_useWith()
local f = math.pow
if not f then
f = function(a, b) return a ^ b end
end
this.lu.assertEquals(R.useWith(f, {R.identity, R.identity})(3, 4), 81)
this.lu.assertEquals(R.useWith(f, {R.identity, R.identity})(3)(4), 81)
this.lu.assertEquals(R.useWith(f, {R.dec, R.inc})(3, 4), 32)
this.lu.assertEquals(R.useWith(f, {R.dec, R.inc})(3)(4), 32)
local f = function(a, b, c, d, e, f) return a + b + c * d + e + f end
this.lu.assertEquals(R.useWith(f, {R.add(1), R.dec, R.minus(1), R.inc})(0,2,3,1,4,5), 7) --> 1 + 1 + -2 * 2 + 4 + 5
end
function TestFunc.test_when()
local truncate = R.when(
R.compose(R.gt(R.__, 10), R.size),
R.pipe(R.take(10), R.append('...'))
)
this.lu.assertEquals(truncate('12345'), '12345')
this.lu.assertEquals(truncate('0123456789ABC'), '0123456789...')
end
return TestFunc |
return {
id = "cosmiccowboy",
name = "Cosmic Cowboy Hat",
description = "I am the yeehaw of the universe.",
type = "hat",
rarity = 6,
hidden = false,
}
|
require('plenary.reload').reload_module('telescope')
local ok, telescope = pcall(require, 'telescope')
if not ok then
return {}
end
local telescope_references = {}
telescope_references.request = function(opts)
vim.lsp.buf_request(0, 'textDocument/references', telescope_references.get_params(), telescope_references.get_callback(opts))
end
telescope_references.get_callback = function(opts)
opts = opts or {}
return function(_, _, result, _, bufnr)
if not result then
print("[lsp_extensions.telescope_references] No references found")
return
end
local items = vim.lsp.util.locations_to_items(result)
-- print(vim.inspect(items))
local finder_items = {}
for _, v in ipairs(items) do
table.insert(finder_items, string.format("%s:%s:%s:%s",
v.filename,
v.lnum,
v.col,
v.text
))
end
local file_finder = telescope.finders.new { results = finder_items }
local file_previewer = telescope.previewers.vim_buffer
local file_picker = telescope.pickers.new {
previewer = file_previewer
}
-- local file_sorter = telescope.sorters.get_ngram_sorter()
-- local file_sorter = require('telescope.sorters').get_levenshtein_sorter()
local file_sorter = telescope.sorters.get_norcalli_sorter()
file_picker:find {
prompt = 'LSP References',
finder = file_finder,
sorter = file_sorter,
}
end
end
telescope_references.get_params = function()
local params = vim.lsp.util.make_position_params()
params.context = {
includeDeclaration = true
}
-- params[vim.type_idx] = vim.types.dictionary
return params
end
return telescope_references
|
--
--
-- GaussianCriterion.lua
-- Created by Andrey Kolishchak on 2/14/16.
--
--
-- Gaussian log-likelihood Criterion
-- input = {mu, log(sigma^2)} = {mu, log_sq_sigma}
-- L = log(p(N(x,mu,sigma)) = 0.5*log_sq_sigma +0.5*log(2*pi) + 0.5*((x-mu)^2)/exp(log_sq_sigma)
--
--
require 'nn'
require 'test'
local GaussianCriterion, parent = torch.class('nn.GaussianCriterion', 'nn.Criterion')
function GaussianCriterion:__init()
parent.__init(self)
self.gradInput = { torch.Tensor(), torch.Tensor() }
end
function GaussianCriterion:updateOutput(input, target)
local mu, log_sq_sigma = input[1], input[2]
local sq_sigma = torch.exp(log_sq_sigma) -- sigma^2
local output = torch.add(target, -1, mu):pow(2):cdiv(sq_sigma) -- ((x-mu)^2)/(sigma^2)
output:add(log_sq_sigma) -- log(sigma^2)
output:add(math.log(2*math.pi)) -- log(2*pi)
output:mul(0.5):div(mu:size(1))
self.output = torch.sum(output)
return self.output
end
function GaussianCriterion:updateGradInput(input, target)
local mu, log_sq_sigma = input[1], input[2]
local sq_sigma = torch.exp(log_sq_sigma)
-- d_L/d_mu = -(x-mu)/exp(log_sq_sima)
local diff = torch.add(target, -1, mu)
self.gradInput[1] = torch.cdiv(diff, sq_sigma):mul(-1):div(mu:size(1))
-- d_L/d_sigma = 0.5-0.5*(x-mu)^2/exp(log_sq_sima)
self.gradInput[2] = torch.pow(diff,2):mul(-0.5):cdiv(sq_sigma):add(0.5):div(log_sq_sigma:size(1))
return self.gradInput
end
function test()
local model = nn.GaussianCriterion()
local input = torch.rand(2, 100)
local target = torch.rand(100)
local precision = 1e-5
criterionJacobianTest1DTable(model, input, target)
end
test()
|
local function getRootName(name)
return string.sub(name, string.find(name, "/") + 1)
end
local function getFrameName(name, frameAction, frameSide, frameNumber)
local folderName = getRootName(name) .. "_" .. frameAction .. "_" .. frameSide
local fileName = folderName .. "_" .. string.format("%.5d", frameNumber)
return folderName .. "/" .. fileName
end
local getNodeState = function(self)
return self.nodeState
end
local getNodeObject = function(self)
return self.nodeObject
end
local push = function(self)
assert(self:getNodeObject(), "self:getNodeObject() must not be nil in " .. self:getNodeState():getName())
self:getNodeObject():getNode():getStateMachine():pushState(self:getNodeState())
end
local isIn = function(self)
assert(self:getNodeObject(), "self:getNodeObject() must not be nil in " .. self:getNodeState():getName())
return self:getNodeState():getName() == self:getNodeObject():getNode():getStateMachine():getState():getName()
end
local actionUpdate = function(self, action, timeStep)
end
local actionComplete = function(self, action)
end
local enter = function(self)
local nodeObject = self:getNodeObject()
local node = nodeObject:getNode()
nodeObject:setFrameActionName("grab")
nodeObject:setFrameIncrement(1)
nodeObject:getMovingEntity():setVelocity(bullet.btVector3(0,0,0))
node:getPhysicsBody():setVelocity(bullet.btVector3(0,0,0))
node:getPhysicsBody():setCollisionMask(CollisionMasks.birdGrabbing)
node:getPhysicsBody():setDynamicPhysics()
nodeObject:getBeakNodeObject():getNode():hide(getPerspectiveCamera())
local frameName = getFrameName(nodeObject:getNode():getName(), nodeObject:getFrameActionName(), nodeObject:getFrameSideName(), nodeObject:getFrameNumber())
setupSpriteFrame(frameName, nodeObject:getNode(), nodeObject:getSheetInfo(), nodeObject:getSpriteAtlas(), nodeObject:getGeometry())
end
local update = function(self, timeStep)
local nodeObject = self:getNodeObject()
if not nodeObject:getDog():getStateObject("Caught"):isIn() then
nodeObject:getDog():getStateObject("Caught"):push()
else
nodeObject:createConstraint()
self:getNodeObject():getStateObject("Grabbed"):push()
end
end
local exit = function(self)
end
local onMessage = function(self, message)
end
local render = function(self)
end
local collide = function(self, otherNode, collisionPoint)
local myGroup = self:getNodeObject():getNode():getPhysicsBody():getCollisionGroup()
local otherGroup = otherNode:getPhysicsBody():getCollisionGroup()
if bit.band(otherGroup, CollisionGroups.projectile) ~= 0 then
self:getNodeObject():getStateObject("Hit"):push()
elseif bit.band(otherGroup, CollisionGroups.dog) ~= 0 then
end
end
local near = function(self, otherNode)
end
local touchDown = function(self, rayContact)
end
local touchUp = function(self, rayContact)
end
local touchMove = function(self, rayContact)
end
local touchCancelled = function(self, rayContact)
end
local delete = function(self)
njli.NodeState.destroy(self:getNodeState())
end
local methods =
{
getNodeState = getNodeState,
getNodeObject = getNodeObject,
push = push,
isIn = isIn,
actionUpdate = actionUpdate,
actionComplete = actionComplete,
enter = enter,
update = update,
exit = exit,
onMessage = onMessage,
render = render,
collide = collide,
near = near,
touchDown = touchDown,
touchUp = touchUp,
touchMove = touchMove,
touchCancelled = touchCancelled,
__gc = delete
}
local new = function(name, nodeObject)
local nodeState = njli.NodeState.create()
nodeState:setName(name)
local properties =
{
nodeState = nodeState,
nodeObject = nodeObject,
}
return setmetatable(properties, {__index = methods})
end
return {
new = new,
}
|
t1 = oapi.get_simtime()
t0 = t1
dt = 0
function tstep()
proc.skip()
t1 = oapi.get_simtime()
dt = t1-t0
t0 = t1
end
d0 = 2215.664
ph0 = 0.853
th0 = -0.361
d1 = 54.110
ph1 = -1.264
th1 = -0.233
oapi.set_cameramode({mode='track',trackmode='relative',reldist=d0,phi=ph0,tht=th0})
while t1 < 20 do
tstep()
step = math.sin(t1/20*3.1415/2)
d = d0 + (d1-d0)*step
ph = ph0 + (ph1-ph0)*step
th = th0 + (th1-th0)*step
oapi.set_cameramode({mode='track',trackmode='relative',reldist=d,phi=ph,tht=th})
end
|
require "foo"
local name = "alo alo"
local x = 10
if x < 20 then
method1()
end
print(name) |
function init()
setName("Absolute")
setDesc("Gets absolute value")
setSize(100, 24+64+8+8+7+4)
addOutput(24+32)
addInput("Texture", 24+64+8+8)
end
function apply()
tileSize = getTileSize()
for i=0, tileSize*tileSize-1 do
x = i%tileSize
y = math.floor(i/tileSize)
cr, cg, cb = getValue(0, x, y, 1.0)
setPixel(0, x, y, math.abs(cr), math.abs(cg), math.abs(cb))
end
end |
--Adds sprites and sounds for the gui elements
data:extend({
-- Sound
{
type = "sound",
name = "aircraft-realism-sound-master-warning",
variations = { filename = "__AircraftRealism__/sound/plane-warn.ogg", volume = 1.5 }
},
-- Sprites
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-base",
filename = "__AircraftRealism__/graphics/gui/airspeed_indicator-base-no-mach.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-base",
filename = "__AircraftRealism__/graphics/gui/fuel_indicator-base.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-emergency-fuel-warning",
flags={"gui"},
width = 60,
height = 152,
filename = "__AircraftRealism__/graphics/gui/fuel_indicator_emergency_fuel_warning.png"
},
-- Below contains...
-- Fuel indicator bar left, 0 - 31
-- Fuel indicator bar right, 0 - 30
-- Airspeed needle, 0 - 399
-- Airspeed warning needle, 0 - 3999
-- for i in range(31):
-- print("{\ntype = \"sprite\",\nname = \"aircraft-realism-fuel-indicator-right-" + str(i) + "\",\nfilename = \"__AircraftRealism__/graphics/gui/needles/fuel-left/burning_fuel_indicator_bar-" + str(i) + ".png\",\nflags={\"gui\"},\nwidth = 60,\nheight = 152\n},")
--
{ --Fuel indicator needles
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-0",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-0.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-1",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-1.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-2",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-2.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-3",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-3.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-4",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-4.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-5",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-5.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-6",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-6.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-7",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-7.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-8",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-8.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-9",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-9.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-10",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-10.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-11",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-11.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-12",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-12.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-13",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-13.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-14",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-14.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-15",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-15.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-16",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-16.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-17",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-17.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-18",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-18.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-19",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-19.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-20",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-20.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-21",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-21.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-22",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-22.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-23",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-23.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-24",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-24.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-25",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-25.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-26",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-26.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-27",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-27.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-28",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-28.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-29",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-29.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-30",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-30.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-left-31",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-left/fuel_indicator_bar-31.png",
flags={"gui"},
width = 60,
height = 152
},
{ -- Right hand side burning fuel indicator
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-0",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-0.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-1",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-1.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-2",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-2.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-3",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-3.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-4",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-4.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-5",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-5.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-6",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-6.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-7",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-7.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-8",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-8.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-9",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-9.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-10",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-10.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-11",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-11.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-12",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-12.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-13",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-13.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-14",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-14.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-15",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-15.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-16",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-16.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-17",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-17.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-18",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-18.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-19",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-19.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-20",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-20.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-21",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-21.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-22",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-22.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-23",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-23.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-24",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-24.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-25",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-25.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-26",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-26.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-27",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-27.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-28",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-28.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-29",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-29.png",
flags={"gui"},
width = 60,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-fuel-indicator-right-30",
filename = "__AircraftRealism__/graphics/gui/needles/fuel-right/burning_fuel_indicator_bar-30.png",
flags={"gui"},
width = 60,
height = 152
},
{ --Speed indicator needles, 400 of them, each at 4km/h intervals, autogenerated of course because I would go insane
type = "sprite",
name = "aircraft-realism-airspeed-indicator-0",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-0.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-1",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-1.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-2",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-2.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-3",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-3.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-4",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-4.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-5",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-5.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-6",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-6.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-7",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-7.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-8",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-8.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-9",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-9.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-10",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-10.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-11",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-11.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-12",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-12.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-13",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-13.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-14",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-14.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-15",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-15.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-16",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-16.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-17",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-17.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-18",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-18.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-19",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-19.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-20",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-20.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-21",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-21.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-22",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-22.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-23",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-23.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-24",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-24.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-25",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-25.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-26",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-26.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-27",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-27.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-28",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-28.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-29",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-29.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-30",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-30.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-31",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-31.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-32",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-32.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-33",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-33.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-34",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-34.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-35",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-35.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-36",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-36.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-37",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-37.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-38",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-38.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-39",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-39.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-40",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-40.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-41",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-41.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-42",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-42.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-43",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-43.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-44",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-44.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-45",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-45.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-46",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-46.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-47",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-47.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-48",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-48.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-49",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-49.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-50",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-50.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-51",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-51.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-52",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-52.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-53",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-53.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-54",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-54.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-55",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-55.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-56",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-56.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-57",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-57.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-58",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-58.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-59",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-59.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-60",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-60.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-61",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-61.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-62",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-62.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-63",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-63.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-64",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-64.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-65",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-65.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-66",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-66.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-67",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-67.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-68",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-68.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-69",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-69.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-70",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-70.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-71",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-71.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-72",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-72.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-73",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-73.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-74",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-74.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-75",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-75.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-76",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-76.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-77",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-77.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-78",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-78.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-79",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-79.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-80",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-80.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-81",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-81.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-82",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-82.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-83",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-83.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-84",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-84.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-85",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-85.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-86",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-86.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-87",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-87.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-88",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-88.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-89",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-89.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-90",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-90.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-91",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-91.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-92",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-92.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-93",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-93.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-94",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-94.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-95",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-95.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-96",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-96.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-97",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-97.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-98",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-98.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-99",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-99.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-100",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-100.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-101",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-101.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-102",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-102.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-103",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-103.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-104",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-104.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-105",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-105.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-106",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-106.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-107",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-107.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-108",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-108.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-109",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-109.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-110",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-110.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-111",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-111.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-112",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-112.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-113",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-113.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-114",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-114.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-115",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-115.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-116",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-116.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-117",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-117.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-118",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-118.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-119",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-119.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-120",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-120.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-121",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-121.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-122",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-122.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-123",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-123.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-124",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-124.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-125",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-125.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-126",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-126.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-127",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-127.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-128",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-128.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-129",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-129.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-130",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-130.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-131",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-131.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-132",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-132.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-133",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-133.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-134",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-134.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-135",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-135.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-136",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-136.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-137",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-137.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-138",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-138.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-139",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-139.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-140",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-140.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-141",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-141.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-142",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-142.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-143",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-143.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-144",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-144.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-145",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-145.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-146",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-146.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-147",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-147.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-148",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-148.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-149",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-149.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-150",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-150.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-151",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-151.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-152",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-152.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-153",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-153.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-154",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-154.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-155",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-155.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-156",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-156.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-157",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-157.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-158",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-158.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-159",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-159.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-160",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-160.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-161",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-161.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-162",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-162.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-163",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-163.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-164",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-164.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-165",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-165.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-166",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-166.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-167",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-167.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-168",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-168.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-169",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-169.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-170",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-170.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-171",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-171.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-172",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-172.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-173",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-173.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-174",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-174.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-175",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-175.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-176",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-176.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-177",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-177.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-178",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-178.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-179",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-179.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-180",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-180.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-181",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-181.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-182",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-182.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-183",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-183.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-184",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-184.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-185",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-185.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-186",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-186.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-187",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-187.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-188",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-188.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-189",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-189.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-190",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-190.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-191",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-191.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-192",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-192.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-193",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-193.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-194",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-194.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-195",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-195.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-196",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-196.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-197",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-197.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-198",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-198.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-199",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-199.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-200",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-200.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-201",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-201.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-202",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-202.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-203",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-203.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-204",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-204.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-205",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-205.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-206",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-206.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-207",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-207.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-208",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-208.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-209",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-209.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-210",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-210.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-211",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-211.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-212",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-212.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-213",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-213.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-214",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-214.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-215",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-215.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-216",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-216.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-217",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-217.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-218",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-218.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-219",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-219.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-220",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-220.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-221",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-221.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-222",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-222.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-223",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-223.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-224",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-224.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-225",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-225.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-226",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-226.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-227",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-227.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-228",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-228.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-229",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-229.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-230",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-230.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-231",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-231.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-232",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-232.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-233",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-233.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-234",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-234.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-235",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-235.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-236",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-236.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-237",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-237.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-238",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-238.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-239",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-239.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-240",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-240.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-241",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-241.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-242",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-242.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-243",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-243.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-244",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-244.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-245",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-245.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-246",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-246.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-247",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-247.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-248",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-248.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-249",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-249.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-250",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-250.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-251",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-251.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-252",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-252.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-253",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-253.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-254",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-254.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-255",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-255.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-256",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-256.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-257",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-257.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-258",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-258.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-259",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-259.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-260",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-260.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-261",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-261.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-262",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-262.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-263",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-263.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-264",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-264.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-265",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-265.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-266",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-266.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-267",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-267.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-268",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-268.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-269",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-269.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-270",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-270.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-271",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-271.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-272",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-272.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-273",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-273.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-274",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-274.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-275",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-275.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-276",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-276.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-277",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-277.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-278",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-278.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-279",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-279.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-280",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-280.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-281",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-281.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-282",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-282.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-283",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-283.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-284",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-284.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-285",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-285.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-286",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-286.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-287",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-287.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-288",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-288.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-289",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-289.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-290",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-290.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-291",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-291.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-292",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-292.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-293",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-293.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-294",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-294.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-295",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-295.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-296",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-296.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-297",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-297.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-298",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-298.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-299",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-299.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-300",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-300.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-301",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-301.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-302",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-302.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-303",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-303.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-304",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-304.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-305",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-305.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-306",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-306.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-307",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-307.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-308",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-308.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-309",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-309.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-310",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-310.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-311",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-311.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-312",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-312.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-313",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-313.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-314",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-314.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-315",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-315.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-316",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-316.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-317",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-317.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-318",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-318.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-319",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-319.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-320",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-320.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-321",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-321.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-322",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-322.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-323",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-323.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-324",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-324.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-325",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-325.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-326",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-326.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-327",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-327.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-328",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-328.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-329",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-329.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-330",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-330.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-331",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-331.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-332",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-332.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-333",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-333.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-334",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-334.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-335",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-335.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-336",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-336.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-337",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-337.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-338",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-338.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-339",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-339.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-340",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-340.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-341",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-341.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-342",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-342.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-343",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-343.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-344",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-344.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-345",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-345.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-346",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-346.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-347",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-347.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-348",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-348.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-349",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-349.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-350",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-350.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-351",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-351.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-352",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-352.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-353",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-353.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-354",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-354.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-355",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-355.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-356",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-356.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-357",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-357.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-358",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-358.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-359",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-359.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-360",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-360.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-361",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-361.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-362",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-362.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-363",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-363.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-364",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-364.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-365",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-365.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-366",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-366.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-367",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-367.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-368",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-368.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-369",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-369.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-370",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-370.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-371",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-371.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-372",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-372.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-373",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-373.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-374",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-374.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-375",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-375.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-376",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-376.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-377",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-377.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-378",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-378.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-379",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-379.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-380",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-380.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-381",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-381.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-382",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-382.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-383",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-383.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-384",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-384.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-385",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-385.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-386",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-386.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-387",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-387.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-388",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-388.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-389",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-389.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-390",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-390.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-391",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-391.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-392",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-392.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-393",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-393.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-394",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-394.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-395",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-395.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-396",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-396.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-397",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-397.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-398",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-398.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-399",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_needle-399.png",
flags={"gui"},
width = 152,
height = 152
},
{ --Warning Speed indicator needles, 400 of them, each at 4km/h intervals
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-0",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-0.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-1",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-1.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-2",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-2.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-3",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-3.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-4",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-4.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-5",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-5.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-6",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-6.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-7",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-7.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-8",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-8.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-9",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-9.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-10",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-10.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-11",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-11.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-12",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-12.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-13",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-13.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-14",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-14.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-15",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-15.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-16",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-16.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-17",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-17.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-18",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-18.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-19",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-19.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-20",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-20.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-21",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-21.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-22",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-22.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-23",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-23.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-24",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-24.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-25",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-25.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-26",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-26.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-27",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-27.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-28",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-28.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-29",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-29.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-30",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-30.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-31",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-31.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-32",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-32.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-33",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-33.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-34",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-34.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-35",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-35.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-36",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-36.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-37",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-37.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-38",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-38.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-39",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-39.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-40",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-40.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-41",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-41.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-42",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-42.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-43",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-43.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-44",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-44.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-45",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-45.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-46",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-46.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-47",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-47.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-48",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-48.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-49",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-49.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-50",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-50.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-51",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-51.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-52",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-52.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-53",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-53.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-54",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-54.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-55",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-55.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-56",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-56.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-57",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-57.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-58",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-58.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-59",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-59.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-60",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-60.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-61",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-61.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-62",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-62.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-63",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-63.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-64",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-64.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-65",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-65.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-66",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-66.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-67",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-67.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-68",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-68.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-69",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-69.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-70",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-70.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-71",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-71.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-72",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-72.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-73",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-73.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-74",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-74.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-75",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-75.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-76",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-76.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-77",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-77.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-78",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-78.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-79",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-79.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-80",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-80.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-81",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-81.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-82",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-82.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-83",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-83.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-84",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-84.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-85",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-85.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-86",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-86.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-87",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-87.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-88",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-88.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-89",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-89.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-90",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-90.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-91",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-91.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-92",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-92.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-93",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-93.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-94",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-94.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-95",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-95.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-96",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-96.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-97",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-97.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-98",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-98.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-99",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-99.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-100",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-100.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-101",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-101.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-102",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-102.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-103",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-103.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-104",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-104.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-105",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-105.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-106",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-106.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-107",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-107.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-108",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-108.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-109",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-109.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-110",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-110.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-111",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-111.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-112",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-112.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-113",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-113.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-114",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-114.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-115",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-115.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-116",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-116.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-117",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-117.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-118",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-118.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-119",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-119.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-120",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-120.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-121",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-121.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-122",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-122.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-123",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-123.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-124",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-124.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-125",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-125.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-126",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-126.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-127",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-127.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-128",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-128.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-129",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-129.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-130",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-130.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-131",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-131.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-132",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-132.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-133",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-133.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-134",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-134.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-135",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-135.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-136",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-136.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-137",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-137.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-138",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-138.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-139",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-139.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-140",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-140.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-141",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-141.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-142",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-142.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-143",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-143.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-144",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-144.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-145",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-145.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-146",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-146.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-147",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-147.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-148",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-148.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-149",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-149.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-150",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-150.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-151",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-151.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-152",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-152.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-153",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-153.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-154",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-154.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-155",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-155.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-156",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-156.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-157",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-157.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-158",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-158.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-159",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-159.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-160",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-160.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-161",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-161.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-162",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-162.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-163",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-163.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-164",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-164.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-165",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-165.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-166",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-166.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-167",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-167.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-168",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-168.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-169",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-169.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-170",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-170.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-171",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-171.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-172",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-172.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-173",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-173.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-174",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-174.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-175",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-175.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-176",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-176.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-177",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-177.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-178",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-178.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-179",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-179.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-180",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-180.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-181",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-181.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-182",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-182.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-183",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-183.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-184",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-184.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-185",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-185.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-186",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-186.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-187",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-187.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-188",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-188.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-189",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-189.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-190",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-190.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-191",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-191.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-192",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-192.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-193",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-193.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-194",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-194.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-195",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-195.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-196",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-196.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-197",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-197.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-198",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-198.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-199",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-199.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-200",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-200.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-201",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-201.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-202",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-202.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-203",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-203.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-204",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-204.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-205",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-205.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-206",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-206.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-207",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-207.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-208",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-208.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-209",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-209.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-210",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-210.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-211",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-211.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-212",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-212.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-213",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-213.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-214",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-214.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-215",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-215.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-216",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-216.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-217",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-217.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-218",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-218.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-219",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-219.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-220",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-220.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-221",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-221.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-222",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-222.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-223",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-223.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-224",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-224.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-225",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-225.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-226",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-226.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-227",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-227.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-228",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-228.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-229",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-229.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-230",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-230.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-231",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-231.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-232",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-232.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-233",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-233.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-234",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-234.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-235",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-235.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-236",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-236.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-237",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-237.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-238",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-238.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-239",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-239.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-240",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-240.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-241",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-241.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-242",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-242.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-243",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-243.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-244",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-244.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-245",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-245.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-246",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-246.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-247",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-247.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-248",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-248.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-249",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-249.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-250",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-250.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-251",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-251.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-252",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-252.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-253",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-253.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-254",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-254.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-255",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-255.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-256",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-256.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-257",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-257.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-258",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-258.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-259",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-259.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-260",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-260.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-261",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-261.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-262",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-262.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-263",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-263.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-264",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-264.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-265",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-265.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-266",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-266.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-267",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-267.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-268",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-268.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-269",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-269.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-270",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-270.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-271",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-271.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-272",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-272.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-273",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-273.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-274",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-274.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-275",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-275.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-276",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-276.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-277",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-277.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-278",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-278.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-279",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-279.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-280",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-280.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-281",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-281.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-282",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-282.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-283",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-283.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-284",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-284.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-285",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-285.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-286",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-286.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-287",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-287.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-288",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-288.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-289",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-289.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-290",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-290.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-291",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-291.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-292",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-292.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-293",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-293.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-294",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-294.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-295",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-295.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-296",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-296.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-297",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-297.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-298",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-298.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-299",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-299.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-300",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-300.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-301",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-301.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-302",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-302.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-303",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-303.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-304",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-304.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-305",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-305.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-306",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-306.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-307",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-307.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-308",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-308.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-309",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-309.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-310",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-310.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-311",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-311.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-312",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-312.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-313",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-313.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-314",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-314.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-315",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-315.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-316",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-316.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-317",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-317.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-318",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-318.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-319",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-319.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-320",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-320.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-321",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-321.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-322",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-322.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-323",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-323.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-324",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-324.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-325",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-325.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-326",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-326.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-327",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-327.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-328",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-328.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-329",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-329.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-330",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-330.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-331",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-331.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-332",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-332.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-333",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-333.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-334",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-334.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-335",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-335.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-336",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-336.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-337",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-337.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-338",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-338.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-339",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-339.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-340",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-340.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-341",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-341.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-342",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-342.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-343",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-343.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-344",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-344.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-345",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-345.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-346",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-346.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-347",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-347.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-348",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-348.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-349",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-349.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-350",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-350.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-351",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-351.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-352",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-352.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-353",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-353.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-354",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-354.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-355",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-355.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-356",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-356.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-357",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-357.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-358",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-358.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-359",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-359.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-360",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-360.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-361",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-361.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-362",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-362.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-363",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-363.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-364",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-364.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-365",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-365.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-366",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-366.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-367",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-367.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-368",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-368.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-369",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-369.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-370",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-370.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-371",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-371.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-372",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-372.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-373",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-373.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-374",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-374.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-375",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-375.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-376",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-376.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-377",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-377.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-378",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-378.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-379",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-379.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-380",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-380.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-381",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-381.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-382",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-382.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-383",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-383.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-384",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-384.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-385",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-385.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-386",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-386.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-387",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-387.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-388",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-388.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-389",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-389.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-390",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-390.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-391",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-391.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-392",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-392.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-393",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-393.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-394",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-394.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-395",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-395.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-396",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-396.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-397",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-397.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-398",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-398.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-399",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed/airspeed_indicator_warning_needle-399.png",
flags={"gui"},
width = 152,
height = 152
},
{ --Warning Speed indicator needles, 400 of them, each at 4km/h intervals
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-0",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-0.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-1",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-1.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-2",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-2.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-3",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-3.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-4",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-4.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-5",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-5.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-6",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-6.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-7",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-7.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-8",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-8.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-9",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-9.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-10",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-10.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-11",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-11.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-12",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-12.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-13",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-13.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-14",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-14.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-15",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-15.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-16",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-16.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-17",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-17.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-18",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-18.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-19",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-19.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-20",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-20.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-21",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-21.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-22",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-22.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-23",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-23.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-24",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-24.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-25",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-25.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-26",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-26.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-27",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-27.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-28",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-28.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-29",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-29.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-30",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-30.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-31",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-31.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-32",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-32.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-33",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-33.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-34",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-34.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-35",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-35.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-36",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-36.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-37",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-37.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-38",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-38.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-39",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-39.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-40",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-40.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-41",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-41.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-42",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-42.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-43",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-43.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-44",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-44.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-45",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-45.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-46",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-46.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-47",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-47.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-48",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-48.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-49",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-49.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-50",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-50.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-51",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-51.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-52",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-52.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-53",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-53.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-54",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-54.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-55",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-55.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-56",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-56.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-57",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-57.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-58",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-58.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-59",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-59.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-60",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-60.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-61",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-61.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-62",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-62.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-63",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-63.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-64",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-64.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-65",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-65.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-66",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-66.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-67",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-67.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-68",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-68.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-69",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-69.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-70",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-70.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-71",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-71.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-72",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-72.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-73",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-73.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-74",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-74.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-75",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-75.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-76",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-76.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-77",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-77.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-78",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-78.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-79",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-79.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-80",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-80.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-81",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-81.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-82",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-82.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-83",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-83.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-84",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-84.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-85",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-85.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-86",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-86.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-87",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-87.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-88",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-88.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-89",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-89.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-90",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-90.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-91",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-91.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-92",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-92.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-93",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-93.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-94",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-94.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-95",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-95.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-96",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-96.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-97",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-97.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-98",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-98.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-99",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-99.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-100",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-100.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-101",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-101.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-102",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-102.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-103",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-103.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-104",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-104.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-105",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-105.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-106",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-106.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-107",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-107.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-108",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-108.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-109",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-109.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-110",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-110.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-111",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-111.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-112",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-112.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-113",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-113.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-114",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-114.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-115",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-115.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-116",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-116.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-117",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-117.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-118",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-118.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-119",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-119.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-120",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-120.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-121",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-121.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-122",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-122.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-123",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-123.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-124",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-124.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-125",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-125.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-126",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-126.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-127",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-127.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-128",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-128.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-129",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-129.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-130",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-130.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-131",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-131.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-132",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-132.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-133",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-133.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-134",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-134.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-135",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-135.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-136",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-136.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-137",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-137.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-138",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-138.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-139",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-139.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-140",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-140.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-141",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-141.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-142",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-142.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-143",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-143.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-144",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-144.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-145",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-145.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-146",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-146.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-147",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-147.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-148",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-148.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-149",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-149.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-150",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-150.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-151",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-151.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-152",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-152.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-153",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-153.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-154",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-154.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-155",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-155.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-156",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-156.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-157",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-157.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-158",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-158.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-159",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-159.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-160",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-160.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-161",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-161.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-162",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-162.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-163",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-163.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-164",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-164.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-165",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-165.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-166",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-166.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-167",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-167.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-168",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-168.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-169",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-169.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-170",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-170.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-171",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-171.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-172",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-172.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-173",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-173.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-174",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-174.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-175",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-175.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-176",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-176.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-177",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-177.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-178",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-178.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-179",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-179.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-180",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-180.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-181",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-181.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-182",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-182.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-183",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-183.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-184",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-184.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-185",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-185.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-186",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-186.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-187",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-187.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-188",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-188.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-189",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-189.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-190",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-190.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-191",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-191.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-192",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-192.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-193",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-193.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-194",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-194.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-195",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-195.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-196",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-196.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-197",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-197.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-198",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-198.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-199",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-199.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-200",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-200.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-201",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-201.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-202",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-202.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-203",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-203.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-204",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-204.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-205",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-205.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-206",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-206.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-207",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-207.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-208",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-208.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-209",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-209.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-210",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-210.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-211",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-211.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-212",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-212.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-213",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-213.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-214",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-214.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-215",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-215.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-216",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-216.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-217",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-217.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-218",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-218.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-219",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-219.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-220",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-220.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-221",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-221.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-222",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-222.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-223",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-223.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-224",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-224.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-225",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-225.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-226",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-226.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-227",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-227.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-228",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-228.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-229",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-229.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-230",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-230.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-231",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-231.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-232",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-232.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-233",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-233.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-234",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-234.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-235",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-235.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-236",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-236.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-237",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-237.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-238",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-238.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-239",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-239.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-240",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-240.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-241",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-241.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-242",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-242.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-243",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-243.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-244",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-244.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-245",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-245.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-246",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-246.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-247",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-247.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-248",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-248.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-249",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-249.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-250",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-250.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-251",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-251.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-252",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-252.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-253",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-253.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-254",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-254.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-255",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-255.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-256",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-256.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-257",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-257.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-258",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-258.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-259",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-259.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-260",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-260.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-261",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-261.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-262",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-262.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-263",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-263.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-264",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-264.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-265",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-265.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-266",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-266.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-267",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-267.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-268",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-268.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-269",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-269.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-270",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-270.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-271",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-271.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-272",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-272.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-273",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-273.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-274",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-274.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-275",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-275.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-276",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-276.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-277",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-277.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-278",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-278.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-279",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-279.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-280",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-280.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-281",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-281.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-282",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-282.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-283",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-283.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-284",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-284.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-285",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-285.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-286",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-286.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-287",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-287.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-288",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-288.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-289",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-289.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-290",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-290.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-291",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-291.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-292",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-292.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-293",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-293.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-294",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-294.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-295",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-295.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-296",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-296.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-297",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-297.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-298",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-298.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-299",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-299.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-300",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-300.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-301",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-301.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-302",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-302.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-303",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-303.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-304",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-304.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-305",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-305.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-306",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-306.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-307",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-307.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-308",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-308.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-309",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-309.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-310",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-310.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-311",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-311.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-312",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-312.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-313",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-313.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-314",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-314.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-315",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-315.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-316",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-316.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-317",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-317.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-318",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-318.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-319",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-319.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-320",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-320.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-321",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-321.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-322",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-322.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-323",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-323.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-324",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-324.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-325",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-325.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-326",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-326.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-327",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-327.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-328",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-328.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-329",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-329.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-330",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-330.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-331",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-331.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-332",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-332.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-333",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-333.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-334",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-334.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-335",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-335.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-336",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-336.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-337",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-337.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-338",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-338.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-339",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-339.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-340",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-340.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-341",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-341.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-342",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-342.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-343",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-343.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-344",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-344.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-345",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-345.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-346",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-346.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-347",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-347.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-348",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-348.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-349",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-349.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-350",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-350.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-351",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-351.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-352",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-352.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-353",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-353.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-354",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-354.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-355",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-355.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-356",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-356.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-357",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-357.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-358",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-358.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-359",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-359.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-360",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-360.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-361",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-361.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-362",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-362.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-363",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-363.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-364",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-364.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-365",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-365.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-366",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-366.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-367",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-367.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-368",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-368.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-369",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-369.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-370",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-370.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-371",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-371.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-372",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-372.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-373",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-373.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-374",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-374.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-375",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-375.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-376",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-376.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-377",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-377.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-378",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-378.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-379",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-379.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-380",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-380.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-381",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-381.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-382",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-382.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-383",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-383.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-384",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-384.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-385",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-385.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-386",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-386.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-387",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-387.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-388",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-388.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-389",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-389.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-390",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-390.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-391",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-391.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-392",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-392.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-393",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-393.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-394",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-394.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-395",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-395.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-396",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-396.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-397",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-397.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-398",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-398.png",
flags={"gui"},
width = 152,
height = 152
},
{
type = "sprite",
name = "aircraft-realism-airspeed-indicator-warning-399",
filename = "__AircraftRealism__/graphics/gui/needles/airspeed_warning/airspeed_indicator_warning_needle-399.png",
flags={"gui"},
width = 152,
height = 152
}
}) |
--[[
Copyright (C) 2018 HarpyWar ([email protected])
This file is a part of the plugin https://github.com/HarpyWar/ts3plugin_mybadges
]]--
--
-- Testmodule initialisation, this script is called via autoload mechanism when the
-- TeamSpeak 3 client starts.
--
local MODULE_NAME = "mybadges"
require("ts3init") -- Required for ts3RegisterModule
require(MODULE_NAME .. "/helper")
require(MODULE_NAME .. "/events") -- Forwarded TeamSpeak 3 callbacks
require(MODULE_NAME .. "/badgelist")
require(MODULE_NAME .. "/command") -- Some functions callable from TS3 client chat input
-- Initialize menus. Optional function, if not using menus do not implement this.
-- This function is called automatically by the TeamSpeak client.
--
local function createMenus(moduleMenuItemID)
-- Store value added to menuIDs to be able to calculate menuIDs for this module again for setPluginMenuEnabled (see demo.lua)
mybadges_events.moduleMenuItemID = moduleMenuItemID
local menus ={}
for i = 1, #badgelist do
print(badgelist[i][1])
-- numbers in menu for badges (0. Overwolf, 1. ..)
local idx = i-mybadges_offset
if idx < 0 then
idx = ""
else
idx = idx .. ". "
end
table.insert(menus, {ts3defs.PluginMenuType.PLUGIN_MENU_TYPE_GLOBAL, i, idx .. badgelist[i][2], MODULE_NAME .. "/icons/" .. badgelist[i][3]} )
end
-- load badges from file
mybadges_helper.loadBadges()
return menus
end
-- Define which callbacks you want to receive in your module. Callbacks not mentioned
-- here will not be called. To avoid function name collisions, your callbacks should
-- be put into an own package.
local registeredEvents = {
createMenus = createMenus,
onConnectStatusChangeEvent = mybadges_events.onConnectStatusChangeEvent,
onMenuItemEvent = mybadges_events.onMenuItemEvent
}
-- Register your callback functions with a unique module name.
ts3RegisterModule(MODULE_NAME, registeredEvents)
|
--Plus d'infos ici : https://www.youtube.com/watch?v=INQPAgFHHA4
p = peripheral.wrap("top")
p.clear()
p.setTextScale(5)
text = {
"A",
"Y",
"R",
"O",
"B",
"O",
"T"
}
while true do
p.clear()
for k,v in ipairs(text) do
p.setCursorPos(1,8)
p.write(v)
os.sleep(0.5)
p.scroll(1)
end
os.sleep(0.5)
for i=1,7 do
p.scroll(1)
os.sleep(0.5)
end
end
|
--[[
JsonParser.lua
Usage:
The function ParseJSON (jsonString) accepts a
string representation of a JSON object or array
and returns the object or array as a Lua table
with the same structure. Individual properties
can be referenced using either the dot notation
or the array notation.
Notes:
All null values in the original JSON stream will
be stored in the output table as JsonParser.NIL.
This is a necessary convention, because Lua
tables cannot store nil values and it may be
desirable to have a stored null value versus
not having the key present.
Requires:
Newtonsoft.Json
--]]
luanet.load_assembly("System");
luanet.load_assembly("Newtonsoft.Json");
luanet.load_assembly("log4net");
JsonParser = {}
JsonParser.__index = JsonParser
JsonParser.NIL = {};
JsonParser.Types = {}
JsonParser.Types["StringReader"] = luanet.import_type("System.IO.StringReader");
JsonParser.Types["JsonToken"] = luanet.import_type("Newtonsoft.Json.JsonToken");
JsonParser.Types["JsonTextReader"] = luanet.import_type("Newtonsoft.Json.JsonTextReader");
JsonParser.rootLogger = "AtlasSystems.Addons.SierraServerAddon"
JsonParser.Log = luanet.import_type("log4net.LogManager").GetLogger(JsonParser.rootLogger);
function JsonParser:ParseJSON (jsonString)
local stringReader = JsonParser.Types["StringReader"](jsonString);
local reader = JsonParser.Types["JsonTextReader"](stringReader);
local outputTable = "";
if (reader:Read()) then
if (reader.TokenType == JsonParser.Types["JsonToken"].StartObject) then
outputTable = JsonParser:BuildFromJsonObject(reader);
elseif (reader.TokenType == JsonParser.Types["JsonToken"].StartArray) then
outputTable = JsonParser:BuildFromJsonArray(reader);
elseif (jsonString == nil) then
outputTable = "";
else
outputTable = jsonString;
end;
end;
return outputTable;
end;
function JsonParser:BuildFromJsonObject (reader)
local array = {};
while (reader:Read()) do
if (reader.TokenType == JsonParser.Types["JsonToken"].EndObject) then
return array;
end;
if (reader.TokenType == JsonParser.Types["JsonToken"].PropertyName) then
local propertyName = reader.Value;
if (reader:Read()) then
if (reader.TokenType == JsonParser.Types["JsonToken"].StartObject) then
array[propertyName] = JsonParser:BuildFromJsonObject(reader);
elseif (reader.TokenType == JsonParser.Types["JsonToken"].StartArray) then
array[propertyName] = JsonParser:BuildFromJsonArray(reader);
elseif (reader.Value == nil) then
array[propertyName] = JsonParser.NIL;
else
array[propertyName] = reader.Value;
end;
end;
end;
end;
return array;
end;
function JsonParser:BuildFromJsonArray (reader)
local array = {};
while (reader:Read()) do
if (reader.TokenType == JsonParser.Types["JsonToken"].EndArray) then
return array;
elseif (reader.TokenType == JsonParser.Types["JsonToken"].StartArray) then
table.insert(array, JsonParser:BuildFromJsonArray(reader));
elseif (reader.TokenType == JsonParser.Types["JsonToken"].StartObject) then
table.insert(array, JsonParser:BuildFromJsonObject(reader));
elseif (reader.Value == nil) then
table.insert(array, JsonParser.NIL);
else
table.insert(array, reader.Value);
end;
end;
return array;
end;
|
return {
desc_get = "",
name = "",
init_effect = "",
time = 2,
color = "red",
picture = "",
desc = "",
stack = 1,
id = 14153,
icon = 14153,
last_effect = "",
effect_list = {
{
type = "BattleBuffCleanse",
trigger = {
"onAttach"
},
arg_list = {
buff_id_list = {
14152
}
}
}
}
}
|
--[[
Abstract base class for gamestates
Derive your class from it, define type and implement
callbacks to make your own gamestate for the flow.
Static attributes
type string type name used for transition queries
Instance external references
app gameapp game app instance
It will be set in gameapp:register_gamestates.
Methods
on_enter () enter callback
on_exit () exit callback
update () update callback
render () render callback
--]]
local gamestate = new_class()
gamestate.type = ':undefined'
function gamestate:_init()
self.app = nil
end
function gamestate:on_enter()
end
function gamestate:on_exit()
end
function gamestate:update()
end
function gamestate:render()
end
function gamestate:render_post()
end
return gamestate
|
local dragging = false;
function onInit()
--if User.isHost() then --make this usable by everyone, not just host.
-- set the mouse to a hand when over this control
setHoverCursor("hand");
-- register menu items
registerMenuItem("End of Turn Actions", "deletetoken", 4);
--end
end
function onButtonPress()
PartySheetManager.openPartySheet();
end
function onDrop(x, y, draginfo)
PartySheetManager.onDrop(x, y, draginfo);
end
function onDragStart(button, x, y, draginfo)
dragging = false;
return onDrag(button, x, y, draginfo);
end
function onDrag(button, x, y, draginfo)
if User.isHost() then
if not dragging then
draginfo.setType("partyidentity");
draginfo.setTokenData("ruleset/tokens/party.png");
draginfo.setShortcutData("partysheet", "partysheet");
draginfo.setDatabaseNode("partysheet");
draginfo.setStringData(PartySheetManager.getPartySheetName());
local base = draginfo.createBaseData();
base.setType("token");
base.setTokenData("ruleset/tokens/party.png");
dragging = true;
return true;
end
end
end
function onDragEnd(draginfo)
dragging = false;
end
function onMenuSelection(selection)
if User.isHost() then
if selection == 4 then
PartySheetManager.endOfTurn();
end
end
end |
---@class Router
Router = setmetatable({}, Router)
Router.__call = function()
return "Router"
end
Router.__index = Router
function Router.new()
local _Router = {
Paths = {},
Middlewares = {}
}
return setmetatable(_Router, Router)
end
---@param path string
---@param handler fun(req: Request, res: Response): void
function Router:Get(path, handler)
local parsed = PatternToRoute(path)
table.insert(self.Paths, {
method = "GET",
path = parsed.route,
handler = handler,
pathData = parsed,
_path = parsed._route,
})
end
---@param path string
---@param handler fun(req: Request, res: Response): void
function Router:Post(path, handler)
local parsed = PatternToRoute(path)
table.insert(self.Paths, {
method = "POST",
path = parsed.route,
handler = handler,
pathData = parsed,
_path = parsed._route,
})
end
---@param middleware fun(req: Request, res: Response, next: fun(): void)
function Router:AddMiddleware(middleware)
table.insert(self.Middlewares, middleware)
end
|
return {
version = "1.1",
luaversion = "5.1",
tiledversion = "2018.01.23",
orientation = "orthogonal",
renderorder = "right-down",
width = 40,
height = 24,
tilewidth = 16,
tileheight = 16,
nextobjectid = 3,
properties = {
["collidable"] = "true"
},
tilesets = {
{
name = "Telhado",
firstgid = 1,
filename = "telhado.tsx",
tilewidth = 16,
tileheight = 16,
spacing = 0,
margin = 0,
image = "../img/Telhado.png",
imagewidth = 640,
imageheight = 360,
tileoffset = {
x = 0,
y = 0
},
grid = {
orientation = "orthogonal",
width = 16,
height = 16
},
properties = {},
terrains = {},
tilecount = 880,
tiles = {}
},
{
name = "objetos",
firstgid = 881,
filename = "objetos.tsx",
tilewidth = 192,
tileheight = 192,
spacing = 0,
margin = 0,
image = "../img/tileset.png",
imagewidth = 5184,
imageheight = 192,
tileoffset = {
x = 0,
y = 0
},
grid = {
orientation = "orthogonal",
width = 192,
height = 192
},
properties = {},
terrains = {},
tilecount = 27,
tiles = {}
},
{
name = "GGJ_background",
firstgid = 908,
filename = "escritorio.tsx",
tilewidth = 16,
tileheight = 16,
spacing = 0,
margin = 0,
image = "../img/atlas01.png",
imagewidth = 640,
imageheight = 360,
tileoffset = {
x = 0,
y = 0
},
grid = {
orientation = "orthogonal",
width = 16,
height = 16
},
properties = {},
terrains = {
{
name = "Novo Terreno",
tile = 202,
properties = {}
}
},
tilecount = 880,
tiles = {
{
id = 383,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 0,
y = 0.0909091,
width = 4.81818,
height = 15.9091,
rotation = 0,
visible = true,
properties = {}
},
{
id = 2,
name = "",
type = "",
shape = "rectangle",
x = 0.181818,
y = 0,
width = 15.8182,
height = 5,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 384,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 0,
y = 0.0909091,
width = 16,
height = 4.81818,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 385,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 0,
y = 0.0880682,
width = 15.9091,
height = 4.91761,
rotation = 0,
visible = true,
properties = {}
},
{
id = 2,
name = "",
type = "",
shape = "rectangle",
x = 11.0085,
y = 0.122159,
width = 4.94034,
height = 15.8523,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 423,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = -0.0909091,
y = 0,
width = 5.09091,
height = 15.9091,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 424,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 0.193182,
y = 0.159091,
width = 16.0568,
height = 15.7045,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 425,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 11,
y = 0,
width = 4.91304,
height = 16.0435,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 463,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 3,
name = "",
type = "",
shape = "rectangle",
x = 0.03125,
y = -0.03125,
width = 4.96875,
height = 15.9688,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 465,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 10.9565,
y = 0,
width = 5.04348,
height = 15.9565,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 505,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 11,
y = 0,
width = 5.04348,
height = 15.9565,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 545,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = 11.0435,
y = 0,
width = 5,
height = 15.913,
rotation = 0,
visible = true,
properties = {}
},
{
id = 2,
name = "",
type = "",
shape = "rectangle",
x = 0,
y = 10.9375,
width = 15.8125,
height = 4.9375,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 584,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = -0.25,
y = 0.125,
width = 16.125,
height = 15.875,
rotation = 0,
visible = true,
properties = {}
}
}
}
},
{
id = 585,
objectGroup = {
type = "objectgroup",
name = "",
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "index",
properties = {},
objects = {
{
id = 1,
name = "",
type = "",
shape = "rectangle",
x = -0.375,
y = -0.375,
width = 16.25,
height = 16.375,
rotation = 0,
visible = true,
properties = {}
}
}
}
}
}
}
},
layers = {
{
type = "tilelayer",
name = "tileLayerGround",
x = 0,
y = 0,
width = 40,
height = 24,
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
properties = {},
encoding = "lua",
data = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200,
201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320,
321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360,
361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400,
401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440,
441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480,
481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520,
521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560,
561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600,
601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640,
641, 642, 643, 644, 645, 646, 647, 648, 649, 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675, 676, 677, 678, 679, 680,
681, 682, 683, 684, 685, 686, 687, 688, 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 717, 718, 719, 720,
721, 722, 723, 724, 725, 726, 727, 728, 729, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760,
761, 762, 763, 764, 765, 766, 767, 768, 769, 770, 771, 772, 773, 774, 775, 776, 777, 778, 779, 780, 781, 782, 783, 784, 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800,
801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840,
841, 842, 843, 844, 845, 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880,
845, 845, 845, 845, 845, 846, 850, 850, 850, 810, 731, 732, 733, 734, 735, 741, 742, 743, 744, 745, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 850, 850, 850, 850, 755, 756, 757, 758, 759, 760
}
},
{
type = "tilelayer",
name = "tileLayerWalls",
x = 0,
y = 0,
width = 40,
height = 24,
visible = true,
opacity = 1,
offsetx = 0,
offsety = 0,
properties = {
["collidable"] = "true"
},
encoding = "lua",
data = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 911, 911, 911, 0, 0, 0, 0, 0, 0, 0, 1152, 1152, 1152, 1152, 0, 0, 0, 0, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1152, 0, 0, 1152, 0, 0, 0, 0, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 911, 0, 0, 1152, 1152, 1152, 1152, 1152, 0, 1152, 1152, 0, 0, 1152, 0, 0, 0, 0, 911, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 911, 911, 1152, 0, 0, 1152, 1152, 1152, 1152, 1152, 0, 0, 1152, 1152, 1152, 0, 0, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 0, 0, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1152, 1152, 1152, 1152, 1152, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 911, 911, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 0, 0, 911, 0, 0, 0, 0, 0, 0, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 911, 911, 911, 911, 911, 911, 911, 911, 911, 911, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}
},
{
type = "objectgroup",
name = "objLayer",
visible = false,
opacity = 1,
offsetx = 0,
offsety = 0,
draworder = "topdown",
properties = {},
objects = {
{
id = 1,
name = "Player",
type = "",
shape = "rectangle",
x = 245.667,
y = 214.334,
width = 16,
height = 16,
rotation = 0,
gid = 1087,
visible = true,
properties = {}
},
{
id = 2,
name = "triggerEvent",
type = "",
shape = "rectangle",
x = 398.667,
y = 253.833,
width = 34,
height = 50.1667,
rotation = 0,
gid = 1126,
visible = true,
properties = {
["runLuaChain"] = "Say('Agent Linda: We would not have been able to save everyone from the virus LT03 if it was not for your bravery.'),\nSay('This disease is affecting terribly the whole country and the BRND Pharmaceutics wanted to profit from this disaster.'),\nSay('But not anymore, thanks to you. Now the secret formula behind the antivirus is out for the whole world to use!!!'),\nEndGame()",
["type"] = "trigger"
}
}
}
}
}
}
|
--[[
A loosely based Material UI module
mui-slider.lua : This is for creating horizontal sliders (0..100 in percent or 0.20 = 20%).
The MIT License (MIT)
Copyright (C) 2016 Anedix Technologies, Inc. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
For other software and binaries included in this module see their licenses.
The license and the software must remain in full when copying or distributing.
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 THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]--
-- mui
local muiData = require( "materialui.mui-data" )
local mathFloor = math.floor
local mathMod = math.fmod
local mathABS = math.abs
local M = muiData.M -- {} -- for module array/table
function M.createSlider(options)
M.newSlider(options)
end
function M.newSlider(options)
if options == nil then return end
local x,y = 160, 240
if options.x ~= nil then
x = options.x
end
if options.y ~= nil then
y = options.y
end
if options.width == nil then
options.width = M.getScaleVal(200)
end
if options.height == nil then
options.height = M.getScaleVal(4)
end
if options.position == nil then
options.position = "horizontal"
end
if options.radius == nil then
options.radius = M.getScaleVal(15)
end
if options.color == nil then
options.color = { 1, 0, 0, 1 }
end
if options.colorOff == nil then
options.colorOff = { 1, 1, 1, 1 }
end
muiData.widgetDict[options.name] = {}
muiData.widgetDict[options.name].name = options.name
muiData.widgetDict[options.name]["type"] = "Slider"
muiData.widgetDict[options.name]["touching"] = false
local circleWidth = options.radius * 2.5
-- fix x to be correct
x = x - options.width * 0.5
if options.position == "horizontal" then
muiData.widgetDict[options.name]["sliderrect"] = display.newRect( x + options.width * 0.5, y, options.width, circleWidth)
else
muiData.widgetDict[options.name]["sliderrect"] = display.newRect( 0, 0, circleWidth, options.height + (circleWidth + (circleWidth * 0.5)))
end
muiData.widgetDict[options.name]["sliderrect"]:setStrokeColor( unpack(options.color) )
muiData.widgetDict[options.name]["sliderrect"].strokeWidth = 0
muiData.widgetDict[options.name]["sliderrect"].name = options.name
muiData.widgetDict[options.name]["circleWidth"] = circleWidth
muiData.widgetDict[options.name]["circleRadius"] = options.radius
muiData.widgetDict[options.name]["container"] = display.newGroup()
muiData.widgetDict[options.name]["container"].x = x
muiData.widgetDict[options.name]["container"].y = y
--muiData.widgetDict[options.name]["container"]:translate( x, y ) -- center the container
if options.scrollView ~= nil then
muiData.widgetDict[options.name]["scrollView"] = options.scrollView
muiData.widgetDict[options.name]["scrollView"]:insert( muiData.widgetDict[options.name]["container"] )
end
if options.parent ~= nil then
muiData.widgetDict[options.name]["parent"] = options.parent
muiData.widgetDict[options.name]["parent"]:insert( muiData.widgetDict[options.name]["container"] )
end
-- the bar
if options.position == "horizontal" then
muiData.widgetDict[options.name]["sliderbar"] = display.newLine( 0, 0, options.width, 0 )
else
muiData.widgetDict[options.name]["sliderbar"] = display.newLine( 0, 0, 0, options.height )
end
muiData.widgetDict[options.name]["sliderbar"]:setStrokeColor( unpack(options.color) )
muiData.widgetDict[options.name]["sliderbar"].strokeWidth = options.height
muiData.widgetDict[options.name]["sliderbar"].isVisible = true
-- the circle which line goes thru center (vertical|horizontal)
muiData.widgetDict[options.name]["slidercircle"] = display.newCircle( 0, options.height * 0.5, options.radius )
muiData.widgetDict[options.name]["slidercircle"]:setStrokeColor( unpack(options.color) )
muiData.widgetDict[options.name]["slidercircle"]:setFillColor( unpack(options.colorOff) )
if options.position == "horizontal" then
muiData.widgetDict[options.name]["slidercircle"].strokeWidth = options.height
else
muiData.widgetDict[options.name]["slidercircle"].strokeWidth = options.width
end
--muiData.widgetDict[options.name]["container"]:insert( muiData.widgetDict[options.name]["sliderrect"] )
muiData.widgetDict[options.name]["container"]:insert( muiData.widgetDict[options.name]["sliderbar"] )
muiData.widgetDict[options.name]["container"]:insert( muiData.widgetDict[options.name]["slidercircle"] )
muiData.widgetDict[options.name]["value"] = 0
if options.startPercent ~= nil and options.startPercent > -1 then
local event = {}
local percent = options.startPercent / 100
local diffX = muiData.widgetDict[options.name]["container"].x - muiData.widgetDict[options.name]["container"].contentWidth
event.x = x + mathABS(diffX * percent)
muiData.widgetDict[options.name]["value"] = percent
M.sliderPercentComplete(event, options)
end
local sliderrect = muiData.widgetDict[options.name]["sliderrect"]
sliderrect.muiOptions = options
sliderrect:addEventListener( "touch", M.sliderTouch )
end
function M.getSliderProperty(widgetName, propertyName)
local data = nil
if widgetName == nil or propertyName == nil then return data end
if propertyName == "object" then
data = muiData.widgetDict[widgetName]["container"] -- x,y movement
elseif propertyName == "value" then
data = muiData.widgetDict[widgetName]["value"] -- clickable area
elseif propertyName == "layer_1" then
data = muiData.widgetDict[widgetName]["sliderrect"] -- clickable area
elseif propertyName == "layer_2" then
data = muiData.widgetDict[widgetName]["sliderbar"] -- progress indicator
elseif propertyName == "layer_3" then
data = muiData.widgetDict[widgetName]["slidercircle"] -- draggable circle
end
return data
end
function M.sliderTouch (event)
local options = nil
if event.target ~= nil then
options = event.target.muiOptions
end
if muiData.dialogInUse == true and options.dialogName ~= nil then return end
if options == nil then return end
M.addBaseEventParameters(event, options)
if ( event.phase == "began" ) then
-- set touch focus
display.getCurrentStage():setFocus( event.target )
event.target.isFocus = true
muiData.interceptEventHandler = M.sliderTouch
if muiData.interceptOptions == nil then
muiData.interceptOptions = options
end
M.updateUI(event)
if muiData.touching == false then
muiData.widgetDict[options.name]["slidercircle"]:setFillColor( unpack(options.color) )
muiData.touching = true
if options.touchpoint ~= nil and options.touchpoint == true and false then
muiData.widgetDict[options.basename]["radio"][options.name]["myCircle"].x = event.x - muiData.widgetDict[options.basename]["radio"][options.name]["mygroup"].x
muiData.widgetDict[options.basename]["radio"][options.name]["myCircle"].y = event.y - muiData.widgetDict[options.basename]["radio"][options.name]["mygroup"].y
--muiData.widgetDict[options.basename]["radio"][options.name]["myCircle"].isVisible = true
--muiData.widgetDict[options.basename]["radio"][options.name].myCircleTrans = transition.to( muiData.widgetDict[options.basename]["radio"][options.name]["myCircle"], { time=300,alpha=0.2, xScale=scaleFactor, yScale=scaleFactor, transition=easing.inOutCirc, onComplete=M.subtleRadius } )
end
end
transition.to(muiData.widgetDict[options.name]["slidercircle"],{time=300, xScale=1.5, yScale=1.5, transition=easing.inOutCubic})
elseif ( event.phase == "moved" ) then
if muiData.widgetDict[options.name]["slidercircle"].xScale == 1 then
transition.to(muiData.widgetDict[options.name]["slidercircle"],{time=300, xScale=1.5, yScale=1.5, transition=easing.inOutCubic})
end
-- update bar with color (up/down/left/right)
M.sliderPercentComplete(event, options)
-- call user-defined move method
if options.callBackMove ~= nil then
event.target.name = options.name
assert( options.callBackMove )(event)
end
elseif ( event.phase == "ended" ) then
muiData.currentTargetName = nil
transition.to(muiData.widgetDict[options.name]["slidercircle"],{time=300, xScale=1, yScale=1, transition=easing.inOutCubic})
if muiData.interceptMoved == false then
event.target = muiData.widgetDict[options.name]["slidercircle"]
event.callBackData = options.callBackData
if options.callBack ~= nil then
event.target.name = options.name
assert( options.callBack )(event)
end
end
muiData.interceptEventHandler = nil
muiData.interceptOptions = nil
muiData.interceptMoved = false
muiData.touching = false
-- reset focus
display.getCurrentStage():setFocus( nil )
event.target.isFocus = false
M.sliderPercentComplete(event, options)
end
end
function M.sliderPercentComplete(event, options)
if event == nil or options == nil then return end
local circleRadius = muiData.widgetDict[options.name]["circleRadius"]
if options.position == "horizontal" then
local dx = event.x - muiData.widgetDict[options.name]["container"].x
if dx > circleRadius and dx <= (muiData.widgetDict[options.name]["sliderbar"].contentWidth - circleRadius) then
-- get percent
local percentComplete = dx / (muiData.widgetDict[options.name]["sliderbar"].contentWidth - circleRadius)
if percentComplete > -1 and percentComplete < 2 then
if percentComplete >= 0 and percentComplete <= 1 then
muiData.widgetDict[options.name]["slidercircle"].x = dx
end
if percentComplete >= 1 then percentComplete = 1 end
if percentComplete < 0 then percentComplete = 0 end
muiData.widgetDict[options.name]["value"] = percentComplete
if percentComplete == 0 then
muiData.widgetDict[options.name]["slidercircle"]:setFillColor( unpack(options.colorOff) )
else
muiData.widgetDict[options.name]["slidercircle"]:setFillColor( unpack(options.color) )
end
end
else
if dx < circleRadius then
muiData.widgetDict[options.name]["slidercircle"].x = circleRadius
muiData.widgetDict[options.name]["slidercircle"]:setFillColor( unpack(options.colorOff) )
muiData.widgetDict[options.name]["value"] = 0
else
muiData.widgetDict[options.name]["slidercircle"].x = muiData.widgetDict[options.name]["sliderbar"].contentWidth - circleRadius
muiData.widgetDict[options.name]["value"] = 1
end
end
M.setEventParameter(event, "muiTargetValue", muiData.widgetDict[options.name]["value"])
M.setEventParameter(event, "muiTarget", muiData.widgetDict[options.name]["slidercircle"])
end
end
function M.sliderCallBackMove( event )
local muiTarget = M.getEventParameter(event, "muiTarget")
local muiTargetValue = M.getEventParameter(event, "muiTargetValue")
if event.target ~= nil then
print("sliderCallBackMove is: "..muiTargetValue)
end
end
function M.sliderCallBack( event )
local muiTarget = M.getEventParameter(event, "muiTarget")
local muiTargetValue = M.getEventParameter(event, "muiTargetValue")
if muiTarget ~= nil then
print("percentComplete is: "..muiTargetValue)
end
end
function M.removeWidgetSlider(widgetName)
M.removeSlider(widgetName)
end
function M.removeSlider(widgetName)
if widgetName == nil then
return
end
if muiData.widgetDict[widgetName] == nil then return end
muiData.widgetDict[widgetName]["sliderrect"]:removeEventListener("touch", M.sliderTouch)
muiData.widgetDict[widgetName]["slidercircle"]:removeSelf()
muiData.widgetDict[widgetName]["slidercircle"] = nil
muiData.widgetDict[widgetName]["sliderbar"]:removeSelf()
muiData.widgetDict[widgetName]["sliderbar"] = nil
muiData.widgetDict[widgetName]["sliderrect"]:removeSelf()
muiData.widgetDict[widgetName]["sliderrect"] = nil
muiData.widgetDict[widgetName]["container"]:removeSelf()
muiData.widgetDict[widgetName]["container"] = nil
muiData.widgetDict[widgetName] = nil
end
return M
|
object_tangible_loot_npc_loot_spice_droid_lube_generic = object_tangible_loot_npc_loot_shared_spice_droid_lube_generic:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_spice_droid_lube_generic, "object/tangible/loot/npc/loot/spice_droid_lube_generic.iff")
|
slot2 = "MJAnGangRightCcsPane"
MJAnGangRightCcsPane = class(slot1)
MJAnGangRightCcsPane.onCreationComplete = function (slot0)
slot4 = BaseMJCardGroupPane
ClassUtil.extends(slot2, slot0)
end
return
|
-----------------------------------
-- Area: Cloister of Storms
-- NPC: Lightning Protocrystal
-- Involved in Quests: Trial by Lightning
-- !pos 534.5 -13 492 202
-----------------------------------
require("scripts/globals/missions")
local ID = require("scripts/zones/Cloister_of_Storms/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/quests")
require("scripts/globals/bcnm")
function onTrade(player, npc, trade)
TradeBCNM(player, npc, trade)
end
function onTrigger(player, npc)
if (player:getCurrentMission(ASA) == tpz.mission.id.asa.SUGAR_COATED_DIRECTIVE and player:getCharVar("ASA4_Violet") == 1) then
player:startEvent(2)
elseif (EventTriggerBCNM(player, npc)) then
return
else
player:messageSpecial(ID.text.PROTOCRYSTAL)
end
end
function onEventUpdate(player, csid, option, extras)
EventUpdateBCNM(player, csid, option, extras)
end
-----------------------------------
-- onEventFinish Action
-----------------------------------
function onEventFinish(player, csid, option)
-- printf("onFinish CSID: %u", csid)
-- printf("onFinish RESULT: %u", option)
if (csid==2) then
player:delKeyItem(tpz.ki.DOMINAS_VIOLET_SEAL)
player:addKeyItem(tpz.ki.VIOLET_COUNTERSEAL)
player:messageSpecial(ID.text.KEYITEM_OBTAINED, tpz.ki.VIOLET_COUNTERSEAL)
player:setCharVar("ASA4_Violet", "2")
elseif (EventFinishBCNM(player, csid, option)) then
return
end
end
|
data.raw["locomotive"]["locomotive"].burner.fuel_categories = {"chemical","rocket"}
data.raw["locomotive"]["locomotive"].burner.fuel_category = nil
data.raw["furnace"]["stone-furnace"].energy_source.fuel_categories = {"chemical","rocket"}
data.raw["furnace"]["stone-furnace"].energy_source.fuel_category = nil
data.raw["furnace"]["steel-furnace"].energy_source.fuel_categories = {"chemical","rocket"}
data.raw["furnace"]["steel-furnace"].energy_source.fuel_category = nil
data.raw["boiler"]["boiler"].energy_source.fuel_categories = {"chemical","rocket"}
data.raw["boiler"]["boiler"].energy_source.fuel_category = nil
data.raw["inserter"]["burner-inserter"].energy_source.fuel_categories = {"chemical","rocket"}
data.raw["inserter"]["burner-inserter"].energy_source.fuel_category = nil
data.raw["car"]["car"].burner.fuel_categories = {"chemical","rocket"}
data.raw["car"]["car"].burner.fuel_category = nil
|
local type=type;local a={}for b=0,16 do a[2^b]=string.format("%x",b)end;local function c(d,e,f,g)local h,i=d.getSize()for j=1,i do e.setCursorPos(1,j)if f then e.blit(f(j))end end;local k,j=d.getCursorPos()e.setCursorPos(k,j-g)if d.getCursorBlink then e.setCursorBlink(d.getCursorBlink())end;e.setTextColour(d.getTextColour())e.setBackgroundColour(d.getBackgroundColour())if d.getPaletteColour and e.getPaletteColour then for b=0,15 do e.setPaletteColour(2^b,d.getPaletteColour(2^b))end end end;function create(l)if not l then l=term.current()end;local m={}local n={}local o={}local p={}local q,r=1,1;local s=0;local t=r;local u=false;local v="0"local w="f"local x,i=l.getSize()local y=l.isColor()local z=100;local A,B=true,nil;local C=0;local D={}if term.native().getPaletteColour then for b=0,15 do local E=2^b;p[E]={term.native().getPaletteColour(E)}end end;local function F()if z>-1 then while s>z do table.remove(m,1)table.remove(n,1)table.remove(o,1)s=s-1 end end;t=s+r end;function D.write(G)if B then return B.write(G)end;G=tostring(G)if A then l.write(G)end;local H=q;if r>i or r<1 then q=H+#G;return end;if H+#G<=1 or H>x then q=H+#G;return elseif H<1 then G=string.sub(G,-H+2)H=1 end;local I=m[t]local J=n[t]local K=o[t]local L=H-1;local M=math.min(1,L)local N=H+#G;local O=x;local P,Q=string.sub,string.rep;m[t]=P(I,M,L)..G..P(I,N,O)n[t]=P(J,M,L)..Q(v,#G)..P(J,N,O)o[t]=P(K,M,L)..Q(w,#G)..P(K,N,O)q=H+#G end;function D.blit(G,R,S)if B then return B.blit(G,R,S)end;if type(G)~="string"then error("bad argument #1 (expected string, got "..type(G)..")",2)end;if type(R)~="string"then error("bad argument #2 (expected string, got "..type(R)..")",2)end;if type(S)~="string"then error("bad argument #3 (expected string, got "..type(S)..")",2)end;if#R~=#G or#S~=#G then error("Arguments must be the same length",2)end;if A then l.blit(G,R,S)end;local H=q;if r>i or r<1 then q=H+#G;return end;if H+#G<=1 then q=H+#G;return elseif H<1 then G=string.sub(G,math.abs(q)+2)R=string.sub(R,math.abs(q)+2)S=string.sub(S,math.abs(q)+2)q=1 elseif H>x then q=H+#G;return else G=G end;local I=m[t]local J=n[t]local K=o[t]local L=q-1;local M=math.min(1,L)local N=q+#G;local O=x;local P=string.sub;m[t]=P(I,M,L)..G..P(I,N,O)n[t]=P(J,M,L)..R..P(J,N,O)o[t]=P(K,M,L)..S..P(K,N,O)q=H+#G end;function D.clear()if B then return B.clear()end;if C>0 then return D.beginPrivateMode().clear()end;local T=(" "):rep(x)local U=v:rep(x)local V=w:rep(x)for b=s+1,i+s do m[b]=T;n[b]=U;o[b]=V end;if A then return l.clear()end end;function D.clearLine()if B then return B.clearLine()end;if r>i or r<1 then return end;m[t]=string.rep(" ",x)n[t]=string.rep(v,x)o[t]=string.rep(w,x)if A then return l.clearLine()end end;function D.getCursorPos()if B then return B.getCursorPos()end;return q,r end;function D.setCursorPos(k,j)if B then return B.setCursorPos(k,j)end;if type(k)~="number"then error("bad argument #1 (expected number, got "..type(k)..")",2)end;if type(j)~="number"then error("bad argument #2 (expected number, got "..type(j)..")",2)end;local W=math.floor(j)if W>=1 and W<C then return D.beginPrivateMode().setCursorPos(k,j)end;q=math.floor(k)r=W;t=W+s;if A then return l.setCursorPos(k,j)end end;function D.setCursorBlink(X)if B then return B.setCursorBlink(X)end;if type(X)~="boolean"then error("bad argument #1 (expected boolean, got "..type(X)..")",2)end;u=X;if A then return l.setCursorBlink(X)end end;function D.getCursorBlink()if B then return B.getCursorBlink()end;return u end;function D.getSize()if B then return B.getSize()end;return x,i end;function D.scroll(Y)if B then return B.scroll(Y)end;if type(Y)~="number"then error("bad argument #1 (expected number, got "..type(Y)..")",2)end;if Y>0 then s=s+Y;for b=i+s-Y+1,i+s do m[b]=string.rep(" ",x)n[b]=string.rep(v,x)o[b]=string.rep(w,x)end;F()elseif Y<0 then for b=i+t,math.abs(Y)+1+t,-1 do if m[b+Y]then m[b]=m[b+Y]n[b]=n[b+Y]o[b]=o[b+Y]end end;for b=t,math.abs(Y)+t do m[b]=string.rep(" ",x)n[b]=string.rep(v,x)o[b]=string.rep(w,x)end end;C=C-Y;if A then return l.scroll(Y)end end;function D.setTextColour(Z)if B then return B.setTextColour(Z)end;if type(Z)~="number"then error("bad argument #1 (expected number, got "..type(Z)..")",2)end;v=a[Z]or error("Invalid colour (got "..Z..")",2)if A then return l.setTextColour(Z)end end;D.setTextColor=D.setTextColour;function D.setBackgroundColour(Z)if B then return B.setBackgroundColour(Z)end;if type(Z)~="number"then error("bad argument #1 (expected number, got "..type(Z)..")",2)end;w=a[Z]or error("Invalid colour (got "..Z..")",2)if A then return l.setBackgroundColour(Z)end end;D.setBackgroundColor=D.setBackgroundColour;function D.isColour()if B then return B.isColour()end;return y==true end;D.isColor=D.isColour;function D.getTextColour()if B then return B.getTextColour()end;return 2^tonumber(v,16)end;D.getTextColor=D.getTextColour;function D.getBackgroundColour()if B then return B.getBackgroundColour()end;return 2^tonumber(w,16)end;D.getBackgroundColor=D.getBackgroundColour;if l.getPaletteColour then function D.setPaletteColour(_,a0,a1,X)if B then return B.setPaletteColour(_,a0,a1,X)end;local a2=p[_]if not a2 then error("Invalid colour (got "..tostring(_)..")",2)end;if type(a0)=="number"and a1==nil and X==nil then a2[1],a2[2],a2[3]=colours.rgb8(a0)else if type(a0)~="number"then error("bad argument #2 (expected number, got "..type(a0)..")",2)end;if type(a1)~="number"then error("bad argument #3 (expected number, got "..type(a1)..")",2)end;if type(X)~="number"then error("bad argument #4 (expected number, got "..type(X)..")",2)end;a2[1],a2[2],a2[3]=a0,a1,X end;if A then return l.setPaletteColour(_,a0,a1,X)end end;D.setPaletteColor=D.setPaletteColour;function D.getPaletteColour(_)if B then return B.getPaletteColour(_)end;local a2=p[_]if not a2 then error("Invalid colour (got "..tostring(_)..")",2)end;return a2[1],a2[2],a2[3]end;D.getPaletteColor=D.getPaletteColour end;function D.draw(a3,a4)if B then return end;local s=s+(a3 or 0)c(D,l,function(b)local a5=s+b;return m[a5],n[a5],o[a5]end,a3)end;function D.bubble(X)A=X end;function D.setCursorThreshold(j)C=j end;function D.endPrivateMode(a6)if B then local a7=B;B=nil;D.draw(0)if a6 then if C>0 then D.scroll(C)end;print(a7.getLine)c(a7,D,a7.getLine,0)end end end;function D.beginPrivateMode()if not B then B=window.create(l,1,1,x,i,false)for j=1,i do B.setCursorPos(1,j)B.blit(m[j+s],n[j+s],o[j+s])end;B.setCursorPos(q,r)B.setCursorBlink(u)B.setTextColour(2^tonumber(v,16))B.setBackgroundColor(2^tonumber(w,16))if l.getPaletteColour then for b=0,15 do local a2=p[2^b]B.setPaletteColour(2^b,a2[1],a2[2],a2[3])end end;B.setVisible(true)end;return B end;function D.isPrivateMode()return B~=nil end;function D.getTotalHeight()return s end;function D.setMaxScrollback(Y)local a8=z;z=Y;if a8>z then F()end end;function D.updateSize()local a9,W=l.getSize()if a9==x and W==i then return end;if B then B.resize(1,1,x,i)end;local aa=#m;for j=1,aa do if a9<x then m[j]=m[j]:sub(1,a9)n[j]=n[j]:sub(1,a9)o[j]=o[j]:sub(1,a9)elseif a9>x then m[j]=m[j]..(" "):rep(a9-x)n[j]=n[j]..v:rep(a9-x)o[j]=o[j]..w:rep(a9-x)end end;if W>i then local T=(" "):rep(a9)local U=v:rep(a9)local V=w:rep(a9)for j=aa+1,W do m[j]=T;n[j]=U;o[j]=V end elseif W<i then r=r-i+W end;x=a9;i=W;s=#m-i;t=s+r;F()end;D.clear()return D end |
require "module-loader"
METHODS =
{
HEAD = "HEAD";
GET = "GET";
PUT = "PUT";
DELETE = "DELETE";
PATCH= "PATCH";
POST= "POST";
}
local OS = love.system.getOS()
REST = {}
--Providing autocomplete
REST.head = function(url, requestHeader, methodOrOnLoad, onLoad)end
REST.get = function(url, requestHeader, onLoad)end
REST.post = function(url, requestHeader, data, onLoad)end
REST.put = function(url, requestHeader, data, onLoad)end
REST.patch = function(url, requestHeader, data, onLoad)end
REST.delete = function(url, requestHeader, data, onLoad)end
REST.retrieve = function(dt)end
--End autocomplete
--This was meant to make it compatible out-of-the-box with the rest of the world, not only Lua, so the decision was to make
--Arrays start by index 0
function _TABLE_TO_JSON(data, isRecursive)
if(type(data) == "table") then
local nData = '{'
if(not isRecursive) then
nData = "\'"..nData
end
local isFirst = true
for key, value in pairs(data) do
local k = key
if(tonumber(k)) then k = tonumber(k) - 1; end
if(isFirst) then
isFirst = false
else
nData = nData..", "
end
if(type(value) == "table") then
nData = nData..'"'..k..'"'..' : '.._TABLE_TO_JSON(value, true)
elseif(tonumber(value) or type(value) == "boolean") then
nData = nData..'"'..k..'"'..' : '..tostring(value)
else
nData = nData..'"'..k..'"'..' : "'..value..'"'
end
end
nData = nData..'}'
if(not isRecursive) then
nData = nData.."\'"
end
data = nData
end
return data
end
if(OS == "Web") then
requireFromLib("js", "js")
REST = require "rest-lib.js-rest"
elseif(OS == "Windows") then
REST = require "rest-lib.win-rest"
else
REST = require "rest-lib.default-rest"
end
if(REST.start ~= nil) then
REST.start()
--Auto-destroy start for not causing any problem
REST.start = nil
end
local function UPDATE(dt)
return REST.retrieveFunction(dt)
end
REST.isDebug = true;
REST.retrieve = UPDATE; |
module("resty.random", package.seeall)
_VERSION = '0.06'
local ffi = require "ffi"
local ffi_new = ffi.new
local ffi_str = ffi.string
local C = ffi.C
ffi.cdef[[
int RAND_bytes(unsigned char *buf, int num);
int RAND_pseudo_bytes(unsigned char *buf, int num);
]]
function bytes(len, strong)
local buf = ffi_new("char[?]", len)
if strong then
if C.RAND_bytes(buf, len) == 0 then
return nil
end
else
C.RAND_pseudo_bytes(buf,len)
end
return ffi_str(buf, len)
end
-- to prevent use of casual module global variables
getmetatable(resty.random).__newindex = function (table, key, val)
error('attempt to write to undeclared variable "' .. key .. '": '
.. debug.traceback())
end
|
require'nvim-web-devicons'.setup {}
|
local x = os.date()
local log = io.open("C:\\Program Files (x86)\\TeamViewer\\TeamViewer13_Logfile.log","r")
local file = log:read("*all")
print(file)
|
require "lunit"
module("tests.e3.e3features", package.seeall, lunit.testcase)
local settings
local function set_rule(key, value)
if value==nil then
eressea.settings.set(key, settings[key])
else
settings[key] = settings[key] or eressea.settings.get(key)
eressea.settings.set(key, value)
end
end
function setup()
eressea.game.reset()
settings = {}
set_rule("rules.move.owner_leave", "1")
set_rule("rules.food.flags", "4")
set_rule("rules.ship.drifting", "0")
set_rule("rules.ship.storms", "0")
end
function teardown()
set_rule("rules.move.owner_leave")
set_rule("rules.food.flags")
set_rule("rules.ship.drifting")
set_rule("rules.ship.storms")
end
function disable_test_bug_1738_build_castle_e3()
local r = region.create(0, 0, "plain")
local f = faction.create("[email protected]", "human", "de")
local c = building.create(r, "castle")
c.size = 228
local u1 = unit.create(f, r, 1)
u1:set_skill("building", 5)
u1:add_item("stone", 10000)
local u2 = unit.create(f, r, 32)
u2:set_skill("building", 3)
u2:add_item("stone", 10000)
u1:clear_orders()
u1:add_order("MACHE BURG " .. itoa36(c.id))
-- castle now has size 229.
u2:clear_orders()
u2:add_order("MACHE BURG " .. itoa36(c.id))
-- 32 * 3 makes 96 skill points.
-- from size 229 to size 250 needs 21 * 3 = 63 points, rest 33.
-- 33/4 makes 8 points, resulting size is 258.
process_orders()
-- resulting size should be 250 because unit 2
-- does not have the needed minimum skill.
assert_equal(c.size, 250)
end
function disable_test_alliance()
local r = region.create(0, 0, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r, 1)
u1:add_item("money", u1.number * 100)
local f2 = faction.create("[email protected]", "human", "de")
local u2 = unit.create(f2, r, 1)
u2:add_item("money", u2.number * 100)
assert(f1.alliance==nil)
assert(f2.alliance==nil)
u1:clear_orders()
u2:clear_orders()
u1:add_order("ALLIANZ NEU pink")
u1:add_order("ALLIANZ EINLADEN " .. itoa36(f2.id))
u2:add_order("ALLIANZ BEITRETEN pink")
process_orders()
assert(f1.alliance~=nil)
assert(f2.alliance~=nil)
assert(f2.alliance==f1.alliance)
u1:clear_orders()
u2:clear_orders()
u1:add_order("ALLIANZ KOMMANDO " .. itoa36(f2.id))
process_orders()
assert(f1.alliance~=nil)
assert(f2.alliance~=nil)
assert(f2.alliance==f1.alliance)
for f in f1.alliance.factions do
assert_true(f.id==f1.id or f.id==f2.id)
end
u1:clear_orders()
u2:clear_orders()
u2:add_order("ALLIANZ AUSSTOSSEN " .. itoa36(f1.id))
process_orders()
assert(f1.alliance==nil)
assert(f2.alliance~=nil)
u1:clear_orders()
u2:clear_orders()
u2:add_order("ALLIANZ NEU zing")
u1:add_order("ALLIANZ BEITRETEN zing") -- no invite!
process_orders()
assert(f1.alliance==nil)
assert(f2.alliance~=nil)
u1:clear_orders()
u2:clear_orders()
u1:add_order("ALLIANZ NEU zack")
u1:add_order("ALLIANZ EINLADEN " .. itoa36(f2.id))
u2:add_order("ALLIANZ BEITRETEN zack")
process_orders()
assert(f1.alliance==f2.alliance)
assert(f2.alliance~=nil)
end
function test_no_stealth()
local r = region.create(0,0, "plain")
local f = faction.create("[email protected]", "human", "de")
local u = unit.create(f, r, 1)
u:set_skill("stealth", 1)
assert_equal(-1, u:get_skill("stealth"))
u:clear_orders()
u:add_order("LERNEN TARNUNG")
process_orders()
assert_equal(-1, u:get_skill("stealth"))
end
function test_no_teach()
local r = region.create(0,0, "plain")
local f = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f, r, 1)
local u2 = unit.create(f, r, 1)
u1:clear_orders()
u2:clear_orders()
u1:set_skill("riding", 3)
u2:add_order("LERNE Reiten")
u1:add_order("LEHRE " .. itoa36(u2.id))
process_orders()
-- TODO: assert something (reflecting skills sucks!)
end
function test_seecast()
local r = region.create(0,0, "plain")
for i = 1,10 do
-- this prevents storms (only high seas have storms)
region.create(i, 1, "plain")
end
for i = 1,10 do
region.create(i, 0, "ocean")
end
local f = faction.create("[email protected]", "human", "de")
local s1 = ship.create(r, "cutter")
local u1 = unit.create(f, r, 2)
u1:set_skill("sailing", 3)
u1:add_item("money", 1000)
u1.ship = s1
local u2 = unit.create(f, r, 1)
u2.race = "elf"
u2:set_skill("magic", 6)
u2.magic = "gwyrrd"
u2.aura = 60
u2.ship = s1
u2:add_spell("stormwinds")
update_owners()
u2:clear_orders()
u2:add_order("Zaubere stufe 2 'Beschwoere einen Sturmelementar' " .. itoa36(s1.id))
u1:clear_orders()
u1:add_order("NACH O O O O")
process_orders()
assert_equal(4, u2.region.x)
u2:clear_orders()
u2:add_order("Zaubere stufe 2 'Beschwoere einen Sturmelementar' " .. itoa36(s1.id))
u1:clear_orders()
u1:add_order("NACH O O O O")
process_orders()
assert_equal(8, u2.region.x)
end
function test_fishing()
eressea.settings.set("rules.food.flags", "0")
local r = region.create(0,0, "ocean")
local r2 = region.create(1,0, "plain")
local f = faction.create("[email protected]", "human", "de")
local s1 = ship.create(r, "cutter")
local u1 = unit.create(f, r, 3)
u1.ship = s1
u1:set_skill("sailing", 10)
u1:add_item("money", 100)
u1:clear_orders()
u1:add_order("NACH O")
update_owners()
process_orders()
assert_equal(r2, u1.region)
assert_equal(90, u1:get_item("money"))
u1:clear_orders()
u1:add_order("NACH W")
process_orders()
assert_equal(r, u1.region)
assert_equal(60, u1:get_item("money"))
end
function test_ship_capacity()
local r = region.create(0,0, "ocean")
region.create(1,0, "ocean")
local r2 = region.create(2,0, "ocean")
local f = faction.create("[email protected]", "human", "de")
local f2 = faction.create("[email protected]", "goblin", "de")
-- u1 is at the limit and moves
local s1 = ship.create(r, "cutter")
local u1 = unit.create(f, r, 5)
u1.ship = s1
u1:set_skill("sailing", 10)
u1:add_item("sword", 55)
u1:clear_orders()
u1:add_order("NACH O O")
-- u2 has too many people
local s2 = ship.create(r, "cutter")
local u2 = unit.create(f, r, 6)
u2.ship = s2
u2:set_skill("sailing", 10)
u2:clear_orders()
u2:add_order("NACH O O")
-- u3 has goblins, they weigh 40% less
local s3 = ship.create(r, "cutter")
local u3 = unit.create(f2, r, 8)
u3.ship = s3
u3:set_skill("sailing", 10)
u3:add_item("sword", 55)
u3:clear_orders()
u3:add_order("NACH O O")
-- u4 has too much stuff
local s4 = ship.create(r, "cutter")
local u4 = unit.create(f, r, 5)
u4.ship = s4
u4:set_skill("sailing", 10)
u4:add_item("sword", 56)
u4:clear_orders()
u4:add_order("NACH O O")
update_owners()
process_orders()
if r2~=u1.region then
print(get_turn(), u1, u1.faction)
end
assert_equal(r2, u1.region)
assert_not_equal(r2.id, u2.region.id)
if r2~=u3.region then
print(get_turn(), u3, u3.faction)
end
assert_equal(r2, u3.region)
assert_not_equal(r2.id, u4.region.id)
end
function test_owners()
local r = region.create(0, 0, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r, 1)
local f2 = faction.create("[email protected]", "human", "de")
local u2 = unit.create(f2, r, 1)
local u3 = unit.create(f2, r, 1)
local b3 = building.create(r, "castle")
b3.size = 2
u3.building = b3
local b1 = building.create(r, "castle")
b1.size = 1
u1.building = b1
local b2 = building.create(r, "castle")
b2.size = 2
u2.building = b2
update_owners()
assert(r.owner==u3.faction)
b1.size=3
b2.size=3
update_owners()
assert(r.owner==u2.faction)
b1.size=4
update_owners()
assert(r.owner==u1.faction)
end
function test_taxes()
local r = region.create(0, 0, "plain")
r:set_resource("peasant", 1000)
r:set_resource("money", 5000)
local f = faction.create("[email protected]", "human", "de")
local u = unit.create(f, r, 1)
u:clear_orders()
u:add_order("LERNE Holzfaellen") -- do not work
local b = building.create(r, "watch")
b.size = 10
u.building = b
update_owners()
assert_equal(1, r.morale)
process_orders()
assert_equal(1, r.morale)
assert_equal(25, u:get_item("money"))
end
function test_region_owner_cannot_leave_castle()
local r = region.create(0, 0, "plain")
local f = faction.create("[email protected]", "human", "de")
f.id = 42
local b1 = building.create(r, "castle")
b1.size = 10
local b2 = building.create(r, "lighthouse")
b2.size = 10
local u = unit.create(f, r, 1)
u.building = b1
u:add_item("money", u.number * 100)
u:clear_orders()
u:add_order("BETRETE BURG " .. itoa36(b2.id))
process_orders()
assert_equal(b1, u.building, "region owner has left the building") -- region owners may not leave
end
function reset_items(u)
for i in u.items do
u:add_item(i, u:get_item(i))
end
u:add_item("money", u.number * 10000)
end
function market_fixture()
local herb_multi = 500 -- from rc_herb_trade()
local r
local herbnames = { 'h0', 'h1', 'h2', 'h3', 'h4', 'h5' }
local herbtable = {}
for _, name in pairs(herbnames) do
herbtable[name] = name
end
local luxurynames = { 'balm', 'jewel', 'myrrh', 'oil', 'silk', 'incense' } -- no spice in E3
local luxurytable = {}
for _, name in pairs(luxurynames) do
luxurytable[name] = name
end
for x = -1, 1 do for y = -1, 1 do
r = region.create(x, y, "plain")
r:set_resource("peasant", 1)
end end
r = get_region(0, 0)
local b = building.create(r, "market")
b.size = 10
b.working = true
local f = faction.create("[email protected]", "human", "de")
f.id = 42
local u = unit.create(f, r, 1)
u.building = b
r.herb = herbnames[6]
r.luxury = luxurynames[6]
r:set_resource("peasant", herb_multi * 9 + 50) -- 10 herbs per region
for i = 0, 4 do
local rn = r:next(i)
rn.name = luxurynames[i+1]
rn.herb = herbnames[i+1]
rn.luxury = luxurynames[i+1]
rn:set_resource("peasant", herb_multi * 9 + 50) -- 10 herbs per region
unit.create(f, rn, 1)
end
reset_items(u)
return r, u, b, herbnames, luxurynames, herbtable, luxurytable
end
local function test_items(u, names, amount)
local len = 0
for i in u.items do
if names[i] ~= nil then
len = len + 1
end
end
if amount > 0 then
assert_not_equal(0, len, "trader did not get any items")
else
assert_equal(0, len, "trader should not have items")
end
for _, name in pairs(names) do
local n = u:get_item(name)
if n>0 then
if amount == 0 then
assert_equal(0, n, 'trader should have no ' .. name)
else
assert_equal(amount, n, 'trader has ' .. n .. ' instead of ' .. amount .. ' ' .. name)
end
end
end
end
function test_market_regions()
-- if i am the only trader around, i should be getting all the herbs from all 7 regions
local r, u, b, herbnames, luxurynames, herbtable, luxurytable = market_fixture()
eressea.process.markets()
test_items(u, herbtable, 10)
test_items(u, luxurytable, 5)
end
function test_multiple_markets()
local r, u1, b, herbnames, luxurynames, herbtable, luxurytable = market_fixture()
local r2 = get_region(1,0)
local f = faction.create("[email protected]", "human", "de")
local u2 = unit.create(f, r2, 1)
local b2 = building.create(r2, "market")
b2.size = 10
b2.working = true
reset_items(u2)
u2.building = b2
eressea.process.markets()
for _, i in pairs(luxurytable) do
assert_equal(5, u1:get_item(i)+u2:get_item(i), "not enough " .. i )
end
for _, i in pairs(herbtable) do
assert_equal(10, u1:get_item(i)+u2:get_item(i), "not enough " .. i )
end
assert_equal(5, u1:get_item('silk')) -- uncontested
end
function test_market()
local r = region.create(0, 0, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r, 1)
local b = building.create(r, "market")
eressea.settings.set("rules.peasants.growth", "0")
b.size = 10
u1.building = b
u1:add_item("money", 10000)
r.herb = "h0"
r.luxury = "balm"
r:set_resource("peasant", 1050)
process_orders()
assert_equal(3, u1:get_item("h0"))
assert_equal(2, u1:get_item("balm"))
local function reset_items()
for i in u1.items do
u1:add_item(i, -1 * u1:get_item(i))
end
u1:add_item("money", u1.number * 10000)
-- eressea.game.reset()
f1.lastturn=get_turn()
assert_not_equal(nil, factions())
local idx = 0
for f in factions() do
assert_equal(1,1,"fac".. f.email)
idx = idx + 1
end
assert_not_equal(0, idx)
end
reset_items()
b.size = 1
eressea.process.markets()
assert_equal(0, u1:get_item("h0"))
b.size = 10
reset_items()
r:set_resource("peasant", 2100)
eressea.process.markets()
assert_equal(5, u1:get_item("h0"))
assert_equal(3, u1:get_item("balm"))
reset_items()
r:set_resource("peasant", 1049)
eressea.process.markets()
assert_equal(2, u1:get_item("h0"))
assert_equal(1, u1:get_item("balm"))
reset_items()
r:set_resource("peasant", 550)
eressea.process.markets()
assert_equal(2, u1:get_item("h0"))
assert_equal(1, u1:get_item("balm"))
reset_items()
r:set_resource("peasant", 549)
eressea.process.markets()
assert_equal(1, u1:get_item("h0"))
assert_equal(1, u1:get_item("balm"))
reset_items()
r:set_resource("peasant", 50)
eressea.process.markets()
assert_equal(1, u1:get_item("h0"))
assert_equal(1, u1:get_item("balm"))
reset_items()
r:set_resource("peasant", 49)
eressea.process.markets()
assert_equal(0, u1:get_item("h0"))
r:set_resource("peasant", 1050)
reset_items()
u1:add_item("money", -1 * u1:get_item("money"))
assert_equal(0, u1:get_item("money"))
process_orders() -- process_orders to update maintenance
assert_equal(0, u1:get_item("h0"))
process_orders()
eressea.settings.set("rules.peasants.growth", "1")
end
function test_market_gives_items()
local r
for x = -1, 1 do for y = -1, 1 do
r = region.create(x, y, "plain")
r:set_resource("peasant", 5000)
end end
r = get_region(0, 0)
local b = building.create(r, "market")
b.size = 10
local f = faction.create("[email protected]", "human", "de")
f.id = 42
local u = unit.create(f, r, 1)
u.building = b
u:add_item("money", u.number * 10000)
for i = 0, 5 do
local rn = r:next(i)
end
process_orders()
local len = 0
for i in u.items do
len = len + 1
end
assert(len>1)
end
function test_spells()
local r = region.create(0, 0, "plain")
local f = faction.create("[email protected]", "human", "de")
local u = unit.create(f, r, 1)
u.race = "elf"
u:clear_orders()
u:add_item("money", 10000)
u:set_skill("magic", 5)
u:add_order("LERNE MAGIE Illaun")
process_orders()
local sp
local nums = 0
if f.spells~=nil then
for sp in f.spells do
nums = nums + 1
end
assert(nums>0)
for sp in u.spells do
nums = nums - 1
end
assert(nums==0)
elseif u.spells~=nil then
for sp in u.spells do
nums = nums + 1
end
assert(nums>0)
end
end
function test_canoe_passes_through_land()
local f = faction.create("[email protected]", "human", "de")
local src = region.create(0, 0, "ocean")
local land = region.create(1, 0, "plain")
region.create(2, 0, "ocean")
local dst = region.create(3, 0, "ocean")
local sh = ship.create(src, "canoe")
local u1 = unit.create(f, src, 1)
local u2 = unit.create(f, src, 1)
u1.ship = sh
u2.ship = sh
u1:set_skill("sailing", 10)
u1:clear_orders()
u1:add_order("NACH O O O")
process_orders()
assert_equal(land, u2.region, "canoe did not stop at coast")
process_orders()
assert_equal(dst, sh.region, "canoe could not leave coast")
assert_equal(dst, u1.region, "canoe could not leave coast")
assert_equal(dst, u2.region, "canoe could not leave coast")
end
function test_give_50_percent_of_money()
local r = region.create(0, 0, "plain")
local u1 = unit.create(faction.create("[email protected]", "human", "de"), r, 1)
local u2 = unit.create(faction.create("[email protected]", "orc", "de"), r, 1)
u1.faction.age = 10
u2.faction.age = 10
u1:add_item("money", 500)
u2:add_item("money", 500)
local m1, m2 = u1:get_item("money"), u2:get_item("money")
u1:clear_orders()
u1:add_order("GIB " .. itoa36(u2.id) .. " 221 Silber")
u2:clear_orders()
u2:add_order("LERNEN Hiebwaffen")
process_orders()
assert_equal(m1, u1:get_item("money"))
assert_equal(m2, u2:get_item("money"))
m1, m2 = u1:get_item("money"), u2:get_item("money")
u1:clear_orders()
u1:add_order("GIB " .. itoa36(u2.id) .. " 221 Silber")
u2:clear_orders()
u2:add_order("HELFEN " .. itoa36(u1.faction.id) .. " GIB")
u2:add_item("horse", 100)
u2:add_order("GIB 0 ALLES PFERD")
local h = r:get_resource("horse")
process_orders()
assert_true(r:get_resource("horse")>=h+100)
assert_equal(m1-221, u1:get_item("money"))
assert_equal(m2+110, u2:get_item("money"))
end
function test_give_100_percent_of_items()
r = region.create(0, 0, "plain")
local u1 = unit.create(faction.create("[email protected]", "human", "de"), r, 1)
local u2 = unit.create(faction.create("[email protected]", "orc", "de"), r, 1)
u1.faction.age = 10
u2.faction.age = 10
u1:add_item("money", 500)
u1:add_item("log", 500)
local m1, m2 = u1:get_item("log"), u2:get_item("log")
u1:clear_orders()
u1:add_order("GIB " .. itoa36(u2.id) .. " 332 Holz")
u2:clear_orders()
u2:add_order("LERNEN Hiebwaffen")
u2:add_order("HELFEN " .. itoa36(u1.faction.id) .. " GIB")
process_orders()
assert_equal(m1-332, u1:get_item("log"))
assert_equal(m2+332, u2:get_item("log"))
end
function test_cannot_give_person()
local r = region.create(0, 0, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local f2 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r, 10)
local u2 = unit.create(f2, r, 10)
u1.faction.age = 10
u2.faction.age = 10
u1:add_item("money", 500)
u2:add_item("money", 500)
u2:clear_orders()
u2:add_order("GIB ".. itoa36(u1.id) .. " 1 PERSON")
u2:add_order("HELFE ".. itoa36(f1.id) .. " GIB")
u1:add_order("HELFE ".. itoa36(f2.id) .. " GIB")
process_orders()
assert_equal(10, u2.number)
assert_equal(10, u1.number)
end
function test_cannot_give_unit()
local r = region.create(0, 0, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local f2 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r, 10)
local u2 = unit.create(f2, r, 10)
u1.faction.age = 10
u2.faction.age = 10
u1:add_item("money", 500)
u2:add_item("money", 500)
u2:clear_orders()
u2:add_order("GIB ".. itoa36(u1.id) .. " EINHEIT")
u2:add_order("HELFE ".. itoa36(f1.id) .. " GIB")
u1:add_order("HELFE ".. itoa36(f2.id) .. " GIB")
process_orders()
assert_not_equal(u2.faction.id, u1.faction.id)
end
function test_guard_by_owners()
-- http://bugs.eressea.de/view.php?id=1756
local r = region.create(0,0, "mountain")
local f1 = faction.create("[email protected]", "human", "de")
f1.age=20
local f2 = faction.create("[email protected]", "human", "de")
f2.age=20
local u1 = unit.create(f1, r, 1)
local b = building.create(r, "castle")
b.size = 10
u1.building = b
u1:add_item("money", 100)
local u2 = unit.create(f2, r, 1)
u2:add_item("money", 100)
u2:set_skill("mining", 3)
u2:clear_orders()
u2:add_order("MACHEN EISEN")
process_orders()
local iron = u2:get_item("iron")
process_orders()
assert_equal(iron, u2:get_item("iron"))
end
local function setup_packice(x, onfoot)
local f = faction.create("[email protected]", "human", "de")
local plain = region.create(0,0, "plain")
local ice = region.create(1,0, "packice")
local ocean = region.create(2,0, "ocean")
local u = unit.create(f, get_region(x, 0), 2)
if not onfoot then
local s = ship.create(u.region, "cutter")
u:set_skill("sailing", 3)
u.ship = s
end
u:add_item("money", 400)
return u
end
function test_no_sailing_through_packice()
local u = setup_packice(0)
u:clear_orders()
u:add_order("NACH O O")
process_orders()
assert_equal(0, u.region.x)
end
function test_can_sail_from_packice_to_ocean()
local u = setup_packice(1)
u:clear_orders()
u:add_order("NACH W")
process_orders()
assert_equal(1, u.region.x)
u:clear_orders()
u:add_order("NACH O")
process_orders()
assert_equal(2, u.region.x)
end
function test_can_sail_into_packice()
local u = setup_packice(2)
u:clear_orders()
u:add_order("NACH W W")
process_orders()
assert_equal(1, u.region.x)
end
function test_can_walk_into_packice()
local u = setup_packice(0, true)
u:clear_orders()
u:add_order("NACH O")
process_orders()
assert_equal(1, u.region.x)
end
function test_cannot_walk_into_ocean()
local u = setup_packice(1, true)
u:clear_orders()
u:add_order("NACH O")
process_orders()
assert_equal(1, u.region.x)
end
function test_p2()
local f = faction.create("[email protected]", "human", "de")
local r = region.create(0, 0, "plain")
local u = unit.create(f, r, 1)
r:set_resource("tree", 0)
u:clear_orders()
u:add_order("BENUTZE 'Wasser des Lebens'")
u:add_item("p2", 1)
u:add_item("log", 10)
u:add_item("mallorn", 10)
process_orders()
assert_equal(5, r:get_resource("tree"))
assert_equal(0, u:get_item("p2"))
assert_equal(15, u:get_item("log") + u:get_item("mallorn"))
end
function test_p2_move()
-- http://bugs.eressea.de/view.php?id=1855
local f = faction.create("[email protected]", "human", "de")
local r = region.create(0, 0, "plain")
region.create(1, 0, "plain")
local u = unit.create(f, r, 1)
r:set_resource("tree", 0)
u:clear_orders()
u:add_order("BENUTZE 'Wasser des Lebens'")
u:add_order("NACH OST")
u:add_item("horse", 1)
u:add_item("p2", 1)
u:add_item("log", 1)
u:add_item("mallorn", 1)
process_orders()
assert_equal(1, u.region.x)
assert_equal(1, r:get_resource("tree"))
end
function test_golem_use_four_iron()
local r0 = region.create(0, 0, "plain")
local f1 = faction.create("[email protected]", "halfling", "de")
local u1 = unit.create(f1, r0, 3)
u1.race = "irongolem"
u1:set_skill("weaponsmithing", 1)
u1:set_skill("armorer", 1)
u1:clear_orders()
u1:add_order("Mache 4 Turmschild")
process_orders()
assert_equal(2, u1.number)
assert_equal(4, u1:get_item("towershield"))
end
function test_silver_weight_stops_movement()
local r1 = region.create(1, 1, "plain")
local r2 = region.create(2, 1, "plain")
region.create(3, 1, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r1, 1)
u1:clear_orders()
u1:add_order("NACH OST")
u1:add_item("money", 540)
assert_equal(1540, u1.weight)
process_orders()
assert_equal(r2, u1.region)
u1:add_item("money", 1)
process_orders()
assert_equal(r2, u1.region)
end
function test_silver_weight_stops_ship()
local r1 = region.create(1, 1, "ocean")
local r2 = region.create(2, 1, "ocean")
region.create(3, 1, "ocean")
local f1 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r1, 1)
u1:set_skill("sailing", 3)
local s1 = ship.create(r1, "canoe")
u1.ship = s1
u1:clear_orders()
u1:add_order("NACH OST")
u1:add_item("money", 2000)
process_orders()
assert_equal(r2, u1.region)
u1:add_item("money", 1)
process_orders()
assert_equal(r2, u1.region)
end
function test_building_owner_can_enter_ship()
local r1 = region.create(1, 2, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local b1 = building.create(r1, "castle")
b1.size = 10
local s1 = ship.create(r1, "cutter")
local u1 = unit.create(f1, r1, 10)
u1.building = b1
u1:add_item("money", u1.number * 100)
u1:clear_orders()
u1:add_order("VERLASSEN")
u1:add_order("BETRETE SCHIFF " .. itoa36(s1.id))
local u2 = unit.create(f1, r1, 10)
u2.ship = s1
u2:add_item("money", u1.number * 100)
u2:clear_orders()
process_orders()
assert_equal(s1, u1.ship)
assert_equal(null, u1.building, "owner of the building can not go into a ship")
end
function test_only_building_owner_can_set_not_paid()
local r = region.create(0, 0, "plain")
local f = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f, r, 1)
local u2 = unit.create(f, r, 1)
local mine = building.create(r, "mine")
mine.size = 2
u1:add_item("money", 500)
u1.building = mine
u2.building = mine
u1:clear_orders()
u2:clear_orders()
-- Test that Bezahle nicht is working
u1:add_order("Bezahle nicht")
process_orders()
assert_equal(500, u1:get_item("money"))
u1:clear_orders()
-- Test that bug fix 0001976 is working
-- Bezahle nicht is not working
u2:add_order("Bezahle nicht")
process_orders()
assert_equal(0, u1:get_item("money"))
end
function test_spyreport_message()
local r1 = region.create(1, 2, "plain")
local f1 = faction.create("[email protected]", "human", "de")
local u1 = unit.create(f1, r1, 1)
local u2 = unit.create(f1, r1, 1)
msg = message.create("spyreport")
msg:set_unit("spy", u1)
msg:set_unit("target", u2)
msg:set_string("status", "hodor")
assert_not_equal("", msg:render("de"))
assert_not_equal("", msg:render("en"))
end
function test_volcanooutbreak_message()
local r1 = region.create(1, 0, "plain")
local r2 = region.create(1, 1, "plain")
msg = message.create("volcanooutbreak")
msg:set_region("regionn", r1)
msg:set_region("regionv", r2)
assert_not_equal("", msg:render("de"))
assert_not_equal("", msg:render("en"))
end
function test_bug2083()
local herb_multi = 500 -- from rc_herb_trade()
local r = region.create(0,0,"plain")
r:set_resource("peasant", 2000)
r.luxury = "balm"
local f = faction.create("[email protected]", "human", "de")
local u = unit.create(f, r, 1)
u:set_skill("building", 8)
u:add_item("stone", 100)
u:add_item("log", 100)
u:add_item("iron", 100)
u:add_item("money", 10000)
u:clear_orders()
u:add_order("MACHE Markt")
process_orders()
-- this is a bit weird, but the bug was caused by market code
-- being called in two places. We want to make sure this doesn't happen
for k, v in pairs(rules) do
set_key("xm09", true)
if 'table' == type(v) then
cb = v['update']
if 'function' == type(cb) then
cb()
end
end
end
assert_equal(0, u:get_item("balm"))
end
function test_no_uruk()
local f1 = faction.create("[email protected]", "uruk", "de")
assert_equal(f1.race, "orc")
end
|
-- The MIT License (MIT)
--
-- Copyright (c) 2013 Jeremy Othieno.
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- 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 THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
local x, y, z, w = 0, 0, 0, 0
local numbers = {["one"] = 1, ["two"] = 2, ["three"] = 3}
-- While.
while (x <= 10) do
x = x + 1
end;
-- Repeat until.
repeat
y = y + 1;
until (y == 10)
-- Numeric for.
for i = 0, y, 0.5 do
z = z + i
end
-- Generic for.
for k, number in pairs(numbers) do
w = w + number
end
return x, y, z, w
|
return {
corwin = {
acceleration = 0,
activatewhenbuilt = true,
brakerate = 0,
buildcostenergy = 174,
buildcostmetal = 45,
builder = false,
buildinggrounddecaldecayspeed = 30,
buildinggrounddecalsizex = 5,
buildinggrounddecalsizey = 5,
buildinggrounddecaltype = "corwin_aoplane.dds",
buildpic = "corwin.dds",
buildtime = 1500,
category = "ALL SURFACE",
collisionvolumeoffsets = "0 2 0",
collisionvolumescales = "40 89 40",
collisionvolumetype = "CylY",
corpse = "dead",
description = "Produces Energy",
explodeas = "WIND_EX",
footprintx = 3,
footprintz = 3,
icontype = "building",
idleautoheal = 5,
idletime = 1800,
losemitheight = 77,
mass = 45,
maxdamage = 185,
maxslope = 10,
maxvelocity = 0,
maxwaterdepth = 0,
name = "Wind Generator",
noautofire = false,
objectname = "CORWIN",
radaremitheight = 76,
seismicsignature = 0,
selfdestructas = "SMALL_BUILDING",
sightdistance = 273,
turninplaceanglelimit = 140,
turninplacespeedlimit = 0,
turnrate = 0,
unitname = "corwin",
usebuildinggrounddecal = true,
windgenerator = 120,
yardmap = "ooooooooo",
customparams = {
buildpic = "corwin.dds",
faction = "CORE",
},
featuredefs = {
dead = {
blocking = true,
collisionvolumeoffsets = "-0.00634765625 0.0963876586914 -0.0",
collisionvolumescales = "47.8161621094 48.6615753174 44.0332336426",
collisionvolumetype = "Box",
damage = 329,
description = "Wind Generator Wreckage",
energy = 0,
featuredead = "heap",
footprintx = 4,
footprintz = 4,
metal = 33,
object = "CORWIN_DEAD",
reclaimable = true,
customparams = {
fromunit = 1,
},
},
heap = {
blocking = false,
damage = 411,
description = "Wind Generator Debris",
energy = 0,
footprintx = 4,
footprintz = 4,
metal = 18,
object = "4X4A",
reclaimable = true,
customparams = {
fromunit = 1,
},
},
},
sfxtypes = {
pieceexplosiongenerators = {
[1] = "piecetrail5",
[2] = "piecetrail5",
[3] = "piecetrail4",
[4] = "piecetrail6",
},
},
sounds = {
canceldestruct = "cancel2",
underattack = "warning1",
count = {
[1] = "count6",
[2] = "count5",
[3] = "count4",
[4] = "count3",
[5] = "count2",
[6] = "count1",
},
select = {
[1] = "windgen2",
},
},
},
}
|
--[[
Name: LibAbacus-3.0
Revision: $Rev: 50 $
Author(s): ckknight ([email protected])
Website: http://ckknight.wowinterface.com/
Documentation: http://www.wowace.com/wiki/LibAbacus-3.0
SVN: http://svn.wowace.com/wowace/trunk/LibAbacus-3.0
Description: A library to provide tools for formatting money and time.
License: LGPL v2.1
]]
local MAJOR_VERSION = "LibAbacus-3.0"
local MINOR_VERSION = tonumber(("$Revision: 50 $"):match("(%d+)")) + 90000
if not LibStub then error(MAJOR_VERSION .. " requires LibStub") end
local Abacus, oldLib = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
if not Abacus then
return
end
local gsub = string.gsub
local COPPER_ABBR
local SILVER_ABBR
local GOLD_ABBR
local GOLD, SILVER, COPPER = GOLD, SILVER, COPPER
if not COPPER and COPPER_AMOUNT then
GOLD = GOLD_AMOUNT:gsub("%s*%%d%s*", "")
SILVER = SILVER_AMOUNT:gsub("%s*%%d%s*", "")
COPPER = COPPER_AMOUNT:gsub("%s*%%d%s*", "")
end
if (COPPER:byte(1) or 128) > 127 then
-- non-western
COPPER_ABBR = COPPER
SILVER_ABBR = SILVER
GOLD_ABBR = GOLD
else
COPPER_ABBR = COPPER:sub(1, 1):lower()
SILVER_ABBR = SILVER:sub(1, 1):lower()
GOLD_ABBR = GOLD:sub(1, 1):lower()
end
local DAYS_ABBR_S1, HOURS_ABBR_S1, MINUTES_ABBR_S1, SECONDS_ABBR_S1
local DAYS_ABBR_P1, HOURS_ABBR_P1, MINUTES_ABBR_P1, SECONDS_ABBR_P1 = DAYS_ABBR_P1, HOURS_ABBR_P1, MINUTES_ABBR_P1, SECONDS_ABBR_P1
if not DAYS_ABBR_P1 then
DAYS_ABBR_S1 = gsub(DAYS_ABBR, ".*|4(.-):.-;.*", "%1")
DAYS_ABBR_P1 = gsub(DAYS_ABBR, ".*|4.-:(.-);.*", "%1")
HOURS_ABBR_S1 = gsub(HOURS_ABBR, ".*|4(.-):.-;.*", "%1")
HOURS_ABBR_P1 = gsub(HOURS_ABBR, ".*|4.-:(.-);.*", "%1")
MINUTES_ABBR_S1 = gsub(MINUTES_ABBR, ".*|4(.-):.-;.*", "%1")
MINUTES_ABBR_P1 = gsub(MINUTES_ABBR, ".*|4.-:(.-);.*", "%1")
SECONDS_ABBR_S1 = gsub(SECONDS_ABBR, ".*|4(.-):.-;.*", "%1")
SECONDS_ABBR_P1 = gsub(SECONDS_ABBR, ".*|4.-:(.-);.*", "%1")
else
DAYS_ABBR_S1 = DAYS_ABBR
HOURS_ABBR_S1 = HOURS_ABBR
MINUTES_ABBR_S1 = MINUTES_ABBR
SECONDS_ABBR_S1 = SECONDS_ABBR
end
local COLOR_WHITE = "ffffff"
local COLOR_GREEN = "00ff00"
local COLOR_RED = "ff0000"
local COLOR_COPPER = "eda55f"
local COLOR_SILVER = "c7c7cf"
local COLOR_GOLD = "ffd700"
local L_DAY_ONELETTER_ABBR = DAY_ONELETTER_ABBR:gsub("%s*%%d%s*", "")
local L_HOUR_ONELETTER_ABBR = HOUR_ONELETTER_ABBR:gsub("%s*%%d%s*", "")
local L_MINUTE_ONELETTER_ABBR = MINUTE_ONELETTER_ABBR:gsub("%s*%%d%s*", "")
local L_SECOND_ONELETTER_ABBR = SECOND_ONELETTER_ABBR:gsub("%s*%%d%s*", "")
local L_UNDETERMINED = "Undetermined"
if ( GetLocale() =="koKR" ) then
L_UNDETERMINED = "측정불가"
elseif ( GetLocale() == "zhTW" ) then
COPPER_ABBR = "銅"
SILVER_ABBR = "銀"
GOLD_ABBR = "金"
L_UNDETERMINED = "未定義的"
--***************************************
-- zhCN Chinese Simplify
-- 2007/09/19 CN3羽月 雪夜之狼
-- 请保留本翻译作者名 谢谢
-- E=mail:[email protected]
-- Website:http://www.wowtigu.org (Chs)
--***************************************
elseif ( GetLocale() == "zhCN" ) then
COPPER_ABBR = "铜"
SILVER_ABBR = "银"
GOLD_ABBR = "金"
L_UNDETERMINED = "未定义的"
--***************************************
-- ruRU Russian, 2008-08-04
-- Author: SLA80, sla80x at Gmail com
--***************************************
elseif ( GetLocale() == "ruRU" ) then
GOLD, SILVER, COPPER = "золота", "серебра", "меди"
GOLD_ABBR, SILVER_ABBR, COPPER_ABBR = "з", "с", "м"
DAYS_ABBR_P1 = "дней"
HOURS_ABBR_S1, HOURS_ABBR_P1 = "ч.", "ч."
MINUTES_ABBR_S1, MINUTES_ABBR_P1 = "мин.", "мин."
SECONDS_ABBR_S1, SECONDS_ABBR_P1 = "сек.", "сек."
L_UNDETERMINED = "Неопределено"
end
local inf = math.huge
function Abacus:FormatMoneyExtended(value, colorize, textColor)
local gold = abs(value / 10000)
local silver = abs(mod(value / 100, 100))
local copper = abs(mod(value, 100))
local negl = ""
local color = COLOR_WHITE
if value > 0 then
if textColor then
color = COLOR_GREEN
end
elseif value < 0 then
negl = "-"
if textColor then
color = COLOR_RED
end
end
if colorize then
if value == inf or value == -inf then
return format("|cff%s%s|r", color, value)
elseif value ~= value then
return format("|cff%s0|r|cff%s %s|r", COLOR_WHITE, COLOR_COPPER, COPPER)
elseif value >= 10000 or value <= -10000 then
return format("|cff%s%s%d|r|cff%s %s|r |cff%s%d|r|cff%s %s|r |cff%s%d|r|cff%s %s|r", color, negl, gold, COLOR_GOLD, GOLD, color, silver, COLOR_SILVER, SILVER, color, copper, COLOR_COPPER, COPPER)
elseif value >= 100 or value <= -100 then
return format("|cff%s%s%d|r|cff%s %s|r |cff%s%d|r|cff%s %s|r", color, negl, silver, COLOR_SILVER, SILVER, color, copper, COLOR_COPPER, COPPER)
else
return format("|cff%s%s%d|r|cff%s %s|r", color, negl, copper, COLOR_COPPER, COPPER)
end
else
if value == inf or value == -inf then
return format("%s", value)
elseif value ~= value then
return format("0 %s", COPPER)
elseif value >= 10000 or value <= -10000 then
return format("%s%d %s %d %s %d %s", negl, gold, GOLD, silver, SILVER, copper, COPPER)
elseif value >= 100 or value <= -100 then
return format("%s%d %s %d %s", negl, silver, SILVER, copper, COPPER)
else
return format("%s%d %s", negl, copper, COPPER)
end
end
end
function Abacus:FormatMoneyFull(value, colorize, textColor)
local gold = abs(value / 10000)
local silver = abs(mod(value / 100, 100))
local copper = abs(mod(value, 100))
local negl = ""
local color = COLOR_WHITE
if value > 0 then
if textColor then
color = COLOR_GREEN
end
elseif value < 0 then
negl = "-"
if textColor then
color = COLOR_RED
end
end
if colorize then
if value == inf or value == -inf then
return format("|cff%s%s|r", color, value)
elseif value ~= value then
return format("|cff%s0|r|cff%s%s|r", COLOR_WHITE, COLOR_COPPER, COPPER_ABBR)
elseif value >= 10000 or value <= -10000 then
return format("|cff%s%s%d|r|cff%s%s|r |cff%s%d|r|cff%s%s|r |cff%s%d|r|cff%s%s|r", color, negl, gold, COLOR_GOLD, GOLD_ABBR, color, silver, COLOR_SILVER, SILVER_ABBR, color, copper, COLOR_COPPER, COPPER_ABBR)
elseif value >= 100 or value <= -100 then
return format("|cff%s%s%d|r|cff%s%s|r |cff%s%d|r|cff%s%s|r", color, negl, silver, COLOR_SILVER, SILVER_ABBR, color, copper, COLOR_COPPER, COPPER_ABBR)
else
return format("|cff%s%s%d|r|cff%s%s|r", color, negl, copper, COLOR_COPPER, COPPER_ABBR)
end
else
if value == inf or value == -inf then
return format("%s", value)
elseif value ~= value then
return format("0%s", COPPER_ABBR)
elseif value >= 10000 or value <= -10000 then
return format("%s%d%s %d%s %d%s", negl, gold, GOLD_ABBR, silver, SILVER_ABBR, copper, COPPER_ABBR)
elseif value >= 100 or value <= -100 then
return format("%s%d%s %d%s", negl, silver, SILVER_ABBR, copper, COPPER_ABBR)
else
return format("%s%d%s", negl, copper, COPPER_ABBR)
end
end
end
function Abacus:FormatMoneyShort(copper, colorize, textColor)
local color = COLOR_WHITE
if textColor then
if copper > 0 then
color = COLOR_GREEN
elseif copper < 0 then
color = COLOR_RED
end
end
if colorize then
if copper == inf or copper == -inf then
return format("|cff%s%s|r", color, copper)
elseif copper ~= copper then
return format("|cff%s0|r|cff%s%s|r", COLOR_WHITE, COLOR_COPPER, COPPER_ABBR)
elseif copper >= 10000 or copper <= -10000 then
return format("|cff%s%.1f|r|cff%s%s|r", color, copper / 10000, COLOR_GOLD, GOLD_ABBR)
elseif copper >= 100 or copper <= -100 then
return format("|cff%s%.1f|r|cff%s%s|r", color, copper / 100, COLOR_SILVER, SILVER_ABBR)
else
return format("|cff%s%d|r|cff%s%s|r", color, copper, COLOR_COPPER, COPPER_ABBR)
end
else
if value == copper or value == -copper then
return format("%s", copper)
elseif copper ~= copper then
return format("0%s", COPPER_ABBR)
elseif copper >= 10000 or copper <= -10000 then
return format("%.1f%s", copper / 10000, GOLD_ABBR)
elseif copper >= 100 or copper <= -100 then
return format("%.1f%s", copper / 100, SILVER_ABBR)
else
return format("%.0f%s", copper, COPPER_ABBR)
end
end
end
function Abacus:FormatMoneyCondensed(value, colorize, textColor)
local negl = ""
local negr = ""
if value < 0 then
if colorize and textColor then
negl = "|cffff0000-(|r"
negr = "|cffff0000)|r"
else
negl = "-("
negr = ")"
end
end
local gold = floor(math.abs(value) / 10000)
local silver = mod(floor(math.abs(value) / 100), 100)
local copper = mod(floor(math.abs(value)), 100)
if colorize then
if value == inf or value == -inf then
return format("%s|cff%s%s|r%s", negl, COLOR_COPPER, math.abs(value), negr)
elseif value ~= value then
return format("|cff%s0|r", COLOR_COPPER)
elseif gold ~= 0 then
return format("%s|cff%s%d|r.|cff%s%02d|r.|cff%s%02d|r%s", negl, COLOR_GOLD, gold, COLOR_SILVER, silver, COLOR_COPPER, copper, negr)
elseif silver ~= 0 then
return format("%s|cff%s%d|r.|cff%s%02d|r%s", negl, COLOR_SILVER, silver, COLOR_COPPER, copper, negr)
else
return format("%s|cff%s%d|r%s", negl, COLOR_COPPER, copper, negr)
end
else
if value == inf or value == -inf then
return tostring(value)
elseif value ~= value then
return "0"
elseif gold ~= 0 then
return format("%s%d.%02d.%02d%s", negl, gold, silver, copper, negr)
elseif silver ~= 0 then
return format("%s%d.%02d%s", negl, silver, copper, negr)
else
return format("%s%d%s", negl, copper, negr)
end
end
end
local t = {}
function Abacus:FormatDurationExtended(duration, colorize, hideSeconds)
local negative = ""
if duration ~= duration then
duration = 0
end
if duration < 0 then
negative = "-"
duration = -duration
end
local days = floor(duration / 86400)
local hours = mod(floor(duration / 3600), 24)
local mins = mod(floor(duration / 60), 60)
local secs = mod(floor(duration), 60)
for k in pairs(t) do
t[k] = nil
end
if not colorize then
if not duration or duration > 86400*36500 then -- 100 years
return L_UNDETERMINED
end
if days > 1 then
table.insert(t, format("%d %s", days, DAYS_ABBR_P1))
elseif days == 1 then
table.insert(t, format("%d %s", days, DAYS_ABBR_S1))
end
if hours > 1 then
table.insert(t, format("%d %s", hours, HOURS_ABBR_P1))
elseif hours == 1 then
table.insert(t, format("%d %s", hours, HOURS_ABBR_S1))
end
if mins > 1 then
table.insert(t, format("%d %s", mins, MINUTES_ABBR_P1))
elseif mins == 1 then
table.insert(t, format("%d %s", mins, MINUTES_ABBR_S1))
end
if not hideSeconds then
if secs > 1 then
table.insert(t, format("%d %s", secs, SECONDS_ABBR_P1))
elseif secs == 1 then
table.insert(t, format("%d %s", secs, SECONDS_ABBR_S1))
end
end
if table.getn(t) == 0 then
if not hideSeconds then
return "0 " .. SECONDS_ABBR_P1
else
return "0 " .. MINUTES_ABBR_P1
end
else
return negative .. table.concat(t, " ")
end
else
if not duration or duration > 86400*36500 then -- 100 years
return "|cffffffff"..L_UNDETERMINED.."|r"
end
if days > 1 then
table.insert(t, format("|cffffffff%d|r %s", days, DAYS_ABBR_P1))
elseif days == 1 then
table.insert(t, format("|cffffffff%d|r %s", days, DAYS_ABBR_S1))
end
if hours > 1 then
table.insert(t, format("|cffffffff%d|r %s", hours, HOURS_ABBR_P1))
elseif hours == 1 then
table.insert(t, format("|cffffffff%d|r %s", hours, HOURS_ABBR_S1))
end
if mins > 1 then
table.insert(t, format("|cffffffff%d|r %s", mins, MINUTES_ABBR_P1))
elseif mins == 1 then
table.insert(t, format("|cffffffff%d|r %s", mins, MINUTES_ABBR_S1))
end
if not hideSeconds then
if secs > 1 then
table.insert(t, format("|cffffffff%d|r %s", secs, SECONDS_ABBR_P1))
elseif secs == 1 then
table.insert(t, format("|cffffffff%d|r %s", secs, SECONDS_ABBR))
end
end
if table.getn(t) == 0 then
if not hideSeconds then
return "|cffffffff0|r " .. SECONDS_ABBR_P1
else
return "|cffffffff0|r " .. MINUTES_ABBR_P1
end
elseif negative == "-" then
return "|cffffffff-|r" .. table.concat(t, " ")
else
return table.concat(t, " ")
end
end
end
function Abacus:FormatDurationFull(duration, colorize, hideSeconds)
local negative = ""
if duration ~= duration then
duration = 0
end
if duration < 0 then
negative = "-"
duration = -duration
end
if not colorize then
if not hideSeconds then
if not duration or duration > 86400*36500 then -- 100 years
return L_UNDETERMINED
elseif duration >= 86400 then
return format("%s%d%s %02d%s %02d%s %02d%s", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR, mod(duration, 60), L_SECOND_ONELETTER_ABBR)
elseif duration >= 3600 then
return format("%s%d%s %02d%s %02d%s", negative, duration/3600, L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR, mod(duration, 60), L_SECOND_ONELETTER_ABBR)
elseif duration >= 120 then
return format("%s%d%s %02d%s", negative, duration/60, L_MINUTE_ONELETTER_ABBR, mod(duration, 60), L_SECOND_ONELETTER_ABBR)
else
return format("%s%d%s", negative, duration, L_SECOND_ONELETTER_ABBR)
end
else
if not duration or duration > 86400*36500 then -- 100 years
return L_UNDETERMINED
elseif duration >= 86400 then
return format("%s%d%s %02d%s %02d%s", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR)
elseif duration >= 3600 then
return format("%s%d%s %02d%s", negative, duration/3600, L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR)
else
return format("%s%d%s", negative, duration/60, L_MINUTE_ONELETTER_ABBR)
end
end
else
if not hideSeconds then
if not duration or duration > 86400*36500 then -- 100 years
return "|cffffffff"..L_UNDETERMINED.."|r"
elseif duration >= 86400 then
return format("|cffffffff%s%d|r%s |cffffffff%02d|r%s |cffffffff%02d|r%s |cffffffff%02d|r%s", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR, mod(duration, 60), L_SECOND_ONELETTER_ABBR)
elseif duration >= 3600 then
return format("|cffffffff%s%d|r%s |cffffffff%02d|r%s |cffffffff%02d|r%s", negative, duration/3600, L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR, mod(duration, 60), L_SECOND_ONELETTER_ABBR)
elseif duration >= 120 then
return format("|cffffffff%s%d|r%s |cffffffff%02d|r%s", negative, duration/60, L_MINUTE_ONELETTER_ABBR, mod(duration, 60), L_SECOND_ONELETTER_ABBR)
else
return format("|cffffffff%s%d|r%s", negative, duration, L_SECOND_ONELETTER_ABBR)
end
else
if not duration or duration > 86400*36500 then -- 100 years
return "|cffffffff"..L_UNDETERMINED.."|r"
elseif duration >= 86400 then
return format("|cffffffff%s%d|r%s |cffffffff%02d|r%s |cffffffff%02d|r%s", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR)
elseif duration >= 3600 then
return format("|cffffffff%s%d|r%s |cffffffff%02d|r%s", negative, duration/3600, L_HOUR_ONELETTER_ABBR, mod(duration/60, 60), L_MINUTE_ONELETTER_ABBR)
else
return format("|cffffffff%s%d|r%s", negative, duration/60, L_MINUTE_ONELETTER_ABBR)
end
end
end
end
function Abacus:FormatDurationShort(duration, colorize, hideSeconds)
local negative = ""
if duration ~= duration then
duration = 0
end
if duration < 0 then
negative = "-"
duration = -duration
end
if not colorize then
if not duration or duration >= 86400*36500 then -- 100 years
return "***"
elseif duration >= 172800 then
return format("%s%.1f %s", negative, duration/86400, DAYS_ABBR_P1)
elseif duration >= 7200 then
return format("%s%.1f %s", negative, duration/3600, HOURS_ABBR_P1)
elseif duration >= 120 or not hideSeconds then
return format("%s%.1f %s", negative, duration/60, MINUTES_ABBR_P1)
else
return format("%s%.0f %s", negative, duration, SECONDS_ABBR_P1)
end
else
if not duration or duration >= 86400*36500 then -- 100 years
return "|cffffffff***|r"
elseif duration >= 172800 then
return format("|cffffffff%s%.1f|r %s", negative, duration/86400, DAYS_ABBR_P1)
elseif duration >= 7200 then
return format("|cffffffff%s%.1f|r %s", negative, duration/3600, HOURS_ABBR_P1)
elseif duration >= 120 or not hideSeconds then
return format("|cffffffff%s%.1f|r %s", negative, duration/60, MINUTES_ABBR_P1)
else
return format("|cffffffff%s%.0f|r %s", negative, duration, SECONDS_ABBR_P1)
end
end
end
function Abacus:FormatDurationCondensed(duration, colorize, hideSeconds)
local negative = ""
if duration ~= duration then
duration = 0
end
if duration < 0 then
negative = "-"
duration = -duration
end
if not colorize then
if hideSeconds then
if not duration or duration >= 86400*36500 then -- 100 years
return format("%s**%s **:**", negative, L_DAY_ONELETTER_ABBR)
elseif duration >= 86400 then
return format("%s%d%s %d:%02d", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), mod(duration/60, 60))
else
return format("%s%d:%02d", negative, duration/3600, mod(duration/60, 60))
end
else
if not duration or duration >= 86400*36500 then -- 100 years
return negative .. "**:**:**:**"
elseif duration >= 86400 then
return format("%s%d%s %d:%02d:%02d", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), mod(duration/60, 60), mod(duration, 60))
elseif duration >= 3600 then
return format("%s%d:%02d:%02d", negative, duration/3600, mod(duration/60, 60), mod(duration, 60))
else
return format("%s%d:%02d", negative, duration/60, mod(duration, 60))
end
end
else
if hideSeconds then
if not duration or duration >= 86400*36500 then -- 100 years
return format("|cffffffff%s**|r%s |cffffffff**|r:|cffffffff**|r", negative, L_DAY_ONELETTER_ABBR)
elseif duration >= 86400 then
return format("|cffffffff%s%d|r%s |cffffffff%d|r:|cffffffff%02d|r", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), mod(duration/60, 60))
else
return format("|cffffffff%s%d|r:|cffffffff%02d|r", negative, duration/3600, mod(duration/60, 60))
end
else
if not duration or duration >= 86400*36500 then -- 100 years
return format("|cffffffff%s**|r%s |cffffffff**|r:|cffffffff**|r:|cffffffff**|r", negative, L_DAY_ONELETTER_ABBR)
elseif duration >= 86400 then
return format("|cffffffff%s%d|r%s |cffffffff%d|r:|cffffffff%02d|r:|cffffffff%02d|r", negative, duration/86400, L_DAY_ONELETTER_ABBR, mod(duration/3600, 24), mod(duration/60, 60), mod(duration, 60))
elseif duration >= 3600 then
return format("|cffffffff%s%d|r:|cffffffff%02d|r:|cffffffff%02d|r", negative, duration/3600, mod(duration/60, 60), mod(duration, 60))
else
return format("|cffffffff%s%d|r:|cffffffff%02d|r", negative, duration/60, mod(duration, 60))
end
end
end
end
local function compat()
local Abacus20 = setmetatable({}, {__index = function(self, key)
if type(Abacus[key]) == "function" then
self[key] = function(self, ...)
return Abacus[key](Abacus, ...)
end
else
self[key] = Abacus[key]
end
return self[key]
end})
AceLibrary:Register(Abacus20, "Abacus-2.0", MINOR_VERSION*1000)
end
if AceLibrary then
compat()
elseif Rock then
function Abacus:OnLibraryLoad(major, instance)
if major == "AceLibrary" then
compat()
end
end
end
|
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========--
--
-- Purpose: Close Dialog class
--
--==========================================================================--
class "gui.closedialog" ( "gui.frame" )
local closedialog = gui.closedialog
function closedialog:closedialog( parent, name )
gui.frame.frame( self, parent, "Close Dialog", "Quit Game" )
self.width = love.window.toPixels( 546 )
self.height = love.window.toPixels( 203 )
self:doModal()
local label = gui.label(
self,
"Close Dialog Label",
"Are you sure you want to quit the game?"
)
label:setPos( love.window.toPixels( 36 ), love.window.toPixels( 86 ) )
label:setWidth( love.window.toPixels( 252 ) )
local buttonYes = gui.button( self, "Close Dialog Yes Button", "Yes" )
buttonYes:setPos(
love.window.toPixels( 36 ),
love.window.toPixels( 86 ) + label:getHeight() + love.window.toPixels( 18 )
)
buttonYes.onClick = function()
love._shouldQuit = true
love.quit()
end
local buttonNo = gui.button( self, "Close Dialog No Button", "No" )
buttonNo:setPos(
love.window.toPixels( 288 ),
love.window.toPixels( 86 ) + label:getHeight() + love.window.toPixels( 18 )
)
buttonNo.onClick = function()
self:close()
end
end
|
-----------------------------------
-- Area: Carpenters' Landing
-- NM: Cryptonberry Executor
-- !pos 120.615 -5.457 -390.133 2
-----------------------------------
local ID = require("scripts/zones/Carpenters_Landing/IDs")
mixins = {require("scripts/mixins/job_special")}
require("scripts/globals/missions")
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(tpz.mobMod.IDLE_DESPAWN, 180) -- 3 minutes
end
function onMobSpawn(mob)
tpz.mix.jobSpecial.config(mob, {
delay = 180,
specials =
{
{
id = tpz.jsa.MIJIN_GAKURE,
hpp = 100,
begCode = function(mob)
mob:messageText(mob, ID.text.CRYPTONBERRY_EXECUTOR_2HR)
end,
},
},
})
end
function onMobFight(mob, target)
-- spawn Assassins when enmity is gained against Executor
if mob:getLocalVar("spawnedAssassins") == 0 and mob:getCE(target) > 0 then
mob:setLocalVar("spawnedAssassins", 1)
SpawnMob(ID.mob.CRYPTONBERRY_EXECUTOR + 1)
SpawnMob(ID.mob.CRYPTONBERRY_EXECUTOR + 2)
SpawnMob(ID.mob.CRYPTONBERRY_EXECUTOR + 3)
end
end
function onMobDeath(mob, player, isKiller)
mob:messageText(mob, ID.text.CRYPTONBERRY_EXECUTOR_DIE)
if player:getCurrentMission(COP) == tpz.mission.id.cop.CALM_BEFORE_THE_STORM and player:getCharVar("Cryptonberry_Executor_KILL") < 2 then
player:setCharVar("Cryptonberry_Executor_KILL", 1)
end
end
|
local select = select
local w2l
local function unpack_flag(flag)
local tbl = {}
for i = 0, 64 do
local n = 1 << i
if n > flag then
break
end
if flag & n ~= 0 then
tbl[#tbl+1] = i + 1
end
end
return tbl
end
local function pack(...)
local tbl = {...}
tbl[#tbl] = nil
return tbl
end
local mt = {}
mt.__index = mt
function mt:set_index(...)
self.index = select(-1, ...)
return ...
end
function mt:unpack(str)
return self:set_index(str:unpack(self.content, self.index))
end
function mt:is_finish()
return ('I1'):unpack(self.content, self.index) == 0xFF
end
function mt:add_head(chunk)
chunk['地图'] = {
['文件版本'] = self:unpack 'l',
['地图版本'] = self:unpack 'l',
['编辑器版本'] = self:unpack 'l',
['地图名称'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['作者名字'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['地图描述'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['推荐玩家'] = w2l:load_wts(self.wts, (self:unpack 'z')),
}
chunk['镜头'] = {
['镜头范围'] = pack(self:unpack 'ffffffff'),
['镜头范围扩充'] = pack(self:unpack 'llll'),
}
chunk['地形'] = {
['地图宽度'] = self:unpack 'l',
['地图长度'] = self:unpack 'l',
}
local flag = self:unpack 'L'
chunk['选项'] = {
['关闭预览图'] = flag >> 0 & 1,
['自定义结盟优先权'] = flag >> 1 & 1,
['对战地图'] = flag >> 2 & 1,
['大型地图'] = flag >> 3 & 1,
['迷雾区域显示地形'] = flag >> 4 & 1,
['自定义玩家分组'] = flag >> 5 & 1,
['自定义队伍'] = flag >> 6 & 1,
['自定义科技树'] = flag >> 7 & 1,
['自定义技能'] = flag >> 8 & 1,
['自定义升级'] = flag >> 9 & 1,
['地图菜单标记'] = flag >> 10 & 1,
['地形悬崖显示水波'] = flag >> 11 & 1,
['地形起伏显示水波'] = flag >> 12 & 1,
['未知1'] = flag >> 13 & 1,
['未知2'] = flag >> 14 & 1,
['未知3'] = flag >> 15 & 1,
['未知4'] = flag >> 16 & 1,
['未知5'] = flag >> 17 & 1,
['未知6'] = flag >> 18 & 1,
['未知7'] = flag >> 19 & 1,
['未知8'] = flag >> 20 & 1,
['未知9'] = flag >> 21 & 1,
}
chunk['地形']['地形类型'] = self:unpack 'c1'
chunk['载入图'] = {
['序号'] = self:unpack 'l',
['路径'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['文本'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['标题'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['子标题'] = w2l:load_wts(self.wts, (self:unpack 'z')),
}
chunk['选项']['使用的游戏数据设置'] = self:unpack 'l'
chunk['战役'] = {
['路径'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['文本'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['标题'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['子标题'] = w2l:load_wts(self.wts, (self:unpack 'z')),
}
chunk['迷雾'] = {
['类型'] = self:unpack 'l',
['z轴起点'] = self:unpack 'f',
['z轴终点'] = self:unpack 'f',
['密度'] = self:unpack 'f',
['颜色'] = pack(self:unpack 'BBBB'),
}
chunk['环境'] = {
['天气'] = self:unpack 'c4',
['音效'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['光照'] = self:unpack 'c1',
['水面颜色'] = pack(self:unpack 'BBBB'),
}
end
function mt:add_player(chunk)
chunk['玩家'] = {
['玩家数量'] = self:unpack 'l',
}
for i = 1, chunk['玩家']['玩家数量'] do
chunk['玩家'..i] = {
['玩家'] = self:unpack 'l',
['类型'] = self:unpack 'l',
['种族'] = self:unpack 'l',
['修正出生点'] = self:unpack 'l',
['名字'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['出生点'] = pack(self:unpack 'ff'),
['低结盟优先权标记'] = unpack_flag(self:unpack 'L'),
['高结盟优先权标记'] = unpack_flag(self:unpack 'L'),
}
end
end
function mt:unpack_player_flag(chunk)
local flag = self:unpack 'L'
local tbl = unpack_flag(flag)
local exits = {}
for i = 1, chunk['玩家']['玩家数量'] do
local player = chunk['玩家'..i]
local id = player['玩家'] + 1
exits[id] = true
end
local result = {}
for _, id in ipairs(tbl) do
if exits[id] then
result[#result+1] = id
end
end
return result
end
function mt:add_force(chunk)
chunk['队伍'] = {
['队伍数量'] = self:unpack 'l',
}
for i = 1, chunk['队伍']['队伍数量'] do
local flag = self:unpack 'L'
chunk['队伍'..i] = {
['结盟'] = flag >> 0 & 1,
['结盟胜利'] = flag >> 1 & 1,
['共享视野'] = flag >> 3 & 1,
['共享单位控制'] = flag >> 4 & 1,
['共享高级单位设置'] = flag >> 5 & 1,
['玩家列表'] = self:unpack_player_flag(chunk),
['队伍名称'] = w2l:load_wts(self.wts, (self:unpack 'z')),
}
end
end
function mt:add_upgrade(chunk)
if self:is_finish() then
return
end
local count = self:unpack 'l'
for i = 1, count do
chunk['升级'..i] = {
['玩家列表'] = unpack_flag(self:unpack 'L'),
['ID'] = self:unpack 'c4',
['等级'] = self:unpack 'l',
['可用性'] = self:unpack 'l',
}
end
end
function mt:add_tech(chunk)
if self:is_finish() then
return
end
local count = self:unpack 'l'
for i = 1, count do
chunk['科技'..i] = {
['玩家列表'] = unpack_flag(self:unpack 'L'),
['ID'] = self:unpack 'c4',
}
end
end
function mt:add_randomgroup(chunk)
if self:is_finish() then
return
end
local count = self:unpack 'l'
for i = 1, count do
chunk['随机组'..i] = {
['ID'] = self:unpack 'l',
['随机组名称'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['设置'] = {},
}
local x = self:unpack 'l'
chunk['随机组'..i]['位置类型'] = pack(self:unpack(('l'):rep(x)))
local y = self:unpack 'l'
for y = 1, y do
chunk['随机组'..i]['设置'][y] = {
['几率'] = self:unpack 'l',
['ID'] = pack(self:unpack(('c4'):rep(x))),
}
end
end
end
function mt:add_randomitem(chunk)
if self:is_finish() then
return
end
local count = self:unpack 'l'
for i = 1, count do
chunk['物品列表'..i] = {
['ID'] = self:unpack 'l',
['物品列表名称'] = w2l:load_wts(self.wts, (self:unpack 'z')),
['设置'] = {},
}
--设置
local x = self:unpack 'l'
for x = 1, x do
chunk['物品列表'..i]['设置'][x] = {}
local y = self:unpack 'l'
for y = 1, y do
chunk['物品列表'..i]['设置'][x][y] = {
['几率'] = self:unpack 'l',
['ID'] = self:unpack 'c4',
}
end
end
end
end
return function (w2l_, content, wts)
if not content then
return nil
end
w2l = w2l_
local index = 1
local tbl = setmetatable({}, mt)
local data = {}
tbl.content = content
tbl.index = index
tbl.wts = wts
tbl:add_head(data)
tbl:add_player(data)
tbl:add_force(data)
tbl:add_upgrade(data)
tbl:add_tech(data)
tbl:add_randomgroup(data)
tbl:add_randomitem(data)
return data
end
|
local AddonName, AddonTable = ...
AddonTable.auchindoun = {
-- Vigilant Kaathar
110045, -- Kamuis Crystalline Staff of Wizardry
-- Soulbinder Nyami
110046, -- Hammer of The Soulbinder
110047, -- Soulcutter Mageblade
-- Azzakel
109995, -- Blood Seal of Azzakel
110048, -- Azzakels Boltslinger
-- Teron'gor
110005, -- Crystalline Blood Drop
110010, -- Mote of Corruption
110049, -- Bloodblade of Terongor
110050, -- Dagger of The Sanguine Emeralds
}
|
-- When IO is disabled, loadfile and dofile return errors
runtime.callcontext({flags="iosafe"}, function ()
print(pcall(loadfile, "foo"))
--> ~false\t.*: missing flags: iosafe
print(pcall(dofile, "bar"))
--> ~false\t.*: missing flags: iosafe
end)
|
for index, force in pairs(game.forces) do
if force.technologies["useful-combinators"].researched then
force.recipes["random-combinator"].enabled = true
--force.recipes["logic-combinator"].enabled = true
force.recipes["comparator-combinator"].enabled = true
end
end |
--
-- vim: ts=4 sw=4 et
--
print('arg', arg)
box.cfg({
replication = os.getenv("MASTER"),
listen = os.getenv("LISTEN"),
memtx_memory = 107374182,
replication_timeout = 0.1,
replication_connect_timeout = 0.5,
read_only = true,
})
require('console').listen(os.getenv('ADMIN'))
|
function gcd(x,y)
if y==0 then return x
else return gcd(y,x%y)
end
end
function extendedGCD(a,b)
local s=0;local old_s=1
local t=1;local old_t=0
local r=b;local old_r=a
local q=0
local fl=math.floor
while r ~= 0 do
q= fl(old_r/r)
old_r, r = r, old_r - q*r
old_s, s = s, old_s - q*s
old_t, t = t, old_t - q*t
-- print(q,r,s,t)
end
return old_s,old_t,old_r
end
|
object_mobile_dressed_restuss_rebel_lt_grollo = object_mobile_shared_dressed_restuss_rebel_lt_grollo:new {
}
ObjectTemplates:addTemplate(object_mobile_dressed_restuss_rebel_lt_grollo, "object/mobile/dressed_restuss_rebel_lt_grollo.iff")
|
local dom = {}
dom.Config = doFile('./src/config.lua', dom)
dom.Project = doFile('./src/project.lua', dom)
dom.Root = doFile('./src/root.lua', dom)
dom.Workspace = doFile('./src/workspace.lua', dom)
return dom
|
slot0 = class_C("Effect", ClassLoader:aquireClass("Component"))
slot0.onCreate = function (slot0)
slot0.super.onCreate(slot0)
slot0:addProperty("effectType")
slot0:addProperty("effectParam")
slot0:addProperty("isDead")
end
slot0.onLoad = function (slot0)
slot0.super.onLoad(slot0)
slot0:bindSameName("isDead", slot0:getValue("owner"), "TWO_WAY")
end
slot0.onUnload = function (slot0)
slot0.super.onUnload(slot0)
end
slot0.on_isDead_changed = function (slot0)
if slot0:getValue("isDead") then
slot0:execute()
end
end
slot0.execute = function (slot0)
return
end
return slot0
|
local function round( x )
if x >= 0 then
return math.floor( x + 0.5 )
else
return math.floor( x - 0.5 )
end
end
local function endsWith( str, pattern )
local index = string.find( str, pattern, 1, true )
return index and string.sub(str,index) == pattern
end
-- Ember doesn't like floating-point numbers, except when it really
-- likes them. Apparently, all the settings that represents exposure
-- times in seconds need to have a decimal, and none of the other
-- settings may have a decimal.
local function handleDecimals( name, value )
if endsWith(name,"ExposureSec") then
value = string.format( "%.3f", value )
else
value = tostring( round(value) )
end
return value
end
local function encodeSettings( settings )
local str = ""
str = str .. "{\n"
str = str .. " \"Settings\": {\n"
local names = {}
for n, _ in pairs(settings) do
table.insert( names, n )
end
table.sort( names )
for i = 1, #names do
local name = names[i]
local value = settings[name]
local setting = string.format( " \"%s\": %s", name, value )
local postfix
if i == #names then
postfix = "\n"
else
postfix = ",\n"
end
str = str .. setting .. postfix
end
str = str .. " }\n"
str = str .. "}\n"
return str
end
local packager = function( params )
local writer = awZip.TarWriter.new()
writer.openTarFile( params.outputFile, true )
-- write printsettings
-- cm to micron,
-- seconds to miliseconds
-- degrees to milidegrees
local conversions = {
l = 10000,
t = 1000,
a = 1000,
}
local getParam = function( emberName, name, convCode )
local value = params.profile[name]
assert( value ~= nil, "Property not found: " .. name )
if type(value) == "number" then
if convCode ~= nil then
if convCode == "a" then
value = conversions[convCode] * math.deg(value)
else
value = conversions[convCode] * value
end
end
value = handleDecimals( emberName, value )
end
return value
end
local mapping = {
{ "LayerThicknessMicrons", "layer_height", "l" },
{ "BurnInExposureSec", "burn_in_exposure" },
{ "BurnInLayers", "burn_in_layers" },
{ "BurnInSeparationRPM", "burn_in_layer_separation_slide_velocity" },
{ "BurnInApproachRPM", "burn_in_layer_approach_slide_velocity" },
{ "BurnInZLiftMicrons", "burn_in_layer_z_axis_overlift", "l" },
{ "BurnInSeparationMicronsPerSec", "burn_in_layer_separation_z_axis_velocity", "l" },
{ "BurnInApproachMicronsPerSec", "burn_in_layer_approach_z_axis_velocity", "l" },
{ "BurnInRotationMilliDegrees", "burn_in_layer_angle_of_rotation", "a" },
{ "BurnInExposureWaitMS", "burn_in_layer_wait_after_exposure", "t" },
{ "BurnInSeparationWaitMS", "burn_in_layer_wait_after_separation", "t" },
{ "BurnInApproachWaitMS", "burn_in_layer_wait_after_approach", "t" },
{ "FirstExposureSec", "first_layer_exposure_time" },
{ "FirstSeparationRPM", "first_layer_separation_slide_velocity" },
{ "FirstApproachRPM", "first_layer_approach_slide_velocity" },
{ "FirstZLiftMicrons", "first_layer_z_axis_overlift", "l" },
{ "FirstSeparationMicronsPerSec", "first_layer_separation_z_axis_velocity", "l" },
{ "FirstApproachMicronsPerSec", "first_layer_approach_z_axis_velocity", "l" },
{ "FirstRotationMilliDegrees", "first_layer_angle_of_rotation", "a" },
{ "FirstExposureWaitMS", "first_layer_wait_after_exposure", "t" },
{ "FirstSeparationWaitMS", "first_layer_wait_after_separation", "t" },
{ "FirstApproachWaitMS", "first_layer_wait_after_approach", "t" },
{ "ModelExposureSec", "model_exposure_time" },
{ "ModelSeparationRPM", "model_layer_separation_slide_velocity" },
{ "ModelApproachRPM", "model_layer_approach_slide_velocity", },
{ "ModelZLiftMicrons", "model_layer_z_axis_overlift", "l" },
{ "ModelSeparationMicronsPerSec", "model_layer_separation_z_axis_velocity", "l" },
{ "ModelApproachMicronsPerSec", "model_layer_approach_z_axis_velocity", "l" },
{ "ModelRotationMilliDegrees", "model_layer_angle_of_rotation", "a" },
{ "ModelExposureWaitMS", "model_layer_wait_after_exposure", "t" },
{ "ModelSeparationWaitMS", "model_layer_wait_after_separation", "t" },
{ "ModelApproachWaitMS", "model_layer_wait_after_approach", "t" }
}
-- add the job name
local settings = {
JobName = string.format( "\"%s\"", params.jobTitle )
}
for _, item in ipairs(mapping) do
settings[item[1]] = getParam( item[1], item[2], item[3] )
end
-- The "printsettings" file isn't a real JSON file. Some of the
-- settings need to be expressed as a floating point value, even
-- when they are numerically just integers.
local settingsStr = encodeSettings( settings )
local settingsStream = writer.addStream( "printsettings", settingsStr:len() )
settingsStream.write( settingsStr )
writer.closeStream()
-- write the slices
local reader = awZip.Reader.new()
reader.openZipFile( params.inputFiles[1] )
local files = reader.getDirectory()
for i = 1, #files do
local stream = writer.addStream(files[i], reader.fileSize(files[i]) )
reader.readFile(files[i], stream)
writer.closeStream()
end
reader.closeZipFile()
writer.close()
return true
end
return packager
|
Map = {}
Map.__index = Map
function Map:Create(mapDef)
local layer = mapDef.layers[1]
local this =
{
mX = 0,
mY = 0,
mMapDef = mapDef,
mTextureAtlas = Texture.Find(mapDef.tilesets[1].image),
mTileSprite = Sprite.Create(),
mLayer = layer,
mWidth = layer.width,
mHeight = layer.height,
mTiles = layer.data,
mTileWidth = mapDef.tilesets[1].tilewidth,
mTileHeight = mapDef.tilesets[1].tileheight,
mTriggers = {},
mEntities = {},
mNPCs = {},
mNPCbyId = {},
}
this.mTileSprite:SetTexture(this.mTextureAtlas)
-- Top left corner of the map
this.mX = -System.ScreenWidth() / 2 + this.mTileWidth / 2
this.mY = System.ScreenHeight() / 2 - this.mTileHeight / 2
this.mCamX = 0
this.mCamY = 0
this.mWidthPixel = this.mWidth * this.mTileWidth
this.mHeightPixel = this.mHeight * this.mTileHeight
this.mUVs = GenerateUVs(mapDef.tilesets[1].tilewidth,
mapDef.tilesets[1].tileheight,
this.mTextureAtlas)
-- Assign blocking tile id
for _, v in ipairs(mapDef.tilesets) do
if v.name == "collision_graphic" then
this.mBlockingTile = v.firstgid
end
end
assert(this.mBlockingTile)
print('blocking tile is', this.mBlockingTile)
--
-- Create the Actions from the def
--
this.mActions = {}
for name, def in pairs(mapDef.actions or {}) do
-- Look up the action and create the action-function
-- The action takes in the map as the first param
assert(Actions[def.id])
local action = Actions[def.id](this, unpack(def.params))
this.mActions[name] = action
end
--
-- Create the Trigger types from the def
--
this.mTriggerTypes = {}
for k, v in pairs(mapDef.trigger_types or {}) do
local triggerParams = {}
for callback, action in pairs(v) do
triggerParams[callback] = this.mActions[action]
assert(triggerParams[callback])
end
this.mTriggerTypes[k] = Trigger:Create(triggerParams)
end
-- Setup encounter data
local encounterData = mapDef.encounters or {}
this.mEncounters = {}
for k, v in ipairs(encounterData) do
local oddTable = OddmentTable:Create(v)
this.mEncounters[k] = oddTable
end
print("Oddment size", #this.mEncounters)
setmetatable(this, self)
--
-- Place any triggers on the map
--
this.mTriggers = {}
for k, v in ipairs(mapDef.triggers) do
this:AddTrigger(v)
end
for _, v in ipairs(mapDef.on_wake or {}) do
local action = Actions[v.id]
action(this, unpack(v.params))()
end
return this
end
-- If would be good to renamed this AddTrigerFromDef
function Map:AddTrigger(def)
local x = def.x
local y = def.y
local layer = def.layer or 1
if not self.mTriggers[layer] then
self.mTriggers[layer] = {}
end
local targetLayer = self.mTriggers[layer]
local trigger = self.mTriggerTypes[def.trigger]
assert(trigger)
targetLayer[self:CoordToIndex(x, y)] = trigger
--print("Add trigger", x, y)
--print("Trigger", self:GetTrigger(x, y, layer))
end
function Map:AddFullTrigger(trigger, x, y, layer)
layer = layer or 1
-- Create trigger layer if it doesn't exist.
if not self.mTriggers[layer] then
self.mTriggers[mLayer] = {}
end
local targetLayer = self.mTriggers[layer]
targetLayer[self:CoordToIndex(x, y)] = trigger
end
function Map:GetEntity(x, y, layer)
if not self.mEntities[layer] then
return nil
end
local index = self:CoordToIndex(x, y)
return self.mEntities[layer][index]
end
function Map:AddEntity(entity)
-- Add the layer if it doesn't exist
if not self.mEntities[entity.mLayer] then
self.mEntities[entity.mLayer] = {}
end
local layer = self.mEntities[entity.mLayer]
local index = self:CoordToIndex(entity.mTileX, entity.mTileY)
assert(layer[index] == entity or layer[index] == nil)
layer[index] = entity
end
function Map:RemoveEntity(entity)
-- The layer should exist!
assert(self.mEntities[entity.mLayer])
local layer = self.mEntities[entity.mLayer]
local index = self:CoordToIndex(entity.mTileX, entity.mTileY)
-- The entity should be at the position
assert(entity == layer[index])
layer[index] = nil
end
function Map:GetTile(x, y, layer)
local layer = layer or 1
local tiles = self.mMapDef.layers[layer].data
return tiles[self:CoordToIndex(x, y)]
end
function Map:WriteTile(params)
local layer = params.layer or 1
local detail = params.detail or 0
-- Each layer is 3 of parts
layer = ((layer - 1) * 3) + 1
print("LAYER SET TO", layer)
local x = params.x
local y = params.y
local tile = params.tile
local collision = self.mBlockingTile
if not params.collision then
collision = 0
end
local index = self:CoordToIndex(x, y)
local tiles = self.mMapDef.layers[layer].data
tiles[index] = tile
-- Detail
tiles = self.mMapDef.layers[layer + 1].data
tiles[index] = detail
-- Collision
tiles = self.mMapDef.layers[layer + 2].data
tiles[index] = collision
end
function Map:GetTrigger(x, y, layer)
layer = layer or 1
local triggers = self.mTriggers[layer]
if not triggers then
return
end
local index = self:CoordToIndex(x, y)
return triggers[index]
end
function Map:RemoveTrigger(x, y, layer)
layer = layer or 1
assert(self.mTriggers[layer])
local triggers = self.mTriggers[layer]
local index = self:CoordToIndex(x, y)
assert(triggers[index])
triggers[index] = nil
end
function Map:GetNPC(x, y, layer)
layer = layer or 1
for _, npc in ipairs(self.mNPCs) do
if npc.mEntity.mTileX == x
and npc.mEntity.mTileY == y
and npc.mEntity.mLayer == layer then
return npc
end
end
return nil
end
function Map:RemoveNPC(x, y, layer)
layer = layer or 1
for i = #self.mNPCs, 1, -1 do
local npc = self.mNPCs[i]
if npc.mEntity.mTileX == x
and npc.mEntity.mTileY == y
and npc.mEntity.mLayer == layer then
table.remove(self.mNPCs, i)
self:RemoveEntity(npc.mEntity)
self.mNPCbyId[npc.mId] = nil
return true
end
end
return false
end
function Map:CoordToIndex(x, y)
x = x + 1 -- change from 1 -> rowsize
-- to 0 -> rowsize - 1
return x + y * self.mWidth
end
function Map:IsBlocked(layer, tileX, tileY)
-- Collision layer should always be 2 above the official layer
local tile = self:GetTile(tileX, tileY, layer + 2)
local entity = self:GetEntity(tileX, tileY, layer)
--print(tileX, tileY, layer, tile, tile == self.mBlockingTile)
return tile == self.mBlockingTile or entity ~= nil
end
function Map:GetTileFoot(x, y)
return self.mX + (x * self.mTileWidth),
self.mY - (y * self.mTileHeight) - self.mTileHeight / 2
end
function Map:GotoTile(x, y)
print("Goto tile:", x, y)
self:Goto((x * self.mTileWidth) + self.mTileWidth/2,
(y * self.mTileHeight) + self.mTileHeight/2)
end
function Map:Goto(x, y)
self.mCamX = x - System.ScreenWidth()/2
self.mCamY = -y + System.ScreenHeight()/2
end
function Map:PointToTile(x, y)
-- Tiles are rendered from the center so we adjust for this.
x = x + self.mTileWidth / 2
y = y - self.mTileHeight / 2
-- Clamp the point to the bounds of the map
x = math.max(self.mX, x)
y = math.min(self.mY, y)
x = math.min(self.mX + self.mWidthPixel - 1, x)
y = math.max(self.mY- self.mHeightPixel + 1, y)
-- Map from the bounded point to a tile
local tileX = math.floor((x - self.mX) / self.mTileWidth)
local tileY = math.floor((self.mY - y) / self.mTileHeight)
return tileX, tileY
end
function Map:LayerCount()
-- Number of layers should be a factor of 3
assert(#self.mMapDef.layers % 3 == 0)
return #self.mMapDef.layers / 3
end
function Map:Render(renderer)
self:RenderLayer(renderer, 1)
end
function Map:TileToScreen(tX, tY)
local x = -self.mCamX + self.mX + tX * self.mTileWidth
local y = -self.mCamY + self.mY - tY * self.mTileHeight
return x, y
end
function Map:RenderLayer(renderer, layer, hero)
-- Our layers are made of 3 sections
-- We want the index to point to the tile layer of a give section
local layerIndex = (layer * 3) - 2
local tileLeft, tileBottom =
self:PointToTile(self.mCamX - System.ScreenWidth() / 2,
self.mCamY - System.ScreenHeight() / 2)
local tileRight, tileTop =
self:PointToTile(self.mCamX + System.ScreenWidth() / 2,
self.mCamY + System.ScreenHeight() / 2)
for j = tileTop, tileBottom do
for i = tileLeft, tileRight do
local tile = self:GetTile(i, j, layerIndex)
local uvs = {}
self.mTileSprite:SetPosition(self.mX + i * self.mTileWidth,
self.mY - j * self.mTileHeight)
-- There can be empty tiles in the first layer too!
if tile > 0 then
uvs = self.mUVs[tile]
assert(uvs, string.format("No uvs for tile [%d]", tile))
self.mTileSprite:SetUVs(unpack(uvs))
renderer:DrawSprite(self.mTileSprite)
end
-- The second section of layer is always the decoration.
tile = self:GetTile(i, j, layerIndex + 1)
-- If the decoration tile exists
if tile > 0 then
uvs = self.mUVs[tile]
self.mTileSprite:SetUVs(unpack(uvs))
renderer:DrawSprite(self.mTileSprite)
end
end
local entLayer = self.mEntities[layer] or {}
local drawList = { hero }
for _, j in pairs(entLayer) do
table.insert(drawList, j)
end
table.sort(drawList, function(a, b) return a.mTileY < b.mTileY end)
for _, j in ipairs(drawList) do
j:Render(renderer)
end
end
end
function Map:TryEncounter(x, y, layer)
-- Get the tile id from the collision layer (layer +2)
local tile = self:GetTile(x, y, layer + 2)
if tile <= self.mBlockingTile then
return
end
-- Get the index into the encounter table
local index = tile - self.mBlockingTile
local odd = self.mEncounters[index]
if not odd then
return
end
local encounter = odd:Pick()
-- Empty encounter
if not next(encounter) then
return
end
print(string.format("%d tile id. index: %d", tile, index))
local action = Actions.Combat(self, encounter)
action(nil, nil, x, y, layer)
end |
ITEM.name = "Colt Python"
ITEM.description = "The Colt Python is a .357 Magnum caliber revolver formerly manufactured by Colt's Manufacturing Company of Hartford, Connecticut. It is sometimes referred to as a 'Combat Magnum'. It was first introduced in 1955, the same year as Smith & Wesson's M29 .44 Magnum."
ITEM.model = "models/weapons/ethereal/w_python.mdl"
ITEM.class = "cw_kk_ins2_python"
ITEM.weaponCategory = "secondary"
ITEM.width = 1
ITEM.height = 1
ITEM.price = 8000
ITEM.weight = 3 |
grid = {}
function grid.stack(images, nRow, nCol)
-- nBatch x Height x Width
if images:dim() == 3 then
local H = images:size(2)
local W = images:size(3)
local grid = torch.Tensor(nRow, nCol, H, W)
local idx = 0
for i = 1,nRow do
for j = 1,nCol do
idx = idx + 1
grid[{i,j}]:copy(images[idx])
end
end
-- indexing tricks
grid = grid:transpose(3, 4):contiguous():view(nRow, nCol*W, H)
grid = grid:transpose(2, 3):contiguous():view(nRow*H, nCol*W)
return grid
elseif images:dim() == 4 then
local C = images:size(2)
local H = images:size(3)
local W = images:size(4)
local grid = torch.Tensor(nRow, nCol, C, H, W)
local idx = 0
for i = 1,nRow do
for j = 1,nCol do
idx = idx + 1
grid[{i,j}]:copy(images[idx])
end
end
-- indexing tricks
grid = grid:transpose(2, 4):contiguous():view(nRow*H, C, nCol*W)
grid = grid:transpose(1, 2):contiguous():view(C, nRow*H, nCol*W)
return grid
end
end
function grid.t(image)
-- transpose along the last two dimensions
local len = image:dim()
return image:transpose(len, len-1):contiguous()
end
function grid.split(image, dim)
-- split evenly along dim
local N = image:size(dim)
assert(N % 2 == 0, "Non-even number of values!")
local mu, lv = unpack(image:split(N/2, dim))
mu = mu:squeeze()
lv = lv:squeeze()
return mu, lv
end
|
for i = 0, 10 do
local j = 0
while j < 10 do
print ("j: " .. j) -- Will never be > 2
if j == 2 then
print ("j is: " .. j .. ", i is:" .. i)
break
end
j = j + 1
end
end |
-----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Gavrie
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Aht_Urhgan_Whitegate/IDs")
require("scripts/globals/shop")
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
local stock =
{
4150, 2595, -- Eye Drops
4148, 316, -- Antidote
4151, 800, -- Echo Drops
4112, 910, -- Potion
4128, 4832, -- Ether
4155, 3360, -- Remedy
4509, 12, -- Distilled Water
18731, 50, -- Automaton Oil
18732, 250, -- Automaton Oil +1
18733, 500, -- Automaton Oil +2
19185, 1000 -- Automaton Oil +3
}
player:showText(npc, ID.text.GAVRIE_SHOP_DIALOG)
tpz.shop.general(player, stock)
end
function onEventUpdate(player, csid, option)
end
function onEventFinish(player, csid, option)
end
|
local boolean = imgui.Boolean.new(true)
local check_select = imgui.Boolean.new(false);
local sliderValue = imgui.Floater.new(0);
local integer = imgui.Integer.new(0);
local size = imgui.Floater.new(36)
local thickness = imgui.Floater.new(36)
local function main()
if boolean:getValue() then
imgui.Begin("title1",boolean:getPtr());
imgui.Text("this is a custom window");
if (imgui.Button("Close Me")) then
boolean:setValue(false)
end
imgui.SameLine();
imgui.Checkbox("checkBox", check_select:getPtr());
if (check_select:getValue()) then
is_open = false;
end
imgui.RadioButton("radio a", integer:getPtr(), 0); imgui.SameLine();
imgui.RadioButton("radio b", integer:getPtr(), 1); imgui.SameLine();
imgui.RadioButton("radio c", integer:getPtr(), 2);
imgui.DragFloat("Size", size:getPtr(), 0.2, 2.0, 72.0, "%.0f",1.0);
imgui.DragFloat("Thickness", thickness:getPtr(), 0.05, 1.0, 8.0, "%.02f",1.0);
imgui.End();
end
end
function Main()
main()
end
|
#!/bin/luajit
-- optimalization
-- kindle - I execute 2 times, maybe I don't need title of the article, I can useos.tmpfile - but it remove file after end of the script
package.path = '/home/miro/Documents/dotfiles/common/scripts/.bin/' .. package.path
util = require('scriptsUtil')
HELP = [[
Utils for using URLs from the system clipboard.
link.lua action [number|url]
List of the actions:
menu - show rofi with available actions
audio - downlad audio via youtube-dl
yt - downlad video via youtube-dl
tor - create torrent file form a magnetlink
kindle - downlad video via gallery-dl
read - convert website to asciidoc and show it in 'reader view' mode
wget - downlad file via wget
video - play video in video player (mpv)
gallery - downlad images via gallery-dl
List of the options:
number - number of line from clipboard-default is 1
input - show form input for the number
url - link of the website
-h help - show help
dependencies: mpv, youtube-dl, gallery-dl, clipster, readability-cli (node 12), mailx, speedread
]]
YT_DIR = '~/Videos/YouTube/'
WGET_DIR = '~/Downloads/wget' -- can't have spaces
AUDIO_DIR = '~/Musics/PODCASTS/'
GALLERY_DIR = '~/Pictures/gallery-dl/'
LINK_REGEX = "^https?://(([%w_.~!*:@&+$/?%%#-]-)(%w[-.%w]*%.)(%w%w%w?%w?)(:?)(%d*)(/?)([%w_.~!*:@&+$/?%%#=-]*))"
TOR_REGEX = "xt=urn:btih:([^&/]+)"
action = arg[1]
urlArg = arg[2] and arg[2] or 1
function execXargs(args, cmd)
args = table.concat(args, '\n')
local status = os.execute('echo "' .. args .. '" ' .. cmd)
assert(status == 0, "Could not execute command")
return "Executed"
end
function createTorrent(magnetlinks)
local torDir = os.getenv('TOR_WATCH')
os.execute('mkdir -p ' .. torDir)
for i, magnetlink in ipairs(magnetlinks) do
local hash = magnetlink:match(TOR_REGEX)
local file = io.open(torDir .. '/meta-' .. hash.. '.torrent', 'w')
file:write('d10:magnet-uri' .. #magnetlink .. ':' .. magnetlink .. 'e')
file:close()
end
return '⬇️ Start downloading torrent'
end
-- require node 12
function sendToKindle(linkTab)
local tmpDir = '/tmp/kindle/'
local kindleEmail = io.input(os.getenv('PRIVATE') .. '/kindle_email'):read('*a'):gsub('%s', '')
local articlesWithErrors = {}
os.execute('mkdir -p ' .. tmpDir)
for i, link in ipairs(linkTab) do
local title = io.popen('readable -A "Mozilla" -q true "' .. link .. '" -p title'):read('*a'):gsub('[^a-zA-Z0-9-_]', '-')
if #title ~= 0 then
-- converting to pdf has error in pandoc, html need to have <html> <body> tags and has problem with encoding
local createFile = os.execute('readable -A "Mozilla" -q true "' .. link .. '" -p html-title,length,html-content | pandoc --from html --to docx --output ' .. tmpDir .. title .. '.docx')
--[[
append link to the article - I have to do it before pandoc
doc = io.open(tmpDir .. title .. '.docx', "a+")
doc:write(link)
doc:close() ]]
local sendFile = os.execute('echo "' .. title .. '\nKindle article from readability-cli" | mailx -v -s "Kindle" -a' .. tmpDir .. title .. '.docx ' .. kindleEmail)
if createFile ~= 0 or sendFile ~= 0 then -- readability-cli return 0 in error
table.insert(articlesWithErrors, link)
end
else
table.insert(articlesWithErrors, link)
end
end
assert(#articlesWithErrors == 0, 'Could not send ' .. #articlesWithErrors .. ' articles\n' .. table.concat(articlesWithErrors, '\n'))
return 'Sent ' .. #linkTab .. ' articles'
end
function readable(linkTab)
local tmpname = os.tmpname()
for i, link in ipairs(linkTab) do
local createFile = os.execute('readable -A "Mozilla" -q true "' .. link .. '" -p html-title,length,html-content | pandoc --from html --to asciidoc --output ' .. tmpname .. '.adoc')
os.execute('st -t read -n read -e nvim ' .. tmpname .. '.adoc') -- can read form evns
assert(createFile == 0, 'Could not create file')
end
return 'Created file ' .. tmpname
end
function speed(linkTab)
local tmpname = os.tmpname()
for i, link in ipairs(linkTab) do
local createFile = os.execute('readable -A "Mozilla" -q true "' .. link .. '" -p html-title,length,html-content | pandoc --from html --to plain --output ' .. tmpname)
-- os.execute('st -t rsvp -n rsvp -e sh -c "cat ' .. tmpname .. ' | speedread -w 300"')
os.execute('wezterm --config font_size=19.0 start --class rsvp -- sh -c "cat ' .. tmpname .. ' | speedread -w 300"')
assert(createFile == 0, 'Could not create file')
end
return 'RSVP finished ' .. tmpname
end
function wget(linkTab)
os.execute('mkdir -p ' .. WGET_DIR)
local cmd = "| xargs -P 0 -I {} wget -P " .. WGET_DIR .. " {}"
-- -U "Mozilla"
return execXargs, cmd
end
function audio()
os.execute('mkdir -p ' .. AUDIO_DIR)
local cmd = "| xargs -P 0 -I {} youtube-dl -f bestaudio -x --audio-format mp3 -o '".. AUDIO_DIR .. "%(title)s.%(ext)s' {}"
return execXargs, cmd
end
function yt()
os.execute('mkdir -p ' .. YT_DIR)
local cmd = "| xargs -P 0 -I {} youtube-dl -o '".. YT_DIR .. "%(title)s.%(ext)s' {}"
return execXargs, cmd
end
function gallery()
os.execute('mkdir -p ' .. GALLERY_DIR)
local cmd = "| xargs -P 0 -I {} gallery-dl -d '" .. GALLERY_DIR .. "' {}"
return execXargs, cmd
end
local options = {
["audio"]= audio,
["yt"]= yt,
["tor"]= function() return createTorrent end,
["kindle"]= function() return sendToKindle end,
["read"]= function() return readable end,
["speed"]= function() return speed end,
["wget"]= wget,
["video"]= function() return execXargs, "| xargs -P 0 -I {} mpv {}" end,
["gallery"]= gallery,
["-h"]= function() print(HELP); os.exit() end,
["#default"]= audio
}
local switch = (function(name,args)
local sw = options
return (sw[name]and{sw[name]}or{sw["#default"]})[1](args)
end)
if action == 'menu' then
action = util.menu(options)
end
function filtrLinks(clipboardStream, regex)
local links = {}
for line in clipboardStream:lines() do
local match = line:match(regex)
if match then table.insert(links, line) end
end
if #links == 0 then util.errorHandling('No link provided') end
return links
end
linkTab = {}
if urlArg == 'input' then
urlArg = util.input('No. urls')
end
if action == '-h' or action == 'help' then
action = '-h'
elseif tonumber(urlArg) then
local clipboard = io.popen("clipster --output --clipboard -n " .. urlArg )
local regex = action == 'tor' and TOR_REGEX or LINK_REGEX
linkTab = filtrLinks(clipboard, regex)
else
table.insert(linkTab, urlArg)
end
local exec, cmd = switch(action)
local status, val = pcall(exec, linkTab, cmd)
if status then
util.notify(val)
else
util.errorHandling(val)
end
|
local L = BigWigs:NewBossLocale("Cordana Felsong", "deDE")
if not L then return end
if L then
L.kick_combo = "Kick Combo"
L.light_dropped = "%s hat das Licht fallen gelassen."
L.light_picked = "%s hat das Licht aufgenommen."
L.warmup_text = "Cordana Teufelsang aktiv"
L.warmup_trigger = "Ich habe, wofür ich gekommen bin. Doch ich wollte Euch noch persönlich ein Ende setzen... ein für alle Mal."
L.warmup_trigger_2 = "Und jetzt sitzt Ihr Narren in meiner Falle. Sehen wir mal, wie Ihr im Dunkeln zurechtkommt."
end
L = BigWigs:NewBossLocale("Glazer", "deDE")
if L then
L.radiation_level = "%s: %d%%"
end
L = BigWigs:NewBossLocale("Tirathon Saltheril", "deDE")
if L then
L.warmup_trigger = "Ich diene MEINEM Volk, den Vertriebenen und Verstoßenen."
end
L = BigWigs:NewBossLocale("Vault of the Wardens Trash", "deDE")
if L then
L.infester = "Verseucher des Dämonenpakts"
L.myrmidon = "Myrmidone des Dämonenpakts"
L.fury = "Teufelsberauschter Wüter"
L.mother = "Üble Mutter"
L.illianna = "Klingentänzerin Illianna"
L.mendacius = "Schreckenslord Mendacius"
L.grimhorn = "Grimmhorn der Versklaver"
end
|
--[[
openwrt-dist-luci: ChinaDNS
]]--
module("luci.controller.chinadns", package.seeall)
function index()
if not nixio.fs.access("/etc/config/chinadns") then
return
end
local page
page = node("admin", "wwbhl")
page.target = firstchild()
page.title = _("wwbhl")
page.order = 65
entry({"admin", "wwbhl", "chinadns"}, cbi("chinadns"), _("ChinaDNS"), 70).dependent = true
end
|
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(22)
--!./tcltestrunner.lua
-- 2014-04-21
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May y ou do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, never taking more than you give.
--
---------------------------------------------------------------------------
--
-- Test that ticket [b75a9ca6b0] has been fixed.
--
-- Ticket [b75a9ca6b0] concerns queries that have both a GROUP BY
-- and an ORDER BY. This code verifies that SQLite is able to
-- optimize out the ORDER BY in some circumstances, but retains the
-- ORDER BY when necessary.
--
-- ["set","testdir",[["file","dirname",["argv0"]]]]
-- ["source",[["testdir"],"\/tester.tcl"]]
testprefix = "tkt-b75a9ca6b0"
test:do_execsql_test(
1,
[[
CREATE TABLE t1 (id INT primary key, x INT, y INT);
INSERT INTO t1 VALUES (1, 1, 3);
INSERT INTO t1 VALUES (2, 2, 2);
INSERT INTO t1 VALUES (3, 3, 1);
]])
test:do_execsql_test(
1.1,
[[
CREATE INDEX i1 ON t1(x, y);
]])
local idxscan = {0, 0, 0, "SCAN TABLE T1 USING COVERING INDEX I1"}
local tblscan = {0, 0, 0, "SCAN TABLE T1"}
local grpsort = {0, 0, 0, "USE TEMP B-TREE FOR GROUP BY"}
local sort = {0, 0, 0, "USE TEMP B-TREE FOR ORDER BY"}
local eqps = {
{"SELECT x,y FROM t1 GROUP BY x, y ORDER BY x,y", {1, 3, 2, 2, 3, 1}, {idxscan}},
{"SELECT x,y FROM t1 GROUP BY x, y ORDER BY x", {1, 3, 2, 2, 3, 1}, {idxscan, sort}},
{"SELECT x,y FROM t1 GROUP BY y, x ORDER BY y, x", {3, 1, 2, 2, 1, 3}, {idxscan, sort}},
{"SELECT x,y FROM t1 GROUP BY x ORDER BY x", {1, 3, 2, 2, 3, 1}, {idxscan}},
-- idxscan->tblscan after reorderind indexes list
-- but it does not matter
{"SELECT x,y FROM t1 GROUP BY y ORDER BY y", {3, 1, 2, 2, 1, 3}, {tblscan, grpsort}},
-- idxscan->tblscan after reorderind indexes list
-- but it does not matter (because it does full scan)
{"SELECT x,y FROM t1 GROUP BY y ORDER BY x", {1, 3, 2, 2, 3, 1}, {tblscan, grpsort, sort}},
{"SELECT x,y FROM t1 GROUP BY x, y ORDER BY x, y DESC", {1, 3, 2, 2, 3, 1}, {idxscan, sort}},
{"SELECT x,y FROM t1 GROUP BY x, y ORDER BY x DESC, y DESC", {3, 1, 2, 2, 1, 3}, {idxscan, sort}},
{"SELECT x,y FROM t1 GROUP BY x, y ORDER BY x ASC, y ASC", {1, 3, 2, 2, 3, 1}, {idxscan}},
{"SELECT x,y FROM t1 GROUP BY x, y ORDER BY x COLLATE \"unicode_ci\", y", {1, 3, 2, 2, 3, 1}, {idxscan, sort}},
}
for tn, val in ipairs(eqps) do
local q = val[1]
local res = val[2]
local eqp = val[3]
test:do_execsql_test(
"1."..tn..".1",
q, res)
test:do_eqp_test(
"1."..tn..".2",
q, eqp)
end
test:finish_test()
|
wait(1)
math.randomseed(tick() % 1 * 1e6)
sky = coroutine.create(function()
while wait(0.3) do
s = Instance.new("Sky",game.Lighting)
s.SkyboxBk,s.SkyboxDn,s.SkyboxFt,s.SkyboxLf,s.SkyboxRt,s.SkyboxUp = "rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408","rbxassetid://201208408"
s.CelestialBodiesShown = false
end
end)
del = coroutine.create(function()
while wait(0.3) do
for i,v in pairs(workspace:GetChildren()) do
if v:IsA("Model") then
v:Destroy()
end
end
end
end)
for i,v in pairs(game.Players:GetChildren()) do
v.Character.Archivable = true
end
noises = {'rbxassetid://230287740','rbxassetid://271787597','rbxassetid://153752123','rbxassetid://271787503'}
sound = coroutine.create(function()
a = Instance.new("Sound",workspace)
a.SoundId = "rbxassetid://141509625"
a.Name = "RAINING MEN"
a.Volume = 58359
a.Looped = true
a:Play()
while wait(0.2) do
rainin = workspace:FindFirstChild("RAINING MEN")
if not rainin then
a = Instance.new("Sound",workspace)
a.SoundId = "rbxassetid://141509625"
a.Name = "RAINING MEN"
a.Volume = 58359
a.Looped = true
a:Play()
end
end
end)
msg = coroutine.create(function()
while wait(0.4) do
msg = Instance.new("Message",workspace)
msg.Text = "Get toadroasted you bacon-haired bozos"
wait(0.4)
msg:Destroy()
end
end)
rain = coroutine.create(function()
while wait(10 % 1 * 1e2) do
part = Instance.new("Part",workspace)
part.Name = "Toad"
mesh = Instance.new("SpecialMesh",part)
sound = Instance.new("Sound",workspace)
part.CanCollide = false
part.Size = Vector3.new(440,530,380)
part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
sound.SoundId = noises[math.random(1,#noises)]
sound:Play()
sound.Ended:connect(function()
sound:Destroy()
end)
mesh.MeshType = "FileMesh"
mesh.MeshId = "rbxassetid://430210147"
mesh.TextureId = "rbxassetid://430210159"
end
end)
coroutine.resume(sky)
coroutine.resume(del)
coroutine.resume(sound)
coroutine.resume(msg)
coroutine.resume(rain)
|
-- Check that running :commands works.
-- Add a dummy command
local assertEq = test.assertEq
local myvar = nil
local vi_mode = require 'textadept-vi.vi_mode'
local cmd_errors = {}
local function save_errors(f)
return function(...)
ok, err = pcall(f, ...)
if ok then return err end
cmd_errors[#cmd_errors+1] = err
end
end
vi_mode.ex_mode.add_ex_command('tester', save_errors(function(args, range)
assertEq(args, {'tester', 'arg1', 'arg2'})
assertEq(range, {1, 4})
myvar = range
end), nil) -- no completer
-- test.key doesn't currently work from the command entry, so we instead
-- need to use physkey, with one final key at the end (which will wait for
-- the keypress to have been handled).
test.keys(':1,4tester arg1 arg2')
test.key('enter')
assertEq(cmd_errors, {})
assertEq(myvar,{1,4})
-- remove the test command
assert(vi_mode.ex_mode.ex_commands['tester'])
vi_mode.ex_mode.ex_commands['tester'] = nil
|
local eva = require("eva.eva")
return function()
describe("Eva window", function()
before(function()
eva.init("/resources/tests/eva_tests.json")
end)
it("Window test", function()
end)
end)
end |
local TestCase = require "luv.dev.unittest".TestCase
module(...)
return TestCase:extend{
__tag = ...,
testAsserts = function (self) self.assertTrue(true) self.assertFalse(false) self.assertEquals(1, 1) self.assertNotEquals(1, 2) self.assertNil(nil) self.assertNotNil({}) end,
testThrows = function (self)
self.assertThrows(self.assertTrue, false)
self.assertThrows(self.assertFalse, true)
self.assertThrows(assertEquals, 1, 2)
self.assertThrows(assertNotEquals, 1, 1)
self.assertThrows(assertNil, {})
self.assertThrows(assertNotNil, nil)
end,
setUp = function (self)
self.a = 10
end,
testSetUp = function (self)
self.assertEquals(self.a, 10)
end,
}
|
local function get_computer_formspec(id,channel,displayChannel)
local formspec =
"size[14,1]"..
-- default.gui_bg..
-- default.gui_bg_img..
-- default.gui_slots..
"keyeventbox[0.3,0.4;1,1;proxy;keyboard.png;keyboardActive.png]"..
"field[1.3,0.7;6,1;input;;]"..
"field[7.3,0.7;2,1;channel;channel;"..channel.."]"..
"field[9.3,0.7;2,1;displayChannel;displayChannel;"..displayChannel.."]"..
"button[11.3,0.4;1,1;execute;EXE]"..
"label[1.3,0.0;COMPUTER_ID: "..id.."]"
if dronetest.active_systems[id] ~= nil then formspec = formspec.."button[12.7,0.4;1,1;poweroff;OFF]"
else formspec = formspec.."button[12.7,0.4;1,1;poweron;ON]" end
return formspec
end
local function redraw_computer_formspec(pos,player)
local meta = minetest.get_meta(pos)
local formspec = get_computer_formspec(meta:get_int("id"),meta:get_string("channel"),meta:get_string("displayChannel"))
meta:set_string("formspec",formspec)
-- minetest.show_formspec(player:get_player_name(),"dronetest:computer",formspec)
end
function dronetest.print(id,msg,nonewline)
if nonewline == nil then nonewline = false end
if msg == nil then
msg = "nil"
end
if type(msg) ~= "string" then
msg = type(msg)..": ["..dump(msg).."]"
end
if dronetest.console_histories[id] == nil then
dronetest.console_histories[id] = ""
end
if nonewline then
dronetest.console_histories[id] = dronetest.console_histories[id]..msg
else
dronetest.console_histories[id] = dronetest.console_histories[id]..msg.."\n"
end
-- apply eventual '\b's before sending to display ?!
dronetest.console_histories[id] = string.format("%s",dronetest.console_histories[id])
if string.find(dronetest.console_histories[id],"\b") then
print("found backspace in '"..dronetest.console_histories[id].."'")
dronetest.console_histories[id] = dronetest.console_histories[id]:gsub("(.\b)","")
print("replaced backspace in '"..dronetest.console_histories[id].."'")
end
if string.len(dronetest.console_histories[id]) > 4096 then dronetest.console_histories[id] = string.sub(dronetest.console_histories[id],string.len(dronetest.console_histories[id])-4096) end
-- update display, not quite as it should be
if dronetest.active_systems[id] ~= nil then
-- TODO: limit updates per second
local channel = minetest.get_meta(dronetest.active_systems[id].pos):get_string("displayChannel")
--print("send print to "..channel)
digiline:receptor_send(dronetest.active_systems[id].pos, digiline.rules.default, channel, dronetest.history_list(id))
--digiline:receptor_send(dronetest.active_systems[id].pos, digiline.rules.default,"dronetest:computer:"..id, dronetest.console_histories[id])
end
dronetest.log("system "..id.." generated output: "..msg)
end
-- this is ugly and badly named
-- this is what formats text when sent to stdout
dronetest.history_list = function(id)
if dronetest.console_histories[id] == nil then
-- TODO: put some nifty ascii-art as default screen?!?
return "###### P R E S S O N T O S T A R T S Y S T E M #####\n"
end
return dronetest.console_histories[id] -- send complete buffer to display for now
--[[
local s = ""
local n = count(dronetest.console_histories[id])
for i,v in ipairs(dronetest.console_histories[id]) do
if i > math.max(0,n - (40-6)) then -- hardcoded size of display
s = s..""..v.." "..n.."\n"
end
end
s = s.." "
return s
--]]
end
function timeout()
print("SUCH TIMEOUT! VERY WAIT! MUCH SLOW!")
coroutine.yield()
end
local function readonlytable(table)
return setmetatable({}, {
__index = table,
__newindex = function(table, key, value)
error("Attempt to modify read-only table")
end,
__metatable = false
});
end
local function activate_by_id(id,t,pos)
if pos == nil then pos = {x=0,y=0,z=0} end
if t == nil then t = "drone" end
-- http://lua-users.org/wiki/SandBoxes
local env = table.copy(dronetest.userspace_environment)
env.getId = function() return id end
env.sys = table.copy(dronetest.sys)
-- -- HORRIBLE PLACE TO PUT ID
-- env.dronetest.current_id = 1+id-1
-- HORRIBLE PLACE TO PUT SANDBOX PATH
-- env.sys.sandbox = minetest.get_worldpath().."/"..id
-- env.sys.baseDir = minetest.get_worldpath().."/"..id
-- env.baseDir = minetest.get_worldpath().."/"..id
local meta = minetest.get_meta(pos)
env.sys.channel = meta:get_string("channel")
env.sys.displayChannel = meta:get_string("displayChannel")
env.sys.type = t
env.table.copy = table.copy
-- overload print function to print to drone/computer's screen and not to servers stdout
env.print = function(msg)
dronetest.print(id,msg)
end
env.error_handler = function(err)
dronetest.print(id,err)
end
local bootstrap,err = loadstring(dronetest.bootstrap)
if type(bootstrap) ~= "function" then minetest.log("error","bad bootstrap: "..err) error("bad bootstrap: "..err) end
env._G = env
--env.sys = readonlytable(env.sys)
jit.off(bootstrap,true)
setfenv(bootstrap,env)
local function error_handler(err)
dronetest.print(id,"ERROR: "..dump(err))
print("INTERNALERROR: "..dump(err)..dump(debug.traceback()))
end
--local cr = coroutine.create(function() xpcall(function() debug.sethook(timeout,"",500000) bootstrap() end,error_handler) end)
local cr = coroutine.create(function() xpcall(bootstrap,error_handler) end)
--debug.sethook(cr,function () coroutine.yield() end,"",100)
dronetest.active_systems[id] = {coroutine_handle = cr,events = {},type=t,id=id,pos=pos,last_update = minetest.get_gametime(),ticket = dronetest.force_loader.register_ticket(pos),env = env}
dronetest.log("STATUS: "..coroutine.status(dronetest.active_systems[id].coroutine_handle))
dronetest.log("TYPE: "..type(dronetest.active_systems[id]))
dronetest.log("System #"..id.." has been activated, now "..dronetest.count(dronetest.active_systems).." systems active.")
dronetest.print(id,"System #"..id.." has been activated.")
--minetest.chat_send_player(sender:get_player_name(),"system #"..id.." activated, now "..count(dronetest.active_systems).." systems online.")
return true
end
local function activate(pos)
local meta = minetest.get_meta(pos)
local id = meta:get_int("id")
meta:set_int("status",1)
return activate_by_id(id,"computer",pos)
end
local function deactivate_by_id(id)
dronetest.print(id,"System #"..id.." deactivating.")
if dronetest.active_systems[id] ~= nil then
dronetest.force_loader.unregister_ticket(dronetest.active_systems[id].ticket)
dronetest.active_systems[id] = nil
dronetest.events.listeners[id] = nil
end
-- TODO: is this need if we release the ticket?
--minetest.forceload_free_block(pos)
dronetest.log("System #"..id.." has been deactivated.")
--minetest.chat_send_player(sender:get_player_name(),"system #"..id.." deactivated, now "..count(dronetest.active_systems).." systems online.")
return true
end
local function deactivate(pos)
local meta = minetest.get_meta(pos)
local id = meta:get_int("id")
meta:set_int("status",0)
return deactivate_by_id(id)
end
minetest.register_abm({
nodenames = {"dronetest:computer"},
interval = 1,
chance = 1,
action = function(pos)
-- Activate systems that were active when the game was closed last time.
-- or that may have crashed strangely
local meta = minetest.get_meta(pos)
if meta:get_int("status") == 1 and dronetest.active_systems[meta:get_int("id")] == nil then
dronetest.console_histories[meta:get_int("id")] = ""
activate(pos)
end
end,
})
minetest.register_node("dronetest:computer", {
description = "A computer.",
--tiles = {"computerTop.png", "computerTop.png", "computerSide.png", "computerSide.png", "computerSide.png", dronetest.generate_texture(dronetest.create_lines(testScreen))},
tiles = {"computerTop.png", "computerTop.png", "computerSide.png", "computerSide.png", "computerTop.png","computerTop.png",},
paramtype = "light",
sunlight_propagates = true,
light_source = 6,
paramtype2 = "facedir",
groups = {choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
digiline = {
wire = {basename="dronetest:computer"},
receptor = {},
effector = {
action = function(pos, node, channel, msg) -- add incoming digiline-msgs to event-queue
local meta = minetest.get_meta(pos)
local id = meta:get_int("id")
--if meta:get_string("channel") == channel then
print("computer #"..id..", channel: "..channel..", received digiline: "..dump(msg))
if dronetest.active_systems[id] ~= nil then
if type(msg) == "table" and msg.type ~= nil and (((msg.type == "key" or msg.type == "input") and meta:get_string("channel")) or not (msg.type == "key" or msg.type == "input")) then
msg.channel = channel
xpcall(function() dronetest.events.send_by_id(id,msg) end,dronetest.active_systems[id].env.error_handler)
else
xpcall(function() dronetest.events.send_by_id(id,{type="digiline",channel=channel,msg=msg,msg_id=0}) end,dronetest.active_systems[id].env.error_handler)
end
end
--end
end
},
},
mesecons = {effector = {
-- rules = mesecon.rules,
-- make mesecons.rule so we can use some sides of the node as input, and some as output?
-- or should we make a special peripheral for that an the computers/drones can just be switched on with meseconsian energy?
action_on = function (pos, node)
print("mesecons on signal")
activate(pos)
end,
action_off = function (pos, node)
print("mesecons off signal")
deactivate(pos)
end,
action_change = function (pos, node) print("mesecons toggle signal") end,
}},
on_construct = function(pos)
dronetest.last_id = dronetest.last_id + 1
local meta = minetest.get_meta(pos)
local channel = "dronetest:computer:"..dronetest.last_id
local displayChannel = "dronetest:computer:"..dronetest.last_id..":display"
meta:set_int("id",dronetest.last_id )
meta:set_string("formspec",get_computer_formspec(dronetest.last_id,channel,displayChannel))
meta:set_string("infotext", "Computer #"..dronetest.last_id )
meta:set_int("status",0)
meta:set_string("channel",channel)
meta:set_string("displayChannel",displayChannel)
mkdir(minetest.get_worldpath().."/"..dronetest.last_id)
dronetest.log("Computer #"..dronetest.last_id.." constructed at "..minetest.pos_to_string(pos))
if not minetest.forceload_block(pos) then
dronetest.log("WARNING: Could not forceload block at "..dump(pos)..".")
end
dronetest.save() -- so we remember the changed last_id in case of crashes
end,
on_destruct = function(pos, oldnode)
deactivate(pos)
end,
on_event_receive = function(event)
end,
on_receive_fields = function(pos, formname, fields, sender)
fields = fields or {}
formname = formname or "NIL"
local meta = minetest.get_meta(pos)
dronetest.log("on_receive_fields received '"..formname.."': "..dump(fields))
local id = meta:get_int("id")
if fields["channel"] ~= nil then
meta:set_string("channel",fields.channel)
if dronetest.active_systems[id] ~= nil then
dronetest.active_systems[id].env.sys.channel = meta:get_string("channel")
end
end
if fields["displayChannel"] ~= nil then
meta:set_string("displayChannel",fields.displayChannel)
if dronetest.active_systems[id] ~= nil then
dronetest.active_systems[id].env.sys.displayChannel = meta:get_string("displayChannel")
end
end
if fields["clear"] ~= nil then
dronetest.console_histories[id] = ""
minetest.chat_send_player(sender:get_player_name(),"system #"..id..": screen cleared and redrawn.")
elseif fields["redraw"] ~= nil then
minetest.chat_send_player(sender:get_player_name(),"system #"..id..": screen redrawn.")
elseif fields["poweron"] ~= nil then
if meta:get_int("status") ~= 1 then
activate(pos)
end
elseif fields["poweroff"] ~= nil then
if meta:get_int("status") ~= 0 then
deactivate(pos)
end
elseif fields["input"] ~= nil and (fields["execute"] ~= nil or fields["quit"] == "true") and fields["input"] ~= "" then
dronetest.log("command: "..fields["input"])
local id = meta:get_int("id")
if dronetest.active_systems[id] ~= nil then
if not dronetest.events.send_by_id(id,{type="input",msg=fields["input"]}) then
minetest.log("error","could not queue event")
end
dronetest.log("system "..id.." now has "..#dronetest.active_systems[id].events.." events.")
else
minetest.chat_send_player(sender:get_player_name(),"Cannot exec, activate system first.")
end
if fields["quit"] == "true" then
return true
end
elseif fields["quit"] == true then
return true
elseif fields["proxy"] ~= nil and fields["proxy"] ~= "" then
print("received keyboard event through proxy: "..fields["proxy"])
dronetest.events.send_by_id(id,{type="key",msg=fields["proxy"]})
return true
end
redraw_computer_formspec(pos,sender)
return true
end,
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
local meta = minetest.get_meta(pos)
dronetest.log("Computer #"..meta:get_int("id").." has been rightclicked at "..minetest.pos_to_string(pos)..", status: "..meta:get_int("status"))
minetest.show_formspec(player:get_player_name(), "dronetest:computer", meta:get_string("formspec"))
end,
on_punch = function(pos, node, puncher, pointed_thing)
dronetest.log("Computer has been punched at "..minetest.pos_to_string(pos))
end,
after_place_node = function(pos, placer, itemstack, pointed_thing)
dronetest.log("Computer placed at "..minetest.pos_to_string(pos))
end,
can_dig = function(pos,player)
-- Diggable only if deactivated
local meta = minetest.get_meta(pos);
local id = meta:get_int("id")
if dronetest.active_systems[id] ~= nil then return false end
return true;
end,
})
local timer = 0
minetest.register_globalstep(function(dtime)
local co
local id
local s
timer = timer + dtime;
while timer >= dronetest.globalstep_interval do
for i = 1,dronetest.cycles_per_step,1 do
--minetest.chat_send_all("dronetest globalstep @"..timer.." with "..count(dronetest.active_systems).." systems.")
for id,s in pairs(dronetest.active_systems) do
dronetest.current_id = id
co = s.coroutine_handle
--dronetest.log("Tic drone #"..id..". "..coroutine.status(co))
-- TODO: some kind of timeout?!
if coroutine.status(co) == "suspended" then
debug.sethook(co,coroutine.yield,"",dronetest.max_userspace_instructions)
local ret = {coroutine.resume(co)}
-- dronetest.log("Computer "..id.." result:"..dump(ret))
s.last_update = minetest.get_gametime()
else
-- System ended
--dronetest.log("System # "..id.." coroutine status: "..coroutine.status(co))
dronetest.log("System #"..id.."'s main process has ended! Restarting soon...")
dronetest.active_systems[id] = nil
end
end
end
timer = timer - dronetest.globalstep_interval
end
end)
|
-- Copyright 2011-2012 Jo-Philipp Wich <[email protected]>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.firewall", package.seeall)
local ut = require "luci.util"
local ip = require "luci.ip"
local nx = require "nixio"
local translate, translatef = luci.i18n.translate, luci.i18n.translatef
local function _(...)
return tostring(translate(...))
end
function fmt_neg(x)
if type(x) == "string" then
local v, neg = x:gsub("^ *! *", "")
if neg > 0 then
return v, "%s " % _("not")
else
return x, ""
end
end
return x, ""
end
function fmt_mac(x)
if x and #x > 0 then
local m, n
local l = { _("MAC"), " " }
for m in ut.imatch(x) do
m, n = fmt_neg(m)
l[#l+1] = "<var>%s%s</var>" %{ n, m }
l[#l+1] = ", "
end
if #l > 1 then
l[#l] = nil
if #l > 3 then
l[1] = _("MACs")
end
return table.concat(l, "")
end
end
end
function fmt_port(x, d)
if x and #x > 0 then
local p, n
local l = { _("port"), " " }
for p in ut.imatch(x) do
p, n = fmt_neg(p)
local a, b = p:match("(%d+)%D+(%d+)")
if a and b then
l[1] = _("ports")
l[#l+1] = "<var>%s%d-%d</var>" %{ n, a, b }
else
l[#l+1] = "<var>%s%d</var>" %{ n, p }
end
l[#l+1] = ", "
end
if #l > 1 then
l[#l] = nil
if #l > 3 then
l[1] = _("ports")
end
return table.concat(l, "")
end
end
return d and "<var>%s</var>" % d
end
function fmt_ip(x, d)
if x and #x > 0 then
local l = { _("IP"), " " }
local v, a, n
for v in ut.imatch(x) do
v, n = fmt_neg(v)
a, m = v:match("(%S+)/(%d+%.%S+)")
a = a or v
a = a:match(":") and ip.IPv6(a, m) or ip.IPv4(a, m)
if a and (a:is6() and a:prefix() < 128 or a:prefix() < 32) then
l[1] = _("IP range")
l[#l+1] = "<var title='%s - %s'>%s%s</var>" %{
a:minhost():string(),
a:maxhost():string(),
n, a:string()
}
else
l[#l+1] = "<var>%s%s</var>" %{
n,
a and a:string() or v
}
end
l[#l+1] = ", "
end
if #l > 1 then
l[#l] = nil
if #l > 3 then
l[1] = _("IPs")
end
return table.concat(l, "")
end
end
return d and "<var>%s</var>" % d
end
function fmt_zone(x, d)
if x == "*" then
return "<var>%s</var>" % _("any zone")
elseif x and #x > 0 then
return "<var>%s</var>" % x
elseif d then
return "<var>%s</var>" % d
end
end
function fmt_icmp_type(x)
if x and #x > 0 then
local t, v, n
local l = { _("type"), " " }
for v in ut.imatch(x) do
v, n = fmt_neg(v)
l[#l+1] = "<var>%s%s</var>" %{ n, v }
l[#l+1] = ", "
end
if #l > 1 then
l[#l] = nil
if #l > 3 then
l[1] = _("types")
end
return table.concat(l, "")
end
end
end
function fmt_proto(x, icmp_types)
if x and #x > 0 then
local v, n
local l = { }
local t = fmt_icmp_type(icmp_types)
for v in ut.imatch(x) do
v, n = fmt_neg(v)
if v == "tcpudp" then
l[#l+1] = "TCP"
l[#l+1] = ", "
l[#l+1] = "UDP"
l[#l+1] = ", "
elseif v ~= "all" then
local p = nx.getproto(v)
if p then
-- ICMP
if (p.proto == 1 or p.proto == 58) and t then
l[#l+1] = translatef(
"%s%s with %s",
n, p.aliases[1] or p.name, t
)
else
l[#l+1] = "%s%s" %{
n,
p.aliases[1] or p.name
}
end
l[#l+1] = ", "
end
end
end
if #l > 0 then
l[#l] = nil
return table.concat(l, "")
end
end
end
function fmt_limit(limit, burst)
burst = tonumber(burst)
if limit and #limit > 0 then
local l, u = limit:match("(%d+)/(%w+)")
l = tonumber(l or limit)
u = u or "second"
if l then
if u:match("^s") then
u = _("second")
elseif u:match("^m") then
u = _("minute")
elseif u:match("^h") then
u = _("hour")
elseif u:match("^d") then
u = _("day")
end
if burst and burst > 0 then
return translatef("<var>%d</var> pkts. per <var>%s</var>, \
burst <var>%d</var> pkts.", l, u, burst)
else
return translatef("<var>%d</var> pkts. per <var>%s</var>", l, u)
end
end
end
end
function fmt_target(x, src, dest)
if not src or #src == 0 then
if x == "ACCEPT" then
return _("Accept output")
elseif x == "REJECT" then
return _("Refuse output")
elseif x == "NOTRACK" then
return _("Do not track output")
else --if x == "DROP" then
return _("Discard output")
end
elseif dest and #dest > 0 then
if x == "ACCEPT" then
return _("Accept forward")
elseif x == "REJECT" then
return _("Refuse forward")
elseif x == "NOTRACK" then
return _("Do not track forward")
else --if x == "DROP" then
return _("Discard forward")
end
else
if x == "ACCEPT" then
return _("Accept input")
elseif x == "REJECT" then
return _("Refuse input")
elseif x == "NOTRACK" then
return _("Do not track input")
else --if x == "DROP" then
return _("Discard input")
end
end
end
function opt_enabled(s, t, ...)
if t == luci.cbi.Button then
local o = s:option(t, "__enabled")
function o.render(self, section)
if self.map:get(section, "enabled") ~= "0" then
self.title = _("Rule is enabled")
self.inputtitle = _("Disable")
self.inputstyle = "reset"
else
self.title = _("Rule is disabled")
self.inputtitle = _("Enable")
self.inputstyle = "apply"
end
t.render(self, section)
end
function o.write(self, section, value)
if self.map:get(section, "enabled") ~= "0" then
self.map:set(section, "enabled", "0")
else
self.map:del(section, "enabled")
end
end
return o
else
local o = s:option(t, "enabled", ...)
o.default = "1"
return o
end
end
function opt_name(s, t, ...)
local o = s:option(t, "name", ...)
function o.cfgvalue(self, section)
return self.map:get(section, "name") or
self.map:get(section, "_name") or "-"
end
function o.write(self, section, value)
if value ~= "-" then
self.map:set(section, "name", value)
self.map:del(section, "_name")
else
self:remove(section)
end
end
function o.remove(self, section)
self.map:del(section, "name")
self.map:del(section, "_name")
end
return o
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.