mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Fixed corped tooltipbox and tooltipbox scrolling
This commit is contained in:
parent
f8a3f8c505
commit
faedb4944d
@ -614,6 +614,8 @@ export default class MysteryEncounterUiHandler extends UiHandler {
|
|||||||
const tooltipTextObject = addBBCodeTextObject(6, 7, text, TextStyle.TOOLTIP_CONTENT, {
|
const tooltipTextObject = addBBCodeTextObject(6, 7, text, TextStyle.TOOLTIP_CONTENT, {
|
||||||
wordWrap: { width: 600 },
|
wordWrap: { width: 600 },
|
||||||
fontSize: "72px",
|
fontSize: "72px",
|
||||||
|
padding: { top: 8 },
|
||||||
|
lineSpacing: 1.25,
|
||||||
});
|
});
|
||||||
this.tooltipContainer.add(tooltipTextObject);
|
this.tooltipContainer.add(tooltipTextObject);
|
||||||
|
|
||||||
@ -627,7 +629,7 @@ export default class MysteryEncounterUiHandler extends UiHandler {
|
|||||||
const textMask = tooltipTextMaskRect.createGeometryMask();
|
const textMask = tooltipTextMaskRect.createGeometryMask();
|
||||||
tooltipTextObject.setMask(textMask);
|
tooltipTextObject.setMask(textMask);
|
||||||
|
|
||||||
const tooltipLineCount = Math.floor(tooltipTextObject.displayHeight / 11.2);
|
const tooltipLineCount = Math.floor(tooltipTextObject.displayHeight / 10.2);
|
||||||
|
|
||||||
if (this.tooltipScrollTween) {
|
if (this.tooltipScrollTween) {
|
||||||
this.tooltipScrollTween.remove();
|
this.tooltipScrollTween.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user