Search found 3 matches

by BinkanSalaryman
Wed Nov 06, 2024 6:17 pm
Forum: Modding interface requests
Topic: On the matter of display panels...
Replies: 2
Views: 632

Re: On the matter of display panels...

Unrelated to the lua api, but this occurrance is rather annoying:
11-06-2024, 19-16-29.png
11-06-2024, 19-16-29.png (97.18 KiB) Viewed 610 times
11-06-2024, 19-17-16.png
11-06-2024, 19-17-16.png (191.88 KiB) Viewed 610 times
by BinkanSalaryman
Wed Nov 06, 2024 5:34 pm
Forum: Implemented mod requests
Topic: [2.0.5] cannot modify display panel via lua
Replies: 4
Views: 620

Re: [2.0.5] cannot modify display panel via lua

viewtopic.php?f=28&t=120112

Noticed this too, aswell as other issues. I'm leaving a pointer here to my post.
by BinkanSalaryman
Wed Nov 06, 2024 5:21 pm
Forum: Modding interface requests
Topic: On the matter of display panels...
Replies: 2
Views: 632

On the matter of display panels...

Creating display panels from code is a bit cumbersome right now:


local display_panel = surface.create_entity{
name = "display-panel",
position = {-2, -3},
force = player.force
}

display_panel.get_or_create_control_behavior().set_message(1, {
icon = { type = "item", name = "coal" },
text ...

Go to advanced search