本文整理汇总了C++中LLFloaterPay::finishPayUI方法的典型用法代码示例。如果您正苦于以下问题:C++ LLFloaterPay::finishPayUI方法的具体用法?C++ LLFloaterPay::finishPayUI怎么用?C++ LLFloaterPay::finishPayUI使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLFloaterPay
的用法示例。
在下文中一共展示了LLFloaterPay::finishPayUI方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: payViaObject
// static
void LLFloaterPay::payViaObject(money_callback callback, const LLUUID& object_id)
{
LLViewerObject* object = gObjectList.findObject(object_id);
if (!object) return;
LLFloaterPay *floater = new LLFloaterPay("Give L$", callback, object_id, TRUE);
if (!floater) return;
LLSelectNode* node = floater->mObjectSelection->getFirstRootNode();
if (!node)
{
//FIXME: notify user object no longer exists
floater->close();
return;
}
LLHost target_region = object->getRegion()->getHost();
LLMessageSystem* msg = gMessageSystem;
msg->newMessageFast(_PREHASH_RequestPayPrice);
msg->nextBlockFast(_PREHASH_ObjectData);
msg->addUUIDFast(_PREHASH_ObjectID, object_id);
msg->sendReliable(target_region);
msg->setHandlerFuncFast(_PREHASH_PayPriceReply, processPayPriceReply,(void **)floater);
LLUUID owner_id;
BOOL is_group = FALSE;
node->mPermissions->getOwnership(owner_id, is_group);
floater->childSetText("object_name_text",node->mName);
floater->finishPayUI(owner_id, is_group);
}
示例2: payDirectly
void LLFloaterPay::payDirectly(money_callback callback,
const LLUUID& target_id,
BOOL is_group)
{
LLFloaterPay *floater = new LLFloaterPay("Give L$", callback, target_id, FALSE);
if (!floater) return;
floater->childSetVisible("amount", TRUE);
floater->childSetVisible("pay btn", TRUE);
floater->childSetVisible("amount text", TRUE);
floater->childSetVisible("currency text", TRUE);
floater->childSetVisible("fastpay text",TRUE);
for(S32 i=0;i<MAX_PAY_BUTTONS;++i)
{
floater->mQuickPayButton[i]->setVisible(TRUE);
}
floater->finishPayUI(target_id, is_group);
}
示例3: payViaObject
// static
void LLFloaterPay::payViaObject(money_callback callback, LLSafeHandle<LLObjectSelection> selection)
{
// Object that lead to the selection, may be child
LLViewerObject* object = selection->getPrimaryObject();
if (!object)
return;
LLFloaterPay *floater = LLFloaterReg::showTypedInstance<LLFloaterPay>("pay_object", LLSD(object->getID()));
if (!floater)
return;
floater->setCallback(callback);
// Hold onto the selection until we close
floater->mObjectSelection = selection;
LLSelectNode* node = selection->getFirstRootNode();
if (!node)
{
//FIXME: notify user object no longer exists
floater->closeFloater();
return;
}
LLHost target_region = object->getRegion()->getHost();
LLMessageSystem* msg = gMessageSystem;
msg->newMessageFast(_PREHASH_RequestPayPrice);
msg->nextBlockFast(_PREHASH_ObjectData);
msg->addUUIDFast(_PREHASH_ObjectID, object->getID());
msg->sendReliable(target_region);
msg->setHandlerFuncFast(_PREHASH_PayPriceReply, processPayPriceReply,(void **)floater);
LLUUID owner_id;
BOOL is_group = FALSE;
node->mPermissions->getOwnership(owner_id, is_group);
floater->childSetText("object_name_text",node->mName);
floater->finishPayUI(owner_id, is_group);
}
示例4: payDirectly
void LLFloaterPay::payDirectly(money_callback callback,
const LLUUID& target_id,
bool is_group)
{
LLFloaterPay *floater = LLFloaterReg::showTypedInstance<LLFloaterPay>("pay_resident", LLSD(target_id));
if (!floater)
return;
floater->setCallback(callback);
floater->mObjectSelection = NULL;
floater->childSetVisible("amount", TRUE);
floater->childSetVisible("pay btn", TRUE);
floater->childSetVisible("amount text", TRUE);
floater->childSetVisible("fastpay text",TRUE);
for(S32 i=0;i<MAX_PAY_BUTTONS;++i)
{
floater->mQuickPayButton[i]->setVisible(TRUE);
}
floater->finishPayUI(target_id, is_group);
}