Show / Hide Table of Contents

Class DaggerfallTradeWindow

Implements trade windows, based on inventory window.

Inheritance
Object
UserInterfaceWindow
DaggerfallBaseWindow
DaggerfallPopupWindow
DaggerfallInventoryWindow
DaggerfallTradeWindow
Implements
IUserInterfaceWindow
IMacroContextProvider
Inherited Members
DaggerfallInventoryWindow.weaponsAndArmorRect
DaggerfallInventoryWindow.magicItemsRect
DaggerfallInventoryWindow.clothingAndMiscRect
DaggerfallInventoryWindow.ingredientsRect
DaggerfallInventoryWindow.wagonButtonRect
DaggerfallInventoryWindow.infoButtonRect
DaggerfallInventoryWindow.equipButtonRect
DaggerfallInventoryWindow.removeButtonRect
DaggerfallInventoryWindow.useButtonRect
DaggerfallInventoryWindow.goldButtonRect
DaggerfallInventoryWindow.localTargetIconRect
DaggerfallInventoryWindow.remoteTargetIconRect
DaggerfallInventoryWindow.localItemListScrollerRect
DaggerfallInventoryWindow.remoteItemListScrollerRect
DaggerfallInventoryWindow.itemInfoPanelRect
DaggerfallInventoryWindow.infoCutoutRect
DaggerfallInventoryWindow.exitButtonRect
DaggerfallInventoryWindow.weaponsAndArmorButton
DaggerfallInventoryWindow.magicItemsButton
DaggerfallInventoryWindow.clothingAndMiscButton
DaggerfallInventoryWindow.ingredientsButton
DaggerfallInventoryWindow.wagonButton
DaggerfallInventoryWindow.infoButton
DaggerfallInventoryWindow.equipButton
DaggerfallInventoryWindow.removeButton
DaggerfallInventoryWindow.useButton
DaggerfallInventoryWindow.goldButton
DaggerfallInventoryWindow.accessoryButtons
DaggerfallInventoryWindow.accessoryIconPanels
DaggerfallInventoryWindow.paperDoll
DaggerfallInventoryWindow.localTargetIconPanel
DaggerfallInventoryWindow.localTargetIconLabel
DaggerfallInventoryWindow.remoteTargetIconPanel
DaggerfallInventoryWindow.remoteTargetIconLabel
DaggerfallInventoryWindow.itemInfoPanel
DaggerfallInventoryWindow.itemInfoPanelLabel
DaggerfallInventoryWindow.localItemListScroller
DaggerfallInventoryWindow.remoteItemListScroller
DaggerfallInventoryWindow.lastRightHandItem
DaggerfallInventoryWindow.lastLeftHandItem
DaggerfallInventoryWindow.baseTexture
DaggerfallInventoryWindow.goldTexture
DaggerfallInventoryWindow.weaponsAndArmorNotSelected
DaggerfallInventoryWindow.magicItemsNotSelected
DaggerfallInventoryWindow.clothingAndMiscNotSelected
DaggerfallInventoryWindow.ingredientsNotSelected
DaggerfallInventoryWindow.weaponsAndArmorSelected
DaggerfallInventoryWindow.magicItemsSelected
DaggerfallInventoryWindow.clothingAndMiscSelected
DaggerfallInventoryWindow.ingredientsSelected
DaggerfallInventoryWindow.wagonNotSelected
DaggerfallInventoryWindow.infoNotSelected
DaggerfallInventoryWindow.equipNotSelected
DaggerfallInventoryWindow.removeNotSelected
DaggerfallInventoryWindow.useNotSelected
DaggerfallInventoryWindow.wagonSelected
DaggerfallInventoryWindow.infoSelected
DaggerfallInventoryWindow.equipSelected
DaggerfallInventoryWindow.removeSelected
DaggerfallInventoryWindow.useSelected
DaggerfallInventoryWindow.infoTexture
DaggerfallInventoryWindow.coinsAnimation
DaggerfallInventoryWindow.magicAnimation
DaggerfallInventoryWindow.kgSrc
DaggerfallInventoryWindow.kgRep
DaggerfallInventoryWindow.damSrc
DaggerfallInventoryWindow.damRep
DaggerfallInventoryWindow.arSrc
DaggerfallInventoryWindow.arRep
DaggerfallInventoryWindow.goldAmount
DaggerfallInventoryWindow.goldWeight
DaggerfallInventoryWindow.wagonFullGold
DaggerfallInventoryWindow.baseTextureName
DaggerfallInventoryWindow.goldTextureName
DaggerfallInventoryWindow.infoTextureName
DaggerfallInventoryWindow.coinsAnimTextureName
DaggerfallInventoryWindow.magicAnimTextureName
DaggerfallInventoryWindow.coinsAnimationDelay
DaggerfallInventoryWindow.magicAnimationDelay
DaggerfallInventoryWindow.accessoryCount
DaggerfallInventoryWindow.accessoryButtonMarginSize
DaggerfallInventoryWindow.questItemBackgroundColor
DaggerfallInventoryWindow.lightSourceBackgroundColor
DaggerfallInventoryWindow.summonedItemBackgroundColor
DaggerfallInventoryWindow.playerEntity
DaggerfallInventoryWindow.selectedTabPage
DaggerfallInventoryWindow.selectedActionMode
DaggerfallInventoryWindow.remoteTargetType
DaggerfallInventoryWindow.localItems
DaggerfallInventoryWindow.remoteItems
DaggerfallInventoryWindow.theftBasket
DaggerfallInventoryWindow.droppedItems
DaggerfallInventoryWindow.localItemsFiltered
DaggerfallInventoryWindow.remoteItemsFiltered
DaggerfallInventoryWindow.lootTarget
DaggerfallInventoryWindow.usingWagon
DaggerfallInventoryWindow.allowDungeonWagonAccess
DaggerfallInventoryWindow.chooseOne
DaggerfallInventoryWindow.chooseOneCallback
DaggerfallInventoryWindow.shopShelfStealing
DaggerfallInventoryWindow.isPrivateProperty
DaggerfallInventoryWindow.lootTargetStartCount
DaggerfallInventoryWindow.lastRemoteItems
DaggerfallInventoryWindow.lastRemoteTargetType
DaggerfallInventoryWindow.PlayerEntity
DaggerfallInventoryWindow.LootTarget
DaggerfallInventoryWindow.TheftBasket
DaggerfallInventoryWindow.AllowDungeonWagonAccess()
DaggerfallInventoryWindow.SetChooseOne(ItemCollection, Action<DaggerfallUnityItem>)
DaggerfallInventoryWindow.SetShopShelfStealing()
DaggerfallInventoryWindow.SetupClosedBinding()
DaggerfallInventoryWindow.SetupItemListScrollers()
DaggerfallInventoryWindow.ItemBackgroundColourHandler(DaggerfallUnityItem)
DaggerfallInventoryWindow.SetupTargetIconPanels()
DaggerfallInventoryWindow.SetupItemInfoPanel()
DaggerfallInventoryWindow.SetupPaperdoll()
DaggerfallInventoryWindow.SetupTabPageButtons()
DaggerfallInventoryWindow.SetupAccessoryElements()
DaggerfallInventoryWindow.SetRemoteItemsAnimation()
DaggerfallInventoryWindow.SelectTabPage(DaggerfallInventoryWindow.TabPages)
DaggerfallInventoryWindow.AddLocalItem(DaggerfallUnityItem)
DaggerfallInventoryWindow.UpdateAccessoryItemsDisplay()
DaggerfallInventoryWindow.CheckWagonAccess()
DaggerfallInventoryWindow.UpdateItemInfoPanel(DaggerfallUnityItem)
DaggerfallInventoryWindow.UpdateItemInfoPanel(TextFile.Token[])
DaggerfallInventoryWindow.EquipItem(DaggerfallUnityItem)
DaggerfallInventoryWindow.UnequipItem(DaggerfallUnityItem, Boolean)
DaggerfallInventoryWindow.NextVariant(DaggerfallUnityItem)
DaggerfallInventoryWindow.CanCarryAmount(DaggerfallUnityItem)
DaggerfallInventoryWindow.WagonCanHoldAmount(DaggerfallUnityItem)
DaggerfallInventoryWindow.TransferItem(DaggerfallUnityItem, ItemCollection, ItemCollection, Nullable<Int32>, Boolean, Boolean, Boolean)
DaggerfallInventoryWindow.DoTransferItem(DaggerfallUnityItem, ItemCollection, ItemCollection, Boolean)
DaggerfallInventoryWindow.ShowInfoPopup(DaggerfallUnityItem)
DaggerfallInventoryWindow.UseItem(DaggerfallUnityItem, ItemCollection)
DaggerfallInventoryWindow.GetActionModeRightClick()
DaggerfallInventoryWindow.AccessoryItemsButton_OnMouseClick(BaseScreenComponent, Vector2, DaggerfallInventoryWindow.ActionModes)
DaggerfallInventoryWindow.AccessoryItemsButton_OnLeftMouseClick(BaseScreenComponent, Vector2)
DaggerfallInventoryWindow.AccessoryItemsButton_OnRightMouseClick(BaseScreenComponent, Vector2)
DaggerfallInventoryWindow.PaperDoll_OnMouseClick(BaseScreenComponent, Vector2, DaggerfallInventoryWindow.ActionModes)
DaggerfallInventoryWindow.PaperDoll_OnLeftMouseClick(BaseScreenComponent, Vector2)
DaggerfallInventoryWindow.PaperDoll_OnRightMouseClick(BaseScreenComponent, Vector2)
DaggerfallInventoryWindow.PaperDoll_OnMiddleMouseClick(BaseScreenComponent, Vector2)
DaggerfallInventoryWindow.LocalItemListScroller_OnItemLeftClick(DaggerfallUnityItem)
DaggerfallInventoryWindow.LocalItemListScroller_OnItemRightClick(DaggerfallUnityItem)
DaggerfallInventoryWindow.LocalItemListScroller_OnItemMiddleClick(DaggerfallUnityItem)
DaggerfallInventoryWindow.RemoteItemListScroller_OnItemLeftClick(DaggerfallUnityItem)
DaggerfallInventoryWindow.RemoteItemListScroller_OnItemRightClick(DaggerfallUnityItem)
DaggerfallInventoryWindow.RemoteItemListScroller_OnItemMiddleClick(DaggerfallUnityItem)
DaggerfallInventoryWindow.ExitButton_OnMouseClick(BaseScreenComponent, Vector2)
DaggerfallInventoryWindow.ExitButton_OnKeyboardEvent(BaseScreenComponent, Event)
DaggerfallInventoryWindow.OnItemHover
DaggerfallInventoryWindow.RaiseOnItemHoverEvent(DaggerfallUnityItem, DaggerfallInventoryWindow.ItemHoverLocation)
DaggerfallInventoryWindow.PaperDoll_OnMouseMove(Int32, Int32)
DaggerfallInventoryWindow.AccessoryItemsButton_OnMouseEnter(BaseScreenComponent)
DaggerfallInventoryWindow.LocalItemListScroller_OnHover(DaggerfallUnityItem)
DaggerfallInventoryWindow.RemoteItemListScroller_OnHover(DaggerfallUnityItem)
DaggerfallInventoryWindow.ItemListScroller_OnHover(DaggerfallUnityItem)
DaggerfallInventoryWindow.GoldButton_OnMouseEnter(BaseScreenComponent)
DaggerfallPopupWindow.ScreenDimColor
DaggerfallPopupWindow.AllowCancel
DaggerfallPopupWindow.Cancelled
DaggerfallPopupWindow.PreviousWindow
DaggerfallPopupWindow.Draw()
DaggerfallPopupWindow.CancelWindow()
DaggerfallPopupWindow.OnCancel
DaggerfallBaseWindow.exitKey
DaggerfallBaseWindow.defaultToolTip
DaggerfallBaseWindow.allowFreeScaling
DaggerfallBaseWindow.DaggerfallUnity
DaggerfallBaseWindow.IsSetup
DaggerfallBaseWindow.NativePanel
UserInterfaceWindow.parentPanel
UserInterfaceWindow.uiManager
UserInterfaceWindow.enabled
UserInterfaceWindow.pauseWhileOpened
UserInterfaceWindow.focusControl
UserInterfaceWindow.Value
UserInterfaceWindow.Enabled
UserInterfaceWindow.ParentPanel
UserInterfaceWindow.FocusControl
UserInterfaceWindow.ProcessMessages()
UserInterfaceWindow.OnReturn()
UserInterfaceWindow.CloseWindow()
UserInterfaceWindow.PopWindow()
UserInterfaceWindow.PauseWhileOpen
UserInterfaceWindow.SetFocus(BaseScreenComponent)
UserInterfaceWindow.OnClose
UserInterfaceWindow.RaiseOnCloseHandler()
Namespace: DaggerfallWorkshop.Game.UserInterfaceWindows
Assembly: Assembly-CSharp.dll
Syntax
public class DaggerfallTradeWindow : DaggerfallInventoryWindow, IUserInterfaceWindow, IMacroContextProvider

Constructors

| Improve this Doc View Source

DaggerfallTradeWindow(IUserInterfaceManager, DaggerfallBaseWindow, DaggerfallTradeWindow.WindowModes, IGuild)

Declaration
public DaggerfallTradeWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null, DaggerfallTradeWindow.WindowModes windowMode = DaggerfallTradeWindow.WindowModes.Sell, IGuild guild = null)
Parameters
Type Name Description
IUserInterfaceManager uiManager
DaggerfallBaseWindow previous
DaggerfallTradeWindow.WindowModes windowMode
IGuild guild

Fields

| Improve this Doc View Source

basketItems

Declaration
protected ItemCollection basketItems
Field Value
Type Description
ItemCollection
| Improve this Doc View Source

cost

Declaration
protected int cost
Field Value
Type Description
Int32
| Improve this Doc View Source

merchantItems

Declaration
protected ItemCollection merchantItems
Field Value
Type Description
ItemCollection
| Improve this Doc View Source

NotEnoughGoldId

Declaration
public const int NotEnoughGoldId = 454
Field Value
Type Description
Int32
| Improve this Doc View Source

TradeMessageBaseId

Declaration
public const int TradeMessageBaseId = 260
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

BasketItems

Declaration
protected ItemCollection BasketItems { get; }
Property Value
Type Description
ItemCollection
| Improve this Doc View Source

