Prototype/Arrow: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Basics== Extends the Prototype/Entity. The arrows used for example in the campaign, they are literally just arrows. == Properties == === circle_picture === '''Type''':...") |
(Converted to SMW format) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/Entity}} | |||
The arrows used for example in the campaign, they are literally just arrows. | |||
{{Prototype TOC|arrow}} | |||
=== | == Mandatory properties == | ||
== | {{Prototype property|arrow_picture|[[Types/Sprite|Sprite]]}} | ||
== Optional properties == | |||
{{Prototype property|circle_picture|[[Types/Sprite|Sprite]]|optional=true}} | |||
{{Prototype property|blinking|[[Types/bool|bool]]|false|optional=true}} | |||
== Example == | == Example == | ||
<syntaxhighlight lang="lua">{ | <syntaxhighlight lang="lua">{ |
Latest revision as of 20:10, 29 July 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/Arrow
The arrows used for example in the campaign, they are literally just arrows.
Mandatory properties
arrow_picture
Type: Sprite
Optional properties
circle_picture
Type: Sprite
blinking
Type: bool
Default: false
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
}
},