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
9871bbbe
Commit
9871bbbe
authored
Apr 24, 2024
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Filter out spectacting 1st person entity
- Raise player name when pending ... animation shown
parent
6201d4a8
Pipeline
#12014
passed with stage
in 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
BubbleRenderer.java
src/client/java/com/owlmaddie/ui/BubbleRenderer.java
+8
-1
No files found.
src/client/java/com/owlmaddie/ui/BubbleRenderer.java
View file @
9871bbbe
...
...
@@ -278,6 +278,7 @@ public class BubbleRenderer {
.
filter
(
entity
->
(
entity
instanceof
MobEntity
||
entity
instanceof
PlayerEntity
))
.
filter
(
entity
->
!
entity
.
hasPassengers
())
.
filter
(
entity
->
!(
entity
.
equals
(
cameraEntity
)
&&
!
camera
.
isThirdPerson
()))
.
filter
(
entity
->
!(
entity
.
equals
(
cameraEntity
)
&&
entity
.
isSpectator
()))
.
collect
(
Collectors
.
toList
());
for
(
Entity
entity
:
relevantEntities
)
{
...
...
@@ -457,13 +458,19 @@ public class BubbleRenderer {
// Scale down before rendering textures (otherwise font is huge)
matrices
.
scale
(-
0.02
F
,
-
0.02
F
,
0.02
F
);
boolean
showPendingIcon
=
false
;
if
(
PlayerMessageManager
.
isChatUIOpen
(
entity
.
getUuid
()))
{
showPendingIcon
=
true
;
scaledTextHeight
+=
minTextHeight
;
// raise height of player name and icon
}
// Translate above the player
matrices
.
translate
(
0
F
,
-
scaledTextHeight
-
textHeaderHeight
-
textFooterHeight
,
0
F
);
// Draw Player Name
drawEntityName
(
entity
,
matrices
.
peek
().
getPositionMatrix
(),
immediate
,
fullBright
,
24
F
+
DISPLAY_PADDING
);
if
(
PlayerMessageManager
.
isChatUIOpen
(
entity
.
getUuid
())
)
{
if
(
showPendingIcon
)
{
// Draw 'pending' button (when Chat UI is open)
drawIcon
(
"button-dot-"
+
animationFrame
,
matrices
,
-
16
,
textHeaderHeight
,
32
,
17
);
}
...
...
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