{"id":"luj-s/action","name":"action","scope":"luj-s","platform":"roblox","description":"Input window library for fighting games","version":"0.1.3","latest":"0.1.3","versions":["0.1.0","0.1.1","0.1.2","0.1.3"],"license":"GPL-3.0","licenseRating":"unsafe","licenseCaveats":["Strong copyleft: shipping this in your game plausibly requires releasing your game's entire source under GPL-3.0. Not recommended for closed-source projects.","The package archive does not include its license text; the license is declared in its manifest metadata."],"licenseVerified":false,"dependencies":{},"integrity":"90e7b9a96b56f7c92cab7f8b48152bb8392bc1e08e315a06a21507e00e37b5af","likes":0,"downloads":0,"install":"forest install luj-s/action","url":"https://forest.dev/p/roblox/luj-s/action","files":"https://api.forest.dev/ai/package/roblox/luj-s/action/files","readme":"# Action is an input window library for Roblox fighting games.\n\n# API\n\n## new : (Sequence : string, f : () -> (...any), Cooldown : number?, FixedWindowSize : number?, WindowSizeMultiplier : number?) : (Enabled : boolean) -> ()\n\nCreates a new Action, that runs function ***f*** when the given keys, separated by *Action.SequenceDelimiter*, in ***Sequence*** get pressed before the given time, with ***FixedWindowSize*** or ***WindowSizeMultiplier***, given that [***Cooldown***] seconds have passed since the Action was triggered.\nReturns a function that when called enables or disables the Action, based on ***Enabled***.\n\n# Configuration\n\n## SequenceDelimiter : string\n\n###### *Default:* \"+\"\n\nThe string that separates characters in Action Sequences.\n\n## Defaults\n\nThe below configurations define default values, that get used when not passed as an argument in Action.new.\n\n## EnableByDefault : boolean\n\n###### *Default:* true\n\nWhether Actions are enabled by default.\n\n## DefaultCooldown : number\n\n###### *Default:* 0.1\n\nDefault time in seconds before the same Action can be triggered again.\n\n\n## DefaultWindowSizeMultiplier : number\n\n###### *Default:* 0.05\n\nDefault number that gets multiplied by the quantity of keys in an Action's Sequence to define its WindowSize. If you want the WindowSize of an Action not to be based on how many keys its Sequence has, but instead on an arbitrary number, you can pass to Action.new the FixedWindowSize argument, which doesn't have a default value since it's highly dependant for each Action.","readmeTruncated":false}