Table of Contents

Class SlideshowGridRecipeTextComponent

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Draws multiple ItemStack Open in GitHub

public sealed class SlideshowGridRecipeTextComponent : ItemstackComponentBase
Inheritance
SlideshowGridRecipeTextComponent
Inherited Members
Extension Methods

Constructors

SlideshowGridRecipeTextComponent(ICoreClientAPI, GridRecipe[], double, EnumFloat, Action<ItemStack>?, ItemStack[]?)

Flips through given array of grid recipes every second

public SlideshowGridRecipeTextComponent(ICoreClientAPI api, GridRecipe[] gridRecipes, double size, EnumFloat floatType, Action<ItemStack>? onStackClicked = null, ItemStack[]? allStacks = null)

Parameters

api ICoreClientAPI
gridRecipes GridRecipe[]
size double
floatType EnumFloat
onStackClicked Action<ItemStack>
allStacks ItemStack[]

If set, will resolve wildcards based on this list, otherwise will search all available blocks/items

Fields

CurrentVisibleRecipe

public GridRecipeAndUnnamedIngredients? CurrentVisibleRecipe

Field Value

GridRecipeAndUnnamedIngredients

GridRecipesAndUnnamedIngredients

public GridRecipeAndUnnamedIngredients[] GridRecipesAndUnnamedIngredients

Field Value

GridRecipeAndUnnamedIngredients[]

Methods

CalcBounds(TextFlowPath[], double, double, double, out double)

Initializes the size and stuff. Return true if you had to enter the next line

public override EnumCalcBoundsResult CalcBounds(TextFlowPath[] flowPath, double currentLineHeight, double offsetX, double lineY, out double nextOffsetX)

Parameters

flowPath TextFlowPath[]
currentLineHeight double
offsetX double
lineY double
nextOffsetX double

Returns

EnumCalcBoundsResult

A

ComposeElements(Context, ImageSurface)

Composes the element.

public override void ComposeElements(Context ctx, ImageSurface surface)

Parameters

ctx Context
surface ImageSurface

Dispose()

public override void Dispose()

GenerateCurrentVisibleOutputStack()

public ItemStack? GenerateCurrentVisibleOutputStack()

Returns

ItemStack

OnMouseDown(MouseEvent)

public override void OnMouseDown(MouseEvent args)

Parameters

args MouseEvent

RenderInteractiveElements(float, double, double, double)

Renders the text component.

public override void RenderInteractiveElements(float deltaTime, double renderX, double renderY, double renderZ)

Parameters

deltaTime float
renderX double
renderY double
renderZ double