Display Plates - Ground Signs & Map Markers


Big, medium and small signs ("plates") which can display an item, fluid or virtual icon. Display plates can be set to create a matching map marker at the location of the display plate. Can be used with blueprints, (except updating blueprints)

Utilities
1 year, 7 months ago
1.1
33.1K

i [Fixed in 1.3.0] add remote.interface

2 years ago

Can you please add this to your control.lua file, it will allow external mods to change the sprite in the display plate.

remote.add_interface(
    "DisplayPlates",
    {
        get_sprite = function(event)
            if event and event.entity and event.entity.valid then
                local spritetype, spritename = get_render_sprite_info(event.entity)
                return {spritetype=spritetype, spritename=spritename}
            else
                return nil
            end
        end,

        set_sprite = function(event)
            if event and event.entity and event.entity.valid and event.sprite and game.is_valid_sprite_path(event.sprite) then
                destroy_render(event.entity)
                render_overlay_sprite(event.entity, event.sprite)
            end
        end

    }
)
2 years ago

Sure, added in 1.3.0! Curious what you are making with this? 😄

New response