diff options
author | syeyoung <cyong06@naver.com> | 2021-05-15 18:59:20 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-05-15 18:59:20 +0900 |
commit | 63388918589d76702abde59d8af48a0319283027 (patch) | |
tree | 367379ae3c6d7115cb671013bd664fb98cd321b2 /src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java | |
parent | e330634ad3a79cb6c010762509dbecfc2c587bce (diff) | |
download | Skyblock-Dungeons-Guide-63388918589d76702abde59d8af48a0319283027.tar.gz Skyblock-Dungeons-Guide-63388918589d76702abde59d8af48a0319283027.tar.bz2 Skyblock-Dungeons-Guide-63388918589d76702abde59d8af48a0319283027.zip |
Text alignment
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java b/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java index 0201e262..23132b3a 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/text/PanelTextParameterConfig.java @@ -135,7 +135,7 @@ public class PanelTextParameterConfig extends MPanel { List<StyledText> texts = feature.getDummyText(); Map<String, TextStyle> styles = feature.getStylesMap(); - List<StyledTextRenderer.StyleTextAssociated> calc = StyledTextRenderer.drawTextWithStylesAssociated(texts, 0,0, styles); + List<StyledTextRenderer.StyleTextAssociated> calc = StyledTextRenderer.drawTextWithStylesAssociated(texts, 0,0, getBounds().width, styles, StyledTextRenderer.Alignment.LEFT); boolean bool =clip.contains(absMousex, absMousey); for (StyledTextRenderer.StyleTextAssociated calc3: calc) { if (selected.contains(calc3.getStyledText().getGroup())) { |