Add LuaControl::open_factoriopedia_gui(prototype?)
Posted: Fri Mar 07, 2025 11:38 am
The mod I've been working on Factorio Codex gives players access to something similar to Satisfactory's quick search. Before the 2.0 update, I displayed information about items/fluids in my own GUI, but since Factoriopedia was added, I want to open that instead. However, Factoriopedia seems to be a black spot in the Factorio modding API.
Therefore I request a function similar to in order to open Factoriopedia and display a specific Prototype. It would be great if anything that Factoriopedia can display could also be used in the API call to open it.
To implement this with minimal changes to the API (as far as I can tell) I would suggest following signature:
where prototype can uniquely identify any prototype displayable in Factoriopedia (something like LuaPrototypeBase::name).
Therefore I request a function similar to
Code: Select all
LuaControl::open_technology_gui(technology?)
To implement this with minimal changes to the API (as far as I can tell) I would suggest following signature:
Code: Select all
LuaControl::open_factoriopedia_gui(prototype?)