https://github.com/endel/pixi-emote-selector
💬😜 Emote Selector for pixi.js
https://github.com/endel/pixi-emote-selector
Last synced: 11 months ago
JSON representation
💬😜 Emote Selector for pixi.js
- Host: GitHub
- URL: https://github.com/endel/pixi-emote-selector
- Owner: endel
- License: mit
- Created: 2021-04-09T19:55:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-24T18:56:10.000Z (about 5 years ago)
- Last Synced: 2025-07-02T21:40:57.170Z (11 months ago)
- Language: TypeScript
- Size: 578 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💬😜 pixi-emote-selector
Emote Selector for [pixi.js](https://github.com/pixijs/pixi.js)

## Usage
```typescript
import { EmoteSelector } from "pixi-emote-selector";
const emoteSelector = new EmoteSelector({
options: [
PIXI.Sprite.from('emote_exclamation'),
PIXI.Sprite.from('emote_laugh'),
PIXI.Sprite.from('emote_sleeps'),
PIXI.Sprite.from('emote_heart'),
],
onItemSelected: (indexSelected) => {
console.log("Item selected:", indexSelected);
statusText.text = `${itemSelected} selected.`;
},
});
app.stage.addChild(emoteSelector);
```
The assets used on this demo are taken from [Kenney's Emotes Pack](https://kenney.nl/assets/emotes-pack).
## License
Endel Dreyer © MIT