From 487d0c7fe7c5b82d34bb91511f12a97c5b6e7cca Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 20 Apr 2025 19:45:38 -0400 Subject: [PATCH] v3.1.0: improved clarity on note limit text --- core/src/main/assets/messages/ui/ui.properties | 2 +- .../shatteredpixeldungeon/windows/WndInfoItem.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/src/main/assets/messages/ui/ui.properties b/core/src/main/assets/messages/ui/ui.properties index 21d9971fb..011a81811 100644 --- a/core/src/main/assets/messages/ui/ui.properties +++ b/core/src/main/assets/messages/ui/ui.properties @@ -1,6 +1,6 @@ ui.customnotebutton.title=Add a Custom Note ui.customnotebutton.limit_title=Note Limit Reached -ui.customnotebutton.limit_text=You can delete existing notes to make room for more. +ui.customnotebutton.limit_text=You can delete existing notes to make room for more. All of your current custom notes can be viewed from the journal window. ui.customnotebutton.desc=Custom Notes let you record anything you'd like in the journal.\n\nThey can be just text on its own, or they can be associated with a dungeon floor, one of your items, or a type of potion/scroll/ring. ui.customnotebutton.new_text=New Text Note ui.customnotebutton.new_text_title=Write a title for this custom text note: diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoItem.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoItem.java index ecb3d96ca..dc8aa5187 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoItem.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndInfoItem.java @@ -115,7 +115,12 @@ public class WndInfoItem extends Window { info.maxWidth(width); } - title.setRect( 0, 0, width, 0 ); + //leaves some space to add the journal button in WndUseItem. This is messy I know. + if (this instanceof WndUseItem){ + title.setRect( 0, 0, width-16, 0 ); + } else { + title.setRect( 0, 0, width, 0 ); + } add( title ); info.setPos(title.left(), title.bottom() + GAP);