fix external resources for twemoji
This commit is contained in:
parent
148540dafe
commit
0067a8edc2
@ -13,7 +13,6 @@
|
||||
onMount(() => {
|
||||
picker = new EmojiButton({
|
||||
rootElement: emojiContainer,
|
||||
style : 'twemoji',
|
||||
styleProperties: {
|
||||
'--font': 'Press Start 2P'
|
||||
},
|
||||
@ -58,9 +57,10 @@
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
.emote-menu {
|
||||
pointer-events: all;
|
||||
}
|
||||
}
|
||||
|
||||
.emote-menu {
|
||||
pointer-events: all;
|
||||
}
|
||||
</style>
|
@ -293,7 +293,7 @@ export abstract class Character extends Container {
|
||||
this.cancelPreviousEmote();
|
||||
const emoteY = -45;
|
||||
this.playerName.setVisible(false);
|
||||
this.emote = new Text(this.scene, -10, 0, emote, { fontFamily: '"twemoji"', fontSize: '20px' });
|
||||
this.emote = new Text(this.scene, -10, 0, emote, { fontFamily: '"Twemoji Mozilla"', fontSize: '20px' });
|
||||
this.emote.setAlpha(0);
|
||||
this.add(this.emote);
|
||||
this.createStartTransition(emoteY);
|
||||
|
@ -1,7 +1,7 @@
|
||||
@import "~@fontsource/press-start-2p/index.css";
|
||||
|
||||
@font-face {
|
||||
font-family: twemoji;
|
||||
font-family: "Twemoji Mozilla";
|
||||
src: url("./fonts/TwemojiMozilla.ttf") format('truetype');
|
||||
}
|
||||
|
||||
|
@ -1113,3 +1113,7 @@ div.is-silent {
|
||||
div.is-silent.hide {
|
||||
right: 15px;
|
||||
}
|
||||
|
||||
.emote-menu .emoji-picker .emoji-picker__emoji {
|
||||
font-family: "Twemoji Mozilla" !important;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user