Prototype/ItemWithLabel: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
m (→‎Basics: fixed link)
Line 1: Line 1:
==Basics==
==Basics==
Inherits from [[prototype/item]]. Like a normal item but with the ability to have a colored label.
Inherits from [[prototype/Item]]. Like a normal item but with the ability to have a colored label.
   type = "item-with-label"
   type = "item-with-label"



Revision as of 18:07, 17 May 2018

Basics

Inherits from prototype/Item. Like a normal item but with the ability to have a colored label.

 type = "item-with-label"

Optional properties

default_label_color

The default label color the item will use or if not provided it uses the game default item text color.

 default_label_color = {r=1, g=1, b=0, a=1}

draw_label_for_cursor_render

If true, the item will draw its label when held in the cursor in place of the item count. Defaults to false if not defined.

 draw_label_for_cursor_render = true