{"id":"arensiboi/cifra","name":"cifra","scope":"arensiboi","platform":"roblox","description":"[PRE-ALPHA] A modern number spinner for Roblox.","version":"0.1.0","latest":"0.1.0","versions":["0.1.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"25df1d73491633d0d0d5905bbbdfea68e798f5c7a760e6a2409f389e2bf87a79","likes":0,"downloads":0,"install":"forest install arensiboi/cifra","url":"https://forest.dev/p/roblox/arensiboi/cifra","files":"https://api.forest.dev/ai/package/roblox/arensiboi/cifra/files","readme":"\r\n# CIFRA\r\n\r\n## About\r\n\r\n### ⚠️ PRE-ALPHA ⚠️\r\n\r\nCifra is a modernized number spinner for Roblox.\r\n\r\nHeavily inspired by [NumberSpinner by BoatBomber](https://github.com/boatbeaker/NumberSpinner). Cifra was created for a project of mine.\r\n\r\n### Why Cifra?\r\n\r\nAt this moment in Cifra's development, I would NOT recommend Cifra to be used in devlopment. Cifra lacks several features for proper development. Feel free to mess around with it tho. :D\r\n\r\n## Basic Usage\r\n\r\nCifra is strictly client based. It has a similar 'Instance' approach for the creation of the spinner.\r\n\r\n```luau\r\nlocal CifraSpinner = require(\"@game/ReplicatedStorage/Cifra\") --or any other path to cifra\r\n\r\nlocal spinner = CifraSpinner.new()\r\n    spinner.TextTemplate = script.Template --assume script.Template exist and is a TextLabel\r\n    spinner.Speed = 2 --The higher the integer, the slower is tween animation is\r\n    spinner.Value = 10\r\nspinner:SetParent(script.Parent) --assuming script.parent is a screengui instance lol\r\n\r\nspinner:Update()\r\n```\r\n\r\n## EXAMPLES\r\n\r\n### TIMER\r\n\r\n```luau\r\nconst TIME: number = 20\r\n\r\nlocal spinner = CifraSpinner.new()\r\n    spinner.Format = function(value: number)\r\n        return string.format(\"%02d:%02d\", value/60%60, value%60)\r\n    end\r\nspinner:SetParent(script.Parent)\r\n\r\n\r\nfor i = TIME, 0, -1 do\r\n    spinner.Value = i\r\n        spinner:Update()\r\n    task.wait(1)\r\nend\r\n```\r\n\r\n### DECIMAL\r\n\r\n```luau\r\n\r\nlocal spinner = CifraSpinner.new()\r\n    spinner.Format = function(value: number)\r\n        return string.format(\"%.2f\", value)\r\n    end\r\n    spinner.Value = 0.1\r\nspinner:SetParent(script.Parent)\r\n\r\nspinner:Update()\r\n```\r\n","readmeTruncated":false}