Table of Contents

Class TwoDimensionContext

Namespace
TaleWorlds.TwoDimension
Assembly
TaleWorlds.TwoDimension.dll
public class TwoDimensionContext
Inheritance
TwoDimensionContext
Inherited Members

Constructors

TwoDimensionContext(ITwoDimensionPlatform, ITwoDimensionResourceContext, ResourceDepot)

public TwoDimensionContext(ITwoDimensionPlatform platform, ITwoDimensionResourceContext resourceContext, ResourceDepot resourceDepot)

Parameters

platform ITwoDimensionPlatform
resourceContext ITwoDimensionResourceContext
resourceDepot ResourceDepot

Properties

CircularMaskCenter

public Vector2 CircularMaskCenter { get; }

Property Value

Vector2

CircularMaskEnabled

public bool CircularMaskEnabled { get; }

Property Value

bool

CircularMaskRadius

public float CircularMaskRadius { get; }

Property Value

float

CircularMaskSmoothingRadius

public float CircularMaskSmoothingRadius { get; }

Property Value

float

CurrentScissor

public ScissorTestInfo CurrentScissor { get; }

Property Value

ScissorTestInfo

Height

public float Height { get; }

Property Value

float

IsDebugModeEnabled

public bool IsDebugModeEnabled { get; }

Property Value

bool

Platform

public ITwoDimensionPlatform Platform { get; }

Property Value

ITwoDimensionPlatform

ResourceContext

public ITwoDimensionResourceContext ResourceContext { get; }

Property Value

ITwoDimensionResourceContext

ResourceDepot

public ResourceDepot ResourceDepot { get; }

Property Value

ResourceDepot

ScissorTestEnabled

public bool ScissorTestEnabled { get; }

Property Value

bool

Width

public float Width { get; }

Property Value

float

Methods

BeginDebugPanel(string)

public void BeginDebugPanel(string panelTitle)

Parameters

panelTitle string

ClearCircualMask()

public void ClearCircualMask()

CreateSoundEvent(string)

public void CreateSoundEvent(string soundName)

Parameters

soundName string

Draw(float, float, Material, DrawObject2D, int)

public void Draw(float x, float y, Material material, DrawObject2D drawObject2D, int layer = 0)

Parameters

x float
y float
material Material
drawObject2D DrawObject2D
layer int

Draw(Text, TextMaterial, float, float, float, float)

public void Draw(Text text, TextMaterial material, float x, float y, float width, float height)

Parameters

text Text
material TextMaterial
x float
y float
width float
height float

DrawCheckbox(string, ref bool)

public void DrawCheckbox(string label, ref bool isChecked)

Parameters

label string
isChecked bool

DrawDebugText(string)

public void DrawDebugText(string text)

Parameters

text string

DrawDebugTreeNode(string)

public bool DrawDebugTreeNode(string text)

Parameters

text string

Returns

bool

DrawSprite(Sprite, SimpleMaterial, float, float, float, float, float, bool, bool)

public void DrawSprite(Sprite sprite, SimpleMaterial material, float x, float y, float scale, float width, float height, bool horizontalFlip, bool verticalFlip)

Parameters

sprite Sprite
material SimpleMaterial
x float
y float
scale float
width float
height float
horizontalFlip bool
verticalFlip bool

EndDebugPanel()

public void EndDebugPanel()

IsDebugItemHovered()

public bool IsDebugItemHovered()

Returns

bool

LoadTexture(string)

public Texture LoadTexture(string name)

Parameters

name string

Returns

Texture

PlaySound(string)

public void PlaySound(string soundName)

Parameters

soundName string

PlaySoundEvent(string)

public void PlaySoundEvent(string soundName)

Parameters

soundName string

PopDebugTreeNode()

public void PopDebugTreeNode()

PopScissor()

public void PopScissor()

PushScissor(int, int, int, int)

public void PushScissor(int x, int y, int width, int height)

Parameters

x int
y int
width int
height int

ResetScissor()

public void ResetScissor()

SetCircualMask(Vector2, float, float)

public void SetCircualMask(Vector2 position, float radius, float smoothingRadius)

Parameters

position Vector2
radius float
smoothingRadius float

SetScissor(int, int, int, int)

public void SetScissor(int x, int y, int width, int height)

Parameters

x int
y int
width int
height int

SetScissor(ScissorTestInfo)

public void SetScissor(ScissorTestInfo scissor)

Parameters

scissor ScissorTestInfo

StopAndRemoveSoundEvent(string)

public void StopAndRemoveSoundEvent(string soundName)

Parameters

soundName string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).