|
|
|
@ -195,13 +195,13 @@ void ContainerBase::sellAlreadyBoughtItem(MyGUI::Widget* _sender, int count)
|
|
|
|
|
if (isInventory())
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->addItem(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->buyFromNpc(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->sellToNpc(object, count, true);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->drawItems();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->addItem(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->sellToNpc(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->buyFromNpc(object, count, true);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->drawItems();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -218,13 +218,13 @@ void ContainerBase::sellItem(MyGUI::Widget* _sender, int count)
|
|
|
|
|
if (isInventory())
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->addBarteredItem(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->buyFromNpc(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->sellToNpc(object, count, false);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->drawItems();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->addBarteredItem(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->sellToNpc(object, count);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getTradeWindow()->buyFromNpc(object, count, false);
|
|
|
|
|
MWBase::Environment::get().getWindowManager()->getInventoryWindow()->drawItems();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|