本文整理汇总了C++中LLFloaterTexturePicker::childGetValue方法的典型用法代码示例。如果您正苦于以下问题:C++ LLFloaterTexturePicker::childGetValue方法的具体用法?C++ LLFloaterTexturePicker::childGetValue怎么用?C++ LLFloaterTexturePicker::childGetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLFloaterTexturePicker
的用法示例。
在下文中一共展示了LLFloaterTexturePicker::childGetValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onLocalScrollCommit
// static, reacts to user clicking a valid field in the local scroll list.
void LLFloaterTexturePicker::onLocalScrollCommit(LLUICtrl *ctrl, void *userdata)
{
LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata;
LLUUID id = (LLUUID)self->mLocalScrollCtrl->getSelectedItemLabel( LOCALLIST_COL_ID );
self->mOwner->setImageAssetID( id );
if ( self->childGetValue("apply_immediate_check").asBoolean() )
{ self->mOwner->onFloaterCommit(LLTextureCtrl::TEXTURE_CHANGE, id); } // calls an overridden function.
}
示例2: onBtnUUID
// static
void LLFloaterTexturePicker::onBtnUUID( void* userdata )
{
LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata;
if ( self)
{
std::string texture_uuid = self->childGetValue("texture_uuid").asString();
if (texture_uuid.length() == 36)
{
self->setImageID( LLUUID(texture_uuid) );
self->mIsDirty = TRUE;
self->commitIfImmediateSet();
}
}
}
示例3: onBtnPipette
// static
void LLFloaterTexturePicker::onBtnPipette( void* userdata )
{
LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata;
if ( self)
{
BOOL pipette_active = self->childGetValue("Pipette").asBoolean();
pipette_active = !pipette_active;
if (pipette_active)
{
LLToolPipette::getInstance()->setSelectCallback(onTextureSelect, self);
LLToolMgr::getInstance()->setTransientTool(LLToolPipette::getInstance());
}
else
{
LLToolMgr::getInstance()->clearTransientTool();
}
}
}