@@ -191,11 +191,11 @@ public void draw(Batch batch, float alpha) {
191
191
if (style .talkBubble != null ) {
192
192
float scale = DPIUtils .getTouchMinSize () * style .bubbleSize / 4 / style .talkBubble .getMinHeight ();
193
193
194
- float bubbleX = unprojectTmp .x - style .talkBubble .getMinWidth () * scale / 2 ;
194
+ float bubbleX = unprojectTmp .x - style .talkBubble .getMinWidth () * scale / 2 + style . bubbledx ;
195
195
// check screen exit
196
196
bubbleX = Math .max (bubbleX , getX () + PADDING - style .talkBubble .getMinWidth () * scale / 2 );
197
197
bubbleX = Math .min (bubbleX , getX () + getWidth () - PADDING - style .talkBubble .getMinWidth () * scale / 2 );
198
- float bubbleY = getY () - style .talkBubble .getMinHeight () * scale + 2 ;
198
+ float bubbleY = getY () - style .talkBubble .getMinHeight () * scale + style . bubbledy ;
199
199
200
200
style .talkBubble .draw (batch , bubbleX , bubbleY , style .talkBubble .getMinWidth () * scale ,
201
201
style .talkBubble .getMinHeight () * scale );
@@ -253,6 +253,8 @@ static public class TextManagerUIStyle {
253
253
public Color defaultColor ;
254
254
public float subtitlePosPercent = 0.90f ;
255
255
public float bubbleSize = 1f ;
256
+ public float bubbledx = 0 ;
257
+ public float bubbledy = 0 ;
256
258
public int maxCharWidth = 80 ;
257
259
public int maxTalkCharWidth = 35 ;
258
260
@@ -267,6 +269,8 @@ public TextManagerUIStyle(TextManagerUIStyle style) {
267
269
defaultColor = style .defaultColor ;
268
270
subtitlePosPercent = style .subtitlePosPercent ;
269
271
bubbleSize = style .bubbleSize ;
272
+ bubbledx = style .bubbledx ;
273
+ bubbledy = style .bubbledy ;
270
274
maxCharWidth = style .maxCharWidth ;
271
275
maxTalkCharWidth = style .maxTalkCharWidth ;
272
276
}
0 commit comments