Add option for whether to draw a shadow of string to GuiRenderer
This commit is contained in:
@@ -64,7 +64,7 @@ public abstract class AbstractGuiTooltip<T extends AbstractGuiTooltip<T>> extend
|
||||
FontRenderer fontRenderer = getMinecraft().fontRendererObj;
|
||||
int y = LINE_SPACING + 1;
|
||||
for (String line : text) {
|
||||
renderer.drawString(LINE_SPACING + 1, y, color, line);
|
||||
renderer.drawString(LINE_SPACING + 1, y, color, line, true);
|
||||
y += fontRenderer.FONT_HEIGHT + LINE_SPACING;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@ public abstract class AbstractGuiTextArea<T extends AbstractGuiTextArea<T>>
|
||||
|
||||
// Draw line
|
||||
int posY = BORDER + i * lineHeight;
|
||||
int lineEnd = renderer.drawString(BORDER, posY, textColor, line);
|
||||
int lineEnd = renderer.drawString(BORDER, posY, textColor, line, true);
|
||||
|
||||
// Draw selection
|
||||
int fromX = getSelectionFromX();
|
||||
@@ -503,7 +503,7 @@ public abstract class AbstractGuiTextArea<T extends AbstractGuiTextArea<T>>
|
||||
String beforeCursor = line.substring(0, cursorX - leftTrimmed);
|
||||
int posX = BORDER + fontRenderer.getStringWidth(beforeCursor);
|
||||
if (cursorX == text[lineY].length()) {
|
||||
renderer.drawString(posX, posY, CURSOR_COLOR, "_");
|
||||
renderer.drawString(posX, posY, CURSOR_COLOR, "_", true);
|
||||
} else {
|
||||
renderer.drawRect(posX, posY - 1, 1, 1 + fontRenderer.FONT_HEIGHT, CURSOR_COLOR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user