1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 11:09:43 +00:00
This commit is contained in:
Mads Buvik Sandvei 2023-07-15 18:59:16 +02:00
parent 6e03d710ba
commit 64e55b37ec
3 changed files with 6 additions and 3 deletions

View file

@ -92,7 +92,8 @@ namespace MWGui
} }
} }
MWWorld::Ptr InventoryItemModel::moveItem(const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip) MWWorld::Ptr InventoryItemModel::moveItem(
const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip)
{ {
// Can't move conjured items: This is a general fix that also takes care of issues with taking conjured items // Can't move conjured items: This is a general fix that also takes care of issues with taking conjured items
// via the 'Take All' button. // via the 'Take All' button.

View file

@ -22,7 +22,8 @@ namespace MWGui
void removeItem(const ItemStack& item, size_t count) override; void removeItem(const ItemStack& item, size_t count) override;
/// Move items from this model to \a otherModel. /// Move items from this model to \a otherModel.
MWWorld::Ptr moveItem(const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip = true) override; MWWorld::Ptr moveItem(
const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip = true) override;
void update() override; void update() override;

View file

@ -63,7 +63,8 @@ namespace MWGui
/// Move items from this model to \a otherModel. /// Move items from this model to \a otherModel.
/// @note Derived implementations may return an empty Ptr if the move was unsuccessful. /// @note Derived implementations may return an empty Ptr if the move was unsuccessful.
virtual MWWorld::Ptr moveItem(const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip = true); virtual MWWorld::Ptr moveItem(
const ItemStack& item, size_t count, ItemModel* otherModel, bool allowAutoEquip = true);
/// Unstacks items from this model and returns a ptr to the new remainder stack. /// Unstacks items from this model and returns a ptr to the new remainder stack.
/// @note Returns en empty ptr if there is no remainder or the item model does not support unstacking. /// @note Returns en empty ptr if there is no remainder or the item model does not support unstacking.