Prototype/Arrow: 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/Entity}}
{{Prototype parent|Prototype/Entity}}
The arrows used for example in the campaign, they are literally just arrows.


==Basics==
{{Prototype TOC|arrow}}
Prototype type: '''arrow'''


Extends the [[Prototype/Entity]]. The arrows used for example in the campaign, they are literally just arrows.
== Mandatory properties ==


== Properties ==
{{Prototype property|arrow_picture|[[Types/Sprite|Sprite]]}}
=== circle_picture ===
'''Type''': [[Types/Sprite]]


=== arrow_picture ===
== Optional properties ==
'''Type''': [[Types/Sprite]]


=== blinking ===
{{Prototype property|circle_picture|[[Types/Sprite|Sprite]]|optional=true}}
'''Type''': [[Types/bool]]
 
{{Prototype property|blinking|[[Types/bool|bool]]|false|optional=true}}


'''Default''': false
== Example ==
== Example ==
<syntaxhighlight lang="lua">{
<syntaxhighlight lang="lua">{

Revision as of 20:10, 29 July 2019

Template:Prototype parent The arrows used for example in the campaign, they are literally just arrows.

Template:Prototype TOC

Mandatory properties

Template:Prototype property

Optional properties

Template:Prototype property

Template:Prototype property

Example

{
    type = "arrow",
    name = "orange-arrow-with-circle",
    flags = {"placeable-off-grid", "not-on-map"},
    blinking = true,
    arrow_picture =
    {
      filename = "__core__/graphics/arrows/gui-arrow-medium.png",
      priority = "low",
      width = 58,
      height = 62
    },
    circle_picture =
    {
      filename = "__core__/graphics/arrows/gui-arrow-circle.png",
      priority = "low",
      width = 50,
      height = 50
    }
  },