// static void LLFloaterTexturePicker::onBtnAlpha(void* userdata) { LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata; self->setCanApply(true, true); self->setImageID(self->mAlphaImageAssetID); self->commitIfImmediateSet(); }
// static void LLFloaterTexturePicker::onBtnNone(void* userdata) { LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata; self->setCanApply(true, true); self->setImageID( LLUUID::null ); self->commitIfImmediateSet(); }
void LLTextureCtrl::setCanApply(bool can_preview, bool can_apply) { LLFloaterTexturePicker* floaterp = dynamic_cast<LLFloaterTexturePicker*>(mFloaterHandle.get()); if( floaterp ) { floaterp->setCanApply(can_preview, can_apply); } }
// static void LLFloaterTexturePicker::onBtnSetToDefault(void* userdata) { LLFloaterTexturePicker* self = (LLFloaterTexturePicker*) userdata; self->setCanApply(true, true); if (self->mOwner) { self->setImageID( self->mOwner->getDefaultImageAssetID() ); } self->commitIfImmediateSet(); }
// static void LLFloaterTexturePicker::onApplyImmediateCheck(LLUICtrl* ctrl, void *user_data) { LLFloaterTexturePicker* picker = (LLFloaterTexturePicker*)user_data; LLCheckBoxCtrl* check_box = (LLCheckBoxCtrl*)ctrl; gSavedSettings.setBOOL("ApplyTextureImmediately", check_box->get()); // <FS:Ansariel> FIRE-8298: Apply now checkbox has no effect picker->setCanApply(true, true); // </FS:Ansariel> picker->updateFilterPermMask(); picker->commitIfImmediateSet(); }