An open API service indexing awesome lists of open source software.

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

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