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
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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 Archive
Alchemy Viewer
Commits
dcfcf50d
Commit
dcfcf50d
authored
15 years ago
by
Rick Pasetto
Browse files
Options
Downloads
Patches
Plain Diff
Fix (unposted bug): media "affordance" was not properly being disabled when media was disabled
parent
615e2a05
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/newview/llstatusbar.cpp
+6
-6
6 additions, 6 deletions
indra/newview/llstatusbar.cpp
indra/newview/llviewermedia.cpp
+2
-2
2 additions, 2 deletions
indra/newview/llviewermedia.cpp
with
8 additions
and
8 deletions
indra/newview/llstatusbar.cpp
+
6
−
6
View file @
dcfcf50d
...
@@ -359,7 +359,7 @@ void LLStatusBar::refresh()
...
@@ -359,7 +359,7 @@ void LLStatusBar::refresh()
mBtnVolume
->
setToggleState
(
mute_audio
);
mBtnVolume
->
setToggleState
(
mute_audio
);
// Don't show media toggle if there's no media, parcel media, and no parcel audio
// Don't show media toggle if there's no media, parcel media, and no parcel audio
mMediaToggle
->
set
Visi
ble
(
LLViewerMedia
::
hasInWorldMedia
()
||
LLViewerMedia
::
hasParcelMedia
()
||
LLViewerMedia
::
hasParcelAudio
());
mMediaToggle
->
set
Ena
ble
d
(
LLViewerMedia
::
hasInWorldMedia
()
||
LLViewerMedia
::
hasParcelMedia
()
||
LLViewerMedia
::
hasParcelAudio
());
// Note the "sense" of the toggle is opposite whether media is playing or not
// Note the "sense" of the toggle is opposite whether media is playing or not
mMediaToggle
->
setValue
(
!
(
LLViewerMedia
::
isAnyMediaShowing
()
||
mMediaToggle
->
setValue
(
!
(
LLViewerMedia
::
isAnyMediaShowing
()
||
LLViewerMedia
::
isParcelMediaPlaying
()
||
LLViewerMedia
::
isParcelMediaPlaying
()
||
...
@@ -547,13 +547,13 @@ void LLStatusBar::onMouseEnterNearbyMedia()
...
@@ -547,13 +547,13 @@ void LLStatusBar::onMouseEnterNearbyMedia()
LLButton
*
nearby_media_btn
=
getChild
<
LLButton
>
(
"media_toggle_btn"
);
LLButton
*
nearby_media_btn
=
getChild
<
LLButton
>
(
"media_toggle_btn"
);
LLRect
nearby_media_btn_rect
=
nearby_media_btn
->
calcScreenRect
();
LLRect
nearby_media_btn_rect
=
nearby_media_btn
->
calcScreenRect
();
nearby_media_rect
.
setLeftTopAndSize
(
nearby_media_btn_rect
.
mLeft
-
nearby_media_rect
.
setLeftTopAndSize
(
nearby_media_btn_rect
.
mLeft
-
(
nearby_media_rect
.
getWidth
()
-
nearby_media_btn_rect
.
getWidth
())
/
2
,
(
nearby_media_rect
.
getWidth
()
-
nearby_media_btn_rect
.
getWidth
())
/
2
,
nearby_media_btn_rect
.
mBottom
,
nearby_media_btn_rect
.
mBottom
,
nearby_media_rect
.
getWidth
(),
nearby_media_rect
.
getWidth
(),
nearby_media_rect
.
getHeight
());
nearby_media_rect
.
getHeight
());
// force onscreen
// force onscreen
nearby_media_rect
.
translate
(
popup_holder
->
getRect
().
getWidth
()
-
nearby_media_rect
.
mRight
,
0
);
nearby_media_rect
.
translate
(
popup_holder
->
getRect
().
getWidth
()
-
nearby_media_rect
.
mRight
,
0
);
// show the master volume pull-down
// show the master volume pull-down
mPanelNearByMedia
->
setShape
(
nearby_media_rect
);
mPanelNearByMedia
->
setShape
(
nearby_media_rect
);
mPanelNearByMedia
->
setVisible
(
TRUE
);
mPanelNearByMedia
->
setVisible
(
TRUE
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewermedia.cpp
+
2
−
2
View file @
dcfcf50d
...
@@ -993,14 +993,14 @@ bool LLViewerMedia::hasInWorldMedia()
...
@@ -993,14 +993,14 @@ bool LLViewerMedia::hasInWorldMedia()
// static
// static
bool
LLViewerMedia
::
hasParcelMedia
()
bool
LLViewerMedia
::
hasParcelMedia
()
{
{
return
!
LLViewerParcelMedia
::
getURL
().
empty
();
return
gSavedSettings
.
getBOOL
(
"AudioStreamingMedia"
)
&&
!
LLViewerParcelMedia
::
getURL
().
empty
();
}
}
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
// static
// static
bool
LLViewerMedia
::
hasParcelAudio
()
bool
LLViewerMedia
::
hasParcelAudio
()
{
{
return
!
LLViewerMedia
::
getParcelAudioURL
().
empty
();
return
gSavedSettings
.
getBOOL
(
"AudioStreamingMedia"
)
&&
!
LLViewerMedia
::
getParcelAudioURL
().
empty
();
}
}
//////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////
...
...
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