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
1f486a95
Commit
1f486a95
authored
13 years ago
by
Jonathan Yap
Browse files
Options
Downloads
Patches
Plain Diff
STORM-1567 Mute button for llDialog popup
Made changes per RB feedback.
parent
541e26d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/lltoastnotifypanel.cpp
+1
-2
1 addition, 2 deletions
indra/newview/lltoastnotifypanel.cpp
indra/newview/skins/default/xui/en/notifications.xml
+4
-0
4 additions, 0 deletions
indra/newview/skins/default/xui/en/notifications.xml
with
5 additions
and
2 deletions
indra/newview/lltoastnotifypanel.cpp
+
1
−
2
View file @
1f486a95
...
...
@@ -305,7 +305,6 @@ void LLToastNotifyPanel::updateButtonsLayout(const std::vector<index_button_pair
S32
left
=
0
;
//reserve place for ignore button
S32
bottom_offset
=
mIsScriptDialog
?
(
BTN_HEIGHT
+
IGNORE_BTN_TOP_DELTA
+
BOTTOM_PAD
)
:
BOTTOM_PAD
;
S32
ignore_btn_hoffset
=
0
;
S32
max_width
=
mControlPanel
->
getRect
().
getWidth
();
LLButton
*
ignore_btn
=
NULL
;
LLButton
*
mute_btn
=
NULL
;
...
...
@@ -346,7 +345,6 @@ void LLToastNotifyPanel::updateButtonsLayout(const std::vector<index_button_pair
{
ignore_btn_left
=
max_width
-
ignore_btn_rect
.
getWidth
()
-
2
*
HPAD
;
}
ignore_btn_hoffset
=
ignore_btn_left
;
ignore_btn_rect
.
setOriginAndSize
(
ignore_btn_left
,
BOTTOM_PAD
,
// always move ignore button at the bottom
ignore_btn_rect
.
getWidth
(),
ignore_btn_rect
.
getHeight
());
ignore_btn
->
setRect
(
ignore_btn_rect
);
...
...
@@ -358,6 +356,7 @@ void LLToastNotifyPanel::updateButtonsLayout(const std::vector<index_button_pair
{
LLRect
mute_btn_rect
(
mute_btn
->
getRect
());
S32
buttons_per_row
=
max_width
/
BUTTON_WIDTH
;
//assume that h_pad far less than BUTTON_WIDTH
// Place mute (Block) button to the left of the ignore button.
S32
mute_btn_left
=
buttons_per_row
*
BUTTON_WIDTH
+
(
buttons_per_row
-
1
)
*
h_pad
-
mute_btn_rect
.
getWidth
()
-
ignore_btn_width
-
(
h_pad
/
2
);
if
(
mute_btn_left
+
mute_btn_rect
.
getWidth
()
>
max_width
)
// make sure that the mute button is in panel
{
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/notifications.xml
+
4
−
0
View file @
1f486a95
...
...
@@ -6260,6 +6260,10 @@ Grant this request?
[NAME]
'
s
'<
nolink
>
[TITLE]
<
/nolink
>'
[MESSAGE]
<form
name=
"form"
>
<button
index=
"-2"
name=
"Mute"
text=
"Block"
/>
<button
index=
"-1"
name=
"Ignore"
...
...
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