Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/efekos/rbxts-imageservice
A lightweight module to store image ids for roblox-ts
https://github.com/efekos/rbxts-imageservice
roblox-ts
Last synced: 3 days ago
JSON representation
A lightweight module to store image ids for roblox-ts
- Host: GitHub
- URL: https://github.com/efekos/rbxts-imageservice
- Owner: efekos
- Created: 2022-11-21T17:06:44.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T18:14:48.000Z (almost 2 years ago)
- Last Synced: 2023-07-15T21:28:26.703Z (over 1 year ago)
- Topics: roblox-ts
- Language: TypeScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ImageService
A lightweight module to store image ids for roblox-tsThis package simply adds a class called ImageService. you can store images to it and get all your image ids from there instead of copy-pasting them everywhere.
Example Usage:
```ts
//--- client/main.client.ts ---
const Gui = Players.LocalPlayer.WaitForChild("PlayerGui").FindFirstChild("Menu") as ScreenGuiconst Homebutton = Gui.WaitForChild("Home") as ImageButton
Homebutton.Image = ImageService.getImage("homeIcon")
```