Class DaggerfallInventoryWindow
Implements inventory window.
Inheritance
DaggerfallInventoryWindow
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallInventoryWindow : DaggerfallPopupWindow, IUserInterfaceWindow
Constructors
|
Improve this Doc
View Source
DaggerfallInventoryWindow(IUserInterfaceManager, DaggerfallBaseWindow)
Declaration
public DaggerfallInventoryWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null)
Parameters
Fields
|
Improve this Doc
View Source
Declaration
protected const int accessoryButtonMarginSize = 1
Field Value
|
Improve this Doc
View Source
Declaration
protected Button[] accessoryButtons
Field Value
|
Improve this Doc
View Source
accessoryCount
Declaration
protected const int accessoryCount = 12
Field Value
|
Improve this Doc
View Source
accessoryIconPanels
Declaration
protected Panel[] accessoryIconPanels
Field Value
|
Improve this Doc
View Source
allowDungeonWagonAccess
Declaration
protected bool allowDungeonWagonAccess
Field Value
|
Improve this Doc
View Source
arRep
Declaration
protected readonly string arRep
Field Value
|
Improve this Doc
View Source
arSrc
Declaration
protected readonly string arSrc
Field Value
|
Improve this Doc
View Source
baseTexture
Declaration
protected Texture2D baseTexture
Field Value
|
Improve this Doc
View Source
baseTextureName
Declaration
protected const string baseTextureName = "INVE00I0.IMG"
Field Value
|
Improve this Doc
View Source
chooseOne
Declaration
Field Value
|
Improve this Doc
View Source
chooseOneCallback
Declaration
protected Action<DaggerfallUnityItem> chooseOneCallback
Field Value
|
Improve this Doc
View Source
Declaration
protected Button clothingAndMiscButton
Field Value
|
Improve this Doc
View Source
clothingAndMiscNotSelected
Declaration
protected Texture2D clothingAndMiscNotSelected
Field Value
|
Improve this Doc
View Source
clothingAndMiscRect
Declaration
protected Rect clothingAndMiscRect
Field Value
|
Improve this Doc
View Source
clothingAndMiscSelected
Declaration
protected Texture2D clothingAndMiscSelected
Field Value
|
Improve this Doc
View Source
coinsAnimation
Declaration
protected ImageData coinsAnimation
Field Value
|
Improve this Doc
View Source
coinsAnimationDelay
Declaration
protected const float coinsAnimationDelay = 0.08F
Field Value
|
Improve this Doc
View Source
coinsAnimTextureName
Declaration
protected const string coinsAnimTextureName = "TEXTURE.434"
Field Value
|
Improve this Doc
View Source
damRep
Declaration
protected readonly string damRep
Field Value
|
Improve this Doc
View Source
damSrc
Declaration
protected readonly string damSrc
Field Value
|
Improve this Doc
View Source
droppedItems
Declaration
protected ItemCollection droppedItems
Field Value
|
Improve this Doc
View Source
Declaration
protected Button equipButton
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect equipButtonRect
Field Value
|
Improve this Doc
View Source
equipNotSelected
Declaration
protected Texture2D equipNotSelected
Field Value
|
Improve this Doc
View Source
equipSelected
Declaration
protected Texture2D equipSelected
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect exitButtonRect
Field Value
|
Improve this Doc
View Source
goldAmount
Declaration
protected readonly string goldAmount
Field Value
|
Improve this Doc
View Source
Declaration
protected Button goldButton
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect goldButtonRect
Field Value
|
Improve this Doc
View Source
goldTexture
Declaration
protected Texture2D goldTexture
Field Value
|
Improve this Doc
View Source
goldTextureName
Declaration
protected const string goldTextureName = "INVE01I0.IMG"
Field Value
|
Improve this Doc
View Source
goldWeight
Declaration
protected readonly string goldWeight
Field Value
|
Improve this Doc
View Source
Declaration
protected Button infoButton
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect infoButtonRect
Field Value
|
Improve this Doc
View Source
infoCutoutRect
Declaration
protected Rect infoCutoutRect
Field Value
|
Improve this Doc
View Source
infoNotSelected
Declaration
protected Texture2D infoNotSelected
Field Value
|
Improve this Doc
View Source
infoSelected
Declaration
protected Texture2D infoSelected
Field Value
|
Improve this Doc
View Source
infoTexture
Declaration
protected Texture2D infoTexture
Field Value
|
Improve this Doc
View Source
infoTextureName
Declaration
protected const string infoTextureName = "ITEM00I0.IMG"
Field Value
|
Improve this Doc
View Source
Declaration
protected Button ingredientsButton
Field Value
|
Improve this Doc
View Source
ingredientsNotSelected
Declaration
protected Texture2D ingredientsNotSelected
Field Value
|
Improve this Doc
View Source
ingredientsRect
Declaration
protected Rect ingredientsRect
Field Value
|
Improve this Doc
View Source
ingredientsSelected
Declaration
protected Texture2D ingredientsSelected
Field Value
|
Improve this Doc
View Source
isPrivateProperty
Declaration
protected bool isPrivateProperty
Field Value
|
Improve this Doc
View Source
itemInfoPanel
Declaration
protected Panel itemInfoPanel
Field Value
|
Improve this Doc
View Source
itemInfoPanelLabel
Declaration
protected MultiFormatTextLabel itemInfoPanelLabel
Field Value
|
Improve this Doc
View Source
itemInfoPanelRect
Declaration
protected Rect itemInfoPanelRect
Field Value
|
Improve this Doc
View Source
kgRep
Declaration
protected readonly string kgRep
Field Value
|
Improve this Doc
View Source
kgSrc
Declaration
protected readonly string kgSrc
Field Value
|
Improve this Doc
View Source
lastLeftHandItem
Declaration
protected DaggerfallUnityItem lastLeftHandItem
Field Value
|
Improve this Doc
View Source
lastRemoteItems
Declaration
protected ItemCollection lastRemoteItems
Field Value
|
Improve this Doc
View Source
lastRemoteTargetType
Declaration
protected DaggerfallInventoryWindow.RemoteTargetTypes lastRemoteTargetType
Field Value
|
Improve this Doc
View Source
lastRightHandItem
Declaration
protected DaggerfallUnityItem lastRightHandItem
Field Value
|
Improve this Doc
View Source
lightSourceBackgroundColor
Declaration
protected Color lightSourceBackgroundColor
Field Value
|
Improve this Doc
View Source
Declaration
protected ItemListScroller localItemListScroller
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect localItemListScrollerRect
Field Value
|
Improve this Doc
View Source
localItems
Declaration
protected ItemCollection localItems
Field Value
|
Improve this Doc
View Source
localItemsFiltered
Declaration
protected List<DaggerfallUnityItem> localItemsFiltered
Field Value
|
Improve this Doc
View Source
localTargetIconLabel
Declaration
protected TextLabel localTargetIconLabel
Field Value
|
Improve this Doc
View Source
localTargetIconPanel
Declaration
protected Panel localTargetIconPanel
Field Value
|
Improve this Doc
View Source
localTargetIconRect
Declaration
protected Rect localTargetIconRect
Field Value
|
Improve this Doc
View Source
lootTarget
Declaration
protected DaggerfallLoot lootTarget
Field Value
|
Improve this Doc
View Source
lootTargetStartCount
Declaration
protected int lootTargetStartCount
Field Value
|
Improve this Doc
View Source
magicAnimation
Declaration
protected ImageData magicAnimation
Field Value
|
Improve this Doc
View Source
magicAnimationDelay
Declaration
protected const float magicAnimationDelay = 0.15F
Field Value
|
Improve this Doc
View Source
magicAnimTextureName
Declaration
protected const string magicAnimTextureName = "TEXTURE.434"
Field Value
|
Improve this Doc
View Source
Declaration
protected Button magicItemsButton
Field Value
|
Improve this Doc
View Source
magicItemsNotSelected
Declaration
protected Texture2D magicItemsNotSelected
Field Value
|
Improve this Doc
View Source
magicItemsRect
Declaration
protected Rect magicItemsRect
Field Value
|
Improve this Doc
View Source
magicItemsSelected
Declaration
protected Texture2D magicItemsSelected
Field Value
|
Improve this Doc
View Source
paperDoll
Declaration
protected PaperDoll paperDoll
Field Value
|
Improve this Doc
View Source
playerEntity
Declaration
protected PlayerEntity playerEntity
Field Value
|
Improve this Doc
View Source
questItemBackgroundColor
Declaration
protected Color questItemBackgroundColor
Field Value
|
Improve this Doc
View Source
Declaration
protected ItemListScroller remoteItemListScroller
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect remoteItemListScrollerRect
Field Value
|
Improve this Doc
View Source
remoteItems
Declaration
protected ItemCollection remoteItems
Field Value
|
Improve this Doc
View Source
remoteItemsFiltered
Declaration
protected List<DaggerfallUnityItem> remoteItemsFiltered
Field Value
|
Improve this Doc
View Source
remoteTargetIconLabel
Declaration
protected TextLabel remoteTargetIconLabel
Field Value
|
Improve this Doc
View Source
remoteTargetIconPanel
Declaration
protected Panel remoteTargetIconPanel
Field Value
|
Improve this Doc
View Source
remoteTargetIconRect
Declaration
protected Rect remoteTargetIconRect
Field Value
|
Improve this Doc
View Source
remoteTargetType
Declaration
protected DaggerfallInventoryWindow.RemoteTargetTypes remoteTargetType
Field Value
|
Improve this Doc
View Source
Declaration
protected Button removeButton
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect removeButtonRect
Field Value
|
Improve this Doc
View Source
removeNotSelected
Declaration
protected Texture2D removeNotSelected
Field Value
|
Improve this Doc
View Source
removeSelected
Declaration
protected Texture2D removeSelected
Field Value
|
Improve this Doc
View Source
selectedActionMode
Declaration
protected DaggerfallInventoryWindow.ActionModes selectedActionMode
Field Value
|
Improve this Doc
View Source
selectedTabPage
Declaration
protected DaggerfallInventoryWindow.TabPages selectedTabPage
Field Value
|
Improve this Doc
View Source
shopShelfStealing
Declaration
protected bool shopShelfStealing
Field Value
|
Improve this Doc
View Source
summonedItemBackgroundColor
Declaration
protected Color summonedItemBackgroundColor
Field Value
|
Improve this Doc
View Source
theftBasket
Declaration
protected ItemCollection theftBasket
Field Value
|
Improve this Doc
View Source
Declaration
protected Button useButton
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect useButtonRect
Field Value
|
Improve this Doc
View Source
useNotSelected
Declaration
protected Texture2D useNotSelected
Field Value
|
Improve this Doc
View Source
useSelected
Declaration
protected Texture2D useSelected
Field Value
|
Improve this Doc
View Source
usingWagon
Declaration
protected bool usingWagon
Field Value
|
Improve this Doc
View Source
Declaration
protected Button wagonButton
Field Value
|
Improve this Doc
View Source
Declaration
protected Rect wagonButtonRect
Field Value
|
Improve this Doc
View Source
wagonFullGold
Declaration
protected readonly string wagonFullGold
Field Value
|
Improve this Doc
View Source
wagonNotSelected
Declaration
protected Texture2D wagonNotSelected
Field Value
|
Improve this Doc
View Source
wagonSelected
Declaration
protected Texture2D wagonSelected
Field Value
|
Improve this Doc
View Source
Declaration
protected Button weaponsAndArmorButton
Field Value
|
Improve this Doc
View Source
weaponsAndArmorNotSelected
Declaration
protected Texture2D weaponsAndArmorNotSelected
Field Value
|
Improve this Doc
View Source
weaponsAndArmorRect
Declaration
protected Rect weaponsAndArmorRect
Field Value
|
Improve this Doc
View Source
weaponsAndArmorSelected
Declaration
protected Texture2D weaponsAndArmorSelected
Field Value
Properties
|
Improve this Doc
View Source
LootTarget
Gets or sets specific loot to view on next open.
Otherwise will default to ground for dropping items.
Declaration
public DaggerfallLoot LootTarget { get; set; }
Property Value
|
Improve this Doc
View Source
PlayerEntity
Declaration
public PlayerEntity PlayerEntity { get; }
Property Value
|
Improve this Doc
View Source
TheftBasket
Declaration
public ItemCollection TheftBasket { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
protected virtual void AccessoryItemsButton_OnLeftMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void AccessoryItemsButton_OnMouseClick(BaseScreenComponent sender, Vector2 position, DaggerfallInventoryWindow.ActionModes actionMode)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void AccessoryItemsButton_OnMouseEnter(BaseScreenComponent sender)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void AccessoryItemsButton_OnRightMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
|
Improve this Doc
View Source
AddLocalItem(DaggerfallUnityItem)
Declaration
protected void AddLocalItem(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
AllowDungeonWagonAccess()
Declaration
public void AllowDungeonWagonAccess()
|
Improve this Doc
View Source
CanCarryAmount(DaggerfallUnityItem)
Declaration
protected int CanCarryAmount(DaggerfallUnityItem item)
Parameters
Returns
|
Improve this Doc
View Source
CheckWagonAccess()
Declaration
protected void CheckWagonAccess()
|
Improve this Doc
View Source
DoTransferItem(DaggerfallUnityItem, ItemCollection, ItemCollection, Boolean)
Declaration
protected void DoTransferItem(DaggerfallUnityItem item, ItemCollection from, ItemCollection to, bool equip)
Parameters
|
Improve this Doc
View Source
EquipItem(DaggerfallUnityItem)
Declaration
protected void EquipItem(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected void ExitButton_OnKeyboardEvent(BaseScreenComponent sender, Event keyboardEvent)
Parameters
|
Improve this Doc
View Source
Declaration
protected void ExitButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
|
Improve this Doc
View Source
FilterLocalItems()
Creates filtered list of local items based on view state.
Declaration
protected virtual void FilterLocalItems()
|
Improve this Doc
View Source
FilterRemoteItems()
Creates filtered list of remote items.
For now this just creates a flat list, as that is Daggerfall's behaviour.
Declaration
protected virtual void FilterRemoteItems()
|
Improve this Doc
View Source
GetActionModeRightClick()
Declaration
protected virtual DaggerfallInventoryWindow.ActionModes GetActionModeRightClick()
Returns
|
Improve this Doc
View Source
GetCarriedWeight()
Declaration
protected virtual float GetCarriedWeight()
Returns
|
Improve this Doc
View Source
Declaration
protected virtual void GoldButton_OnMouseEnter(BaseScreenComponent sender)
Parameters
|
Improve this Doc
View Source
ItemBackgroundColourHandler(DaggerfallUnityItem)
Declaration
protected virtual Color ItemBackgroundColourHandler(DaggerfallUnityItem item)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
protected virtual void ItemListScroller_OnHover(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
LoadTextures()
Declaration
protected virtual void LoadTextures()
|
Improve this Doc
View Source
Declaration
protected virtual void LocalItemListScroller_OnHover(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void LocalItemListScroller_OnItemClick(DaggerfallUnityItem item, DaggerfallInventoryWindow.ActionModes actionMode)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void LocalItemListScroller_OnItemLeftClick(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void LocalItemListScroller_OnItemMiddleClick(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void LocalItemListScroller_OnItemRightClick(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
NextVariant(DaggerfallUnityItem)
Declaration
protected void NextVariant(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
OnPop()
Declaration
public override void OnPop()
Overrides
|
Improve this Doc
View Source
OnPush()
Declaration
public override void OnPush()
Overrides
|
Improve this Doc
View Source
PaperDoll_OnLeftMouseClick(BaseScreenComponent, Vector2)
Declaration
protected virtual void PaperDoll_OnLeftMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
|
Improve this Doc
View Source
PaperDoll_OnMiddleMouseClick(BaseScreenComponent, Vector2)
Declaration
protected virtual void PaperDoll_OnMiddleMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
|
Improve this Doc
View Source
PaperDoll_OnMouseClick(BaseScreenComponent, Vector2, DaggerfallInventoryWindow.ActionModes)
Declaration
protected virtual void PaperDoll_OnMouseClick(BaseScreenComponent sender, Vector2 position, DaggerfallInventoryWindow.ActionModes actionMode)
Parameters
|
Improve this Doc
View Source
PaperDoll_OnMouseMove(Int32, Int32)
Declaration
protected virtual void PaperDoll_OnMouseMove(int x, int y)
Parameters
|
Improve this Doc
View Source
PaperDoll_OnRightMouseClick(BaseScreenComponent, Vector2)
Declaration
protected virtual void PaperDoll_OnRightMouseClick(BaseScreenComponent sender, Vector2 position)
Parameters
|
Improve this Doc
View Source
RaiseOnItemHoverEvent(DaggerfallUnityItem, DaggerfallInventoryWindow.ItemHoverLocation)
Declaration
protected virtual void RaiseOnItemHoverEvent(DaggerfallUnityItem item, DaggerfallInventoryWindow.ItemHoverLocation loc)
Parameters
|
Improve this Doc
View Source
Refresh(Boolean)
Refresh character portrait and inventory.
Called every time inventory is pushed to top of stack.
Declaration
public virtual void Refresh(bool refreshPaperDoll = true)
Parameters
Type |
Name |
Description |
Boolean |
refreshPaperDoll |
|
|
Improve this Doc
View Source
Declaration
protected virtual void RemoteItemListScroller_OnHover(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void RemoteItemListScroller_OnItemClick(DaggerfallUnityItem item, DaggerfallInventoryWindow.ActionModes actionMode)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void RemoteItemListScroller_OnItemLeftClick(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void RemoteItemListScroller_OnItemMiddleClick(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
Declaration
protected virtual void RemoteItemListScroller_OnItemRightClick(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
SelectActionMode(DaggerfallInventoryWindow.ActionModes)
Declaration
protected virtual void SelectActionMode(DaggerfallInventoryWindow.ActionModes mode)
Parameters
|
Improve this Doc
View Source
SelectTabPage(DaggerfallInventoryWindow.TabPages)
Declaration
protected virtual void SelectTabPage(DaggerfallInventoryWindow.TabPages tabPage)
Parameters
|
Improve this Doc
View Source
SetChooseOne(ItemCollection, Action<DaggerfallUnityItem>)
Declaration
public void SetChooseOne(ItemCollection items, Action<DaggerfallUnityItem> callback)
Parameters
|
Improve this Doc
View Source
SetRemoteItemsAnimation()
Declaration
protected virtual void SetRemoteItemsAnimation()
|
Improve this Doc
View Source
SetShopShelfStealing()
Declaration
public void SetShopShelfStealing()
|
Improve this Doc
View Source
Setup()
Declaration
protected override void Setup()
Overrides
|
Improve this Doc
View Source
SetupAccessoryElements()
Declaration
protected void SetupAccessoryElements()
|
Improve this Doc
View Source
Declaration
protected virtual void SetupActionButtons()
|
Improve this Doc
View Source
SetupClosedBinding()
Declaration
protected void SetupClosedBinding()
|
Improve this Doc
View Source
SetupItemInfoPanel()
Declaration
protected void SetupItemInfoPanel()
|
Improve this Doc
View Source
Declaration
protected void SetupItemListScrollers()
|
Improve this Doc
View Source
SetupPaperdoll()
Declaration
protected void SetupPaperdoll()
|
Improve this Doc
View Source
SetupTabPageButtons()
Declaration
protected void SetupTabPageButtons()
|
Improve this Doc
View Source
SetupTargetIconPanels()
Declaration
protected void SetupTargetIconPanels()
|
Improve this Doc
View Source
Declaration
protected void ShowInfoPopup(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
StartGameBehaviour_OnNewGame()
Declaration
protected virtual void StartGameBehaviour_OnNewGame()
|
Improve this Doc
View Source
TransferItem(DaggerfallUnityItem, ItemCollection, ItemCollection, Nullable<Int32>, Boolean, Boolean, Boolean)
Declaration
protected void TransferItem(DaggerfallUnityItem item, ItemCollection from, ItemCollection to, int? maxAmount = null, bool blockTransport = false, bool equip = false, bool allowSplitting = true)
Parameters
|
Improve this Doc
View Source
UnequipItem(DaggerfallUnityItem, Boolean)
Declaration
protected void UnequipItem(DaggerfallUnityItem item, bool refreshPaperDoll = true)
Parameters
|
Improve this Doc
View Source
Update()
Declaration
public override void Update()
Overrides
|
Improve this Doc
View Source
UpdateAccessoryItemsDisplay()
Updates accessory items display.
Declaration
protected void UpdateAccessoryItemsDisplay()
|
Improve this Doc
View Source
UpdateItemInfoPanel(TextFile.Token[])
Declaration
protected void UpdateItemInfoPanel(TextFile.Token[] tokens)
Parameters
|
Improve this Doc
View Source
UpdateItemInfoPanel(DaggerfallUnityItem)
Declaration
protected virtual void UpdateItemInfoPanel(DaggerfallUnityItem item)
Parameters
|
Improve this Doc
View Source
UpdateLocalTargetIcon()
Declaration
protected virtual void UpdateLocalTargetIcon()
|
Improve this Doc
View Source
UpdateRemoteTargetIcon()
Declaration
protected virtual void UpdateRemoteTargetIcon()
|
Improve this Doc
View Source
UseItem(DaggerfallUnityItem, ItemCollection)
Declaration
protected void UseItem(DaggerfallUnityItem item, ItemCollection collection = null)
Parameters
|
Improve this Doc
View Source
WagonCanHoldAmount(DaggerfallUnityItem)
Declaration
protected int WagonCanHoldAmount(DaggerfallUnityItem item)
Parameters
Returns
Events
|
Improve this Doc
View Source
OnItemHover
Declaration
public event DaggerfallInventoryWindow.OnItemHoverHandler OnItemHover
Event Type
Implements