Skip to content
Snippets Groups Projects
Commit 6a0b7987 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Make statusbar camera and graphics clickable

parent 45c4323c
Branches
Tags
No related merge requests found
...@@ -176,10 +176,10 @@ BOOL LLStatusBar::postBuild() ...@@ -176,10 +176,10 @@ BOOL LLStatusBar::postBuild()
mBoxBalance = getChild<LLTextBox>("balance"); mBoxBalance = getChild<LLTextBox>("balance");
mBoxBalance->setClickedCallback( &LLStatusBar::onClickBalance, this ); mBoxBalance->setClickedCallback( &LLStatusBar::onClickBalance, this );
mIconPresetsCamera = getChild<LLIconCtrl>( "presets_icon_camera" ); mIconPresetsCamera = getChild<LLButton>( "presets_icon_camera" );
mIconPresetsCamera->setMouseEnterCallback(boost::bind(&LLStatusBar::onMouseEnterPresetsCamera, this)); mIconPresetsCamera->setMouseEnterCallback(boost::bind(&LLStatusBar::onMouseEnterPresetsCamera, this));
mIconPresetsGraphic = getChild<LLIconCtrl>( "presets_icon_graphic" ); mIconPresetsGraphic = getChild<LLButton>( "presets_icon_graphic" );
mIconPresetsGraphic->setMouseEnterCallback(boost::bind(&LLStatusBar::onMouseEnterPresets, this)); mIconPresetsGraphic->setMouseEnterCallback(boost::bind(&LLStatusBar::onMouseEnterPresets, this));
mBtnQuickSettings = getChild<LLButton>("quick_settings_btn"); mBtnQuickSettings = getChild<LLButton>("quick_settings_btn");
......
...@@ -133,8 +133,8 @@ class LLStatusBar final ...@@ -133,8 +133,8 @@ class LLStatusBar final
LLTextBox *mTextFPS; LLTextBox *mTextFPS;
LLView *mPanelPopupHolder; LLView *mPanelPopupHolder;
LLIconCtrl *mIconPresetsCamera; LLButton *mIconPresetsCamera;
LLIconCtrl *mIconPresetsGraphic; LLButton *mIconPresetsGraphic;
LLButton *mBtnQuickSettings; LLButton *mBtnQuickSettings;
LLButton *mBtnAO; LLButton *mBtnAO;
LLButton *mBtnVolume; LLButton *mBtnVolume;
......
...@@ -130,24 +130,36 @@ ...@@ -130,24 +130,36 @@
width="120"> width="120">
24:00:00 AM PST 24:00:00 AM PST
</text> </text>
<icon <button
follows="right|top" follows="right|top"
height="16" height="16"
image_name="Cam_FreeCam_Off" image_selected="Cam_FreeCam_Off"
image_pressed="Cam_FreeCam_Off"
image_unselected="Cam_FreeCam_Off"
left_pad="0" left_pad="0"
top="2" top="2"
name="presets_icon_camera" name="presets_icon_camera"
tool_tip="My Camera Presets" tool_tip="My Camera Presets"
width="18" /> width="16">
<icon <click_callback
function="Floater.ToggleOrBringToFront"
parameter="camera" />
</button>
<button
follows="right|top" follows="right|top"
height="13" height="16"
image_name="Presets_Icon" image_selected="Presets_Icon"
image_pressed="Presets_Icon"
image_unselected="Presets_Icon"
left_pad="6" left_pad="6"
top="4" top="2"
name="presets_icon_graphic" name="presets_icon_graphic"
tool_tip="Graphics Presets" tool_tip="Graphics Presets"
width="16" /> width="16">
<click_callback
function="Floater.ToggleOrBringToFront"
parameter="lightbox" />
</button>
<button <button
follows="right|top" follows="right|top"
height="16" height="16"
...@@ -170,8 +182,7 @@ ...@@ -170,8 +182,7 @@
top="2" top="2"
name="media_toggle_btn" name="media_toggle_btn"
tool_tip="Start/Stop All Media (Music, Video, Web pages)" tool_tip="Start/Stop All Media (Music, Video, Web pages)"
width="16" > width="16" />
</button>
<button <button
follows="right|top" follows="right|top"
height="16" height="16"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment