本文整理汇总了C++中LLControlGroup::setBOOL方法的典型用法代码示例。如果您正苦于以下问题:C++ LLControlGroup::setBOOL方法的具体用法?C++ LLControlGroup::setBOOL怎么用?C++ LLControlGroup::setBOOL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLControlGroup
的用法示例。
在下文中一共展示了LLControlGroup::setBOOL方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onClickSelectedMediaMute
void LLPanelNearByMedia::onClickSelectedMediaMute()
{
LLUUID selected_media_id = mMediaList->getValue().asUUID();
if (selected_media_id == PARCEL_AUDIO_LIST_ITEM_UUID)
{
gSavedSettings.setBOOL("MuteMusic", mMuteBtn->getValue());
}
else {
LLViewerMediaImpl* impl = (selected_media_id == PARCEL_MEDIA_LIST_ITEM_UUID) ?
((LLViewerMediaImpl*)LLViewerParcelMedia::getParcelMedia()) : LLViewerMedia::getMediaImplFromTextureID(selected_media_id);
if (NULL != impl)
{
F32 volume = impl->getVolume();
if(volume > 0.0)
{
impl->setVolume(0.0);
}
else if (mVolumeSlider->getValueF32() == 0.0)
{
impl->setVolume(1.0);
mVolumeSlider->setValue(1.0);
}
else
{
impl->setVolume(mVolumeSlider->getValueF32());
}
}
}
}
示例2: toggle_show_mini_location_panel
bool toggle_show_mini_location_panel(const LLSD& newvalue)
{
bool value = newvalue.asBoolean();
LLPanelTopInfoBar::getInstance()->setVisible(value);
gSavedSettings.setBOOL("ShowNavbarNavigationPanel", !value);
return true;
}
示例3: toggle_show_navigation_panel
bool toggle_show_navigation_panel(const LLSD& newvalue)
{
bool value = newvalue.asBoolean();
LLNavigationBar::getInstance()->showNavigationPanel(value);
gSavedSettings.setBOOL("ShowMiniLocationPanel", !value);
return true;
}
示例4: handleHighResSnapshotChanged
bool handleHighResSnapshotChanged(const LLSD& newvalue)
{
// High Res Snapshot active, must uncheck RenderUIInSnapshot
if (newvalue.asBoolean())
{
gSavedSettings.setBOOL( "RenderUIInSnapshot", FALSE );
}
return true;
}
示例5: onOpen
void LLFloaterNearbyMedia::onOpen()
{
//Mess around with control rect to not change unless the user actually tweaked it..
LLRect rect = gSavedSettings.getRect("FloaterNearbyMediaRect");
if(!rect.isEmpty())
{
setRectControl("FloaterNearbyMediaRect");
applyRectControl();
}
else
{
const LLRect media_rect = gOverlayBar->mMediaRemote->calcScreenRect();
setOrigin(media_rect.mLeft - getRect().getWidth(), media_rect.mBottom + gOverlayBar->mChatBar->getRect().getHeight());
}
gSavedSettings.setBOOL("ShowNearbyMediaFloater", true);
}
示例6: onClose
void LLFloaterNearbyMedia::onClose(bool app_quitting)
{
if(!app_quitting)
gSavedSettings.setBOOL("ShowNearbyMediaFloater", false);
LLFloater::onClose(app_quitting);
}