Script TextLabelComponents

Components

damageCountdownFlyaways
hudRegenerationKillCounter
itemHintLabel
itemRegenerationKillCounterHUD
itemSpawnFlyawayOnPickup
itemStackQuantityLabelHUD
itemStackQuantityLabelWorld
priceTagLabel
priceTagLabelInlineImage
priceTagSuccessFlyaway
priceTagUnaffordableFlyaway
salePriceTagOffset
secretShopLabel
shrineHintLabel
weaponAmmoCounterHUD
worldLabel
worldLabelBlink
worldLabelEntityLookup Looks up a string within another entity type to determine this label's text
worldLabelFade
worldLabelTextPool Performs a text pool lookup to determine this label's text
worldLabelVisibleBySetting


Components

damageCountdownFlyaways

default:

{}
  • texts constant table maps number of turns left to live => flyaway text
hudRegenerationKillCounter
  • offsetX constant float Offset from the bottom-center of the HUD slot to the bottom-center of the label (default 0)
  • offsetY constant float (default 0)
itemHintLabel
  • text constant localizedString (default nil)
  • offsetY constant float Offset from the center of the tile to the bottom-center of the label (offsetX is hardcoded to 0) (default -26)
itemRegenerationKillCounterHUD
  • offsetX constant float Offset from the bottom-center of the HUD slot to the bottom-center of the label (default 0)
  • offsetY constant float (default 0)
itemSpawnFlyawayOnPickup
  • text constant localizedString (default nil)
itemStackQuantityLabelHUD
  • offsetX constant float Offset from the bottom-right of the HUD slot to where the bottom-center of the label would beif it was using a monospaced font (bottom-left + 2px to the right per character) (default -2)
  • offsetY constant float (default -2)
itemStackQuantityLabelWorld
  • offsetX constant float Offset from the bottom-right of the item’s sprite to the bottom-center of the label (default 0)
  • offsetY constant float (default 0)
priceTagLabel
  • offsetX constant float Offset from the center of the tile to the bottom-center of the label (default 1)
  • offsetY constant float (default 8)
priceTagLabelInlineImage
  • costMultiplier constant float (default 1)
  • texture constant string (default "")
priceTagSuccessFlyaway
  • text constant localizedString (default "Success!")
priceTagUnaffordableFlyaway
  • text constant localizedString (default "Can't afford!")
salePriceTagOffset
  • offsetX constant float Added to the priceTagLabel offset for this sale entity’s priceTag (default 0)
  • offsetY constant float (default 0)
secretShopLabel
  • text constant localizedString (default 0)
  • offsetX constant int Offset from the center of the tile to the bottom-center of the label (default 0)
  • offsetY constant int (default 0)
shrineHintLabel
  • text constant localizedString (default nil)
  • offsetY constant float Offset from the center of the tile to the bottom-center of the label (offsetX is hardcoded to 0) (default 14)
  • offsetTopY constant float Alternative offset used when a player is immediately below the shrine (default -23)
weaponAmmoCounterHUD
  • alignX constant float (default 0.5)
  • alignY constant float (default 1)
  • offsetX constant float Offset from a point (by default, bottom-center) of the HUD slot to the corresponding point of the label.alignX and alignY affect the reference point (0,0 is top-left; 1,1 is bottom-right) (default 0)
  • offsetY constant float (default 0)
worldLabel
  • text string (default "")
  • offsetX int Offset from the center of the tile to the bottom-center of the label (default 0)
  • offsetY int (default -15)
  • spacingY int (default 0)
worldLabelBlink
worldLabelEntityLookup
Looks up a string within another entity type to determine this label's text
  • type string Entity type to perform the lookup with (default "")
  • component string Component name to look up (default "")
  • field string Field name to look up (default "")
worldLabelFade
  • maxDistance int (default 5)
worldLabelTextPool
Performs a text pool lookup to determine this label's text
  • key string (default "")
worldLabelVisibleBySetting
generated by LDoc 1.4.6