Prototype/AutoplaceControl: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page.)
 
m (→‎order: fixed type)
Line 14: Line 14:


=== order ===
=== order ===
Type: [[Types/string]]
Type: [[Types/Order]]


Controls are sorted in the map creation GUI according to their order field. A control with order="a" will always come before a control with order="b".
Controls are sorted in the map creation GUI according to their order field. A control with order="a" will always come before a control with order="b".

Revision as of 18:56, 26 October 2017

Basics

A setting in the map creation GUI. Used by the autoplace system.

Properties

type

Type: Types/string

Must be "autoplace-control".

name

Type: Types/string

The unique name of this autoplace control.

order

Type: Types/Order

Controls are sorted in the map creation GUI according to their order field. A control with order="a" will always come before a control with order="b".

richness

Type: Types/bool

Optional. Sets whether this control's richness can be set by the player or not. Default is false.

If your autoplace control is used to generate ores, you probably want this to be true.