Skip to main content

EdiblePageSettings

A class in Root.Township, the global namespace.

Global settings for the generated pages that describe an edible item: the page template, where each glyph goes and how effect strength is drawn. Used by EdiblePageProvider.

Constructors​

MemberWhat it is
EdiblePageSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
float borderGlyphScaleScale of the border glyph drawn around each effect glyph.
Glyph burntGlyphGlyph shown for a burnt item.
float circleSegment10ScaleScale of the circle segment glyph that stands for ten.
float circleSegment1ScaleScale of the circle segment glyph that stands for one.
Glyph cookedGlyphGlyph shown for a cooked item.
GlyphPosition cookingStagePositionWhere the cooking stage glyph goes.
GlyphPosition[] effectsWhere each consumption effect goes, in order.
GlyphPosition itemPositionWhere the item's own glyph goes.
Glyph ripeGlyphGlyph shown for a ripe item.
Page templateThe page whose glyphs every edible page starts with.
Glyph unripeGlyphGlyph shown for an unripe item.
float valuePerSegmentEffect strength per circle segment. One effect (hash 3280) always uses 1 instead.