@@ -33,15 +33,16 @@ function ChatBubbles_SpawnBubble(data, senderID) {
33
33
delete currentBubbles [ senderID ] ;
34
34
}
35
35
36
- // TODO: handle avatar scale
36
+ const scale = AvatarList . getAvatar ( senderID ) . scale ;
37
+
37
38
const bubbleEntity = Entities . addEntity ( {
38
39
type : "Text" ,
39
40
parentID : senderID ,
40
41
text : data . message ,
41
42
unlit : true ,
42
43
lineHeight : 0.07 ,
43
44
dimensions : [ 1.3 , 4 , 0.01 ] ,
44
- localPosition : [ 0 , 3 .1, 0 ] ,
45
+ localPosition : [ 0 , scale + 2 .1, 0 ] ,
45
46
backgroundAlpha : 0 ,
46
47
textEffect : "outline fill" ,
47
48
textEffectColor : "#000" ,
@@ -77,15 +78,16 @@ function ChatBubbles_IndicatorTick(senderID) {
77
78
function ChatBubbles_ShowTypingIndicator ( senderID ) {
78
79
if ( typingIndicators [ senderID ] ) { return ; }
79
80
80
- // TODO: handle avatar scale
81
+ const scale = AvatarList . getAvatar ( senderID ) . scale ;
82
+
81
83
const indicatorEntity = Entities . addEntity ( {
82
84
type : "Text" ,
83
85
parentID : senderID ,
84
86
text : "•••" ,
85
87
unlit : true ,
86
88
lineHeight : 0.2 ,
87
89
dimensions : [ 0.22 , 0.1 , 0.01 ] ,
88
- localPosition : [ 0 , 1 , 0 ] ,
90
+ localPosition : [ 0 , scale , 0 ] ,
89
91
backgroundAlpha : 0.8 ,
90
92
canCastShadow : false ,
91
93
billboardMode : "full" ,
0 commit comments