Prototype/ItemWithLabel: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/Item}}
{{Prototype parent|Prototype/Item}}
Like a normal item but with the ability to have a colored label.


== Basics ==
{{Prototype TOC|item-with-label}}
Prototype type: '''item-with-label'''
 
Like a normal item but with the ability to have a colored label. Extends [[Prototype/Item]].


== Extensions ==
== Extensions ==
Line 19: Line 17:
This prototype inherits all the properties from [[Prototype/Item]].
This prototype inherits all the properties from [[Prototype/Item]].


=== default_label_color ===
{{Prototype property|default_label_color|[[Types/Color|Color]]|Default item text color|optional=true}}
'''Type''': [[Types/Color]]
 
'''Default''': Default item text color
 
The default label color the item will use.
The default label color the item will use.


=== draw_label_for_cursor_render ===
{{Prototype property|draw_label_for_cursor_render|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': false
 
If the item will draw its label when held in the cursor in place of the item count.
If the item will draw its label when held in the cursor in place of the item count.

Revision as of 15:09, 26 July 2019

Template:Prototype parent Like a normal item but with the ability to have a colored label.

Template:Prototype TOC

Extensions

Optional properties

This prototype inherits all the properties from Prototype/Item.

Template:Prototype property The default label color the item will use.

Template:Prototype property If the item will draw its label when held in the cursor in place of the item count.