Class PaperDollRenderer
Render paper doll at higher pixel densities using custom layer flags. Maintains layout data to sample equip index of item texture under mouse. Replacement paper doll textures must be readable.
Namespace: DaggerfallWorkshop.Game.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class PaperDollRenderer
Constructors
| Improve this Doc View SourcePaperDollRenderer(Single)
Constructor.
Declaration
public PaperDollRenderer(float scale = 1F)
Parameters
Type | Name | Description |
---|---|---|
Single | scale | Scale of paper doll render applied to classic dimensions. Cannot be lower than 1.0. |
Fields
| Improve this Doc View SourcepaperDollHeight
Declaration
public const int paperDollHeight = 184
Field Value
Type | Description |
---|---|
Int32 |
paperDollWidth
Declaration
public const int paperDollWidth = 110
Field Value
Type | Description |
---|---|
Int32 |
waistHeight
Declaration
public const int waistHeight = 40
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourcePaperDollTexture
Gets render output since last refresh.
Declaration
public Texture2D PaperDollTexture { get; }
Property Value
Type | Description |
---|---|
Texture2D |
Methods
| Improve this Doc View SourceGetEquipIndex(Int32, Int32)
Gets equip index at position. Must be in unscaled PaperDoll native coordinates.
Declaration
public byte GetEquipIndex(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
Int32 | x | X position to sample. |
Int32 | y | Y position to sample. |
Returns
Type | Description |
---|---|
Byte | Equip index or 0xff if point empty. |
Refresh(PaperDollRenderer.LayerFlags, PlayerEntity)
Renders a new paper doll image for the specified player entity.
Declaration
public void Refresh(PaperDollRenderer.LayerFlags layers = PaperDollRenderer.LayerFlags.All, PlayerEntity playerEntity = null)
Parameters
Type | Name | Description |
---|---|---|
PaperDollRenderer.LayerFlags | layers | Flags controlling which layers of paper doll to draw. |
PlayerEntity | playerEntity | Player entity to use for paper doll construction. Use null for live player entity. |