Expose player map marker interaction (player.selected or on_click)
Posted: Sat May 04, 2019 3:58 pm
What?
More moddability of a players interaction with map markers.
New property: LuaControl .selected_chart_tag → LuaCustomChartTag
Or new event: on_chart_tag_clicked
Why?
I'd like to give the player a natural and well integrated way to select a destination for my transportation network on a map. ChartTags already show a selection box, so they seem like the best way to do it.
And the only way i can come up with to implement this is either via a custom hotkey+player.selected or an on_click_event. For flexibility i'd prefer .selected_chart_tag as it allows me to chose which hotkey to combine it with.
More moddability of a players interaction with map markers.
New property: LuaControl .selected_chart_tag → LuaCustomChartTag
Or new event: on_chart_tag_clicked
Why?
I'd like to give the player a natural and well integrated way to select a destination for my transportation network on a map. ChartTags already show a selection box, so they seem like the best way to do it.
And the only way i can come up with to implement this is either via a custom hotkey+player.selected or an on_click_event. For flexibility i'd prefer .selected_chart_tag as it allows me to chose which hotkey to combine it with.