{"id":19441550,"url":"https://github.com/antix-development/textbox","last_synced_at":"2025-10-30T03:07:36.539Z","repository":{"id":91497760,"uuid":"110302762","full_name":"Antix-Development/TextBox","owner":"Antix-Development","description":"A text box featuring line wrapping, alignment, and per word coloring","archived":false,"fork":false,"pushed_at":"2017-11-11T00:01:51.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T21:52:56.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Antix-Development.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-10T23:38:49.000Z","updated_at":"2020-11-24T20:21:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"fecc3f6e-89e0-4744-86aa-3171b61f6602","html_url":"https://github.com/Antix-Development/TextBox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antix-Development%2FTextBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antix-Development","download_url":"https://codeload.github.com/Antix-Development/TextBox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240625688,"owners_count":19831377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T15:36:11.911Z","updated_at":"2025-10-30T03:07:36.477Z","avatar_url":"https://github.com/Antix-Development.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TextBox\nA text box featuring line wrapping, alignment, and per word coloring\n\n\n\nText supplied to a TextBox will be wrapped automatically to a user specified width. The height will be auto generated so no need to bother with that. Text can change color word by word and you can align the text left. right, or center. You can also make new lines. Words can also have their color changed on the fly.\n\n\n\n\u003cb\u003eCONTROL CODES\u003c/b\u003e\n\n\n#align# - the next word will be used to align the text (\"left\", \"right\", \"center\")\n\n#color# - the next word will be used as the new brush color (0x000000 format)\n\n#n# - will force a new line\n\n\n\nNote that EVERYTHING must be separated by SPACES and in the expected format/order or the TextBox class will crash. Error checking could be built in.\n\n\n\n\n\u003cb\u003eFUNCTIONS\u003c/b\u003e\n\n\nTextBox:new(options)\n\noptions (optional) is a table containing things like text, x, y, color, etc.\n\n\n\nTextBox:SetText(text)\n\ntext - the new text to be rendered. This will force the TextBox to redraw its self.\n\n\n\nTextBox:SetFont(font)\n\nfont - the new font to be used. This will force the TextBox to redraw its self.\n\n\n\nTextBox:recolor(text, color, all)\n\ntext - the word that will be recolored.\n\ncolor - the new color for the word.\nall - if true, all occurrences of the word in the TextBox will be recolored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantix-development%2Ftextbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantix-development%2Ftextbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantix-development%2Ftextbox/lists"}