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
ITwoDimensionPlatformresourceContext
ITwoDimensionResourceContextresourceDepot
ResourceDepot
Properties
CircularMaskCenter
public Vector2 CircularMaskCenter { get; }
Property Value
CircularMaskEnabled
public bool CircularMaskEnabled { get; }
Property Value
CircularMaskRadius
public float CircularMaskRadius { get; }
Property Value
CircularMaskSmoothingRadius
public float CircularMaskSmoothingRadius { get; }
Property Value
CurrentScissor
public ScissorTestInfo CurrentScissor { get; }
Property Value
Height
public float Height { get; }
Property Value
IsDebugModeEnabled
public bool IsDebugModeEnabled { get; }
Property Value
Platform
public ITwoDimensionPlatform Platform { get; }
Property Value
ResourceContext
public ITwoDimensionResourceContext ResourceContext { get; }
Property Value
ResourceDepot
public ResourceDepot ResourceDepot { get; }
Property Value
ScissorTestEnabled
public bool ScissorTestEnabled { get; }
Property Value
Width
public float Width { get; }
Property Value
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
floaty
floatmaterial
MaterialdrawObject2D
DrawObject2Dlayer
int
Draw(Text, TextMaterial, float, float, float, float)
public void Draw(Text text, TextMaterial material, float x, float y, float width, float height)
Parameters
DrawCheckbox(string, ref bool)
public void DrawCheckbox(string label, ref bool isChecked)
Parameters
DrawDebugText(string)
public void DrawDebugText(string text)
Parameters
text
string
DrawDebugTreeNode(string)
public bool DrawDebugTreeNode(string text)
Parameters
text
string
Returns
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
Spritematerial
SimpleMaterialx
floaty
floatscale
floatwidth
floatheight
floathorizontalFlip
boolverticalFlip
bool
EndDebugPanel()
public void EndDebugPanel()
IsDebugItemHovered()
public bool IsDebugItemHovered()
Returns
LoadTexture(string)
public Texture LoadTexture(string name)
Parameters
name
string
Returns
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
ResetScissor()
public void ResetScissor()
SetCircualMask(Vector2, float, float)
public void SetCircualMask(Vector2 position, float radius, float smoothingRadius)
Parameters
SetScissor(int, int, int, int)
public void SetScissor(int x, int y, int width, int height)
Parameters
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).