[Solved] Any Shortcut Documentation?

Place to get help with not working mods / modding interface.
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

[Solved] Any Shortcut Documentation?

Post by Schallfalke »

I am delighted to see the new shortcut toolbar and the ability to adds things to it.
However, I have not found much documentation about it yet. (See below, "shortcut" as search keyword often gave me something else...)
Can anyone provide links to documentation, if any?

The only documentation I found is here: https://wiki.factorio.com/Prototype/Shortcut.

Especially on the property "style", where can I find other options? The above link shows options: "red", "green", "blue". I cannot find where these options are coded or provided. Are they hard-coded?
I want to make an orange button, for example, but entering "orange" to it does not work.

Code: Select all

  {
    type = "shortcut",
    name = "give-blueprint-book",
    order = "b[blueprints]-f[book]",
    action = "create-blueprint-item",
    localised_name = {"item-name.blueprint-book"},
    technology_to_unlock = "construction-robotics",
    item_to_create = "blueprint-book",
    style = "blue", <- THIS OPTION
Last edited by Schallfalke on Thu Mar 07, 2019 7:35 am, edited 1 time in total.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Any Shortcut Documentation?

Post by Bilka »

Schallfalke wrote: Wed Mar 06, 2019 10:35 pm Especially on the property "style", where can I find other options? The above link shows options: "red", "green", "blue". I cannot find where these options are coded or provided. Are they hard-coded?
Hardcoded.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Re: Any Shortcut Documentation?

Post by Schallfalke »

Bilka wrote: Wed Mar 06, 2019 11:13 pm
Schallfalke wrote: Wed Mar 06, 2019 10:35 pm Especially on the property "style", where can I find other options? The above link shows options: "red", "green", "blue". I cannot find where these options are coded or provided. Are they hard-coded?
Hardcoded.
It's sad. Hope there will be customized style in the future version, or support the Color type.
Post Reply

Return to “Modding help”