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
f52e7036
Commit
f52e7036
authored
15 years ago
by
Igor Borovkov
Browse files
Options
Downloads
Patches
Plain Diff
completed EXT-5427 Disable appearance of "i" button for SL system messages in IM and other chats
--HG-- branch : product-engine
parent
73d192a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llchathistory.cpp
+6
-14
6 additions, 14 deletions
indra/newview/llchathistory.cpp
with
6 additions
and
14 deletions
indra/newview/llchathistory.cpp
+
6
−
14
View file @
f52e7036
...
@@ -122,7 +122,7 @@ class LLChatHistoryHeader: public LLPanel
...
@@ -122,7 +122,7 @@ class LLChatHistoryHeader: public LLPanel
BOOL
handleToolTip
(
S32
x
,
S32
y
,
MASK
mask
)
BOOL
handleToolTip
(
S32
x
,
S32
y
,
MASK
mask
)
{
{
LLTextBase
*
name
=
getChild
<
LLTextBase
>
(
"user_name"
);
LLTextBase
*
name
=
getChild
<
LLTextBase
>
(
"user_name"
);
if
(
name
&&
name
->
parentPointInView
(
x
,
y
)
&&
mAvatarID
.
notNull
()
&&
SYSTEM_FROM
!=
mFrom
)
if
(
name
&&
name
->
parentPointInView
(
x
,
y
)
&&
mAvatarID
.
notNull
()
&&
mFrom
.
size
()
&&
SYSTEM_FROM
!=
mFrom
)
{
{
// Spawn at right side of the name textbox.
// Spawn at right side of the name textbox.
...
@@ -179,12 +179,7 @@ class LLChatHistoryHeader: public LLPanel
...
@@ -179,12 +179,7 @@ class LLChatHistoryHeader: public LLPanel
}
}
else
if
(
level
==
"add"
)
else
if
(
level
==
"add"
)
{
{
std
::
string
name
;
LLAvatarActions
::
requestFriendshipDialog
(
getAvatarId
(),
mFrom
);
name
.
assign
(
getFirstName
());
name
.
append
(
" "
);
name
.
append
(
getLastName
());
LLAvatarActions
::
requestFriendshipDialog
(
getAvatarId
(),
name
);
}
}
else
if
(
level
==
"remove"
)
else
if
(
level
==
"remove"
)
{
{
...
@@ -253,8 +248,6 @@ class LLChatHistoryHeader: public LLPanel
...
@@ -253,8 +248,6 @@ class LLChatHistoryHeader: public LLPanel
}
}
const
LLUUID
&
getAvatarId
()
const
{
return
mAvatarID
;}
const
LLUUID
&
getAvatarId
()
const
{
return
mAvatarID
;}
const
std
::
string
&
getFirstName
()
const
{
return
mFirstName
;
}
const
std
::
string
&
getLastName
()
const
{
return
mLastName
;
}
void
setup
(
const
LLChat
&
chat
,
const
LLStyle
::
Params
&
style_params
)
void
setup
(
const
LLChat
&
chat
,
const
LLStyle
::
Params
&
style_params
)
{
{
...
@@ -275,9 +268,11 @@ class LLChatHistoryHeader: public LLPanel
...
@@ -275,9 +268,11 @@ class LLChatHistoryHeader: public LLPanel
userName
->
setColor
(
style_params
.
color
());
userName
->
setColor
(
style_params
.
color
());
userName
->
setValue
(
chat
.
mFromName
);
userName
->
setValue
(
chat
.
mFromName
);
mFrom
=
chat
.
mFromName
;
if
(
chat
.
mFromName
.
empty
()
||
CHAT_SOURCE_SYSTEM
==
mSourceType
)
if
(
chat
.
mFromName
.
empty
()
||
CHAT_SOURCE_SYSTEM
==
mSourceType
)
{
{
userName
->
setValue
(
LLTrans
::
getString
(
"SECOND_LIFE"
));
mFrom
=
LLTrans
::
getString
(
"SECOND_LIFE"
);
userName
->
setValue
(
mFrom
);
}
}
...
@@ -337,8 +332,7 @@ class LLChatHistoryHeader: public LLPanel
...
@@ -337,8 +332,7 @@ class LLChatHistoryHeader: public LLPanel
{
{
if
(
id
!=
mAvatarID
)
if
(
id
!=
mAvatarID
)
return
;
return
;
mFirstName
=
first
;
mFrom
=
first
+
" "
+
last
;
mLastName
=
last
;
}
}
protected
:
protected
:
static
const
S32
PADDING
=
20
;
static
const
S32
PADDING
=
20
;
...
@@ -423,8 +417,6 @@ class LLChatHistoryHeader: public LLPanel
...
@@ -423,8 +417,6 @@ class LLChatHistoryHeader: public LLPanel
LLUUID
mAvatarID
;
LLUUID
mAvatarID
;
EChatSourceType
mSourceType
;
EChatSourceType
mSourceType
;
std
::
string
mFirstName
;
std
::
string
mLastName
;
std
::
string
mFrom
;
std
::
string
mFrom
;
LLUUID
mSessionID
;
LLUUID
mSessionID
;
...
...
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