Exemplo n.º 1
0
// static
void LLPanelObjectTools::onClickDeleteAllOwnedBy(void* userdata)
{
	// Bring up view-modal dialog
	LLPanelObjectTools* panelp = (LLPanelObjectTools*)userdata;
	if (!panelp->mTargetAvatar.isNull())
	{
		panelp->mSimWideDeletesFlags = 0;

		LLStringBase<char>::format_map_t args;
		args["[AVATAR_NAME]"] = panelp->childGetValue("target_avatar_name").asString();

		gViewerWindow->alertXml( "GodDeleteAllObjectsByUser",
								args,
								callbackSimWideDeletes, 
								userdata);
	}
}
Exemplo n.º 2
0
void LLPanelObjectTools::onClickDeletePublicOwnedBy(void* userdata)
{
	// Bring up view-modal dialog
	LLPanelObjectTools* panelp = (LLPanelObjectTools*)userdata;
	if (!panelp->mTargetAvatar.isNull())
	{
		panelp->mSimWideDeletesFlags = 
			SWD_SCRIPTED_ONLY | SWD_OTHERS_LAND_ONLY;

		LLStringUtil::format_map_t args;
		args["[AVATAR_NAME]"] = panelp->childGetValue("target_avatar_name").asString();

		gViewerWindow->alertXml( "GodDeleteAllScriptedPublicObjectsByUser",
								args,
								callbackSimWideDeletes, 
								userdata);
	}
}
// static
void LLPanelObjectTools::onClickDeleteAllOwnedBy(void* userdata)
{
    // Bring up view-modal dialog
    LLPanelObjectTools* panelp = (LLPanelObjectTools*)userdata;
    if (!panelp->mTargetAvatar.isNull())
    {
        panelp->mSimWideDeletesFlags = 0;

        LLSD args;
        args["AVATAR_NAME"] = panelp->childGetValue("target_avatar_name").asString();
        LLSD payload;
        payload["avatar_id"] = panelp->mTargetAvatar;
        payload["flags"] = (S32)panelp->mSimWideDeletesFlags;

        LLNotifications::instance().add( "GodDeleteAllObjectsByUser",
                                         args,
                                         payload,
                                         callbackSimWideDeletes);
    }
}