content
stringlengths
5
1.05M
local K, C = unpack(KkthnxUI) local Module = K:GetModule("Blizzard") local _G = _G local string_format = _G.string.format local string_match = _G.string.match -- Enhanced ColorPickerFrame local function translateColor(r) if not r then r = "ff" end return tonumber(r, 16) / 255 end function Module:EnhancedPicker_UpdateColor() local r, g, b = string_match(self.colorStr, "(%x%x)(%x%x)(%x%x)$") r = translateColor(r) g = translateColor(g) b = translateColor(b) _G.ColorPickerFrame:SetColorRGB(r, g, b) end local function GetBoxColor(box) local r = box:GetText() r = tonumber(r) if not r or r < 0 or r > 255 then r = 255 end return r end local function updateColorRGB(self) local r = GetBoxColor(_G.ColorPickerFrame.__boxR) local g = GetBoxColor(_G.ColorPickerFrame.__boxG) local b = GetBoxColor(_G.ColorPickerFrame.__boxB) self.colorStr = string_format("%02x%02x%02x", r, g, b) Module.EnhancedPicker_UpdateColor(self) end local function updateColorStr(self) self.colorStr = self:GetText() Module.EnhancedPicker_UpdateColor(self) end local function editBoxClearFocus(self) self:ClearFocus() end local function createCodeBox(width, index, text) local box = CreateFrame("EditBox", nil, _G.ColorPickerFrame) box:SetSize(width, 20) box:SetAutoFocus(false) box:SetTextInsets(5, 5, 0, 0) box:SetMaxLetters(index == 4 and 6 or 3) box:SetTextInsets(0, 0, 0, 0) box:SetPoint("TOPLEFT", _G.ColorSwatch, "BOTTOMLEFT", 0, -index * 26) box:SetFontObject(KkthnxUIFont) box.bg = CreateFrame("Button", nil, box) box.bg:SetAllPoints() box.bg:SetFrameLevel(box:GetFrameLevel()) box.bg:CreateBorder() box:SetScript("OnEscapePressed", editBoxClearFocus) box:SetScript("OnEnterPressed", editBoxClearFocus) K.CreateFontString(box, 14, text, "", "", "LEFT", -15, 0) if index == 4 then box:HookScript("OnEnterPressed", updateColorStr) else box:HookScript("OnEnterPressed", updateColorRGB) end -- box.Type = "EditBox" return box end function Module:CreateColorPicker() if IsAddOnLoaded("ColorPickerPlus") or C["Misc"].ColorPicker ~= true then return end local pickerFrame = _G.ColorPickerFrame pickerFrame:SetHeight(250) K.CreateMoverFrame(pickerFrame.Header, pickerFrame) -- movable by header _G.OpacitySliderFrame:SetPoint("TOPLEFT", _G.ColorSwatch, "TOPRIGHT", 50, 0) local colorBar = CreateFrame("Frame", nil, pickerFrame) colorBar:SetSize(1, 20) colorBar:SetPoint("BOTTOM", 3, 35) local count = 0 for name, class in pairs(K.ClassList) do local value = K.ClassColors[class] if value then local bu = CreateFrame("Button", nil, colorBar) bu:SetSize(20, 20) bu.Icon = bu:CreateTexture(nil, "ARTWORK") bu.Icon:SetAllPoints() bu.Icon:SetTexCoord(unpack(K.TexCoords)) bu.Icon:SetColorTexture(value.r, value.g, value.b) bu:SetPoint("LEFT", count * 25, 0) bu:CreateBorder() bu.colorStr = value.colorStr bu:SetScript("OnClick", Module.EnhancedPicker_UpdateColor) K.AddTooltip(bu, "ANCHOR_TOP", "|c" .. value.colorStr .. name) count = count + 1 end end colorBar:SetWidth(count * 25) pickerFrame.__boxR = createCodeBox(45, 1, "|cffff0000R") pickerFrame.__boxG = createCodeBox(45, 2, "|cff00ff00G") pickerFrame.__boxB = createCodeBox(45, 3, "|cff0000ffB") pickerFrame.__boxH = createCodeBox(70, 4, "#") pickerFrame:HookScript("OnColorSelect", function(self) local r, g, b = self:GetColorRGB() r = K.Round(r * 255) g = K.Round(g * 255) b = K.Round(b * 255) self.__boxR:SetText(r) self.__boxG:SetText(g) self.__boxB:SetText(b) self.__boxH:SetText(string_format("%02x%02x%02x", r, g, b)) end) ColorPickerFrame.Header:StripTextures() ColorPickerFrame.Header:ClearAllPoints() ColorPickerFrame.Header:SetPoint("TOP", ColorPickerFrame, 0, 10) ColorPickerFrame.Border:Hide() ColorPickerFrame:CreateBorder() ColorPickerOkayButton:SkinButton() ColorPickerCancelButton:SkinButton() -- B.ReskinSlider(OpacitySliderFrame, true) ColorPickerCancelButton:ClearAllPoints() ColorPickerCancelButton:SetPoint("BOTTOMLEFT", ColorPickerFrame, "BOTTOM", 3, 6) ColorPickerOkayButton:ClearAllPoints() ColorPickerOkayButton:SetPoint("BOTTOMRIGHT", ColorPickerFrame, "BOTTOM", -3, 6) end
return function(s) return s end
shadow_collective_sc87 = Creature:new { objectName = "", customName = "\\#00ff00<<< SC-87 >>> \\#ff0000[lvl 300]", socialGroup = "death_watch", pvpFaction = "death_watch", faction = "", level = 300, chanceHit = 75.00, damageMin = 11750, damageMax = 13750, specialDamageMult = 1.5, baseXp = 19000, baseHAM = 1000000, baseHAMmax = 1250000, armor = 3, resists = {50,50,50,50,50,50,50,50,35},--kinetic,energy,blast,heat,cold,electric,acid,stun,ls meatType = "", meatAmount = 0, hideType = "", hideAmount = 0, boneType = "", boneAmount = 0, milk = 0, tamingChance = 0, ferocity = 0, pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY, creatureBitmask = KILLER, optionsBitmask = 128, diet = NONE, templates = {"object/mobile/ig_88.iff"}, scale = 1.5, lootGroups = { { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 1000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "boss_common", chance = 10000000}, }, lootChance = 5000000 }, { groups = { {group = "clothing_attachments", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "armor_attachments", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "weapons_all", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "worldbosscrate", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "boss_rare", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "boss_rare", chance = 10000000}, }, lootChance = 10000000 }, { groups = { {group = "tierone", chance = 1500000}, {group = "tiertwo", chance = 3500000}, {group = "tierthree", chance = 2500000}, {group = "tierdiamond", chance = 2500000}, }, lootChance = 10000000 }, { groups = { {group = "tierone", chance = 1500000}, {group = "tiertwo", chance = 3500000}, {group = "tierthree", chance = 2500000}, {group = "tierdiamond", chance = 2500000}, }, lootChance = 10000000 } }, weapons = {"dark_jedi_weapons_gen3"}, reactionStf = "@npc_reaction/slang", attacks = merge(lightsabermaster) } CreatureTemplates:addCreatureTemplate(shadow_collective_sc87, "shadow_collective_sc87")
--- ConsolePrint() -- Nicely formatted console print with timestamp -- @param msg The message to be displayed function ConsolePrint(msg) if msg then local dt = os.date("%H:%M", os.time()) print("[CNR "..dt.."] ^7"..(msg).."^7") end end AddEventHandler('cnr:print', ConsolePrint) AddEventHandler('cnr:cprint', ConsolePrint)
tatooine_eopie_herd_neutral_none = Lair:new { mobiles = {{"eopie",1},{"dwarf_eopie",1}}, spawnLimit = 15, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, buildingType = "none" } addLairTemplate("tatooine_eopie_herd_neutral_none", tatooine_eopie_herd_neutral_none)
if modifier_custom_blood_mirror_debuff_enemy == nil then modifier_custom_blood_mirror_debuff_enemy = class({}) end function modifier_custom_blood_mirror_debuff_enemy:IsHidden() return false end function modifier_custom_blood_mirror_debuff_enemy:IsDebuff() return true end function modifier_custom_blood_mirror_debuff_enemy:IsPurgable() return true end function modifier_custom_blood_mirror_debuff_enemy:RemoveOnDeath() return true end function modifier_custom_blood_mirror_debuff_enemy:GetEffectName() return "particles/econ/items/bloodseeker/bloodseeker_eztzhok_weapon/bloodseeker_bloodrage_ground_eztzhok.vpcf" end function modifier_custom_blood_mirror_debuff_enemy:GetEffectAttachType() return PATTACH_POINT_FOLLOW end
local Package = script.Parent.Parent local TableUtil = require(Package.Dependencies.TableUtil) local Promise = require(Package.Dependencies.Promise) local Error = require(Package.Dependencies.Error) local Settings = require(Package.Constants.Settings) local Utility = require(Package.Utility) local Global = require(Package.Global) local SaveKeyWithUpdateAsync = require(Package.ServiceRequests.UpdateAsync.SaveKey) local Key = { --[[ _Name = Key, _UserIds = {}, Metadata = {}, _Store = self, _LastActionTime = 0, _LastActionLog = {}, _IsPending = false, _ShouldAutosave = Options.AutosaveEnabled or true, Data = {} --]] } Key.__index = Key function Key:_Set(Property: string, Value: any?) Utility.SetProperty(self, Property, Value) end function Key:RemoveUserIds(UserIds: table) UserIds = type(UserIds) == "table" and UserIds or Error.new("UserIds must be a table") Utility.Await.PropertyValue(self, "_IsPending", false) for Index = 1, #UserIds do for Number = 1, #self._UserIds do if self._UserIds[Number] == UserIds[Index] then table.remove(self._UserIds, Number) end end end end function Key:AddUserIds(UserIds: table) UserIds = type(UserIds) == "table" and UserIds or Error.new("UserIds must be a table") return Utility.Promise.List( self, Utility.Await.PropertyValue(self, "_IsPending", false):andThen(function(Resolve) self:_Set("_IsPending", true) for Index = 1, #UserIds do table.insert(self._UserIds, UserIds[Index]) end self:_Set("_IsPending", false) Resolve() end) ) end function Key:Toggleautosave(Autosave: boolean) if not Global.AutosaveEnabled then return "Autosave is globally disabled" end if self._Store._AutosaveEnabled == false then return "Autosave is disabled for Key's Store" end Autosave = type(Autosave) == "boolean" and Autosave or Error.new("Autosave must be a boolean") if self._ShouldAutosave == Autosave then return "Nothing changed" end return Utility.Promise.List( self, Promise.new(function(Resolve, _, OnCancel) if Autosave == true then Global.KeysToAutosave[self._Index] = self self._ShouldAutosave = true else Global.KeysToAutosave[self._Index] = nil self._ShouldAutosave = false end Resolve("Autosave state succesfully changed") OnCancel(function() Global.KeysToAutosave[self._Index] = nil self._ShouldAutosave = false end) end) ) end function Key:Release(Options: table?) Options = Options or {} Options = type(Options) and Options or Error.new("Options must be a table") local Store = self._Store local MaxRetries = Options.MaxRetries or math.clamp((Settings.AssumeDeadSessionLock / 100), 50, 10 ^ 3) if not Global.LoadedKeys[self._Index] then return Promise.resolve(true) end Global.KeysToAutosave[self._Index] = nil Global.LoadedKeys[self._Index] = nil Store._LoadedKeys[self._Index] = nil return Promise.retry(SaveKeyWithUpdateAsync, MaxRetries, self, Options, true) end function Key:Save(Options: table?) Options = Options or {} Options = type(Options) and Options or Error.new("Options must be a table") return Promise.retry(SaveKeyWithUpdateAsync, Options.MaxRetries or math.huge, self, Options) end function Key:Reconcile() return TableUtil.Reconcile(self.Data.Proxy, self._Store._DataTemplate) end return Key
---------------------------------------------------------------- -- Algorithms Library ---------------------------------------------------------------- project "AdaptiveAlgorithmsLib" kind "StaticLib" pchsource ("algorithms/includes-algorithms.cpp") pchheader ("includes-algorithms.h") files { "algorithms/Adaptive.*", "algorithms/includes-algorithms.*", }
--荒碑灵 死夜 local m=14000386 local cm=_G["c"..m] cm.named_with_Gravalond=1 function cm.initial_effect(c) --fusion material c:EnableReviveLimit() aux.AddFusionProcCodeFun(c,14000380,aux.FilterBoolFunction(Card.IsRace,RACE_ZOMBIE),1,true,false) --change name local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetCode(EFFECT_CHANGE_CODE) e1:SetRange(LOCATION_GRAVE) e1:SetValue(14000380) c:RegisterEffect(e1) --fusion effect local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetCondition(cm.con) e2:SetOperation(cm.op) c:RegisterEffect(e2) end function cm.Grava(c) local m=_G["c"..c:GetCode()] return m and m.named_with_Gravalond end function cm.con(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) end function cm.op(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerAffectedByEffect(tp,m) then return end local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(m) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetTargetRange(1,0) e1:SetCondition(cm.e1con) Duel.RegisterEffect(e1,tp) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetCode(EVENT_PHASE+PHASE_END) e2:SetCountLimit(1) e2:SetCondition(cm.e2con) e2:SetOperation(cm.e2op) Duel.RegisterEffect(e2,tp) --[[local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT) e3:SetTargetRange(LOCATION_GRAVE,0) e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_CANNOT_DISABLE) e3:SetRange(0xff) e3:SetTarget(cm.e3tg) e3:SetCondition(cm.e3con) e3:SetLabelObject(e4) c:RegisterEffect(e3) local e4=Effect.CreateEffect(c) e4:SetType(EFFECT_TYPE_SINGLE) e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e4:SetCode(EFFECT_CHANGE_CODE) e4:SetRange(LOCATION_GRAVE) e4:SetValue(14000380) c:RegisterEffect(e4)]] end function cm.filter(c) return c:IsCode(14000380) end function cm.e1con(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end function cm.e2con(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()==tp and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,3,nil) end function cm.e2op(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,m) local ct=Duel.GetMatchingGroupCount(cm.filter,tp,LOCATION_GRAVE,0,nil) if ct==0 then return end Duel.Damage(1-tp,ct*300,REASON_EFFECT) end --[[function cm.e3con(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,5,nil) end function cm.e3tg(e,c) return cm.Grava(c) end]]
workspace "WidescreenFixesPack" configurations { "Release", "Debug" } platforms { "Win32" } architecture "x32" location "build" objdir ("build/obj") buildlog ("build/log/%{prj.name}.log") buildoptions {"-std:c++latest"} kind "SharedLib" language "C++" targetdir "data/%{prj.name}/scripts" targetextension ".asi" characterset ("UNICODE") staticruntime "On" defines { "rsc_CompanyName=\"ThirteenAG\"" } defines { "rsc_LegalCopyright=\"MIT License\""} defines { "rsc_FileVersion=\"1.0.0.0\"", "rsc_ProductVersion=\"1.0.0.0\"" } defines { "rsc_InternalName=\"%{prj.name}\"", "rsc_ProductName=\"%{prj.name}\"", "rsc_OriginalFilename=\"%{prj.name}.asi\"" } defines { "rsc_FileDescription=\"https://thirteenag.github.io/wfp\"" } defines { "rsc_UpdateUrl=\"https://github.com/ThirteenAG/WidescreenFixesPack\"" } files { "source/%{prj.name}/*.cpp" } files { "Resources/*.rc" } files { "external/hooking/Hooking.Patterns.h", "external/hooking/Hooking.Patterns.cpp" } files { "includes/stdafx.h", "includes/stdafx.cpp" } includedirs { "includes" } includedirs { "external/hooking" } includedirs { "external/injector/include" } includedirs { "external/inireader" } includedirs { "external/spdlog/include" } includedirs { "external/filewatch" } local dxsdk = os.getenv "DXSDK_DIR" if dxsdk then includedirs { dxsdk .. "/include" } libdirs { dxsdk .. "/lib/x86" } else includedirs { "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/include" } libdirs { "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)/lib/x86" } end pbcommands = { "setlocal EnableDelayedExpansion", --"set \"path=" .. (gamepath) .. "\"", "set file=$(TargetPath)", "FOR %%i IN (\"%file%\") DO (", "set filename=%%~ni", "set fileextension=%%~xi", "set target=!path!!filename!!fileextension!", "if exist \"!target!\" copy /y \"!file!\" \"!target!\"", ")" } function setpaths (gamepath, exepath, scriptspath) scriptspath = scriptspath or "scripts/" if (gamepath) then cmdcopy = { "set \"path=" .. gamepath .. scriptspath .. "\"" } table.insert(cmdcopy, pbcommands) postbuildcommands (cmdcopy) debugdir (gamepath) if (exepath) then debugcommand (gamepath .. exepath) dir, file = exepath:match'(.*/)(.*)' debugdir (gamepath .. (dir or "")) end end targetdir ("data/%{prj.name}/" .. scriptspath) end filter "configurations:Debug*" defines "DEBUG" symbols "On" filter "configurations:Release*" defines "NDEBUG" optimize "On" project "Bully.WidescreenFix" setpaths("Z:/WFP/Games/Bully Scholarship Edition/", "Bully.exe", "plugins/") project "Burnout3.WidescreenFix" configurations { "ReleasePCSX2", "DebugPCSX2" } setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe") files { "includes/pcsx2/pcsx2.h" } project "CallOfCthulhu.WidescreenFix" setpaths("Z:/WFP/Games/Call of Cthulhu/", "Engine/CoCMainWin32.exe", "Engine/scripts/") project "ColdFear.WidescreenFix" setpaths("Z:/WFP/Games/ColdFear/", "ColdFear_retail.exe") project "Condemned.WidescreenFix" setpaths("Z:/WFP/Games/Condemned Criminal Origins/", "Condemned.exe") project "DeerAvenger4.WidescreenFix" setpaths("Z:/WFP/Games/Deer Avenger 4/", "DA4.exe") project "Driv3r.WidescreenFix" setpaths("Z:/WFP/Games/DRIV3R/", "driv3r.exe") project "DriverParallelLines.WidescreenFix" setpaths("Z:/WFP/Games/Driver Parallel Lines/", "DriverParallelLines.exe") project "EnterTheMatrix.WidescreenFix" setpaths("Z:/WFP/Games/Enter the Matrix/", "Matrix.exe") project "FarCry.WidescreenFix" setpaths("Z:/WFP/Games/Far Cry/", "Bin32/FarCry.exe", "Bin32/") project "FarCry64.WidescreenFix" platforms { "Win64" } architecture "x64" files { "source/FarCry.WidescreenFix/*.cpp" } setpaths("Z:/WFP/Games/Far Cry/", "Bin64/FarCry.exe", "Bin64/") targetdir "data/FarCry.WidescreenFix/Bin64" project "Flatout.WidescreenFix" setpaths("Z:/WFP/Games/Flatout/FlatOut/", "flatout.exe") project "Flatout2.WidescreenFix" setpaths("Z:/WFP/Games/Flatout/FlatOut2/", "FlatOut2.exe") project "FlatoutUltimateCarnage.WidescreenFix" setpaths("Z:/WFP/Games/Flatout/FlatOut - Ultimate Carnage/", "Fouc.exe") project "GTA1.WidescreenFix" setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto 1 London 1969 1961/", "WINO/Grand Theft Auto.exe", "WINO/scripts/") project "GTA2.WidescreenFix" setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto 2/", "gta2.exe") project "GTA3.WidescreenFix" files { "includes/GTA/*.h", "includes/GTA/*.cpp" } setpaths("Z:/WFP/Games/Grand Theft Auto/GTAIII/", "gta3.exe") project "GTAVC.WidescreenFix" files { "includes/GTA/*.h", "includes/GTA/*.cpp" } setpaths("Z:/WFP/Games/Grand Theft Auto/Grand Theft Auto Vice City/", "gta-vc.exe") project "GTASA.WidescreenFix" files { "includes/GTA/*.h", "includes/GTA/*.cpp" } setpaths("Z:/WFP/Games/Grand Theft Auto/GTA San Andreas/", "gta_sa.exe") project "Gun.WidescreenFix" setpaths("Z:/WFP/Games/GUN/", "Gun.exe") project "HiddenandDangerous2.WidescreenFix" setpaths("Z:/WFP/Games/Hidden and Dangerous 2/", "hd2.exe") project "JustCause.WidescreenFix" setpaths("Z:/WFP/Games/Just Cause/", "JustCause.exe") project "KingKong.WidescreenFix" setpaths("Z:/WFP/Games/King Kong/", "CheckApplication.exe") project "KnightRider.WidescreenFix" configurations { "Release", "Debug", "ReleasePCSX2", "DebugPCSX2" } setpaths("Z:/WFP/Games/Knight Rider/", "Knight Rider.exe") files { "includes/pcsx2/pcsx2.h" } filter "configurations:*PCSX2" setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe") project "KnightRider2.WidescreenFix" configurations { "Release", "Debug", "ReleasePCSX2", "DebugPCSX2" } setpaths("Z:/WFP/Games/Knight Rider 2/", "KR2.exe") files { "includes/pcsx2/pcsx2.h" } filter "configurations:*PCSX2" setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe") project "LARush.WidescreenFix" setpaths("Z:/WFP/Games/LA Rush/", "LARush.exe", "plugins/") project "Mafia.GenericFix" setpaths("Z:/WFP/Games/Mafia/", "Setup.exe") targetdir "data/Mafia.WidescreenFix/scripts" project "Mafia.WidescreenFix" setpaths("Z:/WFP/Games/Mafia/", "GameV12.exe") project "Manhunt.WidescreenFix" setpaths("Z:/WFP/Games/Manhunt/", "manhunt.exe") project "MassEffectTrilogy.FOVFix" setpaths("Z:/WFP/Games/Mass Effect/Mass Effect 2/Binaries/", "MassEffect2.exe", "/") project "MaxPayne.WidescreenFix" setpaths("Z:/WFP/Games/Max Payne/Max Payne/", "MaxPayne.exe") project "MaxPayne2.WidescreenFix" setpaths("Z:/WFP/Games/Max Payne/Max Payne 2 The Fall of Max Payne/", "MaxPayne2.exe") project "NFSCarbon.WidescreenFix" setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Carbon/", "NFSC.exe") project "NFSMostWanted.WidescreenFix" setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Most Wanted/", "speed.exe") project "NFSProStreet.GenericFix" setpaths("Z:/WFP/Games/Need For Speed/Need for Speed ProStreet/", "nfsps.exe") project "NFSUndercover.GenericFix" setpaths("Z:/WFP/Games/Need For Speed/Need for Speed Undercover/", "nfs.exe") project "NFSUnderground.WidescreenFix" setpaths("Z:/WFP/Games/Need For Speed/Need For Speed Underground/", "speed.exe") files { "textures/NFS/NFSU/icon.rc" } defines { "IDR_NFSUICON=200" } project "NFSUnderground2.WidescreenFix" setpaths("Z:/WFP/Games/Need For Speed/Need For Speed Underground 2/", "speed2.exe") project "Onimusha3.WidescreenFix" setpaths("Z:/WFP/Games/Onimusha 3/", "ONI3.exe") project "ParadiseCracked.WidescreenFix" setpaths("Z:/WFP/Games/Paradise Cracked/", "game.exe") project "PsiOpsTheMindgateConspiracy.WidescreenFix" setpaths("Z:/WFP/Games/PSI-OPS/", "PsiOps.exe") project "Psychonauts.WidescreenFix" setpaths("Z:/WFP/Games/Psychonauts/", "Psychonauts.exe") project "Scarface.GenericFix" setpaths("Z:/WFP/Games/Scarface/", "Scarface.exe", "") project "SecondSight.WidescreenFix" setpaths("Z:/WFP/Games/Second Sight/", "secondsight.exe") project "SilentHill2.WidescreenFix" setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 2/", "sh2pc.exe") project "SilentHill3.WidescreenFix" setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 3/", "sh3.exe") project "SilentHill4.WidescreenFix" setpaths("Z:/WFP/Games/Silent Hill/Silent Hill 4 The Room/", "Silent Hill 4.exe") project "SniperElite.WidescreenFix" setpaths("Z:/WFP/Games/Sniper Elite/", "SniperElite.exe") project "SonicHeroes.WidescreenFix" setpaths("Z:/WFP/Games/SONICHEROES/", "Tsonic_win.exe") project "SplinterCell.WidescreenFix" setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell/", "system/SplinterCell.exe", "system/scripts/") project "SplinterCellChaosTheory.WidescreenFix" setpaths("Z:/WFP/Games/Splinter Cell/Splintercell Chaos Theory/", "system/splintercell3.exe", "system/scripts/") project "SplinterCellDoubleAgent.WidescreenFix" setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell - Double Agent/", "SCDA-Offline/System/SplinterCell4.exe", "SCDA-Offline/System/scripts/") files { "textures/SCDA/icon.rc" } defines { "IDR_SCDAICON=200" } project "SplinterCellDoubleAgentPS2.WidescreenFix" configurations { "ReleasePCSX2", "DebugPCSX2" } setpaths("Z:/WFP/Games/PCSX2/", "pcsx2.exe") files { "includes/pcsx2/pcsx2.h" } project "SplinterCellPandoraTomorrow.WidescreenFix" setpaths("Z:/WFP/Games/Splinter Cell/Splinter Cell Pandora Tomorrow/", "offline/system/SplinterCell2.exe", "offline/system/scripts/") project "StreetRacingSyndicate.WidescreenFix" setpaths("Z:/WFP/Games/Street Racing Syndicate/", "Bin/srs.exe", "Bin/scripts/") project "StubbstheZombie.WidescreenFix" setpaths("Z:/WFP/Games/Stubbs the Zombie/", "Stubbs.exe") project "TheGodfather.WidescreenFix" setpaths("Z:/WFP/Games/The Godfather/", "godfather.exe") project "TheMatrixPathOfNeo.WidescreenFix" setpaths("Z:/WFP/Games/The Matrix - Path Of Neo/", "Matrix3.exe") project "ThePunisher.WidescreenFix" setpaths("Z:/WFP/Games/The Punisher/", "pun.exe") project "TheSuffering.WidescreenFix" setpaths("Z:/WFP/Games/The Suffering/The Suffering/", "suffering.exe") project "TonyHawksAmericanWasteland.WidescreenFix" setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's American Wasteland/", "Game/THAW.exe", "Game/scripts/") project "TonyHawksProSkater2.WidescreenFix" setpaths("Z:/WFP/Games/Tony Hawks/THPS2/", "THawk2.exe") project "TonyHawksProSkater3.WidescreenFix" setpaths("Z:/WFP/Games/Tony Hawks/Pro Skater 3/", "Skate3.exe") project "TonyHawksProSkater4.WidescreenFix" setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawks Pro Skater 4/", "Game/Skate4.exe", "Game/scripts/") project "TonyHawksUnderground.WidescreenFix" setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's Underground/", "Game/THUG.exe", "Game/scripts/") project "TonyHawksUnderground2.WidescreenFix" setpaths("Z:/WFP/Games/Tony Hawks/Tony Hawk's Underground 2/", "Game/THUG2.exe", "Game/scripts/") project "TotalOverdose.WidescreenFix" setpaths("Z:/WFP/Games/Total Overdose/", "TOD.exe") project "TrueCrimeNewYorkCity.WidescreenFix" setpaths("Z:/WFP/Games/True Crime New York City/", "True Crime New York City.exe") project "TrueCrimeStreetsofLA.WidescreenFix" setpaths("Z:/WFP/Games/True Crime Streets of LA/", "TrueCrimeMB.exe") project "UltimateSpiderMan.WidescreenFix" setpaths("Z:/WFP/Games/Ultimate Spider-Man/", "USM.exe")
-- must be a set of ids local idSet = KEYS[1]; -- current time local curTime = ARGV[1]; -- caching time local expiration = tonumber(ARGV[2] or 30000); -- local tempKeysSet = getIndexTempKeys(idSet); local keys = redis.call("ZRANGEBYSCORE", tempKeysSet, curTime - expiration, '+inf'); if #keys > 0 then redis.call("DEL", unpack(keys)); redis.call("DEL", tempKeysSet); end
local Helper = require( 'lctags.Helper' ) local DBCtrl = require( 'lctags.DBCtrl' ) local log = require( 'lctags.LogCtrl' ) local Option = require( 'lctags.Option' ) local Analyzer = require( 'lctags.Analyzer' ) local Util = require( 'lctags.Util' ) local Make = {} --- list の中から更新が必要なファイルリストを返す -- -- ヘッダファイルの更新が必要な場合、 -- そのファイルをインクルードしているソースファイルをリストに含める local function searchNeedUpdateFiles( db, list, target ) -- 更新対象のリストのファイル更新時間から更新が必要かどうかチェック if not target then target = "" end if not db:hasTarget( nil, target ) then log( 1, string.format( "The files does not have target (%s)", target ) ) return {} end if #list == 1 then -- ファイル 1 つの場合は、面倒な確認はせずにそのまま返す local fileInfo = list[ 1 ] local targetInfo = db:getTargetInfo( fileInfo.id, target ) if targetInfo and fileInfo.incFlag == 0 then return list end end -- 更新が必要な古いファイル local needUpdateSrcMap = {} -- fileId -> ファイルの更新時間マップ local fileId2ModTime = {} -- 更新が必要なインクルードファイルのセット local needUpdateIncFileInfoMap = {} -- 更新が必要なインクルードファイルのリスト local needUpdateIncIdList = {} -- 情報が新しいファイル local uptodateFileMap = {} local dependFileInfoMap = {} -- fileInfo の更新時間を調べて、古い場合は次の処理を行なう。 -- - ヘッダの場合 needUpdateIncFileInfoMap に追加 -- - ソースの場合 needUpdateSrcMap に追加 -- 新しい場合、そのファイルがインクルードしているヘッダを dependFileInfoMap に追加 local checkModTime = function( fileInfo, validCheckIncCache ) -- log( 3, "check path", fileInfo.path ) if not uptodateFileMap[ fileInfo.id ] then local targetInfo = db:getTargetInfo( fileInfo.id, target ) local addToDependFlag = false if targetInfo then local modTime = Helper.getFileModTime( db:getSystemPath( fileInfo.path ) ) fileId2ModTime[ fileInfo.id ] = modTime if modTime then if not targetInfo or modTime > targetInfo.updateTime then -- 更新時間が古い場合はマップに登録 log( 3, "modified", fileInfo.path, modTime, targetInfo and targetInfo.updateTime or "none" ) if fileInfo.incFlag ~= 0 then needUpdateIncFileInfoMap[ fileInfo.id ] = fileInfo table.insert( needUpdateIncIdList, fileInfo.id ) else needUpdateSrcMap[ fileInfo.id ] = fileInfo end else uptodateFileMap[ fileInfo.id ] = fileInfo if validCheckIncCache then -- 更新情報が新しい場合、 -- そのファイルがインクルードしているファイルをチェック対象に入れる。 -- mapIncludeCache だと遅いので、mapIncRefListFrom に切り替え -- db:mapIncludeCache( -- fileInfo db:mapIncRefListFrom( fileInfo.id, function( item ) if not fileId2ModTime[ fileInfo.id ] and not dependFileInfoMap[ item.id ] then local incFileInfo = db:getFileInfo( item.id ) -- log( 3, "add needUpdateIncFileInfoMap", incFileInfo.path ) dependFileInfoMap[ item.id ] = incFileInfo addToDependFlag = true end return true end ) end end end else log( 2, string.format( "this file is not target %s", fileInfo.path ) ) end end return addToDependFlag end log( 1, "check modified files", #list ) for index, fileInfo in ipairs( list ) do if ( index % 100 ) == 0 then log( 1, string.format( "checking pass 1 -- %d/%d", index, #list ), os.date() ) end checkModTime( fileInfo, true ) end -- include ファイルからさらに include しているファイルについてもチェック local checkedFileIdSet = {} local count = 2 while true do local addToDependFlag = false local checkList = {} for fileId, fileInfo in pairs( dependFileInfoMap ) do if not checkedFileIdSet[ fileId ] then table.insert( checkList, fileInfo ) checkedFileIdSet[ fileId ] = true end end for index, fileInfo in ipairs( checkList ) do if ( index % 100 ) == 0 then log( 1, string.format( "checking pass %d -- %d/%d", count, index, #checkList ), os.date() ) end if checkModTime( fileInfo, false ) then addToDependFlag = true end end if not addToDependFlag then break end count = count + 1 end local needUpdateIncNum = 0 for incId in pairs( needUpdateIncFileInfoMap ) do needUpdateIncNum = needUpdateIncNum + 1 end log( 2, "needUpdateIncNum: start", needUpdateIncNum ) -- 更新時間が新しいファイルがインクルードしているファイルの更新情報をチェックする。 -- ソースファイルが更新されていなくても、インクルードファイルが更新されている場合は、 -- ソースファイルを更新する必要がある local isNeedUpdateFunc = function( fileInfo, incId, targetInfo ) if incId == DBCtrl.systemFileId then return false end if needUpdateIncFileInfoMap[ incId ] then return true end local incFileInfo = db:getFileInfo( incId ) modTime = fileId2ModTime[ incId ] if not modTime then modTime = Helper.getFileModTime( db:getSystemPath( incFileInfo.path ) ) fileId2ModTime[ incId ] = modTime end if not modTime or modTime > targetInfo.updateTime then -- インクルードファイルの更新時間が古い場合はマップに登録 return true end return false end local uptodateFileNum = 0 for fileId in pairs( uptodateFileMap ) do uptodateFileNum = uptodateFileNum + 1 end local fileId2TargetInfoMap = {} db:mapTargetInfo( string.format( "target = '%s'", target ), function( item ) fileId2TargetInfoMap[ item.fileId ] = item return true end ) -- 編集されていないファイルから、更新されているファイルをインクルードしている場合、 -- 編集されていないファイルを更新対象にする。 -- これは list に指定されているものを対象にする。 db:mapIncludeCache( nil, function( item ) if needUpdateIncFileInfoMap[ item.id ] then if uptodateFileMap[ item.baseFileId ] then log( 3, "check needUpdateIncFileInfoMap", needUpdateIncFileInfoMap[ item.id ].path, uptodateFileMap[ item.baseFileId ].path ) -- 編集されていないファイルからインクルードしている if not needUpdateSrcMap[ item.baseFileId ] then -- インクルードしているファイルが更新が必要になっていない fileInfo = db:getFileInfo( item.baseFileId ) -- インクルードの更新日時が古い場合ソースファイルを更新対象にする if isNeedUpdateFunc( fileInfo, item.id, fileId2TargetInfoMap[ item.id ] ) then log( 1, "include file is modified", item.id, fileInfo.path ) needUpdateSrcMap[ fileInfo.id ] = fileInfo end end -- needUpdateIncFileInfoMap[ item.id ] = nil -- needUpdateIncNum = needUpdateIncNum - 1 -- if needUpdateIncNum <= 0 then -- return false -- end end end return true end, true ) log( 2, "needUpdateIncNum: fix", needUpdateIncNum ) local needFileList = {} for fileId, fileInfo in pairs ( needUpdateSrcMap ) do table.insert( needFileList, fileInfo ) end -- 更新が必要なインクルードファイルを更新するために、 -- 任意のソースファイルを更新対象にする。 for fileId, fileInfo in pairs ( needUpdateIncFileInfoMap ) do local srcFileInfo = db:getSrcForIncOne( fileInfo, target ) if srcFileInfo then table.insert( needFileList, srcFileInfo ) log( 1, "needUpdateIncFileInfoMap:", srcFileInfo.path ) end end return needFileList, needUpdateIncIdList end -- 共通インクルードファイルの更新を効率良く行なうために、 -- なるべくインクルードファイルが被らないように解析できるように順番を決定する -- -- @param list 更新が必要なソースファイルリスト -- @param needUpdateIncIdList 更新が必要なインクルードファイルリスト function Make:decideOrderForMake( db, list, needUpdateIncIdList ) if needUpdateIncIdList == 0 then -- 更新対象にインクルードファイルがない場合は list をそのまま返す log( 2, "decideOrderForMake: has no inc" ) return list end local needUpdateIncIdSet = {} for index, incId in ipairs( needUpdateIncIdList ) do needUpdateIncIdSet[ incId ] = 1 end local needUpdateSrcMap = {} for fileId, fileInfo in pairs( list ) do needUpdateSrcMap[ fileId ] = fileInfo end -- list がインクルードしているファイルを needUpdateIncIdSet に追加する log( 2, "decideOrderForMake: setup needUpdateIncIdSet" ) db:mapIncludeCache( nil, function( item ) if needUpdateSrcMap[ item.baseFileId ] then needUpdateIncIdSet[ item.id ] = 1 end return true end ) local needUpdateSrcId2FileInfoMap = {} for index, fileInfo in ipairs( list ) do needUpdateSrcId2FileInfoMap[ fileInfo.id ] = fileInfo end -- ファイルID -> ソースファイルの情報 local fileId2SrcInfoMap = {} -- インクルードファイル ID -> インクルードファイルの情報 local incId2IncInfoMap = {} log( 2, "decideOrderForMake: setup information" ) db:mapIncludeCache( nil, function( item ) if needUpdateIncIdSet[ item.id ] and needUpdateSrcId2FileInfoMap[ item.baseFileId ] then local srcInfo = fileId2SrcInfoMap[ item.baseFileId ] if not srcInfo then srcInfo = { incIdSet = {} } fileId2SrcInfoMap[ item.baseFileId ] = srcInfo end srcInfo.incIdSet[ item.id ] = 1 local incInfo = incId2IncInfoMap[ item.id ] if not incInfo then incInfo = { count = 0, srcIdSet = {} } incId2IncInfoMap[ item.id ] = incInfo end incInfo.count = incInfo.count + 1 incInfo.srcIdSet[ item.baseFileId ] = 1 end return true end ) -- 参照数の多いインクルードをより多く参照しているソースを探すために -- インクルード数をカウントする log( 2, "decideOrderForMake: search maxRef" ) local procIndex = 0 for fileId, srcInfo in pairs( fileId2SrcInfoMap ) do srcInfo.count = 0 for incId in pairs( srcInfo.incIdSet ) do srcInfo.count = srcInfo.count + incId2IncInfoMap[ incId ].count end end local buildList = {} while true do local maxNum local maxSrcId for fileId, srcInfo in pairs( fileId2SrcInfoMap ) do if not maxNum or maxNum < srcInfo.count then maxSrcId = fileId maxNum = srcInfo.count end end if not maxSrcId or maxNum <= 2 then break end table.insert( buildList, ( db:getFileInfo( maxSrcId ) ) ) needUpdateSrcId2FileInfoMap[ maxSrcId ] = nil -- maxSrcId から参照しているインクルードファイルを除外する。 log( 2, "decideOrderForMake", maxNum, buildList[ #buildList ].path ) for incId in pairs( fileId2SrcInfoMap[ maxSrcId ].incIdSet ) do local incInfo = incId2IncInfoMap[ incId ] for srcId in pairs( incInfo.srcIdSet ) do if srcId ~= maxSrcId then srcInfo = fileId2SrcInfoMap[ srcId ] srcInfo.count = srcInfo.count - incInfo.count srcInfo.incIdSet[ incId ] = nil if not maxNum or maxNum < srcInfo.count then nextSrcId = srcId maxNum = srcInfo.count end end end end fileId2SrcInfoMap[ maxSrcId ] = nil end -- 残りのソースを追加する。 -- ディレクトリがバラけた方がインクルードや解析時間の傾向が分散して -- 並列実行する際に効率が良くなるので、ランダムに追加する。 restFileInfoList = {} for srcId, fileInfo in pairs( needUpdateSrcId2FileInfoMap ) do table.insert( restFileInfoList, fileInfo ) end while #restFileInfoList > 0 do local index = math.random( #restFileInfoList ) local fileInfo = restFileInfoList[ index ] table.insert( buildList, fileInfo ) table.remove( restFileInfoList, index ) end return buildList end function Make:updateFor( dbPath, target, jobs, src ) local db = DBCtrl:open( dbPath, true, Util:getcwd() ) local dbFullPath = db:convFullpath( dbPath ) local targetFileInfo = db:getFileInfo( nil, src ) -- src 以降のファイルをピックアップ local list = {} if not targetFileInfo then local condition = string.format( "path like '%s%%' escape '$'", db:convPath( src ) ) db:mapFile( condition, function( item ) table.insert( list, item ) return true end ) else table.insert( list, targetFileInfo ) end if #list == 0 then log( 1, 'not match' ) os.exit( 1 ) end -- ピックアップしたファイルから、更新が必要なものを検索 list, needUpdateIncIdList = searchNeedUpdateFiles( db, list, target ) if #list == 0 then log( 1, 'all file is analyzed already' ) return end if #list == 1 then -- ファイルが 1 つの場合は、make せずに直接更新する local analyzer = Analyzer:new( dbPath, false, false, db:convFullpath( db:getSystemPath( list[1].currentDir ) )) local fullPath = db:convFullpath( db:getSystemPath( list[1].path ) ) db:close() analyzer:update( fullPath, target ) return end list = self:decideOrderForMake( db, list, needUpdateIncIdList ) -- list の情報を更新する makefile を生成 local tmpName = Helper.getTempFilename( "lcmake" ) local fileHandle = io.open( tmpName, "w" ) if not fileHandle then log( 1, 'failed to open', tmpName ) os.exit( 1 ) end -- 最初のファイルは共通インクルードが多いので並列に処理せずにビルドし、 -- 他のファイルを並列処理するように make を生成する。 -- 共通インクルードが多い序盤に並列度が高いと無駄になるので -- 並列度を下げる。 for index, fileInfo in ipairs( list ) do local group if index == 1 then group = "FIRST" elseif index == 2 then group = "SECOND" elseif ( index < (#list / 20) ) and ( index < 100 ) then group = "THIRD" else group = "SRCS" end fileHandle:write( string.format( "%s += %d/%d%s\n", group, index, #list, db:getSystemPath( fileInfo.path ) ) ) end db:close() local opt = "--lctags-uptime " .. tostring( Helper.getCurrentTime() ) if Option:isValidProfile() then opt = opt .. " --lctags-prof" end if Option:isValidLockLog() then opt = opt .. " --lctags-lockLog" end if Option:isValidRecordSql() then opt = opt .. " --lctags-recSql" end if Option:isValidRecordDigestSrc() then opt = opt .. " --lctags-digestRec" end if Option:isValidLockLog() then opt = opt .. " --lctags-recSql" end if Option:isIndivisualWrite() then opt = opt .. " --lctags-indiv" end if not jobs then jobs = 1 end fileHandle:write( string.format( [[ .PHONY: all build setup first second third other FIRST := $(addsuffix .lc, $(FIRST)) SECOND := $(addsuffix .lc, $(SECOND)) THIRD := $(addsuffix .lc, $(THIRD)) SRCS := $(addsuffix .lc, $(SRCS)) #SRV=--lctags-srv all: build: $(MAKE) -f %s first $(MAKE) -f %s second $(MAKE) -j%d -f %s third $(MAKE) -j%d -f %s other all: setup -$(MAKE) -f %s build @echo server stop %s %s cancel-kill --lctags-db %s %s %s statusServer stop --lctags-db %s ifdef SRV %s %s server stop --lctags-db %s endif setup: %s %s statusServer start --lctags-db %s 2>&1 | tee -a %s & %s %s statusServer wait --lctags-db %s ifdef SRV %s %s server start --lctags-db %s & endif first: $(FIRST) second: $(SECOND) third: $(THIRD) other: $(SRCS) %%.lc: @echo $(patsubst %%.lc,%%,$(shell echo $@ | sed 's@^\([^/]*/[^/]*\)/@[\1] /@')) -@%s %s updateForMake %s $(patsubst %%.lc,%%,$(shell echo $@ | sed 's@^\([^/]*/[^/]*\)/@/@')) --lctags-log %d --lctags-db %s %s $(SRV) || echo "=== MAKE NG === $@" @%s %s check-kill > /dev/null || exit 1 ]], -- build tmpName, tmpName, math.floor(((jobs>=3) and jobs or 3) / 3), tmpName, jobs, tmpName, -- all tmpName, arg[-1], arg[0], dbPath, arg[-1], arg[0], dbPath, arg[-1], arg[0], dbPath, -- setup arg[-1], arg[0], dbPath, Helper.getTempFilename( "lctagsStatus" ), arg[-1], arg[0], dbPath, arg[-1], arg[0], dbPath, -- %%.lc arg[-1], arg[0], target and ("--lctags-target " .. target ) or "", log( 0, -1 ), dbPath, opt, arg[-1], arg[0] ) ) fileHandle:close() -- make の実行 log( 1, "-j:", jobs ) if not os.execute( "make -f " .. tmpName ) then os.exit( 1 ) end --os.remove( tmpName ) end function Make:lazyUpdateFor( dbPath, target, jobs, optList ) local db = DBCtrl:open( dbPath, false, Util:getcwd() ) local root = db:convFullpath( "." ) suffixTable = { c = "c", [ "c++" ] = "cpp", [ "cc" ] = "cpp", [ "cxx" ] = "cpp", [ "cpp" ] = "cpp" } local compileOp = "" for index, opt in ipairs( optList ) do compileOp = string.format( "%s %s", compileOp, opt ) end -- directory の登録。 -Idir local dirList = Util:getFileList( root, "dir" ) for index, path in ipairs( dirList ) do if string.find( path, "%s" ) then print( "skip -- ", path ) else compileOp = string.format( "%s -I%s", compileOp, path ) end end local time = Helper.getCurrentTime() local fileList = Util:getFileList( root, "file" ) for index, fullPath in ipairs( fileList ) do local suffix = string.gsub( fullPath, ".*%.([a-zA-Z%+]+)$", "%1" ) if suffix then local lang = suffixTable[ suffix:lower() ] if lang then local fileInfo = db:getFileInfo( nil, fullPath ) if not fileInfo then db:addFile( fullPath, time, 0, compileOp, root, true, target, 0 ) end end end end db:commit() Make:updateFor( dbPath, target, jobs, root ) end return Make
NewShipType = StartShipConfig() NewShipType.displayedName="$1546" NewShipType.sobDescription="$1547" NewShipType.maxhealth=getShipNum(NewShipType, "maxhealth", 400) NewShipType.regentime=0 NewShipType.minRegenTime=0 NewShipType.sideArmourDamage = getShipNum(NewShipType, "sideArmourDamage", 1.0) NewShipType.rearArmourDamage = getShipNum(NewShipType, "rearArmourDamage", 1.0) setTacticsMults(NewShipType, "ENGINEACCEL", 1.0, 1.0, 1.0) setTacticsMults(NewShipType, "THRUSTERACCEL", 1.0, 1.0, 1.0) setTacticsMults(NewShipType, "ROTATION", 1.0, 1.0, 1.0) setTacticsMults(NewShipType, "ROTATIONACCEL", 1.0, 1.0, 1.0) NewShipType.isTransferable=1 NewShipType.mass=10 NewShipType.collisionMultiplier=0.4 NewShipType.thrusterMaxSpeed=600 NewShipType.mainEngineMaxSpeed=600 NewShipType.rotationMaxSpeed=171 NewShipType.thrusterAccelTime=2 NewShipType.thrusterBrakeTime=1 NewShipType.mainEngineAccelTime=2 NewShipType.mainEngineBrakeTime=1 NewShipType.rotationAccelTime=0.6 NewShipType.rotationBrakeTime=0.3 NewShipType.thrusterUsage=1 NewShipType.accelerationAngle=90 NewShipType.mirrorAngle=0 NewShipType.secondaryTurnAngle=0 NewShipType.maxBankingAmount=85 NewShipType.descendPitch=0 NewShipType.goalReachEpsilon=5 NewShipType.slideMoveRange=100 NewShipType.controllerType="Ship" NewShipType.tumbleStaticX=10 NewShipType.tumbleStaticY=20 NewShipType.tumbleStaticZ=5 NewShipType.tumbleDynamicX=2 NewShipType.tumbleDynamicY=10 NewShipType.tumbleDynamicZ=5 NewShipType.tumbleSpecialDynamicX=2 NewShipType.tumbleSpecialDynamicY=10 NewShipType.tumbleSpecialDynamicZ=5 NewShipType.relativeMoveFactor=6 NewShipType.swayUpdateTime=3 NewShipType.swayOffsetRandomX=10 NewShipType.swayOffsetRandomY=10 NewShipType.swayOffsetRandomZ=10 NewShipType.swayBobbingFactor=0.15 NewShipType.swayRotateFactor=0 NewShipType.dustCloudDamageTime=60 NewShipType.nebulaDamageTime=20 NewShipType.MinimalFamilyToFindPathAround="SuperPriority" NewShipType.BuildFamily="Probe_Hgn" NewShipType.AttackFamily="Utility" NewShipType.DockFamily="Utility" NewShipType.AvoidanceFamily="Utility" NewShipType.DisplayFamily="Utility" NewShipType.AutoFormationFamily="Fighter" NewShipType.CollisionFamily="Small" NewShipType.ArmourFamily=getShipStr(NewShipType, "ArmourFamily", "ProbeArmour") setSupplyValue(NewShipType, "Utility", 1.0) setSupplyValue(NewShipType, "Probe", 1.0) NewShipType.fighterValue=0 NewShipType.corvetteValue=0 NewShipType.frigateValue=0 NewShipType.neutralValue=0 NewShipType.antiFighterValue=0 NewShipType.antiCorvetteValue=0 NewShipType.antiFrigateValue=0 NewShipType.totalValue=0 NewShipType.buildCost=150 NewShipType.buildTime=15 NewShipType.buildPriorityOrder=20 NewShipType.retaliationRange=4800 NewShipType.retaliationDistanceFromGoal=160 NewShipType.visualRange=4000 NewShipType.prmSensorRange=10500 NewShipType.secSensorRange=10500 NewShipType.detectionStrength=1 NewShipType.TOIcon="InvertedPentagon" NewShipType.TOScale=1 NewShipType.TODistanceFade0=7000 NewShipType.TODistanceDisappear0=5000 NewShipType.TODistanceFade1=350 NewShipType.TODistanceDisappear1=300 NewShipType.TODistanceFade2=12000 NewShipType.TODistanceDisappear2=25000 NewShipType.TOGroupScale=1 NewShipType.TOGroupMergeSize=0 NewShipType.mouseOverMinFadeSize=0.045 NewShipType.mouseOverMaxFadeSize=0.1 NewShipType.healthBarStyle=1 NewShipType.nlips=0.001 NewShipType.nlipsRange=10000 NewShipType.nlipsFar=0.0005 NewShipType.nlipsFarRange=20000 NewShipType.SMRepresentation="HardDot" NewShipType.meshRenderLimit=11000 NewShipType.dotRenderLimit=10 NewShipType.visibleInSecondary=0 NewShipType.minLOD=0.2 NewShipType.goblinsStartFade=50 NewShipType.goblinsOff=50 NewShipType.upLOD=700 NewShipType.downLOD=500 NewShipType.minimumZoomFactor=1.3 NewShipType.selectionLimit=150000 NewShipType.preciseSelectionLimit=2000 NewShipType.preciseATILimit=5000 NewShipType.selectionPriority=75 NewShipType.militaryUnit=0 NewShipType.alternativeHyperspaceTime = 7 addAbility(NewShipType,"MoveCommand",1,1); NewShipType.ignoreRaceWhenDocking=0 addAbility(NewShipType,"CanLaunch"); NewShipType.launchTimeBetweenTwoFormations=1 NewShipType.launchTimeBeforeStart=2 NewShipType.launchNrOfShipsInDockFormation=1 NewShipType.launchFormation="delta" NewShipType.canJoinStrikeGroup=0 addAbility(NewShipType,"ParadeCommand",1); if hypBool == 1 then addAbility(NewShipType,"HyperspaceViaGateCommand",1,3,1,0.3); end LoadSharedModel(NewShipType,"Hgn_Probe"); NewShipType.battleScarCoverage=0 NewShipType.sobDieTime=1 NewShipType.sobSpecialDieTime=1 NewShipType.specialDeathSpeed=40 NewShipType.chanceOfSpecialDeath=0 NewShipType.deadSobFadeTime=1 setEngineTrail(NewShipType,0,20,"trail_ribbon.tga",0.001,0.1,0.025,2); setEngineBurn(NewShipType,20,0.5,0.6,16,0.1,0.1,0.25,28); loadShipPatchList(NewShipType,"data:sound/sfx/ship/Hiigaran/NonMilitary/",0,"Engines/HProbeEng",""); NewShipType.minFalloffDamageDist=25 NewShipType.maxFalloffDamageDist=25*3 NewShipType.maxFalloffScuttleDamageDist=25*6 NewShipType.explosiveScuttleDamageOnDeath=125 NewShipType.maxFalloffForce=15*10 NewShipType.explosiveDamageOnDeath=27
class "Dog" { nextJump = 0.0; timer = 0; frame = 0; barkNext = 0; } function Dog:__init(world, x, y) self.world = world self.image = love.graphics.newImage("gfx/DogRunAnimation.png") self.image:setWrap("repeat", "repeat") self.width = self.image:getWidth() / 8 self.height = self.image:getHeight() self.quad = love.graphics.newQuad(0, 0, self.width, self.height, self.image:getWidth(), self.image:getHeight()) self.physics = {} self.physics.body = love.physics.newBody(world, x, y, "dynamic") --self.physics.shape = love.physics.newCircleShape(16) self.physics.shape = love.physics.newRectangleShape(0, 0, self.width, self.height) self.physics.fixture = love.physics.newFixture(self.physics.body, self.physics.shape, 2) self.physics.body:setUserData(self) self.physics.body:setFixedRotation(true) self.physics.fixture:setUserData(self) self.physics.fixture:setRestitution(0.3) self.strength = 1 self.bite = love.audio.newSource('sfx/dog_bite_01.wav', 'static') self.bark = { love.audio.newSource('sfx/dog_bark_01.wav', 'static'), love.audio.newSource('sfx/dog_bark_02.wav', 'static'), love.audio.newSource('sfx/dog_bark_03.wav', 'static'), love.audio.newSource('sfx/dog_bark_04.wav', 'static'), love.audio.newSource('sfx/dog_bark_05.wav', 'static'), love.audio.newSource('sfx/dog_bark_06.wav', 'static'), love.audio.newSource('sfx/dog_bark_07.wav', 'static'), love.audio.newSource('sfx/dog_bark_08.wav', 'static'), love.audio.newSource('sfx/dog_bark_09.wav', 'static') } self.particleEat = Particle:new(0, 0, 255, 128, 192, 2) self.particleEat:stop() end function Dog:draw(offsetx, offsety, flip) self.frame = math.floor(self.timer) % 8 self.quad:setViewport(self.width * self.frame, 0, self.width, self.height) if flip then love.graphics.draw(self.image, self.quad, self.physics.body:getX() + self.width/2 - offsetx, self.physics.body:getY() - self.height/2 - offsety, 0, -1, 1) else love.graphics.draw(self.image, self.quad, self.physics.body:getX() - self.width/2 - offsetx, self.physics.body:getY() - self.height/2 - offsety) end self.particleEat:drawAt(self.physics.body:getX() + 3 * self.width/8 - offsetx, self.physics.body:getY() - self.height/4 - offsety) end function Dog:getPosition() return self.physics.body:getX(), self.physics.body:getY() end function Dog:update(dt, obstacles, wait, distanceToPlayer) self.timer = self.timer + (x * 0.05) * dt if not wait then self.physics.body:applyForce(gDogSpeedBase * math.pow(gDogSpeedFactorBase, self.strength - 1), 0) else self.physics.body:applyForce(-gDogSpeedBase * math.pow(gDogSpeedFactorBase, self.strength - 1), 0) end self.nextJump = self.nextJump - dt if self.nextJump <= 0 then local posx, posy = self:getPosition() for i,v in pairs(obstacles) do local oposx, oposy = v:getPosition() if getDistance(posx, posy, oposx, oposy) < 500 and ((not wait and posx < oposx) or (wait and posx > oposx)) then self.physics.body:applyLinearImpulse(0, 6000) self.nextJump = 2.0 break end end end self.barkNext = self.barkNext - dt if self.barkNext < 0 then if distanceToPlayer < 300 then self.barkNext = math.random() * 1.0 else self.barkNext = math.random() * 5.0 end local id = math.random(1, #self.bark) self.bark[id]:rewind() self.bark[id]:play() end self.particleEat:update(dt) end function Dog:getSize() return self.width, self.height end function Dog:getWidth() return self.width end function Dog:getHeight() return self.height end function Dog:getType() return "Dog" end function Dog:eatSausage(sausage) self.physics.body:applyForce(-1250 * math.pow(1.2, self.strength), 0) self.strength = self.strength + 1 self.particleEat:reset() end function Dog:destroy() self.physics.body:destroy() self.physics.fixture:destroy() end function Dog:bitePlayer(player) self.bite:rewind() self.bite:play() end
require 'utils.enum' if codes == nil then codes = {} end -- Enum for weather IDs, according to the internal files codes.WEATHER, codes.WEATHER_NAMES = enum.register({ 'Clear', 'Sunny', 'Sandstorm', 'Cloudy', 'Rain', 'Hail', 'Fog', 'Snow', }, 0, 'weather condition')
----------------------------------- -- Area: Western Adoulin (256) -- NPC: Brenton -- Type: SOA Mission NPC -- !pos 127 -86.036 3.349 ----------------------------------- require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/globals/npc_util") local ID = require("scripts/zones/Western_Adoulin/IDs") ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) local pioneerRegistration = player:getCurrentMission(SOA) == tpz.mission.id.soa.PIONEER_REGISTRATION local lifeOnTheFrontier = player:getCurrentMission(SOA) == tpz.mission.id.soa.LIFE_ON_THE_FRONTIER if pioneerRegistration then player:startEvent(3) elseif lifeOnTheFrontier and player:getFameLevel(ADOULIN) >= 2 then player:startEvent(4) else player:startEvent(576) end end function onEventUpdate(player, csid, option) end function onEventFinish(player, csid, option) if csid == 3 then player:addCurrency('bayld', 1000 * BAYLD_RATE) player:messageSpecial(ID.text.BAYLD_OBTAINED, 1000 * BAYLD_RATE) player:addKeyItem(tpz.ki.PIONEERS_BADGE) -- Notification for this is shown in the CS, so hand over quietly npcUtil.giveKeyItem(player, tpz.ki.MAP_OF_ADOULIN) player:completeMission(SOA, tpz.mission.id.soa.PIONEER_REGISTRATION) player:addMission(SOA, tpz.mission.id.soa.LIFE_ON_THE_FRONTIER) elseif csid == 4 then npcUtil.giveKeyItem(player, tpz.ki.DINNER_INVITATION) player:completeMission(SOA, tpz.mission.id.soa.LIFE_ON_THE_FRONTIER) player:addMission(SOA, tpz.mission.id.soa.MEETING_OF_THE_MINDS) end end
--[[ Copyright (c) 2016 by Marco Lizza (marco.lizza@gmail.com) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgement in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. ]]-- -- MODULE INCLUSIONS ----------------------------------------------------------- local config = require('game.config') local Emitter = require('game.emitter') local generator = require('game.generator') local array = require('lib.array') -- MODULE DECLARATION ---------------------------------------------------------- local Maze = { -- VALUES -- width = nil, height = nil, -- PROPERTIES -- emitters = {}, cells = nil, colors = nil, energy = nil } -- LOCAL VARIABLES ------------------------------------------------------------- -- This is the list of some selected map patterns that will be filled in order -- to build some rooms. The [matched] attribute works much like a "kernel". -- [value] is the comparison/finding value, that is we check for the kernel -- match only on cells whose value is different from [value]. Then, once the -- kernel matches, the [filled] cells are set to [value]. Note that coordinates -- are specified as a displacement from the current one (i.e. relative to it). local PATTERNS = { { matched = { { dx = -1, dy = -1, value = true }, -- 111 111 { dx = 0, dy = -1, value = true }, -- 101 >> 111 { dx = 1, dy = -1, value = true }, -- 111 111 { dx = -1, dy = 0, value = true }, { dx = 0, dy = 0, value = false }, { dx = 1, dy = 0, value = true }, { dx = -1, dy = 1, value = true }, { dx = 0, dy = 1, value = true }, { dx = 1, dy = 1, value = true } }, filled = { { dx = 0, dy = 0 } }, value = true }, { matched = { { dx = -1, dy = -1, value = true }, -- 11111 11111 { dx = 0, dy = -1, value = true }, -- 10001 >> 11111 { dx = 1, dy = -1, value = true }, -- 11111 11111 { dx = 2, dy = -1, value = true }, { dx = 3, dy = -1, value = true }, { dx = -1, dy = 0, value = true }, { dx = 0, dy = 0, value = false }, { dx = 1, dy = 0, value = false }, { dx = 2, dy = 0, value = false }, { dx = 3, dy = 0, value = true }, { dx = -1, dy = 1, value = true }, { dx = 0, dy = 1, value = true }, { dx = 1, dy = 1, value = true }, { dx = 2, dy = 1, value = true }, { dx = 3, dy = 1, value = true } }, filled = { { dx = 0, dy = 0 }, { dx = 1, dy = 0 }, { dx = 2, dy = 0 } }, value = true }, { matched = { { dx = -1, dy = -1, value = true }, -- 111 111 { dx = 0, dy = -1, value = true }, -- 101 111 { dx = 1, dy = -1, value = true }, -- 101 >> 111 { dx = -1, dy = 0, value = true }, -- 101 111 { dx = 0, dy = 0, value = false }, -- 111 111 { dx = 1, dy = 0, value = true }, { dx = -1, dy = 1, value = true }, { dx = 0, dy = 1, value = false }, { dx = 1, dy = 1, value = true }, { dx = -1, dy = 2, value = true }, { dx = 0, dy = 2, value = false }, { dx = 1, dy = 2, value = true }, { dx = -1, dy = 3, value = true }, { dx = 0, dy = 3, value = true }, { dx = 1, dy = 3, value = true } }, filled = { { dx = 0, dy = 0 }, { dx = 0, dy = 1 }, { dx = 0, dy = 2 } }, value = true } } -- MODULE OBJECT CONSTRUCTOR --------------------------------------------------- Maze.__index = Maze function Maze.new(params) local self = setmetatable({}, Maze) if params then for k, v in pairs(params) do self[k] = v end end return self end -- LOCAL FUNCTIONS ------------------------------------------------------------- local function clear(colors, cells, width, height) for y = 1, height do for x = 1, width do cells[y][x] = false colors[y][x] = 'undefined' end end end local function expand(cells, grid, width, height) for y = 1, height do local yy = y * 2 for x = 1, width do local xx = x * 2 local directions = grid[y][x] if #directions > 0 then cells[yy][xx] = true if array.contains(directions, 'w') then cells[yy][xx - 1] = true end if array.contains(directions, 'e') then cells[yy][xx + 1] = true end if array.contains(directions, 's') then cells[yy + 1][xx] = true end if array.contains(directions, 'n') then cells[yy - 1][xx] = true end end end end end local function fill(cells, width, height, pattern) for y = 1, height do for x = 1, width do if cells[y][x] ~= pattern.value then local fill = true for _, matched in ipairs(pattern.matched) do local nx, ny = x + matched.dx, y + matched.dy if nx >= 1 and ny >= 1 and nx <= width and ny <= height then if cells[ny][nx] ~= matched.value then fill = false break end end end if fill then for _, filled in ipairs(pattern.filled) do local nx, ny = x + filled.dx, y + filled.dy cells[ny][nx] = pattern.value end end end end end end local function colorize(colors, cells, width, height) for y = 1, height do for x = 1, width do local color = 'undefined' if cells[y][x] then -- visible cell => ground color = 'ground' elseif not cells[y][x] then -- non-visible cell -> wall color = 'wall' end colors[y][x] = color end end end -- MODULE FUNCTIONS ------------------------------------------------------------ function Maze:initialize(width, height) self.cells = array.create(width, height, function(x, y) return false end) self.colors = array.create(width, height, function(x, y) return 'undefined' end) self.energy = array.create(width, height, function(x, y) return 0 end) self.width = width self.height = height end function Maze:reset() -- Rewrite the maze tables to neutral values. for y = 1, self.height do for x = 1, self.width do self.colors[y][x] = 'undefined' self.cells[y][x] = false self.energy[y][x] = 0 end end -- We empty the emitters table. self.emitters = {} end function Maze:generate(dusk_period) -- We reset he maze, to be safe. self:reset() -- Update and reset the current dusk period, that is the amount of time -- the maze will be fully lit. self.dusk_period = dusk_period self.dusk = dusk_period -- The generator will work on a "half-size" version of the maze, since -- we will expand and insert the walls later. Please note that we need -- to ensure the the size not the have a decimal part. local width, height = math.floor(self.width / 2), math.floor(self.height / 2) -- Generate the maze, the "braid" the dead-ends. This will be useful, -- later, to crate the rooms. local grid = generator.generate(config.maze.type, width, height) generator.braid(grid, width, height, config.maze.braiding) -- Clear the current map content and expand the generated grid into it. clear(self.colors, self.cells, self.width, self.height) expand(self.cells, grid, width, height) -- Seek selected patterns and fill the map. for _, pattern in ipairs(PATTERNS) do fill(self.cells, self.width, self.height, pattern) end -- Scan the maze and generate a "colorized" version of the map, that -- will be used for the final displaying. colorize(self.colors, self.cells, self.width, self.height) end function Maze:spawn_emitter(id, x, y, radius, energy, duration) local emitter = Emitter.new() emitter:initialize(x, y, radius, energy, duration) self.emitters[id] = emitter end function Maze:kill_emitter(id) self.emitters[id] = nil end function Maze:get_emitter(id) return self.emitters[id] end function Maze:move_emitter(id, x, y) local emitter = self.emitters[id] if emitter then emitter:set_position(x, y) end end function Maze:raycast(x0, y0, x1, y1, evaluate) local dx = math.abs(x1 - x0) local dy = math.abs(y1 - y0) local sx = x0 < x1 and 1 or -1 local sy = y0 < y1 and 1 or -1 local e = dx - dy while true do -- Evaluate and check if the current point can be traversed. If not, quit -- telling that the ray cannot be cast from the two points. if not evaluate(x0, y0) then return false end -- Quit when the destination point has been reached. if x0 == x1 and y0 == y1 then break end -- local e2 = e + e if e2 > -dy then e = e - dy x0 = x0 + sx end if e2 < dx then e = e + dx y0 = y0 + sy end end -- Successfully ended, the destination point is visible. return true end function Maze:update(dt, callback) -- Update the dusk period, if not reached the limit. if self.dusk > 0 then self.dusk = math.max(0, self.dusk - dt) end -- Scan the emitters' list updating them and marking the "dead" ones. The -- latter are pulled from the list. local zombies = {} for id, emitter in pairs(self.emitters) do emitter:update(dt) if not emitter:is_alive() then zombies[#zombies + 1] = id end end for _, id in ipairs(zombies) do self.emitters[id] = nil callback(id) -- notify an emitter has disappeared end -- Reset the energy-map. Here we should also teke into account the non-changing -- parts of the map. for y = 1, self.height do for x = 1, self.width do self.energy[y][x] = 0 end end -- Scan each emitter and, inside the bounding rectangle, calculate tha influence -- sphere. Sum the result to the energy-map. for _, emitter in pairs(self.emitters) do -- Compute the emitter bounding rectangle. local left = emitter.x - emitter.radius if left < 1 then left = 1 end local top = emitter.y - emitter.radius if top < 1 then top = 1 end local right = emitter.x + emitter.radius if right > self.width then right = self.width end local bottom = emitter.y + emitter.radius if bottom > self.height then bottom = self.height end for y = top, bottom do for x = left, right do -- HACK: If we disable the raycast we get a simple "shadow-dome". local colliding = 0 if self:raycast(emitter.x, emitter.y, x, y, function(cx, cy) if not self.cells[cy][cx] then -- count the occluding cells we encounter colliding = colliding + 1 end -- Light the walkable cells while no collisions are detected, and -- also the first non-walkable cell. return (self.cells[cy][cx] and colliding == 0) or (not self.cells[cy][cx] and colliding == 1) end) then self.energy[y][x] = self.energy[y][x] + emitter:energy_at(x, y) end end end end end function Maze:is_walkable(x, y) return self.cells[y][x] end function Maze:energy_at(x, y) -- Returns the maximum value between the current dusk illumination and -- the cumulative emitters' energy. local dusk = self.dusk / self.dusk_period return math.max(dusk, self.energy[y][x]) end function Maze:is_visible(a, b, c, d) local x0, y0, x1, y1 if type(a) == 'table' and type(b) == 'table' then x0, y0, x1, y1 = a.x, a.y, b.x, b.y else x0, y0, x1, y1 = a, b, c, d end return self:raycast(x0, y0, x1, y1, function(x, y) return self.cells[y][x] end) end function Maze:scan(callback) local dusk = self.dusk / self.dusk_period for y = 1, self.height do for x = 1, self.width do callback(x, y, self.colors[y][x], self.cells[y][x], math.max(dusk, self.energy[y][x])) end end end -- END OF MODULE --------------------------------------------------------------- return Maze -- END OF FILE -----------------------------------------------------------------
--[[ --- This is Wilson's speech file for Don't Starve Together --- Write your character's lines here. If you want to use another speech file as a base, or use a more up-to-date version, get them from data\scripts\ If you want to use quotation marks in a quote, put a \ before it. Example: "Like \"this\"." ]] return { ACTIONFAIL = { SHAVE = { AWAKEBEEFALO = "It can be troublesome to disturb it.", GENERIC = "I can't do it.", NOBITS = "There is nothing to shave.", }, STORE = { GENERIC = "I can't let it go...", NOTALLOWED = "It seems that it is not placed here.", INUSE = "I can't do this yet.", }, RUMMAGE = { GENERIC = "I can't do it.", INUSE = "I can't do this yet.", }, COOK = { GENERIC = "I can't do it.", INUSE = "I can't do this yet.", }, GIVE = { DEAD = "Fell into long sleep.", SLEEPING = "I can't wake the sleeping person.", BUSY = "Looks like there is no time.", }, GIVETOPLAYER = { FULL = "He can't bring that much.", DEAD = "Fell into long sleep.", SLEEPING = "I can't wake the sleeping person.", BUSY = "Looks like there is no time.", }, GIVEALLTOPLAYER = { FULL = "He can't bring that much.", DEAD = "Fell into long sleep.", SLEEPING = "I can't wake the sleeping person.", BUSY = "Looks like there is no time.", }, }, ACTIONFAIL_GENERIC = "I can't do it.", ANNOUNCE_ADVENTUREFAIL = "Ah, damn it!", ANNOUNCE_BEES = "Ah! It's a bee!", ANNOUNCE_BOOMERANG = "This dosen't compare to my knife.", ANNOUNCE_CHARLIE = "What's in the dark...", ANNOUNCE_CHARLIE_ATTACK = "Hey! Something is attacking me over here!", ANNOUNCE_COLD = "It's cold!", ANNOUNCE_HOT = "It's hot!", ANNOUNCE_CRAFTING_FAIL = "Not enough materials...", ANNOUNCE_DEERCLOPS = "What's nearby, a prey?", ANNOUNCE_DUSK = "It's mistress's time soon.", ANNOUNCE_EAT = { GENERIC = "It tastes good.", PAINFUL = "Woo...", SPOILED = "Miss wouldn't like this.", STALE = "It's not delicious.", INVALID = "This can't be eaten.", YUCKY = "No one should eat this.", }, ANNOUNCE_ENTER_DARK = "I can't see it anymore!", ANNOUNCE_ENTER_LIGHT = "I can see again!", ANNOUNCE_FREEDOM = "Finally...", ANNOUNCE_HIGHRESEARCH = "It's really hard to understand, I'd better go and ask Nitori next time.", ANNOUNCE_HOUNDS = "I'm in trouble...Who would be the prey?", ANNOUNCE_HUNGRY = "So hungry...", ANNOUNCE_HUNT_BEAST_NEARBY = "There is a prey nearby.", ANNOUNCE_HUNT_LOST_TRAIL = "I lost it.", ANNOUNCE_HUNT_LOST_TRAIL_SPRING = "Something seems to be wrong.", ANNOUNCE_INV_FULL = "I can't bring so many stuff.", ANNOUNCE_KNOCKEDOUT = "Ah! My head!", ANNOUNCE_LOWRESEARCH = "There is nothing wrong with this level.", ANNOUNCE_MOSQUITOS = "I can't let these guys disturb mistress!", ANNOUNCE_NODANGERSLEEP = "I should take care of the trouble first.", ANNOUNCE_NODAYSLEEP = "Can't sleep during the day.", ANNOUNCE_NODAYSLEEP_CAVE = "I don't need to rest in this zone.", ANNOUNCE_NOHUNGERSLEEP = "Sleeping with an empty stomach is bad for your health.", ANNOUNCE_NOSLEEPONFIRE = "Need to extinguish the fire first.", ANNOUNCE_NODANGERSIESTA = "Need to take care of the trouble first.", ANNOUNCE_NONIGHTSIESTA = "This is not convenient for sleeping.", ANNOUNCE_NONIGHTSIESTA_CAVE = "I don't need to rest at this zone.", ANNOUNCE_NOHUNGERSIESTA = "Sleeping with an empty stomach is bad for your health.", ANNOUNCE_NODANGERAFK = "No, I can't stay like this.", ANNOUNCE_NO_TRAP = "This is too simple.", ANNOUNCE_PECKED = "Ah!", ANNOUNCE_QUAKE = "Not good! Earthquake!", ANNOUNCE_RESEARCH = "What is this?", ANNOUNCE_SHELTER = "Huh...This is much better.", ANNOUNCE_THORNS = "Ah! It hurts...", ANNOUNCE_BURNT = "It's hot!", ANNOUNCE_TORCH_OUT = "I have to find another one.", ANNOUNCE_TRAP_WENT_OFF = "What a mess...", ANNOUNCE_UNIMPLEMENTED = "Ah! Not ready yet...", ANNOUNCE_WORMHOLE = "Mistress should not go here.", ANNOUNCE_CANFIX = "Is it time to fix it?", ANNOUNCE_ACCOMPLISHMENT = "Done!", ANNOUNCE_ACCOMPLISHMENT_DONE = "Mistress will love this!", ANNOUNCE_INSUFFICIENTFERTILIZER = "The fertilizer is not enough.", ANNOUNCE_TOOL_SLIP = "Too slippery!", ANNOUNCE_LIGHTNING_DAMAGE_AVOIDED = "Close call, that was risky!", ANNOUNCE_DAMP = "Mistress will not like this kind of weather.", ANNOUNCE_WET = "Mistress can't stay here for too long.", ANNOUNCE_WETTER = "Mistress will not come out.", ANNOUNCE_SOAKED = "Mistress shouldn't come out.", ANNOUNCE_BECOMEGHOST = "…………", ANNOUNCE_GHOSTDRAIN = "Have you been where you shouldn't be?", ANNOUNCE_POCKETWATCH_PORTAL = "Urrr... At least better than in the gap.", DESCRIBE_SAMECHARACTER = "It seems that we are not all the same.", BATTLECRY = { GENERIC = "Your time is over!", PIG = "It seems a bit like a human being, so is your blood the same?", PREY = "You will ecome the mistress's bread!", SPIDER = "Go back to the ground!", SPIDER_WARRIOR = "You shouldn't have come up!", }, COMBAT_QUIT = { GENERIC = "Damn it, wait for me!", PIG = "I'll let you live a while longer.", PREY = "If there is too much, the mistress will not be able to eat.", SPIDER = "You better run!", SPIDER_WARRIOR = "You better leave here by yourself!", }, DESCRIBE = { PLAYER = { GENERIC = "It's %s.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WILSON = { GENERIC = "It seems to be a scientist.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WOLFGANG = { GENERIC = "Hello there, strong man。", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WAXWELL = { GENERIC = "It seems to be a scientist... gives me an ominous feeling.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WX78 = { GENERIC = "A robot... That's what Nitori is doing?", ATTACKER = "Is this guy running away?", MURDERER = "It seems that you must be destroyed.", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s is no longer operating.", }, WILLOW = { GENERIC = "This person... I got the feeling she should never be allowed to approach the Scarlet Devil Mansion...", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WENDY = { GENERIC = "Is she from the Soul Clan too?", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WOODIE = { GENERIC = "It's a human... Maybe.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WICKERBOTTOM = { GENERIC = "After countless hours, will people turn end like this?", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WES = { GENERIC = "This person... doesn't speak?", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WIGFRID = { GENERIC = "Not a easy girl.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WEBBER = { GENERIC = "Spider? It doesn't look like it...", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, WANDA = { GENERIC = "Greetings, madam... Hey wait! You're...!", ATTACKER = "So you want to fight me to prove you master the time?", MURDERER = "Your time is over! This is the final round!", REVIVER = "I'd never thought one day somebody saved me from the time.", GHOST = "D-don’t worry... A-all we have to do is find a s-s-stopwatch.", FIRESTARTER = "... You have your time magic, right? So clean up the mess yourself!", }, REIMU = { GENERIC = "The maiden of Hakurei are always so idle.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, MARISA = { GENERIC = "Why could she be seen everywhere?", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, YUUKA = { GENERIC = "I'd be careful.", ATTACKER = "Better to reconsider that.", MURDERER = "So this is the gap between human and youkai...", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, REMILIA = { GENERIC = "We'll be together forever, Milady.", ATTACKER = "Milady, is it...", MURDERER = "So this is Milady's order...", REVIVER = "I'd appreciate it for my life.", GHOST = "I'll wait for you, Milady.", }, FRAN = { GENERIC = "Have a nice day, Fran.", ATTACKER = "Be careful about it, Fran!", MURDERER = "Don't be so rude, Fran!", REVIVER = "Thank you a lot, Fran.", GHOST = "I'll wait for you, Fran.", }, FUTO = { GENERIC = "Don't let her approach to the mansion!", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, SUIKA = { GENERIC = "This oni had drunken again...", ATTACKER = "Better to reconsider that.", MURDERER = "So this is the Power of onis...", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, KASEN = { GENERIC = "It's Kasen in the shrine.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, MOMIJI = { GENERIC = "The white wolf tengu on the Youkai Mountain.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, MOKOU = { GENERIC = "The immortal girl in the Bamboo Forest of the Lost.", ATTACKER = "Better to reconsider that.", MURDERER = "So you don't treasure your lives...", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, CIRNO = { GENERIC = "...The stupid ice fairy from the lake, again?", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Fairies will just resurrect somewhere, isn't it?", }, DAIYOUSEI = { GENERIC = "The friend of that ice fairy.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Fairies will just resurrect somewhere, isn't it?", }, CHEN = { GENERIC = "The black cat of Yakumo.", ATTACKER = "Better to reconsider that.", MURDERER = "I'd talk to Yakumo. Now.", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, KAGEROU = { GENERIC = "Met again since last time.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, REISEN = { GENERIC = "Glad to see you again, Reisen.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, NUE = { GENERIC = "Had I met her before...?", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, TENSHI = { GENERIC = "The delinquent guy in Heaven.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, CLOWNPIECE = { GENERIC = "How strange this fairy is.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, AYA = { GENERIC = "Ah, Miss newspaper.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, UTSUHO = { GENERIC = "Shining bird girl.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, IZAYOI = { GENERIC = "This is...me?", ATTACKER = "If I attack suddenly, I have to fight back!", MURDERER = "I'm gonna kill myself or something... why would I do this...", REVIVER = "It seems i owe me a favor...?", GHOST = "This is simply unimaginable.", }, KOISHI = { GENERIC = "What's that, an illusion?", ATTACKER = "Somebody's attacking me!", MURDERER = "Damn it, I'd never think about her!", REVIVER = "Someone saved me... But who is it?", GHOST = "...Whatever.", }, ALICE_TH = { GENERIC = "It's Alice in Forest of Magic.", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Seems like %s 's time has ended.", }, SUNNY = { GENERIC = "Is it one of the", ATTACKER = "Better to reconsider that.", MURDERER = "It seems you have to die, you murderer!", REVIVER = "It seems like someone owes me a favor, %s", GHOST = "Fairies will just resurrect somewhere, isn't it?", }, MULTIPLAYER_PORTAL = "Who else will come...", GLOMMER = "Mistress will like it, right?", GLOMMERFLOWER = { GENERIC = "I have never seen this flower before...", DEAD = "Now the flower is dead.", }, GLOMMERWINGS = "This guy can fly too.", GLOMMERFUEL = "Not a very good smell.", BELL = "This is not an ordinary clock.", STATUEGLOMMER = { GENERIC = "I am not sure what this is.", EMPTY = "I'm not sure what is this suposed to be.", }, WEBBERSKULL = "This should be sent back underground.", WORMLIGHT = "It seems you can eat...?", WORM = { PLANT = "It is better not to touch this thing.", DIRT = "It is better not to touch this thing.", WORM = "Not a good material for the eldest mistress.", }, MOLE = { HELD = "It's not the same as what I have seen.", UNDERGROUND = "Something is moving under the ground.", ABOVEGROUND = "Now it appears above the ground.", }, MOLEHILL = "What lives in here?", MOLEHAT = "This is not necessary for mistress.", EEL = "It's an eel.", EEL_COOKED = "Not delicious in that state.", UNAGI = "Is it time to use soil again?", EYETURRET = "It doesn't look very safe.", EYETURRET_ITEM = "Work is suspended.", MINOTAURHORN = "It is bigger than a ghost's horn...", MINOTAURCHEST = "Will there be something the mistresslikes in it?", THULECITE_PIECES = "Shards, like minerals...", POND_ALGAE = "It's some moss...really?", GREENSTAFF = "This reminds me of someone...", POTTEDFERN = "The humble plant.", THULECITE = "This... is a mineral...", ARMORRUINS = "This thing is weird.", RUINS_BAT = "A bit too heavy.", RUINSHAT = "Mistress would not use this.", NIGHTMARE_TIMEPIECE = { CALM = "Everything is normal.", WARN = "It seems something is wrong.", WAXING = "It thickens...", STEADY = "Stay stable.", WANING = "It becomes less and less.", DAWN = "The nightmare time is about to end.", NOMAGIC = "There is no magic power anymore.", }, BISHOP_NIGHTMARE = "Nitori should make them move.", ROOK_NIGHTMARE = "Nitori should make them move.", KNIGHT_NIGHTMARE = "Nitori should make them move.", MINOTAUR = "It's a bit like a ghost...", SPIDER_DROPPER = "It's not like a spider anymore.", NIGHTMARELIGHT = "The breath of magic.", NIGHTSTICK = "Is this what they used for the barrage showdown?", GREENGEM = "Will the mistress like it?", RELIC = "A trace of time.", RUINS_RUBBLE = "Can it still be repaired?", MULTITOOL_AXE_PICKAXE = "Will this... really be more practical?", ORANGESTAFF = "I can do it myself.", YELLOWAMULET = "It shines.", GREENAMULET = "It is always good to save a little.", SLURPERPELT = "Looks fluffy.", SLURPER = "Looks fluffy.", SLURPER_PELT = "Looks very fluffy.", ARMORSLURPER = "Unexpectedly warm.", ORANGEAMULET = "It's much more convenient than doing it myself.", YELLOWSTAFF = "It seems to be related to some kind of light...", YELLOWGEM = "Will the mistress like it?", ORANGEGEM = "Will the mistress like it?", TELEBASE = { VALID = "You can go now.", GEMS = "I don't have enough purple gems.", }, GEMSOCKET = { VALID = "It looks ready.", GEMS = "Need a gem.", }, STAFFLIGHT = "The mistress should be able to adapt to this light.", ANCIENT_ALTAR = "A trace of time.", ANCIENT_ALTAR_BROKEN = "A trace of time.", ANCIENT_STATUE = "A trace of time.", LICHEN = "Like some kind of algae.", CUTLICHEN = "Like some kind of algae.", CAVE_BANANA = "Looks a bit like a banana.", CAVE_BANANA_COOKED = "The mistress may not be used to eating this.", CAVE_BANANA_TREE = "Why does it grow here...", ROCKY = "It seems that only ghosts can smash it.", COMPASS = { GENERIC="It’s a bit awkward.", N = "North", S = "South", E = "East", W = "West", NE = "Northeast", SE = "Southeast", NW = "Northwest", SW = "Southwest", }, HOUNDSTOOTH="Really sharp enough.", ARMORSNURTLESHELL="Not so good-looking.", BAT="Is this a message from mistress?", BATBAT = "The strength of the mistress is much greater than this.", BATWING="Like mistress's.", BATWING_COOKED="I'm sorry, mistress.", BEDROLL_FURRY="Warm and comfortable.", BUNNYMAN="Is there something wrong with Eientei?", FLOWER_CAVE="There will be flowers here.", FLOWER_CAVE_DOUBLE="There will be flowers here.", FLOWER_CAVE_TRIPLE="There will be flowers here.", GUANO="Maybe I need to clean up here.", LANTERN="I have seen this in the Hakurei Shrine.", LIGHTBULB="Is this edible?", MANRABBIT_TAIL="Furry.", MUSHTREE_TALL ="What a big mushroom...", MUSHTREE_MEDIUM="What a big mushroom...", MUSHTREE_SMALL ="What a big mushroom...", RABBITHOUSE= { GENERIC = "It should not be comfortable.", BURNT = "Oh, this is bad.", }, SLURTLE="What an unpleasant creature.", SLURTLE_SHELLPIECES="Now only fragments are left.", SLURTLEHAT="Slimy...", SLURTLEHOLE="As a result, this is the source of the unpleasantness.", SLURTLESLIME="I would not like to touch it.", SNURTLE="What an unpleasant creature.", SPIDER_HIDER="Bring me back...i seem to be underground.", SPIDER_SPITTER="Want to compare the force with me?", SPIDERHOLE="The traces of time.", STALAGMITE="Some unusual stones.", STALAGMITE_FULL="Some unusual stones.", STALAGMITE_LOW="Some unusual stones.", STALAGMITE_MED="Some unusual stones.", STALAGMITE_TALL="Some unusual stones.", STALAGMITE_TALL_FULL="Some unusual stones.", STALAGMITE_TALL_LOW="Some unusual stones.", STALAGMITE_TALL_MED="Some unusual stones.", TURF_CARPETFLOOR = "It's a new terrain.", TURF_CHECKERFLOOR = "It's a new terrain.", TURF_DIRT = "It's a new terrain.", TURF_FOREST = "It's a new terrain.", TURF_GRASS = "It's a new terrain.", TURF_MARSH = "It's a new terrain.", TURF_ROAD = "It's a new terrain.", TURF_ROCKY = "It's a new terrain.", TURF_SAVANNA = "It's a new terrain.", TURF_WOODFLOOR = "It's a new terrain.", TURF_CAVE="It's a new terrain.", TURF_FUNGUS="It's a new terrain.", TURF_SINKHOLE="It's a new terrain.", TURF_UNDERROCK="It's a new terrain.", TURF_MUD="It's a new terrain.", TURF_DECIDUOUS = "It's a new terrain.", TURF_SANDY = "It's a new terrain.", TURF_BADLANDS = "It's a new terrain.", POWCAKE = "Mistress will not want to eat this kind of food.", CAVE_ENTRANCE = { GENERIC="This stone is not very strong.", OPEN = "Will this lead to the Palace of earth spirits?", FULL = "It's too crowded here.", }, CAVE_EXIT = { GENERIC="There seems to be a little light.", OPEN = "Just return to the ground.", FULL = "It's too crowded there.", }, MAXWELLPHONOGRAPH = "It's as mysterious as the one in the Scarlet Devil Mansion.", BOOMERANG = "This dosen't compare to my knife.", PIGGUARD = "Is it really necessary to stand here?", ABIGAIL = "Is that her half-spirit?", ADVENTURE_PORTAL = "Where does this lead?", AMULET = "I feel the time freezing .", ANIMAL_TRACK = "This a trace left by something... a prey?", ARMORGRASS = "Fortunately, there are no bugs in it.", ARMORMARBLE = "Really heavy...", ARMORWOOD = "I don't like the noise it makes.", ARMOR_SANITY = "This thing makes people want to take it off quickly", ASH = { GENERIC = "Can't burn more than this.", REMAINS_GLOMMERFLOWER = "Hmm... It didn't seem to be like this before...", REMAINS_EYE_BONE = "Hmm... It didn't seem to be like this before...", REMAINS_THINGIE = "Hmm... It didn't seem to be like this before...", }, AXE = "Ordinary axe.", BABYBEEFALO = { GENERIC = "It's pretty cute.", SLEEPING = "It sleeps soundly.", }, BACKPACK = "I can bring more things.", BACONEGGS = "Breakfast could not be better.", BANDAGE = "Healing wounds is not bad.", BASALT = "It cannot be destroyed.", BEARDHAIR = "It's unpleasant.", BEARGER = "It would be a lot of trouble for the Scarlet Devil Mansion.", BEARGERVEST = "Just right for me.", ICEPACK = "Cirno also has similar things.", BEARGER_FUR = "Soft and warm fur.", BEDROLL_STRAW = "This is not very comfortable.", BEE = { GENERIC = "I have to be careful of being stung.", HELD = "Now i can use this me.", }, BEEBOX = { READY = "I can harvest.", FULLHONEY = "I can harvest.", GENERIC = "This way there will be a lot of honey.", NOHONEY = "", SOMEHONEY = "There is not much honey in it yet.", BURNT = "Bad...", }, BEEFALO = { FOLLOWER = "Can I put it down if I bring it back to the Scarlet Devil Mansion?", GENERIC = "This thing is too big.", NAKED = "It looks like this is not a good thing for him.", SLEEPING = "It fell asleep.", }, BEEFALOHAT = "Not a good match with mistress.", BEEFALOWOOL = "It smells really bad.", BEEHAT = "This way i will not be easily to be stung.", BEEHIVE = "The residence of bees.", BEEMINE = "I should use it carefully.", BEEMINE_MAXWELL = "Should use it carefully.", BERRIES = "Juicy berries.", BERRIES_COOKED = "Roasted dried berries.", BERRYBUSH = { BARREN = "It lacks fertilizer.", WITHERED = "It's in bad condition.", GENERIC = "Overgrown with berries.", PICKED = "It will take a while for the berries to grow.", }, BIGFOOT = "What a big foot!", BIRDCAGE = { GENERIC = "Only birds can be there.", OCCUPIED = "There is already a bird inside.", SLEEPING = "It's asleep.", }, BIRDTRAP = "Can only catch ordinary birds.", BIRD_EGG = "A bird egg.", BIRD_EGG_COOKED = "Now is a good breakfast.", BISHOP = "It seems to be some kind of mechanical creation.", BLOWDART_FIRE = "I should be careful when using it.", BLOWDART_SLEEP = "My clock is better.", BLOWDART_PIPE = "This is sharper than my throwing knife.", BLUEAMULET = "As cold as that ice essence.", BLUEGEM = "Will the mistress like it?", BLUEPRINT = "Following this is much easier.", BELL_BLUEPRINT = "Is this a drawing of something amazing?", BLUE_CAP = "These mushrooms can be seen everywhere in the Forest of Magic.", BLUE_CAP_COOKED = "Mushrooms are cooked.", BLUE_MUSHROOM = { GENERIC = "These mushrooms can be seen everywhere in the Forest of Magic.", INGROUND = "Those in magic forest seems to shrink like this.", PICKED = "It should grow back again.", }, BOARDS = "Ordinary wooden boards.", BOAT = "Does this mean I can go to sea?", BONESHARD = "Shards of bones.", BONESTEW = "It's hot and delicious.", BUGNET = "Only common bugs can be caught.", BUSHHAT = "It will mess up my hair.", BUTTER = "It's a good ingredient for dim sum.", BUTTERFLY = { GENERIC = "Is there any connection between it and the fairy?", HELD = "Mistress's younger sister would like it, right?", }, BUTTERFLYMUFFIN = "Mistress will like it?", BUTTERFLYWINGS = "Much smaller than the fairy's.", BUZZARD = "Someone seems to have died around here.", CACTUS = { GENERIC = "There are many thorns on it.", PICKED = "There are still many thorns after removing the skin.", }, CACTUS_MEAT_COOKED = "It looks delicious.", CACTUS_MEAT = "t looks delicious, if you don't consider thorns.", CACTUS_FLOWER = "Flowers that grow on prickly plants.", COLDFIRE = { EMBERS = "It's about to go out.", GENERIC = "Much better than the other one.", HIGH = "It seems to be too hot.", LOW = "The fire has become a little smaller.", NORMAL = "Coold and comfortable.", OUT = "The fire is out.", }, CAMPFIRE = { EMBERS = "t's about to go out.", GENERIC = "Mistress doesn't like this very much.", HIGH = "The fire seems to be out of control.", LOW = "The fire has become a little smaller.", NORMAL = "Warm and comfortable.", OUT = "The fire is out.", }, CANE = "It seems to make my timechange.", CATCOON = "Can this guy change?", CATCOONDEN = { GENERIC = "A hollow tree stump.", EMPTY = "Its owner's time has run out.", }, CATCOONHAT = "It doesn't seem to be used to transform.", COONTAIL = "It doesn't seem to be used to transform.", CARROT = "The rabbits of Eientei will like it.", CARROT_COOKED = "It has become soft.", CARROT_PLANTED = "Carrots planted in the ground.", CARROT_SEEDS = "A carrot seed.", WATERMELON_SEEDS = "One melon seed.", CAVE_FERN = "Inconspicuous plant.", CHARCOAL = "It's the charcoal used in the fireplace.", CHESSJUNK1 = "A bunch of chess pieces.", CHESSJUNK2 = "Another pile of chess pieces.", CHESSJUNK3 = "Another pile of chess pieces.", CHESTER = "It's a convenient creature.", CHESTER_EYEBONE = { GENERIC = "Like the third eye of a monster.", WAITING = "It seems to be asleep.", }, COOKEDMANDRAKE = "It used to make harmful sounds.", COOKEDMEAT = "Delicious meat that humans can eat.", COOKEDMONSTERMEAT = "This meat is not suitable for human consumption.", COOKEDSMALLMEAT = "Delicious meat that humans can eat.", COOKPOT = { COOKING_LONG = "This will take a while.", COOKING_SHORT = "This does not take much time.", DONE = "Done.", EMPTY = "It's empty inside.", BURNT = "This pot can no longer be used.", }, CORN = "Isn't this thing grown on tall plants?", CORN_COOKED = "Nice desserts.", CORN_SEEDS = "One corn seed.", CROW = { GENERIC = "It seems to have nothing to do with certain a reporter.", HELD = "Just an ordinary crow.", }, CUTGRASS = "Mowed grass.", CUTREEDS = "Cut reeds.", CUTSTONE = "Ordinary stone brick.", DEADLYFEAST = "Only dead people can eat this kind of food.", DEERCLOPS = "I'm sure this guy can't read mind.", DEERCLOPS_EYEBALL = "Like the third eye of a monster.", EYEBRELLAHAT = "Do you think monsters can do the same?", DEPLETED_GRASS = { GENERIC = "Probably a piece of grass.", }, DEVTOOL = "What is this?", DEVTOOL_NODEV = "……", DIRTPILE = "What is this?", DIVININGROD = { COLD = "The signal is very weak...", GENERIC = "Is this some kind of guiding device?", HOT = "This thing seems to be out of control.", WARM = "It seems this is the right direction.", WARMER = "Are you very close?", }, DIVININGRODBASE = { GENERIC = "What's the use of this...", READY = "It looks like I need a large key.", UNLOCKED = "Now my machine can work.", }, DIVININGRODSTART = "It seems to work.", DRAGONFLY = "This guy must be retired before he approaches the Scarlet Devil Mansion.", ARMORDRAGONFLY = "It seems to have become more troublesome...", DRAGON_SCALES = "Why do flies have scales?", DRAGONFLYCHEST = "It seems that it is not easy for the mistress's younger sister to destroy it.", LAVASPIT = { HOT = "Hot fluid.", COOL = "It's getting cold now.", }, DRAGONFRUIT = "Weird fruit.", DRAGONFRUIT_COOKED = "Weird roasted fruit.", DRAGONFRUIT_SEEDS = "Strange fruit seeds.", DRAGONPIE = "It tastes good.", DRUMSTICK = "Normal bird legs... I hope not to be seen by birds.", DRUMSTICK_COOKED = "Cooked bird legs... I hope not to be seen by birds.", DUG_BERRYBUSH = "I can find a place to plant it.", DUG_GRASS = "I can find a place to plant it.", DUG_MARSH_BUSH = "I can find a place to plant it.", DUG_SAPLING = "I can find a place to plant it.", DURIAN = "It's so big...", DURIAN_COOKED = "The taste is better...", DURIAN_SEEDS = "The seeds of the fruit with great flavor.", EARMUFFSHAT = "A good thing to protect your ears in winter.", EGGPLANT = "Normal eggplant.", EGGPLANT_COOKED = "Mistress doesn't like this very much.", EGGPLANT_SEEDS = "One eggplant seed.", DECIDUOUSTREE = { BURNING = "The tree is burning.", BURNT = "It burned out.", CHOPPED = "Only the stump is here.", POISON = "Why, are you monsters?", GENERIC = "It is troublesome to sweep fallen leaves.", }, ACORN = { GENERIC = "Some kind of nut.", PLANTED = "It will grow into a big tree one day.", }, ACORN_COOKED = "Smells good.", BIRCHNUTDRAKE = "This is a kind of familiar. ", EVERGREEN = { BURNING = "The tree is burning.", BURNT = "It burned out.", CHOPPED = "Only the stump is here.", GENERIC = "Fortunately I don't have to sweep its fallen leaves.", }, EVERGREEN_SPARSE = { BURNING = "The tree is burning.", BURNT = "It burned out.", CHOPPED = "Only the stump is here.", GENERIC = "Fortunately I don't have to sweep its fallen leaves.", }, EYEPLANT = "If you think about it, it has nothing to do with that kind of monster.", FARMPLOT = { GENERIC = "It's a waste to just grow so little things.", GROWING = "Do you want to speed up your time?", NEEDSFERTILIZER = "It's time to add some fertilizer.", BURNT = "...It's destroyed.", }, FEATHERHAT = "It looks good.", FEATHER_CROW = "It shouldn't be the tengu that fell.", FEATHER_ROBIN = "Normal bird feather.", FEATHER_ROBIN_WINTER = "Normal white bird feather.", FEM_PUPPET = "She is trapped.", FIREFLIES = { GENERIC = "It seems that a five-point bug also has a soul?", HELD = "I feel a little sorry for this guy.", }, FIREHOUND = "Looks like it's from hell.", FIREPIT = { EMBERS = "The fire is going out soon.", GENERIC = "Warm and safe fire.", HIGH = "Don't worry about it for now.", LOW = "The fire has become a little smaller.", NORMAL = "Good-looking and comfortable.", OUT = "It's gone, but it will ignite again soon.", }, COLDFIREPIT = { EMBERS = "The fire is going out soon.", GENERIC = "A coold and safe fire.", HIGH = "Don't worry about it for now.", LOW = "The fire has become a little smaller.", NORMAL = "Good-looking and comfortable.", OUT = "It's gone, but it will ignite again soon.", }, FIRESTAFF = "My mistress's sister can do it too.", FIRESUPPRESSOR = { ON = "Safety first, beware of fire candles.", OFF = "Safety first, beware of fire candles.", LOWFUEL = "It seems that the raw materials are insufficient.", }, FISH = "It's no different from Gensokyo.", FISHINGROD = "The price among people is 100 yen.", FISHSTICKS = "It smells good, although it is a bit fishy.", FISHTACOS = "It smells good, although it is a bit fishy.", FISH_COOKED = "It smells good, although it is a bit fishy.", FLINT = "Hard pointed stone.", FLOWER = "This flower is so beautiful.", FLOWERHAT = "Will the mistress like it?", FLOWER_EVIL = "Um... must have been hosted by evil spirits.", FOLIAGE = "The vanilla I saw in mistress Patchouli’s botanical garden.", FOOTBALLHAT = "A maid's hat is more suitable for me.", FROG = { DEAD = "...Dead.", GENERIC = "Does that fool like a toy?", SLEEPING = "Fell asleep.", }, FROGGLEBUNWICH = "It tastes really good.", FROGLEGS = "I saw that fool make a frog like this.", FROGLEGS_COOKED = "Smells like chicken.", FRUITMEDLEY = "It's a dessert for young ladies.", FURTUFT = "Reminiscent of a black and white mouse.", GEARS = "I have seen Nitori use these a lot.", GHOST = "Is there no underworld and hell in this world?", GOLDENAXE = "It looks really fancy, but it's not easy to use.", GOLDENPICKAXE = "It is clear that gold is soft.", GOLDENPITCHFORK = "Why is the pitchfork so fancy?", GOLDENSHOVEL = "I got an urge to dig a hole.", GOLDNUGGET = "Much harder than the gold I have seen.", GRASS = { BARREN = "It needs fertilizer.", WITHERED = "It has lost too much water.", BURNING = "Oops, it's on fire...", GENERIC = "A piece of grass.", PICKED = "It hasn't grown yet.", }, GREEN_CAP = "These mushrooms can be seen everywhere in the Forest of Magic.", GREEN_CAP_COOKED = "That black and white will be more preferred.", GREEN_MUSHROOM = { GENERIC = "These mushrooms can be seen everywhere in the Forest of Magic.", INGROUND = "Those in magic forest seems to shrink like this.", PICKED = "Probably it will grow again.", }, GUNPOWDER = "This kind of thing must not be placed in the Scarlet Devil Mansion.", HAMBAT = "It arouses the desire to fight rather than arouses the appetite.", HAMMER = "It's ready for demolition.", HEALINGSALVE = "The effect is not as good, but it is enough.", HEATROCK = { FROZEN = "As cold as that fool.", COLD = "It feels cold.", GENERIC = "I saw one before.", WARM = "It feels warm.", HOT = "Is it too hot?", }, HOME = "Someone must have lived here.", HOMESIGN = { GENERIC = "Says \"You are here\".", BURNT = "Can hardly see what written before.", }, HONEY = "It's really sweet, it's a good ingredient for desserts.", HONEYCOMB = "It used to be a nest for bees.", HONEYHAM = "It tastes really good.", HONEYNUGGETS = "It tastes really good.", HORN = "It looks like a ghost's horn.", HOUND = "Don't confuse me with this kind of girl.", HOUNDBONE = "This doesn't look very comfortable.", HOUNDMOUND = "I smell something unpleasant.", ICEBOX = "A lot smaller than the one in the Scarlet Devil Mansion.", ICEHAT = "It looks cold...", ICEHOUND = "Where did this come from?", INSANITYROCK = { ACTIVE = "It's dangerous.", INACTIVE = "This is dangerous.", }, JAMMYPRESERVES = "It's really sweet.", KABOBS = "It tastes good.", KILLERBEE = { GENERIC = "It's just bees with different colors.", HELD = "Now i can use this.", }, KNIGHT = "It seems to be some kind of mechanical creation.", KOALEFANT_SUMMER = "What a big beast!", KOALEFANT_WINTER = "What a big beast!", KRAMPUS = "I have experience in dealing with thieves.", KRAMPUS_SACK = "This is pretty easy to use.", LEIF = "Huh? Is this tree monster turned?", LEIF_SPARSE = "Huh? Is this tree monster turned?", LIGHTNING_ROD = { CHARGED = "It's dangerous, it's better not to approach.", GENERIC = "Will the Scarlet Devil Mansion use this?", }, LIGHTNINGGOAT = { GENERIC = "It does not seem to be an ordinary goat.", CHARGED = "This ability is really like a resentful spirit in the Spirit Temple.", }, LIGHTNINGGOATHORN = "This horn seems to be charged.", GOATMILK = "My tongue tingles when I drink it.", LITTLE_WALRUS = "What a dangerous little guy.", LIVINGLOG = "Even if you become like this, do you still remain a monster?", LOCKEDWES = "Even if he can't speak, I know how much trouble he is in.", LOG = { BURNING = "It's on fire!", GENERIC = "Heavy wood.", }, LUREPLANT = "Maybe only mistress Patchouli would be interested in this dangerous thing.", LUREPLANTBULB = "It feels like it will become a troublesome thing.", MALE_PUPPET = "He is trapped.", MANDRAKE = { DEAD = "Now it is no longer noisy.", GENERIC = "I saw this in mistress Patchouli's herbal garden.", PICKED = "This guy is so noisy!", }, MANDRAKESOUP = "It tastes weird...but it's okay.", MANDRAKE_COOKED = "Now it is no longer noisy.", MARBLE = "A beautiful stone.", MARBLEPILLAR = "A handicraft with a long history like the Scarlet Devil Mansion.", MARBLETREE = "A handicraft with a long history like the Scarlet Devil Mansion.", MARSH_BUSH = { BURNING = "It burns...", GENERIC = "It looks like a withered rose bush.", PICKED = "It hurts...", }, BURNT_MARSH_BUSH = "It's burned out.", MARSH_PLANT = "It's some kind of plant.", MARSH_TREE = { BURNING = "This thing burns so fast.", BURNT = "It is completely burnt.", CHOPPED = "There are not so many thorns now.", GENERIC = "A thorny tree like a rose.", }, MAXWELL = "There seems to be a power that binds this man to this throne.", MAXWELLHEAD = "Suddenly I want to chop off something...such as a head...", MAXWELLLIGHT = "This thing seems to be able to sense the breath of people.", MAXWELLLOCK = "Looks like a keyhole.", MAXWELLTHRONE = "It doesn't look as comfortable as the Scarlet Devil mansion.", MEAT = "Very suitable for making a human meal.", MEATBALLS = "It smells really good.", MEATRACK = { DONE = "It can be stored now.", DRYING = "It will take a while.", DRYINGINRAIN = "Trouble, it will take longer to dry.", GENERIC = "This is not suitable for the mistress's dinner, but it is fine to get something that humans can eat.", BURNT = "It's too burnt to use...", }, MEAT_DRIED = "It can be stored now.", MERM = "Compared to the one in Gensokyo, there is no beauty at all.", MERMHEAD = { GENERIC = "Slimy, disgusting.", BURNT = "A rotten smell.", }, MERMHOUSE = { GENERIC = "Who would live in such a place?", BURNT = "No one will live here anymore.", }, MINERHAT = "It's useless for mistress.", MONKEY = "I felt an unpleasant sight.", MONKEYBARREL = "That thing just moved?", MONSTERLASAGNA = "It looks really bad.", FLOWERSALAD = "It smells like pollen.", ICECREAM = "It tastes really good. I could tr this for the mistress and her younger sisters.", WATERMELONICLE = "It have seen an idiot holding an oversized one.", TRAILMIX = "I have seen people that sells something similarl.", HOTCHILI = "It looks spicy.", GUACAMOLE = "Well, it tastes good.", MONSTERMEAT = "This meat really does not belong to human recipes.", MONSTERMEAT_DRIED = "Even if it is dried, it is not suitable for human consumption.", MOOSE = "This guy is too big.", MOOSEEGG = "It seems that it may hatch at any time.", MOSSLING = "Thinking that these will become so huge in the future makes people dislike it.", FEATHERFAN = "This seems kinda from Tengu.", GOOSE_FEATHER = "Light and soft.", STAFF_TORNADO = "This ability is really like that one of the reporter.", MOSQUITO = { GENERIC = "Can't compare with mistress at all.", HELD = "Why should I catch them specially?", }, MOSQUITOSACK = "At least this is useful.", MOUND = { DUG = "Maybe the people below will wake up.", GENERIC = "Someone sleeps here.", }, NIGHTLIGHT = "This light looks creepy.", NIGHTMAREFUEL = "It seems to be a purely spiritual substance... Although it doesn't seem to feel good.", NIGHTSWORD = "It's very easy to use, although it seems people don't want to use it.", NITRE = "Never seen this before... mineral?", ONEMANBAND = "This one is also available in Gensokyo.", PANDORASCHEST = "Who knows what is waiting inside.", PANFLUTE = "Practice it for a little bit so mistress can listen.", PAPYRUS = "Paper made by some ancient craft.", PENGUIN = "This color can't help but remind people of that black and white mouse...", PERD = "Dare to eat my berries? Okay, you are for dinner today!", PEROGIES = "Um...different from what the guard does...", PETALS = "Come and make tea for the lady.", PETALS_EVIL = "I can't add strange things to tea.", PHLEGM = "It's disgusting.", PICKAXE = "To take minerals.", PIGGYBACK = "I better not let those pigs see.", PIGHEAD = { GENERIC = "I don't like to see this.", BURNT = "This is much better.", }, PIGHOUSE = { FULL = "Someone lives in it.", GENERIC = "Is this where the pigs live?", LIGHTSOUT = "The people inside seem to be asleep.", BURNT = "There is no way to live here now.", }, PIGKING = "The majesty is worse than that of Missy.", PIGMAN = { DEAD = "Return to the dust.", FOLLOWER = "Sometimes cooperation is necessary.", GENERIC = "Are they an aboriginal here?", GUARD = "It seems that I am considered an intruder.", WEREPIG = "This guy has transformed like a werewolf.", }, PIGSKIN = "There is no way it becomes like this.", PIGTENT = "A smell of pig.", PIGTORCH = "Burn quietly.", PINECONE = { GENERIC = "Some kind of pine cone.", PLANTED = "It will grow into a big tree one day." }, PITCHFORK = "I am not a garden teacher.", PLANTMEAT = "At first glance, it is not normal meat.", PLANTMEAT_COOKED = "At least it tastes, no problem.", PLANT_NORMAL = { GENERIC = "Growing well.", GROWING = "It will come back in a while.", READY = "It's time to harvest.", WITHERED = "This plant has been roasted.", }, POMEGRANATE = "I don't think mistress would like to spit out the seeds.", POMEGRANATE_COOKED = "I don't think mistress would like to spit out the seeds.", POMEGRANATE_SEEDS = "Pomegranate seeds...who spited them out?", POND = "Clearly without bottom.", POOP = "It's really unhygienic.", FERTILIZER = "It's much better to use this way.", PUMPKIN = "Big and round.", PUMPKINCOOKIE = "Snack for most people.", PUMPKIN_COOKED = "The sweet aroma of plants.", PUMPKIN_LANTERN = "It fits in the Scarlet Devil Mansion.", PUMPKIN_SEEDS = "Pumpkin seeds.", PURPLEAMULET = "As dangerous as the real full moon.", PURPLEGEM = "Will the mistress like it?", RABBIT = { GENERIC = "Much smaller than in the bamboo forest.", HELD = "Wonder if Eientei's people would be mad.", }, RABBITHOLE = { GENERIC = "I want to dig it down with a shovel.", SPRING = "It seems that a cave-in has occurred.", }, RAINOMETER = { GENERIC = "I'd better get one in the Scarlet Devil Mansion.", BURNT = "It's too burnt to use...", }, RAINCOAT = "In all fairness, this one is really much rainproof than the one I wear.", RAINHAT = "In all fairness, this one is more rainproof than the one I wear.", RATATOUILLE = "Although it is good for health, mistress will definitely refuse.", RAZOR = "It's enough to shave some hair...a beard or something.", REDGEM = "Will the mistresslike it?", RED_CAP = "These mushrooms can be seen everywhere in the Forest of Magic.", RED_CAP_COOKED = "That black and white will be more preferred.", RED_MUSHROOM = { GENERIC = "These mushrooms can be seen everywhere in the Forest of Magic.", INGROUND = "Those in magic forest seems to shrink like this.", PICKED = "Probably it will grow again.", }, REEDS = { BURNING = "It burns really fast.", GENERIC = "A clump of reeds.", PICKED = "Probably it will grow again.", }, RELIC = { GENERIC = "A handicraft with a long history like the Scarlet Devil Mansion.", BROKEN = "A handicraft with a long history like the Scarlet Devil Mansion...but it is broken.", }, RUINS_RUBBLE = "It looks like it can be repaired.", RUBBLE = "There are only broken pieces of stone left.", RESEARCHLAB = { GENERIC = "I don't see how scientific it is.", BURNT = "It's too burnt to use...", }, RESEARCHLAB2 = { GENERIC = "Compared to Nitori's, it is still far behind.", BURNT = "It's too burnt to use...", }, RESEARCHLAB3 = { GENERIC = "Obviously it is magic...", BURNT = "It's too burnt to use...", }, RESEARCHLAB4 = { GENERIC = "Go in a non-scientific direction.", BURNT = "It's too burnt to use...", }, RESURRECTIONSTATUE = { GENERIC = "It looks so uncomfortable.", BURNT = "No longer available.", }, RESURRECTIONSTONE = "A stone with a strange texture.", ROBIN = { GENERIC = "It's not a red bird in that sense at all.", HELD = "Red bird caught.", }, ROBIN_WINTER = { GENERIC = "This has nothing to do with the red bird in Gensokyo.", HELD = "Snowbird caught.", }, ROBOT_PUPPET = "It is stuck.", ROCK_LIGHT = { GENERIC = "A lava pit with a bit of history.", OUT = "It seems very fragile.", LOW = "The magma is cooling.", NORMAL = "Good-looking and comfortable.", }, ROCK = "A stone in the literal sense.", ROCK_ICE = { GENERIC = "Coold and refreshing.", MELTED = "Not so coold and refreshing anymore.", }, ROCK_ICE_MELTED = "Not so cold and refreshing anymore.", ICE = "It reminds me of someone who is overly energetic on the lake of mist.", ROCKS = "It seems to be used as building materials.", ROOK = "Some kind of huge machine...", ROPE = "Ordinary rope.", ROTTENEGG = "It smells really bad.", SANITYROCK = { ACTIVE = "It's dangerous.", INACTIVE = "This is dangerous.", }, SAPLING = { BURNING = "It burns so fast!", WITHERED = "This plant has been roasted.", GENERIC = "It seems that it will never grow up.", PICKED = "It seems that it will grow soon.", }, SEEDS = "Contains unlimited possibilities.", SEEDS_COOKED = "I will eat it only as a last resort.", SEWING_KIT = "As a maid, this skill is of course very proficient.", SHOVEL = "Shovel for digging things.", SILK = "I really don't want to use this to make things.", SKELETON = "This should have been taken away by the cat.", SCORCHED_SKELETON = "Really unpleasant.", SKELETON_PLAYER = "Really unpleasant.", SKULLCHEST = "I don't want to open this.", SMALLBIRD = { GENERIC = "Not too small for a bird.", HUNGRY = "It looks hungry.", STARVING = "It's almost starving to death.", }, SMALLMEAT = "A small piece on the meat.", SMALLMEAT_DRIED = "A small piece of dried meat.", SPAT = "What a disgusting guy.", SPEAR = "Ordinary spear.", SPIDER = { DEAD = "It's a bug after all.", GENERIC = "It seems to be of the same kind as the monster under the ground.", SLEEPING = "It seems to be asleep.", }, SPIDERDEN = "Slimy...", SPIDEREGGSACK = "I hope it won't touch me.", SPIDERGLAND = "It tastes great...but it seems to be a rare product.", SPIDERHAT = "It looks like I will be one of them...it's disgusting.", SPIDERQUEEN = "This is what their nest became?", SPIDER_WARRIOR = { DEAD = "It's a bug after all.", GENERIC = "Compared to his companion it can fight back a little", SLEEPING = "It seems to be asleep.", }, SPOILED_FOOD = "This reminds me of my sister's whim work... It's really a bad memory.", STATUEHARP = "What happened to its head?", STATUEMAXWELL = "The person who puts his sculptures everywhere must be a narcissistic guy.", STEELWOOL = "I want to use it to clean the pool.", STINGER = "Really sharp.", STRAWHAT = "Let's make the mistress a more beautiful one.", STUFFEDEGGPLANT = "Bumpy.", SUNKBOAT = "Can't take me out of here at all.", SWEATERVEST = "This grid makes people hallucinate.", REFLECTIVEVEST = "The mistress and her sister may need this.", HAWAIIANSHIRT = "The feeling of vacation.", TAFFY = "I remember the mistress had to go to the eternal pavilion to see the dentist because of this...", TALLBIRD = "Is its main structure a giant eyeball?", TALLBIRDEGG = "It seems to be hatchable.", TALLBIRDEGG_COOKED = "It can no longer hatch, but it tastes great.", TALLBIRDEGG_CRACKED = { COLD = "This egg is shaking?", GENERIC = "It seems to be hatching.", HOT = "Do eggs sweat too?", LONG = "It looks like it's still early to hatch.", SHORT = "It seems that it may hatch at any time.", }, TALLBIRDNEST = { GENERIC = "A bird's nest with an egg.", PICKED = "Empty Bird's Nest.", }, TEENBIRD = { GENERIC = "It's getting stronger and stronger.", HUNGRY = "It seems to be hungry.", STARVING = "It has been staring at me for a long time, isn't it treating me as food?", }, TELEPORTATO_BASE = { ACTIVE = "Can I go back to the Scarlet Devil Mansion as long as I use this?", GENERIC = "It seems to lead to another world.", LOCKED = "What's still shortcoming.", PARTIAL = "Almost finished.", }, TELEPORTATO_BOX = "This may control the polarity of the entire universe.", TELEPORTATO_CRANK = "Strong enough to handle the most dangerous experiments.", TELEPORTATO_POTATO = "This metal potato contains a powerful and terrifying power...", TELEPORTATO_RING = "A ring that can gather spatial energy.", TELESTAFF = "I can do it myself.", TENT = { GENERIC = "Much more comfortable than the other one.", BURNT = "Can't sleep in it anymore.", }, SIESTAHUT = { GENERIC = "It's a good place to rest.", BURNT = "No longer exists.", }, TENTACLE = "Reminds me of Master Patchouli's failed magic experiment...", TENTACLESPIKE = "Thin and sharp.", TENTACLESPOTS = "Overgrown with unpleasant spots.", TENTACLE_PILLAR = "Strange pillar.", TENTACLE_PILLAR_HOLE = "Although it is disgusting, it seems to lead somewhere...", TENTACLE_PILLAR_ARM = "This is too much...", TENTACLE_GARDEN = "Another mud pit.", TOPHAT = "This hat looks good.", TORCH = "It can't last too long.", TRANSISTOR = "Nitori's long-term purchase from Gensokyo.", TRAP = "Only common small creatures can be captured.", TRAP_TEETH = "A great choice to cause trouble to the enemy.", TRAP_TEETH_MAXWELL = "I will not step in.", TREASURECHEST = { GENERIC = "Is it too ostentatious to store things like this?", BURNT = "It's burned out.", }, TREASURECHEST_TRAP = "It's really convenient...", TREECLUMP = "It looks like someone wants to stop me from passing...", TRINKET_1 = "Why are there traces of melting?", --Melty Marbles TRINKET_2 = "No sound...", --Fake Kazoo TRINKET_3 = "It makes no sense to try to unlock it.", --Gord's Knot TRINKET_4 = "Some kind of doll... Bring it back to my sister.", --Gnome TRINKET_5 = "You can't take anything anywhere at all.", --Tiny Rocketship TRINKET_6 = "Can't power on anymore.", --Frazzled Wires TRINKET_7 = "As a challenging gift for your younger sister.", --Ball and Cup TRINKET_8 = "The bathroom of the Red Devil Mansion is missing one.", --Hardened Rubber Bung TRINKET_9 = "The size is completely different...", --Mismatched Buttons TRINKET_10 = "I hope I can leave here before I can use it.", --Second-hand Dentures TRINKET_11 = "It's just a toy... Bring it back to my sister.", --Lying Robot TRINKET_12 = "It's not the same thing as the one I saw last time.", --Dessicated Tentacle TRINKET_13 = "Some kind of doll... Bring it back to my younger sister.", --Gnome female TRUNKVEST_SUMMER = "A casual wear suitable for exploring the wasteland.", TRUNKVEST_WINTER = "Excellent equipment for winter survival.", TRUNK_COOKED = "A fact... this isn't really that good.", TRUNK_SUMMER = "An elephant trunk...", TRUNK_WINTER = "A thicker, more hairy elephant trunk...", TUMBLEWEED = "There seems to be something in it.", TURF_CARPETFLOOR = "Unexpectedly harsh.", TURF_CHECKERFLOOR = "It looks very fashionable.", TURF_DIRT = "A piece of land.", TURF_FOREST = "A piece of land.", TURF_GRASS = "A piece of land.", TURF_MARSH = "A piece of land.", TURF_ROAD = "Cobblestone road decorated in a hurry.", TURF_ROCKY = "A piece of land.", TURF_SAVANNA = "A piece of land.", TURF_WOODFLOOR = "A piece of floor.", TURKEYDINNER = "It tastes really good.", TWIGS = "Some small branches.", UMBRELLA = "The umbrella of the Scarlet Devil Mansion is better.", GRASS_UMBRELLA = "The umbrella of the Scarlet Devil Mansion is better.", UNIMPLEMENTED = "It looks like a semi-finished product, it is better not to touch it.", WAFFLES = "Nice desserts.", WALL_HAY = { GENERIC = "This is too weak...", BURNT = "It's completely useless.", }, WALL_HAY_ITEM = "This is too weak...", WALL_STONE = "This kind of wall is pretty similar.", WALL_STONE_ITEM = "This kind of wall is almost the same.", WALL_RUINS = "Condensed history.", WALL_RUINS_ITEM = "Condensed history.", WALL_WOOD = { GENERIC = "Too sharp, be careful.", BURNT = "It's burned out.", }, WALL_WOOD_ITEM = "Too sharp, be careful.", WALL_MOONROCK = "When standing nearby, I always feel that everything in front of me is a bit wrong.", WALL_MOONROCK_ITEM = "Everything in front of me seems a bit wrong.", WALRUS = "This guy is not easy, I have to be careful.", WALRUSHAT = "It makes me feel unexpectedly peaceful.", WALRUS_CAMP = { EMPTY = "There is nothing left at the moment.", GENERIC = "Maybe I should learn to build one too.", }, WALRUS_TUSK = "It will always be useful... right?", WARG = "Huge dog.", WASPHIVE = "Dangerous structure.", WATERMELON = "A great dessert for summer.", WATERMELON_COOKED = "Warm and juicy.", WATERMELONHAT = "Slimy...but quite cool.", WETGOOP = "This reminds me of my sister's whim work... It's really a bad memory.", WINTERHAT = "Soft and warm.", WINTEROMETER = { GENERIC = "We have to pay attention to weather changes.", BURNT = "Cannot be used anymore.", }, WORMHOLE = { GENERIC = "Some kind of giant bug... seems to be a tunnel inside?", OPEN = "Where will it lead?", }, WORMHOLE_LIMITED = "It is temporarily impassable.", ACCOMPLISHMENT_SHRINE = "Why should I do this?", LIVINGTREE = "You have begun to monsterize.", ICESTAFF = "The ability like that ice spirit.", REVIVER = "Symbolizes the beating of life.", LIFEINJECTOR = "It should cheer me up.", SKELETON_PLAYER = { MALE = "I will call the cat cart from the Shrine.", FEMALE = "I will call the cat cart from the Shrine.", ROBOT = "Nitori will be interested in this.", DEFAULT = "I will call the cat cart from the Shrine.", }, HUMANMEAT = "The mistress prefers human blood.", HUMANMEAT_COOKED = "The mistress prefers human blood.", HUMANMEAT_DRIED = "The mistress prefers human blood.", MOONROCKNUGGET = "I seem to have seen such a thing somewhere...", --Sakuya IZAYOI_REDTEA = "Dessert in manshion.", IZAYOI_SWORD = "Beautiful and deadly.", IZAYOI_SWORDRED = "Beautiful and deadly.", IZAYOI_SWORDPURPLE = "Beautiful and deadly.", IZAYOI_WATCH = "Time goes through the gears.", }, DESCRIBE_GENERIC = "What is this?", DESCRIBE_TOODARK = "It's too dark...", DESCRIBE_SMOLDERING = "That one is about to catch fire.", EAT_FOOD = { TALLBIRDEGG_CRACKED = "The stuff inside is really hard.", }, }
local CollectionService = game:GetService("CollectionService") return function(Sunshine, entity) local scriptCollectibleDisplay = entity.scriptCollectibleDisplay local frame = entity.frame local visible = entity.visible if scriptCollectibleDisplay and frame and visible then local scriptCollectible Sunshine:update(function() if Sunshine.scenes[1] then for _, otherEntity in pairs(Sunshine.scenes[1].entities) do if otherEntity.scriptCollectible and otherEntity.scriptCollectible.active then scriptCollectible = otherEntity end end if scriptCollectible and scriptCollectible.core.active then local date = os.date("*t", os.time()) for _,p in pairs(frame.frame:GetDescendants()) do if CollectionService:HasTag(p, "collectibleNameLabel") then p.Text = scriptCollectible.scriptCollectible.name elseif CollectionService:HasTag(p, "collectibleDateLabel") then p.Text = date.month .. "/" .. date.day .. "/" .. date.year end end visible.visible = true else visible.visible = false end end end, entity) end end
nut.currency = nut.currency or {} nut.currency.symbol = nut.currency.symbol or "$" nut.currency.singular = nut.currency.singular or "dollar" nut.currency.plural = nut.currency.plural or "dollars" function nut.currency.set(symbol, singular, plural) nut.currency.symbol = symbol nut.currency.singular = singular nut.currency.plural = plural end function nut.currency.get(amount) if (amount == 1) then return nut.currency.symbol.."1 "..nut.currency.singular else return nut.currency.symbol..amount.." "..nut.currency.plural end end function nut.currency.spawn(pos, amount, angle) if (!pos) then print("[Nutscript] Can't create currency entity: Invalid Position") elseif (!amount or amount < 0) then print("[Nutscript] Can't create currency entity: Invalid Amount of money") else local money = ents.Create("nut_money") money:SetPos(pos) money:setAmount(math.Round(math.abs(amount))) money:SetAngles(angle or Angle(0, 0, 0)) money:Spawn() money:Activate() return money end end function GM:OnPickupMoney(client, moneyEntity) if (moneyEntity and moneyEntity:IsValid()) then local amount = moneyEntity:getAmount() client:getChar():giveMoney(amount) client:notifyLocalized("moneyTaken", nut.currency.get(amount)) end end local charMeta = nut.meta.character function charMeta:hasMoney(amount) if (amount < 0) then print("Negative Money Check Received.") end return self:getMoney() >= amount end function charMeta:giveMoney(amount, takingMoney) if (!takingMoney) then nut.log.add(self:getPlayer(), "money", amount) end self:setMoney(self:getMoney() + amount) return true end function charMeta:takeMoney(amount) nut.log.add(self:getPlayer(), "money", -amount) amount = math.abs(amount) self:giveMoney(-amount, true) return true end
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.tabs")) local loveframes = require(path .. ".libraries.common") -- tabs object local newobject = loveframes.NewObject("tabs", "loveframes_object_tabs", true) --[[--------------------------------------------------------- - func: initialize() - desc: initializes the object --]]--------------------------------------------------------- function newobject:initialize() self.type = "tabs" self.width = 100 self.height = 50 self.clickx = 0 self.clicky = 0 self.offsetx = 0 self.tab = 1 self.tabnumber = 1 self.padding = 5 self.tabheight = 25 self.previoustabheight = 25 self.buttonscrollamount = 200 self.mousewheelscrollamount = 1500 self.buttonareax = 0 self.buttonareawidth = self.width self.autosize = true self.autobuttonareawidth = true self.dtscrolling = true self.internal = false self.tooltipfont = loveframes.basicfontsmall self.internals = {} self.children = {} self:AddScrollButtons() end --[[--------------------------------------------------------- - func: update(deltatime) - desc: updates the element --]]--------------------------------------------------------- function newobject:update(dt) local state = loveframes.state local selfstate = self.state if state ~= selfstate then return end local visible = self.visible local alwaysupdate = self.alwaysupdate if not visible then if not alwaysupdate then return end end local x, y = love.mouse.getPosition() local tabheight = self.tabheight local padding = self.padding local autosize = self.autosize local autobuttonareawidth = self.autobuttonareawidth local padding = self.padding local children = self.children local numchildren = #children local internals = self.internals local tab = self.tab local parent = self.parent local base = loveframes.base local update = self.Update -- move to parent if there is a parent if parent ~= base then self.x = self.parent.x + self.staticx self.y = self.parent.y + self.staticy end self:CheckHover() if numchildren > 0 and tab == 0 then self.tab = 1 end if autobuttonareawidth then local width = self.width self.buttonareawidth = width end local pos = 0 for k, v in ipairs(internals) do v:update(dt) if v.type == "tabbutton" then v.x = (v.parent.x + v.staticx) + pos + self.offsetx + self.buttonareax v.y = (v.parent.y + v.staticy) pos = pos + v.width - 1 end end if #self.children > 0 then self.children[self.tab]:update(dt) self.children[self.tab]:SetPos(padding, tabheight + padding) end if update then update(self, dt) end end --[[--------------------------------------------------------- - func: draw() - desc: draws the object --]]--------------------------------------------------------- function newobject:draw() local state = loveframes.state local selfstate = self.state if state ~= selfstate then return end local visible = self.visible if not visible then return end local x = self.x local y = self.y local width = self.width local height = self.height local internals = self.internals local tabheight = self:GetHeightOfButtons() local stencilfunc = function() love.graphics.rectangle("fill", x + self.buttonareax, y, self.buttonareawidth, height) end local internals = self.internals local skins = loveframes.skins.available local skinindex = loveframes.config["ACTIVESKIN"] local defaultskin = loveframes.config["DEFAULTSKIN"] local selfskin = self.skin local skin = skins[selfskin] or skins[skinindex] local drawfunc = skin.DrawTabPanel or skins[defaultskin].DrawTabPanel local drawoverfunc = skin.DrawOverTabPanel or skins[defaultskin].DrawOverTabPanel local draw = self.Draw local drawcount = loveframes.drawcount -- set the object's draw order self:SetDrawOrder() if draw then draw(self) else drawfunc(self) end love.graphics.stencil(stencilfunc) love.graphics.setStencilTest("greater", 0) for k, v in ipairs(internals) do local col = loveframes.util.BoundingBox(x + self.buttonareax, v.x, self.y, v.y, self.buttonareawidth, v.width, tabheight, v.height) if col or v.type == "scrollbutton" then v:draw() end end love.graphics.setStencilTest() if #self.children > 0 then self.children[self.tab]:draw() end if not draw then drawoverfunc(self) end end --[[--------------------------------------------------------- - func: mousepressed(x, y, button) - desc: called when the player presses a mouse button --]]--------------------------------------------------------- function newobject:mousepressed(x, y, button) local state = loveframes.state local selfstate = self.state if state ~= selfstate then return end local visible = self.visible if not visible then return end local children = self.children local internals = self.internals local numchildren = #children local numinternals = #internals local tab = self.tab local hover = self.hover if hover and button == 1 then local baseparent = self:GetBaseParent() if baseparent and baseparent.type == "frame" then baseparent:MakeTop() end end for k, v in ipairs(internals) do v:mousepressed(x, y, button) end if numchildren > 0 then children[tab]:mousepressed(x, y, button) end end --[[--------------------------------------------------------- - func: mousereleased(x, y, button) - desc: called when the player releases a mouse button --]]--------------------------------------------------------- function newobject:mousereleased(x, y, button) local state = loveframes.state local selfstate = self.state if state ~= selfstate then return end local visible = self.visible local children = self.children local numchildren = #children local tab = self.tab local internals = self.internals if not visible then return end for k, v in ipairs(internals) do v:mousereleased(x, y, button) end if numchildren > 0 then children[tab]:mousereleased(x, y, button) end end --[[--------------------------------------------------------- - func: wheelmoved(x, y) - desc: called when the player moves a mouse wheel --]]--------------------------------------------------------- function newobject:wheelmoved(x, y) local internals = self.internals local numinternals = #internals if y < 0 then local buttonheight = self:GetHeightOfButtons() local col = loveframes.util.BoundingBox(self.x, x, self.y, y, self.width, 1, buttonheight, 1) local visible = internals[numinternals - 1]:GetVisible() if col and visible then local scrollamount = -y * self.mousewheelscrollamount local dtscrolling = self.dtscrolling if dtscrolling then local dt = love.timer.getDelta() self.offsetx = self.offsetx + scrollamount * dt else self.offsetx = self.offsetx + scrollamount end if self.offsetx > 0 then self.offsetx = 0 end end elseif y > 0 then local buttonheight = self:GetHeightOfButtons() local col = loveframes.util.BoundingBox(self.x, x, self.y, y, self.width, 1, buttonheight, 1) local visible = internals[numinternals]:GetVisible() if col and visible then local bwidth = self:GetWidthOfButtons() local scrollamount = y * self.mousewheelscrollamount local dtscrolling = self.dtscrolling if dtscrolling then local dt = love.timer.getDelta() self.offsetx = self.offsetx - scrollamount * dt else self.offsetx = self.offsetx - scrollamount end if ((self.offsetx + bwidth) + self.width) < self.width then self.offsetx = -(bwidth + 10) end end end end --[[--------------------------------------------------------- - func: AddTab(name, object, tip, image) - desc: adds a new tab to the tab panel --]]--------------------------------------------------------- function newobject:AddTab(name, object, tip, image, onopened, onclosed) local padding = self.padding local autosize = self.autosize local tabnumber = self.tabnumber local tabheight = self.tabheight local internals = self.internals local state = self.state object:Remove() object.parent = self object:SetState(state) object.staticx = 0 object.staticy = 0 if tabnumber ~= 1 then object.visible = false end local tab = loveframes.objects["tabbutton"]:new(self, name, tabnumber, tip, image, onopened, onclosed) table.insert(self.children, object) table.insert(self.internals, #self.internals - 1, tab) self.tabnumber = tabnumber + 1 if autosize and not retainsize then object:SetSize(self.width - padding * 2, (self.height - tabheight) - padding * 2) end return tab end --[[--------------------------------------------------------- - func: AddScrollButtons() - desc: creates scroll buttons fot the tab panel - note: for internal use only --]]--------------------------------------------------------- function newobject:AddScrollButtons() local internals = self.internals local state = self.state for k, v in ipairs(internals) do if v.type == "scrollbutton" then table.remove(internals, k) end end local leftbutton = loveframes.objects["scrollbutton"]:new("left") leftbutton.parent = self leftbutton:SetPos(0, 0) leftbutton:SetSize(15, 25) leftbutton:SetAlwaysUpdate(true) leftbutton.Update = function(object, dt) object.staticx = 0 object.staticy = 0 if self.offsetx ~= 0 then object.visible = true else object.visible = false object.down = false object.hover = false end if object.down then if self.offsetx > 0 then self.offsetx = 0 elseif self.offsetx ~= 0 then local scrollamount = self.buttonscrollamount local dtscrolling = self.dtscrolling if dtscrolling then local dt = love.timer.getDelta() self.offsetx = self.offsetx + scrollamount * dt else self.offsetx = self.offsetx + scrollamount end end end end local rightbutton = loveframes.objects["scrollbutton"]:new("right") rightbutton.parent = self rightbutton:SetPos(self.width - 15, 0) rightbutton:SetSize(15, 25) rightbutton:SetAlwaysUpdate(true) rightbutton.Update = function(object, dt) object.staticx = self.width - object.width object.staticy = 0 local bwidth = self:GetWidthOfButtons() if (self.offsetx + bwidth) - (self.buttonareax * 2 - 1) > self.width then object.visible = true else object.visible = false object.down = false object.hover = false end if object.down then if ((self.x + self.offsetx) + bwidth) ~= (self.x + self.width) then local scrollamount = self.buttonscrollamount local dtscrolling = self.dtscrolling if dtscrolling then local dt = love.timer.getDelta() self.offsetx = self.offsetx - scrollamount * dt else self.offsetx = self.offsetx - scrollamount end end end end leftbutton.state = state rightbutton.state = state table.insert(internals, leftbutton) table.insert(internals, rightbutton) end --[[--------------------------------------------------------- - func: GetWidthOfButtons() - desc: gets the total width of all of the tab buttons --]]--------------------------------------------------------- function newobject:GetWidthOfButtons() local width = 0 local internals = self.internals for k, v in ipairs(internals) do if v.type == "tabbutton" then width = width + v.width end end return width end --[[--------------------------------------------------------- - func: GetHeightOfButtons() - desc: gets the height of one tab button --]]--------------------------------------------------------- function newobject:GetHeightOfButtons() return self.tabheight end --[[--------------------------------------------------------- - func: SwitchToTab(tabnumber) - desc: makes the specified tab the active tab --]]--------------------------------------------------------- function newobject:SwitchToTab(tabnumber) local children = self.children for k, v in ipairs(children) do v.visible = false end self.tab = tabnumber self.children[tabnumber].visible = true return self end --[[--------------------------------------------------------- - func: SetScrollButtonSize(width, height) - desc: sets the size of the scroll buttons --]]--------------------------------------------------------- function newobject:SetScrollButtonSize(width, height) local internals = self.internals for k, v in ipairs(internals) do if v.type == "scrollbutton" then v:SetSize(width, height) end end return self end --[[--------------------------------------------------------- - func: SetPadding(paddint) - desc: sets the padding for the tab panel --]]--------------------------------------------------------- function newobject:SetPadding(padding) self.padding = padding return self end --[[--------------------------------------------------------- - func: SetPadding(paddint) - desc: gets the padding of the tab panel --]]--------------------------------------------------------- function newobject:GetPadding() return self.padding end --[[--------------------------------------------------------- - func: SetTabHeight(height) - desc: sets the height of the tab buttons --]]--------------------------------------------------------- function newobject:SetTabHeight(height) local autosize = self.autosize local padding = self.padding local previoustabheight = self.previoustabheight local children = self.children local internals = self.internals self.tabheight = height local tabheight = self.tabheight if tabheight ~= previoustabheight then for k, v in ipairs(children) do local retainsize = v.retainsize if autosize and not retainsize then v:SetSize(self.width - padding*2, (self.height - tabheight) - padding*2) end end self.previoustabheight = tabheight end for k, v in ipairs(internals) do if v.type == "tabbutton" then v:SetHeight(self.tabheight) end end return self end --[[--------------------------------------------------------- - func: SetToolTipFont(font) - desc: sets the height of the tab buttons --]]--------------------------------------------------------- function newobject:SetToolTipFont(font) local internals = self.internals for k, v in ipairs(internals) do if v.type == "tabbutton" and v.tooltip then v.tooltip:SetFont(font) end end return self end --[[--------------------------------------------------------- - func: GetTabNumber() - desc: gets the object's tab number --]]--------------------------------------------------------- function newobject:GetTabNumber() return self.tab end --[[--------------------------------------------------------- - func: RemoveTab(id) - desc: removes a tab from the object --]]--------------------------------------------------------- function newobject:RemoveTab(id) local children = self.children local internals = self.internals local tab = children[id] if tab then tab:Remove() end for k, v in ipairs(internals) do if v.type == "tabbutton" then if v.tabnumber == id then v:Remove() end end end local tabnumber = 1 for k, v in ipairs(internals) do if v.type == "tabbutton" then v.tabnumber = tabnumber tabnumber = tabnumber + 1 end end self.tabnumber = tabnumber return self end --[[--------------------------------------------------------- - func: SetButtonScrollAmount(speed) - desc: sets the scroll amount of the object's scrollbar buttons --]]--------------------------------------------------------- function newobject:SetButtonScrollAmount(amount) self.buttonscrollamount = amount return self end --[[--------------------------------------------------------- - func: GetButtonScrollAmount() - desc: gets the scroll amount of the object's scrollbar buttons --]]--------------------------------------------------------- function newobject:GetButtonScrollAmount() return self.buttonscrollamount end --[[--------------------------------------------------------- - func: SetMouseWheelScrollAmount(amount) - desc: sets the scroll amount of the mouse wheel --]]--------------------------------------------------------- function newobject:SetMouseWheelScrollAmount(amount) self.mousewheelscrollamount = amount return self end --[[--------------------------------------------------------- - func: GetMouseWheelScrollAmount() - desc: gets the scroll amount of the mouse wheel --]]--------------------------------------------------------- function newobject:GetButtonScrollAmount() return self.mousewheelscrollamount end --[[--------------------------------------------------------- - func: SetDTScrolling(bool) - desc: sets whether or not the object should use delta time when scrolling --]]--------------------------------------------------------- function newobject:SetDTScrolling(bool) self.dtscrolling = bool return self end --[[--------------------------------------------------------- - func: GetDTScrolling() - desc: gets whether or not the object should use delta time when scrolling --]]--------------------------------------------------------- function newobject:GetDTScrolling() return self.dtscrolling end --[[--------------------------------------------------------- - func: SetTabObject(id, object) - desc: sets the object of a tab --]]--------------------------------------------------------- function newobject:SetTabObject(id, object) local children = self.children local internals = self.internals local tab = children[id] if tab then tab:Remove() object:Remove() object.parent = self object:SetState(state) object.staticx = 0 object.staticy = 0 children[id] = object end return self end --[[--------------------------------------------------------- - func: SetButtonAreaX(x) - desc: sets the x position of the object's button area --]]--------------------------------------------------------- function newobject:SetButtonAreaX(x) self.buttonareax = x return self end --[[--------------------------------------------------------- - func: GetButtonAreaX() - desc: gets the x position of the object's button area --]]--------------------------------------------------------- function newobject:GetButtonAreaX() return self.buttonareax end --[[--------------------------------------------------------- - func: SetButtonAreaWidth(width) - desc: sets the width of the object's button area --]]--------------------------------------------------------- function newobject:SetButtonAreaWidth(width) self.buttonareawidth = width return self end --[[--------------------------------------------------------- - func: GetButtonAreaWidth() - desc: gets the width of the object's button area --]]--------------------------------------------------------- function newobject:GetButtonAreaWidth() return self.buttonareawidth end --[[--------------------------------------------------------- - func: SetAutoButtonAreaWidth(bool) - desc: sets whether or not the width of the object's button area should be adjusted automatically --]]--------------------------------------------------------- function newobject:SetAutoButtonAreaWidth(bool) self.autobuttonareawidth = bool return self end --[[--------------------------------------------------------- - func: GetAutoButtonAreaWidth() - desc: gets whether or not the width of the object's button area should be adjusted automatically --]]--------------------------------------------------------- function newobject:GetAutoButtonAreaWidth() return self.autobuttonareawidth end
slot0 = class("Map", import(".BaseVO")) slot0.INVALID = 0 slot0.SCENARIO = 1 slot0.ELITE = 2 slot0.EVENT = 3 slot0.ACTIVITY_EASY = 4 slot0.ACTIVITY_HARD = 5 slot0.ACT_EXTRA = 8 slot0.ESCORT = 9 slot0.SKIRMISH = 10 slot0.NORMAL_MAP = { slot0.INVALID, slot0.SCENARIO, slot0.ELITE, slot0.EVENT, slot0.ACTIVITY_EASY, slot0.ACTIVITY_HARD, slot0.SHAM, slot0.GUILD_BOSS, slot0.ACT_EXTRA } slot0.Ctor = function (slot0, slot1) slot0.configId = slot1.id slot0.id = slot0.configId slot0.chapterIds = slot1.chapterIds end slot0.bindConfigTable = function (slot0) return pg.expedition_data_by_map end slot0.isUnlock = function (slot0) if getProxy(PlayerProxy):getRawData().level < slot0:getConfig("level_limit") then return false, i18n("levelScene_chapter_unlock_tip", slot0:getConfig("level_limit")) elseif slot0:isActivity() then if slot0:isRemaster() then if slot0:isAnyChapterUnlocked() then return true else return false, i18n("battle_levelScene_lock") end elseif not getProxy(ActivityProxy):getActivityById(slot0:getConfig("on_activity")) or slot2:isEnd() then return false, i18n("common_activity_end") else slot3, slot4 = slot0:isAnyChapterUnlocked(true) if slot3 then return true elseif slot4 then return false, i18n("battle_levelScene_lock_1") else return false, i18n("battle_levelScene_lock") end end elseif slot0:getMapType() == Map.SCENARIO then if slot0:isAnyChapterUnlocked(false, true) then return true else return false, i18n("levelScene_map_lock") end elseif slot0:getMapType() == Map.ELITE then if slot0:isEliteEnabled() then return true else return false, i18n("levelScene_map_lock") end else return true end end slot0.setRemaster = function (slot0, slot1) slot0.remasterId = slot1 end slot0.isRemaster = function (slot0) return slot0.remasterId ~= nil end slot0.getMapType = function (slot0) return slot0:getConfig("type") end slot0.getMapTitleNumber = function (slot0) return slot0:getConfig("title") end slot0.getBindMapId = function (slot0) return slot0:getConfig("bind_map") end slot0.getBindMap = function (slot0) return getProxy(ChapterProxy):getMapById(slot0:getBindMapId()) end slot0.getChapters = function (slot0, slot1) slot2 = getProxy(ChapterProxy) return underscore.map(slot0.chapterIds, function (slot0) return slot0:getChapterById(slot0, slot0.getChapterById) end) end slot0.getEscortConfig = function (slot0) if slot0:isEscort() then return pg.escort_map_template[slot0.id] end end slot0.getChapterTimeLimit = function (slot0) if not slot0:isActivity() or slot0:isRemaster() then return 0 end slot1 = pg.TimeMgr.GetInstance() slot2 = 0 for slot6, slot7 in ipairs(slot0:getChapters(true)) do if pg.activity_template[slot7:getConfig("act_id")] and slot8.time and #slot8.time == 3 and slot1:parseTimeFromConfig(slot8.time[2]) - slot1:GetServerTime() > 0 then slot2 = (slot2 == 0 and slot9) or math.min(slot2, slot9) end end return slot2 end slot0.isClear = function (slot0) if slot0:getMapType() == slot0.SCENARIO then return slot0:isAllChaptersClear() elseif slot0:isActivity() then return slot0:isClearForActivity() else return true end end slot0.isClearForActivity = function (slot0) for slot5, slot6 in ipairs(slot1) do if slot5 > 1 and slot6.id - slot1[slot5 - 1].id > 1 then break elseif not slot6:isClear() then return false end end return true end slot0.isEliteEnabled = function (slot0) slot1 = nil return (slot0:getMapType() ~= slot0.ELITE or getProxy(ChapterProxy):getMapById(slot0:getBindMapId())) and slot0:isAllChaptersClear() and (slot0.getMapType() ~= slot0.ELITE or getProxy(ChapterProxy).getMapById(slot0.getBindMapId())) and slot0:isAllChaptersAchieve() end slot0.isAnyChapterUnlocked = function (slot0, slot1, slot2) slot3 = false for slot7, slot8 in ipairs(slot0:getChapters(true)) do if (not slot2 or slot8:getPlayType() ~= ChapterConst.TypeMainSub) and slot8:isUnlock() then if not slot1 or slot8:inActTime() then return true else slot3 = true end end end return false, slot3 end slot0.isAnyChapterClear = function (slot0, slot1) return underscore.any(slot0:getChapters(true), function (slot0) return (not slot0 or slot0:getPlayType() ~= ChapterConst.TypeMainSub) and slot0:isClear() end) end slot0.isAllChaptersClear = function (slot0) for slot4, slot5 in ipairs(slot0:getChapters(true)) do if not slot5:isClear() then return false end end return true end slot0.isAllChaptersAchieve = function (slot0) for slot4, slot5 in ipairs(slot0:getChapters(true)) do if not slot5:isAllAchieve() then return false end end return true end slot0.getLastUnlockChapterName = function (slot0) slot1 = nil for slot5, slot6 in ipairs(slot0:getChapters(true)) do if slot6:getPlayType() == ChapterConst.TypeMainSub or not slot6:isUnlock() then break end slot1 = slot6 end return slot1:getConfig("chapter_name") end slot0.isActivity = function (slot0) if slot0:getMapType() == Map.EVENT then return true, false elseif slot1 == Map.ACTIVITY_EASY or slot1 == Map.ACTIVITY_HARD or slot1 == Map.ACT_EXTRA then return true, true else return false end end slot0.isHardMap = function (slot0) return slot0:getMapType() == Map.ELITE or slot1 == Map.ACTIVITY_HARD end slot0.isActExtra = function (slot0) return slot0:getMapType() == Map.ACT_EXTRA end slot0.isEscort = function (slot0) return slot0:getMapType() == Map.ESCORT end slot0.isSkirmish = function (slot0) return slot0:getMapType() == Map.SKIRMISH end slot0.isNormalMap = function (slot0) return table.contains(Map.NORMAL_MAP, slot0:getMapType()) end slot0.NeedRecordMap = function (slot0) return slot0:getMapType() == slot0.INVALID or slot1 == slot0.SCENARIO or slot1 == slot0.ELITE end return slot0
--[[---------------------------------------------------------------------------------------------------- <auto-generated> This file was generated by: ClientIntegration/Tools/LuaStringsGenerator/GenerateAllLocales.py Changes to this file should always follow: Building an Internationalized Feature - Engineer's Guide: https://confluence.roblox.com/display/IN/Building+an+Internationalized+Feature+-+Engineer%27s+Guide Sync up with newly-updated translations: https://confluence.roblox.com/display/MOBAPP/Sync+up+with+newly-updated+translations </auto-generated> --------------------------------------------------------------------------------------------------------]] return{ ["Feature.Catalog.Label.Premium"] = [[Premium]], ["Application.Logout.Action.Logout"] = [[Cerrar sesión]], ["Application.Logout.Title.Logout"] = [[Cerrar sesión]], ["Application.Logout.Message.Confirmation"] = [[¿Seguro que quieres cerrar la sesión?]], ["Authentication.Login.Label.Username"] = [[Nombre de usuario]], ["Authentication.Login.Response.IncorrectUsernamePassword"] = [[Nombre de usuario o contraseña incorrectos.]], ["Authentication.Login.Label.Password"] = [[Contraseña]], ["Authentication.Login.Action.LogInCapitalized"] = [[Iniciar sesión]], ["Authentication.Login.Heading.Login"] = [[Iniciar sesión]], ["Authentication.Login.Action.ForgotPasswordOrUsernameQuestionCapitalized"] = [[¿Has olvidado tu contraseña o nombre de usuario?]], ["Authentication.Login.Response.IncorrectEmailOrPassword"] = [[Correo electrónico o contraseña incorrectos.]], ["Authentication.Login.Response.IncorrectPhoneOrPassword"] = [[Número de teléfono o contraseña incorrectos.]], ["Authentication.Login.Response.UnverifiedEmailLoginWithUsername"] = [[Tu correo electrónico no ha sido verificado. Inicia sesión con tu nombre de usuario.]], ["Authentication.Login.Label.UsernameEmailPhone"] = [[Usuario/correo/teléfono]], ["Authentication.Login.Action.WeChatLogin"] = [[Inicio de sesión de WeChat]], ["Authentication.Login.Response.MoreThanOneUsername"] = [[Tu correo electrónico está asociado a más de un nombre de usuario. Inicia sesión con tu nombre de usuario.]], ["Authentication.Login.Response.ServiceUnavailable"] = [[Servicio no disponible. Inténtalo de nuevo más tarde.]], ["Authentication.Login.Response.LoginWithUsernameUnknownError"] = [[Algo ha ido mal. Inicia sesión con tu nombre de usuario.]], ["Authentication.Login.Response.SomethingWentWrong"] = [[Algo ha ido mal. Inténtalo de nuevo más tarde.]], ["Authentication.SignUp.Label.Birthday"] = [[Fecha de nacimiento]], ["Authentication.SignUp.Label.Gender"] = [[Sexo]], ["Authentication.SignUp.Label.SignUp"] = [[Regístrate]], ["Authentication.SignUp.Response.BadUsername"] = [[Nombre de usuario inadecuado para Roblox.]], ["Authentication.SignUp.Response.InvalidEmail"] = [[Dirección de correo electrónico no válida.]], ["Authentication.SignUp.Response.PasswordComplexity"] = [[Crea una contraseña más complicada.]], ["Authentication.SignUp.Response.PasswordMatchesUsername"] = [[No puede coincidir con tu nombre de usuario.]], ["Authentication.SignUp.Response.PasswordWrongShort"] = [[La contraseña debe tener al menos 8 caracteres.]], ["Authentication.SignUp.Response.UsernameAlreadyInUse"] = [[Ese nombre de usuario ya está en uso.]], ["Authentication.SignUp.Response.UsernameInvalidCharacters"] = [[Solo se permiten los caracteres a-z, A-Z, 0-9 y _.]], ["Authentication.SignUp.Response.UsernameInvalidLength"] = [[Los nombres de usuario pueden tener entre 3 y 20 caracteres.]], ["Authentication.SignUp.Response.UsernameInvalidUnderscore"] = [[No puede empezar ni terminar con _.]], ["Authentication.SignUp.Response.UsernamePrivateInfo"] = [[El nombre de usuario podría contener información privada.]], ["Authentication.SignUp.Response.UsernameTooManyUnderscores"] = [[Los nombres de usuario solo pueden tener un _.]], ["Authentication.SignUp.Response.SignUpPasswordTooShortError"] = [[La contraseña debe tener al menos 8 caracteres.]], ["Authentication.SignUp.Description.ByTappingSign"] = [[Al tocar «Regístrate» más arriba, aceptas nuestras ]], ["Authentication.SignUp.Response.BirthdayMustBeSetFirst"] = [[Antes debes determinar tu fecha de nacimiento.]], ["Authentication.SignUp.Label.Male"] = [[Hombre]], ["Authentication.SignUp.Label.Female"] = [[Mujer]], ["Authentication.SignUp.Description.UsernameHint"] = [[No utilices tu nombre real.]], ["Authentication.SignUp.Description.PasswordMinLength"] = [[Longitud mínima: 8]], ["Authentication.SignUp.Label.Continue"] = [[Continuar]], ["Authentication.SignUp.Label.WhensYourBirthday"] = [[¿Cuál es tu fecha de nacimiento?]], ["Authentication.SignUp.Response.InvalidPhoneNumber"] = [[Número de teléfono no válido.]], ["Authentication.SignUp.Response.PhoneNumberAlreadyLinked"] = [[El número ya está asociado a otra cuenta.]], ["Authentication.SignUp.Response.InvalidCode"] = [[El código no es válido.]], ["Authentication.SignUp.Label.PhoneNumber"] = [[Número de teléfono]], ["Authentication.SignUp.Description.UsernamePage"] = [[Este será tu nombre en Roblox. No utilices tu nombre real.]], ["Authentication.SignUp.Label.UsernameError1"] = [[Solo contiene letras, números y _]], ["Authentication.SignUp.Label.UsernameError2"] = [[Entre 3 y 20 caracteres]], ["Authentication.SignUp.Label.UsernameError3"] = [[No está en uso todavía]], ["Authentication.SignUp.Label.UsernameError4"] = [[Es adecuado para Roblox]], ["Authentication.SignUp.Label.UsernameError5"] = [[No empieza ni termina con _]], ["Authentication.SignUp.Label.UsernameError6"] = [[Solo puede contener un _]], ["Authentication.SignUp.Label.UsernameError7"] = [[No contiene información personal]], ["Authentication.SignUp.Description.PasswordPage"] = [[No compartas tu contraseña.]], ["Authentication.SignUp.Label.PasswordError1"] = [[Contiene un mínimo de 8 caracteres]], ["Authentication.SignUp.Label.PasswordError2"] = [[No coincide con tu nombre de usuario]], ["Authentication.SignUp.Label.PasswordError3"] = [[No es una contraseña sencilla]], ["Authentication.SignUp.Heading.UsernamePage"] = [[Seleccionar un nombre de usuario]], ["Authentication.SignUp.Heading.PasswordPage"] = [[Crear una contraseña]], ["Authentication.SignUp.Heading.SelectStartingAvatar"] = [[Selecciona un avatar de inicio]], ["Authentication.SignUp.Heading.VerificationPage"] = [[Verifica tu cuenta]], ["Authentication.SignUp.Description.VerificationPage"] = [[Al hacer clic en Regístrate, aceptas los Términos de uso y la Política de privacidad.]], ["Authentication.SignUp.Label.NoVerificationCode"] = [[¿No has recibido el código?]], ["Authentication.SignUp.Label.Resend"] = [[Reenviar]], ["Authentication.SignUp.Label.TooManyAttempts"] = [[Demasiados intentos. Inténtalo de nuevo más tarde.]], ["Authentication.SignUp.Label.EmailInUse"] = [[El correo electrónico ya está en uso.]], ["Authentication.SignUp.Label.SMSFeeWarning"] = [[Recibirás un SMS para confirmar tu número de teléfono. Pueden aplicarse cargos de mensajería.]], ["Authentication.SignUp.Label.EnterVerificationCode"] = [[Ingresa el código de 6 dígitos que acabamos de enviar a]], ["Authentication.SignUp.Heading.CountryCodeSelector"] = [[Selecciona el país]], ["Authentication.SignUp.Label.EmailAddress"] = [[Dirección de correo electrónico]], ["Authentication.SignUp.Label.ErrorsWithUsername"] = [[Hay errores en el nombre de usuario.]], ["Authentication.SignUp.Label.ErrorsWithPassword"] = [[Hay errores en la contraseña.]], ["Authentication.SignUp.Label.ConfirmBirthday"] = [[Confirma tu fecha de nacimiento]], ["Authentication.TwoStepVerification.Label.EnterEmailCode"] = [[Introduce el código enviado por correo electrónico]], ["Authentication.TwoStepVerification.Label.EnterTextCode"] = [[Introduce el código que te acabamos de enviar por mensaje de texto.]], ["Authentication.TwoStepVerification.Label.InvalidCode"] = [[El código no es válido.]], ["Authentication.TwoStepVerification.Label.TwoStepVerification"] = [[Verificación en dos pasos]], ["Authentication.TwoStepVerification.Response.InvalidCode"] = [[El código no es válido.]], ["Authentication.TwoStepVerification.Response.TooManyAttempts"] = [[Demasiados intentos. Inténtalo de nuevo más tarde.]], ["Authentication.TwoStepVerification.Label.TrustThisDevice"] = [[Confiar en este dispositivo durante 30 días.]], ["Authentication.TwoStepVerification.Label.SimpleNeedHelp"] = [[¿Necesitas ayuda?]], ["Authentication.TwoStepVerification.Action.ClickHere"] = [[Haz clic aquí]], ["Authentication.TwoStepVerification.Label.DidNotReceive"] = [[¿No has recibido el código?]], ["Authentication.TwoStepVerification.Label.Resend"] = [[Reenviar]], ["Common.BuildersClub.Label.BuildersClubMembership"] = [[Suscripción al Builders Club]], ["Common.BuildersClub.Label.BuildersClubMembershipTurbo"] = [[Suscripción al Turbo Builders Club]], ["Common.BuildersClub.Label.BuildersClubMembershipOutrageous"] = [[Suscripción al Outrageous Builders Club]], ["Common.Presence.Label.Online"] = [[Conectado]], ["Common.Presence.Label.Offline"] = [[Sin conexión]], ["Common.VisitGame.Label.Play"] = [[Jugar]], ["CommonUI.Controls.Birthdaypicker.Label.Date"] = [[Fecha]], ["CommonUI.Controls.Label.April"] = [[Abril]], ["CommonUI.Controls.Label.August"] = [[Agosto]], ["CommonUI.Controls.Label.December"] = [[Diciembre]], ["CommonUI.Controls.Label.February"] = [[Febrero]], ["CommonUI.Controls.Label.January"] = [[Enero]], ["CommonUI.Controls.Label.July"] = [[Julio]], ["CommonUI.Controls.Label.June"] = [[Junio]], ["CommonUI.Controls.Label.March"] = [[Marzo]], ["CommonUI.Controls.Label.May"] = [[Mayo]], ["CommonUI.Controls.Label.November"] = [[Noviembre]], ["CommonUI.Controls.Label.October"] = [[Octubre]], ["CommonUI.Controls.Label.September"] = [[Septiembre]], ["CommonUI.Controls.Label.Day"] = [[Día]], ["CommonUI.Controls.Label.Year"] = [[Año]], ["CommonUI.Controls.Action.Back"] = [[Volver]], ["CommonUI.Controls.Action.Confirm"] = [[Confirmar]], ["CommonUI.Controls.Label.AutoUpgradeIdle"] = [[¡Roblox necesita actualizarse! Si no haces nada, se reiniciará automáticamente en {time}{unit}.]], ["CommonUI.Controls.Label.AutoUpgradeForce"] = [[¡Roblox necesita actualizarse! Para que puedas jugar a este juego, tendrás que actualizarlo.]], ["CommonUI.Controls.Label.Seconds"] = [[ segundos]], ["CommonUI.Controls.Label.Minutes"] = [[ minutos]], ["CommonUI.Controls.Label.JanuaryAbbreviated"] = [[Ene.]], ["CommonUI.Controls.Label.FebruaryAbbreviated"] = [[Feb.]], ["CommonUI.Controls.Label.MarchAbbreviated"] = [[Mar.]], ["CommonUI.Controls.Label.AprilAbbreviated"] = [[Abr.]], ["CommonUI.Controls.Label.AugustAbbreviated"] = [[Ago.]], ["CommonUI.Controls.Label.SeptemberAbbreviated"] = [[Sept.]], ["CommonUI.Controls.Label.OctoberAbbreviated"] = [[Oct.]], ["CommonUI.Controls.Label.NovemberAbbreviated"] = [[Nov.]], ["CommonUI.Controls.Label.DecemberAbbreviated"] = [[Dic.]], ["CommonUI.Features.Label.Avatar"] = [[Avatar]], ["CommonUI.Features.Label.Blog"] = [[Blog]], ["CommonUI.Features.Label.BuildersClub"] = [[Suscripción]], ["CommonUI.Features.Label.Catalog"] = [[Catálogo]], ["CommonUI.Features.Label.Chat"] = [[Chat]], ["CommonUI.Features.Label.Events"] = [[Eventos]], ["CommonUI.Features.Label.Friends"] = [[Amigos]], ["CommonUI.Features.Label.Game"] = [[Juegos]], ["CommonUI.Features.Label.Groups"] = [[Grupos]], ["CommonUI.Features.Label.Help"] = [[Ayuda]], ["CommonUI.Features.Label.Home"] = [[Inicio]], ["CommonUI.Features.Label.Inventory"] = [[Inventario]], ["CommonUI.Features.Label.Messages"] = [[Mensajes]], ["CommonUI.Features.Label.More"] = [[Más]], ["CommonUI.Features.Label.Profile"] = [[Perfil]], ["CommonUI.Features.Label.Settings"] = [[Configuración]], ["CommonUI.Features.Label.TermsOfService"] = [[Términos de servicio]], ["CommonUI.Features.Label.PrivacyPolicy"] = [[Política de privacidad]], ["CommonUI.Features.Label.About"] = [[Acerca de Roblox]], ["CommonUI.Features.Label.AboutUs"] = [[Quiénes somos]], ["CommonUI.Features.Label.Careers"] = [[Empleo]], ["CommonUI.Features.Label.Parents"] = [[Padres]], ["CommonUI.Features.Label.Terms"] = [[Términos]], ["CommonUI.Features.Label.Privacy"] = [[Privacidad]], ["CommonUI.Features.Label.Version"] = [[Versión]], ["CommonUI.Features.Label.MoreEvents"] = [[¡Más eventos próximamente!]], ["CommonUI.Features.Heading.GameDetails"] = [[Detalles del juego]], ["CommonUI.Features.Label.Players"] = [[Jugadores]], ["CommonUI.Features.Label.Create"] = [[Crear]], ["CommonUI.Features.Label.TermsOfUse"] = [[Términos de uso]], ["CommonUI.Features.Label.Badges"] = [[Emblemas]], ["CommonUI.Features.Label.MyFeed"] = [[Mis noticias]], ["CommonUI.Features.Label.CreateGames"] = [[Crear]], ["CommonUI.Features.Label.VersionWithNumber"] = [[Versión: {versionNumber}]], ["CommonUI.Features.Label.Challenge"] = [[Desafíos]], ["CommonUI.Features.Heading.ItemDetails"] = [[Detalles del objeto]], ["CommonUI.Features.Label.Startup"] = [[Inicio]], ["CommonUI.Features.Label.Discussions"] = [[Debates]], ["CommonUI.Features.Label.DevSubs"] = [[Suscripciones]], ["CommonUI.Features.Label.FMODCredits"] = [[Usa FMOD desde Firelight Studios]], ["CommonUI.Features.Label.Discover"] = [[Descubrir]], ["CommonUI.Features.Label.Billing"] = [[Facturación]], ["CommonUI.Features.Label.Trades"] = [[Intercambios]], ["CommonUI.Messages.Label.Password"] = [[Contraseña]], ["CommonUI.Messages.Description.And"] = [[y]], ["CommonUI.Messages.Action.OK"] = [[Aceptar]], ["CommonUI.Messages.Label.Alert"] = [[Alerta]], ["CoreScripts.PurchasePrompt.PurchaseDetails.InvalidBuildersClub"] = [[Para comprar este objeto se requiere {BC_LEVEL}. Haz clic en Mejorar para pasar a un nivel de suscripción superior del Builders Club.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.NotEnoughRobux"] = [[No tienes suficientes Robux para comprar este objeto. Visita la página www.roblox.com para obtener más Robux.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.PurchaseDisabled"] = [[La compra no se ha realizado porque las compras dentro del juego están desactivadas temporalmente. No se te ha cobrado. Inténtalo de nuevo más tarde.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.UnknownFailureNoItemName"] = [[La compra no se ha realizado porque algo ha ido mal. No se te ha cobrado. Inténtalo de nuevo más tarde.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.UnknownFailure"] = [[La compra de {ITEM_NAME} no se ha realizado porque algo ha ido mal. No se te ha cobrado. Inténtalo de nuevo más tarde.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.NotForSale"] = [[Este objeto no está en venta en este momento. No se te ha cobrado.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.Under13"] = [[Tu cuenta es para menores de 13 años. No se permite la compra de este objeto. No se te ha cobrado.]], ["CoreScripts.PurchasePrompt.PurchaseFailed.AlreadyOwn"] = [[Ya tienes este objeto. No se te ha cobrado.]], ["Feature.AccountSettings.Heading.Tab.AccountInfo"] = [[Información de la cuenta]], ["Feature.AccountSettings.Heading.Tab.Security"] = [[Seguridad]], ["Feature.AccountSettings.Heading.Tab.Privacy"] = [[Privacidad]], ["Feature.AccountSettings.Heading.Tab.Billing"] = [[Facturación]], ["Feature.AccountSettings.Heading.Tab.Notifications"] = [[Notificaciones]], ["Feature.Avatar.Heading.All"] = [[Todos]], ["Feature.Avatar.Heading.Clothing"] = [[Ropa]], ["Feature.Avatar.Heading.Animations"] = [[Animaciones]], ["Feature.Avatar.Heading.Outfits"] = [[Conjuntos]], ["Feature.Avatar.Label.Hat"] = [[Sombrero]], ["Feature.Avatar.Label.Hair"] = [[Pelo]], ["Feature.Avatar.Label.Face"] = [[Cara]], ["Feature.Avatar.Label.Neck"] = [[Cuello]], ["Feature.Avatar.Label.Front"] = [[Frontales]], ["Feature.Avatar.Label.Back"] = [[Traseros]], ["Feature.Avatar.Label.Waist"] = [[Cintura]], ["Feature.Avatar.Label.Shirts"] = [[Camisas]], ["Feature.Avatar.Label.Pants"] = [[Pantalones]], ["Feature.Avatar.Label.Gear"] = [[Equipamiento]], ["Feature.Avatar.Label.FaceAccessories"] = [[Accesorios para la cara]], ["Feature.Avatar.Label.NeckAccessories"] = [[Accesorios para el cuello]], ["Feature.Avatar.Label.ShoulderAccessories"] = [[Accesorios para el hombro]], ["Feature.Avatar.Label.FrontAccessories"] = [[Accesorios frontales]], ["Feature.Avatar.Label.BackAccessories"] = [[Accesorios traseros]], ["Feature.Avatar.Label.WaistAccessories"] = [[Accesorios para la cintura]], ["Feature.Avatar.Label.Faces"] = [[Caras]], ["Feature.Avatar.Label.Head"] = [[Cabeza]], ["Feature.Avatar.Label.Heads"] = [[Cabezas]], ["Feature.Avatar.Label.Torso"] = [[Torso]], ["Feature.Avatar.Label.Torsos"] = [[Torsos]], ["Feature.Avatar.Label.LeftArms"] = [[Brazos izquierdos]], ["Feature.Avatar.Label.RightArms"] = [[Brazos derechos]], ["Feature.Avatar.Label.LeftLegs"] = [[Piernas izquierdas]], ["Feature.Avatar.Label.RightLegs"] = [[Piernas derechas]], ["Feature.Avatar.Label.SkinTone"] = [[Tono de piel]], ["Feature.Avatar.Label.Scale"] = [[Escalado]], ["Feature.Avatar.Label.Walk"] = [[Marcha]], ["Feature.Avatar.Label.Run"] = [[Carrera]], ["Feature.Avatar.Label.Fall"] = [[Caída]], ["Feature.Avatar.Label.Jump"] = [[Salto]], ["Feature.Avatar.Label.Swim"] = [[Nado]], ["Feature.Avatar.Label.Climb"] = [[Escalada]], ["Feature.Avatar.Label.Idle"] = [[Inactividad]], ["Feature.Avatar.Label.IdleAnimations"] = [[Animaciones de inactividad]], ["Feature.Avatar.Label.ClimbAnimations"] = [[Animaciones de escalada]], ["Feature.Avatar.Label.SwimAnimations"] = [[Animaciones de nado]], ["Feature.Avatar.Label.JumpAnimations"] = [[Animaciones de salto]], ["Feature.Avatar.Label.FallAnimations"] = [[Animaciones de caída]], ["Feature.Avatar.Label.RunAnimations"] = [[Animaciones de carrera]], ["Feature.Avatar.Label.WalkAnimations"] = [[Animaciones de marcha]], ["Feature.Avatar.Label.MyCostumes"] = [[Mis disfraces]], ["Feature.Avatar.Label.PresetCostumes"] = [[Disfraces predeterminados]], ["Feature.Avatar.Message.EmptyRecentItems"] = [[No tienes ningún objeto reciente.]], ["Feature.Avatar.Message.ReachedMaxOutfits"] = [[Has llegado a la cantidad máxima de conjuntos.]], ["Feature.Avatar.Message.InvalidOutfitName"] = [[El nombre debe ser adecuado y tener menos de 100 caracteres.]], ["Feature.Avatar.Action.Cancel"] = [[Cancelar]], ["Feature.Avatar.Message.DefaultClothing"] = [[Se ha equipado tu avatar con ropa predeterminada. Viste algo de tu guardarropa.]], ["Feature.Avatar.Heading.Body"] = [[Cuerpo]], ["Feature.Avatar.Action.Save"] = [[Guardar]], ["Feature.Avatar.Message.HatLimitTooltip"] = [[Puedes ponerte hasta tres sombreros.]], ["Feature.Avatar.Heading.Recommended"] = [[Recomendados]], ["Feature.Avatar.Heading.Recent"] = [[Recientes]], ["Feature.Avatar.Label.Height"] = [[Altura]], ["Feature.Avatar.Label.Width"] = [[Anchura]], ["Feature.Avatar.Label.BodyType"] = [[Tipo de cuerpo]], ["Feature.Avatar.Label.Proportions"] = [[Proporciones]], ["Feature.Avatar.Label.FullView"] = [[Vista completa]], ["Feature.Avatar.Label.ReturnToEdit"] = [[Volver a edición]], ["Feature.Avatar.Label.SwitchToR6"] = [[Cambiar a R6]], ["Feature.Avatar.Label.SwitchToR15"] = [[Cambiar a R15]], ["Feature.Avatar.Heading.RecentAll"] = [[Todos los recientes]], ["Feature.Avatar.Label.Hats"] = [[Sombreros]], ["Feature.Avatar.Label.Shoulder"] = [[Hombro]], ["Feature.Avatar.Label.Shirt"] = [[Camisa]], ["Feature.Avatar.Message.RecentItems"] = [[objetos recientes]], ["Feature.Avatar.Action.Wear"] = [[Vestir]], ["Feature.Avatar.Action.TakeOff"] = [[Quitar]], ["Feature.Avatar.Action.ViewDetails"] = [[Ver detalles]], ["Feature.Avatar.Message.ScalingWarning"] = [[El escalado solo funciona con avatares R15]], ["Feature.Avatar.Message.AnimationsWarning"] = [[Las animaciones solo funcionan con avatares R15]], ["Feature.Avatar.Action.ShopNow"] = [[Comprar ahora]], ["Feature.Avatar.Action.ShopInCatalog"] = [[Comprar en el Catálogo]], ["Feature.Avatar.Message.NoNetworkConnection"] = [[Conectando]], ["Feature.Avatar.Label.By"] = [[De]], ["Feature.Avatar.Label.Name"] = [[Nombre]], ["Feature.Avatar.Label.Detail"] = [[Detalle]], ["Feature.Avatar.Label.CurrentlyWearing"] = [[Ropa actual]], ["Feature.Avatar.Message.EmptyOutfits"] = [[No tienes ningún conjunto]], ["Feature.Avatar.Message.EmptyAssetHats"] = [[No tienes ningún sombrero]], ["Feature.Avatar.Message.EmptyAssetHair"] = [[No tienes ningún pelo]], ["Feature.Avatar.Message.EmptyAssetFaceAccessories"] = [[No tienes ningún accesorio para la cara]], ["Feature.Avatar.Message.EmptyAssetNeckAccessories"] = [[No tienes ningún accesorio para el cuello]], ["Feature.Avatar.Message.EmptyAssetShoulderAccessories"] = [[No tienes ningún accesorio para el hombro]], ["Feature.Avatar.Message.EmptyAssetFrontAccessories"] = [[No tienes ningún accesorio frontal]], ["Feature.Avatar.Message.EmptyAssetBackAccessories"] = [[No tienes ningún accesorio trasero]], ["Feature.Avatar.Message.EmptyAssetWaistAccessories"] = [[No tienes ningún accesorio para la cintura]], ["Feature.Avatar.Message.EmptyAssetShirts"] = [[No tienes ninguna camisa]], ["Feature.Avatar.Message.EmptyAssetPants"] = [[No tienes ningunos pantalones]], ["Feature.Avatar.Message.EmptyAssetFaces"] = [[No tienes ninguna cara]], ["Feature.Avatar.Message.EmptyAssetHeads"] = [[No tienes ninguna cabeza]], ["Feature.Avatar.Message.EmptyAssetTorsos"] = [[No tienes ningún torso]], ["Feature.Avatar.Message.EmptyAssetRightArms"] = [[No tienes ningún brazo derecho]], ["Feature.Avatar.Message.EmptyAssetLeftArms"] = [[No tienes ningún brazo izquierdo]], ["Feature.Avatar.Message.EmptyAssetRightLegs"] = [[No tienes ninguna pierna derecha]], ["Feature.Avatar.Message.EmptyAssetLeftLegs"] = [[No tienes ninguna pierna izquierda]], ["Feature.Avatar.Message.EmptyAssetGear"] = [[No tienes equipamiento]], ["Feature.Avatar.Message.EmptyAssetClimbAnimations"] = [[No tienes ninguna animación de escalada]], ["Feature.Avatar.Message.EmptyAssetJumpAnimations"] = [[No tienes ninguna animación de salto]], ["Feature.Avatar.Message.EmptyAssetFallAnimations"] = [[No tienes ninguna animación de caída]], ["Feature.Avatar.Message.EmptyAssetIdleAnimations"] = [[No tienes ninguna animación de inactividad]], ["Feature.Avatar.Message.EmptyAssetWalkAnimations"] = [[No tienes ninguna animación de marcha]], ["Feature.Avatar.Message.EmptyAssetRunAnimations"] = [[No tienes ninguna animación de carrera]], ["Feature.Avatar.Message.EmptyAssetSwimAnimations"] = [[No tienes ninguna animación de nado]], ["Feature.Avatar.Message.EmptyCurrentlyWearing"] = [[No traes nada puesto]], ["Feature.Avatar.Label.ByCreatorName"] = [[De {creatorName}]], ["Feature.Avatar.Message.ReachedMaxCostumes"] = [[Has llegado a la cantidad máxima de disfraces.]], ["Feature.Avatar.Message.EmptyCostumes"] = [[No tienes ningún disfraz]], ["Feature.Avatar.Message.FailedToLoadAvatar"] = [[Error al cargar el avatar]], ["Feature.Avatar.Label.Equip"] = [[Equipar]], ["Feature.Avatar.Message.ChooseEmoteSlot"] = [[Elige un espacio]], ["Feature.Avatar.Label.YourEmotes"] = [[Tus emotes]], ["Feature.Avatar.Heading.Emotes"] = [[Emotes]], ["Feature.Avatar.Message.EmptyAssetEmotes"] = [[No tienes emotes]], ["Feature.Avatar.Message.ChooseEmote"] = [[Elige un emote]], ["Feature.Avatar.Message.ErrorSaveEmotes"] = [[Error al guardar los emotes. Inténtalo de nuevo más tarde.]], ["Feature.Avatar.R6"] = [[R6]], ["Feature.Avatar.R16"] = [[R16]], ["Feature.Avatar.R15"] = [[R15]], ["Feature.Avatar.Label.R6"] = [[R6]], ["Feature.Avatar.Label.R15"] = [[R15]], ["Feature.Avatar.Message.ChooseEmoteSlotOrEmote"] = [[Elige un espacio o un emote]], ["Feature.Avatar.Action.Shop"] = [[Tienda]], ["Feature.Avatar.Heading.SaveCostume"] = [[Guardar avatar]], ["Feature.Avatar.Label.EnterCostumeName"] = [[Ponle un nombre a este nuevo avatar]], ["Feature.Avatar.Label.BodyStyle"] = [[Tipo de cuerpo]], ["Feature.Avatar.Label.HeadSize"] = [[Tamaño de la cabeza]], ["Feature.Avatar.Label.BodySize"] = [[Tamaño del cuerpo]], ["Feature.Avatar.Label.BodyShape"] = [[Forma del cuerpo]], ["Feature.Avatar.Label.R6R15"] = [[R6/R15]], ["Feature.Avatar.Label.CostumeWarning"] = [[Los nombres solo pueden contener letras, números y espacios]], ["Feature.Avatar.Label.Skin"] = [[Piel]], ["Feature.Avatar.Action.ShopForMore"] = [[Consigue más]], ["Feature.Avatar.Label.NoItems"] = [[No tienes {itemType}]], ["Feature.Avatar.Message.R6AnimationToast"] = [[{type} no funciona con los avatares R6]], ["Feature.Avatar.Label.BodyScales"] = [[Dimensiones del cuerpo]], ["Feature.Avatar.Message.R6AnimationError"] = [[Las animaciones no funcionan con los avatares R6]], ["Feature.Avatar.Message.R6EmotesError"] = [[Los emotes no funcionan con los avatares R6]], ["Feature.Avatar.Message.R6BodyScaleError"] = [[Las dimensiones del cuerpo no funcionan con los avatares R6]], ["Feature.Avatar.Message.InvalidName"] = [[Nombre no válido]], ["Feature.Avatar.Label.Emote"] = [[Emote]], ["Feature.Avatar.Label.TShirt"] = [[Camiseta]], ["Feature.Avatar.Heading.WearConfirmation"] = [[Poner objeto]], ["Feature.Avatar.Label.WearConfirmation"] = [[Ya tienes este objeto. ¿Te lo quieres poner?]], ["Feature.Avatar.Label.InvalidOutfitName"] = [[El nombre debe ser adecuado y tener menos de {characterLimit} caracteres.]], ["Feature.Avatar.Message.AlreadyAcquired"] = [[Ya has comprado este objeto.]], ["Feature.Billing.Action.UpgradeMembership"] = [[Mejorar suscripción]], ["Feature.Billing.Action.JoinBuildersClub"] = [[Unirse al Builders Club]], ["Feature.Billing.Label.RenewalDate"] = [[Fecha de renovación]], ["Feature.Billing.Label.ExpirationDate"] = [[Fecha de caducidad]], ["Feature.Billing.Label.RenewalDateMessage"] = [[Renovar automáticamente el %s.]], ["Feature.Billing.Label.ExpirationDateMessage"] = [[Caduca el %s.]], ["Feature.Billing.Label.BillingHelpMessage"] = [[Para preguntas de facturación y pagos, visita las páginas de ayuda sobre facturación.]], ["Feature.Billing.Label.MembershipType.None"] = [[Todavía no eres miembro. ¡Únete ya al Builders Club!]], ["Feature.Billing.Label.MembershipType.OBC"] = [[Suscripción al Outrageous Builders Club]], ["Feature.Billing.Label.MembershipType.TBC"] = [[Suscripción al Turbo Builders Club]], ["Feature.Billing.Label.MembershipType.BC"] = [[Suscripción al Builders Club]], ["Feature.Billing.Label.MembershipType.Premium450"] = [[Roblox Premium 450]], ["Feature.Billing.Label.MembershipType.Premium1000"] = [[Roblox Premium 1000]], ["Feature.Billing.Label.MembershipType.Premium2200"] = [[Roblox Premium 2200]], ["Feature.Billing.Heading.MembershipStatus"] = [[Estado de la suscripción]], ["Feature.Billing.Description.JoinPremium"] = [[Todavía no eres miembro. ¡Únete ya!]], ["Feature.Billing.Description.JoinBC"] = [[Todavía no eres miembro. ¡Únete ya al Builders Club!]], ["Feature.Billing.Action.JoinPremium"] = [[Unirse]], ["Feature.BuyRobux.Heading.Banner"] = [[Comprar Robux]], ["Feature.BuyRobux.Description.Banner"] = [[Compra Robux para mejorar tu avatar o conseguir habilidades especiales en el juego.\nSuscríbete a Roblox Premium para obtener aún más Robux cada mes y funciones adicionales. Premium se factura una vez al mes hasta que se cancele.]], ["Feature.BuyRobux.Label.BannerPremiumLink"] = [[Aprende más aquí]], ["Feature.BuyRobux.Heading.SubscriptionList"] = [[Suscríbete y obtén más.]], ["Feature.BuyRobux.Heading.RobuxListNonPremium"] = [[Comprar Robux]], ["Feature.BuyRobux.Heading.RobuxListPremium"] = [[Obtén un descuento del 10% en la compra de Robux]], ["Feature.BuyRobux.Description.RobuxListPremium"] = [[Como suscriptor(a) Premium, recibirás descuentos en la compra de Robux.]], ["Feature.BuyRobux.Label.PerMonth"] = [[{Robux} al mes]], ["Feature.BuyRobux.Label.Price"] = [[{CurrencySymbol}{Amount}]], ["Feature.BuyRobux.Description.LegalText"] = [[Al comprar Robux, recibirás una licencia limitada, no reembolsable, intransferible y revocable que te permite usar Robux, los cuales no tienen ningún valor en moneda real. Consulta los Términos de uso para ver otras limitaciones que aplican. Si eres menor de 18 años, asegúrate de obtener el permiso de uno de tus padres o tutores antes de hacer una compra. Una compra que se lleve a cabo sin permiso puede resultar en la eliminación de la cuenta.]], ["Feature.BuyRobux.Label.TermsOfUse"] = [[Ver los Términos de uso aquí]], ["Feature.Catalog.Label.CategoryType"] = [[Tipo]], ["Feature.Catalog.Label.Filter.Creator"] = [[Creador]], ["Feature.Catalog.Label.Filter.Genre"] = [[Género]], ["Feature.Catalog.Response.NoItemsFound"] = [[No se han encontrado objetos.]], ["Feature.Catalog.LabelFeatured"] = [[Promocionados]], ["Feature.Catalog.LabelAccessories"] = [[Accesorios]], ["Feature.Catalog.LabelShirts"] = [[Camisas]], ["Feature.Catalog.LabelTShirts"] = [[Camisetas]], ["Feature.Catalog.LabelPants"] = [[Pantalones]], ["Feature.Catalog.LabelAccessoryHats"] = [[Sombreros]], ["Feature.Catalog.LabelFree"] = [[Gratis]], ["Feature.Catalog.LabelOffSale"] = [[Fuera de oferta]], ["Feature.Catalog.LabelNoResellers"] = [[Sin reventa]], ["Feature.Catalog.Label.Sale"] = [[Venta]], ["Feature.Catalog.Label.New"] = [[Nuevo]], ["Feature.Catalog.Label.Bundle"] = [[Paquete]], ["Feature.Catalog.Label.Owned"] = [[Tienes]], ["Feature.Catalog.Label.Favorites"] = [[Favoritos]], ["Feature.Catalog.Label.Emotes"] = [[Emotes]], ["Feature.Catalog.Label.Character"] = [[Personaje]], ["Feature.Catalog.Label.Outfit"] = [[Conjunto]], ["Feature.Catalog.Label.Body"] = [[Cuerpo]], ["Feature.Catalog.Label.Animation"] = [[Animación]], ["Feature.Catalog.Label.Purchases"] = [[Compras]], ["Feature.Catalog.Label.Recommendations"] = [[También te puede gustar]], ["Feature.Catalog.Label.Movement"] = [[Movimiento]], ["Feature.Catalog.Lable.BodyShape"] = [[Forma del cuerpo]], ["Feature.Catalog.Label.Face"] = [[Cara]], ["Feature.Catalog.Label.Head"] = [[Cabeza]], ["Feature.Catalog.Label.Hair"] = [[Pelo]], ["Feature.Catalog.Label.Gear"] = [[Equipamiento]], ["Feature.Catalog.Label.WaistAccessories"] = [[Accesorios para la cintura]], ["Feature.Catalog.Label.BackAccessories"] = [[Accesorios traseros]], ["Feature.Catalog.Label.FrontAccessories"] = [[Accesorios frontales]], ["Feature.Catalog.Label.ShoulderAccessories"] = [[Accesorios para el hombro]], ["Feature.Catalog.Label.FaceAccessories"] = [[Accesorios para la cara]], ["Feature.Catalog.Label.NeckAccessories"] = [[Accesorios para el cuello]], ["Feature.Catalog.Label.Limited"] = [[Limitados]], ["Feature.Catalog.Label.BodyShape"] = [[Forma del cuerpo]], ["Feature.Catalog.Feature.Catalog.Label.CharacterUppercase"] = [[PERSONAJES]], ["Feature.Catalog.Feature.Catalog.LabelFeaturedUppercase"] = [[DESTACADOS]], ["Feature.Catalog.Feature.Catalog.Label.OutfitUppercase"] = [[CONJUNTOS]], ["Feature.Catalog.Feature.Catalog.Label.BodyUppercase"] = [[CUERPOS]], ["Feature.Catalog.Feature.Catalog.Label.AnimationUppercase"] = [[ANIMACIONES]], ["Feature.Catalog.Label.AnimationUppercase"] = [[ANIMACIONES]], ["Feature.Catalog.Label.BodyUppercase"] = [[CUERPOS]], ["Feature.Catalog.Label.CharacterUppercase"] = [[PERSONAJES]], ["Feature.Catalog.Label.OutfitUppercase"] = [[CONJUNTOS]], ["Feature.Catalog.Catalog.Label.FeaturedUppercase"] = [[DESTACADOS]], ["Feature.Catalog.Label.FeaturedUppercase"] = [[DESTACADOS]], ["Feature.Catalog.Label.CommunityCreations"] = [[ Creaciones de la comunidad]], ["Feature.Catalog.Action.EditAvatar"] = [[Editar avatar]], ["Feature.Catalog.Response.Throttled"] = [[¡Vas muy rápido! Inténtalo de nuevo en un minuto.]], ["Feature.Catalog.Action.Sell"] = [[Vender]], ["Feature.Catalog.Action.Customize"] = [[Personalizar]], ["Feature.Catalog.Action.Share"] = [[Compartir]], ["Feature.Catalog.Label.AvailableForSale"] = [[En venta]], ["Feature.Catalog.Label.OnSale"] = [[En venta]], ["Feature.Catalog.Heading.Sellers"] = [[Vendedores]], ["Feature.Catalog.Label.OriginalPrice"] = [[Precio original]], ["Feature.Catalog.Label.QuantitySold"] = [[Cantidad vendida]], ["Feature.Catalog.Label.AveragePrice"] = [[Precio medio]], ["Feature.Catalog.Label.Edition"] = [[Edición]], ["Feature.Catalog.Heading.ConfirmPrice"] = [[Confirmar precio]], ["Feature.Catalog.Label.SellCut"] = [[Tú ganas:]], ["Feature.Catalog.Label.RemoveSellItem"] = [[¿Seguro que quieres eliminar este objeto?]], ["Feature.Catalog.Heading.RemoveSellItem"] = [[Eliminar objeto]], ["Feature.Catalog.Label.MinimumAmount"] = [[La cantidad mínima debe ser mayor de 0.]], ["Feature.Catalog.Action.GoCustomize"] = [[Ir a personalización]], ["Feature.Catalog.Label.WearAfterPurchase"] = [[Vestir después de la compra]], ["Feature.Catalog.Action.Buy"] = [[Comprar]], ["Feature.Catalog.Heading.InsufficientFunds"] = [[Robux insuficientes]], ["Feature.Catalog.Label.InsufficientFunds"] = [[No tienes suficientes Robux para comprar este objeto.]], ["Feature.Catalog.Label.CurrentBalance"] = [[Saldo actual:]], ["Feature.Catalog.Label.PurchaseConfirmation"] = [[¿Quieres comprar {itemName} de {creatorName} por {itemPrice}?]], ["Feature.Catalog.Label.RobuxFee"] = [[Monto después del {feePercentage}% de cuota:]], ["Feature.Catalog.Heading.BuyItem"] = [[Comprar]], ["Feature.Catalog.Action.Cancel"] = [[Cancelar]], ["Feature.Catalog.Label.BuyConfirmation"] = [[¿Quieres comprar {itemName} de {creatorName}?]], ["Feature.Catalog.Label.PriceColon"] = [[Precio:]], ["Feature.Catalog.Action.Favorite"] = [[Añadir a favorito]], ["Feature.Catalog.Action.RemoveFavorite"] = [[Favorito]], ["Feature.Catalog.Action.Report"] = [[Denunciar]], ["Feature.Catalog.Label.ShopToAvatarPage"] = [[Saldrás de la tienda para personalizar tu avatar.]], ["Feature.Catalog.Label.NoSellersWarning"] = [[Lo sentimos, nadie está vendiendo este objeto]], ["Feature.Catalog.Label.ItemsCount"] = [[{itemCount} objetos]], ["Feature.Catalog.Label.ItemCount"] = [[{itemCount} objeto]], ["Feature.Catalog.Label.AverageSellPrice"] = [[Precio de venta promedio:]], ["Feature.Catalog.Label.SellSuccess"] = [[Objeto a la venta]], ["Feature.Catalog.Action.Remove"] = [[Eliminar]], ["Feature.Catalog.Heading.SellItem"] = [[Vender objeto]], ["Feature.Catalog.Label.Price"] = [[Precio]], ["Feature.Catalog.Heading.Resellers"] = [[Revendedores]], ["Feature.Catalog.Label.Featured"] = [[Promocionados]], ["Feature.Catalog.Label.Resell"] = [[Revender]], ["Feature.Catalog.Label.AvailableForSaleUpper"] = [[DISPONIBLE PARA LA VENTA]], ["Feature.Catalog.Label.OnSaleUpper"] = [[A LA VENTA]], ["Feature.Catalog.Label.Characters"] = [[Personajes]], ["Feature.Catalog.Label.Get"] = [[Obtener]], ["Feature.Catalog.Label.BuyRobux"] = [[Comprar Robux]], ["Feature.Catalog.Label.Purchased"] = [[¡Comprado!]], ["Feature.Catalog.Label.NoLongerAvailable"] = [[Este objeto ya no está disponible]], ["Feature.Catalog.Heading.NotForSale"] = [[Fuera de venta]], ["Feature.Catalog.Heading.ItemRemoved"] = [[Objeto eliminado]], ["Feature.Catalog.Feature.Catalog.Label.Community"] = [[Comunidad]], ["Feature.Catalog.Label.Community"] = [[Comunidad]], ["Feature.Catalog.Label.BodyShapes"] = [[Formas del cuerpo]], ["Feature.Catalog.Heading.NoSellers"] = [[Sin revendedores]], ["Feature.Catalog.Action.Rent"] = [[Alquilar]], ["Feature.Catalog.Label.TShirt"] = [[Camiseta]], ["Feature.Catalog.Label.Emote"] = [[Emote]], ["Feature.Catalog.Label.Clothing"] = [[Ropa]], ["Feature.Catalog.Label.SellPageUpsell"] = [[La opción de vender solo está disponible para los usuarios que tienen la suscripción a Premium.]], ["Feature.Catalog.Heading.PremiumOnly"] = [[Solo Premium]], ["Feature.Catalog.Action.Upgrade"] = [[Mejorar]], ["Feature.Catalog.Heading.FreeItem"] = [[Obtener objeto]], ["Feature.Catalog.Label.FreeItemConfirmation"] = [[¿Quieres comprar el objeto gratis {itemName} de {creatorName}?]], ["Feature.Catalog.Heading.FreeItemConfirmation"] = [[Obtener objeto]], ["Feature.Catalog.Heading.AvatarShop"] = [[Tienda de avatares]], ["Feature.Chat.Response.Sending"] = [[Enviando]], ["Feature.Chat.Response.ChatNameFullyModerated"] = [[Se ha moderado el nombre del grupo de chat.]], ["Feature.Chat.Heading.LeaveGroup"] = [[Salir del grupo]], ["Feature.Chat.Label.SearchWord"] = [[Buscar]], ["Feature.Chat.Action.Add"] = [[Añadir]], ["Feature.Chat.Action.Leave"] = [[Salir]], ["Feature.Chat.Action.Remove"] = [[Eliminar]], ["Feature.Chat.Action.Cancel"] = [[Cancelar]], ["Feature.Chat.Description.NameGroupChat"] = [[Ponle nombre a tu grupo]], ["Feature.Chat.Heading.NewChatGroup"] = [[Nuevo grupo de chat]], ["Feature.Chat.Label.SeeLess"] = [[Ver menos]], ["Feature.Chat.Label.InputPlaceHolder.SearchForFriends"] = [[Buscar amigos]], ["Feature.Chat.Label.AddFriends"] = [[Añadir amigos]], ["Feature.Chat.Label.ChatDetails"] = [[Detalles del chat]], ["Feature.Chat.Label.General"] = [[General]], ["Feature.Chat.Label.Members"] = [[Miembros]], ["Feature.Chat.Label.ViewProfile"] = [[Ver perfil]], ["Feature.Chat.Label.ChatGroupName"] = [[Nombre del grupo de chat]], ["Feature.Chat.Action.Stay"] = [[Quedarse]], ["Feature.Chat.Action.Create"] = [[Crear]], ["Feature.Chat.Action.Send"] = [[Enviar]], ["Feature.Chat.Action.Save"] = [[Guardar]], ["Feature.Chat.Message.ToastText"] = [[Puedes tener hasta {friendNum} amigos en un grupo de chat.]], ["Feature.Chat.Message.NoConnectionMsg"] = [[Conectando...]], ["Feature.Chat.Message.Default"] = [[No todos los miembros del chat pueden ver tu mensaje.]], ["Feature.Chat.Message.MessageFilterForReceivers"] = [[No todos los miembros del chat pueden ver tu mensaje.]], ["Feature.Chat.Message.MessageContentModerated"] = [[Tu mensaje ha sido moderado y no se ha enviado.]], ["Feature.Chat.Label.PrivacySettings"] = [[Configuración de privacidad]], ["Feature.Chat.Label.ChatInputPlaceholder"] = [[Di algo]], ["Feature.Chat.Action.Confirm"] = [[Aceptar]], ["Feature.Chat.Heading.FailedToLeaveGroup"] = [[Error al salir del grupo]], ["Feature.Chat.Message.FailedToLeaveGroup"] = [[No se te ha podido eliminar de la conversación {CONVERSATION_TITLE}.]], ["Feature.Chat.Heading.FailedToRemoveUser"] = [[Error al eliminar usuario]], ["Feature.Chat.Message.FailedToRemoveUser"] = [[No se ha podido eliminar al usuario {USERNAME} de la conversación {CONVERSATION_TITLE}.]], ["Feature.Chat.Heading.FailedToRenameConversation"] = [[Error al cambiar el nombre de la conversación]], ["Feature.Chat.Message.FailedToRenameConversation"] = [[No se ha podido cambiar el nombre de la conversación de {EXISTING_NAME} a {NEW_NAME}.]], ["Feature.Chat.Message.LeaveGroup"] = [[No podrás seguir chateando en este grupo.]], ["Feature.Chat.Message.MakeFriendsToChat"] = [[Haz amigos en los juegos para empezar a chatear y jugar juntos.]], ["Feature.Chat.Label.NotSet"] = [[Sin conf.]], ["Feature.Chat.Heading.Option"] = [[Opción]], ["Feature.Chat.Action.RemoveFromGroup"] = [[Eliminar del grupo]], ["Feature.Chat.Action.RemoveUser"] = [[Eliminar usuario]], ["Feature.Chat.Message.RemoveUser"] = [[¿Seguro que quieres eliminar a {USERNAME} de este grupo de chat?]], ["Feature.Chat.Message.RemovedFromConversation"] = [[Has sido eliminado del grupo.]], ["Feature.Chat.Action.ReportUser"] = [[Denunciar usuario]], ["Feature.Chat.Label.SearchForFriendsAndChat"] = [[Buscar conversaciones]], ["Feature.Chat.Action.SeeMoreFriends"] = [[Ver más ({NUMBER_OF_FRIENDS})]], ["Feature.Chat.Label.Sent"] = [[Enviado]], ["Feature.Chat.Heading.ShareGameToChat"] = [[Compartir en el chat]], ["Feature.Chat.Message.TurnOnChat"] = [[Para chatear con tus amigos, activa el chat en la configuración de privacidad.]], ["Feature.Chat.Action.ViewAssetDetails"] = [[Ver detalles]], ["Feature.Chat.Label.ByBuilder"] = [[De {USERNAME}]], ["Feature.Chat.Message.AlreadyPinnedGame"] = [[Este juego ya ha sido anclado. Intenta con otro.]], ["Feature.Chat.Message.PinFailed"] = [[El juego no se ha podido anclar. Inténtalo de nuevo más tarde.]], ["Feature.Chat.Message.UnpinFailed"] = [[Este juego no se ha podido desanclar. Inténtalo de nuevo más tarde.]], ["Feature.Chat.Drawer.ShowMore"] = [[Mostrar más]], ["Feature.Chat.Drawer.ShowLess"] = [[Mostrar menos]], ["Feature.Chat.Drawer.NoGames"] = [[No hay juegos anclados o en curso.]], ["Feature.Chat.Drawer.Recommended"] = [[Recomendados]], ["Feature.Chat.Drawer.Loading"] = [[Cargando]], ["Feature.Chat.Drawer.PinnedGame"] = [[Anclado]], ["Feature.Chat.Drawer.Play"] = [[Jugar]], ["Feature.Chat.Drawer.Join"] = [[Unirse]], ["Feature.Chat.Drawer.PlayGame"] = [[Jugar]], ["Feature.Chat.Drawer.PinGame"] = [[Anclar]], ["Feature.Chat.Drawer.UnpinGame"] = [[Desanclar]], ["Feature.Chat.Drawer.ViewDetails"] = [[Ver detalles]], ["Feature.Chat.Label.NoDescriptionYet"] = [[Aún sin descripción.]], ["Feature.Chat.Message.GameLinkWasModerated"] = [[Este enlace del juego ha sido moderado y no se ha enviado.]], ["Feature.Chat.ShareGameToChat.BrowseGames"] = [[Explorar]], ["Feature.Chat.ShareGameToChat.By"] = [[de {creatorName}]], ["Feature.Chat.ShareGameToChat.Popular"] = [[Populares]], ["Feature.Chat.ShareGameToChat.Recent"] = [[Recientes]], ["Feature.Chat.ShareGameToChat.Favorites"] = [[Favoritos]], ["Feature.Chat.ShareGameToChat.FriendActivity"] = [[Actividad de tus amigos]], ["Feature.Chat.ShareGameToChat.NoPopularGames"] = [[No hay juegos populares disponibles]], ["Feature.Chat.ShareGameToChat.NoRecentGames"] = [[No hay recientes]], ["Feature.Chat.ShareGameToChat.NoFavoriteGames"] = [[No hay favoritos]], ["Feature.Chat.ShareGameToChat.NoFriendActivity"] = [[No tienes ninguna actividad de amigo]], ["Feature.Chat.ShareGameToChat.GameNotAvailable"] = [[No disponible]], ["Feature.Chat.ShareGameToChat.FailedToShareTheGame"] = [[No se puede compartir el juego. Inténtalo de nuevo más tarde.]], ["Feature.Chat.Heading.ChatWithFriends"] = [[Chatear con amigos]], ["Feature.Chat.Action.StartChatWithFriends"] = [[Chatear]], ["Feature.Chat.Action.Hello"] = [[¡Hola!]], ["Feature.Chat.Label.UnsupportedMessageType"] = [[Actualiza la aplicación para que se muestre este mensaje.]], ["Feature.Chat.Label.NotImplementedMessageType"] = [[No se puede mostrar este mensaje.]], ["Feature.Chat.Feature.Chat.ConversationEntry.GameLinkPreview"] = [[http://www.roblox.com/games/...]], ["Feature.Chat.ConversationEntry.GameLinkPreview"] = [[http://www.roblox.com/games/...]], ["Feature.Chat.UnreadMessagesWidget"] = [[{NUMBER_OF_UNREAD_MESSAGES} mensajes sin leer]], ["Feature.Chat.NoChatConversations"] = [[No hay conversaciones de chat]], ["Feature.Chat.Response.Failed"] = [[Falla]], ["Feature.Chat.Response.NetworkError"] = [[Error de red]], ["Feature.DevSubs.UserManagement.ShowInactive"] = [[Mostrar suscripciones inactivas]], ["Feature.DevSubs.UserManagement.HideInactive"] = [[Ocultar suscripciones inactivas]], ["Feature.DevSubs.UserManagement.MonthlyPrice"] = [[{robuxAmount} al mes]], ["Feature.DevSubs.Action.CancelSubscription"] = [[Cancelar suscripción]], ["Feature.DevSubs.Message.ConfirmCancellation"] = [[¿Seguro que quieres cancelar la suscripción?]], ["Feature.DevSubs.Label.RenewalDate"] = [[Fecha de renovación: {date}]], ["Feature.DevSubs.Label.ExpirationDate"] = [[Fecha de caducidad: {date}]], ["Feature.DevSubs.Label.DiscontinueDate"] = [[Fecha de suspensión: {date}]], ["Feature.DevSubs.Action.RenewSubscription"] = [[Renovar suscripción]], ["Feature.DevSubs.Label.ActiveSubscriptions"] = [[Suscripciones activas]], ["Feature.DevSubs.Label.InactiveSubscriptions"] = [[Suscripciones inactivas]], ["Feature.Discussions.ChatInputBar.NoSendPermission"] = [[No tienes permiso para publicar en este canal.]], ["Feature.EmptyStatePage.Message.NoInternet"] = [[Sin conexión a internet]], ["Feature.Favorites.Label.Favorite"] = [[Favorito]], ["Feature.Favorites.Label.Favorited"] = [[Favorito]], ["Feature.Friends.Label.SearchFriends"] = [[Buscar amigos]], ["Feature.GameBadges.HeadingGameBadges"] = [[Emblemas del juego]], ["Feature.GameDetails.Label.By"] = [[De]], ["Feature.GameDetails.Label.About"] = [[Info.]], ["Feature.GameDetails.Label.Store"] = [[Tienda]], ["Feature.GameDetails.Label.Leaderboards"] = [[Clasificación]], ["Feature.GameDetails.Label.Servers"] = [[Servidores]], ["Feature.GameDetails.Heading.Description"] = [[Descripción]], ["Feature.GameDetails.Label.Playing"] = [[Jugando]], ["Feature.GameDetails.Label.Visits"] = [[Visitas]], ["Feature.GameDetails.Label.Created"] = [[Creado]], ["Feature.GameDetails.Label.Updated"] = [[Actualizado]], ["Feature.GameDetails.Label.MaxPlayers"] = [[Máx. de jugadores]], ["Feature.GameDetails.Label.Genre"] = [[Género]], ["Feature.GameDetails.Label.GameCopyLocked"] = [[Este juego tiene bloqueo anticopia]], ["Feature.GameDetails.Label.ReportAbuse"] = [[Denunciar abuso]], ["Feature.GameDetails.Heading.RecommendedGames"] = [[Juegos recomendados]], ["Feature.GameDetails.Action.ShareGameToChat"] = [[Compartir en el chat]], ["Feature.GameDetails.Label.FavoriteButton"] = [[Añadir a favoritos]], ["Feature.GameDetails.Label.Developer"] = [[Desarrollador]], ["Feature.GameDetails.Label.PassesAndGear"] = [[Pases y equipamiento]], ["Feature.GameDetails.Heading.PurchaseGame"] = [[Desbloquear este juego]], ["Feature.GameDetails.Action.Unlock"] = [[Desbloquear]], ["Feature.GameDetails.Action.BuyRobux"] = [[Comprar Robux]], ["Feature.GameDetails.Message.PurchaseGame"] = [[¿Desbloquear accesso a {gameName} por R${X}?]], ["Feature.GameDetails.Message.BuyMoreRobuxToPurchaseGame"] = [[Necesitas R${shortfallPrice} Robux más para desbloquear el acceso a {gameName}. ¿Quieres comprar más Robux?]], ["Feature.GameDetails.Label.Sessions"] = [[Sesiones]], ["Feature.GameDetails.Label.Votes"] = [[{votes} votos]], ["Feature.GameDetails.Action.InviteFriends"] = [[Invitar amigos]], ["Feature.GameDetails.Action.Report"] = [[Denunciar]], ["Feature.GameDetails.Label.Follow"] = [[Seguir]], ["Feature.GameDetails.Label.Followed"] = [[Seguido]], ["Feature.GameDetails.Heading.Recommended"] = [[Recomendados]], ["Feature.GameDetails.Message.LeaveRobloxForAnotherSite"] = [[Estás a punto de abandonar Roblox para dirigirte a otro sitio que se rige por una política de privacidad separada.]], ["Feature.GameDetails.Message.LeaveRobloxInquiry"] = [[¿Abandonar Roblox?]], ["Feature.GameDetails.Action.Continue"] = [[Continuar]], ["Feature.GameDetails.Label.Group"] = [[Grupo]], ["Feature.GameDetails.Message.BuyMoreRobuxToPurchaseGameV2"] = [[Necesitas {shortfallPrice} Robux más para desbloquear el acceso a {gameName}. ¿Quieres comprar más Robux?]], ["Feature.GameDetails.Message.PurchaseGameV2"] = [[¿Desbloquear accesso a {gameName} por {X} Robux?]], ["Feature.GameFollows.TooltipFollowLimitReached"] = [[Límite alcanzado. Deja de seguir otros juegos para seguir este.]], ["Feature.GameGear.Heading.GearForThisGame"] = [[Equipamiento]], ["Feature.GameLeaderboard.Label.Clans"] = [[Clanes]], ["Feature.GameLeaderboard.Heading.Clans"] = [[Clanes]], ["Feature.GameLeaderboard.Heading.Players"] = [[Jugadores]], ["Feature.GameLeaderboard.Label.NoResults"] = [[Sin resultados]], ["Feature.GamePage.LabelPlayingPhrase"] = [[{playerCount} jugando]], ["Feature.GamePage.ActionSeeAll"] = [[Ver todo]], ["Feature.GamePage.LabelNoSearchResults"] = [[La búsqueda no ha dado resultados.]], ["Feature.GamePage.LabelCancelField"] = [[Cancelar]], ["Feature.GamePage.LabelShowingResultsFor"] = [[Resultados de]], ["Feature.GamePage.LabelSearchInsteadFor"] = [[Buscar, en cambio,]], ["Feature.GamePage.LabelSearchYouMightMean"] = [[Búsqueda alternativa:]], ["Feature.GamePage.Label.Sponsored"] = [[Patrocinado]], ["Feature.GamePage.Message.EndOfList"] = [[¡UF! ¡Has llegado al final!]], ["Feature.GamePage.Action.BackToTop"] = [[Volver arriba]], ["Feature.GamePage.LabelFilterMyFavorites"] = [[Mis favoritos]], ["Feature.GamePage.LabelFilterRecentlyPlayed "] = [[Jugados recientemente]], ["Feature.GamePage.QuickLaunch.ViewDetails"] = [[Pulsa para ver los detalles del juego.]], ["Feature.GamePage.QuickLaunch.LaunchError.RequestFailed"] = [[Error al solicitar la red]], ["Feature.GamePage.QuickLaunch.LaunchError.UnplayableOtherReason"] = [[Error desconocido.]], ["Feature.GamePage.QuickLaunch.LaunchError.GuestProhibited"] = [[Los invitados no pueden unirse a este juego.]], ["Feature.GamePage.QuickLaunch.LaunchError.GameUnapproved"] = [[No se ha aprobado este juego.]], ["Feature.GamePage.QuickLaunch.LaunchError.UniverseRootPlaceIsPrivate"] = [[Este juego es privado.]], ["Feature.GamePage.QuickLaunch.LaunchError.InsufficientPermissionFriendsOnly"] = [[No tienes permiso para jugar a este juego.]], ["Feature.GamePage.QuickLaunch.LaunchError.InsufficientPermissionGroupOnly"] = [[No tienes permiso para jugar a este juego.]], ["Feature.GamePage.QuickLaunch.LaunchError.DeviceRestricted"] = [[No se puede jugar a este juego en tu dispositivo.]], ["Feature.GamePage.QuickLaunch.LaunchError.UnderReview"] = [[Este juego está siendo revisado en este momento.]], ["Feature.GamePage.QuickLaunch.LaunchError.PurchaseRequired"] = [[Se requiere comprar este juego para poderlo jugar.]], ["Feature.GamePage.QuickLaunch.LaunchError.AccountRestricted"] = [[Tu cuenta ha sido restringida.]], ["Feature.GamePage.QuickLaunch.LaunchError.TemporarilyUnavailable"] = [[No se puede jugar a este juego en este momento.]], ["Feature.GamePage.LabelSearchInsteadForPlayersNamed"] = [[Buscar entre los jugadores mencionados]], ["Feature.GamePage.ActionSeeAllGameSort"] = [[Ver todos {gameSort}]], ["Feature.GamePass.Heading.PassesForThisGame"] = [[Pases]], ["Feature.Groups.Message.UnkownError"] = [[Se ha producido un error desconocido.]], ["Feature.Home.HeadingFriends"] = [[Amigos ({friendCount})]], ["Feature.Home.ActionSeeAll"] = [[Ver todo]], ["Feature.Home.Action.ViewMyFeed"] = [[Ver mis noticias]], ["Feature.Home.PeopleList.ChatWith"] = [[Chatea con {username}]], ["Feature.Home.PeopleList.AddNearbyFriendTip"] = [[¡Roblox es más divertido con amigos!]], ["Feature.Home.Robux"] = [[Robux]], ["Feature.Home.Message.NoChallenges"] = [[Sin desafíos]], ["Feature.Home.Message.NoItems"] = [[Sin objetos]], ["Feature.Home.AddFriendHintTitle"] = [[¡Pulsa aquí para añadir amigos!]], ["Feature.PlayerSearchResults.Heading.PlayerResultsFor"] = [[Resultados de jugadores para {startSpan}{keyword}{endSpan}]], ["Feature.PlayerSearchResults.Label.NoMatchesAvailable"] = [[No hay resultados disponibles para «{keyword}».]], ["Feature.PlayerSearchResults.Label.EnterMinCharacters"] = [[Introduce al menos {keywordMinLength} caracteres.]], ["Feature.PlayerSearchResults.Label.UnsafeInput"] = [[Has introducido una cadena no segura. Intenta hacer otra búsqueda.]], ["Feature.PlayerSearchResults.Label.ShowingCountOfResults"] = [[{countStartSpan}{resultsStart}: {resultsInPage} de {countEndSpan}{totalStartSpan}{totalResults}{totalEndSpan}]], ["Feature.PlayerSearchResults.Label.AlsoKnownAsAbbreviation"] = [[alias]], ["Feature.PlayerSearchResults.Label.ThisIsYou"] = [[Este eres tú]], ["Feature.PlayerSearchResults.Label.YouAreFriends"] = [[Sois amigos]], ["Feature.PlayerSearchResults.Label.YouAreFollowing"] = [[Lo sigues]], ["Feature.PlayerSearchResults.Action.AddFriend"] = [[Añadir amigo]], ["Feature.PlayerSearchResults.Action.AcceptRequest"] = [[Aceptar solicitud]], ["Feature.PlayerSearchResults.Action.RequestSent"] = [[Solicitud enviada]], ["Feature.PlayerSearchResults.Action.Chat"] = [[Chat]], ["Feature.PlayerSearchResults.Action.JoinGame"] = [[Unirse al juego]], ["Feature.PlayerSearchResults.Label.Search"] = [[Buscar]], ["Feature.Premium.Label.RobloxPremium450"] = [[Roblox Premium 450]], ["Feature.Premium.Label.RobloxPremium1000"] = [[Roblox Premium 1000]], ["Feature.Premium.Label.RobloxPremium450OneMonth"] = [[Roblox Premium 450 Un Mes]], ["Feature.Premium.Label.RobloxPremium1000OneMonth"] = [[Roblox Premium 1000 Un Mes]], ["Feature.Premium.Label.RobloxPremium2200OneMonth"] = [[Roblox Premium 2200 Un Mes]], ["Feature.Premium.Label.RobloxPremium2200"] = [[Roblox Premium 2200]], ["Feature.PremiumMigration.PopUp.Title"] = [[Builders Club ahora se llama Roblox Premium]], ["Feature.PremiumMigration.PopUp.Body"] = [[De ahora en adelante, los suscriptores recibirán un monto único mensual en lugar de una cantidad diaria. Hoy, te depositaremos {robuxAmount} Robux en tu cuenta para llegar al monto total de este mes. Revisa tu bandeja de entrada para más detalles.]], ["Feature.PremiumMigration.Feature.PremiumMigration.Description.Body"] = [[De ahora en adelante, los suscriptores recibirán un monto único mensual en lugar de una cantidad diaria. Hoy, te depositaremos {robuxAmount} Robux en tu cuenta para llegar al monto total de este mes. Revisa tu bandeja de entrada para más detalles.]], ["Feature.PremiumMigration.Feature.PremiumMigration.Heading.Title"] = [[Builders Club ahora se llama Premium]], ["Feature.PremiumMigration.Description.Body"] = [[De ahora en adelante, recibirás todos los Robux de un mes entero en el día en que renueves tu suscripción. Hoy, te depositaremos la cantidad restante para este mes: R${robuxAmount}. Revisa tu bandeja de entrada de Roblox para más detalles.]], ["Feature.PremiumMigration.Heading.Title"] = [[Builders Club ahora se llama Roblox Premium]], ["Feature.PremiumMigration.Heading.WebviewTitle"] = [[Roblox Premium]], ["Feature.PremiumMigration.Description.BodyV2"] = [[De ahora en adelante, recibirás todos los Robux de un mes entero el día en que renueves tu suscripción. Hoy, te depositaremos la cantidad restante de este mes: {robuxAmount}. Revisa tu bandeja de entrada de Roblox para más detalles.]], ["Feature.PrivateServers.Heading.VipServers"] = [[Servidores VIP]], ["Feature.Profile.Label.About"] = [[Información]], ["Feature.ServerList.Heading.OtherServers"] = [[Otros servidores]], ["Feature.ServerList.Heading.ServersMyFriendsAreIn"] = [[Servidores en los que están mis amigos]], ["Feature.SocialShare.Action.Share"] = [[Compartir]], ["Feature.SupportAStar.Description.Tooltip"] = [[Ingresa un código Star para apoyar a tu Estrella de video favorita. La Estrella recibirá el 5% de la venta y tú te llevarás la cantidad total de los Robux que compraste.]], ["Feature.SupportAStar.Label.TapHere"] = [[Toca aquí]], ["Feature.SupportAStar.Label.TapHere2"] = [[para añadir un código Star]], ["Feature.SupportAStar.Heading.SupportAStar"] = [[Apoyar a una Estrella]], ["Feature.SupportAStar.Label.InputFieldPlaceholder"] = [["Ingresa el código Star"]], ["Feature.SupportAStar.Error.InvalidCode"] = [[El código no válido.]], ["Feature.SupportAStar.Label.Submit"] = [[Añadir]], ["Feature.SupportAStar.Label.Supporting"] = [[Apoyas a]], ["Feature.SupportAStar.Label.Remove"] = [[Eliminar]], ["Feature.Toast.NetworkingError.UnableToConnect"] = [[No se puede conectar. Inténtalo de nuevo más tarde.]], ["Feature.Toast.NetworkingError.SomethingIsWrong"] = [[Algo ha ido mal. Inténtalo de nuevo.]], ["Feature.Toast.NetworkingError.Unauthorized"] = [[Ya no estás conectado. Inicia sesión de nuevo.]], ["Feature.Toast.NetworkingError.Forbidden"] = [[Permiso insuficiente.]], ["Feature.Toast.NetworkingError.NotFound"] = [[Contenido no encontrado.]], ["Feature.Toast.NetworkingError.Timeout"] = [[Se ha agotado el tiempo. Inténtalo de nuevo.]], ["Feature.Toast.NetworkingError.TooManyRequests"] = [[El servidor está ocupado. Inténtalo de nuevo más tarde.]], ["Feature.Toast.NetworkingError.ServiceUnavailable"] = [[Servicio no disponible. Inténtalo de nuevo más tarde.]], ["Feature.Toast.Heading.PurchaseMessage.Success"] = [[Desbloqueado]], ["Feature.Toast.Message.PurchaseMessage.Success"] = [[Has desbloqueado el acceso a {gameName} por R${price}.]], ["Feature.Toast.VoteError.PlayGame"] = [[Debes probar el juego antes de poder valorarlo.]], ["Feature.Toast.VoteError.FloodCheckThresholdMet"] = [[Estás votando demasiado rápido.]], ["Feature.Toast.VoteError.AssetNotVoteable"] = [[No se puede votar este juego.]], ["Feature.Toast.VoteError.Default"] = [[Acción no disponible.]], ["Feature.Toast.Message.PurchaseMessage.SuccessV3"] = [[Has desbloqueado el acceso a {gameName} por {price} Robux.]], ["Game.Launch.IDS_ROBLOX_INSTALLED"] = [[¡Roblox SE HA INSTALADO CORRECTAMENTE!]], ["Game.Launch.IDS_ROBLOX_TOPLAY"] = [[¡Haz clic en el botón Jugar en cualquier juego para unirte a la acción!]], ["Game.Launch.IDS_STUDIO_SUCCESS1"] = [[¡Roblox STUDIO SE HA INSTALADO CORRECTAMENTE!]], ["Game.Launch.IDS_STUDIO_SUCCESS2"] = [[¡Haz clic en Lanzar Studio para crear tu nuevo juego!]], ["Game.Launch.IDS_ROBLOX_DOWNLOAD"] = [[Descargar e instalar Roblox]], ["Game.Launch.IDS_CHECKING_FILE"] = [[Realizando verificación de archivo...]], ["Game.Launch.IDS_FILE_CHECKED"] = [[Verificación de archivo finalizada]], ["Game.Launch.IDS_ROBLOX_STARTING"] = [[Inicializando %s...]], ["Game.Launch.IDS_ROBLOX_UPTODATE"] = [[%s está actualizado]], ["Game.Launch.IDS_ROBLOX_UPGRADING"] = [[Actualizando %s...]], ["Game.Launch.IDS_ROBLOX_INSTALLING"] = [[Instalando %s...]], ["Game.Launch.IDS_ROBLOX_CONNECTING"] = [[Conectando a %s...]], ["Game.Launch.IDS_BOOTS_ASK_DOWNLOAD"] = [[¿Descargar la versión más reciente del programa de arranque?]], ["Game.Launch.IDS_BOOTS_GET_LATEST"] = [[Obteniendo la versión más reciente de %s...]], ["Game.Launch.IDS_PLEASE_WAIT"] = [[Espera...]], ["Game.Launch.IDS_BOOTS_SHUTDOWN"] = [[Cerrando %s]], ["Game.Launch.IDS_ROBLOX_UNINSTALLING"] = [[Desinstalando %s...]], ["Game.Launch.IDS_ROBLOX_UNINSTALLED"] = [[%s ha sido desinstalado]], ["Game.Launch.IDS_BOOTS_CONFIGURING"] = [[Configurando %s...]], ["InGame.InspectMenu.Label.NoResellers"] = [[No hay revendedores]], ["Search.GlobalSearch.Example.SearchCatalog"] = [[Buscar en catálogo]], ["Search.GlobalSearch.Example.SearchGames"] = [[Buscar]], }
object_mobile_kole_nym_ambush = object_mobile_shared_kole_nym_ambush:new { } ObjectTemplates:addTemplate(object_mobile_kole_nym_ambush, "object/mobile/kole_nym_ambush.iff")
test = require 'u-test' common = require 'common' function GetAchievementsForTitleIdCpp_Handler() print("GetAchievementsForTitleIdCpp_Handler") AchievementsServiceGetAchievementsForTitleId() end function OnAchievementsServiceGetAchievementsForTitleId() hr, hasNext = AchievementsResultHasNextCpp() print("hasNext " .. hr) print("hr " .. hr) if hasNext ~= 0 then AchievementsResultGetNextCpp() else test.stopTest(); end end function OnAchievementsResultGetNextCpp() print("OnAchievementsResultGetNextCpp") OnAchievementsServiceGetAchievementsForTitleId() end test.TestGetAchievementsForTitleCpp = function() common.init(GetAchievementsForTitleIdCpp_Handler) end
local image = require 'dmlab.system.image' local asserts = require 'testing.asserts' local test_runner = require 'testing.test_runner' local tensor = require 'dmlab.system.tensor' local helpers = require 'common.helpers' local FILE_NAME = ... local tests = {} function tests:loadImageRGB() local image = image.load(helpers.dirname(FILE_NAME) .. "data/testRGB.png") local expected = tensor.ByteTensor(32, 32 * 3, 3) expected:narrow(2, 1, 32):select(3, 1):fill(255) expected:narrow(2, 33, 32):select(3, 2):fill(255) expected:narrow(2, 65, 32):select(3, 3):fill(255) assert(expected == image) end function tests:loadImageRGBA() local image = image.load(helpers.dirname(FILE_NAME) .. "data/testRGBA.png") local expected = tensor.ByteTensor(32 * 2, 32 * 3, 4) expected:narrow(2, 1, 32):select(3, 1):fill(255) expected:narrow(2, 33, 32):select(3, 2):fill(255) expected:narrow(2, 65, 32):select(3, 3):fill(255) expected:narrow(1, 1, 32):select(3, 4):fill(255) expected:narrow(1, 33, 32):select(3, 4):fill(127) assert(expected == image) end function tests:loadImageL() local image = image.load(helpers.dirname(FILE_NAME) .. "data/testL.png") local expected = tensor.ByteTensor(32, 32, 1) expected:applyIndexed(function (val, index) return index[1] + index[2] - 2 end) assert(expected == image) end return test_runner.run(tests)
--- -- @module ProjectileQueue -- -- ------------------------------------------------ -- Required Modules -- ------------------------------------------------ local Class = require( 'lib.Middleclass' ) local Projectile = require( 'src.items.weapons.Projectile' ) local ProjectilePath = require( 'src.items.weapons.ProjectilePath' ) local SoundManager = require( 'src.SoundManager' ) -- ------------------------------------------------ -- Module -- ------------------------------------------------ local ThrownProjectileQueue = Class( 'ThrownProjectileQueue' ) -- ------------------------------------------------ -- Constants -- ------------------------------------------------ local WEAPON_TYPES = require( 'src.constants.WEAPON_TYPES' ) -- ------------------------------------------------ -- Public Methods -- ------------------------------------------------ --- -- Creates a new ThrownProjectileQueue. -- -- @tparam Character Character The character who started the attack. -- @tparam number tx The target's x-coordinate. -- @tparam number ty The target's y-coordinate. -- @tparam number th The target's height. -- function ThrownProjectileQueue:initialize( character, tx, ty, th ) self.character = character self.weapon = character:getWeapon() assert( self.weapon:getSubType() == WEAPON_TYPES.THROWN, 'Expected a weapon of type Thrown.' ) self.projectiles = {} self.index = 0 -- Thrown weapon is removed from the inventory. local success = character:getEquipment():searchAndRemoveItem( self.weapon ) assert( success, "Couldn't remove the item from the character's equipment." ) local tiles = ProjectilePath.calculate( character, tx, ty, th, self.weapon ) local projectile = Projectile( character, self.weapon, tiles ) self.index = self.index + 1 self.projectiles[self.index] = projectile -- Play sound. SoundManager.play( self.weapon:getSound() ) end --- -- Spawns a new projectile after a certain delay defined by the weapon's -- rate of fire. -- function ThrownProjectileQueue:update() return end --- -- Removes a projectile from the table of active projectiles. -- @tparam number id The id of the projectile to remove. -- function ThrownProjectileQueue:removeProjectile( id ) self.projectiles[id] = nil end -- ------------------------------------------------ -- Getters -- ------------------------------------------------ --- -- Gets the character this attack was performed by. -- @treturn Character The character. -- function ThrownProjectileQueue:getCharacter() return self.character end --- -- Gets the table of projectiles which are active on the map. -- @treturn table A table containing the projectiles. -- function ThrownProjectileQueue:getProjectiles() return self.projectiles end --- -- Checks if this ThrownProjectileQueue is done with all the projectiles. -- @treturn boolean True if it is done. -- function ThrownProjectileQueue:isDone() local count = 0 for _, _ in pairs( self.projectiles ) do count = count + 1 end return count == 0 end return ThrownProjectileQueue
-- construct reflections metatable reflection_metatable_for_table = { __index = function(table, key) return table.source[key] end, __newindex = function(table, key, value) if( type(value) == "table") then -- expression table[key].assign = value.value table[key].value = value.value else -- raw value table[key].assign = value table[key].value = value end table[key].modified = true end } reflection_metatable_for_keys = { __tostring = function(this) return this.value end, __add = function(this, that) if type(that) == "table" then this, that = that, this end if(this.add == nil) then this.add = 0 end this.add = this.add + that this.value = this.value + that return this end, __sub = function(this, that) if type(that) == "table" then this, that = that, this end if(this.sub == nil) then this.sub = 0 end this.sub = this.sub + that this.value = this.value - that return this end, __mul = function(this, that) if type(that) == "table" then this, that = that, this end if(this.mul == nil) then this.mul = 1 end this.mul = this.mul * that this.value = this.value * that return this end, __div = function(this, that) if type(that) == "table" then this, that = that, this end if(this.div == nil) then this.div = 1 end this.div = this.div * that this.value = this.value / that return this end, __concat = function(this, that) if type(that) == "table" then this, that = that, this end if(this.concat == nil) then this.concat = "" end this.concat = this.concat .. that this.value = this.value .. that return this end } reflection_metatable_for_varible = { __tostring = function(this) return this.source.value end, __add = function(this, that) if type(that) == "table" then this, that = that, this end if(this.source.add == nil) then this.source.add = 0 end this.source.add = this.source.add + that this.source.value = this.source.value + that return this end, __sub = function(this, that) if type(that) == "table" then this, that = that, this end if(this.source.sub == nil) then this.source.sub = 0 end this.source.sub = this.source.sub + that this.source.value = this.source.value - that return this end, __mul = function(this, that) if type(that) == "table" then this, that = that, this end if(this.source.mul == nil) then this.source.mul = 1 end this.source.mul = this.source.mul * that this.source.value = this.source.value * that return this end, __div = function(this, that) if type(that) == "table" then this, that = that, this end if(this.source.div == nil) then this.source.div = 1 end this.source.div = this.source.div * that this.source.value = this.source.value / that return this end, __concat = function(this, that) if type(that) == "table" then this, that = that, this end if(this.source.concat == nil) then this.source.concat = "" end this.source.concat = this.source.concat .. that this.source.value = this.source.value .. that return this end } -- reflection setter function reset_table_values(table) for k,v in pairs(table.source) do table.source[k].value = table.source[k].init_value table.source[k].add = nil table.source[k].sub = nil table.source[k].mul = nil table.source[k].div = nil table.source[k].assign = nil table.source[k].concat = nil table.source[k].modified = false end end function reset_variable_values(variable) variable.source.value = variable.source.init_value variable.source.add = nil variable.source.sub = nil variable.source.mul = nil variable.source.div = nil variable.source.assign = nil variable.source.concat = nil variable.source.modified = false end function set_reflection_metatable_for_table(table) for k,v in pairs(table.source) do table.source[k] = setmetatable({ name = k, modified = false, init_value = v, value = v}, reflection_metatable_for_keys) end setmetatable(table, reflection_metatable_for_table) end function set_reflection_metatable_for_varible(varible) setmetatable(varible.source,reflection_metatable_for_keys) setmetatable(varible, reflection_metatable_for_varible) end
local NoobTacoUI, E, L, V, P, G = unpack(select(2, ...)) function NoobTacoUI:SetupLayout() -- CUSTOM TEXTS -- Player Unit Frame if not E.db.unitframe.units.player.customTexts then E.db.unitframe.units.player.customTexts = {} end if E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"] == nil then E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"] = {} end if E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"] == nil then E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"] = {} end if E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"] == nil then E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"] = {} end -- Focus Unit Frame if not E.db.unitframe.units.focus.customTexts then E.db.unitframe.units.focus.customTexts = {} end if E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"] == nil then E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"] = {} end if E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"] == nil then E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"] = {} end if E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"] == nil then E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"] = {} end if E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"] == nil then E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"] = {} end -- -- Pet Unit Frame if not E.db.unitframe.units.pet.customTexts then E.db.unitframe.units.pet.customTexts = {} end if E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"] == nil then E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"] = {} end -- -- Fix Movers ?? if E.db["movers"] == nil then E.db["movers"] = {} end -- Target Unit Frame if not E.db.unitframe.units.target.customTexts then E.db.unitframe.units.target.customTexts = {} end if E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"] == nil then E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"] = {} end if E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"] == nil then E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"] = {} end if E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"] == nil then E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"] = {} end if E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"] == nil then E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"] = {} end -- Target of Target Unit Frame if not E.db.unitframe.units.targettarget.customTexts then E.db.unitframe.units.targettarget.customTexts = {} end if E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"] == nil then E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"] = {} end -- Extra Options not Exported by base profile E.db["unitframe"]["units"]["player"]["infoPanel"]["enable"] = false E.db["unitframe"]["units"]["target"]["infoPanel"]["enable"] = false E.db["unitframe"]["units"]["target"]["orientation"] = "RIGHT" -- UNITFRAME ---------------------------------------------------------------- E.db["unitframe"]["fontSize"] = 13 E.db["unitframe"]["units"]["player"]["debuffs"]["anchorPoint"] = "TOPRIGHT" E.db["unitframe"]["units"]["player"]["debuffs"]["sizeOverride"] = 40 E.db["unitframe"]["units"]["player"]["debuffs"]["perrow"] = 6 E.db["unitframe"]["units"]["player"]["debuffs"]["desaturate"] = false E.db["unitframe"]["units"]["player"]["debuffs"]["yOffset"] = 20 E.db["unitframe"]["units"]["player"]["portrait"]["enable"] = true E.db["unitframe"]["units"]["player"]["portrait"]["camDistanceScale"] = 1.04 E.db["unitframe"]["units"]["player"]["portrait"]["width"] = 55 E.db["unitframe"]["units"]["player"]["smartAuraPosition"] = "BUFFS_ON_DEBUFFS" E.db["unitframe"]["units"]["player"]["health"]["xOffset"] = -2 E.db["unitframe"]["units"]["player"]["health"]["text_format"] = "" E.db["unitframe"]["units"]["player"]["health"]["position"] = "RIGHT" E.db["unitframe"]["units"]["player"]["CombatIcon"]["xOffset"] = -70 E.db["unitframe"]["units"]["player"]["CombatIcon"]["size"] = 60 E.db["unitframe"]["units"]["player"]["CombatIcon"]["yOffset"] = 19 E.db["unitframe"]["units"]["player"]["aurabar"]["enable"] = true E.db["unitframe"]["units"]["player"]["RestIcon"]["size"] = 28 E.db["unitframe"]["units"]["player"]["RestIcon"]["texture"] = "Resting0" E.db["unitframe"]["units"]["player"]["RestIcon"]["xOffset"] = 4 E.db["unitframe"]["units"]["player"]["RestIcon"]["yOffset"] = 2 E.db["unitframe"]["units"]["player"]["classbar"]["autoHide"] = true E.db["unitframe"]["units"]["player"]["power"]["attachTextTo"] = "Power" E.db["unitframe"]["units"]["player"]["power"]["height"] = 20 E.db["unitframe"]["units"]["player"]["power"]["text_format"] = "" E.db["unitframe"]["units"]["player"]["power"]["xOffset"] = -208 E.db["unitframe"]["units"]["player"]["power"]["EnergyManaRegen"] = true E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["xOffset"] = 5 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["text_format"] = "[name:medium] [difficultycolor] [level] [shortclassification]" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["yOffset"] = 40 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["justifyH"] = "RIGHT" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["enable"] = true E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerName"]["size"] = 13 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["attachTextTo"] = "Health" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["xOffset"] = -5 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["yOffset"] = 0 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["justifyH"] = "RIGHT" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["enable"] = true E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerHealth"]["size"] = 20 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["attachTextTo"] = "Power" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["xOffset"] = -5 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["text_format"] = "[power:current]" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["yOffset"] = 0 E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["justifyH"] = "RIGHT" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["enable"] = true E.db["unitframe"]["units"]["player"]["customTexts"]["PlayerPower"]["size"] = 13 E.db["unitframe"]["units"]["player"]["width"] = 200 E.db["unitframe"]["units"]["focus"]["aurabar"]["detachedWidth"] = 270 E.db["unitframe"]["units"]["focus"]["aurabar"]["enable"] = true E.db["unitframe"]["units"]["focus"]["aurabar"]["maxBars"] = 6 E.db["unitframe"]["units"]["focus"]["buffs"]["attachTo"] = "DEBUFFS" E.db["unitframe"]["units"]["focus"]["buffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["focus"]["buffs"]["enable"] = true E.db["unitframe"]["units"]["focus"]["buffs"]["maxDuration"] = 0 E.db["unitframe"]["units"]["focus"]["buffs"]["perrow"] = 8 E.db["unitframe"]["units"]["focus"]["buffs"]["priority"] = "Blacklist,Personal,nonPersonal" E.db["unitframe"]["units"]["focus"]["buffs"]["yOffset"] = 16 E.db["unitframe"]["units"]["focus"]["castbar"]["height"] = 30 E.db["unitframe"]["units"]["focus"]["castbar"]["insideInfoPanel"] = false E.db["unitframe"]["units"]["focus"]["castbar"]["overlayOnFrame"] = "Power" E.db["unitframe"]["units"]["focus"]["castbar"]["width"] = 200 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["attachTextTo"] = "Health" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["enable"] = true E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["size"] = 20 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["xOffset"] = 5 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetHealth"]["yOffset"] = 0 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["attachTextTo"] = "Health" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["enable"] = true E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["fontOutline"] = "OUTLINE" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["justifyH"] = "CENTER" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["size"] = 20 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["text_format"] = "[difficultycolor][smartlevel]" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["xOffset"] = 125 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetLevel"]["yOffset"] = -35 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["enable"] = true E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["size"] = 13 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["text_format"] = "[name:medium] [shortclassification]" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["xOffset"] = 0 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetName"]["yOffset"] = 40 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["attachTextTo"] = "Power" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["enable"] = true E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["size"] = 13 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["text_format"] = "[power:current]" E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["xOffset"] = 5 E.db["unitframe"]["units"]["focus"]["customTexts"]["TargetPower"]["yOffset"] = 0 E.db["unitframe"]["units"]["focus"]["debuffs"]["anchorPoint"] = "TOPLEFT" E.db["unitframe"]["units"]["focus"]["debuffs"]["attachTo"] = "HEALTH" E.db["unitframe"]["units"]["focus"]["debuffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["focus"]["debuffs"]["maxDuration"] = 0 E.db["unitframe"]["units"]["focus"]["debuffs"]["numrows"] = 2 E.db["unitframe"]["units"]["focus"]["debuffs"]["perrow"] = 8 E.db["unitframe"]["units"]["focus"]["debuffs"]["priority"] = "Blacklist,Personal,RaidDebuffs,CCDebuffs,Friendly:Dispellable" E.db["unitframe"]["units"]["focus"]["debuffs"]["yOffset"] = 30 E.db["unitframe"]["units"]["focus"]["disableMouseoverGlow"] = true E.db["unitframe"]["units"]["focus"]["disableTargetGlow"] = true E.db["unitframe"]["units"]["focus"]["healPrediction"]["absorbStyle"] = "NORMAL" E.db["unitframe"]["units"]["focus"]["health"]["attachTextTo"] = "InfoPanel" E.db["unitframe"]["units"]["focus"]["height"] = 60 E.db["unitframe"]["units"]["focus"]["infoPanel"]["height"] = 20 E.db["unitframe"]["units"]["focus"]["name"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["focus"]["name"]["position"] = "BOTTOM" E.db["unitframe"]["units"]["focus"]["name"]["text_format"] = "" E.db["unitframe"]["units"]["focus"]["name"]["xOffset"] = 5 E.db["unitframe"]["units"]["focus"]["name"]["yOffset"] = -85 E.db["unitframe"]["units"]["focus"]["orientation"] = "RIGHT" E.db["unitframe"]["units"]["focus"]["portrait"]["camDistanceScale"] = 1.04 E.db["unitframe"]["units"]["focus"]["portrait"]["enable"] = true E.db["unitframe"]["units"]["focus"]["portrait"]["width"] = 55 E.db["unitframe"]["units"]["focus"]["power"]["attachTextTo"] = "Power" E.db["unitframe"]["units"]["focus"]["power"]["height"] = 20 E.db["unitframe"]["units"]["focus"]["power"]["xOffset"] = -208 E.db["unitframe"]["units"]["focus"]["width"] = 200 -- Player castbar if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then -- Classic E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 35 E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 410 E.db["unitframe"]["units"]["player"]["castbar"]["strataAndLevel"]["frameStrata"] = "HIGH" E.db["unitframe"]["units"]["player"]["castbar"]["strataAndLevel"]["useCustomStrata"] = true end if WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then -- TBCc E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 35 E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 399 end if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then -- Retail E.db["unitframe"]["units"]["player"]["castbar"]["height"] = 35 E.db["unitframe"]["units"]["player"]["castbar"]["width"] = 395 end E.db["unitframe"]["units"]["player"]["name"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["player"]["name"]["xOffset"] = 5 E.db["unitframe"]["units"]["player"]["name"]["position"] = "BOTTOM" E.db["unitframe"]["units"]["player"]["height"] = 60 E.db["unitframe"]["units"]["player"]["buffs"]["anchorPoint"] = "TOPRIGHT" E.db["unitframe"]["units"]["player"]["pvpIcon"]["anchorPoint"] = "TOPLEFT" E.db["unitframe"]["units"]["player"]["pvpIcon"]["enable"] = true E.db["unitframe"]["units"]["player"]["pvpIcon"]["scale"] = 1.5 E.db["unitframe"]["units"]["player"]["pvpIcon"]["xOffset"] = -75 E.db["unitframe"]["units"]["player"]["pvpIcon"]["yOffset"] = 27 E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["enable"] = true E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["text_format"] = "" E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["yOffset"] = 0 E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["font"] = "2002" E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["fontOutline"] = "THICKOUTLINE" E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["xOffset"] = 131 E.db["unitframe"]["units"]["pet"]["customTexts"]["Pet Health"]["size"] = 24 E.db["unitframe"]["units"]["pet"]["width"] = 200 E.db["unitframe"]["units"]["pet"]["infoPanel"]["height"] = 14 E.db["unitframe"]["units"]["pet"]["castbar"]["height"] = 30 E.db["unitframe"]["units"]["pet"]["castbar"]["iconSize"] = 32 E.db["unitframe"]["units"]["pet"]["castbar"]["width"] = 200 E.db["unitframe"]["units"]["pet"]["castbar"]["overlayOnFrame"] = "Power" E.db["unitframe"]["units"]["pet"]["disableTargetGlow"] = false E.db["unitframe"]["units"]["pet"]["height"] = 30 E.db["unitframe"]["units"]["pet"]["buffs"]["enable"] = true E.db["unitframe"]["units"]["pet"]["buffs"]["yOffset"] = -22 E.db["unitframe"]["units"]["pet"]["name"]["xOffset"] = 2 E.db["unitframe"]["units"]["pet"]["name"]["position"] = "LEFT" -- PET - Use happiness icon for classic only if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then -- Classic E.db["unitframe"]["units"]["pet"]["name"]["text_format"] = "[happiness:discord] [name:medium] - [level]" end if WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC then -- TBCc E.db["unitframe"]["units"]["pet"]["name"]["text_format"] = "[happiness:discord] [name:medium] - [level]" end if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then -- Retail E.db["unitframe"]["units"]["pet"]["name"]["text_format"] = "[name:medium] - [level]" end E.db["unitframe"]["units"]["party"]["horizontalSpacing"] = 2 E.db["unitframe"]["units"]["party"]["debuffs"]["numrows"] = 2 E.db["unitframe"]["units"]["party"]["debuffs"]["sizeOverride"] = 25 E.db["unitframe"]["units"]["party"]["debuffs"]["attachTo"] = "HEALTH" E.db["unitframe"]["units"]["party"]["debuffs"]["perrow"] = 3 E.db["unitframe"]["units"]["party"]["debuffs"]["xOffset"] = 24 E.db["unitframe"]["units"]["party"]["debuffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["party"]["debuffs"]["anchorPoint"] = "CENTER" E.db["unitframe"]["units"]["party"]["debuffs"]["yOffset"] = 10 E.db["unitframe"]["units"]["party"]["rdebuffs"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["party"]["raidRoleIcons"]["yOffset"] = -2 E.db["unitframe"]["units"]["party"]["resurrectIcon"]["size"] = 40 E.db["unitframe"]["units"]["party"]["buffIndicator"]["enable"] = true E.db["unitframe"]["units"]["party"]["buffIndicator"]["size"] = 15 E.db["unitframe"]["units"]["party"]["orientation"] = "MIDDLE" E.db["unitframe"]["units"]["party"]["readycheckIcon"]["yOffset"] = 0 E.db["unitframe"]["units"]["party"]["readycheckIcon"]["size"] = 30 E.db["unitframe"]["units"]["party"]["readycheckIcon"]["position"] = "TOPRIGHT" E.db["unitframe"]["units"]["party"]["power"]["height"] = 10 E.db["unitframe"]["units"]["party"]["power"]["text_format"] = "" E.db["unitframe"]["units"]["party"]["healPrediction"]["enable"] = true E.db["unitframe"]["units"]["party"]["name"]["text_format"] = "[name:medium] [difficultycolor][smartlevel]" E.db["unitframe"]["units"]["party"]["name"]["yOffset"] = 4 E.db["unitframe"]["units"]["party"]["health"]["xOffset"] = 0 E.db["unitframe"]["units"]["party"]["health"]["yOffset"] = -10 E.db["unitframe"]["units"]["party"]["health"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["party"]["health"]["position"] = "CENTER" E.db["unitframe"]["units"]["party"]["width"] = 100 E.db["unitframe"]["units"]["party"]["height"] = 60 E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["enable"] = true E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["raid40"]["growthDirection"] = "RIGHT_UP" E.db["unitframe"]["units"]["raid40"]["width"] = 100 E.db["unitframe"]["units"]["raid40"]["height"] = 32 E.db["unitframe"]["units"]["raid40"]["buffIndicator"]["enable"] = true E.db["unitframe"]["units"]["raid40"]["buffIndicator"]["size"] = 10 E.db["unitframe"]["units"]["target"]["debuffs"]["numrows"] = 2 E.db["unitframe"]["units"]["target"]["debuffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["target"]["debuffs"]["attachTo"] = "HEALTH" E.db["unitframe"]["units"]["target"]["debuffs"]["maxDuration"] = 0 E.db["unitframe"]["units"]["target"]["debuffs"]["anchorPoint"] = "TOPLEFT" E.db["unitframe"]["units"]["target"]["debuffs"]["yOffset"] = 30 E.db["unitframe"]["units"]["target"]["portrait"]["enable"] = true E.db["unitframe"]["units"]["target"]["portrait"]["camDistanceScale"] = 1.04 E.db["unitframe"]["units"]["target"]["portrait"]["width"] = 55 E.db["unitframe"]["units"]["target"]["health"]["text_format"] = "" E.db["unitframe"]["units"]["target"]["power"]["attachTextTo"] = "Power" E.db["unitframe"]["units"]["target"]["power"]["height"] = 20 E.db["unitframe"]["units"]["target"]["power"]["text_format"] = "" E.db["unitframe"]["units"]["target"]["power"]["xOffset"] = -208 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["xOffset"] = 0 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["text_format"] = "[name:medium] [shortclassification]" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["yOffset"] = 40 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["enable"] = true E.db["unitframe"]["units"]["target"]["customTexts"]["TargetName"]["size"] = 13 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["attachTextTo"] = "Health" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["xOffset"] = 5 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["yOffset"] = 0 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["enable"] = true E.db["unitframe"]["units"]["target"]["customTexts"]["TargetHealth"]["size"] = 20 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["attachTextTo"] = "Health" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["xOffset"] = 125 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["text_format"] = "[difficultycolor][smartlevel]" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["yOffset"] = -35 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["justifyH"] = "CENTER" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["fontOutline"] = "OUTLINE" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["enable"] = true E.db["unitframe"]["units"]["target"]["customTexts"]["TargetLevel"]["size"] = 20 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["attachTextTo"] = "Power" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["xOffset"] = 5 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["text_format"] = "[power:current]" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["yOffset"] = 0 E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["justifyH"] = "LEFT" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["enable"] = true E.db["unitframe"]["units"]["target"]["customTexts"]["TargetPower"]["size"] = 13 E.db["unitframe"]["units"]["target"]["pvpIcon"]["anchorPoint"] = "BOTTOMRIGHT" E.db["unitframe"]["units"]["target"]["pvpIcon"]["enable"] = true E.db["unitframe"]["units"]["target"]["pvpIcon"]["scale"] = 1.3 E.db["unitframe"]["units"]["target"]["pvpIcon"]["xOffset"] = 77 E.db["unitframe"]["units"]["target"]["pvpIcon"]["yOffset"] = 4 E.db["unitframe"]["units"]["target"]["width"] = 200 E.db["unitframe"]["units"]["target"]["fader"]["hover"] = true E.db["unitframe"]["units"]["target"]["fader"]["combat"] = true E.db["unitframe"]["units"]["target"]["fader"]["power"] = true E.db["unitframe"]["units"]["target"]["fader"]["enable"] = false E.db["unitframe"]["units"]["target"]["fader"]["range"] = false E.db["unitframe"]["units"]["target"]["fader"]["playertarget"] = true E.db["unitframe"]["units"]["target"]["fader"]["vehicle"] = true E.db["unitframe"]["units"]["target"]["fader"]["casting"] = true E.db["unitframe"]["units"]["target"]["fader"]["health"] = true E.db["unitframe"]["units"]["target"]["castbar"]["height"] = 30 E.db["unitframe"]["units"]["target"]["castbar"]["width"] = 200 E.db["unitframe"]["units"]["target"]["castbar"]["overlayOnFrame"] = "Power" E.db["unitframe"]["units"]["target"]["height"] = 60 E.db["unitframe"]["units"]["target"]["buffs"]["anchorPoint"] = "BOTTOMLEFT" E.db["unitframe"]["units"]["target"]["buffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["target"]["buffs"]["attachTo"] = "DEBUFFS" E.db["unitframe"]["units"]["target"]["buffs"]["yOffset"] = 16 E.db["unitframe"]["units"]["target"]["name"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["target"]["name"]["position"] = "BOTTOM" E.db["unitframe"]["units"]["target"]["name"]["xOffset"] = 5 E.db["unitframe"]["units"]["target"]["name"]["text_format"] = "" E.db["unitframe"]["units"]["target"]["name"]["yOffset"] = -85 E.db["unitframe"]["smartRaidFilter"] = false E.db["unitframe"]["units"]["raid40"]["enable"] = true E.db["unitframe"]["units"]["party"]["visibility"] = "[@raid6,exists][nogroup] hide;show" E.db["unitframe"]["units"]["raid"]["visibility"] = "[@raid6,noexists][@raid26,exists] hide;show" E.db["unitframe"]["units"]["raid40"]["visibility"] = "[@raid26,noexists] hide;show" -- Basic Raid Frame setup E.db["unitframe"]["units"]["raid"]["debuffs"]["anchorPoint"] = "CENTER" E.db["unitframe"]["units"]["raid"]["debuffs"]["sizeOverride"] = 25 E.db["unitframe"]["units"]["raid"]["debuffs"]["enable"] = true E.db["unitframe"]["units"]["raid"]["debuffs"]["attachTo"] = "HEALTH" E.db["unitframe"]["units"]["raid"]["debuffs"]["xOffset"] = 24 E.db["unitframe"]["units"]["raid"]["debuffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["raid"]["debuffs"]["numrows"] = 2 E.db["unitframe"]["units"]["raid"]["debuffs"]["yOffset"] = 10 E.db["unitframe"]["units"]["raid"]["rdebuffs"]["font"] = "Montserrat-Bold" -- E.db["unitframe"]["units"]["raid"]["rdebuffs"]["size"] = 30 E.db["unitframe"]["units"]["raid"]["rdebuffs"]["xOffset"] = 0 E.db["unitframe"]["units"]["raid"]["rdebuffs"]["yOffset"] = 5 E.db["unitframe"]["units"]["raid"]["growthDirection"] = "RIGHT_UP" E.db["unitframe"]["units"]["raid"]["resurrectIcon"]["size"] = 40 E.db["unitframe"]["units"]["raid"]["width"] = 100 E.db["unitframe"]["units"]["raid"]["infoPanel"]["enable"] = false E.db["unitframe"]["units"]["raid"]["numGroups"] = 6 E.db["unitframe"]["units"]["raid"]["name"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["raid"]["name"]["position"] = "CENTER" E.db["unitframe"]["units"]["raid"]["name"]["text_format"] = "[name:veryshort] [difficultycolor][smartlevel]" E.db["unitframe"]["units"]["raid"]["name"]["xOffset"] = 0 E.db["unitframe"]["units"]["raid"]["name"]["yOffset"] = 10 E.db["unitframe"]["units"]["raid"]["height"] = 50 E.db["unitframe"]["units"]["raid"]["verticalSpacing"] = -1 E.db["unitframe"]["units"]["raid"]["health"]["xOffset"] = 0 E.db["unitframe"]["units"]["raid"]["health"]["yOffset"] = -10 E.db["unitframe"]["units"]["raid"]["health"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["raid"]["health"]["position"] = "CENTER" E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["yOffset"] = 0 E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["size"] = 30 E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["position"] = "TOPRIGHT" E.db["unitframe"]["units"]["raid"]["power"]["height"] = 10 E.db["unitframe"]["units"]["raid"]["power"]["position"] = "RIGHT" E.db["unitframe"]["units"]["raid"]["power"]["yOffset"] = 0 E.db["unitframe"]["units"]["raid"]["raidRoleIcons"]["yOffset"] = -2 E.db["unitframe"]["units"]["raid"]["buffs"]["perrow"] = 8 E.db["unitframe"]["units"]["raid"]["buffIndicator"]["enable"] = true E.db["unitframe"]["units"]["raid"]["buffIndicator"]["size"] = 10 E.db["unitframe"]["units"]["targettarget"]["portrait"]["overlay"] = true E.db["unitframe"]["units"]["targettarget"]["portrait"]["xOffset"] = 0.05 E.db["unitframe"]["units"]["targettarget"]["portrait"]["camDistanceScale"] = 0.85 E.db["unitframe"]["units"]["targettarget"]["portrait"]["width"] = 35 E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["attachTextTo"] = "Health" E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["xOffset"] = 0 E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["text_format"] = "[name:medium]" E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["yOffset"] = 0 E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["justifyH"] = "CENTER" E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["fontOutline"] = "NONE" E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["enable"] = false E.db["unitframe"]["units"]["targettarget"]["customTexts"]["TargetTargetName"]["size"] = 14 E.db["unitframe"]["units"]["targettarget"]["width"] = 200 E.db["unitframe"]["units"]["targettarget"]["name"]["text_format"] = "[name:medium] [difficultycolor][smartlevel] [shortclassification]" E.db["unitframe"]["units"]["targettarget"]["orientation"] = "LEFT" E.db["unitframe"]["units"]["targettarget"]["height"] = 30 E.db["unitframe"]["font"] = "Montserrat-Bold" E.db["unitframe"]["colors"]["auraBarBuff"]["r"] = 0.96 E.db["unitframe"]["colors"]["auraBarBuff"]["g"] = 0.55 E.db["unitframe"]["colors"]["auraBarBuff"]["b"] = 0.73 E.db["unitframe"]["colors"]["healthclass"] = true E.db["unitframe"]["colors"]["castClassColor"] = true E.db["unitframe"]["colors"]["borderColor"]["b"] = 0.32156862745098 E.db["unitframe"]["colors"]["borderColor"]["g"] = 0.25882352941176 E.db["unitframe"]["colors"]["borderColor"]["r"] = 0.23137254901961 E.db["unitframe"]["colors"]["castNoInterrupt"]["b"] = 0.4156862745098 E.db["unitframe"]["colors"]["castNoInterrupt"]["g"] = 0.38039215686275 E.db["unitframe"]["colors"]["castNoInterrupt"]["r"] = 0.74901960784314 E.db["unitframe"]["fontOutline"] = "NONE" E.db["unitframe"]["smoothbars"] = true E.db["unitframe"]["targetSound"] = true E.db["unitframe"]["cooldown"]["expiringColor"]["b"] = 0.41176470588235 E.db["unitframe"]["cooldown"]["expiringColor"]["g"] = 0.38039215686275 E.db["unitframe"]["cooldown"]["expiringColor"]["r"] = 0.74901960784314 -- Role icon if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then -- Retail E.db["unitframe"]["units"]["party"]["roleIcon"]["damager"] = false E.db["unitframe"]["units"]["party"]["roleIcon"]["combatHide"] = true E.db["unitframe"]["units"]["raid40"]["roleIcon"]["enable"] = true E.db["unitframe"]["units"]["raid40"]["roleIcon"]["combatHide"] = true E.db["unitframe"]["units"]["raid40"]["roleIcon"]["damager"] = false E.db["unitframe"]["units"]["raid"]["roleIcon"]["xOffset"] = 0 E.db["unitframe"]["units"]["raid"]["roleIcon"]["attachTo"] = "InfoPanel" E.db["unitframe"]["units"]["raid"]["roleIcon"]["size"] = 12 E.db["unitframe"]["units"]["raid"]["roleIcon"]["combatHide"] = true E.db["unitframe"]["units"]["raid"]["roleIcon"]["damager"] = false end end function NoobTacoUI:SetupUnitFrames(layout,wowver) -- DPS and TANK Layout if layout == 'v1' then E.db.unitframes = nil E.db["unitframe"]["units"]["party"]["growthDirection"] = "DOWN_RIGHT" E.db["unitframe"]["units"]["raid"]["buffIndicator"]["size"] = 8 E.db["unitframe"]["units"]["raid"]["debuffs"]["sizeOverride"] = 18 E.db["unitframe"]["units"]["raid"]["debuffs"]["xOffset"] = 18 E.db["unitframe"]["units"]["raid"]["debuffs"]["yOffset"] = 5 E.db["unitframe"]["units"]["raid"]["healPrediction"]["enable"] = false E.db["unitframe"]["units"]["raid"]["health"]["text_format"] = "" E.db["unitframe"]["units"]["raid"]["height"] = 45 E.db["unitframe"]["units"]["raid"]["name"]["yOffset"] = 0 E.db["unitframe"]["units"]["raid"]["rdebuffs"]["size"] = 20 E.db["unitframe"]["units"]["raid"]["verticalSpacing"] = -1 E.db["unitframe"]["units"]["raid"]["width"] = 75 E.db["unitframe"]["units"]["raid40"]["width"] = 75 -- UNIT FRAME MOVERS ----------------------------------------------------------- E.db["movers"]["AltPowerBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,127" E.db["movers"]["ArenaHeaderMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-288,-215" E.db["movers"]["BossHeaderMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-289,-227" E.db["movers"]["ElvUF_AssistMover"] = "TOPLEFT,ElvUIParent,TOPLEFT,4,-370" -- E.db["movers"]["ElvUF_FocusMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-536,-530" E.db["movers"]["ElvUF_FocusCastbarMover"] = "TOPLEFT,ElvUF_Focus,BOTTOMLEFT,0,-1" E.db["movers"]["ElvUF_FocusMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-440,365" E.db["movers"]["ElvUF_PartyMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,275" E.db["movers"]["ElvUF_PetCastbarMover"] = "BOTTOM,ElvUIParent,BOTTOM,-240,158" E.db["movers"]["ElvUF_PetMover"] = "BOTTOM,ElvUIParent,BOTTOM,-240,158" E.db["movers"]["ElvUF_PlayerMover"] = "BOTTOM,ElvUIParent,BOTTOM,-240,192" E.db["movers"]["ElvUF_Raid40Mover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,262" E.db["movers"]["ElvUF_RaidMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,4,262" E.db["movers"]["ElvUF_TankMover"] = "TOPLEFT,ElvUIParent,TOPLEFT,4,-305" E.db["movers"]["ElvUF_TargetCastbarMover"] = "BOTTOM,ElvUIParent,BOTTOM,240,158" E.db["movers"]["ElvUF_TargetMover"] = "BOTTOM,ElvUIParent,BOTTOM,240,192" E.db["movers"]["ElvUF_TargetTargetMover"] = "BOTTOM,ElvUIParent,BOTTOM,240,158" -- Heal Layout elseif layout == 'v2' then E.db.unitframes = nil -- Party Frames E.db["unitframe"]["units"]["party"]["buffIndicator"]["size"] = 15 E.db["unitframe"]["units"]["party"]["debuffs"]["anchorPoint"] = "CENTER" E.db["unitframe"]["units"]["party"]["debuffs"]["attachTo"] = "HEALTH" E.db["unitframe"]["units"]["party"]["debuffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["party"]["debuffs"]["numrows"] = 2 E.db["unitframe"]["units"]["party"]["debuffs"]["perrow"] = 3 E.db["unitframe"]["units"]["party"]["debuffs"]["sizeOverride"] = 25 E.db["unitframe"]["units"]["party"]["debuffs"]["xOffset"] = 24 E.db["unitframe"]["units"]["party"]["debuffs"]["yOffset"] = 10 E.db["unitframe"]["units"]["party"]["growthDirection"] = "RIGHT_DOWN" E.db["unitframe"]["units"]["party"]["healPrediction"]["enable"] = true E.db["unitframe"]["units"]["party"]["health"]["position"] = "CENTER" E.db["unitframe"]["units"]["party"]["health"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["party"]["health"]["xOffset"] = 0 E.db["unitframe"]["units"]["party"]["health"]["yOffset"] = -10 E.db["unitframe"]["units"]["party"]["height"] = 60 E.db["unitframe"]["units"]["party"]["horizontalSpacing"] = 3 E.db["unitframe"]["units"]["party"]["name"]["text_format"] = "[name:medium] [difficultycolor][smartlevel]" E.db["unitframe"]["units"]["party"]["name"]["yOffset"] = 4 E.db["unitframe"]["units"]["party"]["orientation"] = "MIDDLE" E.db["unitframe"]["units"]["party"]["power"]["height"] = 10 E.db["unitframe"]["units"]["party"]["power"]["text_format"] = "" E.db["unitframe"]["units"]["party"]["raidRoleIcons"]["yOffset"] = -2 E.db["unitframe"]["units"]["party"]["rdebuffs"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["party"]["readycheckIcon"]["position"] = "TOPRIGHT" E.db["unitframe"]["units"]["party"]["readycheckIcon"]["size"] = 30 E.db["unitframe"]["units"]["party"]["readycheckIcon"]["yOffset"] = 0 E.db["unitframe"]["units"]["party"]["resurrectIcon"]["size"] = 40 E.db["unitframe"]["units"]["party"]["width"] = 90 -- Raid Frames 25 E.db["unitframe"]["units"]["raid"]["buffIndicator"]["size"] = 10 E.db["unitframe"]["units"]["raid"]["buffs"]["perrow"] = 8 E.db["unitframe"]["units"]["raid"]["debuffs"]["anchorPoint"] = "CENTER" E.db["unitframe"]["units"]["raid"]["debuffs"]["attachTo"] = "HEALTH" E.db["unitframe"]["units"]["raid"]["debuffs"]["countFont"] = "Montserrat-Bold" E.db["unitframe"]["units"]["raid"]["debuffs"]["enable"] = true E.db["unitframe"]["units"]["raid"]["debuffs"]["numrows"] = 2 E.db["unitframe"]["units"]["raid"]["debuffs"]["sizeOverride"] = 25 E.db["unitframe"]["units"]["raid"]["debuffs"]["xOffset"] = 24 E.db["unitframe"]["units"]["raid"]["debuffs"]["yOffset"] = 10 E.db["unitframe"]["units"]["raid"]["growthDirection"] = "LEFT_DOWN" E.db["unitframe"]["units"]["raid"]["healPrediction"]["enable"] = true E.db["unitframe"]["units"]["raid"]["health"]["position"] = "CENTER" E.db["unitframe"]["units"]["raid"]["health"]["text_format"] = "[health:current-percent]" E.db["unitframe"]["units"]["raid"]["health"]["xOffset"] = 0 E.db["unitframe"]["units"]["raid"]["health"]["yOffset"] = -10 E.db["unitframe"]["units"]["raid"]["height"] = 45 E.db["unitframe"]["units"]["raid"]["name"]["attachTextTo"] = "Frame" E.db["unitframe"]["units"]["raid"]["name"]["text_format"] = "[name:veryshort] [difficultycolor][smartlevel]" E.db["unitframe"]["units"]["raid"]["name"]["yOffset"] = 10 E.db["unitframe"]["units"]["raid"]["power"]["height"] = 10 E.db["unitframe"]["units"]["raid"]["power"]["position"] = "RIGHT" E.db["unitframe"]["units"]["raid"]["power"]["yOffset"] = 0 E.db["unitframe"]["units"]["raid"]["raidRoleIcons"]["yOffset"] = -2 E.db["unitframe"]["units"]["raid"]["rdebuffs"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["raid"]["rdebuffs"]["size"] = 30 E.db["unitframe"]["units"]["raid"]["rdebuffs"]["yOffset"] = 5 E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["position"] = "TOPRIGHT" E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["size"] = 30 E.db["unitframe"]["units"]["raid"]["readycheckIcon"]["yOffset"] = 0 E.db["unitframe"]["units"]["raid"]["resurrectIcon"]["attachTo"] = "BOTTOMRIGHT" E.db["unitframe"]["units"]["raid"]["resurrectIcon"]["size"] = 40 E.db["unitframe"]["units"]["raid"]["verticalSpacing"] = 2 E.db["unitframe"]["units"]["raid"]["width"] = 90 E.db["unitframe"]["units"]["raid"]["numGroups"] = 5 -- Raid 40 E.db["unitframe"]["units"]["raid40"]["buffIndicator"]["size"] = 10 E.db["unitframe"]["units"]["raid40"]["growthDirection"] = "RIGHT_UP" E.db["unitframe"]["units"]["raid40"]["height"] = 32 E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["enable"] = true E.db["unitframe"]["units"]["raid40"]["rdebuffs"]["font"] = "Montserrat-Bold" E.db["unitframe"]["units"]["raid40"]["width"] = 90 E.db["movers"]["AltPowerBarMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,127" E.db["movers"]["ArenaHeaderMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-288,-215" E.db["movers"]["BossHeaderMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-289,-227" E.db["movers"]["ElvUF_AssistMover"] = "TOPLEFT,ElvUIParent,TOPLEFT,4,-370" -- E.db["movers"]["ElvUF_FocusMover"] = "TOPRIGHT,ElvUIParent,TOPRIGHT,-536,-530" E.db["movers"]["ElvUF_FocusCastbarMover"] = "TOPLEFT,ElvUF_Focus,BOTTOMLEFT,0,-1" E.db["movers"]["ElvUF_FocusMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-440,365" E.db["movers"]["ElvUF_PartyMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,285" E.db["movers"]["ElvUF_PetCastbarMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,540,250" E.db["movers"]["ElvUF_PetMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,540,250" E.db["movers"]["ElvUF_PlayerMover"] = "BOTTOMLEFT,ElvUIParent,BOTTOMLEFT,540,285" E.db["movers"]["ElvUF_Raid40Mover"] = "BOTTOM,ElvUIParent,BOTTOM,0,115" E.db["movers"]["ElvUF_RaidMover"] = "BOTTOM,ElvUIParent,BOTTOM,0,115" E.db["movers"]["ElvUF_TankMover"] = "TOPLEFT,ElvUIParent,TOPLEFT,4,-305" E.db["movers"]["ElvUF_TargetCastbarMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-540,250" E.db["movers"]["ElvUF_TargetMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-540,285" E.db["movers"]["ElvUF_TargetTargetMover"] = "BOTTOMRIGHT,ElvUIParent,BOTTOMRIGHT,-540,250" end -- Update ElvUI -------------------------------------- E:UpdateAll(true) -- Show message about layout being set PluginInstallStepComplete.message = "Unitframes Set" PluginInstallStepComplete:Show() end
-- Copyright (C) 2012 by Yichun Zhang (agentzh) local sha512 = require "resty.sha512" local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local setmetatable = setmetatable local error = error module(...) _VERSION = '0.08' local mt = { __index = _M } ffi.cdef[[ int SHA384_Init(SHA512_CTX *c); int SHA384_Update(SHA512_CTX *c, const void *data, size_t len); int SHA384_Final(unsigned char *md, SHA512_CTX *c); ]] local digest_len = 48 local buf = ffi_new("char[?]", digest_len) local ctx_ptr_type = ffi.typeof("SHA512_CTX[1]") function new(self) local ctx = ffi_new(ctx_ptr_type) if C.SHA384_Init(ctx) == 0 then return nil end return setmetatable({ _ctx = ctx }, mt) end function update(self, s) return C.SHA384_Update(self._ctx, s, #s) == 1 end function final(self) if C.SHA384_Final(buf, self._ctx) == 1 then return ffi_str(buf, digest_len) end return nil end function reset(self) return C.SHA384_Init(self._ctx) == 1 end local class_mt = { -- to prevent use of casual module global variables __newindex = function (table, key, val) error('attempt to write to undeclared variable "' .. key .. '"') end } setmetatable(_M, class_mt)
local AddonName, AddonTable = ... AddonTable.fishing = { -- Fish 74857, -- Giant Mantis Shrimp 74866, -- Golden Carp }
View = Object:extend() function View:new(x, y) self.x = x self.y = y self.width = blocksize*10 self.height = blocksize*20.5 --Variables for information at the side self.linesCleared = 0 self.nextNr = 4 self.nextshape= Shape(12, 2, math.random(7)) self.savedshape = -1 end function View:update(dt) end function View:draw() --Draw the field love.graphics.setColor(colors.black) for linehor=0, 20, 1 do love.graphics.line(self.x, self.y+blocksize/2+linehor*blocksize, self.x+self.width, self.y+blocksize/2+linehor*blocksize) end for linevert=0, 10, 1 do love.graphics.line(self.x+linevert*blocksize, self.y, self.x+linevert*blocksize, self.y+self.height) end --Draw text love.graphics.printf(self.linesCleared.." lines", self.x+self.width+blocksize/2, self.y, blocksize*4, "left") --Draw our shape self.nextshape:draw(self.x, self.y) end function View:getX() return self.x end function View:getY() return self.y end function View:getNextshape() local s = self.nextshape:getShape() self.nextshape = Shape(12, 2, math.random(7)) return s end function View:lineCleared() self.linesCleared = self.linesCleared + 1 end
local PATH = (...):gsub('%.[^%.]+$', '') local Event = {} Event.__index = Event Event.__call = function(self, ...) return self:populate(...) end function Event.new(name, ...) local event = setmetatable({ name = name, keys = {...}, }, Event) return event end function Event:populate(...) local values = {...} local bag = { __name = self.name, __satisfied = false, } for i = 1, #values do bag[self.keys[i]] = values[i] end return bag end Event.load = Event.new("load", "arg") Event.update = Event.new("update", "dt") Event.draw = Event.new("draw") Event.quit = Event.new("quit") Event.keypressed = Event.new("keypressed", "key", "scancode", "isrepeat") Event.keyreleased = Event.new("keyreleased", "key", "scancode") Event.mousepressed = Event.new("mousepressed", "x", "y", "button", "istouch") Event.mousereleased = Event.new("mousereleased", "x", "y", "button", "istouch") Event.mousemoved = Event.new("mousemoved", "x", "y", "dx", "dy", "istouch") Event.wheelmoved = Event.new("wheelmoved", "x", "y") Event.textedited = Event.new("textedited", "text", "start", "length") Event.textinput = Event.new("textinput", "text") Event.touchmoved = Event.new("touchmoved", "id", "x", "y", "dx", "dy", "pressure") Event.touchpressed = Event.new("touchpressed", "id", "x", "y", "dx", "dy", "pressure") Event.touchreleased = Event.new("touchreleased", "id", "x", "y", "dx", "dy", "pressure") Event.joystickadded = Event.new("joystickadded", "joystick") Event.joystickremoved = Event.new("joystickremoved", "joystick") Event.joystickpressed = Event.new("joystick", "button") Event.joystickreleased = Event.new("joystickreleased", "joystick", "button") Event.joystickaxis = Event.new("joystickaxis", "joystick", "axis", "value") Event.joystickhat = Event.new("joystickhat", "joystick", "hat", "direction") Event.gamepadpressed = Event.new("gamepadpressed", "joystick", "button") Event.gamepadreleased = Event.new("gamepadreleased", "joystick", "button") Event.gamepadaxis = Event.new("gamepadaxis", "joystick", "axis", "value") Event.filedropped = Event.new("filedropped", "file") Event.directorydropped = Event.new("directorydropped", "path") Event.focus = Event.new("focus", "focus") Event.mousefocus = Event.new("mousefocus", "focus") Event.visible = Event.new("visible", "visible") Event.resize = Event.new("resize", "w", "h") Event.lowmemory = Event.new("lowmemory") Event.threaderror = Event.new("threaderror", "thread", "errorstr") Event.errhandler = Event.new("errhandler", "msg") return setmetatable(Event, { __call = function(_, ...) return Event.new(...) end, })
local Prop = {} Prop.Name = "City Hall" Prop.Government = true Prop.Doors = { Vector( -772.36999511719, -1452, 138 ), Vector( -675.63000488281, -1452, 138 ), Vector( -492.36999511719, -1452, 138 ), Vector( -395.63000488281, -1452, 138 ), { Pos = Vector( 59, -1752, 130 ), Locked = true }, } GM.Property:Register( Prop )
local lockbox = script.Parent.Parent local Bit = require(lockbox.util.bit); local String = string; local Math = math; local Queue = require(lockbox.util.queue); local CONSTANTS = { 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 }; local AND = Bit.band; local OR = Bit.bor; local NOT = Bit.bnot; local XOR = Bit.bxor; local LROT = Bit.lrotate; local RROT = Bit.rrotate; local LSHIFT = Bit.lshift; local RSHIFT = Bit.rshift; --SHA2 is big-endian local bytes2word = function(b0,b1,b2,b3) local i = b0; i = LSHIFT(i,8); i = OR(i,b1); i = LSHIFT(i,8); i = OR(i,b2); i = LSHIFT(i,8); i = OR(i,b3); return i; end local word2bytes = function(word) local b0,b1,b2,b3; b3 = AND(word,0xFF); word = RSHIFT(word,8); b2 = AND(word,0xFF); word = RSHIFT(word,8); b1 = AND(word,0xFF); word = RSHIFT(word,8); b0 = AND(word,0xFF); return b0,b1,b2,b3; end local bytes2dword = function(b0,b1,b2,b3,b4,b5,b6,b7) local i = bytes2word(b0,b1,b2,b3); local j = bytes2word(b4,b5,b6,b7); return (i*0x100000000)+j; end local dword2bytes = function(i) local b4,b5,b6,b7 = word2bytes(i); local b0,b1,b2,b3 = word2bytes(Math.floor(i/0x100000000)); return b0,b1,b2,b3,b4,b5,b6,b7; end local SHA2_256 = function() local queue = Queue(); local h0 = 0x6a09e667; local h1 = 0xbb67ae85; local h2 = 0x3c6ef372; local h3 = 0xa54ff53a; local h4 = 0x510e527f; local h5 = 0x9b05688c; local h6 = 0x1f83d9ab; local h7 = 0x5be0cd19; local public = {}; local processBlock = function() local a = h0; local b = h1; local c = h2; local d = h3; local e = h4; local f = h5; local g = h6; local h = h7; local w = {}; for i=0,15 do w[i] = bytes2word(queue.pop(),queue.pop(),queue.pop(),queue.pop()); end for i=16,63 do local s0 = XOR(RROT(w[i-15],7), XOR(RROT(w[i-15],18), RSHIFT(w[i-15],3))); local s1 = XOR(RROT(w[i-2],17), XOR(RROT(w[i-2], 19), RSHIFT(w[i-2],10))); w[i] = AND(w[i-16] + s0 + w[i-7] + s1, 0xFFFFFFFF); end for i=0,63 do local s1 = XOR(RROT(e,6), XOR(RROT(e,11),RROT(e,25))); local ch = XOR(AND(e,f), AND(NOT(e),g)); local temp1 = h + s1 + ch + CONSTANTS[i+1] + w[i]; local s0 = XOR(RROT(a,2), XOR(RROT(a,13), RROT(a,22))); local maj = XOR(AND(a,b), XOR(AND(a,c), AND(b,c))); local temp2 = s0 + maj; h = g; g = f; f = e; e = d + temp1; d = c; c = b; b = a; a = temp1 + temp2; end h0 = AND(h0 + a, 0xFFFFFFFF); h1 = AND(h1 + b, 0xFFFFFFFF); h2 = AND(h2 + c, 0xFFFFFFFF); h3 = AND(h3 + d, 0xFFFFFFFF); h4 = AND(h4 + e, 0xFFFFFFFF); h5 = AND(h5 + f, 0xFFFFFFFF); h6 = AND(h6 + g, 0xFFFFFFFF); h7 = AND(h7 + h, 0xFFFFFFFF); end public.init = function() queue.reset(); h0 = 0x6a09e667; h1 = 0xbb67ae85; h2 = 0x3c6ef372; h3 = 0xa54ff53a; h4 = 0x510e527f; h5 = 0x9b05688c; h6 = 0x1f83d9ab; h7 = 0x5be0cd19; return public; end public.update = function(bytes) for b in bytes do queue.push(b); if queue.size() >= 64 then processBlock(); end end return public; end public.finish = function() local bits = queue.getHead() * 8; queue.push(0x80); while ((queue.size()+7) % 64) < 63 do queue.push(0x00); end local b0,b1,b2,b3,b4,b5,b6,b7 = dword2bytes(bits); queue.push(b0); queue.push(b1); queue.push(b2); queue.push(b3); queue.push(b4); queue.push(b5); queue.push(b6); queue.push(b7); while queue.size() > 0 do processBlock(); end return public; end public.asBytes = function() local b0, b1, b2, b3 = word2bytes(h0); local b4, b5, b6, b7 = word2bytes(h1); local b8, b9,b10,b11 = word2bytes(h2); local b12,b13,b14,b15 = word2bytes(h3); local b16,b17,b18,b19 = word2bytes(h4); local b20,b21,b22,b23 = word2bytes(h5); local b24,b25,b26,b27 = word2bytes(h6); local b28,b29,b30,b31 = word2bytes(h7); return { b0, b1, b2, b3, b4, b5, b6, b7, b8, b9,b10,b11,b12,b13,b14,b15 ,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27,b28,b29,b30,b31}; end public.asHex = function() local b0, b1, b2, b3 = word2bytes(h0); local b4, b5, b6, b7 = word2bytes(h1); local b8, b9,b10,b11 = word2bytes(h2); local b12,b13,b14,b15 = word2bytes(h3); local b16,b17,b18,b19 = word2bytes(h4); local b20,b21,b22,b23 = word2bytes(h5); local b24,b25,b26,b27 = word2bytes(h6); local b28,b29,b30,b31 = word2bytes(h7); local fmt = "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x" return String.format(fmt, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9,b10,b11,b12,b13,b14,b15 ,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27,b28,b29,b30,b31); end return public; end return SHA2_256;
local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local clear, feed = helpers.clear, helpers.feed local source = helpers.source local insert = helpers.insert local meths = helpers.meths local command = helpers.command local funcs = helpers.funcs describe('ui/ext_popupmenu', function() local screen before_each(function() clear() screen = Screen.new(60, 8) screen:attach({rgb=true, ext_popupmenu=true}) screen:set_default_attr_ids({ [1] = {bold=true, foreground=Screen.colors.Blue}, [2] = {bold = true}, [3] = {reverse = true}, [4] = {bold = true, reverse = true}, [5] = {bold = true, foreground = Screen.colors.SeaGreen}, [6] = {background = Screen.colors.WebGray}, [7] = {background = Screen.colors.LightMagenta}, }) source([[ function! TestComplete() abort call complete(1, [{'word':'foo', 'abbr':'fo', 'menu':'the foo', 'info':'foo-y', 'kind':'x'}, 'bar', 'spam']) return '' endfunction ]]) end) local expected = { {'fo', 'x', 'the foo', 'foo-y'}, {'bar', '', '', ''}, {'spam', '', '', ''}, } it('works', function() feed('o<C-r>=TestComplete()<CR>') screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=0, anchor={1,0}, }} feed('<c-p>') screen:expect{grid=[[ | ^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=-1, anchor={1,0}, }} -- down moves the selection in the menu, but does not insert anything feed('<down><down>') screen:expect{grid=[[ | ^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=1, anchor={1,0}, }} feed('<cr>') screen:expect{grid=[[ | bar^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]} end) it('can be controlled by API', function() feed('o<C-r>=TestComplete()<CR>') screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=0, anchor={1,0}, }} meths.select_popupmenu_item(1,false,false,{}) screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=1, anchor={1,0}, }} meths.select_popupmenu_item(2,true,false,{}) screen:expect{grid=[[ | spam^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=2, anchor={1,0}, }} meths.select_popupmenu_item(0,true,true,{}) screen:expect([[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) feed('<c-w><C-r>=TestComplete()<CR>') screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=0, anchor={1,0}, }} meths.select_popupmenu_item(-1,false,false,{}) screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=-1, anchor={1,0}, }} meths.select_popupmenu_item(1,true,false,{}) screen:expect{grid=[[ | bar^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=1, anchor={1,0}, }} meths.select_popupmenu_item(-1,true,false,{}) screen:expect{grid=[[ | ^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=-1, anchor={1,0}, }} meths.select_popupmenu_item(0,true,false,{}) screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=0, anchor={1,0}, }} meths.select_popupmenu_item(-1,true,true,{}) screen:expect([[ | ^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) command('imap <f1> <cmd>call nvim_select_popupmenu_item(2,v:true,v:false,{})<cr>') command('imap <f2> <cmd>call nvim_select_popupmenu_item(-1,v:false,v:false,{})<cr>') command('imap <f3> <cmd>call nvim_select_popupmenu_item(1,v:false,v:true,{})<cr>') feed('<C-r>=TestComplete()<CR>') screen:expect{grid=[[ | foo^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=0, anchor={1,0}, }} feed('<f1>') screen:expect{grid=[[ | spam^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=2, anchor={1,0}, }} feed('<f2>') screen:expect{grid=[[ | spam^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]], popupmenu={ items=expected, pos=-1, anchor={1,0}, }} feed('<f3>') screen:expect([[ | bar^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) -- also should work for builtin popupmenu screen:set_option('ext_popupmenu', false) feed('<C-r>=TestComplete()<CR>') screen:expect([[ | foo^ | {6:fo x the foo }{1: }| {7:bar }{1: }| {7:spam }{1: }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) feed('<f1>') screen:expect([[ | spam^ | {7:fo x the foo }{1: }| {7:bar }{1: }| {6:spam }{1: }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) feed('<f2>') screen:expect([[ | spam^ | {7:fo x the foo }{1: }| {7:bar }{1: }| {7:spam }{1: }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) feed('<f3>') screen:expect([[ | bar^ | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) end) end) describe('builtin popupmenu', function() local screen before_each(function() clear() screen = Screen.new(32, 20) screen:attach() screen:set_default_attr_ids({ -- popup selected item / scrollbar track ['s'] = {background = Screen.colors.WebGray}, -- popup non-selected item ['n'] = {background = Screen.colors.LightMagenta}, -- popup scrollbar knob ['c'] = {background = Screen.colors.Grey0}, [1] = {bold = true, foreground = Screen.colors.Blue}, [2] = {bold = true}, [3] = {reverse = true}, [4] = {bold = true, reverse = true}, [5] = {bold = true, foreground = Screen.colors.SeaGreen}, [6] = {foreground = Screen.colors.Grey100, background = Screen.colors.Red}, }) end) it('works with preview-window above', function() feed(':ped<CR><c-w>4+') feed('iaa bb cc dd ee ff gg hh ii jj<cr>') feed('<c-x><c-n>') screen:expect([[ aa bb cc dd ee ff gg hh ii jj | aa | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {3:[No Name] [Preview][+] }| aa bb cc dd ee ff gg hh ii jj | aa^ | {s:aa }{c: }{1: }| {n:bb }{c: }{1: }| {n:cc }{c: }{1: }| {n:dd }{c: }{1: }| {n:ee }{c: }{1: }| {n:ff }{c: }{1: }| {n:gg }{s: }{1: }| {n:hh }{s: }{4: }| {2:-- }{5:match 1 of 10} | ]]) end) it('works with preview-window below', function() feed(':ped<CR><c-w>4+<c-w>r') feed('iaa bb cc dd ee ff gg hh ii jj<cr>') feed('<c-x><c-n>') screen:expect([[ aa bb cc dd ee ff gg hh ii jj | aa^ | {s:aa }{c: }{1: }| {n:bb }{c: }{1: }| {n:cc }{c: }{1: }| {n:dd }{c: }{1: }| {n:ee }{c: }{1: }| {n:ff }{c: }{1: }| {n:gg }{s: }{1: }| {n:hh }{s: }{4: }| aa bb cc dd ee ff gg hh ii jj | aa | {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {3:[No Name] [Preview][+] }| {2:-- }{5:match 1 of 10} | ]]) end) it('works with preview-window above and tall and inverted', function() feed(':ped<CR><c-w>8+') feed('iaa<cr>bb<cr>cc<cr>dd<cr>ee<cr>') feed('ff<cr>gg<cr>hh<cr>ii<cr>jj<cr>') feed('kk<cr>ll<cr>mm<cr>nn<cr>oo<cr>') feed('<c-x><c-n>') screen:expect([[ aa | bb | cc | dd | {s:aa }{c: }{3:ew][+] }| {n:bb }{c: } | {n:cc }{c: } | {n:dd }{c: } | {n:ee }{c: } | {n:ff }{c: } | {n:gg }{c: } | {n:hh }{c: } | {n:ii }{c: } | {n:jj }{c: } | {n:kk }{c: } | {n:ll }{s: } | {n:mm }{s: } | aa^ | {4:[No Name] [+] }| {2:-- }{5:match 1 of 15} | ]]) end) it('works with preview-window above and short and inverted', function() feed(':ped<CR><c-w>4+') feed('iaa<cr>bb<cr>cc<cr>dd<cr>ee<cr>') feed('ff<cr>gg<cr>hh<cr>ii<cr>jj<cr>') feed('<c-x><c-n>') screen:expect([[ aa | bb | cc | dd | ee | ff | gg | {s:aa } | {n:bb }{3:iew][+] }| {n:cc } | {n:dd } | {n:ee } | {n:ff } | {n:gg } | {n:hh } | {n:ii } | {n:jj } | aa^ | {4:[No Name] [+] }| {2:-- }{5:match 1 of 10} | ]]) end) it('works with preview-window below and inverted', function() feed(':ped<CR><c-w>4+<c-w>r') feed('iaa<cr>bb<cr>cc<cr>dd<cr>ee<cr>') feed('ff<cr>gg<cr>hh<cr>ii<cr>jj<cr>') feed('<c-x><c-n>') screen:expect([[ {s:aa }{c: } | {n:bb }{c: } | {n:cc }{c: } | {n:dd }{c: } | {n:ee }{c: } | {n:ff }{c: } | {n:gg }{s: } | {n:hh }{s: } | aa^ | {4:[No Name] [+] }| aa | bb | cc | dd | ee | ff | gg | hh | {3:[No Name] [Preview][+] }| {2:-- }{5:match 1 of 10} | ]]) end) it('works with vsplits', function() insert('aaa aab aac\n') feed(':vsplit<cr>') screen:expect([[ aaa aab aac {3:│}aaa aab aac| ^ {3:│} | {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {4:[No Name] [+] }{3:<Name] [+] }| :vsplit | ]]) feed('ibbb a<c-x><c-n>') screen:expect([[ aaa aab aac {3:│}aaa aab aac| bbb aaa^ {3:│}bbb aaa | {1:~ }{s: aaa }{1: }{3:│}{1:~ }| {1:~ }{n: aab }{1: }{3:│}{1:~ }| {1:~ }{n: aac }{1: }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {4:[No Name] [+] }{3:<Name] [+] }| {2:-- }{5:match 1 of 3} | ]]) feed('<esc><c-w><c-w>oc a<c-x><c-n>') screen:expect([[ aaa aab aac{3:│}aaa aab aac | bbb aaa {3:│}bbb aaa | c aaa {3:│}c aaa^ | {1:~ }{3:│}{1:~}{s: aaa }{1: }| {1:~ }{3:│}{1:~}{n: aab }{1: }| {1:~ }{3:│}{1:~}{n: aac }{1: }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {1:~ }{3:│}{1:~ }| {3:<Name] [+] }{4:[No Name] [+] }| {2:-- }{5:match 1 of 3} | ]]) end) it('works with split and scroll', function() screen:try_resize(60,14) command("split") command("set completeopt+=noinsert") command("set mouse=a") insert([[ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. ]]) screen:expect([[ reprehenderit in voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | occaecat cupidatat non proident, sunt in culpa | qui officia deserunt mollit anim id est | laborum. | ^ | {4:[No Name] [+] }| Lorem ipsum dolor sit amet, consectetur | adipisicing elit, sed do eiusmod tempor | incididunt ut labore et dolore magna aliqua. | Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {3:[No Name] [+] }| | ]]) feed('ggOEst <c-x><c-p>') screen:expect([[ Est ^ | L{n: sunt }{s: }sit amet, consectetur | a{n: in }{s: }sed do eiusmod tempor | i{n: culpa }{s: }re et dolore magna aliqua. | U{n: qui }{s: }eniam, quis nostrud | e{n: officia }{s: }co laboris nisi ut aliquip ex | {4:[No}{n: deserunt }{s: }{4: }| L{n: mollit }{s: }sit amet, consectetur | a{n: anim }{s: }sed do eiusmod tempor | i{n: id }{s: }re et dolore magna aliqua. | U{n: est }{s: }eniam, quis nostrud | e{n: laborum }{c: }co laboris nisi ut aliquip ex | {3:[No}{s: Est }{c: }{3: }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) meths.input_mouse('wheel', 'down', '', 0, 9, 40) screen:expect([[ Est ^ | L{n: sunt }{s: }sit amet, consectetur | a{n: in }{s: }sed do eiusmod tempor | i{n: culpa }{s: }re et dolore magna aliqua. | U{n: qui }{s: }eniam, quis nostrud | e{n: officia }{s: }co laboris nisi ut aliquip ex | {4:[No}{n: deserunt }{s: }{4: }| U{n: mollit }{s: }eniam, quis nostrud | e{n: anim }{s: }co laboris nisi ut aliquip ex | e{n: id }{s: }at. Duis aute irure dolor in | r{n: est }{s: }oluptate velit esse cillum | d{n: laborum }{c: }ulla pariatur. Excepteur sint | {3:[No}{s: Est }{c: }{3: }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) feed('e') screen:expect([[ Est e^ | L{n: elit } sit amet, consectetur | a{n: eiusmod } sed do eiusmod tempor | i{n: et }ore et dolore magna aliqua. | U{n: enim }veniam, quis nostrud | e{n: exercitation }mco laboris nisi ut aliquip ex | {4:[No}{n: ex }{4: }| U{n: ea }veniam, quis nostrud | e{n: esse }mco laboris nisi ut aliquip ex | e{n: eu }uat. Duis aute irure dolor in | r{s: est }voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) meths.input_mouse('wheel', 'up', '', 0, 9, 40) screen:expect([[ Est e^ | L{n: elit } sit amet, consectetur | a{n: eiusmod } sed do eiusmod tempor | i{n: et }ore et dolore magna aliqua. | U{n: enim }veniam, quis nostrud | e{n: exercitation }mco laboris nisi ut aliquip ex | {4:[No}{n: ex }{4: }| L{n: ea } sit amet, consectetur | a{n: esse } sed do eiusmod tempor | i{n: eu }ore et dolore magna aliqua. | U{s: est }veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) feed('s') screen:expect([[ Est es^ | L{n: esse } sit amet, consectetur | a{s: est } sed do eiusmod tempor | incididunt ut labore et dolore magna aliqua. | Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {4:[No Name] [+] }| Lorem ipsum dolor sit amet, consectetur | adipisicing elit, sed do eiusmod tempor | incididunt ut labore et dolore magna aliqua. | Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) meths.input_mouse('wheel', 'down', '', 0, 9, 40) screen:expect([[ Est es^ | L{n: esse } sit amet, consectetur | a{s: est } sed do eiusmod tempor | incididunt ut labore et dolore magna aliqua. | Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {4:[No Name] [+] }| Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | ea commodo consequat. Duis aute irure dolor in | reprehenderit in voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) feed('<bs>') screen:expect([[ Est e^ | L{n: elit } sit amet, consectetur | a{n: eiusmod } sed do eiusmod tempor | i{n: et }ore et dolore magna aliqua. | U{n: enim }veniam, quis nostrud | e{n: exercitation }mco laboris nisi ut aliquip ex | {4:[No}{n: ex }{4: }| U{n: ea }veniam, quis nostrud | e{n: esse }mco laboris nisi ut aliquip ex | e{n: eu }uat. Duis aute irure dolor in | r{s: est }voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 65} | ]]) feed('<c-p>') screen:expect([[ Est eu^ | L{n: elit } sit amet, consectetur | a{n: eiusmod } sed do eiusmod tempor | i{n: et }ore et dolore magna aliqua. | U{n: enim }veniam, quis nostrud | e{n: exercitation }mco laboris nisi ut aliquip ex | {4:[No}{n: ex }{4: }| U{n: ea }veniam, quis nostrud | e{n: esse }mco laboris nisi ut aliquip ex | e{s: eu }uat. Duis aute irure dolor in | r{n: est }voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 22 of 65} | ]]) meths.input_mouse('wheel', 'down', '', 0, 9, 40) screen:expect([[ Est eu^ | L{n: elit } sit amet, consectetur | a{n: eiusmod } sed do eiusmod tempor | i{n: et }ore et dolore magna aliqua. | U{n: enim }veniam, quis nostrud | e{n: exercitation }mco laboris nisi ut aliquip ex | {4:[No}{n: ex }{4: }| r{n: ea }voluptate velit esse cillum | d{n: esse }nulla pariatur. Excepteur sint | o{s: eu }t non proident, sunt in culpa | q{n: est }unt mollit anim id est | laborum. | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 22 of 65} | ]]) funcs.complete(4, {'ea', 'eeeeeeeeeeeeeeeeee', 'ei', 'eo', 'eu', 'ey', 'eå', 'eä', 'eö'}) screen:expect([[ Est eu^ | {s: ea }t amet, consectetur | {n: eeeeeeeeeeeeeeeeee }d do eiusmod tempor | {n: ei } et dolore magna aliqua. | {n: eo }iam, quis nostrud | {n: eu } laboris nisi ut aliquip ex | {4:[N}{n: ey }{4: }| {n: eå }uptate velit esse cillum | {n: eä }la pariatur. Excepteur sint | {n: eö }on proident, sunt in culpa | qui officia deserunt mollit anim id est | laborum. | {3:[No Name] [+] }| {2:-- Keyword Local completion (^N^P) }{5:match 1 of 9} | ]]) funcs.complete(4, {'ea', 'eee', 'ei', 'eo', 'eu', 'ey', 'eå', 'eä', 'eö'}) screen:expect([[ Est eu^ | {s: ea }r sit amet, consectetur | {n: eee }, sed do eiusmod tempor | {n: ei }bore et dolore magna aliqua. | {n: eo } veniam, quis nostrud | {n: eu }amco laboris nisi ut aliquip ex | {4:[N}{n: ey }{4: }| {n: eå } voluptate velit esse cillum | {n: eä } nulla pariatur. Excepteur sint | {n: eö }at non proident, sunt in culpa | qui officia deserunt mollit anim id est | laborum. | {3:[No Name] [+] }| {2:-- INSERT --} | ]]) feed('<c-n>') screen:expect([[ Esteee^ | {n: ea }r sit amet, consectetur | {s: eee }, sed do eiusmod tempor | {n: ei }bore et dolore magna aliqua. | {n: eo } veniam, quis nostrud | {n: eu }amco laboris nisi ut aliquip ex | {4:[N}{n: ey }{4: }| {n: eå } voluptate velit esse cillum | {n: eä } nulla pariatur. Excepteur sint | {n: eö }at non proident, sunt in culpa | qui officia deserunt mollit anim id est | laborum. | {3:[No Name] [+] }| {2:-- INSERT --} | ]]) funcs.complete(6, {'foo', 'bar'}) screen:expect([[ Esteee^ | Lo{s: foo }sit amet, consectetur | ad{n: bar }sed do eiusmod tempor | incididunt ut labore et dolore magna aliqua. | Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {4:[No Name] [+] }| reprehenderit in voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | occaecat cupidatat non proident, sunt in culpa | qui officia deserunt mollit anim id est | laborum. | {3:[No Name] [+] }| {2:-- INSERT --} | ]]) feed('<c-y>') screen:expect([[ Esteefoo^ | Lorem ipsum dolor sit amet, consectetur | adipisicing elit, sed do eiusmod tempor | incididunt ut labore et dolore magna aliqua. | Ut enim ad minim veniam, quis nostrud | exercitation ullamco laboris nisi ut aliquip ex | {4:[No Name] [+] }| reprehenderit in voluptate velit esse cillum | dolore eu fugiat nulla pariatur. Excepteur sint | occaecat cupidatat non proident, sunt in culpa | qui officia deserunt mollit anim id est | laborum. | {3:[No Name] [+] }| {2:-- INSERT --} | ]]) end) it('can be moved due to wrap or resize', function() feed('isome long prefix before the ') command("set completeopt+=noinsert,noselect") command("set linebreak") funcs.complete(29, {'word', 'choice', 'text', 'thing'}) screen:expect([[ some long prefix before the ^ | {1:~ }{n: word }| {1:~ }{n: choice}| {1:~ }{n: text }| {1:~ }{n: thing }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) feed('<c-p>') screen:expect([[ some long prefix before the | thing^ | {n:word }{1: }| {n:choice }{1: }| {n:text }{1: }| {s:thing }{1: }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) feed('<c-p>') screen:expect([[ some long prefix before the text| {1:^~ }{n: word }| {1:~ }{n: choice}| {1:~ }{s: text }| {1:~ }{n: thing }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) screen:try_resize(30,8) screen:expect([[ some long prefix before the | text^ | {n:word }{1: }| {n:choice }{1: }| {s:text }{1: }| {n:thing }{1: }| {1:~ }| {2:-- INSERT --} | ]]) screen:try_resize(50,8) screen:expect([[ some long prefix before the text^ | {1:~ }{n: word }{1: }| {1:~ }{n: choice }{1: }| {1:~ }{s: text }{1: }| {1:~ }{n: thing }{1: }| {1:~ }| {1:~ }| {2:-- INSERT --} | ]]) end) it('can be moved due to wrap or resize', function() command("set rl") feed('isome rightleft ') screen:expect([[ ^ tfelthgir emos| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {2:-- INSERT --} | ]]) command("set completeopt+=noinsert,noselect") funcs.complete(16, {'word', 'choice', 'text', 'thing'}) screen:expect([[ ^ tfelthgir emos| {1: }{n: drow}{1: ~}| {1: }{n: eciohc}{1: ~}| {1: }{n: txet}{1: ~}| {1: }{n: gniht}{1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {2:-- INSERT --} | ]]) feed('<c-n>') screen:expect([[ ^ drow tfelthgir emos| {1: }{s: drow}{1: ~}| {1: }{n: eciohc}{1: ~}| {1: }{n: txet}{1: ~}| {1: }{n: gniht}{1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {2:-- INSERT --} | ]]) feed('<c-y>') screen:expect([[ ^ drow tfelthgir emos| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {1: ~}| {2:-- INSERT --} | ]]) end) it('works with multiline messages', function() screen:try_resize(40,8) feed('ixx<cr>') command('imap <f2> <cmd>echoerr "very"\\|echoerr "much"\\|echoerr "error"<cr>') funcs.complete(1, {'word', 'choice', 'text', 'thing'}) screen:expect([[ xx | word^ | {s:word }{1: }| {n:choice }{1: }| {n:text }{1: }| {n:thing }{1: }| {1:~ }| {2:-- INSERT --} | ]]) feed('<f2>') screen:expect([[ xx | word | {s:word }{1: }| {4: }| {6:very} | {6:much} | {6:error} | {5:Press ENTER or type command to continue}^ | ]]) feed('<cr>') screen:expect([[ xx | word^ | {s:word }{1: }| {n:choice }{1: }| {n:text }{1: }| {n:thing }{1: }| {1:~ }| {2:-- INSERT --} | ]]) feed('<c-n>') screen:expect([[ xx | choice^ | {n:word }{1: }| {s:choice }{1: }| {n:text }{1: }| {n:thing }{1: }| {1:~ }| {2:-- INSERT --} | ]]) command("split") screen:expect([[ xx | choice^ | {n:word }{1: }| {s:choice }{4: }| {n:text } | {n:thing } | {3:[No Name] [+] }| {2:-- INSERT --} | ]]) meths.input_mouse('wheel', 'down', '', 0, 6, 15) screen:expect([[ xx | choice^ | {n:word }{1: }| {s:choice }{4: }| {n:text } | {n:thing }{1: }| {3:[No Name] [+] }| {2:-- INSERT --} | ]]) end) end)
local CHAR = ix.meta.character function CHAR:IsCombine() local faction = self:GetFaction() return faction == FACTION_MPF or faction == FACTION_OTA or faction == FACTION_USC end
object_tangible_storyteller_event_props_pr_lifeday_tree = object_tangible_storyteller_event_props_shared_pr_lifeday_tree:new { } ObjectTemplates:addTemplate(object_tangible_storyteller_event_props_pr_lifeday_tree, "object/tangible/storyteller/event_props/pr_lifeday_tree.iff")
object_draft_schematic_dance_prop_prop_sparkler_r_s03 = object_draft_schematic_dance_prop_shared_prop_sparkler_r_s03:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_sparkler_r_s03, "object/draft_schematic/dance_prop/prop_sparkler_r_s03.iff")
local K, C, L = unpack(select(2, ...)) if C.Misc.ItemLevel ~= true then return end -- Lua API local _G = _G local C_Timer_After = C_Timer.After local floor = math.floor local pairs = pairs local select = select local strmatch = string.match local strsplit = string.split local tonumber = tonumber -- Wow API local GetDetailedItemLevelInfo = GetDetailedItemLevelInfo local GetInventoryItemLink = GetInventoryItemLink local GetInventorySlotInfo = GetInventorySlotInfo local GetItemGem = GetItemGem local GetItemInfo = GetItemInfo local UnitLevel = UnitLevel -- Global variables that we don't cache, list them here for mikk's FindGlobals script -- GLOBALS: CharacterFrame, InspectFrame,CreateFrame local _G = _G local equiped = {} -- Table to store equiped items local f = CreateFrame("Frame", nil, _G.PaperDollFrame) -- iLvel number frame local g -- iLvel number for Inspect frame f:RegisterEvent("ADDON_LOADED") f:RegisterEvent("PLAYER_LOGIN") -- Tooltip and scanning by Phanx @ http://www.wowinterface.com/forums/showthread.php?p=271406 local S_ITEM_LEVEL = "^" .. gsub(ITEM_LEVEL, "%%d", "(%%d+)") local scantip = CreateFrame("GameTooltip", "iLvlScanningTooltip", nil, "GameTooltipTemplate") scantip:SetOwner(UIParent, "ANCHOR_NONE") local function _getRealItemLevel(slotId, unit) local realItemLevel local hasItem = scantip:SetInventoryItem(unit, slotId) if not hasItem then return nil end -- With this we don't get ilvl for offhand if we equip 2h weapon for i = 2, scantip:NumLines() do -- Line 1 is always the name so you can skip it. local text = _G["iLvlScanningTooltipTextLeft"..i]:GetText() if text and text ~= "" then realItemLevel = realItemLevel or strmatch(text, S_ITEM_LEVEL) if realItemLevel then return tonumber(realItemLevel) end end end return realItemLevel end local function _updateItems(unit, frame) for i = 1, 17 do -- Only check changed player items or items without ilvl text, skip the shirt (4) and always update Inspects local itemLink = GetInventoryItemLink(unit, i) if i ~= 4 and ((frame == f and (equiped[i] ~= itemLink or frame[i]:GetText() == nil)) or frame == g) then if frame == f then equiped[i] = itemLink end local delay = false if itemLink then local _, _, quality = GetItemInfo(itemLink) if (quality == 6) and (i == 16 or i == 17) then local relics = {select(4, strsplit(":", itemLink))} for i = 1, 3 do local relicID = relics[i] ~= "" and relics[i] local relicLink = select(2, GetItemGem(itemLink, i)) if relicID and not relicLink then delay = true end end if delay then C_Timer_After(0.1, function() local realItemLevel = _getRealItemLevel(i, unit) realItemLevel = realItemLevel or "" frame[i]:SetText("|cffffff00"..realItemLevel) end) end end end local realItemLevel = _getRealItemLevel(i, unit) realItemLevel = realItemLevel or "" if realItemLevel and realItemLevel == 1 then realItemLevel = "" end frame[i]:SetText("|cffffff00"..realItemLevel) end end end local function _createStrings() local function _stringFactory(parent) local s = f:CreateFontString(nil, "OVERLAY", "SystemFont_Outline_Small") s:SetPoint("TOP", parent, "TOP", 0, -2) return s end f:SetFrameLevel(_G.CharacterHeadSlot:GetFrameLevel()) f[1] = _stringFactory(_G.CharacterHeadSlot) f[2] = _stringFactory(_G.CharacterNeckSlot) f[3] = _stringFactory(_G.CharacterShoulderSlot) f[15] = _stringFactory(_G.CharacterBackSlot) f[5] = _stringFactory(_G.CharacterChestSlot) f[9] = _stringFactory(_G.CharacterWristSlot) f[10] = _stringFactory(_G.CharacterHandsSlot) f[6] = _stringFactory(_G.CharacterWaistSlot) f[7] = _stringFactory(_G.CharacterLegsSlot) f[8] = _stringFactory(_G.CharacterFeetSlot) f[11] = _stringFactory(_G.CharacterFinger0Slot) f[12] = _stringFactory(_G.CharacterFinger1Slot) f[13] = _stringFactory(_G.CharacterTrinket0Slot) f[14] = _stringFactory(_G.CharacterTrinket1Slot) f[16] = _stringFactory(_G.CharacterMainHandSlot) f[17] = _stringFactory(_G.CharacterSecondaryHandSlot) f:Hide() end local function _createGStrings() local function _stringFactory(parent) local s = g:CreateFontString(nil, "OVERLAY", "SystemFont_Outline_Small") s:SetPoint("TOP", parent, "TOP", 0, -2) return s end g:SetFrameLevel(_G.InspectHeadSlot:GetFrameLevel()) g[1] = _stringFactory(_G.InspectHeadSlot) g[2] = _stringFactory(_G.InspectNeckSlot) g[3] = _stringFactory(_G.InspectShoulderSlot) g[15] = _stringFactory(_G.InspectBackSlot) g[5] = _stringFactory(_G.InspectChestSlot) g[9] = _stringFactory(_G.InspectWristSlot) g[10] = _stringFactory(_G.InspectHandsSlot) g[6] = _stringFactory(_G.InspectWaistSlot) g[7] = _stringFactory(_G.InspectLegsSlot) g[8] = _stringFactory(_G.InspectFeetSlot) g[11] = _stringFactory(_G.InspectFinger0Slot) g[12] = _stringFactory(_G.InspectFinger1Slot) g[13] = _stringFactory(_G.InspectTrinket0Slot) g[14] = _stringFactory(_G.InspectTrinket1Slot) g[16] = _stringFactory(_G.InspectMainHandSlot) g[17] = _stringFactory(_G.InspectSecondaryHandSlot) g:Hide() end local function OnEvent(self, event, ...) -- Event handler if event == "ADDON_LOADED" and (...) == "Blizzard_InspectUI" then self:UnregisterEvent(event) g = CreateFrame("Frame", nil, _G.InspectPaperDollFrame) -- iLevel number frame for Inspect _createGStrings() _createGStrings = nil _G.InspectPaperDollFrame:HookScript("OnShow", function(self) g:SetFrameLevel(_G.InspectHeadSlot:GetFrameLevel()) f:RegisterEvent("INSPECT_READY") f:RegisterEvent("UNIT_INVENTORY_CHANGED") _updateItems("target", g) g:Show() end) _G.InspectPaperDollFrame:HookScript("OnHide", function(self) f:UnregisterEvent("INSPECT_READY") f:UnregisterEvent("UNIT_INVENTORY_CHANGED") g:Hide() end) elseif event == "PLAYER_LOGIN" then self:UnregisterEvent(event) _createStrings() _createStrings = nil _G.PaperDollFrame:HookScript("OnShow", function(self) f:RegisterEvent("PLAYER_EQUIPMENT_CHANGED") f:RegisterEvent("ITEM_UPGRADE_MASTER_UPDATE") f:RegisterEvent("ARTIFACT_UPDATE") f:RegisterEvent("SOCKET_INFO_UPDATE") f:RegisterEvent("COMBAT_RATING_UPDATE") _updateItems("player", f) f:Show() end) _G.PaperDollFrame:HookScript("OnHide", function(self) f:UnregisterEvent("PLAYER_EQUIPMENT_CHANGED") f:UnregisterEvent("ITEM_UPGRADE_MASTER_UPDATE") f:UnregisterEvent("ARTIFACT_UPDATE") f:UnregisterEvent("SOCKET_INFO_UPDATE") f:UnregisterEvent("COMBAT_RATING_UPDATE") f:Hide() end) elseif event == "PLAYER_EQUIPMENT_CHANGED" or event == "ITEM_UPGRADE_MASTER_UPDATE" or event == "ARTIFACT_UPDATE" or event == "SOCKET_INFO_UPDATE" or event == "COMBAT_RATING_UPDATE" then if (...) == 16 then equiped[16] = nil equiped[17] = nil end _updateItems("player", f) elseif event == "INSPECT_READY" or event == "UNIT_INVENTORY_CHANGED" then _updateItems("target", g) end end f:SetScript("OnEvent", OnEvent)
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') function ENT:SpawnFunction( ply, tr ) if !tr.Hit then return end local SpawnPos = tr.HitPos + tr.HitNormal * 2 local ent = ents.Create( "crafting_table" ) ent:SetPos( SpawnPos ) ent:Spawn() ent:Activate() return ent end function ENT:Initialize() self:SetModel( GetConVar( "Craft_Config_Model" ):GetString() ) self:PhysicsInit( SOLID_VPHYSICS ) self:SetMoveType( MOVETYPE_VPHYSICS ) self:SetSolid( SOLID_VPHYSICS ) self:SetUseType( SIMPLE_USE ) self:SetHealth( GetConVar( "Craft_Config_MaxHealth" ):GetInt() ) self:SetMaxHealth( GetConVar( "Craft_Config_MaxHealth" ):GetInt() ) self:SetTrigger( true ) self:SetColor( CRAFT_CONFIG_COLOR ) if GetConVar( "Craft_Config_Material" ):GetString() != "" then self:SetMaterial( GetConVar( "Craft_Config_Material" ):GetString() ) end local phys = self:GetPhysicsObject() if (phys:IsValid()) then phys:Wake() end end util.AddNetworkString( "CraftingTableMenu" ) function ENT:Use( activator, caller ) if !caller:IsPlayer() then return end net.Start( "CraftingTableMenu" ) net.WriteEntity( self ) net.Send( caller ) end util.AddNetworkString( "StartCrafting" ) util.AddNetworkString( "CraftMessage" ) net.Receive( "StartCrafting", function( len, ply ) local self = net.ReadEntity() local ent = net.ReadString() local entname = net.ReadString() local CraftMaterials = CraftingTable[ent].Materials local SpawnItem = CraftingTable[ent].SpawnFunction if CraftMaterials then for k,v in pairs( CraftMaterials ) do if self:GetNWInt( "Craft_"..k ) < v then ply:SendLua( [[ chat.AddText( Color( 100, 100, 255 ), "[Crafting Table]: ", Color( 255, 255, 255 ), "Required items are not on the table!" ) surface.PlaySound( GetConVar( "Craft_Config_Fail_Sound" ):GetString() ) ]] ) return end end if SpawnItem then local validfunction = true SpawnItem( ply, self ) self:EmitSound( GetConVar( "Craft_Config_Craft_Sound" ):GetString() ) net.Start( "CraftMessage" ) net.WriteBool( validfunction ) net.WriteString( entname ) net.Send( ply ) else local validfunction = false net.Start( "CraftMessage" ) net.WriteBool( validfunction ) net.WriteString( entname ) net.Send( ply ) return end for k,v in pairs( CraftMaterials ) do self:SetNWInt( "Craft_"..k, self:GetNWInt( "Craft_"..k ) - v ) --Only removes required materials end end end ) util.AddNetworkString( "DropItem" ) net.Receive( "DropItem", function( len, ply ) local ent = net.ReadEntity() local item = net.ReadString() local e = ents.Create( item ) e:SetPos( ent:GetPos() + Vector( 0, 70, 0 ) ) e:Spawn() ent:SetNWInt( "Craft_"..item, ent:GetNWInt( "Craft_"..item ) - 1 ) ent:EmitSound( GetConVar( "Craft_Config_Drop_Sound" ):GetString() ) end ) function ENT:Touch( ent ) for k,v in pairs( CraftingIngredient ) do if self.TouchCooldown and self.TouchCooldown > CurTime() then return end if k == ent:GetClass() then self:SetNWInt( "Craft_"..ent:GetClass(), self:GetNWInt( "Craft_"..ent:GetClass() ) + 1 ) self:EmitSound( GetConVar( "Craft_Config_Place_Sound" ):GetString() ) local effectdata = EffectData() effectdata:SetOrigin( ent:GetPos() ) effectdata:SetScale( 2 ) util.Effect( "ManhackSparks", effectdata ) ent:Remove() self.TouchCooldown = CurTime() + 0.1 --Small cooldown since ent:Touch runs multiple times before the for loop has time to break break end end end function ENT:OnTakeDamage( dmg ) if self:Health() <= 0 and !self.Exploding then if GetConVar( "Craft_Config_Should_Explode" ):GetBool() then self.Exploding = true --Prevents a bunch of fires from spawning at once causing the server to hang for a few seconds if VFire is installed local e = ents.Create( "env_explosion" ) e:SetPos( self:GetPos() ) e:Spawn() e:SetKeyValue( "iMagnitude", 200 ) e:Fire( "Explode", 0, 0 ) self:Remove() else self:EmitSound( GetConVar( "Craft_Config_Destroy_Sound" ):GetString() ) self:Remove() end return end local damage = dmg:GetDamage() self:SetHealth( self:Health() - damage ) end
function Emmy:GetEventLiterals() table.sort(APIDocumentation.events, function(a, b) return a.LiteralName < b.LiteralName end) local t = {} tinsert(t, "---@alias Event") for _, event in ipairs(APIDocumentation.events) do local line = format("'\"%s\"'", event.LiteralName) local payload = event:GetPayloadString(false, false) if #payload > 0 then line = line.." # `"..payload.."`" end tinsert(t, line) end return table.concat(t, "\n---| ").."\n" end local cvar_path = "Lua/Data/cache/CVars.lua" local cvar_url = "https://raw.githubusercontent.com/Ketho/BlizzardInterfaceResources/live/Resources/CVars.lua" Util:CacheFile(cvar_path, cvar_url) local cvarsDump = require(cvar_path:gsub("%.lua", "")) function Emmy:GetCVarLiterals() local t = {} tinsert(t, "---@alias CVar") local sorted = Util:SortTable(cvarsDump[1].var) for _, cvar in pairs(sorted) do tinsert(t, format("'\"%s\"'", cvar)) end return table.concat(t, "\n---| ").."\n" end
local sw, sh = ScrW(), ScrH() function GM:HUDPaint() DrawBWHealthBar() surface.SetDrawColor(MAIN_BLACKCOLOR_FADE_LESS) surface.DrawRect(0,0,sw,17) draw.SimpleText("F1 - Help | F2 - Factions", "HUDFont", 5) --surface.SetDrawColor(MAIN_WHITECOLOR) --surface.DrawLine(0,17,sw,17) end
--////////////////////////////////// --//// Holystone Productions //// --//// Copy Right //// --//// Blizzlike Repack v 1.0 //// --////////////////////////////////// local DeathspeakerServant = 36805 function DeathspeakerServant_OnCombat(punit, event) punit:RegisterEvent("DeathspeakerServant_ChaosBolt", 10000, 1) end function DeathspeakerServant_ChaosBolt(punit, event) punit:FullCastSpellOnTarget(69576, punit:GetRandomPlayer(0)) punit:RegisterEvent("DeathspeakerServant_ConsumingShadows", 5000, 1) end function DeathspeakerServant_ConsumingShadows(punit, event) local target = punit:GetRandomFriend() if (target ~= nil) then punit:FullCastSpellOnTarget(69405, target) punit:RegisterEvent("DeathspeakerServant_CurseofAgony", 8000, 1) end end function DeathspeakerServant_CurseofAgony(punit, event) local target = punit:GetRandomFriend() if (target ~= nil) then punit:CastSpellOnTarget(69404, target) punit:RegisterEvent("DeathspeakerServant_ChaosBolt", 5000, 1) end end function DeathspeakerServant_OnLeaveCombat(punit, event) punit:RemoveEvents() end RegisterUnitEvent(DeathspeakerServant, 1, "DeathspeakerServant_OnCombat") RegisterUnitEvent(DeathspeakerServant, 2, "DeathspeakerServant_OnLeaveCombat")
-- vim : ft=lua ts=2 sw=2 et: require "col" require "some" require "num" require "sym" require "row" require "cols" require "rows" if not pcall(debug.getlocal,4,1) then print(1) end
local Ltn12 = require "ltn12" local Json = require "cjson" local Http = require "socket.http" local Https = require "ssl.https" local M = {} function M.json (options) assert (type (options) == "table") local result = {} options.sink = Ltn12.sink.table (result) options.method = options.method or "GET" options.body = options.body and Json.encode (options.body) options.source = options.body and Ltn12.source.string (options.body) options.headers = options.headers or {} options.headers ["Content-length"] = options.body and #options.body or 0 options.headers ["Content-type" ] = options.body and "application/json" options.headers ["Accept" ] = "application/json" local http = options.url:match "https://" and Https or Http local _, status, _, _ = http.request (options) result = table.concat (result) if result then local ok, json = pcall (Json.decode, result) if ok then result = json end end return result, status end return M
local function register(basename, description, texture) local nodename_single = "scifi_nodes:" .. basename .. "_pane" local nodename_double = "scifi_nodes:" .. basename .. "_pane_double" local nodename_offset = "scifi_nodes:" .. basename .. "_pane_offset" local recipe_ingredient = "scifi_nodes:" .. basename -- single height minetest.register_node(nodename_single, { description = description, drawtype = "nodebox", tiles = { texture }, wield_image = texture, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, is_ground_content = false, node_box = { type = "fixed", fixed = {{-0.5, -0.5, -0.03125, 0.5, 0.5, 0.03125}}, }, selection_box = { type = "fixed", fixed = {{-0.5, -0.5, -0.25, 0.5, 0.5, 0.25}}, }, groups = {cracky = 3, oddly_breakable_by_hand = 3}, use_texture_alpha = "blend", sounds = default.node_sound_glass_defaults() }) -- double height minetest.register_node(nodename_double, { description = description, drawtype = "nodebox", tiles = { texture }, wield_image = texture, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, is_ground_content = false, node_box = { type = "fixed", fixed = {{-0.5, -0.5, -0.03125, 0.5, 1.5, 0.03125}}, }, selection_box = { type = "fixed", fixed = {{-0.5, -0.5, -0.25, 0.5, 1.5, 0.25}}, }, groups = {cracky = 3, oddly_breakable_by_hand = 3}, use_texture_alpha = "blend", sounds = default.node_sound_glass_defaults() }) -- single height with offset minetest.register_node(nodename_offset, { description = description, drawtype = "nodebox", tiles = { texture }, wield_image = texture, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, is_ground_content = false, node_box = { type = "fixed", fixed = {{-0.5, -0.5, 0.96875, 0.5, 0.5, 1.03125}}, }, selection_box = { type = "fixed", fixed = {{-0.5, -0.5, 0.75, 0.5, 0.5, 1.25}}, }, groups = {cracky = 3, oddly_breakable_by_hand = 3}, use_texture_alpha = "blend", sounds = default.node_sound_glass_defaults() }) -- register recipes minetest.register_craft({ output = nodename_single .. " 16", recipe = { {recipe_ingredient} }, }) minetest.register_craft({ output = nodename_double .. " 16", recipe = { {recipe_ingredient}, {recipe_ingredient} }, }) minetest.register_craft({ output = nodename_offset, type = "shapeless", recipe = {nodename_single}, }) end register("octrng", "Orange Octagon Glass pane", "scifi_nodes_octrng.png") register("octgrn", "Green Octagon Glass pane", "scifi_nodes_octgrn.png") register("octbl", "Blue Octagon Glass pane", "scifi_nodes_octbl.png") register("octppl", "Purple Octagon Glass pane", "scifi_nodes_octppl.png") register("glass", "Dark Glass pane", "scifi_nodes_glass.png")
player.GetAllOmit = function(plyOmit) local players = {} for _, ply in pairs(player.GetAll()) do if ply ~= plyOmit then table.insert(players, ply) end end return players end
local gears = require("gears") local awful = require("awful") local hotkeys_popup = require('awful.hotkeys_popup').widget local modkey = require('configuration.keys.mod').mod_key local apps = require('configuration.apps') local leave_open_mode = function () root.keys(require('configuration.keys.global')) end local openkeys = gears.table.join( awful.key( { modkey }, "F1", hotkeys_popup.show_help, { description = "show help", group = "open mode" } ), awful.key( {}, "Escape", leave_open_mode, { description = "leave open mode", group = "open mode" } ), awful.key( {}, "w", function () awful.spawn(apps.default.web_browser) leave_open_mode() end, { description = "open default browser", group = "open mode" } ), awful.key( {}, "m", function () awful.spawn(apps.default.music_player) leave_open_mode() end, { description = "open default music player", group = "open mode" } ), awful.key( {}, "e", function () awful.spawn(apps.default.text_editor) leave_open_mode() end, { description = "open default text editor", group = "open mode" } ) ) return openkeys
-- tolua: enumerate class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: enumerate.lua,v 1.3 2000/01/24 20:41:15 celes Exp $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements, or modifications. -- Enumerate class -- Represents enumeration -- The following fields are stored: -- {i} = list of constant names classEnumerate = { } classEnumerate.__index = classEnumerate setmetatable(classEnumerate,classFeature) -- register enumeration function classEnumerate:register (pre) if not self:check_public_access() then return end pre = pre or '' local nspace = getnamespace(classContainer.curr) local i=1 while self[i] do if self.lnames[i] and self.lnames[i] ~= "" then output(pre..'tolua_constant(tolua_S,"'..self.lnames[i]..'",'..nspace..self[i]..');') end i = i+1 end end -- Print method function classEnumerate:print (ident,close) print(ident.."Enumerate{") print(ident.." name = "..self.name) local i=1 while self[i] do print(ident.." '"..self[i].."'("..self.lnames[i].."),") i = i+1 end print(ident.."}"..close) end function emitenumprototype(type) output("int tolua_is" .. string.gsub(type,"::","_") .. " (lua_State* L, int lo, int def, tolua_Error* err);") end _global_output_enums = {} -- write support code function classEnumerate:supcode () if _global_output_enums[self.name] == nil then _global_output_enums[self.name] = 1 output("int tolua_is" .. string.gsub(self.name,"::","_") .. " (lua_State* L, int lo, int def, tolua_Error* err)") output("{") output("if (!tolua_isnumber(L,lo,def,err)) return 0;") output("lua_Number val = tolua_tonumber(L,lo,def);") output("return val >= " .. self.min .. ".0 && val <= " ..self.max .. ".0;") output("}") end end -- Internal constructor function _Enumerate (t,varname) setmetatable(t,classEnumerate) append(t) appendenum(t) if varname and varname ~= "" then if t.name ~= "" then Variable(t.name.." "..varname) else local ns = getcurrnamespace() warning("Variable "..ns..varname.." of type <anonymous enum> is declared as read-only") Variable("tolua_readonly int "..varname) end end local parent = classContainer.curr if parent then t.access = parent.curr_member_access t.global_access = t:check_public_access() end return t end -- Constructor -- Expects a string representing the enumerate body function Enumerate (n,b,varname) b = string.gsub(b, ",[%s\n]*}", "\n}") -- eliminate last ',' local t = split(strsub(b,2,-2),',') -- eliminate braces local i = 1 local e = {n=0} local value = 0 local min = 0 local max = 0 while t[i] do local tt = split(t[i],'=') -- discard initial value e.n = e.n + 1 e[e.n] = tt[1] tt[2] = tonumber(tt[2]) if tt[2] == nil then tt[2] = value end value = tt[2] + 1 -- advance the selected value if tt[2] > max then max = tt[2] end if tt[2] < min then min = tt[2] end i = i+1 end -- set lua names i = 1 e.lnames = {} local ns = getcurrnamespace() while e[i] do local t = split(e[i],'@') e[i] = t[1] if not t[2] then t[2] = applyrenaming(t[1]) end e.lnames[i] = t[2] or t[1] _global_enums[ ns..e[i] ] = (ns..e[i]) i = i+1 end e.name = n e.min = min e.max = max if n ~= "" then _enums[n] = true Typedef("int "..n) end return _Enumerate(e, varname) end
-- I will not be releasing the source of the chat as I still use it in my latest games
local std, _ENV = _ENV local pattern_rules_lib = std.require 'split_to_chunks_pattern_rules' local export = {} function export.make_options_from_pg_dump_splitter(options) return { io_size = options.io_size, lex_consts = options.lex_consts, lex_trans_more = options.lex_trans_more, make_pattern_rules = options.make_pattern_rules, lexemes_in_pt_ctx = options.lexemes_in_pt_ctx, save_unprocessed = options.save_unprocessed, } end function export.lex_ctx_iter_item(iter_ctx) while true do if #iter_ctx.items > 0 then return std.table.unpack(std.table.remove(iter_ctx.items)) end if iter_ctx.final then return end local buf = iter_ctx.dump_fd:read(iter_ctx.options.io_size) local items = {} local function yield(...) std.table.insert(items, std.table.pack(...)) end iter_ctx.lex_ctx:feed(buf, yield, iter_ctx.options.lex_trans_more) while true do local item = std.table.remove(items) if not item then break end std.table.insert(iter_ctx.items, item) end if not buf then iter_ctx.final = true end end end function export.lex_ctx_iter(lex_ctx, dump_fd, options) local iter_ctx = { lex_ctx = lex_ctx, dump_fd = dump_fd, options = options, final = false, items = {} } return export.lex_ctx_iter_item, iter_ctx end export.rule_ctx_proto = {} function export.rule_ctx_proto:put_value(key, value) if not self.value_version then self.value_version = {} end self.value_version[key] = value end function export.rule_ctx_proto:dup_value_version(to_pt) if not self.value_version then return end local next_val_ver = {} self.pt_ctx.value_versions[to_pt] = next_val_ver for k, v in std.pairs(self.value_version) do next_val_ver[k] = v end end function export.rule_ctx_proto:push_pt(next_pt) std.table.insert(self.next_pts, next_pt) self:dup_value_version(next_pt) end function export.rule_ctx_proto:push_pt_soon(next_pt) std.table.insert(self.next_pts_soon, next_pt) self:dup_value_version(next_pt) end function export.rule_ctx_proto:make_shifted_pt() return std.table.move(self.pt, 3, #self.pt, 2, {self.obj_type}) end function export.rule_ctx_proto:push_shifted_pt() local next_pt = self:make_shifted_pt() self:push_pt(next_pt) end function export.kw_rule_handler(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_subtype == options.lex_consts.subtype_simple_ident and lexeme.translated_value == rule_ctx.rule[2] then rule_ctx:push_shifted_pt() end end function export.ss_rule_handler(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_subtype == options.lex_consts.subtype_special_symbols and lexeme.value == rule_ctx.rule[2] then rule_ctx:push_shifted_pt() end end function export.rs_rule_handler(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_subtype == options.lex_consts.subtype_random_symbols and lexeme.value == rule_ctx.rule[2] then rule_ctx:push_shifted_pt() end end function export.make_ident_rule_handler() -- reserved key words got from -- https://www.postgresql.org/docs/11/static/sql-keywords-appendix.html local reserved_kw = {'all', 'analyse', 'analyze', 'and', 'any', 'array', 'as', 'asc', 'asymmetric', 'both', 'case', 'cast', 'check', 'collate', 'column', 'constraint', 'create', 'current_catalog', 'current_date', 'current_role', 'current_time', 'current_timestamp', 'current_user', 'default', 'deferrable', 'desc', 'distinct', 'do', 'else', 'end', 'except', 'false', 'fetch', 'for', 'foreign', 'from', 'grant', 'group', 'having', 'in', 'initially', 'intersect', 'into', 'lateral', 'leading', 'limit', 'localtime', 'localtimestamp', 'not', 'null', 'offset', 'on', 'only', 'or', 'order', 'placing', 'primary', 'references', 'returning', 'select', 'session_user', 'some', 'symmetric', 'table', 'then', 'to', 'trailing', 'true', 'union', 'unique', 'user', 'using', 'variadic', 'when', 'where', 'window', 'with'} local reserved_kw_set = {} for i, v in std.ipairs(reserved_kw) do reserved_kw_set[v] = true end return function(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_type == options.lex_consts.type_ident and not (lexeme.lex_subtype == options.lex_consts.subtype_simple_ident and reserved_kw_set[lexeme.translated_value]) then rule_ctx:put_value(rule_ctx.rule[2], lexeme.translated_value) rule_ctx:push_shifted_pt() end end end function export.str_rule_handler(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_type == options.lex_consts.type_string then rule_ctx:put_value(rule_ctx.rule[2], lexeme.translated_value) rule_ctx:push_shifted_pt() end end function export.op_ident_rule_handler(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_subtype == options.lex_consts.subtype_random_symbols then rule_ctx:put_value(rule_ctx.rule[2], lexeme.value) rule_ctx:push_shifted_pt() end end function export.en_rule_handler(rule_ctx, lexeme, options) if lexeme.level == 1 and lexeme.lex_subtype == options.lex_consts.subtype_special_symbols and lexeme.value == ';' then local obj_priority = rule_ctx.rule[2] or 0 if rule_ctx.pt_ctx.obj_type and rule_ctx.pt_ctx.obj_type ~= rule_ctx.obj_type and rule_ctx.pt_ctx.obj_priority == obj_priority then std.error('pos(' .. rule_ctx.pt_ctx.location.lpos .. ') line(' .. rule_ctx.pt_ctx.location.lline .. ') col(' .. rule_ctx.pt_ctx.location.lcol .. '): ambiguous obj_type: ' .. rule_ctx.pt_ctx.obj_type .. ' pri(' .. rule_ctx.pt_ctx.obj_priority .. ')' .. ' or ' .. rule_ctx.obj_type .. ' pri(' .. obj_priority .. ')') elseif not rule_ctx.pt_ctx.obj_type or rule_ctx.pt_ctx.obj_priority < obj_priority then rule_ctx.pt_ctx.obj_type = rule_ctx.obj_type rule_ctx.pt_ctx.obj_priority = obj_priority rule_ctx.pt_ctx.obj_values = rule_ctx.value_version or {} end end end function export.any_rule_handler(rule_ctx, lexeme, options) local next_pt = rule_ctx:make_shifted_pt() rule_ctx:push_pt_soon(next_pt) rule_ctx:push_pt(rule_ctx.pt) end function export.fork_rule_handler(rule_ctx, lexeme, options) for i = 2, #rule_ctx.rule do local fork_rules = rule_ctx.rule[i] local next_pt = std.table.move(fork_rules, 1, #fork_rules, 2, {rule_ctx.obj_type}) std.table.move(rule_ctx.pt, 3, #rule_ctx.pt, #next_pt + 1, next_pt) rule_ctx:push_pt_soon(next_pt) end end function export.rep_rule_handler(rule_ctx, lexeme, options) -- rule: repeat a sequence (in arguments) zero, one or several times local next_pt_with_seq = std.table.move(rule_ctx.rule, 2, #rule_ctx.rule, 2, {rule_ctx.obj_type}) std.table.insert(next_pt_with_seq, rule_ctx.rule) std.table.move(rule_ctx.pt, 3, #rule_ctx.pt, #next_pt_with_seq + 1, next_pt_with_seq) local next_pt_wo_seq = rule_ctx:make_shifted_pt() rule_ctx:push_pt_soon(next_pt_with_seq) rule_ctx:push_pt_soon(next_pt_wo_seq) end function export.make_pattern_rules(options) local handlers = { kw_rule_handler = export.kw_rule_handler, ss_rule_handler = export.ss_rule_handler, rs_rule_handler = export.rs_rule_handler, ident_rule_handler = export.make_ident_rule_handler(), str_rule_handler = export.str_rule_handler, op_ident_rule_handler = export.op_ident_rule_handler, en_rule_handler = export.en_rule_handler, any_rule_handler = export.any_rule_handler, fork_rule_handler = export.fork_rule_handler, rep_rule_handler = export.rep_rule_handler, } return pattern_rules_lib.make_pattern_rules(handlers) end function export.process_pt_ctx(pt_ctx, lex_type, lex_subtype, location, value, translated_value, level, options) local next_pts = {} local next_pts_soon = pt_ctx.pts local lexeme = { lex_type = lex_type, lex_subtype = lex_subtype, location = location, value = value, translated_value = translated_value, level = level, } if options.lexemes_in_pt_ctx then if not pt_ctx.lexemes then pt_ctx.lexemes = {} end std.table.insert(pt_ctx.lexemes, lexeme) end repeat local pts = next_pts_soon next_pts_soon = {} for pt_i, pt in std.ipairs(pts) do local obj_type = pt[1] local rule = pt[2] if not rule then goto continue end local rule_handler = rule[1] local rule_ctx = std.setmetatable( { pt_ctx = pt_ctx, next_pts = next_pts, next_pts_soon = next_pts_soon, pt = pt, obj_type = obj_type, rule = rule, value_version = pt_ctx.value_versions[pt], }, {__index = export.rule_ctx_proto} ) rule_handler(rule_ctx, lexeme, options) ::continue:: end until #next_pts_soon == 0 pt_ctx.pts = next_pts end function export.extract_dump_data(dump_fd, begin_pos, end_pos) local saved_pos = dump_fd:seek() dump_fd:seek('set', begin_pos - 1) -- begin_pos is 1 based local data = dump_fd:read(end_pos - begin_pos) dump_fd:seek('set', saved_pos) return data end function export.split_to_chunks(lex_ctx, dump_fd, pattern_rules, chunks_ctx, hooks_ctx, options) local level = 1 local pt_ctx for lex_type, lex_subtype, location, value, translated_value in export.lex_ctx_iter(lex_ctx, dump_fd, options) do if lex_subtype == options.lex_consts.subtype_special_symbols and value == ')' then level = level - 1 if level < 1 then std.error('pos(' .. location.lpos .. ') line(' .. location.lline .. ') col(' .. location.lcol .. '): level < 1') end end if hooks_ctx.lexeme_handler then lex_type, lex_subtype, location, value, translated_value, level = hooks_ctx:lexeme_handler( lex_type, lex_subtype, location, value, translated_value, level) end std.assert(lex_type, 'no lex_type') std.assert(lex_subtype, 'no lex_subtype') std.assert(location, 'no location') std.assert(value, 'no value') std.assert(level, 'no level') if lex_type ~= options.lex_consts.type_comment then local end_pos = location.lpos + #value if not pt_ctx then pt_ctx = { pts = pattern_rules, location = location, value_versions = std.setmetatable({}, {__mode = 'k'}), } end export.process_pt_ctx(pt_ctx, lex_type, lex_subtype, location, value, translated_value, level, options) if lex_subtype == options.lex_consts.subtype_special_symbols and level == 1 and value == ';' then local dump_data = export.extract_dump_data(dump_fd, pt_ctx.location.lpos, end_pos) local skip if pt_ctx.obj_type then if hooks_ctx.processed_pt_handler then skip = hooks_ctx:processed_pt_handler(pt_ctx, dump_data) else skip = false end if not skip then chunks_ctx:add(pt_ctx.obj_type, pt_ctx.obj_values, dump_data) end else if hooks_ctx.unprocessed_pt_handler then skip = hooks_ctx:unprocessed_pt_handler(pt_ctx, dump_data, pt_ctx.error_dump_data) else skip = options.save_unprocessed end if not skip then local error_dump_data = pt_ctx.error_dump_data or '(no error_dump_data)' std.error('pos(' .. pt_ctx.location.lpos .. ') line(' .. pt_ctx.location.lline .. ') col(' .. pt_ctx.location.lcol .. '): unprocessed pattern:\n' .. dump_data .. '\n' .. ('-'):rep(60) .. '\n' .. error_dump_data) end chunks_ctx:add(pt_ctx.obj_type or 'unprocessed', pt_ctx.obj_values or {}, dump_data) end pt_ctx = nil elseif #pt_ctx.pts == 0 and not pt_ctx.error_dump_data then pt_ctx.error_dump_data = export.extract_dump_data(dump_fd, pt_ctx.location.lpos, end_pos) end end if lex_subtype == options.lex_consts.subtype_special_symbols and value == '(' then level = level + 1 end end if pt_ctx then local dump_data = export.extract_dump_data(dump_fd, pt_ctx.location.lpos, dump_fd:seek() + 1) local skip if hooks_ctx.unprocessed_eof_pt_handler then skip = hooks_ctx:unprocessed_eof_pt_handler(pt_ctx, dump_data) else skip = false end if not skip then std.error('pos(' .. pt_ctx.location.lpos .. ') line(' .. pt_ctx.location.lline .. ') col(' .. pt_ctx.location.lcol .. '): unprocessed pattern at EOF: ' .. dump_data) end end end return export -- vi:ts=2:sw=2:et
-- Services local UserInputService = game:GetService("UserInputService") local keybindsystem = { bindings = {} } -- loading in entities with keybinds into the keybind system function keybindsystem:Load(entity) -- sice we have a keybind component, we can query that local keybind = entity:GetComponent('keybind') -- we can also query our states to determine if binds are loaded local states = entity:GetComponent('state') table.insert(self.bindings, keybind) states.bindingsloaded = true end -- Using the inputobject to pair up the keybinds with the pressed key UserInputService.InputBegan:Connect(function(inputObject: InputObject) for _, bind in pairs(keybindsystem.bindings) do if bind.key == inputObject.KeyCode then -- we can simply call the callback method since we have that -- defined in the keybind bind.callback() end end end) return keybindsystem
#!/usr/bin/env lua --[[ Copyright © 2015 Jon Allen <ylixir@gmail.com> This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the COPYING file for more details. ]]-- --[[ This file downloads and formats the word lists ]]-- local function get_line_iterator(skip_lines,get_lines) local i = 0 return function(file) return function() while i<skip_lines do file:read('*l') i=i+1 end if i<get_lines+skip_lines then i=i+1 return file:read('*l') else return nil end end end end local diceware_server = 'http://world.std.com/~reinhold/' local diceware_files = { beale = { file = 'beale.wordlist.asc', server = diceware_server, line_iter = get_line_iterator(2,6^5), line_filter = function(s) return s:sub(7) end }, diceware = { file = 'diceware.wordlist.asc', server = diceware_server, line_iter = get_line_iterator(2,6^5), line_filter = function(s) return s:sub(7) end }, diceware8k = { file = 'diceware8k.txt', server = diceware_server, line_iter = get_line_iterator(0,2^13), line_filter = function(s) return s end } } for k,v in pairs(diceware_files) do --first download the files --if you are super paranoid then this command probably routes through two --external programs. namely the shell and wget. os.execute('/bin/env wget -O '..v.file..' '..v.server..v.file) --after the file is downloaded, format it to be super easy to parse local fin = assert(io.open(v.file,'r')) local fout = assert(io.open(k..'.list','w')) print(v.line_iter(fin)) for line in v.line_iter(fin) do fout:write(v.line_filter(line)..'\n') end fin:close() fout:close() end
BaseState = Class {} function BaseState:init() end function BaseState:enter() end function BaseState:exit() end function BaseState:update(dt) end function BaseState:render() end
local provider = function() return vim.fn.expand "%:t" end return { provider = provider, }
local Roact = require(game:GetService("ReplicatedStorage").Roact) local Settings = require(script.Parent.Parent.Parent.Parent:WaitForChild("Settings")) local PlayerComponent = require(script.Parent.Player) local BlipContainerComponent = require(script.Parent.BlipContainer) local events = script.Parent.Parent.Parent.Events local mainMinimap = Roact.Component:extend("MainMinimap") function mainMinimap:init() end function mainMinimap:render() local mapsize = Settings["Gui"]["mapSize"] Settings["Y"] = (mapsize.Y.Offset / (math.tan(math.rad(35)) * 2)) + (mapsize.X.Offset / 2) return Roact.createElement("ScreenGui", { Name = "Minimap"; ResetOnSpawn = false; Enabled = Settings["Technical"]["Visible"]; ZIndexBehavior = Enum.ZIndexBehavior.Global; }, { Background = Roact.createElement("Frame", { --This is the border. Name = "MinimapBorder"; Size = Settings["Gui"]["mapSize"] + UDim2.new(0, Settings["Gui"]["borderSize"]*2, 0, Settings["Gui"]["borderSize"]*2); AnchorPoint = Settings["Gui"]["anchorPoint"]; Position = Settings["Gui"]["mapPosition"]; BackgroundColor3 = Settings["Gui"]["borderColor"]; BackgroundTransparency = Settings["Gui"]["borderTransparency"]; BorderSizePixel = 0; },{ Roact.createElement(PlayerComponent); Roact.createElement("UICorner", { CornerRadius = Settings["Gui"]["borderCornerRoundness"] }); Map = Roact.createElement("ViewportFrame", { --This is the map gui. Name = "Map"; Size = Settings["Gui"]["mapSize"]; AnchorPoint = Vector2.new(.5,.5); Position = UDim2.new(.5,0,.5,0); BackgroundColor3 = Settings["Gui"]["mapColor"]; BackgroundTransparency = Settings["Gui"]["mapTransparency"]; BorderSizePixel = 0; CurrentCamera = game.Workspace.MinimapCamera; }, { Roact.createElement("UICorner", { CornerRadius = Settings["Gui"]["mapCornerRoundness"]; }); Roact.createElement("Part", { --The is the map that will be displayed :D Size = Vector3.new(Settings["Map"]["size"].X / Settings["Divide"], 0, Settings["Map"]["size"].Y / Settings["Divide"]); Position = Settings["Map"]["mapCenter"] and Vector3.new(Settings["Map"]["mapCenter"].X, 0, Settings["Map"]["mapCenter"].Z) / Settings["Divide"] or Vector3.new(0,0,0); Orientation = Vector3.new(0, Settings["Technical"]["mapRotation"], 0); Transparency = 1 }, { Roact.createElement("Decal", { --Put the textureid here :DDDDDDD Texture = "rbxassetid://"..Settings["Map"]["mapId"]; Face = "Top"; }) }); }); BlipContainer = Roact.createElement(BlipContainerComponent) }) }) end function mainMinimap:didMount() self.updateEvent = events.Update.Event:connect(function() self:setState(function(state) return{ } end) end) end function mainMinimap:willUnmount() self.updateEvent:Disconnect() end return mainMinimap
local componentCost = { [components.Weapon] = 10, [components.Wand] = 12, [components.Edible] = 3, [components.Drinkable] = 5, [components.Readable] = 7, [components.Equipment] = 15, } local rarityModifier = { common = 1, uncommon = 2, rare = 3, mythic = 4, } local lootUtil = {} function lootUtil.generateBasePrice(actor) local price = 0 for k, v in pairs(componentCost) do if actor:hasComponent(k, "loot") then price = price + v end end return price * rarityModifier[actor.rarity] end function lootUtil.generateLoot(comp, rarity) local found = {} local rarity = rarity or "mythic" local rarityMod = rarityModifier[rarity] for k, actor in pairs(actors) do local costComponent = actor:getComponent(components.Cost) if costComponent and rarityModifier[costComponent.rarity] <= rarityMod and actor:hasComponent(comp) then table.insert(found, actor) end end return found[love.math.random(1, #found)]() end return lootUtil
--this = SceneNode() --ownerIndex = Number() SwarmBall = {name="SwarmBall"} function SwarmBall.new() local self = {} local calculatedFutherPosition = Vec3() local timeLeft = 0.0 local speed = 6.0 local node = SceneNode() this:findNodeByTypeTowardsRoot(NodeId.playerNode):addChild(node) local explosion = ParticleSystem( "ExplosionFireBall" ) local effect2 = ParticleSystem( "FireBall" ) node:addChild(explosion:toSceneNode()) node:addChild(effect2:toSceneNode()) effect2:setVisible(false) local velocity = Vec3() local position = Vec3() local targetIndex = 0 local detonationRange = 0.0 local burnTime = 0.0 local fireDPS = 0.0 local damage = 0.0 local smartTargeting = 0.0 local pathList = 0 local shieldAreaIndex = 0 local estimatedTime = 0.0 --stages of life in projectile local LIFE_STAGE_TARGET_MIDPOINT = 1 local LIFE_STAGE_TARGET_ALIVE = 2 local LIFE_STAGE_TARGET_DEAD = 3 local LIFE_STAGE_PREPPING_TO_DIE = 4 local lifeStage = 0 local pointLight = PointLight(Vec3(0,0,0),Vec3(4,2,0),1.5) pointLight:setCutOff(0.1) pointLight:setVisible(false) node:addChild(pointLight:toSceneNode()) -- -- private functions -- local function basicLengthEstimation(position,soul) local targetPos = soul.position --do a ruff estimation, based on travel time to position plus 1s for good messure local length = (targetPos-position):length() local estimatedTime2 = (length/speed)+1.0 --another ruff estimation based on position + traveling time before impact targetPos = targetPos + (soul.velocity*estimatedTime2)--just a prediction of futer pos return (targetPos-position):length()--+8.0 is estimated path length in space, because there is not straight lines end local function estimateTimeAndPlotPath(futurePos,pVelocity,npcMovment,estimatedLength,defaultAmplitude) --local amplitude = estimatedLength*0.2 --y=0.2+(x*0.19)^2.5 local amplitude = (defaultAmplitude>0.1) and defaultAmplitude or 0.2+math.pow(estimatedLength*0.1,3.0) --print("estimateTimeAndPlotPath(estimatedLength="..estimatedLength..", amplitude="..amplitude..")\n") --npcMovment = Vec3(npcMovment.x,0.0,npcMovment.z) local s1 = position local sd = position+(pVelocity*amplitude) local e1 = futurePos+Vec3(0,0.15,0) local ed = futurePos+Vec3(0,0.15,0)-(npcMovment*amplitude) local detailLevel = (estimatedLength<2) and 6 or estimatedLength*2.0 moveList = math.bezierCurve3D(s1, sd, ed, e1, detailLevel) pathList:setList( moveList ) return pathList:getLength()/speed end local function PlotPathToMidPoint(length,position,soul) calculatedFutherPosition = soulManager:getFuturePos(targetIndex,length/speed) lifeStage = LIFE_STAGE_TARGET_MIDPOINT local midPoint = (position+calculatedFutherPosition)*0.5 midPoint.y = position.y + 2.0 local enemyAt = (calculatedFutherPosition-position) enemyAt = Vec3(enemyAt.x,0.0,enemyAt.z):normalizeV() return estimateTimeAndPlotPath(midPoint,velocity,enemyAt,length,2.0) end local function PlotPathToAbove(length,soul) estimatedTime = length/speed lifeStage = LIFE_STAGE_TARGET_MIDPOINT calculatedFutherPosition = soulManager:getFuturePos(targetIndex,estimatedTime) estimatedTime = estimateTimeAndPlotPath(calculatedFutherPosition+Vec3(0.0,3.0,0.0),velocity*2.0,-soul.velocity:normalizeV()*2.0,length,2.0) end local function plotPathToTarget(length,soul) repeat estimatedTime = length/speed lifeStage = LIFE_STAGE_TARGET_ALIVE --the final estimation on the position calculatedFutherPosition = soulManager:getFuturePos(targetIndex,estimatedTime) --the final estimated time to travel local estimatedLength = estimatedTime*speed local preEstimation = estimatedTime --print("detailLevel="..estimatedLength.."\n") estimatedTime = estimateTimeAndPlotPath(calculatedFutherPosition,velocity,soul.velocity:normalizeV()*2.0,estimatedLength,3.0) --print("FirstEstimation(pre="..preEstimation..", calculated="..estimatedTime..")\n") length = estimatedTime*speed--just incase next line fails until math.abs(estimatedTime-preEstimation)<0.10 end local function endLife() pointLight:pushRangeChange(0.1,0.8) lifeStage = LIFE_STAGE_PREPPING_TO_DIE effect2:setVisible(false) timeLeft = 1.0 explosion:activate(position,velocity) --this:attackTargetPos(position,DRONE_DETONATION_RANGE) end local function manageIfTargetIsNotAvailable() if lifeStage~=LIFE_STAGE_TARGET_DEAD and soulManager:isAlive(targetIndex)==false then targetIndex = 0 -- soulManager:updateSoul(position,Vec3(),1.0) -- targetingSystem:setDefault(position) -- targetingSystem:selectAllInRange() -- targetingSystem:scoreClosest(10) -- if smartTargeting>0.5 then -- targetingSystem:scoreName("fireSpirit",-100) -- targetingSystem:scoreState(2,-10)--[burning==2] -- end -- targetIndex = targetingSystem:getTargetMaxScore(-75) if targetIndex==0 then endLife() end end end -- -- public functions -- function self.init(table) timer:start("init") targetIndex = billboard:getInt("targetIndex") speed = 6.0--billboard:getFloat("fireballSpeed") velocity = billboard:getVec3("escapeVector"):normalizeV() position = billboard:getVec3("bulletStartPos") timeLeft = billboard:getFloat("lifeTime") + (1.0-(math.randomFloat()*2.0)) detonationRange = billboard:getFloat("detonationRange") burnTime = billboard:getFloat("burnTime") fireDPS = billboard:getFloat("fireDPS") damage = billboard:getFloat("damage") smartTargeting = billboard:getFloat("smartTargeting") lifeStage = 0 shieldAreaIndex = soulManager:indexOfShieldCovering(position) pathList = pathListMover(speed) --targetingSystem:deselect() local length = basicLengthEstimation(position,soulManager:getSoul(targetIndex)) --print("Length="..length.."\n") --if length>2.0 then estimatedTime = PlotPathToMidPoint(length+3.0,position,soulManager:getSoul(targetIndex)) --else -- plotPathToTarget(length+8.0) --end pointLight:setLocalPosition(position) pointLight:clear() pointLight:setVisible(true) pointLight:setRange(0.2) pointLight:pushRangeChange(1.5,0.5) effect2:activate(Vec3()) effect2:setVisible(true) --comUnit:sendTo(targetIndex,"getFuturePos",firstTime) timer:stop() end function self.destroy() node:getParent():removeChild(node) end function self.update() timer:start("updateSwarmBall") if lifeStage==LIFE_STAGE_PREPPING_TO_DIE then --drone has exploded --waiting for particle effect to die timeLeft = timeLeft - Core.getDeltaTime() if timeLeft<0.0 and explosion:isActive()==false then pointLight:setVisible(false) timer:stop() return false end else timeLeft = timeLeft - Core.getDeltaTime() if timeLeft<0.0 then--if the life time of the drone has been depleted --detonate drone endLife() timer:stop() return true end manageIfTargetIsNotAvailable() if pathList:willReachEnd() then if targetIndex>0 then if lifeStage==LIFE_STAGE_TARGET_MIDPOINT then local length = basicLengthEstimation(position,soulManager:getSoul(targetIndex)) plotPathToTarget(length+4.0,soulManager:getSoul(targetIndex)) else --comUnit:sendTo(ownerIndex, "swarmBallHitt", "hitt") comUnit:sendTo(targetIndex,"attackFire",tostring(damage)) comUnit:sendTo(targetIndex,"attackFireDPS",{DPS=fireDPS,time=burnTime,type="fire"}) --circumference of half a circle local length = 3.14*3.0*0.5 --length is half circumference + the distance the soul will travel during that time approxmatly length = length + (length/speed*soulManager:getVelocity(targetIndex):length()) + 1.0 -- 1.0 is just for good messure PlotPathToAbove(length,soulManager:getSoul(targetIndex)) end else comUnit:broadCast(position,detonationRange,"attack",tostring(damage)) endLife() end elseif shieldAreaIndex~=soulManager:indexOfShieldCovering(position) then --forcefield hitt targetIndex = shieldAreaIndex>0 and shieldAreaIndex or soulManager:indexOfShieldCovering(currentPos) comUnit:sendTo(targetIndex,"attack",tostring(damage+(fireDPS*0.5)))--can't do fire damage to shield endLife() else pointLight:setLocalPosition(position) velocity = pathList:getVelocity():normalizeV() position = pathList:getNextPos() moveList = pathList:getList() --Debug information --local deltaTime = Core.getDeltaTime() --Core.addDebugLine(s1,sd,deltaTime,Vec3(0.0,1.0,0.0)) --Core.addDebugLine(e1,ed,deltaTime,Vec3(0.0,0.0,1.0)) --Core.addDebugSphere(Sphere(e1,0.2),deltaTime,Vec3(0.0,0.0,1.0)) --for i = 1, #moveList, 1 do -- Core.addDebugSphere(Sphere(moveList[i],0.05),deltaTime,Vec3(1.0,0.0,0.0)) --end velocity = velocity:normalizeV() effect2:setLocalPosition(position) end end pointLight:update() timer:stop() return true end return self end
--------------------------- -- Default awesome theme -- --------------------------- -- Ignore line too long warnings -- luacheck: ignore 631 local gears = require("gears") local theme_assets = require("beautiful.theme_assets") local xresources = require("beautiful.xresources") local real_dpi = xresources.apply_dpi local gfs = require("gears.filesystem") local themes_path = gfs.get_themes_dir() local menubar = require("menubar") -- local gtk = require("beautiful.gtk") -- local naughty = require("naughty") -- local DPI_SCALE = 0.8 local DPI_SCALE = 1.0 local dpi = function(value, ...) return real_dpi(value * DPI_SCALE, ...) end local theme = {} theme.dpi = dpi -- Expose dpi function for other scripts function theme.lookup_icon(name, color, custom_subfolder) local image = menubar.utils.lookup_icon(name) if not image then local function try(searchdir) for _, subfolder in pairs({ custom_subfolder, "symbolic", "scalable", }) do if subfolder then local icondir = string.format("%s/%s/%s", searchdir, theme.icon_theme, subfolder) local fname = string.format("%s/%s-symbolic.svg", icondir, name) if gears.filesystem.is_dir(icondir) then if gears.filesystem.file_readable(fname) then return fname end end print("Error: Icon " .. fname .. " not found") end end return nil end image = try(string.format("%s/.icons", os.getenv("HOME"))) or try("/usr/share/icons") or try("/usr/share/icons/hicolor") end if image and color then image = gears.color.recolor_image(image, color) end return image end function theme.lookup_icon_colored(name, color, custom_subfolder) color = color or theme.fg_normal return theme.lookup_icon(name, color, custom_subfolder) end local function create_palette(palette, fallback) local out = {} for k, v in pairs(fallback) do out[k] = v end for k, v in pairs(palette) do out[k] = v end return out end local awesome_palette = { red = "#ff0000", accent = "#535d6c", urgent = "#ff0000", bg = "#222222", bg_lighter = "#444444", bg_lightest = "#444444", fg = "#aaaaaa", fg_minimize = "#ffffff", } awesome_palette.bg_minimize = awesome_palette.bg_lightest awesome_palette.bg_focus = awesome_palette.accent local arc_palette = { urgent = "#5294e2", bg = "#2F343F", bg_lighter = "#383C4A", bg_lightest = "#404552", fg = "#AFB8C6", fg_minimize = "#C8CED5", } arc_palette.bg_minimize = arc_palette.bg_lightest local palette = create_palette(arc_palette, awesome_palette) -- Define the icon theme for application icons. If not set then the icons -- from /usr/share/icons and /usr/share/icons/hicolor will be used. theme.icon_theme = "oomox-numix_awesome_icons" -- theme.icon_theme = "Paper" theme.font = "Sans 8" theme.bg_normal = palette.bg theme.bg_focus = palette.bg_focus theme.bg_urgent = palette.urgent theme.bg_minimize = palette.bg_minimize theme.bg_systray = theme.bg_normal theme.fg_normal = palette.fg theme.fg_focus = "#ffffff" theme.fg_urgent = "#ffffff" theme.fg_minimize = palette.fg_minimize theme.useless_gap = dpi(2) theme.border_width = dpi(1) theme.border_normal = "#000000" theme.border_focus = "#535d6c" theme.border_marked = "#91231c" theme.fullscreen_hide_border = true -- theme.gtk = gtk.get_theme_variables() -- theme.bg_normal = theme.gtk.bg_color -- theme.fg_normal = theme.gtk.fg_color -- -- theme.wibar_bg = theme.gtk.menubar_bg_color -- theme.wibar_fg = theme.gtk.menubar_fg_color -- -- theme.bg_focus = theme.gtk.selected_bg_color -- theme.fg_focus = theme.gtk.selected_fg_color -- -- theme.bg_urgent = theme.gtk.error_bg_color -- theme.fg_urgent = theme.gtk.error_fg_color -- -- theme.bg_minimize = mix(theme.wibar_fg, theme.wibar_bg, 0.3) -- theme.fg_minimize = mix(theme.wibar_fg, theme.wibar_bg, 0.9) -- -- theme.bg_systray = theme.wibar_bg -- -- theme.border_normal = theme.gtk.wm_border_unfocused_color -- theme.border_focus = theme.gtk.wm_border_focused_color -- theme.border_marked = theme.gtk.success_color -- -- theme.border_width = dpi(theme.gtk.button_border_width or 1) -- theme.border_radius = theme.gtk.button_border_radius -- theme.taglist_bg_focus = "#555555" -- There are other variable sets -- overriding the default one when -- defined, the sets are: -- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile] -- tasklist_[bg|fg]_[focus|urgent] -- titlebar_[bg|fg]_[normal|focus] -- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color] -- mouse_finder_[color|timeout|animate_timeout|radius|factor] -- prompt_[fg|bg|fg_cursor|bg_cursor|font] -- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font] -- Example: --theme.taglist_bg_focus = "#ff0000" -- old behaviour -- theme.taglist_squares_sel = "/usr/share/awesome/themes/default/taglist/squarefw.png" -- theme.taglist_squares_unsel = "/usr/share/awesome/themes/default/taglist/squarew.png" -- Generate taglist squares: local taglist_square_size = dpi(8) theme.taglist_squares_sel = theme_assets.taglist_squares_sel( taglist_square_size, theme.fg_normal ) theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel( taglist_square_size, theme.fg_normal ) -- theme.wibar_icon_margin = dpi(6) theme.wibar_icon_margin = dpi(4) theme.wibar_height = 20 -- dpi() is not used on purpose, because it is done in rc.lua depending on screen dpi -- Variables set for theming notifications: -- notification_font -- notification_[bg|fg] -- notification_[width|height|margin] -- notification_[border_color|border_width|shape|opacity] theme.notification_max_width = dpi(455) -- theme.notification_max_height = dpi(75) theme.notification_icon_size = dpi(75) -- Variables set for theming the menu: -- menu_[bg|fg]_[normal|focus] -- menu_[border_color|border_width] theme.menu_submenu_icon = themes_path.."default/submenu.png" theme.menu_height = dpi(20) theme.menu_width = dpi(100) theme.main_menu_width = dpi(150) theme.titlebar_size = dpi(25) theme.titlebar_margin = math.floor(dpi(4)) theme.titlebar_border_size = dpi(2) -- theme.titlebar_bg_normal = theme.bg_normal theme.titlebar_bg_normal = palette.bg theme.titlebar_bg_focus = theme.titlebar_bg_normal -- theme.titlebar_bg_normal = theme.bg_normal .. "CC" -- Radius from client corner that allows dragging to resize theme.client_corner_resize_radius = dpi(20) -- You can add as many variables as -- you wish and access them by using -- beautiful.variable in your rc.lua --theme.bg_widget = "#cc0000" -- Define the image to load local function generate_titlebar_button(name, icon_path, highlight_color) highlight_color = highlight_color or palette.accent local normal = theme.lookup_icon_colored(icon_path) local highlight = theme.lookup_icon_colored(icon_path, highlight_color) -- Yes, all this variants are needed, because of awesome's inconsistently available style names for _, active in pairs({ "", "_active", "_inactive" }) do for _, mode in pairs({ "", "_focus", "_normal" }) do theme[string.format("titlebar_%s_button%s%s", name, mode, active)] = normal theme[string.format("titlebar_%s_button%s%s_hover", name, mode, active)] = highlight theme[string.format("titlebar_%s_button%s%s_press", name, mode, active)] = highlight end end end -- generate_titlebar_button("close", themes_path.."default/titlebar/close_normal.png", palette.red) -- generate_titlebar_button("minimize", themes_path.."default/titlebar/minimize_normal.png") -- generate_titlebar_button("maximized", themes_path.."default/titlebar/maximized_normal_inactive.png") -- generate_titlebar_button("floating", themes_path.."default/titlebar/floating_normal_inactive.png") generate_titlebar_button("close", "actions/window-close", palette.red) generate_titlebar_button("minimize", "actions/window-minimize") generate_titlebar_button("maximized", "actions/window-maximize") generate_titlebar_button("floating", "actions/window-pop-out") generate_titlebar_button("sticky", themes_path.."default/titlebar/sticky_normal_inactive.png") generate_titlebar_button("ontop", themes_path.."default/titlebar/ontop_normal_inactive.png") local themedir = os.getenv("HOME") .. "/.config/awesome/themes/custom/" theme.wallpaper = os.getenv("HOME") .. "/.cache/awesome/wallpaper.png" local layoutdir = themedir .. "layouts/" theme.layout_fairh = layoutdir .. "fairhw.png" theme.layout_fairv = layoutdir .. "fairvw.png" theme.layout_floating = layoutdir .. "floatingw.png" theme.layout_magnifier = layoutdir .. "magnifierw.png" theme.layout_max = layoutdir .. "maxw.png" theme.layout_fullscreen = layoutdir .. "fullscreenw.png" theme.layout_tilebottom = layoutdir .. "tilebottomw.png" theme.layout_tileleft = layoutdir .. "tileleftw.png" theme.layout_tile = layoutdir .. "tilew.png" theme.layout_tiletop = layoutdir .. "tiletopw.png" theme.layout_spiral = layoutdir .. "spiralw.png" theme.layout_dwindle = layoutdir .. "dwindlew.png" theme.layout_cornernw = layoutdir .. "cornernw.png" theme.layout_cornerne = layoutdir .. "cornerne.png" theme.layout_cornersw = layoutdir .. "cornersw.png" theme.layout_cornerse = layoutdir .. "cornerse.png" -- Generate Awesome icon: -- theme.awesome_icon = theme_assets.awesome_icon( -- theme.menu_height, theme.bg_focus, theme.fg_focus -- ) -- theme = theme_assets.recolor_titlebar(theme, theme.fg_normal, "normal") -- theme = theme_assets.recolor_titlebar(theme, theme.fg_focus, "focus") -- local themes_path = gears.filesystem.get_themes_dir() -- inherit default theme -- local theme = dofile(themes_path.."default/theme.lua") -- {{{ colors from https://github.com/NicoHood/arc-theme/blob/master/common/openbox/Arc-Dark/openbox-3/themerc -- theme.bg_normal = "#2f343f" -- window.inactive.title.bg.color -- -- }}} -- -- -- {{{ colors from https://github.com/NicoHood/arc-theme/blob/master/common/gtk-2.0/gtkrc-dark -- theme.fg_normal = "#d3dae3" -- fg_color -- theme.tooltip_bg = "#4B5162" -- tooltip_bg_color -- -- -- a little non-arc-way, but I prefer the focused window to be more distinguishable -- theme.bg_focus = "#5294e2" -- selected_bg_color -- theme.fg_focus = "#ffffff" -- selected_fg_color -- -- theme.bg_minimize = "#3e4350" -- insensitive_bg_color -- theme.fg_minimize = "#7c818c" -- insensitive_fg_color -- -- }}} -- -- -- {{{ colors from https://github.com/DaveDavenport/rofi-themes/blob/master/Official%20Themes/Arc-Dark.rasi -- theme.bg_urgent = "#a54242" -- selected-urgent-background -- theme.fg_urgent = "#f9f9f9" -- selected-urgent-foreground -- -- }}} -- -- --- {{ https://github.com/NicoHood/arc-theme/blob/master/common/gtk-2.0/main.rc -- theme.tooltip_shape = function(cr, width, height) -- gears.shape.rounded_rect(cr, width, height, 2) -- GtkWidget::tooltip-radius -- end -- theme.tooltip_opacity = 235 -- GtkWidget::tooltip-alpha -- theme.tooltip_border_width = 0 -- default-border -- -- }}} -- -- -- to match with the rest of colorscheme -- theme.bg_systray = theme.bg_normal -- theme.border_normal = theme.bg_normal -- theme.border_focus = theme.bg_focus -- theme.border_marked = theme.bg_urgent -- TODO: check when/where is it used -- -- -- nicer snap borders -- theme.snap_bg = theme.border_focus -- theme.snap_shape = gears.shape.rectangle -- -- -- {{{ https://github.com/NicoHood/arc-theme/blob/master/README.md -- -- Wallpaper from the Full Preview, https://pixabay.com/photo-869593/ -- theme.wallpaper = themes_path.."arc-dark/background.jpg" -- -- }}} -- -- -- Generate Awesome icon: -- theme.awesome_icon = theme_assets.awesome_icon( -- theme.menu_height, theme.bg_focus, theme.fg_focus -- ) -- -- -- Generate taglist squares: -- -- local taglist_square_size = dpi(4) -- theme.taglist_squares_sel = theme_assets.taglist_squares_sel( -- taglist_square_size, theme.fg_focus -- ) -- theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel( -- taglist_square_size, theme.fg_normal -- ) -- -- -- Recolor Layout icons: -- theme = theme_assets.recolor_layout(theme, theme.fg_normal) -- -- -- Recolor titlebar icons: -- -- TODO: find a way to show hovered/pressed state nicely -- theme = theme_assets.recolor_titlebar( -- theme, theme.fg_normal, "normal" -- ) -- theme = theme_assets.recolor_titlebar( -- theme, theme.fg_normal, "normal", "hover" -- ) -- theme = theme_assets.recolor_titlebar( -- theme, theme.fg_normal, "normal", "press" -- ) -- theme = theme_assets.recolor_titlebar( -- theme, theme.fg_focus, "focus" -- ) -- theme = theme_assets.recolor_titlebar( -- theme, theme.fg_focus, "focus", "hover" -- ) -- theme = theme_assets.recolor_titlebar( -- theme, theme.fg_focus, "focus", "press" -- ) return theme
--普通的魔法使¤白泽球 function c22220010.initial_effect(c) --pendulum summon aux.EnablePendulumAttribute(c) --atk&def local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetRange(LOCATION_PZONE) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTarget(c22220010.tgval) e1:SetValue(c22220010.atkval) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) --equip local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(22220010,1)) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetCategory(CATEGORY_EQUIP) e3:SetRange(LOCATION_HAND) e3:SetTarget(c22220010.eqtg) e3:SetOperation(c22220010.eqop) c:RegisterEffect(e3) --remove local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(22220010,2)) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e3:SetCategory(CATEGORY_REMOVE) e3:SetCode(EVENT_BATTLED) e3:SetRange(LOCATION_SZONE) e3:SetCondition(c22220010.rmcon) e3:SetTarget(c22220010.rmtg) e3:SetOperation(c22220010.rmop) c:RegisterEffect(e3) --remove local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(22220010,0)) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetRange(LOCATION_GRAVE) e2:SetCode(EVENT_DAMAGE) e2:SetCondition(c22220010.condition) e2:SetOperation(c22220010.operation) c:RegisterEffect(e2) -- atk up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetRange(LOCATION_MZONE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetCondition(c22220010.condtionz) e1:SetValue(c22220010.valuez) c:RegisterEffect(e1) end c22220010.named_with_Shirasawa_Tama=1 function c22220010.IsShirasawaTama(c) local m=_G["c"..c:GetCode()] return m and m.named_with_Shirasawa_Tama end function c22220010.ffilter(c) return c22220010.IsShirasawaTama(c) and c:IsFaceup() end function c22220010.condtionz(e) local ph=Duel.GetCurrentPhase() return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and (Duel.GetAttacker()==e:GetHandler() or Duel.GetAttackTarget()==e:GetHandler()) end function c22220010.valuez(e,c) local tp = e:GetHandler():GetControler() return Duel.GetMatchingGroupCount(c22220010.ffilter, tp, LOCATION_EXTRA, 0, nil)*200 end function c22220010.tgfilter(c) return c:IsFaceup() and c22220010.IsShirasawaTama(c) and c:IsControler(tp) end function c22220010.tgval(e,c) local g=Duel.GetMatchingGroup(c22220010.tgfilter,c:GetControler(),LOCATION_MZONE,0,nil) return g end function c22220010.atkfilter(c) return c:IsFaceup() and c22220010.IsShirasawaTama(c) and c:IsType(TYPE_MONSTER) end function c22220010.atkval(e,c) local g=Duel.GetMatchingGroup(c22220010.atkfilter,c:GetControler(),LOCATION_EXTRA,0,nil) return g:GetClassCount(Card.GetCode)*150 end function c22220010.eqfilter(c) return c:IsFaceup() and c22220010.IsShirasawaTama(c) end function c22220010.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c22220010.eqfilter(chkc) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingTarget(c22220010.eqfilter,tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.SelectTarget(tp,c22220010.eqfilter,tp,LOCATION_MZONE,0,1,1,nil) end function c22220010.eqop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect(e) then return end local tc=Duel.GetFirstTarget() if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or tc:GetControler()~=tp or tc:IsFacedown() or not tc:IsRelateToEffect(e) then Duel.SendtoGrave(c,REASON_EFFECT) return end Duel.Equip(tp,c,tc,true) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_EQUIP_LIMIT) e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetValue(c22220010.eqlimit) e1:SetLabelObject(tc) c:RegisterEffect(e1) end function c22220010.eqlimit(e,c) return c==e:GetLabelObject() end function c22220010.rmcon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() local c=e:GetHandler():GetEquipTarget() return d and (a==c or d==c) end function c22220010.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local tc=e:GetHandler():GetEquipTarget():GetBattleTarget() Duel.SetTargetCard(tc) Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0) end function c22220010.rmop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT,LOCATION_REMOVED) end end function c22220010.condition(e,tp,eg,ep,ev,re,r,rp) return ep==tp end function c22220010.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT)~=0 then Duel.BreakEffect() local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) if g:GetCount()<1 then return end local sg=g:RandomSelect(1-tp,1) Duel.Destroy(sg,REASON_EFFECT) end end
RegisterNetEvent('casinoUi:ShowUI') AddEventHandler('casinoUi:ShowUI', function(action, text) SendNUIMessage({ action = action, text = text, }) end) RegisterNetEvent('casinoUi:HideUI') AddEventHandler('casinoUi:HideUI', function() SendNUIMessage({ action = 'hide' }) end) function DrawCasinoUi(action, text) SendNUIMessage({ action = action, text = text, }) end function HideCasinoUi() SendNUIMessage({ action = 'hide' }) end -- RegisterCommand('test', function() -- exports['casinoUi']:DrawCasinoUi('show', "Diamond Casino Blackjack</p>Balance: $5000Test</br>Bet: 10000Test") -- Wait(3700) -- exports['casinoUi']:HideCasinoUi('hide') -- end, false)
print("beginning setup.lua") math.randomseed(os.time()) print("package path") package.path = package.path .. ";scr/?.lua" print("APIs") cursorAPI = require("cursor") regionAPI = require("region") regionPagerAPI = require("region_pager") tileSheetAPI = require("tile_sheet") markerAPI = require("marker") markerManagerAPI = require("marker_manager") print("save format") saveFormat = require("save_format") print("map generators") --mapped to "dungeon_sheet.png" print("Attempting to set the map components") tileSheetAPI.Load("rsc/dungeon_sheet.png", 32, 32) regionPagerAPI.SetOnCreate(function(r) for i = 1, regionAPI.GetWidth(r) do for j = 1, regionAPI.GetHeight(r) do regionAPI.SetTile(r, i, j, 1, 1) end end end) --usability function save(arg) local fname = arg or "default.map" saveFormat.SaveAll(fname) end function load(arg) local fname = arg or "default.map" saveFormat.LoadAll(fname) end function clear() regionPagerAPI.UnloadAll() end function setTile(i) local j = i or 0 cursorAPI.SetTile(j) end print("setup.lua complete")
local do3dtextrender = false setTimer ( function ( ) do3dtextrender = exports.VDBGLogin:isClientLoggedin ( ) end, 1000, 1 ) addEvent ( "onClientPlayerLogin", true ) addEventHandler ( "onClientPlayerLogin", root, function ( ) do3dtextrender = true end ) local openedJob = nil local s = {guiGetScreenSize()} local panel = {} local visibilidade = false panel.x, panel.y = (s[1] / 2) - 512, (s[2] /2 ) - 384 local desc = nil local opensans = dxCreateFont(":VDBGPDU/arquivos/opensans.ttf", 16) local opensans2 = dxCreateFont(":VDBGPDU/arquivos/opensans.ttf", 13) local opensans3 = dxCreateFont(":VDBGPDU/arquivos/opensans.ttf", 14.5) jobDescriptions = { ['fisherman'] = "#ffffffComo #4aabd0pescador, #ffffffvocê já deve imaginar o que irá fazer: #4aabd0pescar.\n #ffffffCom um #d9534fbarco você irá percorrer alguns trechos próximos da costa, \n#ffffffe a #d9534fembarcação #ffffffará todo o serviço para você automaticamente \naté o limite de #d9534fcarga pesqueiro. \n#ffffffPara receber o #acd373dinheiro, #ffffffvocê deverá voltar ao #d9534fporto #ffffffe vender \n os #d9534fpeixes #ffffffque coletou. \nPara visualizar os #d9534fpeixes coletados #ffffffuse o comando #ffa500/net.", ['Medico'] = "#ffffffTrabalhando de #4aabd0médico, #ffffffo serviço é simples: você receberá um #d9534fkit médico,\n #ffffffe assim você deverá fazer #d9534fhit-kit #4aabd0( bater com o kit\n médico no jogador). #ffffffDessa maneira, a #d9534fvida #ffffffdos jogadores se \nelevará até a #d9534fsaúde plena. #ffffffCompletando #ffa500100%,\n #ffffffvocê receberá o #acd373pagamento#ffffff.", ['Policial'] = "\n\n\n\n#ffffffTrabalhando de #4aabd0policial, #ffffffvocê será capaz de #4aabd0prender #ffffffos\n jogadores que têm #d9534fníveis de procurados. #ffffffPara saber se um #d9534fjogador\n é #d9534fprocurado pela #d9534fpolícia, #ffffffvocê pode procurar por nomes no \n#ffa500F5. #d9534fBandidos #ffffffterão uma #ffa500estrela #fffffflutuando sobre a cabeça.\n Você pode utilizar a #d9534fpistola silenciada #ffffffcomo uma #d9534fteaser, e, \n#ffffffquando você atira, #ffffffquando vai #d9534fimunisar #ffffffo fora da lei; ele irá ser \n#d9534feletrecutado #ffffffpara que você possa batê-lo com o \n#d9534fcassetete, #ffffffe assim #d9534fprendê-lo; #ffffffdepois de bater\n com o #d9534fcassetete, #ffffffleve-o para o \n#ffa500F11 #ffffff= #4aabd0ICONE DE POLICIA NAS DELEGACIAS#ffffff.", ['Mecanico'] = "#ffffffTrabalhando de #4aabd0mecânico, #ffffffvocê #4aabd0consertara os\n veículos #ffffffdos jogadores. Para #d9534fconsertar um carro, #ffffffvocê só precisa\n pressionar o #ffa500'M' #ffffffem seu teclado,e clicar em cima do #d9534fcarro. \n #ffffffSe o jogador aceitar, você vai concertar o carro\n dele e será #acd373pago #ffffffem seguida.", ['Caminhoneiro'] = "#ffffffTrabalhando de #4aabd0caminhoneiro, #ffffffvocê irá \n#d9534fentregar cargas #ffffffpelo mapa. Para entregar as #d9534fcargas, \n#ffffffselecione um \nlocal e aparecerá um #d9534ficone #ffffffem seu #d9534fradar #4aabd0( CAMINHÃO ); \n#ffffffleve a #d9534fcarga #ffffffaté o local e,\nchegando lá, você será #acd373pago#ffffff.", ['Criminoso'] = "#ffffffComo um #d9534fcriminoso, #ffffffvocê pode fazer as #d9534fmissões de #d9534froubos, \n#ffffffPegando #d9534farmas #fffffflivres em #d9534fSan Fierro #ffffffe Turfando\n áreas em #d9534fLas Venturas#ffffff/#d9534fSan Fierro. #ffffffMas tenha cuidado a #d9534fpolícia #ffffffestá \nsempre atrás de você.", ['detective'] = "\n\n\n#ffffffQuando você é um #4aabd0detetive, #fffffftodos os recursos\n estarão disponíveis, como se fosse um trabalho de um #4aabd0policial #ffffffnormal\n #acd373(painel polícia, rádio chat, prisões)#ffffff, exceto quando você é chamado\n para casos de #d9534fcrime #ffffffquando um companheiro oficial de #4aabd0polícia\n #fffffffé assassinado. Quando você chega na cena do #ffa500crime,\n #fffffffapenas busque ao redor em busca de pistas do #ffa500assassino.\n #fffffffVocê também terá a capacidade \nde gerar veículos mais rápidos.", ['Piloto'] = "#ffffffQuando você é um #4aabd0piloto, #ffffffvocê vai conduzir uma #4aabd0aeronave\n #ffffffem torno de San Andreas, pegar e entregar os #d9534fpassageiros \n#ffffffde um lugar para outro. Você também será capaz de pegar os outros \n#d9534fjogadores#ffffff.\n Eles serão capazes de definir um ponto de #d9534fpassagem;\n #ffffffquando você #d9534fentregá-los #ffffffno lugar você será #ffa500pago", ['stunter'] = "#ffffffSe você é um #4aabd0stunter, #ffffffvocê pode ir em torno de #d9534fSan Andreas\n #fffffffazendo manobras em #d9534fbicicletas #ffffffou\n #d9534fmotocicletas#ffffff. \nPara cada golpe que você faz, você vai ser #ffa500pago#ffffff.", ['Entregador'] = "#ffffffVá até o spawn de #4aabd0veículo; #ffffffpegue uma #4aabd0van;\n #ffffffvá até o armazem de entrega #d9534f(MARCADOR BRANCO); \n#ffffffpegue os pacotes; faça a entrega \ne assim será #ffa500pago#ffffff.", ['Motorista'] = "#ffffffComo um motorista de #4aabd0ônibus, #ffffffvocê vai ter suas\n #d9534fparadas #ffffffe o ponto final. Faça todas as \n #d9534fparadas #ffffffe ganhe o #ffa500dinheiro\n #ffffffno ponto final.", ['PizzaBOY'] = "#ffffffVá até o spawn de #4aabd0veículo; #ffffffpegue a #d9534fmoto\n #ffffffde entrega; vá até o #d9534f'd' #ffffffno mapa; \nsaia da #d9534fmoto#ffffff; vá até o marcador amarelo para #d9534fentregar\n #ffffffa pizza e ser #ffa500pago#ffffff; \nvolte para moto para mais entregas.", ['Taxista'] = "#ffffffPegue um #4aabd0táxi #ffffffno spawn de veículo;\n Encontre um cliente #d9534f(outro jogador)#ffffff; leve-o ao destino \npreviamente combinado; quando o #d9534fjogador #ffffffsair do\n #d9534fveículo #ffffffvocê será #ffa500pago \n#ffffffpela distância percorrida.", ['Lixeiro'] = "\n\n\n#ffffffO #4aabd0lixeiro #ffffffganha a vida através da \n#4aabd0coleta de lixo#ffffff. Existem cerca de #d9534f100 #fffffflocais \nna cidade onde você pode parar para pegar #d9534flixo#ffffff. \nVocê pode esvaziar o caminhão de #d9534flixo #ffffffa\n qualquer momento, e assim você poderá r\neceber o seu #ffa500pagamento #ffffffcom base na\n quantidade de #d9534flixo coletado#ffffff.", } addEventHandler( "onClientRender", getRootElement(), function( ) if visibilidade then -- <ESTRUTURA> dxDrawText("#428bcaVDB#FFFFFF Gaming - JOB@#ffa500"..openedJob, panel.x + 220, panel.y + 154, 605, 456, tocolor(255, 255, 255, 255), 1, opensans, "left", "top", true, true, true, true, true) dxDrawRectangle(panel.x + 206, panel.y + 154, 605, 456, tocolor(0, 0, 0, 200), false) dxDrawRectangle(panel.x + 203, panel.y + 154, 3, 456, tocolor(0, 0, 0, 255), false) dxDrawRectangle(panel.x + 203, panel.y + 151, 608, 3, tocolor(0, 0, 0, 255), false) dxDrawRectangle(panel.x + 811, panel.y + 151, 3, 459, tocolor(0, 0, 0, 255), false) dxDrawRectangle(panel.x + 203, panel.y + 610, 611, 3, tocolor(0, 0, 0, 255), false) dxDrawLine(panel.x + 210, panel.y + 187, panel.x + 795, panel.y + 188, tocolor(100, 100, 100, 100), 1.5, false) -- </ESTRUTURA> -- <CONTEUDO> dxDrawImage(panel.x + 470, panel.y + 197, 87, 85, "arquivos/formjob.png",0,0,0,tocolor(255,255,255,200),false) dxDrawText(desc, s[1]/2-15, panel.y + 490, s[1]/2, 220, tocolor(254, 254, 254, 255), 1.00, opensans3, "center", "center", false, false, false, true, false) if(isCursorShowing()) then XY = {guiGetScreenSize()} local cursorX, cursorY = getCursorPosition() cursorX, cursorY = cursorX*s[1], cursorY*s[2] if(locMouse(panel.x + 682, panel.y + 557, 108, 33, cursorX, cursorY)) then dxDrawRectangle(panel.x + 682, panel.y + 557, 108, 33, tocolor(0, 0, 0, 96), false) dxDrawText("Fechar", panel.x + 711, panel.y + 563, 108, 33, tocolor(217, 83, 79, 255), 1.00, opensans2, "left", "top", false, false, false, false, false) else dxDrawRectangle(panel.x + 682, panel.y + 557, 108, 33, tocolor(0, 0, 0, 96), false) dxDrawText("Fechar", panel.x + 711, panel.y + 563, 108, 33, tocolor(255, 255, 255, 255), 1.00, opensans2, "left", "top", false, false, false, false, false) end end if( not isCursorShowing()) then dxDrawRectangle(panel.x + 682, panel.y + 557, 108, 33, tocolor(0, 0, 0, 96), false) dxDrawText("Fechar", panel.x + panel.y + 711, 563, 108, 33, tocolor(255, 255, 255, 255), 1.00, opensans2, "left", "top", false, false, false, false, false) end if(isCursorShowing()) then XY = {guiGetScreenSize()} local cursorX, cursorY = getCursorPosition() cursorX, cursorY = cursorX*s[1], cursorY*s[2] if(locMouse(panel.x + 226, panel.y + 557, 108, 33, cursorX, cursorY)) then dxDrawRectangle(panel.x + 226, panel.y + 557, 108, 33, tocolor(0, 0, 0, 96), false) dxDrawText("Aceitar", panel.x + 254, panel.y + 563, 108, 33, tocolor(66, 139, 202, 255), 1.00, opensans2, "left", "top", false, false, false, false, false) else dxDrawRectangle(panel.x + 226, panel.y + 557, 108, 33, tocolor(0, 0, 0, 96), false) dxDrawText("Aceitar", panel.x + 254, panel.y + 563, 108, 33, tocolor(255, 255, 255, 255), 1.00, opensans2, "left", "top", false, false, false, false, false) end if( not isCursorShowing()) then dxDrawRectangle(panel.x + 226, panel.y +557, 108, 33, tocolor(0, 0, 0, 96), false) dxDrawText("Aceitar", panel.x + 254, panel.y +563, 108, 33, tocolor(255, 255, 255, 255), 1.00, opensans2, "left", "top", false, false, false, false, false) end end end end ) local peds = { } function refreshGodmodePeds ( ) for i, v in ipairs ( peds ) do destroyElement ( v ) end for i, v in ipairs ( getElementsByType ( 'GodmodePed' ) ) do local id = getElementData ( v, "Model" ) local x, y, z, rz = unpack ( getElementData ( v, "Position" ) ) peds[i] = createPed ( id, x, y, z, rz ) setElementFrozen ( peds[i], true ) addEventHandler ( 'onClientPedDamage', peds[i], function ( ) cancelEvent ( ) end ) end end refreshGodmodePeds ( ) setTimer ( refreshGodmodePeds, 30000, 0 ) addEvent ( 'VDBGJobs:OpenJobMenu', true ) addEventHandler ( 'VDBGJobs:OpenJobMenu', root, function ( job ) openedJob = job visibilidade = true showCursor ( true ) desc = jobDescriptions [ openedJob ] end ) addEventHandler ( 'onClientPlayerWasted', root, function ( ) if ( source == localPlayer ) then visibilidade = false showCursor(false) toggleControl("all",false) desc = nil openedJob = nil end end ) addEvent ( "onPlayerResign", true ) function locMouse(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function MenuButton(botao,status,x,y) if botao == "left" and status == "down" then if visibilidade then if(locMouse(panel.x + 682, panel.y + 557, 108, 33,x,y)) then visibilidade = false showCursor(false) toggleControl("all",false) desc = nil openedJob = nil elseif(locMouse(panel.x + 226, panel.y + 557, 108, 33,x,y)) then triggerServerEvent ( "VDBGJobs:SetPlayerJob", localPlayer, openedJob ) desc = nil openedJob = nil showCursor ( false ) visibilidade = false end end end end addEventHandler("onClientClick",getRootElement(),MenuButton) function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) bx, by, color, scale, font = bx or ax, by or ay, color or tocolor(255,255,255,255), scale or 1, font or "default" if alignX then if alignX == "center" then ax = ax + (bx - ax - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font))/2 elseif alignX == "right" then ax = bx - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) end end if alignY then if alignY == "center" then ay = ay + (by - ay - dxGetFontHeight(scale, font))/2 elseif alignY == "bottom" then ay = by - dxGetFontHeight(scale, font) end end local clip = false if dxGetTextWidth(str:gsub("#%x%x%x%x%x%x","")) > bx then clip = true end local alpha = string.format("%08X", color):sub(1,2) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 local text = "" local broke = false while s do if cap == "" and col then color = tocolor(getColorFromString("#"..col..alpha)) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) if clip then local text_ = "" for i = 1,string.len(cap) do if dxGetTextWidth(text,scale,font) < bx then text = text..""..string.sub(cap,i,i) text_ = text_..""..string.sub(cap,i,i) else broke = true break end end cap = text_ end dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(getColorFromString("#"..col..alpha)) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str and not broke then cap = str:sub(last) if clip then local text_ = "" for i = 1,string.len(cap) do if dxGetTextWidth(text,scale,font) < bx then text = text..""..string.sub(cap,i,i) text_ = text_..""..string.sub(cap,i,i) else broke = true break end end cap = text_ end dxDrawText(cap, ax, ay, ax + dxGetTextWidth(cap, scale, font), by, color, scale, font) end end
ITEM.name = "Wild Mushroom Cluster" ITEM.description = "A cluster of wild mushrooms, often saught by farmers for their spores." ITEM.model = "models/illusion/metroexodus/mushroom.mdl" ITEM.uniqueID = "mushroom_cluster" ITEM.height = 1 ITEM.width = 2 ITEM.category = "Farming" ITEM.price = 30 ITEM.functions.convert = { name = "Convert", tip = "Converts the cluster into seeds", icon = "icon16/arrow_switch.png", OnRun = function(item) local client = item.player local char = client:GetCharacter() local inventory = char:GetInventory() client:EmitSound("npc/barnacle/neck_snap"..math.random(1,2)..".wav") inventory:Add("mushroom_seeds") end, OnCanRun = function(item) return (!IsValid(item.entity)) end } ITEM.functions._seperate = { name = "Break Apart", tip = "Breaks the cluster into regular mushrooms", icon = "icon16/arrow_divide.png", OnRun = function(item) local client = item.player local char = client:GetCharacter() local inventory = char:GetInventory() client:EmitSound("npc/barnacle/neck_snap"..math.random(1,2)..".wav") for i=4,1,-1 do -- pasting the same line 4 times is really hard!!! inventory:Add("mushroom") end end, OnCanRun = function(item) return (!IsValid(item.entity)) end }
----------------------------------------- -- Spell: Klimaform -- Increases magic accuracy for spells of the same element as current weather ----------------------------------------- require("scripts/globals/status") function onMagicCastingCheck(caster,target,spell) return 0 end function onSpellCast(caster,target,spell) target:addStatusEffect(tpz.effect.KLIMAFORM,1,0,180) return tpz.effect.KLIMAFORM end
local M = {} function M.file_supported(file_extension) return file_extension == 'java' or file_extension == 'md' end local function remove_extension(filename, file_extension) return string.sub(filename, 1, #filename - #file_extension - 1) end local function slice(tbl, s, e) local new_tbl = {} for i = s, e do table.insert(new_tbl, tbl[i]) end return new_tbl end local function java_group(path, filename) local t = {} local find_java = false local position = 0 for str in string.gmatch(path, '([^/]+)') do if str == 'java' then find_java = true position = #t + 1 end if str ~= filename then table.insert(t, str) end end if find_java then local new_tbl = slice(t, position + 1, #t) return table.concat(new_tbl, '.') end return t[#t] end function M.generate(file_extension, filename, path, file_type) if file_extension == 'md' and filename == 'README.md' then return require('languages.markdown').template[file_type] elseif file_extension == 'java' then local template = require('languages.java').template[file_type] local name = remove_extension(filename, file_extension) local group = java_group(path, filename) return string.format(template, group, name) else return '' end end return M
-- KEYS: lockKey -- ARGV: lockerId, currentTime, liveTime -- return: true(成功);false(失败,锁不存在或已经易主) -- 数据结构(hash) -- ${lockKey}: -- owner: none、writer、readers、reader-writer -- writerBooking: ${writerBooking} -- writer: ${lockerId} -- readerAmount: ${读者数量} -- readerAmountDeadline: ${readerAmount的存活时间} -- reader-${lockerId1}: ${readerDeadline1} -- reader-${lockerId2}: ${readerDeadline2} -- reader-${lockerId3}: ${readerDeadline3} local lockKey = KEYS[1]; local lockerId = ARGV[1]; local currentTime = tonumber(ARGV[2]); local liveTime = tonumber(ARGV[3]); -- 尝试维护 local alive = false; local owner = redis.call('hget', lockKey, 'owner'); if (owner == 'readers' or owner == 'reader-writer') then -- 获取reader local readerKey = 'reader-' .. lockerId; local readerDeadline = redis.call('hget', lockKey, readerKey); if (readerDeadline ~= false) then -- 维护reader readerDeadline = currentTime + liveTime; redis.call('hset', lockKey, readerKey, readerDeadline); -- 维护锁 redis.call('pexpire', lockKey, liveTime); alive = true; end end return alive;
local MSQ = LibStub("Masque", true) if not MSQ then return end -- Diablo III - Square MSQ:AddSkin("Diablo III - Square", { Author = "Suicidal Katt", Version = "1.0", Shape = "Square", Masque_Version = 40200, Backdrop = { Width = 36, Height = 36, Color = {0.8, 0.8, 0.8, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Backdrop]], }, Icon = { Width = 36, Height = 36, TexCoords = {0.08,0.92,0.08,0.92}, }, Flash = { Width = 40, Height = 40, Color = {1, 0, 0, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Highlight]], }, Cooldown = { Width = 36, Height = 36, }, Pushed = { Width = 40, Height = 40, Color = {1,1,1,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Border]], }, Normal = { Width = 40, Height = 40, Color = {0.7,0.7,0.7,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Normal]], }, Disabled = { Hide = true, }, Checked = { Width = 40, Height = 40, BlendMode = "BLEND", Color = {1,1,1,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Overlay]], }, Border = { Width = 40, Height = 40, BlendMode = "BLEND", Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Highlight]], }, Gloss = { Width = 40, Height = 40, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Gloss]], }, AutoCastable = { Width = 64, Height = 64, OffsetX = 0.5, OffsetY = -0.5, Texture = [[Interface\Buttons\UI-AutoCastableOverlay]], }, Highlight = { Width = 40, Height = 40, BlendMode = "ADD", Color = {1, 1, 1, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\Highlight]], }, Name = { Width = 36, Height = 10, OffsetY = 4, }, Count = { Width = 32, Height = 10, OffsetX = 2, OffsetY = 2, }, HotKey = { Width = 32, Height = 10, OffsetX = 6, }, Duration = { Width = 32, Height = 10, OffsetY = -2, }, AutoCast = { Width = 24, Height = 24, OffsetX = 1, OffsetY = -1, }, }, true) -- Diablo III - Circle MSQ:AddSkin("Diablo III - Circle", { Author = "Suicidal Katt", Version = "1.0", Shape = "Circle", Masque_Version = 40200, Backdrop = { Width = 36, Height = 36, Color = {0.8, 0.8, 0.8, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SBackdrop]], }, Icon = { Width = 26, Height = 26, OffsetY = -1, TexCoords = {0.08,0.92,0.08,0.92}, }, Flash = { Width = 40, Height = 40, Color = {1, 0, 0, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SHighlight]], }, Cooldown = { Width = 27, Height = 27, }, Pushed = { Width = 40, Height = 40, Color = {1,1,1,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SBorder]], }, Normal = { Width = 40, Height = 40, Color = {0.7,0.7,0.7,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SNormal]], }, Disabled = { Hide = true, }, Checked = { Width = 40, Height = 40, BlendMode = "BLEND", Color = {1,1,1,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SOverlay]], }, Border = { Width = 40, Height = 40, BlendMode = "BLEND", Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SHighlight]], }, Gloss = { Width = 40, Height = 40, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SGloss]], }, AutoCastable = { Width = 64, Height = 64, OffsetX = 0.5, OffsetY = -0.5, Texture = [[Interface\Buttons\UI-AutoCastableOverlay]], }, Highlight = { Width = 40, Height = 40, BlendMode = "ADD", Color = {1, 1, 1, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SHighlight]], }, Name = { Width = 36, Height = 10, OffsetY = 4, }, Count = { Width = 32, Height = 10, OffsetX = 2, OffsetY = 2, }, HotKey = { Width = 32, Height = 10, OffsetX = 6, }, Duration = { Width = 32, Height = 10, OffsetY = -2, }, AutoCast = { Width = 24, Height = 24, OffsetX = 1, OffsetY = -1, }, }, true) -- Diablo III - Spiked MSQ:AddSkin("Diablo III - Spiked", { Author = "Suicidal Katt", Version = "1.0", Shape = "Circle", Masque_Version = 40200, Backdrop = { Width = 36, Height = 36, Color = {0.8, 0.8, 0.8, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SBackdrop]], }, Icon = { Width = 32, Height = 32, TexCoords = {0.08,0.92,0.08,0.92}, }, Flash = { Width = 40, Height = 40, Color = {1, 0, 0, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SpHighlight]], }, Cooldown = { Width = 36, Height = 36, }, Pushed = { Width = 40, Height = 40, Color = {1,1,1,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SpBorder]], }, Normal = { Width = 40, Height = 40, Color = {0.7,0.7,0.7,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SpNormal]], }, Disabled = { Hide = true, }, Checked = { Width = 40, Height = 40, BlendMode = "BLEND", Color = {1,1,1,1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SpOverlay]], }, Border = { Width = 40, Height = 40, BlendMode = "BLEND", Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SpHighlight]], }, Gloss = { Width = 40, Height = 40, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SGloss]], }, AutoCastable = { Width = 64, Height = 64, OffsetX = 0.5, OffsetY = -0.5, Texture = [[Interface\Buttons\UI-AutoCastableOverlay]], }, Highlight = { Width = 40, Height = 40, BlendMode = "ADD", Color = {1, 1, 1, 1}, Texture = [[Interface\AddOns\Masque_Diablo_III\Textures\SpHighlight]], }, Name = { Width = 36, Height = 10, OffsetY = 4, }, Count = { Width = 32, Height = 10, OffsetX = 2, OffsetY = 2, }, HotKey = { Width = 32, Height = 10, OffsetX = 6, }, Duration = { Width = 32, Height = 10, OffsetY = -2, }, AutoCast = { Width = 24, Height = 24, OffsetX = 1, OffsetY = -1, }, }, true)
--Graph (abstract data type) --def G(P,L) --~ P: a set of finite points --~ L: some edges or lines -- def P{id[int or str]-> p,...} -- def p{some data} -- def L{ (id1<->id2,type,power, {other(...)}) } package.path=package.path..";..\\?.lua;" <<<<<<< HEAD require "grammar.class" ======= require "luagy.grammar.class" >>>>>>> 9740ece6e2dd0f39d899ce9c2d3816298c36a1c9 local Graph=Class(function (self,...) self.P={} self.L={} end) -- some base operations function Graph:add_vertex (id,v) self.P[id]=v end function Graph:add_edge( id1 ,id2,power,...) if not self.L[id1] then self.L[id1]={} end if not self.L[id2] then self.L[id2]={} end self.L[id1][id2]={type=0,power=power,...} if not id1 == id2 then self.L[id2][id1]={type=1,power=power,...} end end function Graph:adjacent(id1,id2) if self.L[id1] and self.L[id2] then return (self.L[id1][id2] or self.L[id2][id1]) and true else return false end end function Graph:neighbors (id) return self.L[id] end function Graph:remove_vertex (id) for k,v in ipairs(self:neighbors(id)) do print(k,v) end for k,v in pairs(self:neighbors(id)) do print(k,v) --self.L[k][id]=nil end self.L[id]=nil self.P[id]=nil end function Graph:remove_edge (id1, id2) self.L[id1][id2]=nil self.L[id2][id1]=nil end function Graph:get_vertex_value (id) return self.P[id] end function Graph:set_vertex_value (id ,v) self.P[id]=v end function Graph:get_edge_value (id1 ,id2) return self.L[id1][id2] end function Graph:set_edge_value (x ,y ,v) --todo end -- some visable function Graph:print() print(" ---------points :---------") for k,v in pairs (self.P) do print(k,v) end print("----------lines:-----------") for k,v in pairs (self.L) do for i,j in pairs(v) do if j.type ==0 then print(k.."<-->"..i) end end end end <<<<<<< HEAD ======= >>>>>>> 9740ece6e2dd0f39d899ce9c2d3816298c36a1c9 --[[ print("test") G=Graph() G:add_vertex(1,"a") G:add_vertex(2,"b") G:add_vertex(3,"c") G:add_vertex(4,"d") G:add_edge(1,2) G:add_edge(3,2) G:add_edge(4,2) G:add_edge(1,1) print( G:adjacent(1,2),G:adjacent(2,2)) --G:print() G:remove_vertex (2) G:print() print( G:adjacent(1,2),G:adjacent(1,2))]] return Graph
--[[ KahLua Kore - core library functions for KahLua addons. WWW: http://kahluamod.com/kore Git: https://github.com/kahluamods/kore IRC: #KahLua on irc.freenode.net E-mail: cruciformer@gmail.com Please refer to the file LICENSE.txt for the Apache License, Version 2.0. Copyright 2008-2018 James Kean Johnston. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ]] local KKORE_MAJOR = "KKore" local K = LibStub:GetLibrary(KKORE_MAJOR) if (not K) then return end if (K.CurrentLocale ~= "frFR") then return end local L = K:RegisterI18NTable(KKORE_MAJOR, "deDE") if (not L) then error ("KahLua Kore: impossible d'initialiser I18N.") end -- -- A few strings that are very commonly used that can be translated once. -- These are mainly used in user interface elements so the strings should -- be short, preferably one word. -- K.OK_STR = "OK" K.CANCEL_STR = "Annuler" K.ACCEPT_STR = "Accepter" K.CLOSE_STR = "Fermer" K.OPEN_STR = "Ouvrir" K.HELP_STR = "Aide" K.YES_STR = "Oui" K.NO_STR = "Non" K.KAHLUA = "KahLua" L["CMD_KAHLUA"] = "kahlua" L["CMD_KKORE"] = "kkore" L["CMD_HELP"] = "aide" L["CMD_LIST"] = "liste" L["CMD_DEBUG"] = "debug" L["CMD_VERSION"] = "version" L["KAHLUA_VER"] = "(Version %d)" L["KAHLUA_DESC"] = "un ensemble d'améliorations de l'interface utilisateur." L["KORE_DESC"] = "Fonctionnaliés %s du coeur, telles que le debug ou les profils." L["Usage: %s/%s module [arg [arg...]]%s"] = "Utilisation : %s/%s module [arg [arg...]]%s" L[" Where module is one of the following modules:"] = " module étant l'in des modules suivants :" L["For help with any module, type %s/%s module %s%s."] = "Pour une aide sur l'un des modules, tapez %s/%s module %s%s." L["KahLua Kore usage: %s/%s command [arg [arg...]]%s"] = "Utilisation de KahLua Kore : %s/%s commande [arg [arg...]]%s." L["%s/%s %s module level%s"] = "%s/%s %s module level%s" L[" Sets the debug level for a module. 0 disables."] = " Définit le niveau de déboguage pour un module. 0 désactive." L[" The higher the number the more verbose the output."] = " Plus le nombre est grand, plus la sortie est détaillée." L[" Lists all modules registered with KahLua."] = " Liste tous les modules enregistrés avec KahLua." L["The following modules are available:"] = "Les modules suivants sont disponibles :" L["Cannot enable debugging for '%s' - no such module."] = "Impossible d'activer le déboguage pour '%s' - module inexistant." L["Debug level %d out of bounds - must be between 0 and 10."] = "Niveau de déboguage %s hors limites - doit être compris entre 0 et 10." L["Module '%s' does not exist. Use %s/%s %s%s for a list of available modules."] = "Module '%s' inexistant. Utilisez %s/%s %s%s pour une liste des modules disponibles." L["KKore extensions loaded:"] = "Extensions KKore chargées :" L["Chest"] = "Coffre"
ys = ys or {} slot1 = ys.Battle.BattleFormulas slot2 = ys.Battle.BattleUnitEvent ys.Battle.BattleSkillEffect = class("BattleSkillEffect") ys.Battle.BattleSkillEffect.__name = "BattleSkillEffect" ys.Battle.BattleSkillEffect.Ctor = function (slot0, slot1, slot2) slot0._tempData = slot1 slot0._type = slot0._tempData.type slot0._targetChoise = slot0._tempData.target_choise or "TargetNull" slot0._casterAniEffect = slot0._tempData.casterAniEffect slot0._targetAniEffect = slot0._tempData.targetAniEffect slot0._delay = slot0._tempData.arg_list.delay or 0 slot0._lastEffectTarget = {} slot0._timerList = {} slot0._timerIndex = 0 slot0._level = slot2 end ys.Battle.BattleSkillEffect.SetCommander = function (slot0, slot1) slot0._commander = slot1 end ys.Battle.BattleSkillEffect.Effect = function (slot0, slot1, slot2, slot3) if slot2 and #slot2 > 0 then for slot7, slot8 in ipairs(slot2) do slot0:AniEffect(slot1, slot8) slot0:DataEffect(slot1, slot8, slot3) end else slot0:DataEffectWithoutTarget(slot1, slot3) end end ys.Battle.BattleSkillEffect.AniEffect = function (slot0, slot1, slot2) slot3 = slot2:GetPosition() slot4 = slot1:GetPosition() if slot0._casterAniEffect and slot0._casterAniEffect ~= "" then slot6 = nil if slot0._casterAniEffect.posFun then function slot6(slot0) return slot0.posFun(slot0.posFun, , slot0) end end slot1.DispatchEvent(slot1, slot0.Event.New(slot1.ADD_EFFECT, { effect = slot5.effect, offset = slot5.offset, posFun = slot6 })) end if slot0._targetAniEffect and slot0._targetAniEffect ~= "" then slot6 = nil if slot0._targetAniEffect.posFun then function slot6(slot0) return slot0.posFun(slot0.posFun, , slot0) end end slot2.DispatchEvent(slot2, slot0.Event.New(slot1.ADD_EFFECT, { effect = slot5.effect, offset = slot5.offset, posFun = slot6 })) end end ys.Battle.BattleSkillEffect.DataEffect = function (slot0, slot1, slot2, slot3) if slot0._delay > 0 then slot4 = nil slot0._timerIndex = slot0._timerIndex + 1 slot0._timerList[slot0._timerIndex + 1] = pg.TimeMgr.GetInstance().AddBattleTimer(slot7, "BattleSkill", -1, slot0._delay, function () if slot0 and slot0:IsAlive() then slot1:DoDataEffect(slot1.DoDataEffect, , ) end pg.TimeMgr.GetInstance():RemoveBattleTimer(slot4) slot1._timerList[slot5] = nil end, true) return end slot0:DoDataEffect(slot1, slot2, slot3) end ys.Battle.BattleSkillEffect.DoDataEffect = function (slot0, slot1, slot2, slot3) return end ys.Battle.BattleSkillEffect.DataEffectWithoutTarget = function (slot0, slot1, slot2) if slot0._delay > 0 then slot3 = nil slot0._timerIndex = slot0._timerIndex + 1 slot0._timerList[slot0._timerIndex + 1] = pg.TimeMgr.GetInstance().AddBattleTimer(slot6, "BattleSkill", -1, slot0._delay, function () if slot0 and slot0:IsAlive() then slot1:DoDataEffectWithoutTarget(slot1.DoDataEffectWithoutTarget, ) end pg.TimeMgr.GetInstance():RemoveBattleTimer(slot3) slot1._timerList[slot4] = nil end, true) return end slot0:DoDataEffectWithoutTarget(slot1, slot2) end ys.Battle.BattleSkillEffect.DoDataEffectWithoutTarget = function (slot0, slot1, slot2) return end ys.Battle.BattleSkillEffect.GetTarget = function (slot0, slot1, slot2) if type(slot0._targetChoise) == "string" then if slot0._targetChoise == "TargetSameToLastEffect" then return slot2._lastEffectTarget else return slot0.Battle.BattleTargetChoise[slot0._targetChoise](slot1, slot0._tempData.arg_list) end elseif type(slot0._targetChoise) == "table" then slot3 = nil for slot7, slot8 in ipairs(slot0._targetChoise) do slot3 = slot0.Battle.BattleTargetChoise[slot8](slot1, slot0._tempData.arg_list, slot3) end return slot3 end end ys.Battle.BattleSkillEffect.Interrupt = function (slot0) return end ys.Battle.BattleSkillEffect.Clear = function (slot0) for slot4, slot5 in pairs(slot0._timerList) do pg.TimeMgr.GetInstance():RemoveBattleTimer(slot5) slot0._timerList[slot4] = nil end slot0._commander = nil end ys.Battle.BattleSkillEffect.calcCorrdinate = function (slot0, slot1, slot2) slot3 = nil if slot0.absoulteCorrdinate then slot3 = Vector3(slot0.absoulteCorrdinate.x, 0, slot0.absoulteCorrdinate.z) elseif slot0.absoulteRandom then slot3 = slot0.RandomPos(slot0.absoulteRandom) elseif slot0.casterRelativeCorrdinate then slot3 = Vector3(slot1:GetIFF() * slot0.casterRelativeCorrdinate.hrz + slot1:GetPosition().x, 0, slot1.GetIFF() * slot0.casterRelativeCorrdinate.vrt + slot1.GetPosition().z) elseif slot0.casterRelativeRandom then slot5 = slot1:GetPosition() slot3 = slot0.RandomPos({ X1 = slot1:GetIFF() * slot0.casterRelativeRandom.front + slot5.x, X2 = slot1.GetIFF() * slot0.casterRelativeRandom.rear + slot5.x, Z1 = slot0.casterRelativeRandom.upper + slot5.z, Z2 = slot0.casterRelativeRandom.lower + slot5.z }) elseif slot0.targetRelativeCorrdinate then if slot2 then slot3 = Vector3(slot2:GetIFF() * slot0.targetRelativeCorrdinate.hrz + slot2:GetPosition().x, 0, slot2.GetIFF() * slot0.targetRelativeCorrdinate.vrt + slot2.GetPosition().z) end elseif slot0.targetRelativeRandom and slot2 then slot5 = slot2:GetPosition() slot3 = slot0.RandomPos({ X1 = slot2:GetIFF() * slot0.targetRelativeRandom.front + slot5.x, X2 = slot2.GetIFF() * slot0.targetRelativeRandom.rear + slot5.x, Z1 = slot0.targetRelativeRandom.upper + slot5.z, Z2 = slot0.targetRelativeRandom.lower + slot5.z }) end return slot3 end ys.Battle.BattleSkillEffect.GetDamageSum = function (slot0) return 0 end return
object_tangible_loot_npc_loot_decryptor_generic = object_tangible_loot_npc_loot_shared_decryptor_generic:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_decryptor_generic, "object/tangible/loot/npc/loot/decryptor_generic.iff")
return Def.ActorFrame{ Def.Quad{ InitCommand=function(self) self:xy(_screen.cx, _screen.cy):zoomto(_screen.w,200):diffuse(0,0,0,1) end }, LoadFont("Common Normal")..{ Text=ScreenString("Instructions"), InitCommand=function(self) self:xy(_screen.cx, _screen.cy+50) end } }
local create = coroutine.create local resume = coroutine.resume local yield = coroutine.yield local unpack0 = table.unpack or unpack local unpack = function(t) if t and #t > 0 then return unpack0(t) end end local inst do local v = {} v.cls = ("Eff: %s"):format(tostring(v):match('0x[0-f]+')) inst = setmetatable(v, {__call = function(self) -- uniqnize local eff = ("instance: %s"):format(tostring{}:match('0x[0-f]+')) local _Eff = setmetatable({eff = eff}, {__index = self}) return setmetatable({--[[arg = nil]]}, { __index = _Eff, __call = function(self, ...) local ret = {} ret.arg = {...} return setmetatable(ret, { __index = self}) end, }) end}) end local show_error = function(eff) return function() return ("uncaught effect `%s'"):format(eff) end end local Resend do local v = {} v.cls = ("Resend: %s"):format(tostring(v):match('0x[0-f]+')) Resend = setmetatable(v, { __call = function(self, eff, continue) return yield(setmetatable({ eff = eff.eff, arg = eff.arg, continue = continue }, { __index = self, __tostring = show_error(eff) })) end }) end local is_eff_obj = function(obj) return type(obj) == "table" and (obj.cls == inst.cls or obj.cls == Resend.cls) end local function handle_error_message(r) if type(r) == "string" and (r:match("attempt to yield from outside a coroutine") or r:match("cannot resume dead coroutine")) then return error("continuation cannot be performed twice") else return error(r) end end local handler handler = function(eff, vh, effh) local is_the_eff = function(it) return eff.eff == it end return function(th) local gr = create(th) local handle local continue local rehandle = function(arg, k) return handler(eff, function(args) return continue(gr, unpack(args)) end, effh)(function() return k(arg) end) end handle = function(r) if not is_eff_obj(r) then return vh(r) end if r.cls == inst.cls then if is_the_eff(r.eff) then return effh(function(arg) return continue(gr, arg) end, unpack(r.arg)) else return Resend(r, function(arg) return continue(gr, arg) end) end elseif r.cls == Resend.cls then if is_the_eff(r.eff) then return effh(function(arg) return rehandle(arg, r.continue) end, unpack(r.arg)) else return Resend(r, function(arg) return rehandle(arg, r.continue) end) end end end continue = function(co, arg) local st, r = resume(co, arg) if not st then return handle_error_message(r) else return handle(r) end end return continue(gr, nil) end end local handlers handlers = function(vh, ...) local effeffhs = {...} if type(vh) == "table" and #effeffhs == 0 then -- handlers({vh, [eff] = f, ...}) local vh_ = table.remove(vh) for k, h in pairs(vh) do effeffhs[k.eff] = h end vh = vh_ elseif #effeffhs > 0 and #effeffhs[1] == 2 then -- handlers(vh, {{eff, f}, ...}) local hs = {} for i = 1, #effeffhs do local effeffh = effeffhs[i] hs[effeffh[1].eff] = effeffh[2] end effeffhs = hs else -- handlers(vh, {[eff] = f, ...}) assert(type(vh) == "function") assert(type(effeffhs[1]) == "table" and not effeffhs[2]) effeffhs = effeffhs[1] end return function(th) local gr = create(th) local handle local continue local rehandles = function(arg, k) return handlers(function(...) return continue(gr, ...) end, effeffhs)(function() return k(arg) end) end handle = function(r) if not is_eff_obj(r) then return vh(r) end if r.cls == inst.cls then local effh = effeffhs[r.eff] if effh then return effh(function(arg) return continue(gr, arg) end, unpack(r.arg)) else return Resend(r, function(arg) return continue(gr, arg) end) end elseif r.cls == Resend.cls then local effh = effeffhs[r.eff] if effh then return effh(function(arg) return rehandles(arg, r.continue) end, unpack(r.arg)) else return Resend(r, function(arg) return rehandles(arg, r.continue) end) end end end continue = function(co, arg) local st, r = resume(co, arg) if not st then return handle_error_message(r) else return handle(r) end end return continue(gr, nil) end end return { inst = inst, perform = yield, handler = handler, handlers = handlers }
SHB = {} if SERVER then AddCSLuaFile("shb/cl_init.lua") AddCSLuaFile("shb/cl_themes.lua") AddCSLuaFile("shb/config.lua") else include("shb/cl_init.lua") end
return { id = "HOLOGUANQIA48", mode = 2, once = true, fadeType = 1, fadein = 1.5, scripts = { { expression = 2, side = 2, bgm = "holo-fff", nameColor = "#ff5c5c", dir = -1, actorScale = 2, soundeffect = "event:/battle/boom2", actor = 10500010, actorName = "DARK FOX BIZZARD", say = "这样就…结束了………", flashN = { color = { 1, 1, 1 }, alpha = { { 0, 1, 0.2 }, { 1, 0, 0.2, 0.2 }, { 0, 1, 0.2, 0.4 }, { 1, 0, 0.2, 0.6 } } }, dialogShake = { speed = 0.09, x = 8.5, number = 2 }, actorPosition = { x = 150, y = -400 }, typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 307060, side = 2, nameColor = "#a9f548", dir = 1, say = "巨大吹雪也化为一道光消失在hololive本社大楼里了!", flashout = { dur = 1, alpha = { 0, 1 } }, flashin = { delay = 1.5, dur = 1, alpha = { 1, 0 } }, typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 301050, side = 2, nameColor = "#a9f548", dir = 1, say = "雷达范围内无任何敌方信号反应,战斗结束", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 101170, side = 2, nameColor = "#a9f548", dir = 1, say = "稍微……有些困了。", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 3, nameColor = "#a9f548", side = 2, actor = 10500050, dir = 1, say = "最后的敌人也打倒了,之后只要把hololive本社大楼搞定就能解除这片镜面海域了吧", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 4, nameColor = "#a9f548", side = 2, actor = 10500070, dir = 1, say = "但是要怎么办才好呢?如果按DARK FOX BIZZARD说的话,这个大楼也被塞壬技术\n污染掉了吧", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 4, nameColor = "#a9f548", side = 2, actor = 10500030, dir = 1, say = "回答……只有一个", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 1, nameColor = "#a9f548", side = 2, actor = 10500040, dir = 1, say = "哼哼哼,还记得我们攒了这么多的TNT是拿来干什么的吧", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 301490, side = 2, nameColor = "#a9f548", dir = 1, say = "你们打算做什么…?", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 301490, nameColor = "#a9f548", side = 2, dir = 1, say = "………………难道直接用这些?!", dialogShake = { speed = 0.09, x = 8.5, number = 2 }, typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 3, nameColor = "#a9f548", side = 2, actor = 10500060, dir = 1, say = "呼呼呼,也到了诗音大人展示魔法的时候了", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 2, nameColor = "#a9f548", side = 2, actor = 10500020, dir = 1, say = "记得要小心点,没控制住威力伤着碧蓝航线的朋友们就不好了", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 3, nameColor = "#a9f548", side = 2, actor = 10500010, dir = 1, say = "(…果然还是很奇怪…有哪里,哪里不太对劲…………)", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 3, nameColor = "#a9f548", side = 2, actor = 10500010, dir = 1, say = "(……而且最后在棋子里也没有看到那个名侦探吹雪)", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 3, nameColor = "#a9f548", side = 2, actor = 10500010, dir = 1, say = "(唔……但愿只是我想太多了吧……)", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 10500010, side = 2, nameColor = "#a9f548", dir = 1, say = "啊,我也来帮忙搬TNT!", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 401230, side = 2, nameColor = "#a9f548", dir = 1, say = "吹雪小姐,真的没关系吗?那个大楼里说不定是有回到原来的世界的方法的吧…?", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 10500010, side = 2, nameColor = "#a9f548", dir = 1, say = "嗯,有这个可能。不过这个镜面海域一直存在下去的话,会给这个世界的大家带来麻烦的吧?", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { expression = 4, nameColor = "#a9f548", side = 2, actor = 10500010, dir = 1, say = "而且大家都懂。这种时候是欲速则不达,回去的方法慢慢来找就好啦!", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 401230, side = 2, nameColor = "#a9f548", dir = 1, say = "是、是这样的吗…?", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 307060, side = 2, nameColor = "#a9f548", dir = 1, say = "谢谢大家为这个世界想了这么多……", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 401230, side = 2, nameColor = "#a9f548", dir = 1, say = "{namecode:96}小姐,我们也去帮忙吧!", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 10500020, side = 2, nameColor = "#a9f548", dir = 1, say = "好啦~大家打起精神来把TNT放在大楼旁边!最后让阿库娅来引爆就好~", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 900021, nameColor = "#a9f548", side = 2, actorName = "净化亲", dir = 1, say = "里面还有很多塞壬科技可以利用哦,就这么直接炸掉真的好么?", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 307060, side = 2, nameColor = "#a9f548", dir = 1, say = "塞壬科技的危险性你刚刚也看到了,依靠塞壬的力量最后带来的只有毁灭…", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 307060, side = 2, nameColor = "#a9f548", dir = 1, say = "我们今后的道路,要靠自己的力量来走!", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } }, { actor = 900021, nameColor = "#a9f548", side = 2, actorName = "净化亲", dir = 1, say = "这样啊…对核心装置的爆破,我也来帮忙吧~", typewriter = { speed = 0.05, speedUp = 0.01 }, painting = { alpha = 0.3, time = 1 } } } }
local module = setmetatable({ "Magic moon dust" }, { __call = function (self) print(tostring(self)) end, __tostring = function (self) return self[1] end }) return module
local player = require'cplayer' local glue = require'glue' local bitmap = require'bitmap' local cairo = require'cairo' local function bitmap_cairo(w, h) local bmp = bitmap.new(w, h, 'bgra8', false, true) local surface = cairo.image_surface(bmp) local context = surface:context() return {surface = surface, context = context, bitmap = bmp} end function player:on_render(cr) self:checkerboard() local function blend(x, y, op) local src = bitmap_cairo(100, 100) local dst = bitmap_cairo(100, 100) --source: a triangle local scr = src.context scr:move_to(25, 25) scr:line_to(75, 50) scr:line_to(50, 75) scr:rgba(1, 0.4, 0, 1) scr:fill() --dest: the "&" character local dcr = dst.context dcr:move_to(30, 70) dcr:font_size(60) dcr:text_path('&') dcr:rgba(0, 0.4, 1, 1) dcr:fill() bitmap.blend(src.bitmap, dst.bitmap, op) self:image{x = x, y = y, image = dst.bitmap} self:label{x = x, y = y, w = 100, h = 100, halign = 'center', text = op} end for i,mode in ipairs(glue.keys(bitmap.blend_op, true)) do local x = 100 + ((i-1) % 6) * 110 local y = 100 + math.floor((i-1) / 6) * 110 blend(x, y, mode) end end player:play()
local ffi = require("ffi") if ffi.arch == "x86" then ffi.cdef[[ typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; int __kind; unsigned int __nusers; __extension__ union { int __spins; __pthread_slist_t __list; }; } __data; char __size[24]; long int __align; } pthread_mutex_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; unsigned char __flags; unsigned char __shared; unsigned char __pad1; unsigned char __pad2; int __writer; } __data; char __size[32]; long int __align; } pthread_rwlock_t; ]] elseif ffi.arch == "x64" then ffi.cdef[[ typedef struct __pthread_internal_list { struct __pthread_internal_list *__prev; struct __pthread_internal_list *__next; } __pthread_list_t; typedef union { struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; unsigned int __nusers; int __kind; int __spins; __pthread_list_t __list; } __data; char __size[40]; long int __align; } pthread_mutex_t; typedef union { struct { int __lock; unsigned int __nr_readers; unsigned int __readers_wakeup; unsigned int __writer_wakeup; unsigned int __nr_readers_queued; unsigned int __nr_writers_queued; int __writer; int __shared; unsigned long int __pad1; unsigned long int __pad2; unsigned int __flags; } __data; char __size[56]; long int __align; } pthread_rwlock_t; ]] end ffi.cdef[[ typedef union { char __size[4]; long int __align; } pthread_mutexattr_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; extern int pthread_mutex_init (pthread_mutex_t *__mutex, pthread_mutexattr_t *__mutexattr); extern int pthread_mutex_destroy (pthread_mutex_t *__mutex); extern int pthread_mutex_trylock (pthread_mutex_t *__mutex); extern int pthread_mutex_lock (pthread_mutex_t *__mutex); extern int pthread_mutex_unlock (pthread_mutex_t *__mutex); extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr); extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr); extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, int __pshared); extern int pthread_rwlock_init (pthread_rwlock_t * __rwlock, pthread_rwlockattr_t * __attr); extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock); extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock); extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock); extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock); extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock); extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock); extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr); extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr); extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, int __pshared); static const int PTHREAD_PROCESS_SHARED = 1; ]]
local CorePackages = game:GetService("CorePackages") local CoreGui = game:GetService("CoreGui") local TextService = game:GetService("TextService") local Roact = require(CorePackages.Roact) local t = require(CorePackages.Packages.t) local UIBlox = require(CorePackages.UIBlox) local withStyle = UIBlox.Core.Style.withStyle local Images = UIBlox.App.ImageSet.Images local ImageSetLabel = UIBlox.Core.ImageSet.Label local RobloxGui = CoreGui:WaitForChild("RobloxGui") local RobloxTranslator = require(RobloxGui.Modules.RobloxTranslator) local ICON_SIZE = 28 local PADDING = 12 local ICON_RING_IMAGE = Images["component_assets/circle_29_stroke_1"] local ButtonHint = Roact.PureComponent:extend("ButtonHint") ButtonHint.validateProps = t.strictInterface({ layoutOrder = t.optional(t.integer), localizationKey = t.string, keyLabel = t.string, }) function ButtonHint:render() return withStyle(function(style) local theme = style.Theme local font = style.Font local text = RobloxTranslator:FormatByKey(self.props.localizationKey) local fontSize = font.BaseSize * font.Header1.RelativeSize local textWidth = TextService:GetTextSize(text, fontSize, font.Header1.Font, Vector2.new(1000, 1000)).X local buttonHintWidth = ICON_SIZE + PADDING + textWidth return Roact.createElement("Frame", { LayoutOrder = self.props.layoutOrder, BackgroundTransparency = 1, Size = UDim2.new(0, buttonHintWidth, 1, 0), }, { Layout = Roact.createElement("UIListLayout", { SortOrder = Enum.SortOrder.LayoutOrder, FillDirection = Enum.FillDirection.Horizontal, HorizontalAlignment = Enum.HorizontalAlignment.Left, VerticalAlignment = Enum.VerticalAlignment.Center, Padding = UDim.new(0, PADDING), }), Icon = Roact.createElement(ImageSetLabel, { BackgroundTransparency = 1, LayoutOrder = 1, Size = UDim2.fromOffset(ICON_SIZE, ICON_SIZE), Image = ICON_RING_IMAGE, ImageTransparency = theme.UIDefault.Transparency, ImageColor3 = theme.UIDefault.Color, }, { Text = Roact.createElement("TextLabel", { BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1), Text = self.props.keyLabel, Font = font.Header2.Font, TextSize = font.BaseSize * font.Header2.RelativeSize, TextColor3 = theme.UIDefault.Color, TextTransparency = theme.UIDefault.TextTransparency, TextXAlignment = Enum.TextXAlignment.Center, TextYAlignment = Enum.TextYAlignment.Center, }), }), Text = Roact.createElement("TextLabel", { BackgroundTransparency = 1, Size = UDim2.new(0, textWidth, 0, 1), LayoutOrder = 2, Font = font.Header1.Font, Text = text, TextSize = fontSize, TextColor3 = theme.TextEmphasis.Color, TextTransparency = theme.TextEmphasis.TextTransparency, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Center, }) }) end) end return ButtonHint
local M = {} function M.sort_by_field(field) return function(a, b) return a[field] > b[field] end end function M.inspect(debug, data) if debug then print(vim.inspect(data)) end return data end function M.merge_tables(left, right) for k, v in pairs(right) do left[k] = v end return right end function M.split(str, pat) local t = {} -- NOTE: use {n = 0} in Lua-5.0 local fpat = "(.-)" .. pat local last_end = 1 local s, e, cap = str:find(fpat, 1) while s do if s ~= 1 or cap ~= "" then table.insert(t, cap) end last_end = e + 1 s, e, cap = str:find(fpat, last_end) end if last_end <= #str then cap = str:sub(last_end) table.insert(t, cap) end return t end function M.split_newlines(str) local d = {} for s in str:gmatch("[^\r\n]+") do table.insert(d, s) end return d end function M.file_info() local file = vim.fn.expand("%:p") local line = vim.fn.line(".") local bufnr = vim.fn.bufnr("%") return {file = file, line = line, bufnr = bufnr} end -- find key for a table, running fn for each value in the table. function M.find_key(t, fn, default) default = default or false local f = fn if type(f) ~= "function" then f = function(x) return x == fn end end for k, v in pairs(t) do if f(v) then return k end end return false end return M
position = {x = 49.8345527648926, y = 0.941939771175385, z = 15.7342796325684} rotation = {x = 0.00137930607888848, y = 150.009719848633, z = -0.000795437605120242}
local _PATH = (...) require(_PATH..".PathFinder") require(_PATH..".interface")
while not _G.PERKS do Task.Wait() end local subscriptionPerkRef = _G.PERKS.SUBSCRIPTION local propMultiplier = script:GetCustomProperty("STORE_SampleMultiplier"):WaitForObject() local propRequiredNumberOfVIP = propMultiplier:GetCustomProperty("RequiredNumberOfVIP") local propMoneyPerInterraction = propMultiplier:GetCustomProperty("MoneyPerInterraction") local propCurrencyResourceName = propMultiplier:GetCustomProperty("CurrencyResourceName") local propMultiplierUI = propMultiplier:GetCustomProperty("MultiplierUI") local CelebrationVFX = propMultiplier:GetCustomProperty("CelebrationVFX") local propTrigger = script:GetCustomProperty("Trigger"):WaitForObject() function CheckVIPCount() local allPlayers = Game.GetPlayers() local vipCount = 0 for _, p in ipairs(allPlayers) do if p:HasPerk(subscriptionPerkRef) then vipCount = vipCount + 1 end end return vipCount end function GiveMoney(trigger, player) if player:IsA("Player") then local baseMultiplier = 1.0 World.SpawnAsset(CelebrationVFX, {position = propMultiplier:GetWorldPosition() + Vector3.New(0,0, 150)}) if player:HasPerk(subscriptionPerkRef) then baseMultiplier = 1.5 end local newMultiplier = baseMultiplier + 0.1 * CheckVIPCount() local ui = World.SpawnAsset(propMultiplierUI, {position = player:GetWorldPosition()}) ui.lifeSpan = 1 local panel = ui:FindDescendantByName("MultiplierPanel") local currency = ui:FindDescendantByName("CurrencyText") local multiplier = ui:FindDescendantByName("MultiplierText") currency.text = tostring(propMoneyPerInterraction) multiplier.text = "x" .. tostring(newMultiplier) --Events.BroadcastToServer("Give Player Money", 1) player.clientUserData.Veggies = 0 for i = 1, 25 do panel.y = panel.y - 0.1 * i Task.Wait() end end end propTrigger.interactedEvent:Connect(GiveMoney)
function GM:Think() for _, v in pairs( player.GetAll() ) do self:SpeedThink( v ); self:ConsciousThink( v ); self:HungerThink( v ); self:AdminThink( v ); self:PrisonThink( v ); self:AFKThink( v ); self:APCThink( v ); v:WaterThink(); if( v.Inventory ) then for _, n in pairs( v.Inventory ) do if( GAMEMODE:GetItemByID( n ) and GAMEMODE:GetItemByID( n ).Think ) then GAMEMODE:GetItemByID( n ).Think( n, v ); end end end end self:RefillThink(); self:BreenThink(); self:SQLThink(); self:SpawnerThink(); end
LogFile = "log.txt" function Log (...) local str = os.clock() .. ": " local isFirst = true for i, t in ipairs(arg) do str = str .. (isFirst and "" or " | ") .. tostring(t) isFirst = false end AppendLog(str) end function AppendLog (text) local file = fs.open(LogFile, "a") file.writeLine(text) file.close() end function ClearLog () local file = fs.open(LogFile, "w") file.close() end
-- Summon a player by SteamId to your position ChatCommands["!summon"] = function(playerId, command) Log(">> !summon - %s", command); local player = System.GetEntity(playerId) -- Only allow the following SteamId to invoke the command local steamid = player.player:GetSteam64Id() local allowCommand = steamid == "76561197992974688" -- change this to some valid admin's Steam64 id -- or through faction restrictions -- allowCommand = allowCommand or nil ~= string.match(System.GetCVar("g_gameRules_faction4_steamids"), steamid) -- or through actual current faction -- allowCommand = allowCommand or 4 == player.actor:GetFaction() -- faction 0 to 7 (same numbering as cvars) if allowCommand then -- Performing a generic entity search is very expensive - use sparingly local players = System.GetEntitiesByClass("Player") for i,p in pairs(players) do if p.player:GetSteam64Id() == command then p.player:TeleportTo(playerId) return; end end g_gameRules.game:SendTextMessage(4, playerId, "A player with the SteamId does not exist on the server."); end end -- For debugging --dump(ChatCommands)
function replaceModel() txd = engineLoadTXD("em.txd", 2926 ) engineImportTXD(txd, 2926) dff = engineLoadDFF("em.dff", 2926 ) engineReplaceModel(dff, 2926) col= engineLoadCOL ( "em.col" ) engineReplaceCOL ( col, 2926 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) progi = { --{1475.79, -1732.11, 13.38-1.1, -0.00, 0.00, 90.23}, --{1484.91, -1732.37, 13.38-1.1, -0.00, 0.00, 269.02}, --{1749.36, -1682.40, 13.38-1.1, -0.00, 0.00, 185.85}, --{1881.60, -1752.09, 13.38-1.1, -0.00, 0.00, 266.79}, --{1961.48, -1991.38, 13.39-1.1, -0.00, 0.00, 179.26}, --{1588.20, -1591.63, 13.38-1.1, -0.00, 0.00, 270.78}, {-1895.65, 884.99, 35.02-1.1, -0.00, 0.00, 178.98}, {-1903.12, 885.08, 35.02-1.1, -0.00, 0.00, 178.57}, {-5.36,1198.36,19.21-1.05, -0.00, 0.00, 90}, {-1,1198.36,19.21-1.05, -0.00, 0.00, 90}, } for i,p in pairs(progi) do createObject(2926,p[1],p[2],p[3],p[4] or 0,p[5] or 0, p[6] or 0) end
-- luajit implements the 5.2 loadfile extension while reporting a lua version -- of 5.1 return function(path, env) return loadfile(path, nil, env) end
#!/usr/bin/env texlua -- Build script for fduthesis. module = "fduthesis" checkengines = {"xetex", "luatex"} checkopts = "-interaction=batchmode" sourcefiles = {"source/*.dtx"} installfiles = {"*.cls", "*.sty", "*.def"} -- typesetdeps = {"source/latexmkrc."} typesetexe = "xelatex" typesetfiles = {"fduthesis.dtx"} unpackfiles = {"fduthesis.dtx"} unpackexe = "xetex" -- excludefiles = {"*/breqn -abbr-test.pdf", -- "*/eqbreaks.pdf"} -- unpackopts = "-interaction=batchmode" -- cmdchkfiles = {"*.dtx"} local insert = table.insert local sort = table.sort function modified_check(names) local errorlevel = 0 if testfiledir ~= "" and direxists(testfiledir) then if not options["rerun"] then checkinit() end local hide = true --[[ -- To suppress TeX output. if names and next(names) then hide = false end ]]-- names = names or { } -- No names passed: find all test files if not next(names) then local excludenames = { } for _,glob in pairs(excludetests) do for _,name in pairs(filelist(testfiledir, glob .. lvtext)) do excludenames[jobname(name)] = true end for _,name in pairs(filelist(unpackdir, glob .. lvtext)) do excludenames[jobname(name)] = true end for _,name in pairs(filelist(testfiledir, glob .. pvtext)) do excludenames[jobname(name)] = true end end local function addname(name) if not excludenames[jobname(name)] then insert(names,jobname(name)) end end for _,glob in pairs(includetests) do for _,name in pairs(filelist(testfiledir, glob .. lvtext)) do addname(name) end for _,name in pairs(filelist(testfiledir, glob .. pvtext)) do addname(name) end for _,name in pairs(filelist(unpackdir, glob .. lvtext)) do if fileexists(testfiledir .. "/" .. name) then print("Duplicate test file: " .. i) return 1 end addname(name) end end sort(names) -- Deal limiting range of names if options["first"] then local allnames = names local active = false local firstname = options["first"] names = { } for _,name in ipairs(allnames) do if name == firstname then active = true end if active then insert(names,name) end end end if options["last"] then local allnames = names local lastname = options["last"] names = { } for _,name in ipairs(allnames) do insert(names,name) if name == lastname then break end end end end -- https://stackoverflow.com/a/32167188 local function shuffle(tbl) local len, random = #tbl, rnd for i = len, 2, -1 do local j = random(1, i) tbl[i], tbl[j] = tbl[j], tbl[i] end return tbl end if options["shuffle"] then names = shuffle(names) end -- Actually run the tests print("Running checks on") local i = 0 for _,name in ipairs(names) do i = i + 1 print(" " .. name .. " (" .. i.. "/" .. #names ..")") local errlevel = runcheck(name, hide) -- Return value must be 1 not errlevel if errlevel ~= 0 then if options["halt-on-error"] then return 1 else errorlevel = 1 -- visually show that something has failed print(" --> failed\n") end end end if errorlevel ~= 0 then checkdiff() else print("\n All checks passed\n") end end return errorlevel end function main(target, names) target_list["check"]["func"] = modified_check stdmain(target, names) end kpse.set_program_name("kpsewhich") dofile(kpse.lookup("l3build.lua"))
--------------------------------------------------------------------------------------------- -- Requirement summary: -- [OnAppPermissionChanged]: appRevoked:true -- -- Description: -- In case the app is currently registered and in any -- HMILevel and in result of PTU gets "null" policies, -- SDL must send OnAppPermissionChanged (appRevoked: true) to HMI -- -- Used preconditions: -- appID="123abc" is registered to SDL -- any PolicyTableUpdate trigger happens -- -- Performed steps: -- PTU is valid -> application with appID=123abc gets "null" policy -- -- Expected result: -- SDL -> HMI: OnAppPermissionChanged (<appID>, appRevoked=true, params) --------------------------------------------------------------------------------------------- --[[ General configuration parameters ]] config.defaultProtocolVersion = 2 config.deviceMAC = "12ca17b49af2289436f303e0166030a21e525d266e209267433801a8fd4071a0" --[[ Required Shared libraries ]] -- local mobileSession = require("mobile_session") local commonSteps = require('user_modules/shared_testcases/commonSteps') local commonFunctions = require('user_modules/shared_testcases/commonFunctions') local json = require("modules/json") --[[ Local Variables ]] local ptu_table --[[ Local Functions ]] local function ptsToTable(pts_f) local f = io.open(pts_f, "r") local content = f:read("*all") f:close() return json.decode(content) end local function updatePTU(ptu) if ptu.policy_table.consumer_friendly_messages.messages then ptu.policy_table.consumer_friendly_messages.messages = nil end ptu.policy_table.device_data = nil ptu.policy_table.module_meta = nil ptu.policy_table.usage_and_error_counts = nil ptu.policy_table.app_policies["0000001"] = json.null ptu.policy_table.functional_groupings["DataConsent-2"].rpcs = json.null ptu.policy_table.module_config.preloaded_pt = nil end local function storePTUInFile(ptu, ptu_file_name) local f = io.open(ptu_file_name, "w") f:write(json.encode(ptu)) f:close() end --[[ General Precondition before ATF start ]] commonFunctions:SDLForceStop() commonSteps:DeleteLogsFileAndPolicyTable() --[[ General Settings for configuration ]] Test = require('connecttest') require('user_modules/AppTypes') --[[ Preconditions ]] commonFunctions:newTestCasesGroup("Preconditions") function Test:ActivateApp() local requestId1 = self.hmiConnection:SendRequest("SDL.ActivateApp", { appID = self.applications["Test Application"] }) EXPECT_HMIRESPONSE(requestId1) :Do(function(_, data1) if data1.result.isSDLAllowed ~= true then local requestId2 = self.hmiConnection:SendRequest("SDL.GetUserFriendlyMessage", { language = "EN-US", messageCodes = { "DataConsent" } }) EXPECT_HMIRESPONSE(requestId2) :Do(function() self.hmiConnection:SendNotification("SDL.OnAllowSDLFunctionality", { allowed = true, source = "GUI", device = { id = config.deviceMAC, name = "127.0.0.1" } }) EXPECT_HMICALL("BasicCommunication.ActivateApp") :Do(function(_, data2) self.hmiConnection:SendResponse(data2.id,"BasicCommunication.ActivateApp", "SUCCESS", { }) end) :Times(1) end) end end) EXPECT_HMICALL("BasicCommunication.PolicyUpdate") :Do(function(_, d) ptu_table = ptsToTable(d.params.file) end) end --[[ Test ]] commonFunctions:newTestCasesGroup("Test") function Test:PTU() local policy_file_name = "PolicyTableUpdate" local policy_file_path = commonFunctions:read_parameter_from_smart_device_link_ini("SystemFilesPath") local ptu_file_name = os.tmpname() local requestId = self.hmiConnection:SendRequest("SDL.GetURLS", { service = 7 }) EXPECT_HMIRESPONSE(requestId) :Do(function() self.hmiConnection:SendNotification("BasicCommunication.OnSystemRequest", {requestType = "PROPRIETARY", fileName = policy_file_name}) updatePTU(ptu_table) storePTUInFile(ptu_table, ptu_file_name) EXPECT_NOTIFICATION("OnSystemRequest", {requestType = "PROPRIETARY"}) :Do(function() local corIdSystemRequest = self.mobileSession:SendRPC("SystemRequest", {requestType = "PROPRIETARY", fileName = policy_file_name}, ptu_file_name) EXPECT_HMICALL("BasicCommunication.SystemRequest") :Do(function(_, d) self.hmiConnection:SendResponse(d.id, "BasicCommunication.SystemRequest", "SUCCESS", { }) self.hmiConnection:SendNotification("SDL.OnReceivedPolicyUpdate", { policyfile = policy_file_path .. "/" .. policy_file_name }) end) EXPECT_RESPONSE(corIdSystemRequest, { success = true, resultCode = "SUCCESS"}) EXPECT_HMINOTIFICATION("SDL.OnAppPermissionChanged", { appRevoked = true, appID = self.applications["Test Application"]}) end) end) os.remove(ptu_file_name) end --[[ Postconditions ]] commonFunctions:newTestCasesGroup("Postconditions") function Test.Postcondition_StopSDL() StopSDL() end return Test
-- Squid-Tech for recipe unlocks squidTech = util.table.deepcopy(data.raw["technology"]["advanced-material-processing-2"]) squidTech.name = "squid-tech" squidTech.effects = { { type = "unlock-recipe", recipe = "squid-plate"}, { type = "unlock-recipe", recipe = "squid-furnace"}, { type = "unlock-recipe", recipe = "squid-centrifuge"} } squidTech.prerequisites = {"advanced-material-processing-2", "effectivity-module", "production-science-pack"} squidTech.unit = { count = 300, ingredients = { {"automation-science-pack", 1}, {"logistic-science-pack", 1}, {"chemical-science-pack", 1}, {"production-science-pack", 1} }, time = 30 } squidTech.order = "c-c-b-a" -- Add into game data:extend({ squidTech })
--[=[ Utility methods for grip attachments @class IKGripUtils ]=] local IKGripUtils = {} --[=[ Parent to the attachment we want the humanoid to grip. ```lua -- Get the binder local leftGripAttachmentBinder = serviceBag:GetService(require("IKBindersServer")).IKLeftGrip -- Setup sample grip local attachment = Instance.new("Attachment") attachment.Parent = workspace.Terrain attachment.Name = "GripTarget" -- This will make the NPC try to grip this attachment local objectValue = IKGripUtils.create(leftGripAttachmentBinder, workspace.NPC.Humanoid) objectValue.Parent = attachment ``` @param binder Binder @param humanoid Humanoid @return ObjectValue ]=] function IKGripUtils.create(binder, humanoid) assert(binder, "Bad binder") assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid") local objectValue = Instance.new("ObjectValue") objectValue.Name = binder:GetTag() objectValue.Value = humanoid binder:Bind(objectValue) return objectValue end return IKGripUtils
--[[ simple payment from the originator to the receiver. This is for test only as does not take miner fees Expected behaviour in production is that this is not included in scripts.txt and therefore is not loaded. TESTING ONLY Wallet used is presumed to be the default wallet (wallets.default) KEYS[1] is originator pubKey (inserted automatically), KEYS[2] is receiver pubkey ARGV 1,2,3 are all standard for instructions: 1: mining/mined (if testing mining or processing mined block, instruction hash, blockHash if in a block or 'None' if in mining mode ARGV[1]: 'mining / mined' This is there automatically. As this is testing it is ignored (so balance can go negative) if 'mining' we update the mining state not the actual entity state if 'mined' the balance for sender, receiver and mining fees are taken and payments made. Assuming no sharding ARGV[2] is instructionHash to check and remove from pool if instruction passes ARGV[3] is blockHash to rollback state (ignored)(this is the state of the chain immediately before applying this block), also used to store the processed instructions in a hash ARG[4] is the amount to pay in whole numbers --]] if redis.call("EXISTS", KEYS[1]) == 1 and redis.call("EXISTS", KEYS[2]) == 1 then redis.call("HINCRBY", KEYS[1], "wallets.default.balance", -ARGV[4]) redis.call("HINCRBY", KEYS[2], "wallets.default.balance", ARGV[4]) return {"1", "success"} else return {"0", "does not exist"} end
return { { title='ann-the-future-of-sailor-a-letter-to-sailor-and-lua-communities', long_title='Jan 15 2016 - Announcement: The future of Sailor, a letter to Sailor and Lua communities', md = true, body=[[ Hello everyone, Happy new year! As you may or may not know, it is my dream that Lua gains more scene on web developments, being it through Sailor or not. When I decided to create Sailor, I was still learning Lua and I was not thinking big, I created another tool only because there weren’t many around and it would take me long to understand the current tools to contribute to them (and I also believe that at the time lapis was moonscript only). While nobody would be interested in yet another MVC framework for PHP, I knew this wouldn’t be the case with Lua, it wouldn’t be very redundant and I would have fun creating something to learn. Two years have passed and this has been amazing! While developments have been slow (I cannot do as much as I’d wish on my free time while being a full time masters student), I can confidently say I never imagined Sailor would become what it is today and I never imagined my life would change so much because of it. It became way more solid during this time and it’s in fact usable for real world applications, having gained its first [productions uses](https://github.com/sailorproject/production_uses) on this last year. I would also not be able to continue my masters if it wasn’t for its participation on last [Google Summer of Code](http://google-opensource.blogspot.com.br/2015/12/google-summer-of-code-wrap-up-lablua.html). And it’s been an honor to present it in conferences such as [FISL](http://hemingway.softwarelivre.org/fisl15/high/41a/sala41a-high-201405081604.ogv), [Lua Workshop](https://www.youtube.com/watch?v=igkEr8dw9Lk), [.concat()](https://www.youtube.com/watch?feature=player_detailpage&v=bx1bVJZueFw#t=371), [code.talks](http://www.codetalks.de/2015/programm/web-development-with-lua-programming-language) and [Coding Serbia](https://www.youtube.com/watch?v=JGPvM-50bOk). During this time, I also got more involved with the Lua community in ways I couldn’t imagine. I ended opening [lua.space](http://lua.space), I help manage the international [Lua facebook group](https://www.facebook.com/groups/lua.br/), in three weeks I’ll be at FOSDEM discussing the Lua community on a [panel](https://fosdem.org/2016/schedule/event/future_guile_lua/) with other wonderful people and, from mid february on, I’ll spend a whole month working full time improving [LuaRock](http://luarocks.org)’s website as a part of a school project. I only have great things to say and I’d like to give an immense thank you to the Lua community for the support it has been giving me on the development of Sailor since the [beginning](https://www.reddit.com/r/lua/comments/1uvssq/i_decided_to_learn_lua_by_writing_a_web_framework/cem79gd), even though it has always been a very simple tool. I’ve learned so much, I’ve grew so much. Special thanks go to: Hisham Muhammad, Ana Lúcia de Moura, Roberto Ierusalimschy, Pierre Chapuis, Paul Cuthbertson, Fabio Mascarenhas, Felipe Daragon, Daniel Gruno, Alexander Gladysh and Ignacio Burgueño. I apologise if I accidently forgot someone. Sailor grew as well. And I have great news for you, marking the beginning of a new phase! It is our great desire that one day Sailor becomes a professional tool and has adhesion not only in the Lua community but outside. We believe Lua is an amazing differential on itself. We’re trying to organize things better to enable an environment where this is possible. I have written [contribution guides](https://github.com/sailorproject/sailor/blob/master/CONTRIBUTING.md), added a [code of conduct](https://github.com/sailorproject/sailor/blob/master/CODE_OF_CONDUCT.md) and have moved Sailor’s repository from my personal profile to it’s own [organisation profile](https://github.com/sailorproject/) on Github. It is time now, to discuss the future of Sailor with you and prepare for a v1.0 release. Hopefully, many interesting discussions will spring during FOSDEM as well, this is why I created a [repository](https://github.com/sailorproject/design) only for brainstorming and documenting its design. Perhaps we could separate some of the ideas and I’ll apply them to [Rails Girls Summer of Code](http://railsgirlssummerofcode.org/guide/projects/). If accepted, that means fresh blood helping around, new features, and women being mentored into programming. Additionally, in the biggest announcement of this letter, I’d like to welcome [Fernando Paredes García](https://twitter.com/develCuy) on our team. Fernando @develCuy is a Lua developer from Lima, Perú, who’s a FOSS advocate and also a member of the Drupal community. He’s the maintainer of [The Ophal Project](http://ophal.org), a highly-scalable CMS and web platform in Lua which is already being used to run some high traffic websites. We have been discussing and decided that Sailor and Ophal will be joining forces. This means that in the near feature we will be working together to decide what is the best course for this, gradually make our modules interoperate, resolve license issues, have a single and stronger project and work together on future modifications. This merge procedure will also be discussed in the [design repository](https://github.com/sailorproject/design). I am very happy because Fernando and I share many values, we believe in the power of Lua and 4 hands work better than 2. Please welcome Fernando \*slow claps\*. Cheers, Etiene]] }, { title = 'new-release-0-5-pluto-contributor-call', long_title = 'Dec 02 2015 - New release! Version 0.5 (Pluto) and Call For Contributors!', body = [[ Hello, everyone! <br/> I'm very happy to announce a new Sailor version is coming out today! <a href="https://github.com/Etiene/sailor/releases/tag/v0.5-alpha" target="_blank">Version 0.5 - Pluto</a> <br/><br/> <strong>What's new from Sailor v0.4 Chibi?</strong> <br/>* More tests for Sailor itself and integration with Travis CI <br/>* Transactions for some major databases (MySQL, PostgreSQL, SQLite3) <br/>* Integration with multiple Lua->JS virtual machines for using Lua on the browser <br/>* General improvements on using Lua on the browser <br/> * Requiring of Lua modules <br/> * Accessing JS functions and passing callbacks <br/> * Better DOM manipulation <br/> * Accessing JS libraries (e.g. JQuery) and using them from Lua <br/>* Integration with internal OpenResty's MySQL DB API <br/>* Simulated OpenResty environment on automated tests (Depends on OpenResty) <br/>* Improvements on OpenResty compatibility <br/>* Improvements on Lighttpd compatiblity <br/>* Some bugfixes <br/>For more details, please check the complete <a href="https://github.com/Etiene/sailor/blob/master/CHANGELOG.md" target="_blank">changelog</a>. <br/> <br/><strong>Roadmap</strong> <br/>* A rework on friendly urls <br/>* Have a way to easily integrate ready-to-go external sailor extensions / plugins <br/>* Rework how Sailor deals with views, allowing to use templates other than Lua Pages <br/>* Review the session manager <br/>* Integration with mod_lua's DB API and DB module refactor <br/> <br/><strong>Call for contributors! <3 <3 <3 <3 </strong> <br/>Would you like to participate in the future of Sailor or contribute to another Lua tool for web development? Sailor needs your help to make our next release a 1.0 release, we are now very close! :) It would be amazing if more people joined in! Please consider contributing with code, tests, documentation, translation or spreading the word. For more details, check the complete <a href="https://github.com/Etiene/sailor/blob/master/CONTRIBUTING.md" target="_blank">Contribution Guide</a>. <br/> <br/><strong>Quick install example for Unix, using Xavante web server:</strong> <pre> luarocks install sailor sailor create "my app" /var/www cd /var/www/my_app lua start-server.lua </pre> <br/>ATTENTION: If you are upgrading from previous versions you might have an issue with shared files during app creation. If it's the case, then you need to remove the current sailor version before installing the new one. <br/> <br/><strong>Supported Environments:</strong> <br/>OS: Windows, Mac and Linux <br/>Servers: Apache2 with mod_lua, Nginx distro OpenResty, Mongoose, Xavante, Lwan and Lighthttpd <br/>Databases: MySQL, PostgreSQL, SQLite (databases supported by the luasql library) + OpenResty native MySQL API <br/> <br/>The license is MIT, Sailor is completely free software, use at will! Feedback is much appreciated. If you really like it you can consider making a <a href="http://sailorproject.org/?r=main/donate">donation</a>. <br/> <br/>If you need support, please contact me or send an email to the <a href="https://groups.google.com/forum/#!forum/sailor-l" target="_blank">mail list</a>. <br/> <br/> <br/>Cheers! <br/>-- Etiene ]] }, { title = 'sailor-goes-to-confs', long_title = 'Nov 25 2015 - Sailor on CodingSerbia (video), FOSDEM and Bulgaria Web Summit', body = [[ Sailor was last presented on <a href="http://codingserbia.com/" target="_blank">CodingSerbia</a>! You may watch the video here: <a href="https://www.youtube.com/watch?v=JGPvM-50bOk" target="_blank">YouTube.</a> <br/> <br/>I'll be giving this same talk during <a href="http://bulgariawebsummit.com/" target="_blank">Bulgaria Web Summit</a>. If you want to chat about Sailor (and get free stickers) I'll be there and also at <a href="https://fosdem.org/2016/" target="_blank">FOSDEM</a>! I submitted this talk to FOSDEM as well, but the results were not disclosed yet. But I'll be there anyway because there will be a Lua DevRoom, and it will be a very awesome community meet-up. You can find more information about this <a href="https://www.reddit.com/r/lua/comments/3r814o/lua_devroom_at_fosdem_2016_call_for_speakers/" target="_blank">here</a>. <br/><br/> --Etiene ]] }, { title = 'irc-channel', long_title = 'Aug 10 2015 - Sailor now has an IRC channel!', body = [[ Due to a recent request, I decided to create an IRC channel for sailor on freenode: #lua-sailor <br/>If you need a client to connect to the chatroom you can use <a href="http://webchat.freenode.net/?channels=lua,lua-sailor" target="_blank">freenode's web client</a>. ]] }, { title = 'new-release-version-0-4-chibi', long_title = 'Jul 6 2015 - New release! Version 0.4 (Chibi)', body = [[ I am proud to announce a new release came out today: <a href="https://github.com/Etiene/sailor/releases" target="_blank">Version 0.4 (Chibi)</a> <br/>Sailor is an MVC web framework written in Lua compatible with Mac, Windows and Linux and runs over Apache with mod_lua, Openresty (Nginx), Mongoose, Lwan, Xavante or Lighttpd.<br/> <br/>What's new from Sailor v0.3 Jupiter? <br/> * Integration with <a href="olivinelabs.com/busted/" target="_blank">Busted</a> to allow unit and functional testing of your apps. <br/> * Bug fixes and general improvements<br/> <br/>What's next? <br/> * Improvements on the usability of Lua at client side ]] }, { title = 'talks-on-web-development-in-Lua', long_title = 'Jun 30 2015 - Talks on web development in Lua', body = [[ If you want to chat about Sailor, I'll be in two conferences giving a talk about web development in Lua and you'll be able to find me there: <br/><a href="http://www.codetalks.de/2015/programm/web-development-with-lua-programming-language">Code.talks</a>: 29th and 30th September - Hamburg, Germany <br/><a href="http://codingserbia.com/">Coding Serbia</a>: 8th and 9th October - Novi Sad, Serbia ]] }, { title = 'all-docs-on-markdown', long_title = 'Jun 16 2015 - All docs in markdown', body = [[ In order to syncronize the docs of the website with the docs on the github repository, one of our contributors, Felipe Daragon, implemented a page.include_md method to Sailor's website and I've converted all docs from html to markdown. Now it will be easier to have everything up-to-date and easier to contribute to documentation too. Take a look: <a href="https://github.com/Etiene/sailor/tree/master/docs" target="_blank">Docs on github</a>. ]] }, { title = 'new-release-during-geecon-2015', long_title = 'May 15 2015 - New release during GeeCon 2015: v0.3 (Jupiter)', body = [[ Today, during GeeCon 2015, I'm releasing a new version of Sailor! Version 0.3 Jupiter. <br/>What's new from Sailor v0.2 Mars? <br/> * Friendly urls <br/> * Inspect function for better debugging => similar to a var dump <br/> * Custom 404 pages <br/> * Runs over Lighttpd, Xavante and Lwan web servers <br/> * Relations <br/> * Model generation (reading from DB) <br/> * CRUD generation (reading from model) <br/> * Theme and layout (now you can have multiple layouts inside a theme. e.g. 1-column and 2-column) <br/> * Bug fixes and general improvements <br/><br/> Check here for more info: <a href="https://github.com/Etiene/sailor/releases/tag/v0.3" target="_blank">Sailor v0.3 Jupiter on Github</a> <br/> You can also watch the presentation about web development in Lua made during GeeCon <a href="https://vimeo.com/131808602" target="_blank">here</a>. ]] }, { title = 'sailor-has-been-accepted-on-google-summer-of-code-2015', long_title = 'Apr 27 2015 - "Sailor: Web development in Lua" submitted to LabLua has been accepted for Google Summer of Code 2015', body = [[ Great news! Sailor was accepted as a project for GSoC, that means I'll be able to dedicate my whole summer to it and cool things will pop out soon. Some of the modifications foreseen for the program include the implementation of a test suite to make unit and functional tests on your Sailor application and improve the current Lua at client functioning, so it becomes easier to manipulate the DOM using Lua. ]] } }
-- DetailWidgetOnlineEntity.lua -- Author:Demon -- Date:2016/3/9 -- Last modification: -- Description:线上实物详细信息界面 -- Note: require("hall/backpack/data/backpackDataInterface"); local hallLayerBaseWithName = require("hall/widget/hallLayerBaseWithName") local DetailWidgetOnlineEntity = class(hallLayerBaseWithName,false); DetailWidgetOnlineEntity.s_layerName = "case_detail_online_entity"; DetailWidgetOnlineEntity.ctor = function(self,p_data) local __layout = require(ViewPath .. "hall/newObjectCase/newObjectCaseOnlineEntity"); super(self,__layout,nil,DetailWidgetOnlineEntity.s_layerName ); self:declareLayoutVar(ViewPath.."hall/newObjectCase/newObjectCaseOnlineEntity".."_layout_var"); self.m_data = p_data; self.m_localData = new(LocalPlayerInfoDict); self:setFillParent(true, true); self:addToRoot(); self.m_maxLengthForEdit = 11; self:getHandle(); self:init(); self:setListenBackEvent(true); end DetailWidgetOnlineEntity.dtor = function(self) delete(self.m_localData); end --得到相关句柄 DetailWidgetOnlineEntity.getHandle = function(self) self:getComponent(); self:runUiAction(UiAnimConfig.ACTION.BEGIN, self.mm_ImageBack); end DetailWidgetOnlineEntity.init = function(self) ImageCache.getInstance():request(self.m_data.iconPath,self,self.onGetImage); self.mm_Text_name:setText(self.m_data.name); local __commonFunction = require("hall/backpack/commonFunction/commonFunction"); local __timeString = __commonFunction.getTimeString(self.m_data.expiresSec); self.mm_Text_day:setText(__timeString); local __phoneWidget = __commonFunction.createClientPhoneWidget(); if not __phoneWidget then self.mm_View_clientPhone:setVisible(false); else self.mm_View_phoneNumber:addChild(__phoneWidget); local __w,__ = __phoneWidget:getSize(); self.mm_phoneLogo:setPos(__w+5 ,nil); end --用历史手机号码赋值 self:initEditTextByRecord(); end --用历史记录的值给输入框赋值。 DetailWidgetOnlineEntity.initEditTextByRecord = function(self) local initEdit = function(p_edit,p_mode,p_length,p_record) p_edit:setInputMode(p_mode); p_edit:setMaxLength(p_length); --self.mm_EditText_phoneNum:setHintText(215,171,127); p_edit:setText(p_record); end local record = self.m_localData:getValue("entity_name"); initEdit(self.mm_EditText_Name,kEditBoxInputModeSingleLine,18,record); local record = self.m_localData:getValue("entity_phone"); initEdit(self.mm_EditText_Phone,kEditBoxInputModePhoneNumber,11,record); local record = self.m_localData:getValue("entity_addess"); initEdit(self.mm_EditTextView_Address,kEditBoxInputModeSingleLine,36,record); end --检查输入的值是否符合要求 DetailWidgetOnlineEntity.checkAndGetPhoneNumber = function(self) local name = self.mm_EditText_Name:getText(); name = string.trim(name," "); if name == "" or name == nil then local msg = "请输入正确的姓名"; Toast.getInstance():showText(msg, 50, 30, kAliginCenter, "", 24, 255, 255, 255); return false; end local phoneNumber = self.mm_EditText_Phone:getText(); phoneNumber = string.trim(phoneNumber," "); if not (string.checkPhoneNumber(phoneNumber)) then local msg = "请输入正确的手机号码"; Toast.getInstance():showText(msg, 50, 30, kAliginCenter, "", 24, 255, 255, 255); return false; end local address = self.mm_EditTextView_Address:getText(); address = string.trim(address," "); if address == "" or address == nil then local msg = "请输入正确的地址"; Toast.getInstance():showText(msg, 50, 30, kAliginCenter, "", 24, 255, 255, 255); return false; end self.m_localData:setValue("entity_phone",phoneNumber); self.m_localData:setValue("entity_name",name); self.m_localData:setValue("entity_addess",address); return name,address,phoneNumber; end DetailWidgetOnlineEntity.onGetImage = function(self,url,imagePath) local icon = UIFactory.createImage(imagePath); if icon then local w,h = self.mm_Image_icon:getSize(); local iconW , iconH = icon:getSize(); local scaleW = iconW>iconH and w or h*iconW/iconH; local scaleH = iconW>iconH and w*iconH/iconW or h; icon:setSize(scaleW,scaleH); icon:setAlign(kAlignCenter); self.mm_iconFrame:removeChild(self.mm_Image_icon,true); self.mm_iconFrame:addChild(icon); self.mm_Image_icon = icon; end end DetailWidgetOnlineEntity.oncloseBtnClick = function(self) self:close(); end DetailWidgetOnlineEntity.onuseBtnClick = function(self) local name,phoneNumber,address = self:checkAndGetPhoneNumber(); if name then --存下有效数据 BackpackDataInterface.getInstance():getOnlineEntity(self.m_data); --self:oncloseBtnClick(); end end --调用拨打电话接口 DetailWidgetOnlineEntity.onBindToCallPhone = function(self,finger_action,x,y,drawing_id_first,drawing_id_current, event_time) if finger_action == kFingerUp then BackpackDataInterface.getInstance():callHotline(); end end return DetailWidgetOnlineEntity;
require "scripts.common" local o={} function o:OnActivate() if(self:IsAuthoritative()) then SpawnerComponentRequestBus.Event.Spawn(self.entityId); end Debug.Log("spawn if master:"); --Debug.Log(dump(self)); end return o;
local t = Def.ActorFrame {}; local Space = '0000'; local Combo = STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):MaxCombo(); local FullStep = STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W1") + STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W2") + STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W3") + STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W4") + STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W5") + STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_Miss") local Marvelous = string.sub(Space..STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W1"), -4); local Perfect = string.sub(Space..STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W1")+STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W2"), -4); local Great = string.sub(Space..STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W3"), -4); local Good = string.sub(Space..STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W4"), -4); local Almost = string.sub(Space..STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_W5"), -4); local Boo = string.sub(Space..STATSMAN:GetCurStageStats():GetPlayerStageStats(PLAYER_1):GetTapNoteScores("TapNoteScore_Miss"), -4); local PMarv = Marvelous/FullStep local PPerf = Perfect/FullStep; local PGrea = Great/FullStep; local PGood = Good/FullStep; local PAlmo = Almost/FullStep; local PBoo = Boo/FullStep; --Perfect-- t[#t+1] = Def.ActorFrame{ InitCommand=cmd(player,PLAYER_1;y,-100); LoadFont("2ndMIXJudgeNum.ini")..{ InitCommand=cmd(horizalign,right;); OnCommand=function(self) self:settextf(Perfect); end; }; LoadFont("2ndMIXJudgePercent")..{ InitCommand=cmd(addx,-134;addy,8;horizalign,right;); OnCommand=function(self) self:settextf(string.format("%.1f", (Perfect*100)/FullStep).."%%"); end; }; }; --Great-- t[#t+1] = Def.ActorFrame{ InitCommand=cmd(player,PLAYER_1;y,-54); LoadFont("2ndMIXJudgeNum.ini")..{ InitCommand=cmd(horizalign,right;); OnCommand=function(self) self:settextf(Great); end; }; LoadFont("2ndMIXJudgePercent")..{ InitCommand=cmd(addx,-134;addy,8;horizalign,right;); OnCommand=function(self) self:settextf(string.format("%.1f", (Great*100)/FullStep).."%%"); end; }; }; --Good-- t[#t+1] = Def.ActorFrame{ InitCommand=cmd(player,PLAYER_1;y,-10); LoadFont("2ndMIXJudgeNum.ini")..{ InitCommand=cmd(horizalign,right;); OnCommand=function(self) self:settextf(Good); end; }; LoadFont("2ndMIXJudgePercent")..{ InitCommand=cmd(addx,-134;addy,8;horizalign,right;); OnCommand=function(self) self:settextf(string.format("%.1f", (Good*100)/FullStep).."%%"); end; }; }; --Boo-- t[#t+1] = Def.ActorFrame{ InitCommand=cmd(player,PLAYER_1;y,36); LoadFont("2ndMIXJudgeNum.ini")..{ InitCommand=cmd(horizalign,right;); OnCommand=function(self) self:settextf(Almost); end; }; LoadFont("2ndMIXJudgePercent")..{ InitCommand=cmd(addx,-134;addy,8;horizalign,right;); OnCommand=function(self) self:settextf(string.format("%.1f", (Almost*100)/FullStep).."%%"); end; }; }; --Miss-- t[#t+1] = Def.ActorFrame{ InitCommand=cmd(player,PLAYER_1;y,82); LoadFont("2ndMIXJudgeNum.ini")..{ InitCommand=cmd(horizalign,right;); OnCommand=function(self) self:settextf(Boo); end; }; LoadFont("2ndMIXJudgePercent")..{ InitCommand=cmd(addx,-134;addy,8;horizalign,right;); OnCommand=function(self) self:settextf(string.format("%.1f", (Boo*100)/FullStep).."%%"); end; }; }; --Max Combo-- t[#t+1] = LoadFont("2ndMIXMaxComboNum")..{ InitCommand=cmd(player,PLAYER_1;x,-12;y,132;horizalign,right;); OnCommand=function(self) self:settextf(Combo); end; }; --Bar indicators t[#t+1] = Def.ActorFrame { InitCommand=cmd(x,-328;addy,-2;zoomto,24,299;); --Miss Def.Quad{ OnCommand=cmd(diffusecolor,color("#F04000");cropbottom,1;draworder,1;linear,1;cropbottom,1-(PBoo+PAlmo+PGood+PGrea+PPerf+PMarv)); }; --Boo Def.Quad{ OnCommand=cmd(diffusecolor,color("#F800B0");cropbottom,1;draworder,1;linear,1;cropbottom,1-(PAlmo+PGood+PGrea+PPerf+PMarv)); }; --Good Def.Quad{ OnCommand=cmd(diffusecolor,color("#10E0F0");cropbottom,1;draworder,1;linear,1;cropbottom,1-(PGood+PGrea+PPerf+PMarv)); }; --Great Def.Quad{ OnCommand=cmd(diffusecolor,color("#00F860");cropbottom,1;draworder,1;linear,1;cropbottom,1-(PGrea+PPerf+PMarv)); }; --Perfect Def.Quad{ OnCommand=cmd(diffusecolor,color("#F8F840");cropbottom,1;draworder,1;linear,1;cropbottom,1-(PPerf+PMarv)); }; --Marvelous Def.Quad{ OnCommand=cmd(diffusecolor,color("#F8F840");cropbottom,1;draworder,1;linear,1;cropbottom,1-(PMarv)); }; }; return t;
-- npm install -g yaml-language-server require'lspconfig'.yamlls.setup{ on_attach = require'garbray.lsp.handlers'.on_attach, }