|
|
|
@ -41,6 +41,13 @@ CompanionWindow::CompanionWindow(DragAndDrop *dragAndDrop, MessageBoxManager* ma
|
|
|
|
|
|
|
|
|
|
void CompanionWindow::onItemSelected(int index)
|
|
|
|
|
{
|
|
|
|
|
if (mDragAndDrop->mIsOnDragAndDrop)
|
|
|
|
|
{
|
|
|
|
|
mDragAndDrop->drop(mModel, mItemView);
|
|
|
|
|
updateEncumbranceBar();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ItemStack& item = mSortModel->getItem(index);
|
|
|
|
|
|
|
|
|
|
// We can't take conjured items from a companion NPC
|
|
|
|
@ -50,13 +57,6 @@ void CompanionWindow::onItemSelected(int index)
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mDragAndDrop->mIsOnDragAndDrop)
|
|
|
|
|
{
|
|
|
|
|
mDragAndDrop->drop(mModel, mItemView);
|
|
|
|
|
updateEncumbranceBar();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MWWorld::Ptr object = item.mBase;
|
|
|
|
|
int count = item.mCount;
|
|
|
|
|
bool shift = MyGUI::InputManager::getInstance().isShiftPressed();
|
|
|
|
|