From 53145345a9ba53760a53b3ec03b70702a9d96790 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 16 Jun 2022 10:10:37 -0400 Subject: [PATCH] Change gitignore, add padding between DialogueMenu and bottom of screen --- .gitignore | 2 +- src/DialogueMenu.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 61a44a8..507b1fe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /out/ /.ideal/ final.iml -/local \ No newline at end of file +/local/* \ No newline at end of file diff --git a/src/DialogueMenu.java b/src/DialogueMenu.java index 696743f..5e778b6 100644 --- a/src/DialogueMenu.java +++ b/src/DialogueMenu.java @@ -23,9 +23,9 @@ public class DialogueMenu extends TextBox implements Serializable { // TODO: make drawn line widths consistent g.drawImage(PORTRAIT.image, newX - PORTRAIT_WIDTH - PADDING, newY, PORTRAIT_WIDTH, yHeight, null); ((Graphics2D)g).setStroke(new BasicStroke(4f)); - g.drawRect(newX, newY, xWidth, yHeight); + g.drawRect(newX, newY, xWidth, yHeight - 4); g.setColor(backgroundColor); - g.fillRect(newX, newY, xWidth, yHeight); + g.fillRect(newX, newY, xWidth, yHeight - 4); } g.setColor(textColor); drawCenteredString(g, newY, newX, text);