I would like to create a station mod that, when you select a station, select đź”§Settings, and select a station module from the module list, will retrieve the name of the line that connects to the terminal on the station sign and display it in the labelText.
So first, when the station setting screen was closed with guiHandleEvent() in game_script, I obtained the station group ID and sent it to handleEvent() using sendScriptEvent(), which then used api.engine to obtain the line name and terminal.
First, I tried to send the obtained line name to updateFn in ****.module, but I'm stuck here.
I've read the official wiki over and over again, and have tried using global variables while asking chatGpt, and sending it with sendScriptEvent(), but it's not received by updateFn.
If anyone knows how to do this, please let me know.
Or is it just not possible to do that? Thank you in advance.