Labels API

advanced scripting

World Map Strategy Kit · Scripting Support (C#)

Class: WMSK (namespace WorldMapStrategyKit)

Labels API

Methods for customizing labels on the map.

Country Labels

void SetCountryLabelText(int countryIndex, string text)

Changes the displayed label text for a country (without changing the country name).

void SetCountryLabelColor(int countryIndex, Color color)

Changes the label color for a specific country.

void SetCountryLabelOffset(int countryIndex, Vector2 offset)

Adjusts the position of a country label relative to its default center.

Province Labels

void SetProvinceLabelText(int provinceIndex, string text)

Changes the displayed label text for a province.

void SetProvinceLabelColor(int provinceIndex, Color color)

Changes the label color for a specific province.

City Labels

void SetCityLabelText(int cityIndex, string text)

Changes the displayed label text for a city.

void SetCityLabelColor(int cityIndex, Color color)

Changes the label color for a specific city.

Was this page helpful?