Makes it possible to use ItemModel::moveItem to move an item from an inventory to the world.
MWGui::WorldItemModel::WorldItemModel |
( |
float |
left, |
|
|
float |
top |
|
) |
| |
|
inline |
virtual MWGui::WorldItemModel::~WorldItemModel |
( |
| ) |
|
|
inlinevirtual |
- Parameters
-
setNewOwner | If true, set the copied item's owner to the actor we are copying to, otherwise reset owner to "" |
Implements MWGui::ItemModel.
Returns an invalid index if the item was not found.
Implements MWGui::ItemModel.
virtual size_t MWGui::WorldItemModel::getItemCount |
( |
| ) |
|
|
inlinevirtual |
The number of items in the model, this specifies the range of indices you can pass to the getItem function (but this range is only valid until the next call to update())
Implements MWGui::ItemModel.
virtual void MWGui::WorldItemModel::removeItem |
( |
const ItemStack & |
item, |
|
|
size_t |
count |
|
) |
| |
|
inlinevirtual |
virtual void MWGui::WorldItemModel::update |
( |
| ) |
|
|
inlinevirtual |
Rebuild the item model, this will invalidate existing model indices.
Implements MWGui::ItemModel.
float MWGui::WorldItemModel::mLeft |
|
private |
float MWGui::WorldItemModel::mTop |
|
private |
The documentation for this class was generated from the following file:
- /home/travis/build/OpenMW/openmw/apps/openmw/mwgui/hud.cpp