mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +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, {
|
||||
wordWrap: { width: 600 },
|
||||
fontSize: "72px",
|
||||
padding: { top: 8 },
|
||||
lineSpacing: 1.25,
|
||||
});
|
||||
this.tooltipContainer.add(tooltipTextObject);
|
||||
|
||||
@ -627,7 +629,7 @@ export default class MysteryEncounterUiHandler extends UiHandler {
|
||||
const textMask = tooltipTextMaskRect.createGeometryMask();
|
||||
tooltipTextObject.setMask(textMask);
|
||||
|
||||
const tooltipLineCount = Math.floor(tooltipTextObject.displayHeight / 11.2);
|
||||
const tooltipLineCount = Math.floor(tooltipTextObject.displayHeight / 10.2);
|
||||
|
||||
if (this.tooltipScrollTween) {
|
||||
this.tooltipScrollTween.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user