Folks Posted August 10, 2021 Share Posted August 10, 2021 While working on my own paint, I liked the aesthetic of the chatbox so I wanted to keep the look and paint over it with the same or similar colors. I figured I'd share since others might find it useful. Side note I just noticed there is a chatbox in the api which might have something to make this easier or better but I am too lazy to look into it at this point. private static final int CHAT_BOX_X = 0; private static final int CHAT_BOX_Y = 338; private static final int CHAT_BOX_WIDTH = 519; private static final int CHAT_BOX_HEIGHT = 142; private static final int CHAT_BOX_PADDING = 6; private static final Color CHAT_BOX_COLOR = new Color(200, 180, 150); public void fillChatBoxPadded(final Graphics2D g) { int paddedX = CHAT_BOX_X + CHAT_BOX_PADDING; int paddedY = CHAT_BOX_Y + CHAT_BOX_PADDING; int paddedWidth = CHAT_BOX_WIDTH - (2 * CHAT_BOX_PADDING); int paddedHeight = CHAT_BOX_HEIGHT - (2 * CHAT_BOX_PADDING); g.setColor(CHAT_BOX_COLOR); g.fillRect(paddedX, paddedY, paddedWidth, paddedHeight); g.setColor(Color.black); g.drawRect(paddedX, paddedY, paddedWidth, paddedHeight); } public void fillChatBox(final Graphics2D g) { g.setColor(CHAT_BOX_COLOR); g.fillRect(CHAT_BOX_X, CHAT_BOX_Y, CHAT_BOX_WIDTH, CHAT_BOX_HEIGHT); g.setColor(Color.black); g.drawRect(CHAT_BOX_X, CHAT_BOX_Y, CHAT_BOX_WIDTH, CHAT_BOX_HEIGHT); } With padding Without padding 2 1 Quote Link to comment Share on other sites More sharing options...
Czar Posted August 11, 2021 Share Posted August 11, 2021 Good work, brings me back to the rsps days 1 Quote Link to comment Share on other sites More sharing options...