Page 1 of 1

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

Posted: Mon Aug 01, 2016 12:49 am
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.