Unrelated to the lua api, but this occurrance is rather annoying:
Search found 3 matches
- Wed Nov 06, 2024 6:17 pm
- Forum: Modding interface requests
- Topic: On the matter of display panels...
- Replies: 2
- Views: 632
- 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.
Noticed this too, aswell as other issues. I'm leaving a pointer here to my post.
- 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 ...
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 ...