My question is, how do I start adding labels to the map preview right beside the player spawn points?
I guess I need to write a function that gets triggered on map change, slot swap and other events. Will it be possible to dynamically move or create/destroy the labels depending on the map currently selected?
This would add a label over the map preview, right?
- Code: Select all
GUI.mapViewPlayerRating = makeLabel("Player Rating on Map", 12)
LayoutHelpers.AtLeftTopIn(GUI.mapViewPlayerRating, GUI.mapPanel, -1, -1)
LayoutHelpers.DepthOverParent(GUI.mapViewPlayerRating, GUI.mapPanel, -1)
LayoutHelpers does place the label relative to the mapPanel, right?
Is there any documentation about those methods and functions?
In my idea, I would need to get the "spawn point count", and position of the spawn point of the map and create an array of labels so I can dynamically add the labels to the map preview.
Any advice is welcome.
Thanks in advance!