Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
81fc6c74
Commit
81fc6c74
authored
Apr 24, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display player names lower when no message is displayed, and replace "N/A" with "CreatureChat"
parent
b1972f55
Pipeline
#12012
passed with stage
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BubbleRenderer.java
src/client/java/com/owlmaddie/ui/BubbleRenderer.java
+3
-3
No files found.
src/client/java/com/owlmaddie/ui/BubbleRenderer.java
View file @
81fc6c74
...
...
@@ -223,7 +223,7 @@ public class BubbleRenderer {
TextRenderer
fontRenderer
=
MinecraftClient
.
getInstance
().
textRenderer
;
// Get Name of entity
String
nameText
=
"
N/A
"
;
String
nameText
=
"
CreatureChat
"
;
if
(
entity
instanceof
MobEntity
)
{
// Custom Name Tag (MobEntity)
if
(
entity
.
getCustomName
()
!=
null
)
{
...
...
@@ -370,13 +370,13 @@ public class BubbleRenderer {
chatData
=
PlayerMessageManager
.
getMessage
(
entity
.
getUuid
());
}
float
linesDisplayed
=
0
;
float
minTextHeight
=
(
ChatDataManager
.
DISPLAY_NUM_LINES
*
(
fontRenderer
.
fontHeight
+
lineSpacing
))
+
(
DISPLAY_PADDING
*
2
);
float
scaledTextHeight
=
minTextHeight
;
float
scaledTextHeight
=
0
;
if
(
chatData
!=
null
)
{
// Set the range of lines to display
List
<
String
>
lines
=
chatData
.
getWrappedLines
();
float
linesDisplayed
=
0
;
int
starting_line
=
chatData
.
currentLineNumber
;
int
ending_line
=
Math
.
min
(
chatData
.
currentLineNumber
+
ChatDataManager
.
DISPLAY_NUM_LINES
,
lines
.
size
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment