Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
8d08f417
Commit
8d08f417
authored
2 years ago
by
Kitty Barnett
Browse files
Options
Downloads
Patches
Plain Diff
Show tooltip when hovering over an emoji text segment (currently will show its shortcode)
parent
f6f52d32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llui/lltextbase.cpp
+14
-0
14 additions, 0 deletions
indra/llui/lltextbase.cpp
indra/llui/lltextbase.h
+1
-0
1 addition, 0 deletions
indra/llui/lltextbase.h
with
15 additions
and
0 deletions
indra/llui/lltextbase.cpp
+
14
−
0
View file @
8d08f417
...
...
@@ -3557,6 +3557,20 @@ LLEmojiTextSegment::LLEmojiTextSegment(const LLColor4& color, S32 start, S32 end
{
}
BOOL
LLEmojiTextSegment
::
handleToolTip
(
S32
x
,
S32
y
,
MASK
mask
)
{
if
(
mTooltip
.
empty
())
{
LLWString
emoji
=
getWText
().
substr
(
getStart
(),
getEnd
()
-
getStart
());
if
(
!
emoji
.
empty
())
{
mTooltip
=
LLEmojiHelper
::
instance
().
getToolTip
(
emoji
[
0
]);
}
}
return
LLNormalTextSegment
::
handleToolTip
(
x
,
y
,
mask
);
}
//
// LLOnHoverChangeableTextSegment
//
...
...
This diff is collapsed.
Click to expand it.
indra/llui/lltextbase.h
+
1
−
0
View file @
8d08f417
...
...
@@ -187,6 +187,7 @@ class LLEmojiTextSegment : public LLNormalTextSegment
LLEmojiTextSegment
(
const
LLColor4
&
color
,
S32
start
,
S32
end
,
LLTextBase
&
editor
,
BOOL
is_visible
=
TRUE
);
bool
canEdit
()
const
override
{
return
false
;
}
BOOL
handleToolTip
(
S32
x
,
S32
y
,
MASK
mask
);
};
// Text segment that changes it's style depending of mouse pointer position ( is it inside or outside segment)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment