Show / Hide Table of Contents

Class ItemListScroller

Item scroller UI panel component composed of scrollbar, scroll buttons and items list.

Inheritance
Object
BaseScreenComponent
Panel
ItemListScroller
Inherited Members
Panel.Components
Panel.EnableBorder
Panel.HasFocusOutlineColor
Panel.LostFocusOutlineColor
Panel.Outline
Panel.Update()
Panel.Draw()
Panel.SetBorderTextures(Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, Texture2D, FilterMode, Nullable<Border<Vector2Int>>)
Panel.GotFocus()
Panel.LostFocus()
Panel.ProcessHotkeySequences(HotkeySequence.KeyModifiers)
BaseScreenComponent.rectRestrictedRenderArea
BaseScreenComponent.restrictedRenderAreaCustomParent
BaseScreenComponent.restrictedRenderAreaCoordinateType
BaseScreenComponent.backgroundTexture
BaseScreenComponent.animatedBackgroundTextures
BaseScreenComponent.backgroundTextureLayout
BaseScreenComponent.OnKeyboardEvent
BaseScreenComponent.OnMouseEnter
BaseScreenComponent.OnMouseLeave
BaseScreenComponent.OnMouseMove
BaseScreenComponent.OnMouseDown
BaseScreenComponent.OnMouseUp
BaseScreenComponent.OnMouseClick
BaseScreenComponent.OnMouseDoubleClick
BaseScreenComponent.OnRightMouseDown
BaseScreenComponent.OnRightMouseUp
BaseScreenComponent.OnRightMouseClick
BaseScreenComponent.OnRightMouseDoubleClick
BaseScreenComponent.OnMiddleMouseDown
BaseScreenComponent.OnMiddleMouseUp
BaseScreenComponent.OnMiddleMouseClick
BaseScreenComponent.OnMiddleMouseDoubleClick
BaseScreenComponent.OnMouseScrollUp
BaseScreenComponent.OnMouseScrollDown
BaseScreenComponent.Enabled
BaseScreenComponent.UseFocus
BaseScreenComponent.OverridesHotkeySequences
BaseScreenComponent.Name
BaseScreenComponent.Tag
BaseScreenComponent.Position
BaseScreenComponent.Size
BaseScreenComponent.RootSize
BaseScreenComponent.Parent
BaseScreenComponent.Rectangle
BaseScreenComponent.HorizontalAlignment
BaseScreenComponent.VerticalAlignment
BaseScreenComponent.RestrictedRenderAreaCoordinateType
BaseScreenComponent.RectRestrictedRenderArea
BaseScreenComponent.RestrictedRenderAreaCustomParent
BaseScreenComponent.UseRestrictedRenderArea
BaseScreenComponent.CustomMousePosition
BaseScreenComponent.MousePosition
BaseScreenComponent.LastMousePosition
BaseScreenComponent.ScaledMousePosition
BaseScreenComponent.BackgroundColor
BaseScreenComponent.MouseOverBackgroundColor
BaseScreenComponent.BackgroundColorTexture
BaseScreenComponent.BackgroundTexture
BaseScreenComponent.BackgroundCroppedRect
BaseScreenComponent.AnimatedBackgroundTextures
BaseScreenComponent.AnimationDelayInSeconds
BaseScreenComponent.BackgroundTextureLayout
BaseScreenComponent.InteriorWidth
BaseScreenComponent.InteriorHeight
BaseScreenComponent.Scale
BaseScreenComponent.AutoSize
BaseScreenComponent.LocalScale
BaseScreenComponent.ToolTip
BaseScreenComponent.ToolTipText
BaseScreenComponent.SuppressToolTip
BaseScreenComponent.MinAutoScale
BaseScreenComponent.MaxAutoScale
BaseScreenComponent.MouseOverComponent
BaseScreenComponent.TopMargin
BaseScreenComponent.BottomMargin
BaseScreenComponent.LeftMargin
BaseScreenComponent.RightMargin
BaseScreenComponent.ScreenToLocal(Vector2)
BaseScreenComponent.ScreenToLocal(Rect)
BaseScreenComponent.TriggerMouseClick()
BaseScreenComponent.KeyboardEvent(Event)
BaseScreenComponent.MouseClick(Vector2)
BaseScreenComponent.RightMouseClick(Vector2)
BaseScreenComponent.MiddleMouseClick(Vector2)
BaseScreenComponent.MouseDoubleClick(Vector2)
BaseScreenComponent.RightMouseDoubleClick(Vector2)
BaseScreenComponent.MiddleMouseDoubleClick(Vector2)
BaseScreenComponent.MouseEnter()
BaseScreenComponent.MouseLeave(BaseScreenComponent)
BaseScreenComponent.MouseMove(Int32, Int32)
BaseScreenComponent.MouseScrollUp()
BaseScreenComponent.MouseScrollDown()
BaseScreenComponent.Dispose()
BaseScreenComponent.SetMargins(Margins, Int32)
BaseScreenComponent.OffsetFrom(BaseScreenComponent, Sides, Int32)
BaseScreenComponent.SetFocus()
BaseScreenComponent.HasFocus()
Namespace: DaggerfallWorkshop.Game.UserInterface
Assembly: Assembly-CSharp.dll
Syntax
public class ItemListScroller : Panel, IDisposable

Constructors

| Improve this Doc View Source

ItemListScroller(ToolTip, Boolean)

Initializes a new instance of the ItemListScroller using default coordinates preset for use on DF inventory screens. Switches to advanced display of 16 items instead of 4 if user enables enhanced item lists.

Declaration
public ItemListScroller(ToolTip toolTip, bool disableEnhanced = false)
Parameters
Type Name Description
ToolTip toolTip

Tool tip class to use if items should display tooltips.

Boolean disableEnhanced

If set to true disable enhanced regardless of user settings.

| Improve this Doc View Source

ItemListScroller(Int32, Int32, Rect, Rect[], TextLabel, ToolTip, Int32, Single, Boolean, Int32, Int32)

Initializes a fully customised new instance of ItemListScroller.

Declaration
public ItemListScroller(int listRows, int listCols, Rect itemListRect, Rect[] itemsRects, TextLabel miscLabelTemplate, ToolTip toolTip = null, int itemMarginSize = 1, float textScale = 1F, bool scroll = true, int miscLabelOffsetDist = 0, int miscLabelOffsetIdx = 0)
Parameters
Type Name Description
Int32 listRows

Number of rows of items this list will display at one time.

Int32 listCols

Number of items displayed per row.

Rect itemListRect

Item list coordinate rect, excluding scrollbar.

Rect[] itemsRects

Individual items display coordinate rects. (1 per width*height)

TextLabel miscLabelTemplate

Template for misc label: relative position, font, horizontal and vertical alignment, text scale. (defaults: Vector2.zero, Font4, Left, Top, 1)

ToolTip toolTip

Tool tip class to use if items should display tooltips.

Int32 itemMarginSize

Individual item display margin size.

Single textScale

Text scale factor for stack labels.

Boolean scroll

True for a scrollable list, false otherwise.

Int32 miscLabelOffsetDist

Vertical distance to offset the misc label, 0 to disable.

Int32 miscLabelOffsetIdx

Index of column for which to offset the misc label.

Properties

| Improve this Doc View Source

BackgroundAnimationDelay

Delay in seconds between each frame of animation

Declaration
public float BackgroundAnimationDelay { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

BackgroundAnimationHandler

Handler for background animations (can't be colour highlighted)

Declaration
public ItemListScroller.ItemBackgroundAnimationHandler BackgroundAnimationHandler { get; set; }
Property Value
Type Description
ItemListScroller.ItemBackgroundAnimationHandler
| Improve this Doc View Source

BackgroundColourHandler

Handler for colour highlighting

Declaration
public ItemListScroller.ItemBackgroundColourHandler BackgroundColourHandler { get; set; }
Property Value
Type Description
ItemListScroller.ItemBackgroundColourHandler
| Improve this Doc View Source

ForegroundAnimationDelay

Delay in seconds between each frame of animation

Declaration
public float ForegroundAnimationDelay { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

ForegroundAnimationHandler

Handler for foreground animations (can be colour highlighted)

Declaration
public ItemListScroller.ItemForegroundAnimationHandler ForegroundAnimationHandler { get; set; }
Property Value
Type Description
ItemListScroller.ItemForegroundAnimationHandler
| Improve this Doc View Source

Items

Declaration
public List<DaggerfallUnityItem> Items { get; set; }
Property Value
Type Description
List<DaggerfallUnityItem>
| Improve this Doc View Source

LabelTextHandler

Handler for misc label text (defaults to top left)

Declaration
public ItemListScroller.ItemLabelTextHandler LabelTextHandler { get; set; }
Property Value
Type Description
ItemListScroller.ItemLabelTextHandler

Methods

| Improve this Doc View Source

ResetScroll()

Declaration
public void ResetScroll()

Events

| Improve this Doc View Source

OnItemClick

Declaration
public event ItemListScroller.OnItemClickHandler OnItemClick
Event Type
Type Description
ItemListScroller.OnItemClickHandler
| Improve this Doc View Source

OnItemHover

Declaration
public event ItemListScroller.OnItemHoverHandler OnItemHover
Event Type
Type Description
ItemListScroller.OnItemHoverHandler
| Improve this Doc View Source

OnItemMiddleClick

Declaration
public event ItemListScroller.OnItemMiddleClickHandler OnItemMiddleClick
Event Type
Type Description
ItemListScroller.OnItemMiddleClickHandler
| Improve this Doc View Source

OnItemRightClick

Declaration
public event ItemListScroller.OnItemRightClickHandler OnItemRightClick
Event Type
Type Description
ItemListScroller.OnItemRightClickHandler
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • ItemListScroller(ToolTip, Boolean)
    • ItemListScroller(Int32, Int32, Rect, Rect[], TextLabel, ToolTip, Int32, Single, Boolean, Int32, Int32)
  • Properties
    • BackgroundAnimationDelay
    • BackgroundAnimationHandler
    • BackgroundColourHandler
    • ForegroundAnimationDelay
    • ForegroundAnimationHandler
    • Items
    • LabelTextHandler
  • Methods
    • ResetScroll()
  • Events
    • OnItemClick
    • OnItemHover
    • OnItemMiddleClick
    • OnItemRightClick
Back to top Generated by DocFX