Guild

Declaration
protected IGuild Guild { get; }
Property Value
Type Description
IGuild
| Improve this Doc View Source

IdentifySpellChance

Declaration
public int IdentifySpellChance { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

IdentifySpellCost

Declaration
public int IdentifySpellCost { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

ItemTypesAccepted

Declaration
protected List<ItemGroups> ItemTypesAccepted { get; }
Property Value
Type Description
List<ItemGroups>
| Improve this Doc View Source

MerchantItems

Declaration
public ItemCollection MerchantItems { get; set; }
Property Value
Type Description
ItemCollection
| Improve this Doc View Source

UsingIdentifySpell

Declaration
public bool UsingIdentifySpell { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

UsingWagon

Declaration
protected bool UsingWagon { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

WindowMode

Declaration
protected DaggerfallTradeWindow.WindowModes WindowMode { get; }
Property Value
Type Description
DaggerfallTradeWindow.WindowModes

Methods

| Improve this Doc View Source

ClearSelectedItems()

Declaration
protected void ClearSelectedItems()
| Improve this Doc View Source

ConfirmTrade_OnButtonClick(DaggerfallMessageBox, DaggerfallMessageBox.MessageBoxButtons)

Declaration
protected virtual void ConfirmTrade_OnButtonClick(DaggerfallMessageBox sender, DaggerfallMessageBox.MessageBoxButtons messageBoxButton)
Parameters
Type Name Description
DaggerfallMessageBox sender
DaggerfallMessageBox.MessageBoxButtons messageBoxButton
| Improve this Doc View Source

FilterLocalItems()

Declaration
protected override void FilterLocalItems()
Overrides
DaggerfallInventoryWindow.FilterLocalItems()
| Improve this Doc View Source

FilterRemoteItems()

Declaration
protected override void FilterRemoteItems()
Overrides
DaggerfallInventoryWindow.FilterRemoteItems()
| Improve this Doc View Source

GetCarriedWeight()

Declaration
protected override float GetCarriedWeight()
Returns
Type Description
Single
Overrides
DaggerfallInventoryWindow.GetCarriedWeight()
| Improve this Doc View Source

GetMacroDataSource()

Declaration
public MacroDataSource GetMacroDataSource()
Returns
Type Description
MacroDataSource
| Improve this Doc View Source

GetTradePrice()

Declaration
protected int GetTradePrice()
Returns
Type Description
Int32
| Improve this Doc View Source

LoadTextures()

Declaration
protected override void LoadTextures()
Overrides
DaggerfallInventoryWindow.LoadTextures()
| Improve this Doc View Source

LocalItemListScroller_OnItemClick(DaggerfallUnityItem, DaggerfallInventoryWindow.ActionModes)

Declaration
protected override void LocalItemListScroller_OnItemClick(DaggerfallUnityItem item, DaggerfallInventoryWindow.ActionModes actionMode)
Parameters
Type Name Description
DaggerfallUnityItem item
DaggerfallInventoryWindow.ActionModes actionMode
Overrides
DaggerfallInventoryWindow.LocalItemListScroller_OnItemClick(DaggerfallUnityItem, DaggerfallInventoryWindow.ActionModes)
| Improve this Doc View Source

OnPop()

Declaration
public override void OnPop()
Overrides
DaggerfallInventoryWindow.OnPop()
| Improve this Doc View Source

OnPush()

Declaration
public override void OnPush()
Overrides
DaggerfallInventoryWindow.OnPush()
| Improve this Doc View Source

RaiseOnTradeHandler(Int32, Int32)

Declaration
protected virtual void RaiseOnTradeHandler(int numItems, int value)
Parameters
Type Name Description
Int32 numItems
Int32 value
| Improve this Doc View Source

Refresh(Boolean)

Declaration
public override void Refresh(bool refreshPaperDoll = true)
Parameters
Type Name Description
Boolean refreshPaperDoll
Overrides
DaggerfallInventoryWindow.Refresh(Boolean)
| Improve this Doc View Source

RemoteItemListScroller_OnItemClick(DaggerfallUnityItem, DaggerfallInventoryWindow.ActionModes)

Declaration
protected override void RemoteItemListScroller_OnItemClick(DaggerfallUnityItem item, DaggerfallInventoryWindow.ActionModes actionMode)
Parameters
Type Name Description
DaggerfallUnityItem item
DaggerfallInventoryWindow.ActionModes actionMode
Overrides
DaggerfallInventoryWindow.RemoteItemListScroller_OnItemClick(DaggerfallUnityItem, DaggerfallInventoryWindow.ActionModes)
| Improve this Doc View Source

SelectActionMode(DaggerfallInventoryWindow.ActionModes)

Declaration
protected override void SelectActionMode(DaggerfallInventoryWindow.ActionModes mode)
Parameters
Type Name Description
DaggerfallInventoryWindow.ActionModes mode
Overrides
DaggerfallInventoryWindow.SelectActionMode(DaggerfallInventoryWindow.ActionModes)
| Improve this Doc View Source

SelectWagon(Boolean)

Declaration
protected void SelectWagon(bool show)
Parameters
Type Name Description
Boolean show
| Improve this Doc View Source

Setup()

Declaration
protected override void Setup()
Overrides
DaggerfallInventoryWindow.Setup()
| Improve this Doc View Source

SetupActionButtons()

Declaration
protected override void SetupActionButtons()
Overrides
DaggerfallInventoryWindow.SetupActionButtons()
| Improve this Doc View Source

ShowTradePopup()

Declaration
protected virtual void ShowTradePopup()
| Improve this Doc View Source

StartGameBehaviour_OnNewGame()

Declaration
protected override void StartGameBehaviour_OnNewGame()
Overrides
DaggerfallInventoryWindow.StartGameBehaviour_OnNewGame()
| Improve this Doc View Source

Update()

Declaration
public override void Update()
Overrides
DaggerfallInventoryWindow.Update()
| Improve this Doc View Source

UpdateLocalTargetIcon()

Declaration
protected override void UpdateLocalTargetIcon()
Overrides
DaggerfallInventoryWindow.UpdateLocalTargetIcon()
| Improve this Doc View Source

UpdateRemoteTargetIcon()

Declaration
protected override void UpdateRemoteTargetIcon()
Overrides
DaggerfallInventoryWindow.UpdateRemoteTargetIcon()
| Improve this Doc View Source

UpdateRepairTimes(Boolean)

Declaration
protected void UpdateRepairTimes(bool commit)
Parameters
Type Name Description
Boolean commit

Events

| Improve this Doc View Source

OnTrade

Declaration
public event DaggerfallTradeWindow.OnTradeHandler OnTrade
Event Type
Type Description
DaggerfallTradeWindow.OnTradeHandler

Implements

IUserInterfaceWindow
IMacroContextProvider
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX