void LLSidepanelInventory::onPlayButtonClicked() { const LLInventoryItem *item = getSelectedItem(); if (!item) { return; } switch(item->getInventoryType()) { case LLInventoryType::IT_GESTURE: performActionOnSelection("play"); break; default: performActionOnSelection("open"); break; } }
void LLSidepanelInventory::onTeleportButtonClicked() { performActionOnSelection("teleport"); }
void LLSidepanelInventory::onWearButtonClicked() { performActionOnSelection("wear"); performActionOnSelection("attach"); }