[closed]Add text to map overview without need for train stop

Things that already exist in the current mod API
Post Reply
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

[closed]Add text to map overview without need for train stop

Post by aubergine18 »

EDIT: I've decided to just use the same approach as circuit alerter mod - it's a bit cumbersome but works.

Currently it seems only way a mod can add text to map overview (that you get when pressing M key) is to create an invisible train stop entity - this is very crufty way to add text.

Would it be possible to get some method to add text at a location or a custom entity, possibly tied to entity so if it's destroyed/mined the text is automatically removed?

Also, ability for entity to toggle whether the text is present or not - for example, I might only want it to appear on map overview when a certain circuit signal is received by the entity.

Code: Select all

myEntity.show_text_on_map('some str')

myEntity.show_text_on_map(nil) -- remove text
If myEntity is destroyed/mined the text will automatically be removed.

EDIT: Possibly extend to show warning/alert sign on map - would be useful for entities that want to highlight problems to player.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Post Reply

Return to “Already exists”